Class: Google::Apis::GkehubV1beta1::ResourceOptions
- Inherits:
-
Object
- Object
- Google::Apis::GkehubV1beta1::ResourceOptions
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/gkehub_v1beta1/classes.rb,
lib/google/apis/gkehub_v1beta1/representations.rb,
lib/google/apis/gkehub_v1beta1/representations.rb
Overview
ResourceOptions represent options for Kubernetes resource generation.
Instance Attribute Summary collapse
-
#connect_version ⇒ String
Optional.
-
#v1beta1_crd ⇒ Boolean
(also: #v1beta1_crd?)
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ResourceOptions
constructor
A new instance of ResourceOptions.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ResourceOptions
Returns a new instance of ResourceOptions.
1125 1126 1127 |
# File 'lib/google/apis/gkehub_v1beta1/classes.rb', line 1125 def initialize(**args) update!(**args) end |
Instance Attribute Details
#connect_version ⇒ String
Optional. The Connect agent version to use for connect_resources. Defaults to
the latest GKE Connect version. The version must be a currently supported
version, obsolete versions will be rejected.
Corresponds to the JSON property connectVersion
1115 1116 1117 |
# File 'lib/google/apis/gkehub_v1beta1/classes.rb', line 1115 def connect_version @connect_version end |
#v1beta1_crd ⇒ Boolean Also known as: v1beta1_crd?
Optional. Use apiextensions/v1beta1 instead of apiextensions/v1 for
CustomResourceDefinition resources. This option should be set for clusters
with Kubernetes apiserver versions <1.16.
Corresponds to the JSON property v1beta1Crd
1122 1123 1124 |
# File 'lib/google/apis/gkehub_v1beta1/classes.rb', line 1122 def v1beta1_crd @v1beta1_crd end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1130 1131 1132 1133 |
# File 'lib/google/apis/gkehub_v1beta1/classes.rb', line 1130 def update!(**args) @connect_version = args[:connect_version] if args.key?(:connect_version) @v1beta1_crd = args[:v1beta1_crd] if args.key?(:v1beta1_crd) end |