Reference documentation and code samples for the Google Cloud App Hub V1 Client class Workload.
Workload is an App Hub data model that contains a discovered workload, which represents a binary deployment (such as managed instance groups (MIGs) and GKE deployments) that performs the smallest logical subset of business functionality.
Generated from protobuf message google.cloud.apphub.v1.Workload
Namespace
Google \ Cloud \ AppHub \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ name
string
Identifier. The resource name of the Workload. Format: "projects/{host-project-id}/locations/{location}/applications/{application-id}/workloads/{workload-id}"
↳ display_name
string
Optional. User-defined name for the Workload. Can have a maximum length of 63 characters.
↳ description
string
Optional. User-defined description of a Workload. Can have a maximum length of 2048 characters.
↳ workload_reference
WorkloadReference
Output only. Reference of an underlying compute resource represented by the Workload. These are immutable.
↳ workload_properties
WorkloadProperties
Output only. Properties of an underlying compute resource represented by the Workload. These are immutable.
↳ discovered_workload
string
Required. Immutable. The resource name of the original discovered workload.
↳ attributes
↳ create_time
↳ update_time
↳ uid
string
Output only. A universally unique identifier (UUID) for the Workload
in the UUID4 format.
↳ state
int
Output only. Workload state.
getName
Identifier. The resource name of the Workload. Format: "projects/{host-project-id}/locations/{location}/applications/{application-id}/workloads/{workload-id}"
string
setName
Identifier. The resource name of the Workload. Format: "projects/{host-project-id}/locations/{location}/applications/{application-id}/workloads/{workload-id}"
var
string
$this
getDisplayName
Optional. User-defined name for the Workload.
Can have a maximum length of 63 characters.
string
setDisplayName
Optional. User-defined name for the Workload.
Can have a maximum length of 63 characters.
var
string
$this
getDescription
Optional. User-defined description of a Workload.
Can have a maximum length of 2048 characters.
string
setDescription
Optional. User-defined description of a Workload.
Can have a maximum length of 2048 characters.
var
string
$this
getWorkloadReference
Output only. Reference of an underlying compute resource represented by the Workload. These are immutable.
hasWorkloadReference
clearWorkloadReference
setWorkloadReference
Output only. Reference of an underlying compute resource represented by the Workload. These are immutable.
$this
getWorkloadProperties
Output only. Properties of an underlying compute resource represented by the Workload. These are immutable.
hasWorkloadProperties
clearWorkloadProperties
setWorkloadProperties
Output only. Properties of an underlying compute resource represented by the Workload. These are immutable.
$this
getDiscoveredWorkload
Required. Immutable. The resource name of the original discovered workload.
string
setDiscoveredWorkload
Required. Immutable. The resource name of the original discovered workload.
var
string
$this
getAttributes
Optional. Consumer provided attributes.
hasAttributes
clearAttributes
setAttributes
Optional. Consumer provided attributes.
$this
getCreateTime
Output only. Create time.
hasCreateTime
clearCreateTime
setCreateTime
Output only. Create time.
$this
getUpdateTime
Output only. Update time.
hasUpdateTime
clearUpdateTime
setUpdateTime
Output only. Update time.
$this
getUid
Output only. A universally unique identifier (UUID) for the Workload
in
the UUID4 format.
string
setUid
Output only. A universally unique identifier (UUID) for the Workload
in
the UUID4 format.
var
string
$this
getState
Output only. Workload state.
int
setState
Output only. Workload state.
var
int
$this