Reference documentation and code samples for the Google Cloud Maintenance Api V1beta Client class ResourceMaintenance.
ResourceMaintenance is a resource that represents a maintenance operation on a resource.
Generated from protobuf message google.cloud.maintenance.api.v1beta.ResourceMaintenance
Namespace
Google \ Cloud \ Maintenance \ Api \ V1betaMethods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ name
string
Identifier. The name of the resource_maintenance resource. Format: "projects/{project}/locations/{location}/resourceMaintenance/{resource-maintenance-id}"
↳ resource
↳ maintenance
↳ state
int
Output only. The state of the resource maintenance.
↳ create_time
↳ update_time
↳ maintenance_start_time
↳ maintenance_end_time
↳ maintenance_cancel_time
↳ maintenance_scheduled_start_time
Google\Protobuf\Timestamp
Output only. The time when the maintenance on the resource was scheduled to start.
↳ maintenance_scheduled_end_time
Google\Protobuf\Timestamp
Output only. The time when the maintenance on the resource was scheduled to end.
↳ user_controllable
bool
Output only. Indicates whether the user has some control over that maintenance, either proactively before maintenance was scheduled with maintenance policy or with reactive controls after it was scheduled (see controls field)
↳ controls
↳ labels
array| Google\Protobuf\Internal\MapField
Optional. The labels on the resource, which can be used for categorization. similar to Kubernetes resource labels.
↳ annotations
array| Google\Protobuf\Internal\MapField
Optional. Annotations is an unstructured key-value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/user-guide/annotations
↳ uid
string
Output only. The unique identifier of the resource. UID is unique in the time and space for this resource within the scope of the service. It is typically generated by the server on successful creation of a resource and must not be changed. UID is used to uniquely identify resources with resource name reuses. This should be a UUID4.
↳ etag
string
Output only. An opaque value that uniquely identifies a version or generation of a resource. It can be used to confirm that the client and server agree on the ordering of a resource being written.
getName
Identifier. The name of the resource_maintenance resource.
Format: "projects/{project}/locations/{location}/resourceMaintenance/{resource-maintenance-id}"
string
setName
Identifier. The name of the resource_maintenance resource.
Format: "projects/{project}/locations/{location}/resourceMaintenance/{resource-maintenance-id}"
var
string
$this
getResource
Output only. The resource spec of the resource maintenance.
hasResource
clearResource
setResource
Output only. The resource spec of the resource maintenance.
$this
getMaintenance
Output only. The details of the maintenance.
hasMaintenance
clearMaintenance
setMaintenance
Output only. The details of the maintenance.
$this
getState
Output only. The state of the resource maintenance.
int
setState
Output only. The state of the resource maintenance.
var
int
$this
getCreateTime
Output only. The create time of the resource maintenance.
hasCreateTime
clearCreateTime
setCreateTime
Output only. The create time of the resource maintenance.
$this
getUpdateTime
Output only. The update time of the resource maintenance.
hasUpdateTime
clearUpdateTime
setUpdateTime
Output only. The update time of the resource maintenance.
$this
getMaintenanceStartTime
Output only. The time when the resource maintenance has started.
hasMaintenanceStartTime
clearMaintenanceStartTime
setMaintenanceStartTime
Output only. The time when the resource maintenance has started.
$this
getMaintenanceEndTime
Output only. The time when the resource maintenance has completed.
hasMaintenanceEndTime
clearMaintenanceEndTime
setMaintenanceEndTime
Output only. The time when the resource maintenance has completed.
$this
getMaintenanceCancelTime
Output only. The time when the resource maintenance was cancelled.
hasMaintenanceCancelTime
clearMaintenanceCancelTime
setMaintenanceCancelTime
Output only. The time when the resource maintenance was cancelled.
$this
getMaintenanceScheduledStartTime
Output only. The time when the maintenance on the resource was scheduled to start.
hasMaintenanceScheduledStartTime
clearMaintenanceScheduledStartTime
setMaintenanceScheduledStartTime
Output only. The time when the maintenance on the resource was scheduled to start.
$this
getMaintenanceScheduledEndTime
Output only. The time when the maintenance on the resource was scheduled to end.
hasMaintenanceScheduledEndTime
clearMaintenanceScheduledEndTime
setMaintenanceScheduledEndTime
Output only. The time when the maintenance on the resource was scheduled to end.
$this
getUserControllable
Output only. Indicates whether the user has some control over that maintenance, either proactively before maintenance was scheduled with maintenance policy or with reactive controls after it was scheduled (see controls field)
bool
setUserControllable
Output only. Indicates whether the user has some control over that maintenance, either proactively before maintenance was scheduled with maintenance policy or with reactive controls after it was scheduled (see controls field)
var
bool
$this
getControls
Output only. The controls of the maintenance.
setControls
Output only. The controls of the maintenance.
$this
getLabels
Optional. The labels on the resource, which can be used for categorization.
similar to Kubernetes resource labels.
setLabels
Optional. The labels on the resource, which can be used for categorization.
similar to Kubernetes resource labels.
$this
getAnnotations
Optional. Annotations is an unstructured key-value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects.
More info: https://kubernetes.io/docs/user-guide/annotations
setAnnotations
Optional. Annotations is an unstructured key-value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects.
More info: https://kubernetes.io/docs/user-guide/annotations
$this
getUid
Output only. The unique identifier of the resource. UID is unique in the time and space for this resource within the scope of the service. It is typically generated by the server on successful creation of a resource and must not be changed. UID is used to uniquely identify resources with resource name reuses. This should be a UUID4.
string
setUid
Output only. The unique identifier of the resource. UID is unique in the time and space for this resource within the scope of the service. It is typically generated by the server on successful creation of a resource and must not be changed. UID is used to uniquely identify resources with resource name reuses. This should be a UUID4.
var
string
$this
getEtag
Output only. An opaque value that uniquely identifies a version or generation of a resource. It can be used to confirm that the client and server agree on the ordering of a resource being written.
string
setEtag
Output only. An opaque value that uniquely identifies a version or generation of a resource. It can be used to confirm that the client and server agree on the ordering of a resource being written.
var
string
$this