Class: Google::Apis::GkebackupV1::GroupKind

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

This is a direct map to the Kubernetes GroupKind type GroupKind and is used for identifying specific "types" of resources to restore.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GroupKind

Returns a new instance of GroupKind.



857
858
859
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 857

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

Instance Attribute Details

#resource_groupString

API group string of a Kubernetes resource, e.g. "apiextensions.k8s.io", " storage.k8s.io", etc. Note: use empty string for core API group Corresponds to the JSON property resourceGroup

Returns:

  • (String)


849
850
851
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 849

def resource_group
  @resource_group
end

#resource_kindString

Kind of a Kubernetes resource, e.g. "CustomResourceDefinition", "StorageClass", etc. Corresponds to the JSON property resourceKind

Returns:

  • (String)


855
856
857
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 855

def resource_kind
  @resource_kind
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



862
863
864
865
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 862

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