Google Cloud Gke Backup V1 Client - Class VolumeDataRestorePolicyOverride (1.0.1)

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

Defines an override to apply a VolumeDataRestorePolicy for scoped resources.

Generated from protobuf message google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverride

Namespace

Google \ Cloud \ GkeBackup \ V1

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.

↳ selected_pvcs NamespacedNames

A list of PVCs to apply the policy override 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

getSelectedPvcs

A list of PVCs to apply the policy override to.

Returns
Type Description
NamespacedNames|null

hasSelectedPvcs

setSelectedPvcs

A list of PVCs to apply the policy override to.

Parameter
Name Description
var NamespacedNames
Returns
Type Description
$this

getScope

Returns
Type Description
string