Class: Google::Apis::GkebackupV1::VolumeDataRestorePolicyBinding
- Inherits:
-
Object
- Object
- Google::Apis::GkebackupV1::VolumeDataRestorePolicyBinding
- 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
Binds resources in the scope to the given VolumeDataRestorePolicy.
Instance Attribute Summary collapse
-
#policy ⇒ String
Required.
-
#volume_type ⇒ String
The volume type, as determined by the PVC's bound PV, to apply the policy to.
Instance Method Summary collapse
-
#initialize(**args) ⇒ VolumeDataRestorePolicyBinding
constructor
A new instance of VolumeDataRestorePolicyBinding.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ VolumeDataRestorePolicyBinding
Returns a new instance of VolumeDataRestorePolicyBinding.
2672 2673 2674 |
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 2672 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
2665 2666 2667 |
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 2665 def policy @policy end |
#volume_type ⇒ String
The volume type, as determined by the PVC's bound PV, to apply the policy to.
Corresponds to the JSON property volumeType
2670 2671 2672 |
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 2670 def volume_type @volume_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2677 2678 2679 2680 |
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 2677 def update!(**args) @policy = args[:policy] if args.key?(:policy) @volume_type = args[:volume_type] if args.key?(:volume_type) end |