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 \ V1Methods
__construct
Constructor.
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
↳ 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}
.
string
setParent
Required. The resource name of the new Workload's parent.
Must be of the form organizations/{org_id}/locations/{location_id}
.
var
string
$this
getWorkload
Required. Assured Workload to create
hasWorkload
clearWorkload
setWorkload
Required. Assured Workload to create
$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.
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.
var
string
$this
static::build
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 AssuredWorkloadsServiceClient::locationName()
for help formatting this field.
workload