Reference documentation and code samples for the Google Cloud Assured Workloads V1beta1 Client class GetWorkloadRequest.
Request for fetching a workload.
Generated from protobuf message google.cloud.assuredworkloads.v1beta1.GetWorkloadRequest
Namespace
Google \ Cloud \ AssuredWorkloads \ V1beta1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ name |
string
Required. The resource name of the Workload to fetch. This is the workloads's relative path in the API, formatted as "organizations/{organization_id}/locations/{location_id}/workloads/{workload_id}". For example, "organizations/123/locations/us-east1/workloads/assured-workload-1". |
getName
Required. The resource name of the Workload to fetch. This is the workloads's relative path in the API, formatted as "organizations/{organization_id}/locations/{location_id}/workloads/{workload_id}".
For example, "organizations/123/locations/us-east1/workloads/assured-workload-1".
| Returns | |
|---|---|
| Type | Description |
string |
|
setName
Required. The resource name of the Workload to fetch. This is the workloads's relative path in the API, formatted as "organizations/{organization_id}/locations/{location_id}/workloads/{workload_id}".
For example, "organizations/123/locations/us-east1/workloads/assured-workload-1".
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
static::build
| Parameter | |
|---|---|
| Name | Description |
name |
string
Required. The resource name of the Workload to fetch. This is the workloads's relative path in the API, formatted as "organizations/{organization_id}/locations/{location_id}/workloads/{workload_id}". For example, "organizations/123/locations/us-east1/workloads/assured-workload-1". Please see AssuredWorkloadsServiceClient::workloadName() for help formatting this field. |
| Returns | |
|---|---|
| Type | Description |
GetWorkloadRequest |
|