Class: Google::Apis::ServicenetworkingV1beta::PolicyBinding

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PolicyBinding

Returns a new instance of PolicyBinding.



3227
3228
3229
# File 'lib/google/apis/servicenetworking_v1beta/classes.rb', line 3227

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#memberString

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

Returns:

  • (String)


3213
3214
3215
# File 'lib/google/apis/servicenetworking_v1beta/classes.rb', line 3213

def member
  @member
end

#roleString

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/compute.xpnAdmin' 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 Corresponds to the JSON property role

Returns:

  • (String)


3225
3226
3227
# File 'lib/google/apis/servicenetworking_v1beta/classes.rb', line 3225

def role
  @role
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3232
3233
3234
3235
# File 'lib/google/apis/servicenetworking_v1beta/classes.rb', line 3232

def update!(**args)
  @member = args[:member] if args.key?(:member)
  @role = args[:role] if args.key?(:role)
end