Class: Google::Apis::GkebackupV1::VolumeDataRestorePolicyOverride

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

Defines an override to apply a VolumeDataRestorePolicy for scoped resources.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ VolumeDataRestorePolicyOverride

Returns a new instance of VolumeDataRestorePolicyOverride.



2697
2698
2699
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 2697

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

Instance Attribute Details

#policyString

Required. The VolumeDataRestorePolicy to apply when restoring volumes in scope. Corresponds to the JSON property policy

Returns:

  • (String)


2690
2691
2692
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 2690

def policy
  @policy
end

#selected_pvcsGoogle::Apis::GkebackupV1::NamespacedNames

A list of namespaced Kubernetes resources. Corresponds to the JSON property selectedPvcs



2695
2696
2697
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 2695

def selected_pvcs
  @selected_pvcs
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2702
2703
2704
2705
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 2702

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