Google Cloud Gke Backup V1 Client - Class VolumeDataRestorePolicyBinding (0.8.1)

Reference documentation and code samples for the Google Cloud Gke Backup V1 Client class VolumeDataRestorePolicyBinding.

Binds resources in the scope to the given VolumeDataRestorePolicy.

Generated from protobuf message google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicyBinding

Namespace

Google \ Cloud \ GkeBackup \ V1 \ RestoreConfig

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ policy int

Required. The VolumeDataRestorePolicy to apply when restoring volumes in scope.

↳ volume_type int

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

getPolicy

Required. The VolumeDataRestorePolicy to apply when restoring volumes in scope.

Returns
Type Description
int

setPolicy

Required. The VolumeDataRestorePolicy to apply when restoring volumes in scope.

Parameter
Name Description
var int
Returns
Type Description
$this

getVolumeType

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

Returns
Type Description
int

hasVolumeType

setVolumeType

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

Parameter
Name Description
var int
Returns
Type Description
$this

getScope

Returns
Type Description
string