Class: Google::Apis::GkebackupV1::VolumeDataRestorePolicyOverride
- Inherits:
-
Object
- Object
- Google::Apis::GkebackupV1::VolumeDataRestorePolicyOverride
- 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
-
#policy ⇒ String
Required.
-
#selected_pvcs ⇒ Google::Apis::GkebackupV1::NamespacedNames
A list of namespaced Kubernetes resources.
Instance Method Summary collapse
-
#initialize(**args) ⇒ VolumeDataRestorePolicyOverride
constructor
A new instance of VolumeDataRestorePolicyOverride.
-
#update!(**args) ⇒ Object
Update properties of this object.
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
#policy ⇒ String
Required. The VolumeDataRestorePolicy to apply when restoring volumes in scope.
Corresponds to the JSON property policy
2690 2691 2692 |
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 2690 def policy @policy end |
#selected_pvcs ⇒ Google::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 |