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

Reference documentation and code samples for the Google Cloud Assured Workloads V1beta1 Client class ResourceSettings.

Represent the custom settings for the resources to be created.

Generated from protobuf message google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings

Namespace

Google \ Cloud \ AssuredWorkloads \ V1beta1 \ Workload

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ resource_id string

Resource identifier. For a project this represents project_id. If the project is already taken, the workload creation will fail. For KeyRing, this represents the keyring_id. For a folder, don't set this value as folder_id is assigned by Google.

↳ resource_type int

Indicates the type of resource. This field should be specified to correspond the id to the right project type (CONSUMER_PROJECT or ENCRYPTION_KEYS_PROJECT)

↳ display_name string

User-assigned resource display name. If not empty it will be used to create a resource with the specified name.

getResourceId

Resource identifier.

For a project this represents project_id. If the project is already taken, the workload creation will fail. For KeyRing, this represents the keyring_id. For a folder, don't set this value as folder_id is assigned by Google.

Returns
TypeDescription
string

setResourceId

Resource identifier.

For a project this represents project_id. If the project is already taken, the workload creation will fail. For KeyRing, this represents the keyring_id. For a folder, don't set this value as folder_id is assigned by Google.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getResourceType

Indicates the type of resource. This field should be specified to correspond the id to the right project type (CONSUMER_PROJECT or ENCRYPTION_KEYS_PROJECT)

Returns
TypeDescription
int

setResourceType

Indicates the type of resource. This field should be specified to correspond the id to the right project type (CONSUMER_PROJECT or ENCRYPTION_KEYS_PROJECT)

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getDisplayName

User-assigned resource display name.

If not empty it will be used to create a resource with the specified name.

Returns
TypeDescription
string

setDisplayName

User-assigned resource display name.

If not empty it will be used to create a resource with the specified name.

Parameter
NameDescription
var string
Returns
TypeDescription
$this