Class: Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1WorkloadResourceInfo
- Inherits:
-
Object
- Object
- Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1WorkloadResourceInfo
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/assuredworkloads_v1/classes.rb,
generated/google/apis/assuredworkloads_v1/representations.rb,
generated/google/apis/assuredworkloads_v1/representations.rb
Overview
Represent the resources that are children of this Workload.
Instance Attribute Summary collapse
-
#resource_id ⇒ Fixnum
Resource identifier.
-
#resource_type ⇒ String
Indicates the type of resource.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudAssuredworkloadsV1WorkloadResourceInfo
constructor
A new instance of GoogleCloudAssuredworkloadsV1WorkloadResourceInfo.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudAssuredworkloadsV1WorkloadResourceInfo
Returns a new instance of GoogleCloudAssuredworkloadsV1WorkloadResourceInfo.
219 220 221 |
# File 'generated/google/apis/assuredworkloads_v1/classes.rb', line 219 def initialize(**args) update!(**args) end |
Instance Attribute Details
#resource_id ⇒ Fixnum
Resource identifier. For a project this represents project_number.
Corresponds to the JSON property resourceId
212 213 214 |
# File 'generated/google/apis/assuredworkloads_v1/classes.rb', line 212 def resource_id @resource_id end |
#resource_type ⇒ String
Indicates the type of resource.
Corresponds to the JSON property resourceType
217 218 219 |
# File 'generated/google/apis/assuredworkloads_v1/classes.rb', line 217 def resource_type @resource_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
224 225 226 227 |
# File 'generated/google/apis/assuredworkloads_v1/classes.rb', line 224 def update!(**args) @resource_id = args[:resource_id] if args.key?(:resource_id) @resource_type = args[:resource_type] if args.key?(:resource_type) end |