class Google::Apis::ServicenetworkingV1::PolicyBinding
Grouping of IAM role and IAM member.
Attributes
member[RW]
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` @return [String]
role[RW]
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` @return [String]
Public Class Methods
new(**args)
click to toggle source
# File lib/google/apis/servicenetworking_v1/classes.rb, line 2965 def initialize(**args) update!(**args) end
Public Instance Methods
update!(**args)
click to toggle source
Update properties of this object
# File lib/google/apis/servicenetworking_v1/classes.rb, line 2970 def update!(**args) @member = args[:member] if args.key?(:member) @role = args[:role] if args.key?(:role) end