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 \ V1Methods
__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 |
Google\Cloud\GkeBackup\V1\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 |
Google\Cloud\GkeBackup\V1\NamespacedNames|null |
hasSelectedPvcs
setSelectedPvcs
A list of PVCs to apply the policy override to.
Parameter | |
---|---|
Name | Description |
var |
Google\Cloud\GkeBackup\V1\NamespacedNames
|
Returns | |
---|---|
Type | Description |
$this |
getScope
Returns | |
---|---|
Type | Description |
string |