Class: Google::Apis::GkehubV1alpha::PolicyControllerPolicyContentSpec

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

PolicyContentSpec defines the user's desired content configuration on the cluster.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PolicyControllerPolicyContentSpec

Returns a new instance of PolicyControllerPolicyContentSpec.



5342
5343
5344
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 5342

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

Instance Attribute Details

#bundlesHash<String,Google::Apis::GkehubV1alpha::PolicyControllerBundleInstallSpec>

map of bundle name to BundleInstallSpec. The bundle name maps to the bundleName key in the policycontroller.gke.io/constraintData annotation on a constraint. Corresponds to the JSON property bundles



5335
5336
5337
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 5335

def bundles
  @bundles
end

#template_libraryGoogle::Apis::GkehubV1alpha::PolicyControllerTemplateLibraryConfig

The config specifying which default library templates to install. Corresponds to the JSON property templateLibrary



5340
5341
5342
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 5340

def template_library
  @template_library
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5347
5348
5349
5350
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 5347

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