Class: Google::Apis::ContainerV1beta1::PolicyBinding

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/container_v1beta1/classes.rb,
lib/google/apis/container_v1beta1/representations.rb,
lib/google/apis/container_v1beta1/representations.rb

Overview

Binauthz policy that applies to this cluster.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PolicyBinding

Returns a new instance of PolicyBinding.



5588
5589
5590
# File 'lib/google/apis/container_v1beta1/classes.rb', line 5588

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

Instance Attribute Details

#nameString

The relative resource name of the binauthz platform policy to audit. GKE platform policies have the following format: projects/project_number/ platforms/gke/policies/policy_id`. Corresponds to the JSON propertyname`

Returns:

  • (String)


5586
5587
5588
# File 'lib/google/apis/container_v1beta1/classes.rb', line 5586

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5593
5594
5595
# File 'lib/google/apis/container_v1beta1/classes.rb', line 5593

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