Google Cloud Assured Workloads V1 Client - Class CreateWorkloadRequest (0.10.2)

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

Request for creating a workload.

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

Namespace

Google \ Cloud \ AssuredWorkloads \ V1

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\V1\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\V1\Workload|null

hasWorkload

clearWorkload

setWorkload

Required. Assured Workload to create

Parameter
NameDescription
var Google\Cloud\AssuredWorkloads\V1\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

static::build

Parameters
NameDescription
parent string

Required. The resource name of the new Workload's parent. Must be of the form organizations/{org_id}/locations/{location_id}. Please see Google\Cloud\AssuredWorkloads\V1\AssuredWorkloadsServiceClient::locationName() for help formatting this field.

workload Google\Cloud\AssuredWorkloads\V1\Workload

Required. Assured Workload to create

Returns
TypeDescription
Google\Cloud\AssuredWorkloads\V1\CreateWorkloadRequest