class documentation

Undocumented

Class RequestHeader Request header is a container for all the values of a particular header of a request as there is no such thing as map<string, repeated string>
Class RequestHeadersEntry Undocumented
Method __dir__ Undocumented
Method __init__ Undocumented
Method created_at.setter Undocumented
Method created_by.setter Undocumented
Method description.setter Undocumented
Method finished_at.setter Undocumented
Method id.setter Undocumented
Method progress_data.setter Undocumented
Method request.setter Undocumented
Method request_headers.setter Undocumented
Method resource_id.setter Undocumented
Method status.setter Undocumented
Constant __PB2_DESCRIPTOR__ Undocumented
Constant __PY_TO_PB2__ Undocumented
Class Variable __mask_functions__ Undocumented
Property created_at Creation timestamp.
Property created_by ID of the user or service account who initiated the operation.
Property description Human-readable description of the operation. 0-256 characters long.
Property finished_at The time when the operation has finished.
Property id ID of the operation.
Property progress_data Additional information about the progress of an operation, e.g., a progress percentage. MAY be absent while the operation is running, MUST be absent after the operation has completed.
Property request The request that generated this operation.
Property request_headers The request headers that are essential for the request that generated the operation. For instance, `x-resetmask`. Without these headers the request might have been processed differently if repeated. All the header names *must* be converted to lower case...
Property resource_id ID of the resource that this operation creates, updates, deletes or otherwise changes.
Property status The status of this operation. Set when this operation is completed. See https://github.com/grpc/grpc/blob/master/src/proto/grpc/status/status.proto.

Inherited from Message:

Class Method get_descriptor Undocumented
Class Method is_credentials Undocumented
Class Method is_sensitive Undocumented
Method __repr__ Undocumented
Method check_presence Undocumented
Method get_full_update_reset_mask Undocumented
Method get_mask Undocumented
Method is_default Undocumented
Method set_mask Undocumented
Method which_field_in_oneof Undocumented
Class Variable __PB2_CLASS__ Undocumented
Instance Variable __pb2_message__ Undocumented
Method _clear_field Undocumented
Method _get_field Undocumented
Method _set_field Undocumented
Class Variable __credentials_fields Undocumented
Class Variable __default Undocumented
Class Variable __sensitive_fields Undocumented
Instance Variable __recorded_reset_mask Undocumented
def __dir__(self) -> abc.Iterable[builtins.str]: (source)

Undocumented

def __init__(self, initial_message: message_1.Message | None = None, *, id: builtins.str | None | unset.UnsetType = unset.Unset, description: builtins.str | None | unset.UnsetType = unset.Unset, created_at: timestamp_pb2.Timestamp | datetime.datetime | None | unset.UnsetType = unset.Unset, created_by: builtins.str | None | unset.UnsetType = unset.Unset, finished_at: timestamp_pb2.Timestamp | datetime.datetime | None | unset.UnsetType = unset.Unset, request: any_pb2.Any | None | unset.UnsetType = unset.Unset, request_headers: abc.Mapping[builtins.str, Operation.RequestHeader] | None | unset.UnsetType = unset.Unset, resource_id: builtins.str | None | unset.UnsetType = unset.Unset, progress_data: any_pb2.Any | None | unset.UnsetType = unset.Unset, status: status_pb2.Status | request_status.RequestStatus | None | unset.UnsetType = unset.Unset): (source)
@created_at.setter
def created_at(self, value: timestamp_pb2.Timestamp | datetime.datetime | None): (source)

Undocumented

@created_by.setter
def created_by(self, value: builtins.str | None): (source)

Undocumented

@description.setter
def description(self, value: builtins.str | None): (source)

Undocumented

@finished_at.setter
def finished_at(self, value: timestamp_pb2.Timestamp | datetime.datetime | None): (source)

Undocumented

@id.setter
def id(self, value: builtins.str | None): (source)

Undocumented

@progress_data.setter
def progress_data(self, value: any_pb2.Any | None): (source)

Undocumented

@request.setter
def request(self, value: any_pb2.Any | None): (source)

Undocumented

@request_headers.setter
def request_headers(self, value: abc.Mapping[builtins.str, Operation.RequestHeader] | None): (source)

Undocumented

@resource_id.setter
def resource_id(self, value: builtins.str | None): (source)

Undocumented

@status.setter
def status(self, value: status_pb2.Status | request_status.RequestStatus | None): (source)

Undocumented

__PB2_DESCRIPTOR__ = (source)

Undocumented

Value
descriptor.DescriptorWrap[descriptor_1.Descriptor]('.nebius.common.v1.Operation'
,
                                                   operation_pb2.DESCRIPTOR,
                                                   descriptor_1.Descriptor)
__PY_TO_PB2__: builtins.dict[builtins.str, builtins.str] = (source)

Undocumented

Value
{'id': 'id',
 'description': 'description',
 'created_at': 'created_at',
 'created_by': 'created_by',
 'finished_at': 'finished_at',
 'request': 'request',
 'request_headers': 'request_headers',
...
@builtins.property
created_at: datetime.datetime = (source)

Creation timestamp.

@builtins.property
created_by: builtins.str = (source)

ID of the user or service account who initiated the operation.

@builtins.property
description: builtins.str = (source)

Human-readable description of the operation. 0-256 characters long.

@builtins.property
finished_at: datetime.datetime = (source)

The time when the operation has finished.

@builtins.property
id: builtins.str = (source)

ID of the operation.

@builtins.property
progress_data: any_pb2.Any = (source)

Additional information about the progress of an operation, e.g., a progress percentage. MAY be absent while the operation is running, MUST be absent after the operation has completed.

Format of message inside [progress_data] is service-dependent and MUST be documented by the service, IF it is used.

@builtins.property
request: any_pb2.Any = (source)

The request that generated this operation.

@builtins.property
request_headers: abc.MutableMapping[builtins.str, Operation.RequestHeader] = (source)

The request headers that are essential for the request that generated the operation. For instance, `x-resetmask`. Without these headers the request might have been processed differently if repeated. All the header names *must* be converted to lower case. Validator is based on: https://httpwg.org/specs/rfc9110.html#considerations.for.new.field.names

@builtins.property
resource_id: builtins.str = (source)

ID of the resource that this operation creates, updates, deletes or otherwise changes.

If the operation affects multiple resources or does not affect any API resources at all (e.g. a routine maintenance operation visible to the user), the [resource_id] must be empty.

@builtins.property
status: request_status.RequestStatus | None = (source)

The status of this operation. Set when this operation is completed. See https://github.com/grpc/grpc/blob/master/src/proto/grpc/status/status.proto. [status.code] is https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto: - If [status.code] == OK, the operation has completed successfully. - If [status.code] != OK, the operation has failed or has been cancelled. - [status.message] will contain a user-readable and actionable error message. - [status.details] will contain additional diagnostic information in the form of [ServiceError] from nebius/common/v1/error.proto - [status.code] must belong to an Operation-compatible subset of GRPC codes: OK, CANCELLED, PERMISSION_DENIED, RESOURCE_EXHAUSTED, FAILED_PRECONDITION, ABORTED, INTERNAL