Class: Google::Apis::ServicenetworkingV1::PolicyBinding

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/servicenetworking_v1/classes.rb,
generated/google/apis/servicenetworking_v1/representations.rb,
generated/google/apis/servicenetworking_v1/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.



2850
2851
2852
# File 'generated/google/apis/servicenetworking_v1/classes.rb', line 2850

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)


2840
2841
2842
# File 'generated/google/apis/servicenetworking_v1/classes.rb', line 2840

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 Corresponds to the JSON property role

Returns:

  • (String)


2848
2849
2850
# File 'generated/google/apis/servicenetworking_v1/classes.rb', line 2848

def role
  @role
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2855
2856
2857
2858
# File 'generated/google/apis/servicenetworking_v1/classes.rb', line 2855

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