Class: Google::Apis::GkebackupV1::Namespaces

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

Overview

A list of Kubernetes Namespaces

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Namespaces

Returns a new instance of Namespaces.



1170
1171
1172
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 1170

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

Instance Attribute Details

#namespacesArray<String>

A list of Kubernetes Namespaces Corresponds to the JSON property namespaces

Returns:

  • (Array<String>)


1168
1169
1170
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 1168

def namespaces
  @namespaces
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1175
1176
1177
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 1175

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