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.



5578
5579
5580
# File 'lib/google/apis/container_v1beta1/classes.rb', line 5578

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)


5576
5577
5578
# File 'lib/google/apis/container_v1beta1/classes.rb', line 5576

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5583
5584
5585
# File 'lib/google/apis/container_v1beta1/classes.rb', line 5583

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