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.



1483
1484
1485
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 1483

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

Instance Attribute Details

#namespacesArray<String>

Optional. A list of Kubernetes Namespaces. Corresponds to the JSON property namespaces

Returns:

  • (Array<String>)


1481
1482
1483
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 1481

def namespaces
  @namespaces
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1488
1489
1490
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 1488

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