Class: Google::Apis::GkehubV2::PolicyControllerPolicyContentSpec
- Inherits:
-
Object
- Object
- Google::Apis::GkehubV2::PolicyControllerPolicyContentSpec
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/gkehub_v2/classes.rb,
lib/google/apis/gkehub_v2/representations.rb,
lib/google/apis/gkehub_v2/representations.rb
Overview
PolicyContentSpec defines the user's desired content configuration on the cluster.
Instance Attribute Summary collapse
-
#bundles ⇒ Hash<String,Google::Apis::GkehubV2::PolicyControllerBundleInstallSpec>
map of bundle name to BundleInstallSpec.
-
#template_library ⇒ Google::Apis::GkehubV2::PolicyControllerTemplateLibraryConfig
The config specifying which default library templates to install.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PolicyControllerPolicyContentSpec
constructor
A new instance of PolicyControllerPolicyContentSpec.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ PolicyControllerPolicyContentSpec
Returns a new instance of PolicyControllerPolicyContentSpec.
2777 2778 2779 |
# File 'lib/google/apis/gkehub_v2/classes.rb', line 2777 def initialize(**args) update!(**args) end |
Instance Attribute Details
#bundles ⇒ Hash<String,Google::Apis::GkehubV2::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
2770 2771 2772 |
# File 'lib/google/apis/gkehub_v2/classes.rb', line 2770 def bundles @bundles end |
#template_library ⇒ Google::Apis::GkehubV2::PolicyControllerTemplateLibraryConfig
The config specifying which default library templates to install.
Corresponds to the JSON property templateLibrary
2775 2776 2777 |
# File 'lib/google/apis/gkehub_v2/classes.rb', line 2775 def template_library @template_library end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2782 2783 2784 2785 |
# File 'lib/google/apis/gkehub_v2/classes.rb', line 2782 def update!(**args) @bundles = args[:bundles] if args.key?(:bundles) @template_library = args[:template_library] if args.key?(:template_library) end |