Class: Google::Apis::ServicenetworkingV1beta::PolicyBinding
- Inherits:
-
Object
- Object
- Google::Apis::ServicenetworkingV1beta::PolicyBinding
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/servicenetworking_v1beta/classes.rb,
lib/google/apis/servicenetworking_v1beta/representations.rb,
lib/google/apis/servicenetworking_v1beta/representations.rb
Overview
Grouping of IAM role and IAM member.
Instance Attribute Summary collapse
-
#member ⇒ String
Required.
-
#role ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PolicyBinding
constructor
A new instance of PolicyBinding.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ PolicyBinding
Returns a new instance of PolicyBinding.
3117 3118 3119 |
# File 'lib/google/apis/servicenetworking_v1beta/classes.rb', line 3117 def initialize(**args) update!(**args) end |
Instance Attribute Details
#member ⇒ String
Required. Member to bind the role with. See /iam/docs/reference/rest/v1/Policy#
Binding for how to format each member. Eg. - user:myuser@mydomain.com -
serviceAccount:my-service-account@app.gserviceaccount.com
Corresponds to the JSON property member
3107 3108 3109 |
# File 'lib/google/apis/servicenetworking_v1beta/classes.rb', line 3107 def member @member end |
#role ⇒ String
Required. Role to apply. Only allowlisted roles can be used at the specified
granularity. The role must be one of the following: - 'roles/container.
hostServiceAgentUser' applied on the shared VPC host project - 'roles/compute.
securityAdmin' applied on the shared VPC host project
Corresponds to the JSON property role
3115 3116 3117 |
# File 'lib/google/apis/servicenetworking_v1beta/classes.rb', line 3115 def role @role end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3122 3123 3124 3125 |
# File 'lib/google/apis/servicenetworking_v1beta/classes.rb', line 3122 def update!(**args) @member = args[:member] if args.key?(:member) @role = args[:role] if args.key?(:role) end |