class Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1WorkloadResourceSettings

Represent the custom settings for the resources to be created.

Attributes

display_name[RW]

User-assigned resource display name. If not empty it will be used to create a resource with the specified name. Corresponds to the JSON property `displayName` @return [String]

resource_id[RW]

Resource identifier. For a project this represents project_id. If the project is already taken, the workload creation will fail. Corresponds to the JSON property `resourceId` @return [String]

resource_type[RW]

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) Corresponds to the JSON property `resourceType` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/assuredworkloads_v1/classes.rb, line 259
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/assuredworkloads_v1/classes.rb, line 264
def update!(**args)
  @display_name = args[:display_name] if args.key?(:display_name)
  @resource_id = args[:resource_id] if args.key?(:resource_id)
  @resource_type = args[:resource_type] if args.key?(:resource_type)
end