Class: Google::Apis::WorkloadmanagerV1::ResourceStatus

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ResourceStatus

Returns a new instance of ResourceStatus.



473
474
475
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 473

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#rules_newer_versionsArray<String>

the new version of rule id if exists Corresponds to the JSON property rulesNewerVersions

Returns:

  • (Array<String>)


466
467
468
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 466

def rules_newer_versions
  @rules_newer_versions
end

#stateString

State of the resource Corresponds to the JSON property state

Returns:

  • (String)


471
472
473
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 471

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



478
479
480
481
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 478

def update!(**args)
  @rules_newer_versions = args[:rules_newer_versions] if args.key?(:rules_newer_versions)
  @state = args[:state] if args.key?(:state)
end