Class: Google::Apis::RunV1::Namespace

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

Overview

Cloud Run fully managed: not supported Cloud Run on GKE: supported Namespace provides a scope for Names. Use of multiple namespaces is optional.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Namespace

Returns a new instance of Namespace.



1806
1807
1808
# File 'generated/google/apis/run_v1/classes.rb', line 1806

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

Instance Attribute Details

#metadataGoogle::Apis::RunV1::ObjectMeta

k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create. Corresponds to the JSON property metadata



1790
1791
1792
# File 'generated/google/apis/run_v1/classes.rb', line 1790

def 
  @metadata
end

#specGoogle::Apis::RunV1::NamespaceSpec

Cloud Run fully managed: not supported Cloud Run on GKE: supported NamespaceSpec describes the attributes on a Namespace. Corresponds to the JSON property spec



1797
1798
1799
# File 'generated/google/apis/run_v1/classes.rb', line 1797

def spec
  @spec
end

#statusGoogle::Apis::RunV1::NamespaceStatus

Cloud Run fully managed: not supported Cloud Run on GKE: supported NamespaceStatus is information about the current status of a Namespace. Corresponds to the JSON property status



1804
1805
1806
# File 'generated/google/apis/run_v1/classes.rb', line 1804

def status
  @status
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1811
1812
1813
1814
1815
# File 'generated/google/apis/run_v1/classes.rb', line 1811

def update!(**args)
  @metadata = args[:metadata] if args.key?(:metadata)
  @spec = args[:spec] if args.key?(:spec)
  @status = args[:status] if args.key?(:status)
end