Class: Google::Apis::WorkloadmanagerV1::ServiceStates

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

The state of the service.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ServiceStates

Returns a new instance of ServiceStates.



3493
3494
3495
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 3493

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

Instance Attribute Details

#iam_permissionsArray<Google::Apis::WorkloadmanagerV1::IamPermission>

Optional. Output only. The IAM permissions for the service. Corresponds to the JSON property iamPermissions



3486
3487
3488
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 3486

def iam_permissions
  @iam_permissions
end

#stateString

Output only. The overall state of the service. Corresponds to the JSON property state

Returns:

  • (String)


3491
3492
3493
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 3491

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3498
3499
3500
3501
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 3498

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