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
Namespace
Google \ Cloud \ AssuredWorkloads \ V1beta1Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
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 |
↳ workload |
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 | |
---|---|
Type | Description |
string |
setParent
Required. The resource name of the new Workload's parent.
Must be of the form organizations/{org_id}/locations/{location_id}
.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getWorkload
Required. Assured Workload to create
Returns | |
---|---|
Type | Description |
Workload|null |
hasWorkload
clearWorkload
setWorkload
Required. Assured Workload to create
Parameter | |
---|---|
Name | Description |
var |
Workload
|
Returns | |
---|---|
Type | Description |
$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 | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
static::build
Parameters | |
---|---|
Name | Description |
parent |
string
Required. The resource name of the new Workload's parent.
Must be of the form |
workload |
Workload
Required. Assured Workload to create |
Returns | |
---|---|
Type | Description |
CreateWorkloadRequest |