Class: Google::Apis::GkebackupV1::VolumeDataRestorePolicyBinding

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

Binds resources in the scope to the given VolumeDataRestorePolicy.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ VolumeDataRestorePolicyBinding

Returns a new instance of VolumeDataRestorePolicyBinding.



2668
2669
2670
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 2668

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)


2661
2662
2663
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 2661

def policy
  @policy
end

#volume_typeString

The volume type, as determined by the PVC's bound PV, to apply the policy to. Corresponds to the JSON property volumeType

Returns:

  • (String)


2666
2667
2668
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 2666

def volume_type
  @volume_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2673
2674
2675
2676
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 2673

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