Class: Google::Apis::GkehubV1alpha2::ResourceManifest

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/gkehub_v1alpha2/classes.rb,
lib/google/apis/gkehub_v1alpha2/representations.rb,
lib/google/apis/gkehub_v1alpha2/representations.rb

Overview

ResourceManifest represents a single Kubernetes resource to be applied to the cluster.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ResourceManifest

Returns a new instance of ResourceManifest.



1307
1308
1309
# File 'lib/google/apis/gkehub_v1alpha2/classes.rb', line 1307

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

Instance Attribute Details

#cluster_scopedBoolean 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

Returns:

  • (Boolean)


1299
1300
1301
# File 'lib/google/apis/gkehub_v1alpha2/classes.rb', line 1299

def cluster_scoped
  @cluster_scoped
end

#manifestString

YAML manifest of the resource. Corresponds to the JSON property manifest

Returns:

  • (String)


1305
1306
1307
# File 'lib/google/apis/gkehub_v1alpha2/classes.rb', line 1305

def manifest
  @manifest
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1312
1313
1314
1315
# File 'lib/google/apis/gkehub_v1alpha2/classes.rb', line 1312

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