Class: Google::Apis::WorkloadmanagerV1::ResourceStatus
- Inherits:
-
Object
- Object
- Google::Apis::WorkloadmanagerV1::ResourceStatus
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/workloadmanager_v1/classes.rb,
lib/google/apis/workloadmanager_v1/representations.rb,
lib/google/apis/workloadmanager_v1/representations.rb
Overview
Message describing resource status
Instance Attribute Summary collapse
-
#rules_newer_versions ⇒ Array<String>
Historical: Used before 2023-05-22 the new version of rule id if exists Corresponds to the JSON property
rulesNewerVersions. -
#state ⇒ String
State of the resource Corresponds to the JSON property
state.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ResourceStatus
constructor
A new instance of ResourceStatus.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ResourceStatus
Returns a new instance of ResourceStatus.
1118 1119 1120 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 1118 def initialize(**args) update!(**args) end |
Instance Attribute Details
#rules_newer_versions ⇒ Array<String>
Historical: Used before 2023-05-22 the new version of rule id if exists
Corresponds to the JSON property rulesNewerVersions
1111 1112 1113 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 1111 def rules_newer_versions @rules_newer_versions end |
#state ⇒ String
State of the resource
Corresponds to the JSON property state
1116 1117 1118 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 1116 def state @state end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1123 1124 1125 1126 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 1123 def update!(**args) @rules_newer_versions = args[:rules_newer_versions] if args.key?(:rules_newer_versions) @state = args[:state] if args.key?(:state) end |