Class: Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1WorkloadResourceInfo
- Inherits:
-
Object
- Object
- Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1WorkloadResourceInfo
- 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 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) ⇒ GoogleCloudAssuredworkloadsV1beta1WorkloadResourceInfo
constructor
A new instance of GoogleCloudAssuredworkloadsV1beta1WorkloadResourceInfo.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudAssuredworkloadsV1beta1WorkloadResourceInfo
Returns a new instance of GoogleCloudAssuredworkloadsV1beta1WorkloadResourceInfo.
1100 1101 1102 |
# File 'lib/google/apis/assuredworkloads_v1beta1/classes.rb', line 1100 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
1093 1094 1095 |
# File 'lib/google/apis/assuredworkloads_v1beta1/classes.rb', line 1093 def resource_id @resource_id end |
#resource_type ⇒ String
Indicates the type of resource.
Corresponds to the JSON property resourceType
1098 1099 1100 |
# File 'lib/google/apis/assuredworkloads_v1beta1/classes.rb', line 1098 def resource_type @resource_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1105 1106 1107 1108 |
# File 'lib/google/apis/assuredworkloads_v1beta1/classes.rb', line 1105 def update!(**args) @resource_id = args[:resource_id] if args.key?(:resource_id) @resource_type = args[:resource_type] if args.key?(:resource_type) end |