Class: Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1WorkloadResourceSettings
- Inherits:
-
Object
- Object
- Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1WorkloadResourceSettings
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/assuredworkloads_v1beta1/classes.rb,
lib/google/apis/assuredworkloads_v1beta1/representations.rb,
lib/google/apis/assuredworkloads_v1beta1/representations.rb
Overview
Represent the custom settings for the resources to be created.
Instance Attribute Summary collapse
-
#display_name ⇒ String
User-assigned resource display name.
-
#resource_id ⇒ String
Resource identifier.
-
#resource_type ⇒ String
Indicates the type of resource.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudAssuredworkloadsV1beta1WorkloadResourceSettings
constructor
A new instance of GoogleCloudAssuredworkloadsV1beta1WorkloadResourceSettings.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudAssuredworkloadsV1beta1WorkloadResourceSettings
Returns a new instance of GoogleCloudAssuredworkloadsV1beta1WorkloadResourceSettings.
1135 1136 1137 |
# File 'lib/google/apis/assuredworkloads_v1beta1/classes.rb', line 1135 def initialize(**args) update!(**args) end |
Instance Attribute Details
#display_name ⇒ String
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
1119 1120 1121 |
# File 'lib/google/apis/assuredworkloads_v1beta1/classes.rb', line 1119 def display_name @display_name end |
#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.
Corresponds to the JSON property resourceId
1127 1128 1129 |
# File 'lib/google/apis/assuredworkloads_v1beta1/classes.rb', line 1127 def resource_id @resource_id end |
#resource_type ⇒ String
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
1133 1134 1135 |
# File 'lib/google/apis/assuredworkloads_v1beta1/classes.rb', line 1133 def resource_type @resource_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1140 1141 1142 1143 1144 |
# File 'lib/google/apis/assuredworkloads_v1beta1/classes.rb', line 1140 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 |