Reference documentation and code samples for the Google Cloud Container V1 Client class Operation.
This operation resource represents operations that may have happened or are happening on the cluster. All fields are output only.
Generated from protobuf message google.container.v1.Operation
Namespace
Google \ Cloud \ Container \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ name
string
Output only. The server-assigned ID for the operation.
↳ zone
string
Output only. The name of the Google Compute Engine zone in which the operation is taking place. This field is deprecated, use location instead.
↳ operation_type
int
Output only. The operation type.
↳ status
int
Output only. The current status of the operation.
↳ detail
string
Output only. Detailed operation progress, if available.
↳ status_message
string
Output only. If an error has occurred, a textual description of the error. Deprecated. Use the field error instead.
↳ self_link
string
Output only. Server-defined URI for the operation. Example: https://container.googleapis.com/v1alpha1/projects/123/locations/us-central1/operations/operation-123
.
↳ target_link
string
Output only. Server-defined URI for the target of the operation. The format of this is a URI to the resource being modified (such as a cluster, node pool, or node). For node pool repairs, there may be multiple nodes being repaired, but only one will be the target. Examples: - ## https://container.googleapis.com/v1/projects/123/locations/us-central1/clusters/my-cluster
## https://container.googleapis.com/v1/projects/123/zones/us-central1-c/clusters/my-cluster/nodePools/my-np
https://container.googleapis.com/v1/projects/123/zones/us-central1-c/clusters/my-cluster/nodePools/my-np/node/my-node
↳ location
↳ start_time
↳ end_time
↳ progress
↳ cluster_conditions
array< Google\Cloud\Container\V1\StatusCondition
>
Which conditions caused the current cluster state. Deprecated. Use field error instead.
↳ nodepool_conditions
array< Google\Cloud\Container\V1\StatusCondition
>
Which conditions caused the current node pool state. Deprecated. Use field error instead.
↳ error
getName
Output only. The server-assigned ID for the operation.
string
setName
Output only. The server-assigned ID for the operation.
var
string
$this
getZone
Output only. The name of the Google Compute Engine zone in which the operation is taking place. This field is deprecated, use location instead.
string
setZone
Output only. The name of the Google Compute Engine zone in which the operation is taking place. This field is deprecated, use location instead.
var
string
$this
getOperationType
Output only. The operation type.
int
setOperationType
Output only. The operation type.
var
int
$this
getStatus
Output only. The current status of the operation.
int
setStatus
Output only. The current status of the operation.
var
int
$this
getDetail
Output only. Detailed operation progress, if available.
string
setDetail
Output only. Detailed operation progress, if available.
var
string
$this
getStatusMessage
Output only. If an error has occurred, a textual description of the error.
Deprecated. Use the field error instead.
string
setStatusMessage
Output only. If an error has occurred, a textual description of the error.
Deprecated. Use the field error instead.
var
string
$this
getSelfLink
Output only. Server-defined URI for the operation. Example: https://container.googleapis.com/v1alpha1/projects/123/locations/us-central1/operations/operation-123
.
string
setSelfLink
Output only. Server-defined URI for the operation. Example: https://container.googleapis.com/v1alpha1/projects/123/locations/us-central1/operations/operation-123
.
var
string
$this
getTargetLink
Output only. Server-defined URI for the target of the operation. The format of this is a URI to the resource being modified (such as a cluster, node pool, or node). For node pool repairs, there may be multiple nodes being repaired, but only one will be the target.
Examples: -
#
https://container.googleapis.com/v1/projects/123/locations/us-central1/clusters/my-cluster
#
https://container.googleapis.com/v1/projects/123/zones/us-central1-c/clusters/my-cluster/nodePools/my-np
https://container.googleapis.com/v1/projects/123/zones/us-central1-c/clusters/my-cluster/nodePools/my-np/node/my-node
string
setTargetLink
Output only. Server-defined URI for the target of the operation. The format of this is a URI to the resource being modified (such as a cluster, node pool, or node). For node pool repairs, there may be multiple nodes being repaired, but only one will be the target.
Examples: -
#
https://container.googleapis.com/v1/projects/123/locations/us-central1/clusters/my-cluster
#
https://container.googleapis.com/v1/projects/123/zones/us-central1-c/clusters/my-cluster/nodePools/my-np
https://container.googleapis.com/v1/projects/123/zones/us-central1-c/clusters/my-cluster/nodePools/my-np/node/my-node
var
string
$this
getLocation
string
setLocation
var
string
$this
getStartTime
Output only. The time the operation started, in RFC3339 text format.
string
setStartTime
Output only. The time the operation started, in RFC3339 text format.
var
string
$this
getEndTime
Output only. The time the operation completed, in RFC3339 text format.
string
setEndTime
Output only. The time the operation completed, in RFC3339 text format.
var
string
$this
getProgress
Output only. Progress information for an operation.
hasProgress
clearProgress
setProgress
Output only. Progress information for an operation.
$this
getClusterConditions
Which conditions caused the current cluster state.
Deprecated. Use field error instead.
setClusterConditions
Which conditions caused the current cluster state.
Deprecated. Use field error instead.
$this
getNodepoolConditions
Which conditions caused the current node pool state.
Deprecated. Use field error instead.
setNodepoolConditions
Which conditions caused the current node pool state.
Deprecated. Use field error instead.
$this
getError
The error result of the operation in case of failure.
hasError
clearError
setError
The error result of the operation in case of failure.
$this