Google Cloud Assured Workloads V1beta1 Client - Class Workload (0.10.2)

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

Namespace

Google \ Cloud \ AssuredWorkloads \ V1beta1

Methods

__construct

Constructor.

Parameters
NameDescription
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

Output 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.

↳ il4_settings Google\Cloud\AssuredWorkloads\V1beta1\Workload\IL4Settings

Input only. Immutable. Settings specific to resources needed for IL4.

↳ cjis_settings Google\Cloud\AssuredWorkloads\V1beta1\Workload\CJISSettings

Input only. Immutable. Settings specific to resources needed for CJIS.

↳ fedramp_high_settings Google\Cloud\AssuredWorkloads\V1beta1\Workload\FedrampHighSettings

Input only. Immutable. Settings specific to resources needed for FedRAMP High.

↳ fedramp_moderate_settings Google\Cloud\AssuredWorkloads\V1beta1\Workload\FedrampModerateSettings

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 deprecated as of Feb 28, 2022. In order to create a Keyring, callers should specify, ENCRYPTION_KEYS_PROJECT or KEYRING in ResourceSettings.resource_type field.

↳ 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.

↳ compliant_but_disallowed_services array

Output only. Urls for services which are compliant for this Assured Workload, but which are currently disallowed by the ResourceUsageRestriction org policy. Invoke RestrictAllowedResources endpoint to allow your project developers to use these services in their environment."

getName

Optional. The resource name of the workload.

Format: organizations/{organization}/locations/{location}/workloads/{workload} Read-only.

Returns
TypeDescription
string

setName

Optional. The resource name of the workload.

Format: organizations/{organization}/locations/{location}/workloads/{workload} Read-only.

Parameter
NameDescription
var string
Returns
TypeDescription
$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
TypeDescription
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
NameDescription
var string
Returns
TypeDescription
$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
TypeDescription
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
NameDescription
var array<Google\Cloud\AssuredWorkloads\V1beta1\Workload\ResourceInfo>
Returns
TypeDescription
$this

getComplianceRegime

Required. Immutable. Compliance Regime associated with this workload.

Returns
TypeDescription
int

setComplianceRegime

Required. Immutable. Compliance Regime associated with this workload.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getCreateTime

Output only. Immutable. The Workload creation timestamp.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasCreateTime

clearCreateTime

setCreateTime

Output only. Immutable. The Workload creation timestamp.

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this

getBillingAccount

Output 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
TypeDescription
string

setBillingAccount

Output 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
NameDescription
var string
Returns
TypeDescription
$this

getIl4Settings

Input only. Immutable. Settings specific to resources needed for IL4.

Returns
TypeDescription
Google\Cloud\AssuredWorkloads\V1beta1\Workload\IL4Settings|null

hasIl4Settings

setIl4Settings

Input only. Immutable. Settings specific to resources needed for IL4.

Parameter
NameDescription
var Google\Cloud\AssuredWorkloads\V1beta1\Workload\IL4Settings
Returns
TypeDescription
$this

getCjisSettings

Input only. Immutable. Settings specific to resources needed for CJIS.

Returns
TypeDescription
Google\Cloud\AssuredWorkloads\V1beta1\Workload\CJISSettings|null

hasCjisSettings

setCjisSettings

Input only. Immutable. Settings specific to resources needed for CJIS.

Parameter
NameDescription
var Google\Cloud\AssuredWorkloads\V1beta1\Workload\CJISSettings
Returns
TypeDescription
$this

getFedrampHighSettings

Input only. Immutable. Settings specific to resources needed for FedRAMP High.

Returns
TypeDescription
Google\Cloud\AssuredWorkloads\V1beta1\Workload\FedrampHighSettings|null

hasFedrampHighSettings

setFedrampHighSettings

Input only. Immutable. Settings specific to resources needed for FedRAMP High.

Parameter
NameDescription
var Google\Cloud\AssuredWorkloads\V1beta1\Workload\FedrampHighSettings
Returns
TypeDescription
$this

getFedrampModerateSettings

Input only. Immutable. Settings specific to resources needed for FedRAMP Moderate.

Returns
TypeDescription
Google\Cloud\AssuredWorkloads\V1beta1\Workload\FedrampModerateSettings|null

hasFedrampModerateSettings

setFedrampModerateSettings

Input only. Immutable. Settings specific to resources needed for FedRAMP Moderate.

Parameter
NameDescription
var Google\Cloud\AssuredWorkloads\V1beta1\Workload\FedrampModerateSettings
Returns
TypeDescription
$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
TypeDescription
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
NameDescription
var string
Returns
TypeDescription
$this

getLabels

Optional. Labels applied to the workload.

Returns
TypeDescription
Google\Protobuf\Internal\MapField

setLabels

Optional. Labels applied to the workload.

Parameter
NameDescription
var array|Google\Protobuf\Internal\MapField
Returns
TypeDescription
$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
TypeDescription
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
NameDescription
var string
Returns
TypeDescription
$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 deprecated as of Feb 28, 2022. In order to create a Keyring, callers should specify, ENCRYPTION_KEYS_PROJECT or KEYRING in ResourceSettings.resource_type field.

Returns
TypeDescription
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 deprecated as of Feb 28, 2022. In order to create a Keyring, callers should specify, ENCRYPTION_KEYS_PROJECT or KEYRING in ResourceSettings.resource_type field.

Parameter
NameDescription
var Google\Cloud\AssuredWorkloads\V1beta1\Workload\KMSSettings
Returns
TypeDescription
$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
TypeDescription
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
NameDescription
var array<Google\Cloud\AssuredWorkloads\V1beta1\Workload\ResourceSettings>
Returns
TypeDescription
$this

getKajEnrollmentState

Output only. Represents the KAJ enrollment state of the given workload.

Returns
TypeDescription
int

setKajEnrollmentState

Output only. Represents the KAJ enrollment state of the given workload.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getEnableSovereignControls

Optional. Indicates the sovereignty status of the given workload.

Currently meant to be used by Europe/Canada customers.

Returns
TypeDescription
bool

setEnableSovereignControls

Optional. Indicates the sovereignty status of the given workload.

Currently meant to be used by Europe/Canada customers.

Parameter
NameDescription
var bool
Returns
TypeDescription
$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
TypeDescription
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
NameDescription
var Google\Cloud\AssuredWorkloads\V1beta1\Workload\SaaEnrollmentResponse
Returns
TypeDescription
$this

getCompliantButDisallowedServices

Output only. Urls for services which are compliant for this Assured Workload, but which are currently disallowed by the ResourceUsageRestriction org policy.

Invoke RestrictAllowedResources endpoint to allow your project developers to use these services in their environment."

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setCompliantButDisallowedServices

Output only. Urls for services which are compliant for this Assured Workload, but which are currently disallowed by the ResourceUsageRestriction org policy.

Invoke RestrictAllowedResources endpoint to allow your project developers to use these services in their environment."

Parameter
NameDescription
var string[]
Returns
TypeDescription
$this

getComplianceRegimeSettings

Returns
TypeDescription
string