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.



5914
5915
5916
# File 'lib/google/apis/container_v1beta1/classes.rb', line 5914

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

Instance Attribute Details

#nameString

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

Returns:

  • (String)


5912
5913
5914
# File 'lib/google/apis/container_v1beta1/classes.rb', line 5912

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5919
5920
5921
# File 'lib/google/apis/container_v1beta1/classes.rb', line 5919

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