Google Cloud App Hub V1 Client - Class DiscoveredWorkload (0.1.3)

Reference documentation and code samples for the Google Cloud App Hub V1 Client class DiscoveredWorkload.

DiscoveredWorkload is a binary deployment (such as managed instance groups (MIGs) and GKE deployments) that performs the smallest logical subset of business functionality. A discovered workload can be registered to an App Hub Workload.

Generated from protobuf message google.cloud.apphub.v1.DiscoveredWorkload

Namespace

Google \ Cloud \ AppHub \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ name string

Identifier. The resource name of the discovered workload. Format: "projects/{host-project-id}/locations/{location}/discoveredWorkloads/{uuid}"

↳ workload_reference Google\Cloud\AppHub\V1\WorkloadReference

Output only. Reference of an underlying compute resource represented by the Workload. These are immutable.

↳ workload_properties Google\Cloud\AppHub\V1\WorkloadProperties

Output only. Properties of an underlying compute resource represented by the Workload. These are immutable.

getName

Identifier. The resource name of the discovered workload. Format: "projects/{host-project-id}/locations/{location}/discoveredWorkloads/{uuid}"

Returns
Type Description
string

setName

Identifier. The resource name of the discovered workload. Format: "projects/{host-project-id}/locations/{location}/discoveredWorkloads/{uuid}"

Parameter
Name Description
var string
Returns
Type Description
$this

getWorkloadReference

Output only. Reference of an underlying compute resource represented by the Workload. These are immutable.

Returns
Type Description
Google\Cloud\AppHub\V1\WorkloadReference|null

hasWorkloadReference

clearWorkloadReference

setWorkloadReference

Output only. Reference of an underlying compute resource represented by the Workload. These are immutable.

Parameter
Name Description
var Google\Cloud\AppHub\V1\WorkloadReference
Returns
Type Description
$this

getWorkloadProperties

Output only. Properties of an underlying compute resource represented by the Workload. These are immutable.

Returns
Type Description
Google\Cloud\AppHub\V1\WorkloadProperties|null

hasWorkloadProperties

clearWorkloadProperties

setWorkloadProperties

Output only. Properties of an underlying compute resource represented by the Workload. These are immutable.

Parameter
Name Description
var Google\Cloud\AppHub\V1\WorkloadProperties
Returns
Type Description
$this