Class: Google::Apis::ServicenetworkingV1::PolicyBinding
- Inherits:
-
Object
- Object
- Google::Apis::ServicenetworkingV1::PolicyBinding
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/servicenetworking_v1/classes.rb,
lib/google/apis/servicenetworking_v1/representations.rb,
lib/google/apis/servicenetworking_v1/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.
3732 3733 3734 |
# File 'lib/google/apis/servicenetworking_v1/classes.rb', line 3732 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
3717 3718 3719 |
# File 'lib/google/apis/servicenetworking_v1/classes.rb', line 3717 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 - 'roles/compute.
networkAdmin' applied on the shared VPC host project - 'roles/tpu.xpnAgent'
applied on the shared VPC host project - 'roles/dns.admin' applied on the
shared VPC host project - 'roles/logging.admin' applied on the shared VPC host
project - 'roles/monitoring.viewer' applied on the shared VPC host project - '
roles/servicemanagement.quotaViewer' applied on the shared VPC host project
Corresponds to the JSON property role
3730 3731 3732 |
# File 'lib/google/apis/servicenetworking_v1/classes.rb', line 3730 def role @role end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3737 3738 3739 3740 |
# File 'lib/google/apis/servicenetworking_v1/classes.rb', line 3737 def update!(**args) @member = args[:member] if args.key?(:member) @role = args[:role] if args.key?(:role) end |