class Operation(pb_classes.Message): (source)
Constructor: Operation(initial_message, id, description, created_at, ...)
Undocumented
Class |
|
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 |
|
Undocumented |
Method | __dir__ |
Undocumented |
Method | __init__ |
Undocumented |
Method | created |
Undocumented |
Method | created |
Undocumented |
Method | description |
Undocumented |
Method | finished |
Undocumented |
Method | id |
Undocumented |
Method | progress |
Undocumented |
Method | request |
Undocumented |
Method | request |
Undocumented |
Method | resource |
Undocumented |
Method | status |
Undocumented |
Constant | __PB2 |
Undocumented |
Constant | __PY |
Undocumented |
Class Variable | __mask |
Undocumented |
Property | created |
Creation timestamp. |
Property | created |
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 |
The time when the operation has finished. |
Property | id |
ID of the operation. |
Property | progress |
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 |
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 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 |
Undocumented |
Class Method | is |
Undocumented |
Class Method | is |
Undocumented |
Method | __repr__ |
Undocumented |
Method | check |
Undocumented |
Method | get |
Undocumented |
Method | get |
Undocumented |
Method | is |
Undocumented |
Method | set |
Undocumented |
Method | which |
Undocumented |
Class Variable | __PB2 |
Undocumented |
Instance Variable | __pb2 |
Undocumented |
Method | _clear |
Undocumented |
Method | _get |
Undocumented |
Method | _set |
Undocumented |
Class Variable | __credentials |
Undocumented |
Class Variable | __default |
Undocumented |
Class Variable | __sensitive |
Undocumented |
Instance Variable | __recorded |
Undocumented |
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)
¶
Undocumented
def created_at(self, value:
timestamp_pb2.Timestamp | datetime.datetime | None
):
(source)
¶
Undocumented
def finished_at(self, value:
timestamp_pb2.Timestamp | datetime.datetime | None
):
(source)
¶
Undocumented
def request_headers(self, value:
abc.Mapping[ builtins.str, Operation.RequestHeader] | None
):
(source)
¶
Undocumented
def status(self, value:
status_pb2.Status | request_status.RequestStatus | None
):
(source)
¶
Undocumented
Undocumented
Value |
|
Undocumented
Value |
|
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.
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
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.
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