Class: Google::Apis::ContentwarehouseV1::GoogleApiServiceconsumermanagementV1PolicyBinding
- Inherits:
-
Object
- Object
- Google::Apis::ContentwarehouseV1::GoogleApiServiceconsumermanagementV1PolicyBinding
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/contentwarehouse_v1/classes.rb,
lib/google/apis/contentwarehouse_v1/representations.rb,
lib/google/apis/contentwarehouse_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) ⇒ GoogleApiServiceconsumermanagementV1PolicyBinding
constructor
A new instance of GoogleApiServiceconsumermanagementV1PolicyBinding.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleApiServiceconsumermanagementV1PolicyBinding
Returns a new instance of GoogleApiServiceconsumermanagementV1PolicyBinding.
517 518 519 |
# File 'lib/google/apis/contentwarehouse_v1/classes.rb', line 517 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
509 510 511 |
# File 'lib/google/apis/contentwarehouse_v1/classes.rb', line 509 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
515 516 517 |
# File 'lib/google/apis/contentwarehouse_v1/classes.rb', line 515 def role @role end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
522 523 524 525 |
# File 'lib/google/apis/contentwarehouse_v1/classes.rb', line 522 def update!(**args) @members = args[:members] if args.key?(:members) @role = args[:role] if args.key?(:role) end |