Class: Google::Apis::GkehubV1beta::ResourceManifest
- Inherits:
-
Object
- Object
- Google::Apis::GkehubV1beta::ResourceManifest
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/gkehub_v1beta/classes.rb,
lib/google/apis/gkehub_v1beta/representations.rb,
lib/google/apis/gkehub_v1beta/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?)
Output only.
-
#manifest ⇒ String
Output only.
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.
5487 5488 5489 |
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 5487 def initialize(**args) update!(**args) end |
Instance Attribute Details
#cluster_scoped ⇒ Boolean Also known as: cluster_scoped?
Output only. 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
5479 5480 5481 |
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 5479 def cluster_scoped @cluster_scoped end |
#manifest ⇒ String
Output only. YAML manifest of the resource.
Corresponds to the JSON property manifest
5485 5486 5487 |
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 5485 def manifest @manifest end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5492 5493 5494 5495 |
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 5492 def update!(**args) @cluster_scoped = args[:cluster_scoped] if args.key?(:cluster_scoped) @manifest = args[:manifest] if args.key?(:manifest) end |