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.
3471 3472 3473 |
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 3471 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
3464 3465 3466 |
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 3464 def policy @policy end |
#selected_pvcs ⇒ Google::Apis::GkebackupV1::NamespacedNames
A list of namespaced Kubernetes resources.
Corresponds to the JSON property selectedPvcs
3469 3470 3471 |
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 3469 def selected_pvcs @selected_pvcs end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3476 3477 3478 3479 |
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 3476 def update!(**args) @policy = args[:policy] if args.key?(:policy) @selected_pvcs = args[:selected_pvcs] if args.key?(:selected_pvcs) end |