Class: Google::Apis::GkehubV1beta1::ResourceManifest
- Inherits:
-
Object
- Object
- Google::Apis::GkehubV1beta1::ResourceManifest
- 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
ResourceManifest represents a single Kubernetes resource to be applied to the cluster.
Instance Attribute Summary collapse
-
#cluster_scoped ⇒ Boolean
(also: #cluster_scoped?)
Whether the resource provided in the manifest is
cluster_scoped
. -
#manifest ⇒ String
YAML manifest of the resource.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ResourceManifest
constructor
A new instance of ResourceManifest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ResourceManifest
Returns a new instance of ResourceManifest.
1330 1331 1332 |
# File 'lib/google/apis/gkehub_v1beta1/classes.rb', line 1330 def initialize(**args) update!(**args) end |
Instance Attribute Details
#cluster_scoped ⇒ Boolean Also known as: cluster_scoped?
Whether the resource provided in the manifest is cluster_scoped
. If unset,
the manifest is assumed to be namespace scoped. This field is used for REST
mapping when applying the resource in a cluster.
Corresponds to the JSON property clusterScoped
1322 1323 1324 |
# File 'lib/google/apis/gkehub_v1beta1/classes.rb', line 1322 def cluster_scoped @cluster_scoped end |
#manifest ⇒ String
YAML manifest of the resource.
Corresponds to the JSON property manifest
1328 1329 1330 |
# File 'lib/google/apis/gkehub_v1beta1/classes.rb', line 1328 def manifest @manifest end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1335 1336 1337 1338 |
# File 'lib/google/apis/gkehub_v1beta1/classes.rb', line 1335 def update!(**args) @cluster_scoped = args[:cluster_scoped] if args.key?(:cluster_scoped) @manifest = args[:manifest] if args.key?(:manifest) end |