Google Cloud Assured Workloads V1beta1 Client - Class CreateWorkloadRequest (0.8.3)

Reference documentation and code samples for the Google Cloud Assured Workloads V1beta1 Client class CreateWorkloadRequest.

Request for creating a workload.

Generated from protobuf message google.cloud.assuredworkloads.v1beta1.CreateWorkloadRequest

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ parent string

Required. The resource name of the new Workload's parent. Must be of the form organizations/{org_id}/locations/{location_id}.

↳ workload Google\Cloud\AssuredWorkloads\V1beta1\Workload

Required. Assured Workload to create

↳ external_id string

Optional. A identifier associated with the workload and underlying projects which allows for the break down of billing costs for a workload. The value provided for the identifier will add a label to the workload and contained projects with the identifier as the value.

getParent

Required. The resource name of the new Workload's parent.

Must be of the form organizations/{org_id}/locations/{location_id}.

Returns
TypeDescription
string

setParent

Required. The resource name of the new Workload's parent.

Must be of the form organizations/{org_id}/locations/{location_id}.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getWorkload

Required. Assured Workload to create

Returns
TypeDescription
Google\Cloud\AssuredWorkloads\V1beta1\Workload|null

hasWorkload

clearWorkload

setWorkload

Required. Assured Workload to create

Parameter
NameDescription
var Google\Cloud\AssuredWorkloads\V1beta1\Workload
Returns
TypeDescription
$this

getExternalId

Optional. A identifier associated with the workload and underlying projects which allows for the break down of billing costs for a workload. The value provided for the identifier will add a label to the workload and contained projects with the identifier as the value.

Returns
TypeDescription
string

setExternalId

Optional. A identifier associated with the workload and underlying projects which allows for the break down of billing costs for a workload. The value provided for the identifier will add a label to the workload and contained projects with the identifier as the value.

Parameter
NameDescription
var string
Returns
TypeDescription
$this