Class: Google::Apis::ServiceconsumermanagementV1::PolicyBinding

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/serviceconsumermanagement_v1/classes.rb,
generated/google/apis/serviceconsumermanagement_v1/representations.rb,
generated/google/apis/serviceconsumermanagement_v1/representations.rb

Overview

Translates to IAM Policy bindings (without auditing at this level)

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ PolicyBinding

Returns a new instance of PolicyBinding



2631
2632
2633
# File 'generated/google/apis/serviceconsumermanagement_v1/classes.rb', line 2631

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

Instance Attribute Details

#membersArray<String>

Uses the same format as in IAM policy. member must include both prefix and ID. For example, user:emailId, `serviceAccount:`emailId, group:emailId`. Corresponds to the JSON propertymembers`

Returns:

  • (Array<String>)


2623
2624
2625
# File 'generated/google/apis/serviceconsumermanagement_v1/classes.rb', line 2623

def members
  @members
end

#roleString

Role. (https://cloud.google.com/iam/docs/understanding-roles) For example, roles/viewer, roles/editor, or roles/owner. Corresponds to the JSON property role

Returns:

  • (String)


2629
2630
2631
# File 'generated/google/apis/serviceconsumermanagement_v1/classes.rb', line 2629

def role
  @role
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2636
2637
2638
2639
# File 'generated/google/apis/serviceconsumermanagement_v1/classes.rb', line 2636

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