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

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/serviceconsumermanagement_v1/classes.rb,
lib/google/apis/serviceconsumermanagement_v1/representations.rb,
lib/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

Constructor Details

#initialize(**args) ⇒ PolicyBinding

Returns a new instance of PolicyBinding.



3126
3127
3128
# File 'lib/google/apis/serviceconsumermanagement_v1/classes.rb', line 3126

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

Instance Attribute Details

#membersArray<String>

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

Returns:

  • (Array<String>)


3118
3119
3120
# File 'lib/google/apis/serviceconsumermanagement_v1/classes.rb', line 3118

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)


3124
3125
3126
# File 'lib/google/apis/serviceconsumermanagement_v1/classes.rb', line 3124

def role
  @role
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3131
3132
3133
3134
# File 'lib/google/apis/serviceconsumermanagement_v1/classes.rb', line 3131

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