Reference documentation and code samples for the Google Cloud Assured Workloads V1beta1 Client class Workload.
An Workload object for managing highly regulated workloads of cloud customers.
Generated from protobuf message google.cloud.assuredworkloads.v1beta1.Workload
Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ name |
string
Optional. The resource name of the workload. Format: organizations/{organization}/locations/{location}/workloads/{workload} Read-only. |
↳ display_name |
string
Required. The user-assigned display name of the Workload. When present it must be between 4 to 30 characters. Allowed characters are: lowercase and uppercase letters, numbers, hyphen, and spaces. Example: My Workload |
↳ resources |
array<Google\Cloud\AssuredWorkloads\V1beta1\Workload\ResourceInfo>
Output only. The resources associated with this workload. These resources will be created when creating the workload. If any of the projects already exist, the workload creation will fail. Always read only. |
↳ compliance_regime |
int
Required. Immutable. Compliance Regime associated with this workload. |
↳ create_time |
Google\Protobuf\Timestamp
Output only. Immutable. The Workload creation timestamp. |
↳ billing_account |
string
Input only. The billing account used for the resources which are direct children of workload. This billing account is initially associated with the resources created as part of Workload creation. After the initial creation of these resources, the customer can change the assigned billing account. The resource name has the form |
↳ il4_settings |
Google\Cloud\AssuredWorkloads\V1beta1\Workload\IL4Settings
Required. Input only. Immutable. Settings specific to resources needed for IL4. |
↳ cjis_settings |
Google\Cloud\AssuredWorkloads\V1beta1\Workload\CJISSettings
Required. Input only. Immutable. Settings specific to resources needed for CJIS. |
↳ fedramp_high_settings |
Google\Cloud\AssuredWorkloads\V1beta1\Workload\FedrampHighSettings
Required. Input only. Immutable. Settings specific to resources needed for FedRAMP High. |
↳ fedramp_moderate_settings |
Google\Cloud\AssuredWorkloads\V1beta1\Workload\FedrampModerateSettings
Required. Input only. Immutable. Settings specific to resources needed for FedRAMP Moderate. |
↳ etag |
string
Optional. ETag of the workload, it is calculated on the basis of the Workload contents. It will be used in Update & Delete operations. |
↳ labels |
array|Google\Protobuf\Internal\MapField
Optional. Labels applied to the workload. |
↳ provisioned_resources_parent |
string
Input only. The parent resource for the resources managed by this Assured Workload. May be either empty or a folder resource which is a child of the Workload parent. If not specified all resources are created under the parent organization. Format: folders/{folder_id} |
↳ kms_settings |
Google\Cloud\AssuredWorkloads\V1beta1\Workload\KMSSettings
Input only. Settings used to create a CMEK crypto key. When set a project with a KMS CMEK key is provisioned. This field is mandatory for a subset of Compliance Regimes. |
↳ resource_settings |
array<Google\Cloud\AssuredWorkloads\V1beta1\Workload\ResourceSettings>
Input only. Resource properties that are used to customize workload resources. These properties (such as custom project id) will be used to create workload resources if possible. This field is optional. |
↳ kaj_enrollment_state |
int
Output only. Represents the KAJ enrollment state of the given workload. |
↳ enable_sovereign_controls |
bool
Optional. Indicates the sovereignty status of the given workload. Currently meant to be used by Europe/Canada customers. |
↳ saa_enrollment_response |
Google\Cloud\AssuredWorkloads\V1beta1\Workload\SaaEnrollmentResponse
Output only. Represents the SAA enrollment response of the given workload. SAA enrollment response is queried during GetWorkload call. In failure cases, user friendly error message is shown in SAA details page. |
getName
Optional. The resource name of the workload.
Format: organizations/{organization}/locations/{location}/workloads/{workload} Read-only.
Returns | |
---|---|
Type | Description |
string |
setName
Optional. The resource name of the workload.
Format: organizations/{organization}/locations/{location}/workloads/{workload} Read-only.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getDisplayName
Required. The user-assigned display name of the Workload.
When present it must be between 4 to 30 characters. Allowed characters are: lowercase and uppercase letters, numbers, hyphen, and spaces. Example: My Workload
Returns | |
---|---|
Type | Description |
string |
setDisplayName
Required. The user-assigned display name of the Workload.
When present it must be between 4 to 30 characters. Allowed characters are: lowercase and uppercase letters, numbers, hyphen, and spaces. Example: My Workload
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getResources
Output only. The resources associated with this workload.
These resources will be created when creating the workload. If any of the projects already exist, the workload creation will fail. Always read only.
Returns | |
---|---|
Type | Description |
Google\Protobuf\Internal\RepeatedField |
setResources
Output only. The resources associated with this workload.
These resources will be created when creating the workload. If any of the projects already exist, the workload creation will fail. Always read only.
Parameter | |
---|---|
Name | Description |
var |
array<Google\Cloud\AssuredWorkloads\V1beta1\Workload\ResourceInfo>
|
Returns | |
---|---|
Type | Description |
$this |
getComplianceRegime
Required. Immutable. Compliance Regime associated with this workload.
Returns | |
---|---|
Type | Description |
int |
setComplianceRegime
Required. Immutable. Compliance Regime associated with this workload.
Parameter | |
---|---|
Name | Description |
var |
int
|
Returns | |
---|---|
Type | Description |
$this |
getCreateTime
Output only. Immutable. The Workload creation timestamp.
Returns | |
---|---|
Type | Description |
Google\Protobuf\Timestamp|null |
hasCreateTime
clearCreateTime
setCreateTime
Output only. Immutable. The Workload creation timestamp.
Parameter | |
---|---|
Name | Description |
var |
Google\Protobuf\Timestamp
|
Returns | |
---|---|
Type | Description |
$this |
getBillingAccount
Input only. The billing account used for the resources which are direct children of workload. This billing account is initially associated with the resources created as part of Workload creation.
After the initial creation of these resources, the customer can change
the assigned billing account.
The resource name has the form
billingAccounts/{billing_account_id}
. For example,
billingAccounts/012345-567890-ABCDEF
.
Returns | |
---|---|
Type | Description |
string |
setBillingAccount
Input only. The billing account used for the resources which are direct children of workload. This billing account is initially associated with the resources created as part of Workload creation.
After the initial creation of these resources, the customer can change
the assigned billing account.
The resource name has the form
billingAccounts/{billing_account_id}
. For example,
billingAccounts/012345-567890-ABCDEF
.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getIl4Settings
Required. Input only. Immutable. Settings specific to resources needed for IL4.
Returns | |
---|---|
Type | Description |
Google\Cloud\AssuredWorkloads\V1beta1\Workload\IL4Settings|null |
hasIl4Settings
setIl4Settings
Required. Input only. Immutable. Settings specific to resources needed for IL4.
Parameter | |
---|---|
Name | Description |
var |
Google\Cloud\AssuredWorkloads\V1beta1\Workload\IL4Settings
|
Returns | |
---|---|
Type | Description |
$this |
getCjisSettings
Required. Input only. Immutable. Settings specific to resources needed for CJIS.
Returns | |
---|---|
Type | Description |
Google\Cloud\AssuredWorkloads\V1beta1\Workload\CJISSettings|null |
hasCjisSettings
setCjisSettings
Required. Input only. Immutable. Settings specific to resources needed for CJIS.
Parameter | |
---|---|
Name | Description |
var |
Google\Cloud\AssuredWorkloads\V1beta1\Workload\CJISSettings
|
Returns | |
---|---|
Type | Description |
$this |
getFedrampHighSettings
Required. Input only. Immutable. Settings specific to resources needed for FedRAMP High.
Returns | |
---|---|
Type | Description |
Google\Cloud\AssuredWorkloads\V1beta1\Workload\FedrampHighSettings|null |
hasFedrampHighSettings
setFedrampHighSettings
Required. Input only. Immutable. Settings specific to resources needed for FedRAMP High.
Parameter | |
---|---|
Name | Description |
var |
Google\Cloud\AssuredWorkloads\V1beta1\Workload\FedrampHighSettings
|
Returns | |
---|---|
Type | Description |
$this |
getFedrampModerateSettings
Required. Input only. Immutable. Settings specific to resources needed for FedRAMP Moderate.
Returns | |
---|---|
Type | Description |
Google\Cloud\AssuredWorkloads\V1beta1\Workload\FedrampModerateSettings|null |
hasFedrampModerateSettings
setFedrampModerateSettings
Required. Input only. Immutable. Settings specific to resources needed for FedRAMP Moderate.
Parameter | |
---|---|
Name | Description |
var |
Google\Cloud\AssuredWorkloads\V1beta1\Workload\FedrampModerateSettings
|
Returns | |
---|---|
Type | Description |
$this |
getEtag
Optional. ETag of the workload, it is calculated on the basis of the Workload contents. It will be used in Update & Delete operations.
Returns | |
---|---|
Type | Description |
string |
setEtag
Optional. ETag of the workload, it is calculated on the basis of the Workload contents. It will be used in Update & Delete operations.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getLabels
Optional. Labels applied to the workload.
Returns | |
---|---|
Type | Description |
Google\Protobuf\Internal\MapField |
setLabels
Optional. Labels applied to the workload.
Parameter | |
---|---|
Name | Description |
var |
array|Google\Protobuf\Internal\MapField
|
Returns | |
---|---|
Type | Description |
$this |
getProvisionedResourcesParent
Input only. The parent resource for the resources managed by this Assured Workload. May be either empty or a folder resource which is a child of the Workload parent. If not specified all resources are created under the parent organization.
Format: folders/{folder_id}
Returns | |
---|---|
Type | Description |
string |
setProvisionedResourcesParent
Input only. The parent resource for the resources managed by this Assured Workload. May be either empty or a folder resource which is a child of the Workload parent. If not specified all resources are created under the parent organization.
Format: folders/{folder_id}
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getKmsSettings
Input only. Settings used to create a CMEK crypto key. When set a project with a KMS CMEK key is provisioned. This field is mandatory for a subset of Compliance Regimes.
Returns | |
---|---|
Type | Description |
Google\Cloud\AssuredWorkloads\V1beta1\Workload\KMSSettings|null |
hasKmsSettings
clearKmsSettings
setKmsSettings
Input only. Settings used to create a CMEK crypto key. When set a project with a KMS CMEK key is provisioned. This field is mandatory for a subset of Compliance Regimes.
Parameter | |
---|---|
Name | Description |
var |
Google\Cloud\AssuredWorkloads\V1beta1\Workload\KMSSettings
|
Returns | |
---|---|
Type | Description |
$this |
getResourceSettings
Input only. Resource properties that are used to customize workload resources. These properties (such as custom project id) will be used to create workload resources if possible. This field is optional.
Returns | |
---|---|
Type | Description |
Google\Protobuf\Internal\RepeatedField |
setResourceSettings
Input only. Resource properties that are used to customize workload resources. These properties (such as custom project id) will be used to create workload resources if possible. This field is optional.
Parameter | |
---|---|
Name | Description |
var |
array<Google\Cloud\AssuredWorkloads\V1beta1\Workload\ResourceSettings>
|
Returns | |
---|---|
Type | Description |
$this |
getKajEnrollmentState
Output only. Represents the KAJ enrollment state of the given workload.
Returns | |
---|---|
Type | Description |
int |
setKajEnrollmentState
Output only. Represents the KAJ enrollment state of the given workload.
Parameter | |
---|---|
Name | Description |
var |
int
|
Returns | |
---|---|
Type | Description |
$this |
getEnableSovereignControls
Optional. Indicates the sovereignty status of the given workload.
Currently meant to be used by Europe/Canada customers.
Returns | |
---|---|
Type | Description |
bool |
setEnableSovereignControls
Optional. Indicates the sovereignty status of the given workload.
Currently meant to be used by Europe/Canada customers.
Parameter | |
---|---|
Name | Description |
var |
bool
|
Returns | |
---|---|
Type | Description |
$this |
getSaaEnrollmentResponse
Output only. Represents the SAA enrollment response of the given workload.
SAA enrollment response is queried during GetWorkload call. In failure cases, user friendly error message is shown in SAA details page.
Returns | |
---|---|
Type | Description |
Google\Cloud\AssuredWorkloads\V1beta1\Workload\SaaEnrollmentResponse|null |
hasSaaEnrollmentResponse
clearSaaEnrollmentResponse
setSaaEnrollmentResponse
Output only. Represents the SAA enrollment response of the given workload.
SAA enrollment response is queried during GetWorkload call. In failure cases, user friendly error message is shown in SAA details page.
Parameter | |
---|---|
Name | Description |
var |
Google\Cloud\AssuredWorkloads\V1beta1\Workload\SaaEnrollmentResponse
|
Returns | |
---|---|
Type | Description |
$this |
getComplianceRegimeSettings
Returns | |
---|---|
Type | Description |
string |