Class: Google::Apis::ServiceconsumermanagementV1::PolicyBinding
- Inherits:
-
Object
- Object
- Google::Apis::ServiceconsumermanagementV1::PolicyBinding
- 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
-
#members ⇒ Array<String>
Uses the same format as in IAM policy.
-
#role ⇒ String
Role.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PolicyBinding
constructor
A new instance of PolicyBinding.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ PolicyBinding
Returns a new instance of PolicyBinding
2513 2514 2515 |
# File 'generated/google/apis/serviceconsumermanagement_v1/classes.rb', line 2513 def initialize(**args) update!(**args) end |
Instance Attribute Details
#members ⇒ Array<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`
2505 2506 2507 |
# File 'generated/google/apis/serviceconsumermanagement_v1/classes.rb', line 2505 def members @members end |
#role ⇒ String
Role. (https://cloud.google.com/iam/docs/understanding-roles)
For example, roles/viewer
, roles/editor
, or roles/owner
.
Corresponds to the JSON property role
2511 2512 2513 |
# File 'generated/google/apis/serviceconsumermanagement_v1/classes.rb', line 2511 def role @role end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2518 2519 2520 2521 |
# File 'generated/google/apis/serviceconsumermanagement_v1/classes.rb', line 2518 def update!(**args) @members = args[:members] if args.key?(:members) @role = args[:role] if args.key?(:role) end |