Class: Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1beta1WorkloadResourceSettings
- Inherits:
-
Object
- Object
- Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1beta1WorkloadResourceSettings
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/assuredworkloads_v1/classes.rb,
lib/google/apis/assuredworkloads_v1/representations.rb,
lib/google/apis/assuredworkloads_v1/representations.rb
Overview
Represent the custom settings for the resources to be created.
Instance Attribute Summary collapse
-
#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.
534 535 536 |
# File 'lib/google/apis/assuredworkloads_v1/classes.rb', line 534 def initialize(**args) update!(**args) end |
Instance Attribute Details
#resource_id ⇒ String
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
526 527 528 |
# File 'lib/google/apis/assuredworkloads_v1/classes.rb', line 526 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
532 533 534 |
# File 'lib/google/apis/assuredworkloads_v1/classes.rb', line 532 def resource_type @resource_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
539 540 541 542 |
# File 'lib/google/apis/assuredworkloads_v1/classes.rb', line 539 def update!(**args) @resource_id = args[:resource_id] if args.key?(:resource_id) @resource_type = args[:resource_type] if args.key?(:resource_type) end |