Class: Google::Apis::GkehubV1alpha::PolicyBinding

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



5103
5104
5105
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 5103

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)


5101
5102
5103
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 5101

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5108
5109
5110
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 5108

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