Class: Google::Apis::GkebackupV1::GroupKind
- Inherits:
-
Object
- Object
- Google::Apis::GkebackupV1::GroupKind
- 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
-
#resource_group ⇒ String
Optional.
-
#resource_kind ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GroupKind
constructor
A new instance of GroupKind.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GroupKind
Returns a new instance of GroupKind.
1138 1139 1140 |
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 1138 def initialize(**args) update!(**args) end |
Instance Attribute Details
#resource_group ⇒ String
Optional. 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
1130 1131 1132 |
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 1130 def resource_group @resource_group end |
#resource_kind ⇒ String
Optional. Kind of a Kubernetes resource, must be in UpperCamelCase (PascalCase)
and singular form. E.g. "CustomResourceDefinition", "StorageClass", etc.
Corresponds to the JSON property resourceKind
1136 1137 1138 |
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 1136 def resource_kind @resource_kind end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1143 1144 1145 1146 |
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 1143 def update!(**args) @resource_group = args[:resource_group] if args.key?(:resource_group) @resource_kind = args[:resource_kind] if args.key?(:resource_kind) end |