- 1.39.0 (latest)
- 1.38.0
- 1.37.0
- 1.36.0
- 1.35.0
- 1.34.0
- 1.33.0
- 1.32.0
- 1.31.0
- 1.30.0
- 1.29.0
- 1.28.0
- 1.27.0
- 1.26.0
- 1.25.0
- 1.24.0
- 1.23.0
- 1.22.0
- 1.21.0
- 1.20.1
- 1.19.2
- 1.18.0
- 1.17.0
- 1.16.1
- 1.15.0
- 1.14.1
- 1.13.0
- 1.12.1
- 1.11.0
- 1.10.1
- 1.9.0
- 1.8.0
- 1.7.0
- 1.6.1
- 1.5.2
- 1.4.0
- 1.3.2
- 1.2.0
- 1.1.0
- 1.0.0
- 0.9.0
- 0.8.0
- 0.7.0
- 0.6.0
- 0.5.0
- 0.4.2
- 0.3.0
- 0.2.1
- 0.1.0
Operation(mapping=None, *, ignore_unknown_fields=False, **kwargs)Represents an Operation resource. Google Compute Engine has three
Operation resources: *
Global </compute/docs/reference/rest/v1/globalOperations> *
Regional </compute/docs/reference/rest/v1/regionOperations> *
Zonal </compute/docs/reference/rest/v1/zoneOperations>__ You can
use an operation resource to manage asynchronous API requests. For
more information, read Handling API responses. Operations can be
global, regional or zonal. - For global operations, use the
globalOperations resource. - For regional operations, use the
regionOperations resource. - For zonal operations, use the
zoneOperations resource. For more information, read Global,
Regional, and Zonal Resources. Note that completed Operation
resources have a limited retention period.
.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
| Attributes | |
|---|---|
| Name | Description | 
| client_operation_id | str[Output Only] The value of requestIdif you provided it
   in the request. Not present otherwise.
   
   This field is a member ofoneof__client_operation_id. | 
| creation_timestamp | str[Deprecated] This field is deprecated. This field is a member of oneof__creation_timestamp. | 
| description | str[Output Only] A textual description of the operation, which is set when the operation is created. This field is a member of oneof__description. | 
| end_time | str[Output Only] The time that this operation was completed. This value is in RFC3339 text format. This field is a member of oneof__end_time. | 
| error | google.cloud.compute_v1.types.Error[Output Only] If errors are generated during processing of the operation, this field will be populated. This field is a member of oneof__error. | 
| http_error_message | str[Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND.
   
   This field is a member ofoneof__http_error_message. | 
| http_error_status_code | int[Output Only] If the operation fails, this field contains the HTTP error status code that was returned. For example, a 404means the resource was not found.
   
   This field is a member ofoneof__http_error_status_code. | 
| id | int[Output Only] The unique identifier for the operation. This identifier is defined by the server. This field is a member of oneof__id. | 
| insert_time | str[Output Only] The time that this operation was requested. This value is in RFC3339 text format. This field is a member of oneof__insert_time. | 
| instances_bulk_insert_operation_metadata | google.cloud.compute_v1.types.InstancesBulkInsertOperationMetadataThis field is a member of oneof__instances_bulk_insert_operation_metadata. | 
| kind | str[Output Only] Type of the resource. Always compute#operationfor Operation resources.
   
   This field is a member ofoneof__kind. | 
| name | str[Output Only] Name of the operation. This field is a member of oneof__name. | 
| operation_group_id | str[Output Only] An ID that represents a group of operations, such as when a group of operations results from a bulkInsertAPI request.
   
   This field is a member ofoneof__operation_group_id. | 
| operation_type | str[Output Only] The type of operation, such as insert,update, ordelete, and so on.
   
   This field is a member ofoneof__operation_type. | 
| progress | int[Output Only] An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess when the operation will be complete. This number should monotonically increase as the operation progresses. This field is a member of oneof__progress. | 
| region | str[Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations. This field is a member of oneof__region. | 
| self_link | str[Output Only] Server-defined URL for the resource. This field is a member of oneof__self_link. | 
| set_common_instance_metadata_operation_metadata | google.cloud.compute_v1.types.SetCommonInstanceMetadataOperationMetadata[Output Only] If the operation is for projects.setCommonInstanceMetadata, this field will contain information on all underlying zonal actions and their state. This field is a member of oneof__set_common_instance_metadata_operation_metadata. | 
| start_time | str[Output Only] The time that this operation was started by the server. This value is in RFC3339 text format. This field is a member of oneof__start_time. | 
| status | google.cloud.compute_v1.types.Operation.Status[Output Only] The status of the operation, which can be one of the following: PENDING,RUNNING, orDONE.
   
   This field is a member ofoneof__status. | 
| status_message | str[Output Only] An optional textual description of the current status of the operation. This field is a member of oneof__status_message. | 
| target_id | int[Output Only] The unique target ID, which identifies a specific incarnation of the target resource. This field is a member of oneof__target_id. | 
| target_link | str[Output Only] The URL of the resource that the operation modifies. For operations related to creating a snapshot, this points to the disk that the snapshot was created from. This field is a member of oneof__target_link. | 
| user | str[Output Only] User who requested the operation, for example: user@example.comoralice_smith_identifier (global/workforcePools/example-com-us-employees).
   
   This field is a member ofoneof__user. | 
| warnings | MutableSequence[google.cloud.compute_v1.types.Warnings][Output Only] If warning messages are generated during processing of the operation, this field will be populated. | 
| zone | str[Output Only] The URL of the zone where the operation resides. Only applicable when performing per-zone operations. This field is a member of oneof__zone. | 
Classes
Status
Status(value)[Output Only] The status of the operation, which can be one of the
following: PENDING, RUNNING, or DONE.