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
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
Enum of type ResourceType.
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
Enum of type ResourceType.
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-09 UTC."],[],[],null,["# Google Cloud Assured Workloads V1beta1 Client - Class ResourceSettings (1.0.5)\n\nVersion latestkeyboard_arrow_down\n\n- [1.0.5 (latest)](/php/docs/reference/cloud-assured-workloads/latest/V1beta1.Workload.ResourceSettings)\n- [1.0.4](/php/docs/reference/cloud-assured-workloads/1.0.4/V1beta1.Workload.ResourceSettings)\n- [0.11.5](/php/docs/reference/cloud-assured-workloads/0.11.5/V1beta1.Workload.ResourceSettings)\n- [0.10.2](/php/docs/reference/cloud-assured-workloads/0.10.2/V1beta1.Workload.ResourceSettings)\n- [0.9.1](/php/docs/reference/cloud-assured-workloads/0.9.1/V1beta1.Workload.ResourceSettings)\n- [0.8.3](/php/docs/reference/cloud-assured-workloads/0.8.3/V1beta1.Workload.ResourceSettings)\n- [0.7.3](/php/docs/reference/cloud-assured-workloads/0.7.3/V1beta1.Workload.ResourceSettings) \n| **Beta**\n|\n|\n| This library is covered by the [Pre-GA Offerings Terms](/terms/service-terms#1)\n| of the Terms of Service. Pre-GA libraries might have limited support,\n| and changes to pre-GA libraries might not be compatible with other pre-GA versions.\n| For more information, see the\n[launch stage descriptions](/products#product-launch-stages). \nReference documentation and code samples for the Google Cloud Assured Workloads V1beta1 Client class ResourceSettings.\n\nRepresent the custom settings for the resources to be created.\n\nGenerated from protobuf message `google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ AssuredWorkloads \\\\ V1beta1 \\\\ Workload\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getResourceId\n\nResource identifier.\n\nFor a project this represents project_id. If the project is already\ntaken, the workload creation will fail.\nFor KeyRing, this represents the keyring_id.\nFor a folder, don't set this value as folder_id is assigned by Google.\n\n### setResourceId\n\nResource identifier.\n\nFor a project this represents project_id. If the project is already\ntaken, the workload creation will fail.\nFor KeyRing, this represents the keyring_id.\nFor a folder, don't set this value as folder_id is assigned by Google.\n\n### getResourceType\n\nIndicates the type of resource. This field should be specified to\ncorrespond the id to the right project type (CONSUMER_PROJECT or\nENCRYPTION_KEYS_PROJECT)\n\n### setResourceType\n\nIndicates the type of resource. This field should be specified to\ncorrespond the id to the right project type (CONSUMER_PROJECT or\nENCRYPTION_KEYS_PROJECT)\n\n### getDisplayName\n\nUser-assigned resource display name.\n\nIf not empty it will be used to create a resource with the specified\nname.\n\n### setDisplayName\n\nUser-assigned resource display name.\n\nIf not empty it will be used to create a resource with the specified\nname."]]