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
Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$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 | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
var |
int
|
Returns | |
---|---|
Type | Description |
$this |
getDisplayName
User-assigned resource display name.
If not empty it will be used to create a resource with the specified name.
Returns | |
---|---|
Type | Description |
string |
setDisplayName
User-assigned resource display name.
If not empty it will be used to create a resource with the specified name.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |