Initial commit: Complete WooCommerce Smart Google Pricing plugin with vendor dependencies

This commit is contained in:
2025-12-23 07:48:45 +01:00
commit 9b66109ca1
32472 changed files with 4065017 additions and 0 deletions

View File

@@ -0,0 +1,71 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\BackupforGKE;
class AuditConfig extends \Google\Collection
{
protected $collection_key = 'auditLogConfigs';
protected $auditLogConfigsType = AuditLogConfig::class;
protected $auditLogConfigsDataType = 'array';
/**
* Specifies a service that will be enabled for audit logging. For example,
* `storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a
* special value that covers all services.
*
* @var string
*/
public $service;
/**
* The configuration for logging of each type of permission.
*
* @param AuditLogConfig[] $auditLogConfigs
*/
public function setAuditLogConfigs($auditLogConfigs)
{
$this->auditLogConfigs = $auditLogConfigs;
}
/**
* @return AuditLogConfig[]
*/
public function getAuditLogConfigs()
{
return $this->auditLogConfigs;
}
/**
* Specifies a service that will be enabled for audit logging. For example,
* `storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a
* special value that covers all services.
*
* @param string $service
*/
public function setService($service)
{
$this->service = $service;
}
/**
* @return string
*/
public function getService()
{
return $this->service;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AuditConfig::class, 'Google_Service_BackupforGKE_AuditConfig');

View File

@@ -0,0 +1,91 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\BackupforGKE;
class AuditLogConfig extends \Google\Collection
{
/**
* Default case. Should never be this.
*/
public const LOG_TYPE_LOG_TYPE_UNSPECIFIED = 'LOG_TYPE_UNSPECIFIED';
/**
* Admin reads. Example: CloudIAM getIamPolicy
*/
public const LOG_TYPE_ADMIN_READ = 'ADMIN_READ';
/**
* Data writes. Example: CloudSQL Users create
*/
public const LOG_TYPE_DATA_WRITE = 'DATA_WRITE';
/**
* Data reads. Example: CloudSQL Users list
*/
public const LOG_TYPE_DATA_READ = 'DATA_READ';
protected $collection_key = 'exemptedMembers';
/**
* Specifies the identities that do not cause logging for this type of
* permission. Follows the same format of Binding.members.
*
* @var string[]
*/
public $exemptedMembers;
/**
* The log type that this config enables.
*
* @var string
*/
public $logType;
/**
* Specifies the identities that do not cause logging for this type of
* permission. Follows the same format of Binding.members.
*
* @param string[] $exemptedMembers
*/
public function setExemptedMembers($exemptedMembers)
{
$this->exemptedMembers = $exemptedMembers;
}
/**
* @return string[]
*/
public function getExemptedMembers()
{
return $this->exemptedMembers;
}
/**
* The log type that this config enables.
*
* Accepted values: LOG_TYPE_UNSPECIFIED, ADMIN_READ, DATA_WRITE, DATA_READ
*
* @param self::LOG_TYPE_* $logType
*/
public function setLogType($logType)
{
$this->logType = $logType;
}
/**
* @return self::LOG_TYPE_*
*/
public function getLogType()
{
return $this->logType;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AuditLogConfig::class, 'Google_Service_BackupforGKE_AuditLogConfig');

View File

@@ -0,0 +1,805 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\BackupforGKE;
class Backup extends \Google\Model
{
/**
* The Backup resource is in the process of being created.
*/
public const STATE_STATE_UNSPECIFIED = 'STATE_UNSPECIFIED';
/**
* The Backup resource has been created and the associated BackupJob
* Kubernetes resource has been injected into the source cluster.
*/
public const STATE_CREATING = 'CREATING';
/**
* The gkebackup agent in the cluster has begun executing the backup
* operation.
*/
public const STATE_IN_PROGRESS = 'IN_PROGRESS';
/**
* The backup operation has completed successfully.
*/
public const STATE_SUCCEEDED = 'SUCCEEDED';
/**
* The backup operation has failed.
*/
public const STATE_FAILED = 'FAILED';
/**
* This Backup resource (and its associated artifacts) is in the process of
* being deleted.
*/
public const STATE_DELETING = 'DELETING';
/**
* Output only. If True, all namespaces were included in the Backup.
*
* @var bool
*/
public $allNamespaces;
protected $clusterMetadataType = ClusterMetadata::class;
protected $clusterMetadataDataType = '';
/**
* Output only. Completion time of the Backup
*
* @var string
*/
public $completeTime;
/**
* Output only. The size of the config backup in bytes.
*
* @var string
*/
public $configBackupSizeBytes;
/**
* Output only. Whether or not the Backup contains Kubernetes Secrets.
* Controlled by the parent BackupPlan's include_secrets value.
*
* @var bool
*/
public $containsSecrets;
/**
* Output only. Whether or not the Backup contains volume data. Controlled by
* the parent BackupPlan's include_volume_data value.
*
* @var bool
*/
public $containsVolumeData;
/**
* Output only. The timestamp when this Backup resource was created.
*
* @var string
*/
public $createTime;
/**
* Optional. Minimum age for this Backup (in days). If this field is set to a
* non-zero value, the Backup will be "locked" against deletion (either manual
* or automatic deletion) for the number of days provided (measured from the
* creation time of the Backup). MUST be an integer value between 0-90
* (inclusive). Defaults to parent BackupPlan's backup_delete_lock_days
* setting and may only be increased (either at creation time or in a
* subsequent update).
*
* @var int
*/
public $deleteLockDays;
/**
* Output only. The time at which an existing delete lock will expire for this
* backup (calculated from create_time + delete_lock_days).
*
* @var string
*/
public $deleteLockExpireTime;
/**
* Optional. User specified descriptive string for this Backup.
*
* @var string
*/
public $description;
protected $encryptionKeyType = EncryptionKey::class;
protected $encryptionKeyDataType = '';
/**
* Output only. `etag` is used for optimistic concurrency control as a way to
* help prevent simultaneous updates of a backup from overwriting each other.
* It is strongly suggested that systems make use of the `etag` in the read-
* modify-write cycle to perform backup updates in order to avoid race
* conditions: An `etag` is returned in the response to `GetBackup`, and
* systems are expected to put that etag in the request to `UpdateBackup` or
* `DeleteBackup` to ensure that their change will be applied to the same
* version of the resource.
*
* @var string
*/
public $etag;
/**
* Optional. A set of custom labels supplied by user.
*
* @var string[]
*/
public $labels;
/**
* Output only. This flag indicates whether this Backup resource was created
* manually by a user or via a schedule in the BackupPlan. A value of True
* means that the Backup was created manually.
*
* @var bool
*/
public $manual;
/**
* Output only. Identifier. The fully qualified name of the Backup.
* `projects/locations/backupPlans/backups`
*
* @var string
*/
public $name;
/**
* Output only. If false, Backup will fail when Backup for GKE detects
* Kubernetes configuration that is non-standard or requires additional setup
* to restore. Inherited from the parent BackupPlan's permissive_mode value.
*
* @var bool
*/
public $permissiveMode;
/**
* Output only. The total number of Kubernetes Pods contained in the Backup.
*
* @var int
*/
public $podCount;
/**
* Output only. The total number of Kubernetes resources included in the
* Backup.
*
* @var int
*/
public $resourceCount;
/**
* Optional. The age (in days) after which this Backup will be automatically
* deleted. Must be an integer value >= 0: - If 0, no automatic deletion will
* occur for this Backup. - If not 0, this must be >= delete_lock_days and <=
* 365. Once a Backup is created, this value may only be increased. Defaults
* to the parent BackupPlan's backup_retain_days value.
*
* @var int
*/
public $retainDays;
/**
* Output only. The time at which this Backup will be automatically deleted
* (calculated from create_time + retain_days).
*
* @var string
*/
public $retainExpireTime;
/**
* Output only. [Output Only] Reserved for future use.
*
* @var bool
*/
public $satisfiesPzi;
/**
* Output only. [Output Only] Reserved for future use.
*
* @var bool
*/
public $satisfiesPzs;
protected $selectedApplicationsType = NamespacedNames::class;
protected $selectedApplicationsDataType = '';
protected $selectedNamespaceLabelsType = ResourceLabels::class;
protected $selectedNamespaceLabelsDataType = '';
protected $selectedNamespacesType = Namespaces::class;
protected $selectedNamespacesDataType = '';
/**
* Output only. The total size of the Backup in bytes = config backup size +
* sum(volume backup sizes)
*
* @var string
*/
public $sizeBytes;
/**
* Output only. Current state of the Backup
*
* @var string
*/
public $state;
/**
* Output only. Human-readable description of why the backup is in the current
* `state`. This field is only meant for human readability and should not be
* used programmatically as this field is not guaranteed to be consistent.
*
* @var string
*/
public $stateReason;
protected $troubleshootingInfoType = TroubleshootingInfo::class;
protected $troubleshootingInfoDataType = '';
/**
* Output only. Server generated global unique identifier of
* [UUID4](https://en.wikipedia.org/wiki/Universally_unique_identifier)
*
* @var string
*/
public $uid;
/**
* Output only. The timestamp when this Backup resource was last updated.
*
* @var string
*/
public $updateTime;
/**
* Output only. The total number of volume backups contained in the Backup.
*
* @var int
*/
public $volumeCount;
/**
* Output only. If True, all namespaces were included in the Backup.
*
* @param bool $allNamespaces
*/
public function setAllNamespaces($allNamespaces)
{
$this->allNamespaces = $allNamespaces;
}
/**
* @return bool
*/
public function getAllNamespaces()
{
return $this->allNamespaces;
}
/**
* Output only. Information about the GKE cluster from which this Backup was
* created.
*
* @param ClusterMetadata $clusterMetadata
*/
public function setClusterMetadata(ClusterMetadata $clusterMetadata)
{
$this->clusterMetadata = $clusterMetadata;
}
/**
* @return ClusterMetadata
*/
public function getClusterMetadata()
{
return $this->clusterMetadata;
}
/**
* Output only. Completion time of the Backup
*
* @param string $completeTime
*/
public function setCompleteTime($completeTime)
{
$this->completeTime = $completeTime;
}
/**
* @return string
*/
public function getCompleteTime()
{
return $this->completeTime;
}
/**
* Output only. The size of the config backup in bytes.
*
* @param string $configBackupSizeBytes
*/
public function setConfigBackupSizeBytes($configBackupSizeBytes)
{
$this->configBackupSizeBytes = $configBackupSizeBytes;
}
/**
* @return string
*/
public function getConfigBackupSizeBytes()
{
return $this->configBackupSizeBytes;
}
/**
* Output only. Whether or not the Backup contains Kubernetes Secrets.
* Controlled by the parent BackupPlan's include_secrets value.
*
* @param bool $containsSecrets
*/
public function setContainsSecrets($containsSecrets)
{
$this->containsSecrets = $containsSecrets;
}
/**
* @return bool
*/
public function getContainsSecrets()
{
return $this->containsSecrets;
}
/**
* Output only. Whether or not the Backup contains volume data. Controlled by
* the parent BackupPlan's include_volume_data value.
*
* @param bool $containsVolumeData
*/
public function setContainsVolumeData($containsVolumeData)
{
$this->containsVolumeData = $containsVolumeData;
}
/**
* @return bool
*/
public function getContainsVolumeData()
{
return $this->containsVolumeData;
}
/**
* Output only. The timestamp when this Backup resource was created.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* Optional. Minimum age for this Backup (in days). If this field is set to a
* non-zero value, the Backup will be "locked" against deletion (either manual
* or automatic deletion) for the number of days provided (measured from the
* creation time of the Backup). MUST be an integer value between 0-90
* (inclusive). Defaults to parent BackupPlan's backup_delete_lock_days
* setting and may only be increased (either at creation time or in a
* subsequent update).
*
* @param int $deleteLockDays
*/
public function setDeleteLockDays($deleteLockDays)
{
$this->deleteLockDays = $deleteLockDays;
}
/**
* @return int
*/
public function getDeleteLockDays()
{
return $this->deleteLockDays;
}
/**
* Output only. The time at which an existing delete lock will expire for this
* backup (calculated from create_time + delete_lock_days).
*
* @param string $deleteLockExpireTime
*/
public function setDeleteLockExpireTime($deleteLockExpireTime)
{
$this->deleteLockExpireTime = $deleteLockExpireTime;
}
/**
* @return string
*/
public function getDeleteLockExpireTime()
{
return $this->deleteLockExpireTime;
}
/**
* Optional. User specified descriptive string for this Backup.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* Output only. The customer managed encryption key that was used to encrypt
* the Backup's artifacts. Inherited from the parent BackupPlan's
* encryption_key value.
*
* @param EncryptionKey $encryptionKey
*/
public function setEncryptionKey(EncryptionKey $encryptionKey)
{
$this->encryptionKey = $encryptionKey;
}
/**
* @return EncryptionKey
*/
public function getEncryptionKey()
{
return $this->encryptionKey;
}
/**
* Output only. `etag` is used for optimistic concurrency control as a way to
* help prevent simultaneous updates of a backup from overwriting each other.
* It is strongly suggested that systems make use of the `etag` in the read-
* modify-write cycle to perform backup updates in order to avoid race
* conditions: An `etag` is returned in the response to `GetBackup`, and
* systems are expected to put that etag in the request to `UpdateBackup` or
* `DeleteBackup` to ensure that their change will be applied to the same
* version of the resource.
*
* @param string $etag
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* Optional. A set of custom labels supplied by user.
*
* @param string[] $labels
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* Output only. This flag indicates whether this Backup resource was created
* manually by a user or via a schedule in the BackupPlan. A value of True
* means that the Backup was created manually.
*
* @param bool $manual
*/
public function setManual($manual)
{
$this->manual = $manual;
}
/**
* @return bool
*/
public function getManual()
{
return $this->manual;
}
/**
* Output only. Identifier. The fully qualified name of the Backup.
* `projects/locations/backupPlans/backups`
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Output only. If false, Backup will fail when Backup for GKE detects
* Kubernetes configuration that is non-standard or requires additional setup
* to restore. Inherited from the parent BackupPlan's permissive_mode value.
*
* @param bool $permissiveMode
*/
public function setPermissiveMode($permissiveMode)
{
$this->permissiveMode = $permissiveMode;
}
/**
* @return bool
*/
public function getPermissiveMode()
{
return $this->permissiveMode;
}
/**
* Output only. The total number of Kubernetes Pods contained in the Backup.
*
* @param int $podCount
*/
public function setPodCount($podCount)
{
$this->podCount = $podCount;
}
/**
* @return int
*/
public function getPodCount()
{
return $this->podCount;
}
/**
* Output only. The total number of Kubernetes resources included in the
* Backup.
*
* @param int $resourceCount
*/
public function setResourceCount($resourceCount)
{
$this->resourceCount = $resourceCount;
}
/**
* @return int
*/
public function getResourceCount()
{
return $this->resourceCount;
}
/**
* Optional. The age (in days) after which this Backup will be automatically
* deleted. Must be an integer value >= 0: - If 0, no automatic deletion will
* occur for this Backup. - If not 0, this must be >= delete_lock_days and <=
* 365. Once a Backup is created, this value may only be increased. Defaults
* to the parent BackupPlan's backup_retain_days value.
*
* @param int $retainDays
*/
public function setRetainDays($retainDays)
{
$this->retainDays = $retainDays;
}
/**
* @return int
*/
public function getRetainDays()
{
return $this->retainDays;
}
/**
* Output only. The time at which this Backup will be automatically deleted
* (calculated from create_time + retain_days).
*
* @param string $retainExpireTime
*/
public function setRetainExpireTime($retainExpireTime)
{
$this->retainExpireTime = $retainExpireTime;
}
/**
* @return string
*/
public function getRetainExpireTime()
{
return $this->retainExpireTime;
}
/**
* Output only. [Output Only] Reserved for future use.
*
* @param bool $satisfiesPzi
*/
public function setSatisfiesPzi($satisfiesPzi)
{
$this->satisfiesPzi = $satisfiesPzi;
}
/**
* @return bool
*/
public function getSatisfiesPzi()
{
return $this->satisfiesPzi;
}
/**
* Output only. [Output Only] Reserved for future use.
*
* @param bool $satisfiesPzs
*/
public function setSatisfiesPzs($satisfiesPzs)
{
$this->satisfiesPzs = $satisfiesPzs;
}
/**
* @return bool
*/
public function getSatisfiesPzs()
{
return $this->satisfiesPzs;
}
/**
* Output only. If set, the list of ProtectedApplications whose resources were
* included in the Backup.
*
* @param NamespacedNames $selectedApplications
*/
public function setSelectedApplications(NamespacedNames $selectedApplications)
{
$this->selectedApplications = $selectedApplications;
}
/**
* @return NamespacedNames
*/
public function getSelectedApplications()
{
return $this->selectedApplications;
}
/**
* Output only. If set, the list of labels whose constituent namespaces were
* included in the Backup.
*
* @param ResourceLabels $selectedNamespaceLabels
*/
public function setSelectedNamespaceLabels(ResourceLabels $selectedNamespaceLabels)
{
$this->selectedNamespaceLabels = $selectedNamespaceLabels;
}
/**
* @return ResourceLabels
*/
public function getSelectedNamespaceLabels()
{
return $this->selectedNamespaceLabels;
}
/**
* Output only. If set, the list of namespaces that were included in the
* Backup.
*
* @param Namespaces $selectedNamespaces
*/
public function setSelectedNamespaces(Namespaces $selectedNamespaces)
{
$this->selectedNamespaces = $selectedNamespaces;
}
/**
* @return Namespaces
*/
public function getSelectedNamespaces()
{
return $this->selectedNamespaces;
}
/**
* Output only. The total size of the Backup in bytes = config backup size +
* sum(volume backup sizes)
*
* @param string $sizeBytes
*/
public function setSizeBytes($sizeBytes)
{
$this->sizeBytes = $sizeBytes;
}
/**
* @return string
*/
public function getSizeBytes()
{
return $this->sizeBytes;
}
/**
* Output only. Current state of the Backup
*
* Accepted values: STATE_UNSPECIFIED, CREATING, IN_PROGRESS, SUCCEEDED,
* FAILED, DELETING
*
* @param self::STATE_* $state
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return self::STATE_*
*/
public function getState()
{
return $this->state;
}
/**
* Output only. Human-readable description of why the backup is in the current
* `state`. This field is only meant for human readability and should not be
* used programmatically as this field is not guaranteed to be consistent.
*
* @param string $stateReason
*/
public function setStateReason($stateReason)
{
$this->stateReason = $stateReason;
}
/**
* @return string
*/
public function getStateReason()
{
return $this->stateReason;
}
/**
* Output only. Information about the troubleshooting steps which will provide
* debugging information to the end users.
*
* @param TroubleshootingInfo $troubleshootingInfo
*/
public function setTroubleshootingInfo(TroubleshootingInfo $troubleshootingInfo)
{
$this->troubleshootingInfo = $troubleshootingInfo;
}
/**
* @return TroubleshootingInfo
*/
public function getTroubleshootingInfo()
{
return $this->troubleshootingInfo;
}
/**
* Output only. Server generated global unique identifier of
* [UUID4](https://en.wikipedia.org/wiki/Universally_unique_identifier)
*
* @param string $uid
*/
public function setUid($uid)
{
$this->uid = $uid;
}
/**
* @return string
*/
public function getUid()
{
return $this->uid;
}
/**
* Output only. The timestamp when this Backup resource was last updated.
*
* @param string $updateTime
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
/**
* Output only. The total number of volume backups contained in the Backup.
*
* @param int $volumeCount
*/
public function setVolumeCount($volumeCount)
{
$this->volumeCount = $volumeCount;
}
/**
* @return int
*/
public function getVolumeCount()
{
return $this->volumeCount;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Backup::class, 'Google_Service_BackupforGKE_Backup');

View File

@@ -0,0 +1,250 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\BackupforGKE;
class BackupChannel extends \Google\Model
{
/**
* Output only. The timestamp when this BackupChannel resource was created.
*
* @var string
*/
public $createTime;
/**
* Optional. User specified descriptive string for this BackupChannel.
*
* @var string
*/
public $description;
/**
* Required. Immutable. The project where Backups are allowed to be stored.
* The format is `projects/{projectId}` or `projects/{projectNumber}`.
*
* @var string
*/
public $destinationProject;
/**
* Output only. The project_id where Backups are allowed to be stored. Example
* Project ID: "my-project-id". This will be an OUTPUT_ONLY field to return
* the project_id of the destination project.
*
* @var string
*/
public $destinationProjectId;
/**
* Output only. `etag` is used for optimistic concurrency control as a way to
* help prevent simultaneous updates of a BackupChannel from overwriting each
* other. It is strongly suggested that systems make use of the 'etag' in the
* read-modify-write cycle to perform BackupChannel updates in order to avoid
* race conditions: An `etag` is returned in the response to
* `GetBackupChannel`, and systems are expected to put that etag in the
* request to `UpdateBackupChannel` or `DeleteBackupChannel` to ensure that
* their change will be applied to the same version of the resource.
*
* @var string
*/
public $etag;
/**
* Optional. A set of custom labels supplied by user.
*
* @var string[]
*/
public $labels;
/**
* Identifier. The fully qualified name of the BackupChannel.
* `projects/locations/backupChannels`
*
* @var string
*/
public $name;
/**
* Output only. Server generated global unique identifier of
* [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
*
* @var string
*/
public $uid;
/**
* Output only. The timestamp when this BackupChannel resource was last
* updated.
*
* @var string
*/
public $updateTime;
/**
* Output only. The timestamp when this BackupChannel resource was created.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* Optional. User specified descriptive string for this BackupChannel.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* Required. Immutable. The project where Backups are allowed to be stored.
* The format is `projects/{projectId}` or `projects/{projectNumber}`.
*
* @param string $destinationProject
*/
public function setDestinationProject($destinationProject)
{
$this->destinationProject = $destinationProject;
}
/**
* @return string
*/
public function getDestinationProject()
{
return $this->destinationProject;
}
/**
* Output only. The project_id where Backups are allowed to be stored. Example
* Project ID: "my-project-id". This will be an OUTPUT_ONLY field to return
* the project_id of the destination project.
*
* @param string $destinationProjectId
*/
public function setDestinationProjectId($destinationProjectId)
{
$this->destinationProjectId = $destinationProjectId;
}
/**
* @return string
*/
public function getDestinationProjectId()
{
return $this->destinationProjectId;
}
/**
* Output only. `etag` is used for optimistic concurrency control as a way to
* help prevent simultaneous updates of a BackupChannel from overwriting each
* other. It is strongly suggested that systems make use of the 'etag' in the
* read-modify-write cycle to perform BackupChannel updates in order to avoid
* race conditions: An `etag` is returned in the response to
* `GetBackupChannel`, and systems are expected to put that etag in the
* request to `UpdateBackupChannel` or `DeleteBackupChannel` to ensure that
* their change will be applied to the same version of the resource.
*
* @param string $etag
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* Optional. A set of custom labels supplied by user.
*
* @param string[] $labels
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* Identifier. The fully qualified name of the BackupChannel.
* `projects/locations/backupChannels`
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Output only. Server generated global unique identifier of
* [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
*
* @param string $uid
*/
public function setUid($uid)
{
$this->uid = $uid;
}
/**
* @return string
*/
public function getUid()
{
return $this->uid;
}
/**
* Output only. The timestamp when this BackupChannel resource was last
* updated.
*
* @param string $updateTime
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BackupChannel::class, 'Google_Service_BackupforGKE_BackupChannel');

View File

@@ -0,0 +1,199 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\BackupforGKE;
class BackupConfig extends \Google\Model
{
/**
* If True, include all namespaced resources
*
* @var bool
*/
public $allNamespaces;
protected $encryptionKeyType = EncryptionKey::class;
protected $encryptionKeyDataType = '';
/**
* Optional. This flag specifies whether Kubernetes Secret resources should be
* included when they fall into the scope of Backups. Default: False
*
* @var bool
*/
public $includeSecrets;
/**
* Optional. This flag specifies whether volume data should be backed up when
* PVCs are included in the scope of a Backup. Default: False
*
* @var bool
*/
public $includeVolumeData;
/**
* Optional. If false, Backups will fail when Backup for GKE detects
* Kubernetes configuration that is non-standard or requires additional setup
* to restore. Default: False
*
* @var bool
*/
public $permissiveMode;
protected $selectedApplicationsType = NamespacedNames::class;
protected $selectedApplicationsDataType = '';
protected $selectedNamespaceLabelsType = ResourceLabels::class;
protected $selectedNamespaceLabelsDataType = '';
protected $selectedNamespacesType = Namespaces::class;
protected $selectedNamespacesDataType = '';
/**
* If True, include all namespaced resources
*
* @param bool $allNamespaces
*/
public function setAllNamespaces($allNamespaces)
{
$this->allNamespaces = $allNamespaces;
}
/**
* @return bool
*/
public function getAllNamespaces()
{
return $this->allNamespaces;
}
/**
* Optional. This defines a customer managed encryption key that will be used
* to encrypt the "config" portion (the Kubernetes resources) of Backups
* created via this plan. Default (empty): Config backup artifacts will not be
* encrypted.
*
* @param EncryptionKey $encryptionKey
*/
public function setEncryptionKey(EncryptionKey $encryptionKey)
{
$this->encryptionKey = $encryptionKey;
}
/**
* @return EncryptionKey
*/
public function getEncryptionKey()
{
return $this->encryptionKey;
}
/**
* Optional. This flag specifies whether Kubernetes Secret resources should be
* included when they fall into the scope of Backups. Default: False
*
* @param bool $includeSecrets
*/
public function setIncludeSecrets($includeSecrets)
{
$this->includeSecrets = $includeSecrets;
}
/**
* @return bool
*/
public function getIncludeSecrets()
{
return $this->includeSecrets;
}
/**
* Optional. This flag specifies whether volume data should be backed up when
* PVCs are included in the scope of a Backup. Default: False
*
* @param bool $includeVolumeData
*/
public function setIncludeVolumeData($includeVolumeData)
{
$this->includeVolumeData = $includeVolumeData;
}
/**
* @return bool
*/
public function getIncludeVolumeData()
{
return $this->includeVolumeData;
}
/**
* Optional. If false, Backups will fail when Backup for GKE detects
* Kubernetes configuration that is non-standard or requires additional setup
* to restore. Default: False
*
* @param bool $permissiveMode
*/
public function setPermissiveMode($permissiveMode)
{
$this->permissiveMode = $permissiveMode;
}
/**
* @return bool
*/
public function getPermissiveMode()
{
return $this->permissiveMode;
}
/**
* If set, include just the resources referenced by the listed
* ProtectedApplications.
*
* @param NamespacedNames $selectedApplications
*/
public function setSelectedApplications(NamespacedNames $selectedApplications)
{
$this->selectedApplications = $selectedApplications;
}
/**
* @return NamespacedNames
*/
public function getSelectedApplications()
{
return $this->selectedApplications;
}
/**
* If set, the list of labels whose constituent namespaces were included in
* the Backup.
*
* @param ResourceLabels $selectedNamespaceLabels
*/
public function setSelectedNamespaceLabels(ResourceLabels $selectedNamespaceLabels)
{
$this->selectedNamespaceLabels = $selectedNamespaceLabels;
}
/**
* @return ResourceLabels
*/
public function getSelectedNamespaceLabels()
{
return $this->selectedNamespaceLabels;
}
/**
* If set, include just the resources in the listed namespaces.
*
* @param Namespaces $selectedNamespaces
*/
public function setSelectedNamespaces(Namespaces $selectedNamespaces)
{
$this->selectedNamespaces = $selectedNamespaces;
}
/**
* @return Namespaces
*/
public function getSelectedNamespaces()
{
return $this->selectedNamespaces;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BackupConfig::class, 'Google_Service_BackupforGKE_BackupConfig');

View File

@@ -0,0 +1,154 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\BackupforGKE;
class BackupConfigDetails extends \Google\Model
{
/**
* Output only. If True, include all namespaced resources
*
* @var bool
*/
public $allNamespaces;
protected $encryptionKeyType = EncryptionKey::class;
protected $encryptionKeyDataType = '';
/**
* Output only. This flag specifies whether Kubernetes Secret resources should
* be included when they fall into the scope of Backups. Default: False
*
* @var bool
*/
public $includeSecrets;
/**
* Output only. This flag specifies whether volume data should be backed up
* when PVCs are included in the scope of a Backup. Default: False
*
* @var bool
*/
public $includeVolumeData;
protected $selectedApplicationsType = NamespacedNames::class;
protected $selectedApplicationsDataType = '';
protected $selectedNamespacesType = Namespaces::class;
protected $selectedNamespacesDataType = '';
/**
* Output only. If True, include all namespaced resources
*
* @param bool $allNamespaces
*/
public function setAllNamespaces($allNamespaces)
{
$this->allNamespaces = $allNamespaces;
}
/**
* @return bool
*/
public function getAllNamespaces()
{
return $this->allNamespaces;
}
/**
* Output only. This defines a customer managed encryption key that will be
* used to encrypt the "config" portion (the Kubernetes resources) of Backups
* created via this plan. Default (empty): Config backup artifacts will not be
* encrypted.
*
* @param EncryptionKey $encryptionKey
*/
public function setEncryptionKey(EncryptionKey $encryptionKey)
{
$this->encryptionKey = $encryptionKey;
}
/**
* @return EncryptionKey
*/
public function getEncryptionKey()
{
return $this->encryptionKey;
}
/**
* Output only. This flag specifies whether Kubernetes Secret resources should
* be included when they fall into the scope of Backups. Default: False
*
* @param bool $includeSecrets
*/
public function setIncludeSecrets($includeSecrets)
{
$this->includeSecrets = $includeSecrets;
}
/**
* @return bool
*/
public function getIncludeSecrets()
{
return $this->includeSecrets;
}
/**
* Output only. This flag specifies whether volume data should be backed up
* when PVCs are included in the scope of a Backup. Default: False
*
* @param bool $includeVolumeData
*/
public function setIncludeVolumeData($includeVolumeData)
{
$this->includeVolumeData = $includeVolumeData;
}
/**
* @return bool
*/
public function getIncludeVolumeData()
{
return $this->includeVolumeData;
}
/**
* Output only. If set, include just the resources referenced by the listed
* ProtectedApplications.
*
* @param NamespacedNames $selectedApplications
*/
public function setSelectedApplications(NamespacedNames $selectedApplications)
{
$this->selectedApplications = $selectedApplications;
}
/**
* @return NamespacedNames
*/
public function getSelectedApplications()
{
return $this->selectedApplications;
}
/**
* Output only. If set, include just the resources in the listed namespaces.
*
* @param Namespaces $selectedNamespaces
*/
public function setSelectedNamespaces(Namespaces $selectedNamespaces)
{
$this->selectedNamespaces = $selectedNamespaces;
}
/**
* @return Namespaces
*/
public function getSelectedNamespaces()
{
return $this->selectedNamespaces;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BackupConfigDetails::class, 'Google_Service_BackupforGKE_BackupConfigDetails');

View File

@@ -0,0 +1,521 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\BackupforGKE;
class BackupPlan extends \Google\Model
{
/**
* Default first value for Enums.
*/
public const STATE_STATE_UNSPECIFIED = 'STATE_UNSPECIFIED';
/**
* Waiting for cluster state to be RUNNING.
*/
public const STATE_CLUSTER_PENDING = 'CLUSTER_PENDING';
/**
* The BackupPlan is in the process of being created.
*/
public const STATE_PROVISIONING = 'PROVISIONING';
/**
* The BackupPlan has successfully been created and is ready for Backups.
*/
public const STATE_READY = 'READY';
/**
* BackupPlan creation has failed.
*/
public const STATE_FAILED = 'FAILED';
/**
* The BackupPlan has been deactivated.
*/
public const STATE_DEACTIVATED = 'DEACTIVATED';
/**
* The BackupPlan is in the process of being deleted.
*/
public const STATE_DELETING = 'DELETING';
/**
* Output only. The fully qualified name of the BackupChannel to be used to
* create a backup. This field is set only if the cluster being backed up is
* in a different project. `projects/locations/backupChannels`
*
* @var string
*/
public $backupChannel;
protected $backupConfigType = BackupConfig::class;
protected $backupConfigDataType = '';
protected $backupScheduleType = Schedule::class;
protected $backupScheduleDataType = '';
/**
* Required. Immutable. The source cluster from which Backups will be created
* via this BackupPlan. Valid formats: - `projects/locations/clusters` -
* `projects/zones/clusters`
*
* @var string
*/
public $cluster;
/**
* Output only. The timestamp when this BackupPlan resource was created.
*
* @var string
*/
public $createTime;
/**
* Optional. This flag indicates whether this BackupPlan has been deactivated.
* Setting this field to True locks the BackupPlan such that no further
* updates will be allowed (except deletes), including the deactivated field
* itself. It also prevents any new Backups from being created via this
* BackupPlan (including scheduled Backups). Default: False
*
* @var bool
*/
public $deactivated;
/**
* Optional. User specified descriptive string for this BackupPlan.
*
* @var string
*/
public $description;
/**
* Output only. `etag` is used for optimistic concurrency control as a way to
* help prevent simultaneous updates of a backup plan from overwriting each
* other. It is strongly suggested that systems make use of the 'etag' in the
* read-modify-write cycle to perform BackupPlan updates in order to avoid
* race conditions: An `etag` is returned in the response to `GetBackupPlan`,
* and systems are expected to put that etag in the request to
* `UpdateBackupPlan` or `DeleteBackupPlan` to ensure that their change will
* be applied to the same version of the resource.
*
* @var string
*/
public $etag;
/**
* Optional. A set of custom labels supplied by user.
*
* @var string[]
*/
public $labels;
/**
* Output only. Completion time of the last successful Backup. This is sourced
* from a successful Backup's complete_time field. This field is added to
* maintain consistency with BackupPlanBinding to display last successful
* backup time.
*
* @var string
*/
public $lastSuccessfulBackupTime;
/**
* Output only. Identifier. The full name of the BackupPlan resource. Format:
* `projects/locations/backupPlans`
*
* @var string
*/
public $name;
/**
* Output only. The number of Kubernetes Pods backed up in the last successful
* Backup created via this BackupPlan.
*
* @var int
*/
public $protectedPodCount;
protected $retentionPolicyType = RetentionPolicy::class;
protected $retentionPolicyDataType = '';
/**
* Output only. A number that represents the current risk level of this
* BackupPlan from RPO perspective with 1 being no risk and 5 being highest
* risk.
*
* @var int
*/
public $rpoRiskLevel;
/**
* Output only. Human-readable description of why the BackupPlan is in the
* current rpo_risk_level and action items if any.
*
* @var string
*/
public $rpoRiskReason;
/**
* Output only. State of the BackupPlan. This State field reflects the various
* stages a BackupPlan can be in during the Create operation. It will be set
* to "DEACTIVATED" if the BackupPlan is deactivated on an Update
*
* @var string
*/
public $state;
/**
* Output only. Human-readable description of why BackupPlan is in the current
* `state`. This field is only meant for human readability and should not be
* used programmatically as this field is not guaranteed to be consistent.
*
* @var string
*/
public $stateReason;
/**
* Output only. Server generated global unique identifier of
* [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
*
* @var string
*/
public $uid;
/**
* Output only. The timestamp when this BackupPlan resource was last updated.
*
* @var string
*/
public $updateTime;
/**
* Output only. The fully qualified name of the BackupChannel to be used to
* create a backup. This field is set only if the cluster being backed up is
* in a different project. `projects/locations/backupChannels`
*
* @param string $backupChannel
*/
public function setBackupChannel($backupChannel)
{
$this->backupChannel = $backupChannel;
}
/**
* @return string
*/
public function getBackupChannel()
{
return $this->backupChannel;
}
/**
* Optional. Defines the configuration of Backups created via this BackupPlan.
*
* @param BackupConfig $backupConfig
*/
public function setBackupConfig(BackupConfig $backupConfig)
{
$this->backupConfig = $backupConfig;
}
/**
* @return BackupConfig
*/
public function getBackupConfig()
{
return $this->backupConfig;
}
/**
* Optional. Defines a schedule for automatic Backup creation via this
* BackupPlan.
*
* @param Schedule $backupSchedule
*/
public function setBackupSchedule(Schedule $backupSchedule)
{
$this->backupSchedule = $backupSchedule;
}
/**
* @return Schedule
*/
public function getBackupSchedule()
{
return $this->backupSchedule;
}
/**
* Required. Immutable. The source cluster from which Backups will be created
* via this BackupPlan. Valid formats: - `projects/locations/clusters` -
* `projects/zones/clusters`
*
* @param string $cluster
*/
public function setCluster($cluster)
{
$this->cluster = $cluster;
}
/**
* @return string
*/
public function getCluster()
{
return $this->cluster;
}
/**
* Output only. The timestamp when this BackupPlan resource was created.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* Optional. This flag indicates whether this BackupPlan has been deactivated.
* Setting this field to True locks the BackupPlan such that no further
* updates will be allowed (except deletes), including the deactivated field
* itself. It also prevents any new Backups from being created via this
* BackupPlan (including scheduled Backups). Default: False
*
* @param bool $deactivated
*/
public function setDeactivated($deactivated)
{
$this->deactivated = $deactivated;
}
/**
* @return bool
*/
public function getDeactivated()
{
return $this->deactivated;
}
/**
* Optional. User specified descriptive string for this BackupPlan.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* Output only. `etag` is used for optimistic concurrency control as a way to
* help prevent simultaneous updates of a backup plan from overwriting each
* other. It is strongly suggested that systems make use of the 'etag' in the
* read-modify-write cycle to perform BackupPlan updates in order to avoid
* race conditions: An `etag` is returned in the response to `GetBackupPlan`,
* and systems are expected to put that etag in the request to
* `UpdateBackupPlan` or `DeleteBackupPlan` to ensure that their change will
* be applied to the same version of the resource.
*
* @param string $etag
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* Optional. A set of custom labels supplied by user.
*
* @param string[] $labels
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* Output only. Completion time of the last successful Backup. This is sourced
* from a successful Backup's complete_time field. This field is added to
* maintain consistency with BackupPlanBinding to display last successful
* backup time.
*
* @param string $lastSuccessfulBackupTime
*/
public function setLastSuccessfulBackupTime($lastSuccessfulBackupTime)
{
$this->lastSuccessfulBackupTime = $lastSuccessfulBackupTime;
}
/**
* @return string
*/
public function getLastSuccessfulBackupTime()
{
return $this->lastSuccessfulBackupTime;
}
/**
* Output only. Identifier. The full name of the BackupPlan resource. Format:
* `projects/locations/backupPlans`
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Output only. The number of Kubernetes Pods backed up in the last successful
* Backup created via this BackupPlan.
*
* @param int $protectedPodCount
*/
public function setProtectedPodCount($protectedPodCount)
{
$this->protectedPodCount = $protectedPodCount;
}
/**
* @return int
*/
public function getProtectedPodCount()
{
return $this->protectedPodCount;
}
/**
* Optional. RetentionPolicy governs lifecycle of Backups created under this
* plan.
*
* @param RetentionPolicy $retentionPolicy
*/
public function setRetentionPolicy(RetentionPolicy $retentionPolicy)
{
$this->retentionPolicy = $retentionPolicy;
}
/**
* @return RetentionPolicy
*/
public function getRetentionPolicy()
{
return $this->retentionPolicy;
}
/**
* Output only. A number that represents the current risk level of this
* BackupPlan from RPO perspective with 1 being no risk and 5 being highest
* risk.
*
* @param int $rpoRiskLevel
*/
public function setRpoRiskLevel($rpoRiskLevel)
{
$this->rpoRiskLevel = $rpoRiskLevel;
}
/**
* @return int
*/
public function getRpoRiskLevel()
{
return $this->rpoRiskLevel;
}
/**
* Output only. Human-readable description of why the BackupPlan is in the
* current rpo_risk_level and action items if any.
*
* @param string $rpoRiskReason
*/
public function setRpoRiskReason($rpoRiskReason)
{
$this->rpoRiskReason = $rpoRiskReason;
}
/**
* @return string
*/
public function getRpoRiskReason()
{
return $this->rpoRiskReason;
}
/**
* Output only. State of the BackupPlan. This State field reflects the various
* stages a BackupPlan can be in during the Create operation. It will be set
* to "DEACTIVATED" if the BackupPlan is deactivated on an Update
*
* Accepted values: STATE_UNSPECIFIED, CLUSTER_PENDING, PROVISIONING, READY,
* FAILED, DEACTIVATED, DELETING
*
* @param self::STATE_* $state
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return self::STATE_*
*/
public function getState()
{
return $this->state;
}
/**
* Output only. Human-readable description of why BackupPlan is in the current
* `state`. This field is only meant for human readability and should not be
* used programmatically as this field is not guaranteed to be consistent.
*
* @param string $stateReason
*/
public function setStateReason($stateReason)
{
$this->stateReason = $stateReason;
}
/**
* @return string
*/
public function getStateReason()
{
return $this->stateReason;
}
/**
* Output only. Server generated global unique identifier of
* [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
*
* @param string $uid
*/
public function setUid($uid)
{
$this->uid = $uid;
}
/**
* @return string
*/
public function getUid()
{
return $this->uid;
}
/**
* Output only. The timestamp when this BackupPlan resource was last updated.
*
* @param string $updateTime
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BackupPlan::class, 'Google_Service_BackupforGKE_BackupPlan');

View File

@@ -0,0 +1,224 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\BackupforGKE;
class BackupPlanBinding extends \Google\Model
{
/**
* Output only. Immutable. The fully qualified name of the BackupPlan bound
* with the parent BackupChannel.
* `projects/locations/backupPlans/{backup_plan}`
*
* @var string
*/
public $backupPlan;
protected $backupPlanDetailsType = BackupPlanDetails::class;
protected $backupPlanDetailsDataType = '';
/**
* Output only. Immutable. The fully qualified name of the cluster that is
* being backed up Valid formats: - `projects/locations/clusters` -
* `projects/zones/clusters`
*
* @var string
*/
public $cluster;
/**
* Output only. The timestamp when this binding was created.
*
* @var string
*/
public $createTime;
/**
* Output only. `etag` is used for optimistic concurrency control as a way to
* help prevent simultaneous updates of a BackupPlanBinding from overwriting
* each other. It is strongly suggested that systems make use of the 'etag' in
* the read-modify-write cycle to perform BackupPlanBinding updates in order
* to avoid race conditions: An `etag` is returned in the response to
* `GetBackupPlanBinding`, and systems are expected to put that etag in the
* request to `UpdateBackupPlanBinding` or `DeleteBackupPlanBinding` to ensure
* that their change will be applied to the same version of the resource.
*
* @var string
*/
public $etag;
/**
* Identifier. The fully qualified name of the BackupPlanBinding.
* `projects/locations/backupChannels/backupPlanBindings`
*
* @var string
*/
public $name;
/**
* Output only. Server generated global unique identifier of
* [UUID4](https://en.wikipedia.org/wiki/Universally_unique_identifier)
*
* @var string
*/
public $uid;
/**
* Output only. The timestamp when this binding was created.
*
* @var string
*/
public $updateTime;
/**
* Output only. Immutable. The fully qualified name of the BackupPlan bound
* with the parent BackupChannel.
* `projects/locations/backupPlans/{backup_plan}`
*
* @param string $backupPlan
*/
public function setBackupPlan($backupPlan)
{
$this->backupPlan = $backupPlan;
}
/**
* @return string
*/
public function getBackupPlan()
{
return $this->backupPlan;
}
/**
* Output only. Contains details about the backup plan/backup.
*
* @param BackupPlanDetails $backupPlanDetails
*/
public function setBackupPlanDetails(BackupPlanDetails $backupPlanDetails)
{
$this->backupPlanDetails = $backupPlanDetails;
}
/**
* @return BackupPlanDetails
*/
public function getBackupPlanDetails()
{
return $this->backupPlanDetails;
}
/**
* Output only. Immutable. The fully qualified name of the cluster that is
* being backed up Valid formats: - `projects/locations/clusters` -
* `projects/zones/clusters`
*
* @param string $cluster
*/
public function setCluster($cluster)
{
$this->cluster = $cluster;
}
/**
* @return string
*/
public function getCluster()
{
return $this->cluster;
}
/**
* Output only. The timestamp when this binding was created.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* Output only. `etag` is used for optimistic concurrency control as a way to
* help prevent simultaneous updates of a BackupPlanBinding from overwriting
* each other. It is strongly suggested that systems make use of the 'etag' in
* the read-modify-write cycle to perform BackupPlanBinding updates in order
* to avoid race conditions: An `etag` is returned in the response to
* `GetBackupPlanBinding`, and systems are expected to put that etag in the
* request to `UpdateBackupPlanBinding` or `DeleteBackupPlanBinding` to ensure
* that their change will be applied to the same version of the resource.
*
* @param string $etag
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* Identifier. The fully qualified name of the BackupPlanBinding.
* `projects/locations/backupChannels/backupPlanBindings`
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Output only. Server generated global unique identifier of
* [UUID4](https://en.wikipedia.org/wiki/Universally_unique_identifier)
*
* @param string $uid
*/
public function setUid($uid)
{
$this->uid = $uid;
}
/**
* @return string
*/
public function getUid()
{
return $this->uid;
}
/**
* Output only. The timestamp when this binding was created.
*
* @param string $updateTime
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BackupPlanBinding::class, 'Google_Service_BackupforGKE_BackupPlanBinding');

View File

@@ -0,0 +1,239 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\BackupforGKE;
class BackupPlanDetails extends \Google\Model
{
/**
* Default first value for Enums.
*/
public const STATE_STATE_UNSPECIFIED = 'STATE_UNSPECIFIED';
/**
* Waiting for cluster state to be RUNNING.
*/
public const STATE_CLUSTER_PENDING = 'CLUSTER_PENDING';
/**
* The BackupPlan is in the process of being created.
*/
public const STATE_PROVISIONING = 'PROVISIONING';
/**
* The BackupPlan has successfully been created and is ready for Backups.
*/
public const STATE_READY = 'READY';
/**
* BackupPlan creation has failed.
*/
public const STATE_FAILED = 'FAILED';
/**
* The BackupPlan has been deactivated.
*/
public const STATE_DEACTIVATED = 'DEACTIVATED';
/**
* The BackupPlan is in the process of being deleted.
*/
public const STATE_DELETING = 'DELETING';
protected $backupConfigDetailsType = BackupConfigDetails::class;
protected $backupConfigDetailsDataType = '';
/**
* Output only. The fully qualified name of the last successful Backup created
* under this BackupPlan. `projects/locations/backupPlans/backups`
*
* @var string
*/
public $lastSuccessfulBackup;
/**
* Output only. Completion time of the last successful Backup. This is sourced
* from a successful Backup's complete_time field.
*
* @var string
*/
public $lastSuccessfulBackupTime;
/**
* Output only. Start time of next scheduled backup under this BackupPlan by
* either cron_schedule or rpo config. This is sourced from BackupPlan.
*
* @var string
*/
public $nextScheduledBackupTime;
/**
* Output only. The number of Kubernetes Pods backed up in the last successful
* Backup created via this BackupPlan.
*
* @var int
*/
public $protectedPodCount;
protected $retentionPolicyDetailsType = RetentionPolicyDetails::class;
protected $retentionPolicyDetailsDataType = '';
/**
* Output only. A number that represents the current risk level of this
* BackupPlan from RPO perspective with 1 being no risk and 5 being highest
* risk.
*
* @var int
*/
public $rpoRiskLevel;
/**
* Output only. State of the BackupPlan.
*
* @var string
*/
public $state;
/**
* Output only. Contains details about the BackupConfig of Backups created via
* this BackupPlan.
*
* @param BackupConfigDetails $backupConfigDetails
*/
public function setBackupConfigDetails(BackupConfigDetails $backupConfigDetails)
{
$this->backupConfigDetails = $backupConfigDetails;
}
/**
* @return BackupConfigDetails
*/
public function getBackupConfigDetails()
{
return $this->backupConfigDetails;
}
/**
* Output only. The fully qualified name of the last successful Backup created
* under this BackupPlan. `projects/locations/backupPlans/backups`
*
* @param string $lastSuccessfulBackup
*/
public function setLastSuccessfulBackup($lastSuccessfulBackup)
{
$this->lastSuccessfulBackup = $lastSuccessfulBackup;
}
/**
* @return string
*/
public function getLastSuccessfulBackup()
{
return $this->lastSuccessfulBackup;
}
/**
* Output only. Completion time of the last successful Backup. This is sourced
* from a successful Backup's complete_time field.
*
* @param string $lastSuccessfulBackupTime
*/
public function setLastSuccessfulBackupTime($lastSuccessfulBackupTime)
{
$this->lastSuccessfulBackupTime = $lastSuccessfulBackupTime;
}
/**
* @return string
*/
public function getLastSuccessfulBackupTime()
{
return $this->lastSuccessfulBackupTime;
}
/**
* Output only. Start time of next scheduled backup under this BackupPlan by
* either cron_schedule or rpo config. This is sourced from BackupPlan.
*
* @param string $nextScheduledBackupTime
*/
public function setNextScheduledBackupTime($nextScheduledBackupTime)
{
$this->nextScheduledBackupTime = $nextScheduledBackupTime;
}
/**
* @return string
*/
public function getNextScheduledBackupTime()
{
return $this->nextScheduledBackupTime;
}
/**
* Output only. The number of Kubernetes Pods backed up in the last successful
* Backup created via this BackupPlan.
*
* @param int $protectedPodCount
*/
public function setProtectedPodCount($protectedPodCount)
{
$this->protectedPodCount = $protectedPodCount;
}
/**
* @return int
*/
public function getProtectedPodCount()
{
return $this->protectedPodCount;
}
/**
* Output only. Contains details about the RetentionPolicy of Backups created
* via this BackupPlan.
*
* @param RetentionPolicyDetails $retentionPolicyDetails
*/
public function setRetentionPolicyDetails(RetentionPolicyDetails $retentionPolicyDetails)
{
$this->retentionPolicyDetails = $retentionPolicyDetails;
}
/**
* @return RetentionPolicyDetails
*/
public function getRetentionPolicyDetails()
{
return $this->retentionPolicyDetails;
}
/**
* Output only. A number that represents the current risk level of this
* BackupPlan from RPO perspective with 1 being no risk and 5 being highest
* risk.
*
* @param int $rpoRiskLevel
*/
public function setRpoRiskLevel($rpoRiskLevel)
{
$this->rpoRiskLevel = $rpoRiskLevel;
}
/**
* @return int
*/
public function getRpoRiskLevel()
{
return $this->rpoRiskLevel;
}
/**
* Output only. State of the BackupPlan.
*
* Accepted values: STATE_UNSPECIFIED, CLUSTER_PENDING, PROVISIONING, READY,
* FAILED, DEACTIVATED, DELETING
*
* @param self::STATE_* $state
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return self::STATE_*
*/
public function getState()
{
return $this->state;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BackupPlanDetails::class, 'Google_Service_BackupforGKE_BackupPlanDetails');

View File

@@ -0,0 +1,216 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\BackupforGKE;
class Binding extends \Google\Collection
{
protected $collection_key = 'members';
protected $conditionType = Expr::class;
protected $conditionDataType = '';
/**
* Specifies the principals requesting access for a Google Cloud resource.
* `members` can have the following values: * `allUsers`: A special identifier
* that represents anyone who is on the internet; with or without a Google
* account. * `allAuthenticatedUsers`: A special identifier that represents
* anyone who is authenticated with a Google account or a service account.
* Does not include identities that come from external identity providers
* (IdPs) through identity federation. * `user:{emailid}`: An email address
* that represents a specific Google account. For example, `alice@example.com`
* . * `serviceAccount:{emailid}`: An email address that represents a Google
* service account. For example, `my-other-app@appspot.gserviceaccount.com`. *
* `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An
* identifier for a [Kubernetes service
* account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-
* service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-
* kubernetes-sa]`. * `group:{emailid}`: An email address that represents a
* Google group. For example, `admins@example.com`. * `domain:{domain}`: The G
* Suite domain (primary) that represents all the users of that domain. For
* example, `google.com` or `example.com`. * `principal://iam.googleapis.com/l
* ocations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`
* : A single identity in a workforce identity pool. * `principalSet://iam.goo
* gleapis.com/locations/global/workforcePools/{pool_id}/group/{group_id}`:
* All workforce identities in a group. * `principalSet://iam.googleapis.com/l
* ocations/global/workforcePools/{pool_id}/attribute.{attribute_name}/{attrib
* ute_value}`: All workforce identities with a specific attribute value. * `p
* rincipalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}`
* : All identities in a workforce identity pool. * `principal://iam.googleapi
* s.com/projects/{project_number}/locations/global/workloadIdentityPools/{poo
* l_id}/subject/{subject_attribute_value}`: A single identity in a workload
* identity pool. * `principalSet://iam.googleapis.com/projects/{project_numbe
* r}/locations/global/workloadIdentityPools/{pool_id}/group/{group_id}`: A
* workload identity pool group. * `principalSet://iam.googleapis.com/projects
* /{project_number}/locations/global/workloadIdentityPools/{pool_id}/attribut
* e.{attribute_name}/{attribute_value}`: All identities in a workload
* identity pool with a certain attribute. * `principalSet://iam.googleapis.co
* m/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id
* }`: All identities in a workload identity pool. *
* `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
* identifier) representing a user that has been recently deleted. For
* example, `alice@example.com?uid=123456789012345678901`. If the user is
* recovered, this value reverts to `user:{emailid}` and the recovered user
* retains the role in the binding. *
* `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
* unique identifier) representing a service account that has been recently
* deleted. For example, `my-other-
* app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service
* account is undeleted, this value reverts to `serviceAccount:{emailid}` and
* the undeleted service account retains the role in the binding. *
* `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
* identifier) representing a Google group that has been recently deleted. For
* example, `admins@example.com?uid=123456789012345678901`. If the group is
* recovered, this value reverts to `group:{emailid}` and the recovered group
* retains the role in the binding. * `deleted:principal://iam.googleapis.com/
* locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}
* `: Deleted single identity in a workforce identity pool. For example,
* `deleted:principal://iam.googleapis.com/locations/global/workforcePools/my-
* pool-id/subject/my-subject-attribute-value`.
*
* @var string[]
*/
public $members;
/**
* Role that is assigned to the list of `members`, or principals. For example,
* `roles/viewer`, `roles/editor`, or `roles/owner`. For an overview of the
* IAM roles and permissions, see the [IAM
* documentation](https://cloud.google.com/iam/docs/roles-overview). For a
* list of the available pre-defined roles, see
* [here](https://cloud.google.com/iam/docs/understanding-roles).
*
* @var string
*/
public $role;
/**
* The condition that is associated with this binding. If the condition
* evaluates to `true`, then this binding applies to the current request. If
* the condition evaluates to `false`, then this binding does not apply to the
* current request. However, a different role binding might grant the same
* role to one or more of the principals in this binding. To learn which
* resources support conditions in their IAM policies, see the [IAM
* documentation](https://cloud.google.com/iam/help/conditions/resource-
* policies).
*
* @param Expr $condition
*/
public function setCondition(Expr $condition)
{
$this->condition = $condition;
}
/**
* @return Expr
*/
public function getCondition()
{
return $this->condition;
}
/**
* Specifies the principals requesting access for a Google Cloud resource.
* `members` can have the following values: * `allUsers`: A special identifier
* that represents anyone who is on the internet; with or without a Google
* account. * `allAuthenticatedUsers`: A special identifier that represents
* anyone who is authenticated with a Google account or a service account.
* Does not include identities that come from external identity providers
* (IdPs) through identity federation. * `user:{emailid}`: An email address
* that represents a specific Google account. For example, `alice@example.com`
* . * `serviceAccount:{emailid}`: An email address that represents a Google
* service account. For example, `my-other-app@appspot.gserviceaccount.com`. *
* `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An
* identifier for a [Kubernetes service
* account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-
* service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-
* kubernetes-sa]`. * `group:{emailid}`: An email address that represents a
* Google group. For example, `admins@example.com`. * `domain:{domain}`: The G
* Suite domain (primary) that represents all the users of that domain. For
* example, `google.com` or `example.com`. * `principal://iam.googleapis.com/l
* ocations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`
* : A single identity in a workforce identity pool. * `principalSet://iam.goo
* gleapis.com/locations/global/workforcePools/{pool_id}/group/{group_id}`:
* All workforce identities in a group. * `principalSet://iam.googleapis.com/l
* ocations/global/workforcePools/{pool_id}/attribute.{attribute_name}/{attrib
* ute_value}`: All workforce identities with a specific attribute value. * `p
* rincipalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}`
* : All identities in a workforce identity pool. * `principal://iam.googleapi
* s.com/projects/{project_number}/locations/global/workloadIdentityPools/{poo
* l_id}/subject/{subject_attribute_value}`: A single identity in a workload
* identity pool. * `principalSet://iam.googleapis.com/projects/{project_numbe
* r}/locations/global/workloadIdentityPools/{pool_id}/group/{group_id}`: A
* workload identity pool group. * `principalSet://iam.googleapis.com/projects
* /{project_number}/locations/global/workloadIdentityPools/{pool_id}/attribut
* e.{attribute_name}/{attribute_value}`: All identities in a workload
* identity pool with a certain attribute. * `principalSet://iam.googleapis.co
* m/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id
* }`: All identities in a workload identity pool. *
* `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
* identifier) representing a user that has been recently deleted. For
* example, `alice@example.com?uid=123456789012345678901`. If the user is
* recovered, this value reverts to `user:{emailid}` and the recovered user
* retains the role in the binding. *
* `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
* unique identifier) representing a service account that has been recently
* deleted. For example, `my-other-
* app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service
* account is undeleted, this value reverts to `serviceAccount:{emailid}` and
* the undeleted service account retains the role in the binding. *
* `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
* identifier) representing a Google group that has been recently deleted. For
* example, `admins@example.com?uid=123456789012345678901`. If the group is
* recovered, this value reverts to `group:{emailid}` and the recovered group
* retains the role in the binding. * `deleted:principal://iam.googleapis.com/
* locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}
* `: Deleted single identity in a workforce identity pool. For example,
* `deleted:principal://iam.googleapis.com/locations/global/workforcePools/my-
* pool-id/subject/my-subject-attribute-value`.
*
* @param string[] $members
*/
public function setMembers($members)
{
$this->members = $members;
}
/**
* @return string[]
*/
public function getMembers()
{
return $this->members;
}
/**
* Role that is assigned to the list of `members`, or principals. For example,
* `roles/viewer`, `roles/editor`, or `roles/owner`. For an overview of the
* IAM roles and permissions, see the [IAM
* documentation](https://cloud.google.com/iam/docs/roles-overview). For a
* list of the available pre-defined roles, see
* [here](https://cloud.google.com/iam/docs/understanding-roles).
*
* @param string $role
*/
public function setRole($role)
{
$this->role = $role;
}
/**
* @return string
*/
public function getRole()
{
return $this->role;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Binding::class, 'Google_Service_BackupforGKE_Binding');

View File

@@ -0,0 +1,142 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\BackupforGKE;
class ClusterMetadata extends \Google\Model
{
/**
* Output only. Anthos version
*
* @var string
*/
public $anthosVersion;
/**
* Output only. A list of the Backup for GKE CRD versions found in the
* cluster.
*
* @var string[]
*/
public $backupCrdVersions;
/**
* Output only. The source cluster from which this Backup was created. Valid
* formats: - `projects/locations/clusters` - `projects/zones/clusters` This
* is inherited from the parent BackupPlan's cluster field.
*
* @var string
*/
public $cluster;
/**
* Output only. GKE version
*
* @var string
*/
public $gkeVersion;
/**
* Output only. The Kubernetes server version of the source cluster.
*
* @var string
*/
public $k8sVersion;
/**
* Output only. Anthos version
*
* @param string $anthosVersion
*/
public function setAnthosVersion($anthosVersion)
{
$this->anthosVersion = $anthosVersion;
}
/**
* @return string
*/
public function getAnthosVersion()
{
return $this->anthosVersion;
}
/**
* Output only. A list of the Backup for GKE CRD versions found in the
* cluster.
*
* @param string[] $backupCrdVersions
*/
public function setBackupCrdVersions($backupCrdVersions)
{
$this->backupCrdVersions = $backupCrdVersions;
}
/**
* @return string[]
*/
public function getBackupCrdVersions()
{
return $this->backupCrdVersions;
}
/**
* Output only. The source cluster from which this Backup was created. Valid
* formats: - `projects/locations/clusters` - `projects/zones/clusters` This
* is inherited from the parent BackupPlan's cluster field.
*
* @param string $cluster
*/
public function setCluster($cluster)
{
$this->cluster = $cluster;
}
/**
* @return string
*/
public function getCluster()
{
return $this->cluster;
}
/**
* Output only. GKE version
*
* @param string $gkeVersion
*/
public function setGkeVersion($gkeVersion)
{
$this->gkeVersion = $gkeVersion;
}
/**
* @return string
*/
public function getGkeVersion()
{
return $this->gkeVersion;
}
/**
* Output only. The Kubernetes server version of the source cluster.
*
* @param string $k8sVersion
*/
public function setK8sVersion($k8sVersion)
{
$this->k8sVersion = $k8sVersion;
}
/**
* @return string
*/
public function getK8sVersion()
{
return $this->k8sVersion;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ClusterMetadata::class, 'Google_Service_BackupforGKE_ClusterMetadata');

View File

@@ -0,0 +1,118 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\BackupforGKE;
class ClusterResourceRestoreScope extends \Google\Collection
{
protected $collection_key = 'selectedGroupKinds';
/**
* Optional. If True, all valid cluster-scoped resources will be restored.
* Mutually exclusive to any other field in the message.
*
* @var bool
*/
public $allGroupKinds;
protected $excludedGroupKindsType = GroupKind::class;
protected $excludedGroupKindsDataType = 'array';
/**
* Optional. If True, no cluster-scoped resources will be restored. This has
* the same restore scope as if the message is not defined. Mutually exclusive
* to any other field in the message.
*
* @var bool
*/
public $noGroupKinds;
protected $selectedGroupKindsType = GroupKind::class;
protected $selectedGroupKindsDataType = 'array';
/**
* Optional. If True, all valid cluster-scoped resources will be restored.
* Mutually exclusive to any other field in the message.
*
* @param bool $allGroupKinds
*/
public function setAllGroupKinds($allGroupKinds)
{
$this->allGroupKinds = $allGroupKinds;
}
/**
* @return bool
*/
public function getAllGroupKinds()
{
return $this->allGroupKinds;
}
/**
* Optional. A list of cluster-scoped resource group kinds to NOT restore from
* the backup. If specified, all valid cluster-scoped resources will be
* restored except for those specified in the list. Mutually exclusive to any
* other field in the message.
*
* @param GroupKind[] $excludedGroupKinds
*/
public function setExcludedGroupKinds($excludedGroupKinds)
{
$this->excludedGroupKinds = $excludedGroupKinds;
}
/**
* @return GroupKind[]
*/
public function getExcludedGroupKinds()
{
return $this->excludedGroupKinds;
}
/**
* Optional. If True, no cluster-scoped resources will be restored. This has
* the same restore scope as if the message is not defined. Mutually exclusive
* to any other field in the message.
*
* @param bool $noGroupKinds
*/
public function setNoGroupKinds($noGroupKinds)
{
$this->noGroupKinds = $noGroupKinds;
}
/**
* @return bool
*/
public function getNoGroupKinds()
{
return $this->noGroupKinds;
}
/**
* Optional. A list of cluster-scoped resource group kinds to restore from the
* backup. If specified, only the selected resources will be restored.
* Mutually exclusive to any other field in the message.
*
* @param GroupKind[] $selectedGroupKinds
*/
public function setSelectedGroupKinds($selectedGroupKinds)
{
$this->selectedGroupKinds = $selectedGroupKinds;
}
/**
* @return GroupKind[]
*/
public function getSelectedGroupKinds()
{
return $this->selectedGroupKinds;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ClusterResourceRestoreScope::class, 'Google_Service_BackupforGKE_ClusterResourceRestoreScope');

View File

@@ -0,0 +1,100 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\BackupforGKE;
class Date extends \Google\Model
{
/**
* Day of a month. Must be from 1 to 31 and valid for the year and month, or 0
* to specify a year by itself or a year and month where the day isn't
* significant.
*
* @var int
*/
public $day;
/**
* Month of a year. Must be from 1 to 12, or 0 to specify a year without a
* month and day.
*
* @var int
*/
public $month;
/**
* Year of the date. Must be from 1 to 9999, or 0 to specify a date without a
* year.
*
* @var int
*/
public $year;
/**
* Day of a month. Must be from 1 to 31 and valid for the year and month, or 0
* to specify a year by itself or a year and month where the day isn't
* significant.
*
* @param int $day
*/
public function setDay($day)
{
$this->day = $day;
}
/**
* @return int
*/
public function getDay()
{
return $this->day;
}
/**
* Month of a year. Must be from 1 to 12, or 0 to specify a year without a
* month and day.
*
* @param int $month
*/
public function setMonth($month)
{
$this->month = $month;
}
/**
* @return int
*/
public function getMonth()
{
return $this->month;
}
/**
* Year of the date. Must be from 1 to 9999, or 0 to specify a date without a
* year.
*
* @param int $year
*/
public function setYear($year)
{
$this->year = $year;
}
/**
* @return int
*/
public function getYear()
{
return $this->year;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Date::class, 'Google_Service_BackupforGKE_Date');

View File

@@ -0,0 +1,49 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\BackupforGKE;
class DayOfWeekList extends \Google\Collection
{
protected $collection_key = 'daysOfWeek';
/**
* Optional. A list of days of week.
*
* @var string[]
*/
public $daysOfWeek;
/**
* Optional. A list of days of week.
*
* @param string[] $daysOfWeek
*/
public function setDaysOfWeek($daysOfWeek)
{
$this->daysOfWeek = $daysOfWeek;
}
/**
* @return string[]
*/
public function getDaysOfWeek()
{
return $this->daysOfWeek;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DayOfWeekList::class, 'Google_Service_BackupforGKE_DayOfWeekList');

View File

@@ -0,0 +1,50 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\BackupforGKE;
class EncryptionKey extends \Google\Model
{
/**
* Optional. Google Cloud KMS encryption key. Format:
* `projects/locations/keyRings/cryptoKeys`
*
* @var string
*/
public $gcpKmsEncryptionKey;
/**
* Optional. Google Cloud KMS encryption key. Format:
* `projects/locations/keyRings/cryptoKeys`
*
* @param string $gcpKmsEncryptionKey
*/
public function setGcpKmsEncryptionKey($gcpKmsEncryptionKey)
{
$this->gcpKmsEncryptionKey = $gcpKmsEncryptionKey;
}
/**
* @return string
*/
public function getGcpKmsEncryptionKey()
{
return $this->gcpKmsEncryptionKey;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(EncryptionKey::class, 'Google_Service_BackupforGKE_EncryptionKey');

View File

@@ -0,0 +1,140 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\BackupforGKE;
class ExclusionWindow extends \Google\Model
{
/**
* The exclusion window occurs every day if set to "True". Specifying this
* field to "False" is an error.
*
* @var bool
*/
public $daily;
protected $daysOfWeekType = DayOfWeekList::class;
protected $daysOfWeekDataType = '';
/**
* Required. Specifies duration of the window. Duration must be >= 5 minutes
* and < (target RPO - 20 minutes). Additional restrictions based on the
* recurrence type to allow some time for backup to happen: -
* single_occurrence_date: no restriction, but UI may warn about this when
* duration >= target RPO - daily window: duration < 24 hours - weekly window:
* - days of week includes all seven days of a week: duration < 24 hours - all
* other weekly window: duration < 168 hours (i.e., 24 * 7 hours)
*
* @var string
*/
public $duration;
protected $singleOccurrenceDateType = Date::class;
protected $singleOccurrenceDateDataType = '';
protected $startTimeType = TimeOfDay::class;
protected $startTimeDataType = '';
/**
* The exclusion window occurs every day if set to "True". Specifying this
* field to "False" is an error.
*
* @param bool $daily
*/
public function setDaily($daily)
{
$this->daily = $daily;
}
/**
* @return bool
*/
public function getDaily()
{
return $this->daily;
}
/**
* The exclusion window occurs on these days of each week in UTC.
*
* @param DayOfWeekList $daysOfWeek
*/
public function setDaysOfWeek(DayOfWeekList $daysOfWeek)
{
$this->daysOfWeek = $daysOfWeek;
}
/**
* @return DayOfWeekList
*/
public function getDaysOfWeek()
{
return $this->daysOfWeek;
}
/**
* Required. Specifies duration of the window. Duration must be >= 5 minutes
* and < (target RPO - 20 minutes). Additional restrictions based on the
* recurrence type to allow some time for backup to happen: -
* single_occurrence_date: no restriction, but UI may warn about this when
* duration >= target RPO - daily window: duration < 24 hours - weekly window:
* - days of week includes all seven days of a week: duration < 24 hours - all
* other weekly window: duration < 168 hours (i.e., 24 * 7 hours)
*
* @param string $duration
*/
public function setDuration($duration)
{
$this->duration = $duration;
}
/**
* @return string
*/
public function getDuration()
{
return $this->duration;
}
/**
* No recurrence. The exclusion window occurs only once and on this date in
* UTC.
*
* @param Date $singleOccurrenceDate
*/
public function setSingleOccurrenceDate(Date $singleOccurrenceDate)
{
$this->singleOccurrenceDate = $singleOccurrenceDate;
}
/**
* @return Date
*/
public function getSingleOccurrenceDate()
{
return $this->singleOccurrenceDate;
}
/**
* Optional. Specifies the start time of the window using time of the day in
* UTC.
*
* @param TimeOfDay $startTime
*/
public function setStartTime(TimeOfDay $startTime)
{
$this->startTime = $startTime;
}
/**
* @return TimeOfDay
*/
public function getStartTime()
{
return $this->startTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ExclusionWindow::class, 'Google_Service_BackupforGKE_ExclusionWindow');

View File

@@ -0,0 +1,122 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\BackupforGKE;
class Expr extends \Google\Model
{
/**
* Optional. Description of the expression. This is a longer text which
* describes the expression, e.g. when hovered over it in a UI.
*
* @var string
*/
public $description;
/**
* Textual representation of an expression in Common Expression Language
* syntax.
*
* @var string
*/
public $expression;
/**
* Optional. String indicating the location of the expression for error
* reporting, e.g. a file name and a position in the file.
*
* @var string
*/
public $location;
/**
* Optional. Title for the expression, i.e. a short string describing its
* purpose. This can be used e.g. in UIs which allow to enter the expression.
*
* @var string
*/
public $title;
/**
* Optional. Description of the expression. This is a longer text which
* describes the expression, e.g. when hovered over it in a UI.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* Textual representation of an expression in Common Expression Language
* syntax.
*
* @param string $expression
*/
public function setExpression($expression)
{
$this->expression = $expression;
}
/**
* @return string
*/
public function getExpression()
{
return $this->expression;
}
/**
* Optional. String indicating the location of the expression for error
* reporting, e.g. a file name and a position in the file.
*
* @param string $location
*/
public function setLocation($location)
{
$this->location = $location;
}
/**
* @return string
*/
public function getLocation()
{
return $this->location;
}
/**
* Optional. Title for the expression, i.e. a short string describing its
* purpose. This can be used e.g. in UIs which allow to enter the expression.
*
* @param string $title
*/
public function setTitle($title)
{
$this->title = $title;
}
/**
* @return string
*/
public function getTitle()
{
return $this->title;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Expr::class, 'Google_Service_BackupforGKE_Expr');

View File

@@ -0,0 +1,68 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\BackupforGKE;
class Filter extends \Google\Collection
{
protected $collection_key = 'inclusionFilters';
protected $exclusionFiltersType = ResourceSelector::class;
protected $exclusionFiltersDataType = 'array';
protected $inclusionFiltersType = ResourceSelector::class;
protected $inclusionFiltersDataType = 'array';
/**
* Optional. Excludes resources from restoration. If specified, a resource
* will not be restored if it matches any `ResourceSelector` of the
* `exclusion_filters`.
*
* @param ResourceSelector[] $exclusionFilters
*/
public function setExclusionFilters($exclusionFilters)
{
$this->exclusionFilters = $exclusionFilters;
}
/**
* @return ResourceSelector[]
*/
public function getExclusionFilters()
{
return $this->exclusionFilters;
}
/**
* Optional. Selects resources for restoration. If specified, only resources
* which match `inclusion_filters` will be selected for restoration. A
* resource will be selected if it matches any `ResourceSelector` of the
* `inclusion_filters`.
*
* @param ResourceSelector[] $inclusionFilters
*/
public function setInclusionFilters($inclusionFilters)
{
$this->inclusionFilters = $inclusionFilters;
}
/**
* @return ResourceSelector[]
*/
public function getInclusionFilters()
{
return $this->inclusionFilters;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Filter::class, 'Google_Service_BackupforGKE_Filter');

View File

@@ -0,0 +1,48 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\BackupforGKE;
class GetBackupIndexDownloadUrlResponse extends \Google\Model
{
/**
* Required. The signed URL for downloading the backup index.
*
* @var string
*/
public $signedUrl;
/**
* Required. The signed URL for downloading the backup index.
*
* @param string $signedUrl
*/
public function setSignedUrl($signedUrl)
{
$this->signedUrl = $signedUrl;
}
/**
* @return string
*/
public function getSignedUrl()
{
return $this->signedUrl;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GetBackupIndexDownloadUrlResponse::class, 'Google_Service_BackupforGKE_GetBackupIndexDownloadUrlResponse');

View File

@@ -0,0 +1,98 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\BackupforGKE;
class GetTagsResponse extends \Google\Model
{
/**
* A checksum based on the current bindings. This field is always set in
* server responses.
*
* @var string
*/
public $etag;
/**
* Required. The full resource name of the service resource.
*
* @var string
*/
public $name;
/**
* Required. Tag keys/values directly bound to this resource. Each item in the
* map must be expressed as " : ". For example: "123/environment" :
* "production", "123/costCenter" : "marketing"
*
* @var string[]
*/
public $tags;
/**
* A checksum based on the current bindings. This field is always set in
* server responses.
*
* @param string $etag
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* Required. The full resource name of the service resource.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Required. Tag keys/values directly bound to this resource. Each item in the
* map must be expressed as " : ". For example: "123/environment" :
* "production", "123/costCenter" : "marketing"
*
* @param string[] $tags
*/
public function setTags($tags)
{
$this->tags = $tags;
}
/**
* @return string[]
*/
public function getTags()
{
return $this->tags;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GetTagsResponse::class, 'Google_Service_BackupforGKE_GetTagsResponse');

View File

@@ -0,0 +1,25 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\BackupforGKE;
class GkebackupEmpty extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GkebackupEmpty::class, 'Google_Service_BackupforGKE_GkebackupEmpty');

View File

@@ -0,0 +1,25 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\BackupforGKE;
class GoogleLongrunningCancelOperationRequest extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleLongrunningCancelOperationRequest::class, 'Google_Service_BackupforGKE_GoogleLongrunningCancelOperationRequest');

View File

@@ -0,0 +1,95 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\BackupforGKE;
class GoogleLongrunningListOperationsResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
/**
* The standard List next-page token.
*
* @var string
*/
public $nextPageToken;
protected $operationsType = GoogleLongrunningOperation::class;
protected $operationsDataType = 'array';
/**
* Unordered list. Unreachable resources. Populated when the request sets
* `ListOperationsRequest.return_partial_success` and reads across
* collections. For example, when attempting to list all resources across all
* supported locations.
*
* @var string[]
*/
public $unreachable;
/**
* The standard List next-page token.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* A list of operations that matches the specified filter in the request.
*
* @param GoogleLongrunningOperation[] $operations
*/
public function setOperations($operations)
{
$this->operations = $operations;
}
/**
* @return GoogleLongrunningOperation[]
*/
public function getOperations()
{
return $this->operations;
}
/**
* Unordered list. Unreachable resources. Populated when the request sets
* `ListOperationsRequest.return_partial_success` and reads across
* collections. For example, when attempting to list all resources across all
* supported locations.
*
* @param string[] $unreachable
*/
public function setUnreachable($unreachable)
{
$this->unreachable = $unreachable;
}
/**
* @return string[]
*/
public function getUnreachable()
{
return $this->unreachable;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleLongrunningListOperationsResponse::class, 'Google_Service_BackupforGKE_GoogleLongrunningListOperationsResponse');

View File

@@ -0,0 +1,158 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\BackupforGKE;
class GoogleLongrunningOperation extends \Google\Model
{
/**
* If the value is `false`, it means the operation is still in progress. If
* `true`, the operation is completed, and either `error` or `response` is
* available.
*
* @var bool
*/
public $done;
protected $errorType = GoogleRpcStatus::class;
protected $errorDataType = '';
/**
* Service-specific metadata associated with the operation. It typically
* contains progress information and common metadata such as create time. Some
* services might not provide such metadata. Any method that returns a long-
* running operation should document the metadata type, if any.
*
* @var array[]
*/
public $metadata;
/**
* The server-assigned name, which is only unique within the same service that
* originally returns it. If you use the default HTTP mapping, the `name`
* should be a resource name ending with `operations/{unique_id}`.
*
* @var string
*/
public $name;
/**
* The normal, successful response of the operation. If the original method
* returns no data on success, such as `Delete`, the response is
* `google.protobuf.Empty`. If the original method is standard
* `Get`/`Create`/`Update`, the response should be the resource. For other
* methods, the response should have the type `XxxResponse`, where `Xxx` is
* the original method name. For example, if the original method name is
* `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
*
* @var array[]
*/
public $response;
/**
* If the value is `false`, it means the operation is still in progress. If
* `true`, the operation is completed, and either `error` or `response` is
* available.
*
* @param bool $done
*/
public function setDone($done)
{
$this->done = $done;
}
/**
* @return bool
*/
public function getDone()
{
return $this->done;
}
/**
* The error result of the operation in case of failure or cancellation.
*
* @param GoogleRpcStatus $error
*/
public function setError(GoogleRpcStatus $error)
{
$this->error = $error;
}
/**
* @return GoogleRpcStatus
*/
public function getError()
{
return $this->error;
}
/**
* Service-specific metadata associated with the operation. It typically
* contains progress information and common metadata such as create time. Some
* services might not provide such metadata. Any method that returns a long-
* running operation should document the metadata type, if any.
*
* @param array[] $metadata
*/
public function setMetadata($metadata)
{
$this->metadata = $metadata;
}
/**
* @return array[]
*/
public function getMetadata()
{
return $this->metadata;
}
/**
* The server-assigned name, which is only unique within the same service that
* originally returns it. If you use the default HTTP mapping, the `name`
* should be a resource name ending with `operations/{unique_id}`.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* The normal, successful response of the operation. If the original method
* returns no data on success, such as `Delete`, the response is
* `google.protobuf.Empty`. If the original method is standard
* `Get`/`Create`/`Update`, the response should be the resource. For other
* methods, the response should have the type `XxxResponse`, where `Xxx` is
* the original method name. For example, if the original method name is
* `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
*
* @param array[] $response
*/
public function setResponse($response)
{
$this->response = $response;
}
/**
* @return array[]
*/
public function getResponse()
{
return $this->response;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleLongrunningOperation::class, 'Google_Service_BackupforGKE_GoogleLongrunningOperation');

View File

@@ -0,0 +1,99 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\BackupforGKE;
class GoogleRpcStatus extends \Google\Collection
{
protected $collection_key = 'details';
/**
* The status code, which should be an enum value of google.rpc.Code.
*
* @var int
*/
public $code;
/**
* A list of messages that carry the error details. There is a common set of
* message types for APIs to use.
*
* @var array[]
*/
public $details;
/**
* A developer-facing error message, which should be in English. Any user-
* facing error message should be localized and sent in the
* google.rpc.Status.details field, or localized by the client.
*
* @var string
*/
public $message;
/**
* The status code, which should be an enum value of google.rpc.Code.
*
* @param int $code
*/
public function setCode($code)
{
$this->code = $code;
}
/**
* @return int
*/
public function getCode()
{
return $this->code;
}
/**
* A list of messages that carry the error details. There is a common set of
* message types for APIs to use.
*
* @param array[] $details
*/
public function setDetails($details)
{
$this->details = $details;
}
/**
* @return array[]
*/
public function getDetails()
{
return $this->details;
}
/**
* A developer-facing error message, which should be in English. Any user-
* facing error message should be localized and sent in the
* google.rpc.Status.details field, or localized by the client.
*
* @param string $message
*/
public function setMessage($message)
{
$this->message = $message;
}
/**
* @return string
*/
public function getMessage()
{
return $this->message;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleRpcStatus::class, 'Google_Service_BackupforGKE_GoogleRpcStatus');

View File

@@ -0,0 +1,78 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\BackupforGKE;
class GroupKind extends \Google\Model
{
/**
* Optional. API group string of a Kubernetes resource, e.g.
* "apiextensions.k8s.io", "storage.k8s.io", etc. Note: use empty string for
* core API group.
*
* @var string
*/
public $resourceGroup;
/**
* Optional. Kind of a Kubernetes resource, must be in UpperCamelCase
* (PascalCase) and singular form. E.g. "CustomResourceDefinition",
* "StorageClass", etc.
*
* @var string
*/
public $resourceKind;
/**
* Optional. API group string of a Kubernetes resource, e.g.
* "apiextensions.k8s.io", "storage.k8s.io", etc. Note: use empty string for
* core API group.
*
* @param string $resourceGroup
*/
public function setResourceGroup($resourceGroup)
{
$this->resourceGroup = $resourceGroup;
}
/**
* @return string
*/
public function getResourceGroup()
{
return $this->resourceGroup;
}
/**
* Optional. Kind of a Kubernetes resource, must be in UpperCamelCase
* (PascalCase) and singular form. E.g. "CustomResourceDefinition",
* "StorageClass", etc.
*
* @param string $resourceKind
*/
public function setResourceKind($resourceKind)
{
$this->resourceKind = $resourceKind;
}
/**
* @return string
*/
public function getResourceKind()
{
return $this->resourceKind;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GroupKind::class, 'Google_Service_BackupforGKE_GroupKind');

View File

@@ -0,0 +1,64 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\BackupforGKE;
class GroupKindDependency extends \Google\Model
{
protected $requiringType = GroupKind::class;
protected $requiringDataType = '';
protected $satisfyingType = GroupKind::class;
protected $satisfyingDataType = '';
/**
* Required. The requiring group kind requires that the other group kind be
* restored first.
*
* @param GroupKind $requiring
*/
public function setRequiring(GroupKind $requiring)
{
$this->requiring = $requiring;
}
/**
* @return GroupKind
*/
public function getRequiring()
{
return $this->requiring;
}
/**
* Required. The satisfying group kind must be restored first in order to
* satisfy the dependency.
*
* @param GroupKind $satisfying
*/
public function setSatisfying(GroupKind $satisfying)
{
$this->satisfying = $satisfying;
}
/**
* @return GroupKind
*/
public function getSatisfying()
{
return $this->satisfying;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GroupKindDependency::class, 'Google_Service_BackupforGKE_GroupKindDependency');

View File

@@ -0,0 +1,70 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\BackupforGKE;
class Label extends \Google\Model
{
/**
* Optional. The key/name of the label.
*
* @var string
*/
public $key;
/**
* Optional. The value of the label.
*
* @var string
*/
public $value;
/**
* Optional. The key/name of the label.
*
* @param string $key
*/
public function setKey($key)
{
$this->key = $key;
}
/**
* @return string
*/
public function getKey()
{
return $this->key;
}
/**
* Optional. The value of the label.
*
* @param string $value
*/
public function setValue($value)
{
$this->value = $value;
}
/**
* @return string
*/
public function getValue()
{
return $this->value;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Label::class, 'Google_Service_BackupforGKE_Label');

View File

@@ -0,0 +1,93 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\BackupforGKE;
class ListBackupChannelsResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
protected $backupChannelsType = BackupChannel::class;
protected $backupChannelsDataType = 'array';
/**
* A token which may be sent as page_token in a subsequent
* `ListBackupChannels` call to retrieve the next page of results. If this
* field is omitted or empty, then there are no more results to return.
*
* @var string
*/
public $nextPageToken;
/**
* Locations that could not be reached.
*
* @var string[]
*/
public $unreachable;
/**
* The list of BackupChannels matching the given criteria.
*
* @param BackupChannel[] $backupChannels
*/
public function setBackupChannels($backupChannels)
{
$this->backupChannels = $backupChannels;
}
/**
* @return BackupChannel[]
*/
public function getBackupChannels()
{
return $this->backupChannels;
}
/**
* A token which may be sent as page_token in a subsequent
* `ListBackupChannels` call to retrieve the next page of results. If this
* field is omitted or empty, then there are no more results to return.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* Locations that could not be reached.
*
* @param string[] $unreachable
*/
public function setUnreachable($unreachable)
{
$this->unreachable = $unreachable;
}
/**
* @return string[]
*/
public function getUnreachable()
{
return $this->unreachable;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListBackupChannelsResponse::class, 'Google_Service_BackupforGKE_ListBackupChannelsResponse');

View File

@@ -0,0 +1,93 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\BackupforGKE;
class ListBackupPlanBindingsResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
protected $backupPlanBindingsType = BackupPlanBinding::class;
protected $backupPlanBindingsDataType = 'array';
/**
* A token which may be sent as page_token in a subsequent
* `ListBackupPlanBindingss` call to retrieve the next page of results. If
* this field is omitted or empty, then there are no more results to return.
*
* @var string
*/
public $nextPageToken;
/**
* Locations that could not be reached.
*
* @var string[]
*/
public $unreachable;
/**
* The list of BackupPlanBindings matching the given criteria.
*
* @param BackupPlanBinding[] $backupPlanBindings
*/
public function setBackupPlanBindings($backupPlanBindings)
{
$this->backupPlanBindings = $backupPlanBindings;
}
/**
* @return BackupPlanBinding[]
*/
public function getBackupPlanBindings()
{
return $this->backupPlanBindings;
}
/**
* A token which may be sent as page_token in a subsequent
* `ListBackupPlanBindingss` call to retrieve the next page of results. If
* this field is omitted or empty, then there are no more results to return.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* Locations that could not be reached.
*
* @param string[] $unreachable
*/
public function setUnreachable($unreachable)
{
$this->unreachable = $unreachable;
}
/**
* @return string[]
*/
public function getUnreachable()
{
return $this->unreachable;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListBackupPlanBindingsResponse::class, 'Google_Service_BackupforGKE_ListBackupPlanBindingsResponse');

View File

@@ -0,0 +1,93 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\BackupforGKE;
class ListBackupPlansResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
protected $backupPlansType = BackupPlan::class;
protected $backupPlansDataType = 'array';
/**
* A token which may be sent as page_token in a subsequent `ListBackupPlans`
* call to retrieve the next page of results. If this field is omitted or
* empty, then there are no more results to return.
*
* @var string
*/
public $nextPageToken;
/**
* Locations that could not be reached.
*
* @var string[]
*/
public $unreachable;
/**
* The list of BackupPlans matching the given criteria.
*
* @param BackupPlan[] $backupPlans
*/
public function setBackupPlans($backupPlans)
{
$this->backupPlans = $backupPlans;
}
/**
* @return BackupPlan[]
*/
public function getBackupPlans()
{
return $this->backupPlans;
}
/**
* A token which may be sent as page_token in a subsequent `ListBackupPlans`
* call to retrieve the next page of results. If this field is omitted or
* empty, then there are no more results to return.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* Locations that could not be reached.
*
* @param string[] $unreachable
*/
public function setUnreachable($unreachable)
{
$this->unreachable = $unreachable;
}
/**
* @return string[]
*/
public function getUnreachable()
{
return $this->unreachable;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListBackupPlansResponse::class, 'Google_Service_BackupforGKE_ListBackupPlansResponse');

View File

@@ -0,0 +1,93 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\BackupforGKE;
class ListBackupsResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
protected $backupsType = Backup::class;
protected $backupsDataType = 'array';
/**
* A token which may be sent as page_token in a subsequent `ListBackups` call
* to retrieve the next page of results. If this field is omitted or empty,
* then there are no more results to return.
*
* @var string
*/
public $nextPageToken;
/**
* Locations that could not be reached.
*
* @var string[]
*/
public $unreachable;
/**
* The list of Backups matching the given criteria.
*
* @param Backup[] $backups
*/
public function setBackups($backups)
{
$this->backups = $backups;
}
/**
* @return Backup[]
*/
public function getBackups()
{
return $this->backups;
}
/**
* A token which may be sent as page_token in a subsequent `ListBackups` call
* to retrieve the next page of results. If this field is omitted or empty,
* then there are no more results to return.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* Locations that could not be reached.
*
* @param string[] $unreachable
*/
public function setUnreachable($unreachable)
{
$this->unreachable = $unreachable;
}
/**
* @return string[]
*/
public function getUnreachable()
{
return $this->unreachable;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListBackupsResponse::class, 'Google_Service_BackupforGKE_ListBackupsResponse');

View File

@@ -0,0 +1,67 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\BackupforGKE;
class ListLocationsResponse extends \Google\Collection
{
protected $collection_key = 'locations';
protected $locationsType = Location::class;
protected $locationsDataType = 'array';
/**
* The standard List next-page token.
*
* @var string
*/
public $nextPageToken;
/**
* A list of locations that matches the specified filter in the request.
*
* @param Location[] $locations
*/
public function setLocations($locations)
{
$this->locations = $locations;
}
/**
* @return Location[]
*/
public function getLocations()
{
return $this->locations;
}
/**
* The standard List next-page token.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListLocationsResponse::class, 'Google_Service_BackupforGKE_ListLocationsResponse');

View File

@@ -0,0 +1,93 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\BackupforGKE;
class ListRestoreChannelsResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
/**
* A token which may be sent as page_token in a subsequent
* `ListRestoreChannels` call to retrieve the next page of results. If this
* field is omitted or empty, then there are no more results to return.
*
* @var string
*/
public $nextPageToken;
protected $restoreChannelsType = RestoreChannel::class;
protected $restoreChannelsDataType = 'array';
/**
* Locations that could not be reached.
*
* @var string[]
*/
public $unreachable;
/**
* A token which may be sent as page_token in a subsequent
* `ListRestoreChannels` call to retrieve the next page of results. If this
* field is omitted or empty, then there are no more results to return.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* The list of RestoreChannels matching the given criteria.
*
* @param RestoreChannel[] $restoreChannels
*/
public function setRestoreChannels($restoreChannels)
{
$this->restoreChannels = $restoreChannels;
}
/**
* @return RestoreChannel[]
*/
public function getRestoreChannels()
{
return $this->restoreChannels;
}
/**
* Locations that could not be reached.
*
* @param string[] $unreachable
*/
public function setUnreachable($unreachable)
{
$this->unreachable = $unreachable;
}
/**
* @return string[]
*/
public function getUnreachable()
{
return $this->unreachable;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListRestoreChannelsResponse::class, 'Google_Service_BackupforGKE_ListRestoreChannelsResponse');

View File

@@ -0,0 +1,93 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\BackupforGKE;
class ListRestorePlanBindingsResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
/**
* A token which may be sent as page_token in a subsequent
* `ListRestorePlanBindings` call to retrieve the next page of results. If
* this field is omitted or empty, then there are no more results to return.
*
* @var string
*/
public $nextPageToken;
protected $restorePlanBindingsType = RestorePlanBinding::class;
protected $restorePlanBindingsDataType = 'array';
/**
* Unordered list. Locations that could not be reached.
*
* @var string[]
*/
public $unreachable;
/**
* A token which may be sent as page_token in a subsequent
* `ListRestorePlanBindings` call to retrieve the next page of results. If
* this field is omitted or empty, then there are no more results to return.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* The list of RestorePlanBindings matching the given criteria.
*
* @param RestorePlanBinding[] $restorePlanBindings
*/
public function setRestorePlanBindings($restorePlanBindings)
{
$this->restorePlanBindings = $restorePlanBindings;
}
/**
* @return RestorePlanBinding[]
*/
public function getRestorePlanBindings()
{
return $this->restorePlanBindings;
}
/**
* Unordered list. Locations that could not be reached.
*
* @param string[] $unreachable
*/
public function setUnreachable($unreachable)
{
$this->unreachable = $unreachable;
}
/**
* @return string[]
*/
public function getUnreachable()
{
return $this->unreachable;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListRestorePlanBindingsResponse::class, 'Google_Service_BackupforGKE_ListRestorePlanBindingsResponse');

View File

@@ -0,0 +1,93 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\BackupforGKE;
class ListRestorePlansResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
/**
* A token which may be sent as page_token in a subsequent `ListRestorePlans`
* call to retrieve the next page of results. If this field is omitted or
* empty, then there are no more results to return.
*
* @var string
*/
public $nextPageToken;
protected $restorePlansType = RestorePlan::class;
protected $restorePlansDataType = 'array';
/**
* Locations that could not be reached.
*
* @var string[]
*/
public $unreachable;
/**
* A token which may be sent as page_token in a subsequent `ListRestorePlans`
* call to retrieve the next page of results. If this field is omitted or
* empty, then there are no more results to return.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* The list of RestorePlans matching the given criteria.
*
* @param RestorePlan[] $restorePlans
*/
public function setRestorePlans($restorePlans)
{
$this->restorePlans = $restorePlans;
}
/**
* @return RestorePlan[]
*/
public function getRestorePlans()
{
return $this->restorePlans;
}
/**
* Locations that could not be reached.
*
* @param string[] $unreachable
*/
public function setUnreachable($unreachable)
{
$this->unreachable = $unreachable;
}
/**
* @return string[]
*/
public function getUnreachable()
{
return $this->unreachable;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListRestorePlansResponse::class, 'Google_Service_BackupforGKE_ListRestorePlansResponse');

View File

@@ -0,0 +1,93 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\BackupforGKE;
class ListRestoresResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
/**
* A token which may be sent as page_token in a subsequent `ListRestores` call
* to retrieve the next page of results. If this field is omitted or empty,
* then there are no more results to return.
*
* @var string
*/
public $nextPageToken;
protected $restoresType = Restore::class;
protected $restoresDataType = 'array';
/**
* Locations that could not be reached.
*
* @var string[]
*/
public $unreachable;
/**
* A token which may be sent as page_token in a subsequent `ListRestores` call
* to retrieve the next page of results. If this field is omitted or empty,
* then there are no more results to return.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* The list of Restores matching the given criteria.
*
* @param Restore[] $restores
*/
public function setRestores($restores)
{
$this->restores = $restores;
}
/**
* @return Restore[]
*/
public function getRestores()
{
return $this->restores;
}
/**
* Locations that could not be reached.
*
* @param string[] $unreachable
*/
public function setUnreachable($unreachable)
{
$this->unreachable = $unreachable;
}
/**
* @return string[]
*/
public function getUnreachable()
{
return $this->unreachable;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListRestoresResponse::class, 'Google_Service_BackupforGKE_ListRestoresResponse');

View File

@@ -0,0 +1,71 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\BackupforGKE;
class ListVolumeBackupsResponse extends \Google\Collection
{
protected $collection_key = 'volumeBackups';
/**
* A token which may be sent as page_token in a subsequent `ListVolumeBackups`
* call to retrieve the next page of results. If this field is omitted or
* empty, then there are no more results to return.
*
* @var string
*/
public $nextPageToken;
protected $volumeBackupsType = VolumeBackup::class;
protected $volumeBackupsDataType = 'array';
/**
* A token which may be sent as page_token in a subsequent `ListVolumeBackups`
* call to retrieve the next page of results. If this field is omitted or
* empty, then there are no more results to return.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* The list of VolumeBackups matching the given criteria.
*
* @param VolumeBackup[] $volumeBackups
*/
public function setVolumeBackups($volumeBackups)
{
$this->volumeBackups = $volumeBackups;
}
/**
* @return VolumeBackup[]
*/
public function getVolumeBackups()
{
return $this->volumeBackups;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListVolumeBackupsResponse::class, 'Google_Service_BackupforGKE_ListVolumeBackupsResponse');

View File

@@ -0,0 +1,71 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\BackupforGKE;
class ListVolumeRestoresResponse extends \Google\Collection
{
protected $collection_key = 'volumeRestores';
/**
* A token which may be sent as page_token in a subsequent
* `ListVolumeRestores` call to retrieve the next page of results. If this
* field is omitted or empty, then there are no more results to return.
*
* @var string
*/
public $nextPageToken;
protected $volumeRestoresType = VolumeRestore::class;
protected $volumeRestoresDataType = 'array';
/**
* A token which may be sent as page_token in a subsequent
* `ListVolumeRestores` call to retrieve the next page of results. If this
* field is omitted or empty, then there are no more results to return.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* The list of VolumeRestores matching the given criteria.
*
* @param VolumeRestore[] $volumeRestores
*/
public function setVolumeRestores($volumeRestores)
{
$this->volumeRestores = $volumeRestores;
}
/**
* @return VolumeRestore[]
*/
public function getVolumeRestores()
{
return $this->volumeRestores;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListVolumeRestoresResponse::class, 'Google_Service_BackupforGKE_ListVolumeRestoresResponse');

View File

@@ -0,0 +1,144 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\BackupforGKE;
class Location extends \Google\Model
{
/**
* The friendly name for this location, typically a nearby city name. For
* example, "Tokyo".
*
* @var string
*/
public $displayName;
/**
* Cross-service attributes for the location. For example
* {"cloud.googleapis.com/region": "us-east1"}
*
* @var string[]
*/
public $labels;
/**
* The canonical id for this location. For example: `"us-east1"`.
*
* @var string
*/
public $locationId;
/**
* Service-specific metadata. For example the available capacity at the given
* location.
*
* @var array[]
*/
public $metadata;
/**
* Resource name for the location, which may vary between implementations. For
* example: `"projects/example-project/locations/us-east1"`
*
* @var string
*/
public $name;
/**
* The friendly name for this location, typically a nearby city name. For
* example, "Tokyo".
*
* @param string $displayName
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* Cross-service attributes for the location. For example
* {"cloud.googleapis.com/region": "us-east1"}
*
* @param string[] $labels
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* The canonical id for this location. For example: `"us-east1"`.
*
* @param string $locationId
*/
public function setLocationId($locationId)
{
$this->locationId = $locationId;
}
/**
* @return string
*/
public function getLocationId()
{
return $this->locationId;
}
/**
* Service-specific metadata. For example the available capacity at the given
* location.
*
* @param array[] $metadata
*/
public function setMetadata($metadata)
{
$this->metadata = $metadata;
}
/**
* @return array[]
*/
public function getMetadata()
{
return $this->metadata;
}
/**
* Resource name for the location, which may vary between implementations. For
* example: `"projects/example-project/locations/us-east1"`
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Location::class, 'Google_Service_BackupforGKE_Location');

View File

@@ -0,0 +1,70 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\BackupforGKE;
class NamespacedName extends \Google\Model
{
/**
* Optional. The name of the Kubernetes resource.
*
* @var string
*/
public $name;
/**
* Optional. The Namespace of the Kubernetes resource.
*
* @var string
*/
public $namespace;
/**
* Optional. The name of the Kubernetes resource.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Optional. The Namespace of the Kubernetes resource.
*
* @param string $namespace
*/
public function setNamespace($namespace)
{
$this->namespace = $namespace;
}
/**
* @return string
*/
public function getNamespace()
{
return $this->namespace;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(NamespacedName::class, 'Google_Service_BackupforGKE_NamespacedName');

View File

@@ -0,0 +1,45 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\BackupforGKE;
class NamespacedNames extends \Google\Collection
{
protected $collection_key = 'namespacedNames';
protected $namespacedNamesType = NamespacedName::class;
protected $namespacedNamesDataType = 'array';
/**
* Optional. A list of namespaced Kubernetes resources.
*
* @param NamespacedName[] $namespacedNames
*/
public function setNamespacedNames($namespacedNames)
{
$this->namespacedNames = $namespacedNames;
}
/**
* @return NamespacedName[]
*/
public function getNamespacedNames()
{
return $this->namespacedNames;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(NamespacedNames::class, 'Google_Service_BackupforGKE_NamespacedNames');

View File

@@ -0,0 +1,49 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\BackupforGKE;
class Namespaces extends \Google\Collection
{
protected $collection_key = 'namespaces';
/**
* Optional. A list of Kubernetes Namespaces.
*
* @var string[]
*/
public $namespaces;
/**
* Optional. A list of Kubernetes Namespaces.
*
* @param string[] $namespaces
*/
public function setNamespaces($namespaces)
{
$this->namespaces = $namespaces;
}
/**
* @return string[]
*/
public function getNamespaces()
{
return $this->namespaces;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Namespaces::class, 'Google_Service_BackupforGKE_Namespaces');

View File

@@ -0,0 +1,186 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\BackupforGKE;
class OperationMetadata extends \Google\Model
{
/**
* Output only. API version used to start the operation.
*
* @var string
*/
public $apiVersion;
/**
* Output only. The time the operation was created.
*
* @var string
*/
public $createTime;
/**
* Output only. The time the operation finished running.
*
* @var string
*/
public $endTime;
/**
* Output only. Identifies whether the user has requested cancellation of the
* operation. Operations that have successfully been cancelled have
* google.longrunning.Operation.error value with a google.rpc.Status.code of
* 1, corresponding to `Code.CANCELLED`.
*
* @var bool
*/
public $requestedCancellation;
/**
* Output only. Human-readable status of the operation, if any.
*
* @var string
*/
public $statusMessage;
/**
* Output only. Server-defined resource path for the target of the operation.
*
* @var string
*/
public $target;
/**
* Output only. Name of the verb executed by the operation.
*
* @var string
*/
public $verb;
/**
* Output only. API version used to start the operation.
*
* @param string $apiVersion
*/
public function setApiVersion($apiVersion)
{
$this->apiVersion = $apiVersion;
}
/**
* @return string
*/
public function getApiVersion()
{
return $this->apiVersion;
}
/**
* Output only. The time the operation was created.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* Output only. The time the operation finished running.
*
* @param string $endTime
*/
public function setEndTime($endTime)
{
$this->endTime = $endTime;
}
/**
* @return string
*/
public function getEndTime()
{
return $this->endTime;
}
/**
* Output only. Identifies whether the user has requested cancellation of the
* operation. Operations that have successfully been cancelled have
* google.longrunning.Operation.error value with a google.rpc.Status.code of
* 1, corresponding to `Code.CANCELLED`.
*
* @param bool $requestedCancellation
*/
public function setRequestedCancellation($requestedCancellation)
{
$this->requestedCancellation = $requestedCancellation;
}
/**
* @return bool
*/
public function getRequestedCancellation()
{
return $this->requestedCancellation;
}
/**
* Output only. Human-readable status of the operation, if any.
*
* @param string $statusMessage
*/
public function setStatusMessage($statusMessage)
{
$this->statusMessage = $statusMessage;
}
/**
* @return string
*/
public function getStatusMessage()
{
return $this->statusMessage;
}
/**
* Output only. Server-defined resource path for the target of the operation.
*
* @param string $target
*/
public function setTarget($target)
{
$this->target = $target;
}
/**
* @return string
*/
public function getTarget()
{
return $this->target;
}
/**
* Output only. Name of the verb executed by the operation.
*
* @param string $verb
*/
public function setVerb($verb)
{
$this->verb = $verb;
}
/**
* @return string
*/
public function getVerb()
{
return $this->verb;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(OperationMetadata::class, 'Google_Service_BackupforGKE_OperationMetadata');

View File

@@ -0,0 +1,165 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\BackupforGKE;
class Policy extends \Google\Collection
{
protected $collection_key = 'bindings';
protected $auditConfigsType = AuditConfig::class;
protected $auditConfigsDataType = 'array';
protected $bindingsType = Binding::class;
protected $bindingsDataType = 'array';
/**
* `etag` is used for optimistic concurrency control as a way to help prevent
* simultaneous updates of a policy from overwriting each other. It is
* strongly suggested that systems make use of the `etag` in the read-modify-
* write cycle to perform policy updates in order to avoid race conditions: An
* `etag` is returned in the response to `getIamPolicy`, and systems are
* expected to put that etag in the request to `setIamPolicy` to ensure that
* their change will be applied to the same version of the policy.
* **Important:** If you use IAM Conditions, you must include the `etag` field
* whenever you call `setIamPolicy`. If you omit this field, then IAM allows
* you to overwrite a version `3` policy with a version `1` policy, and all of
* the conditions in the version `3` policy are lost.
*
* @var string
*/
public $etag;
/**
* Specifies the format of the policy. Valid values are `0`, `1`, and `3`.
* Requests that specify an invalid value are rejected. Any operation that
* affects conditional role bindings must specify version `3`. This
* requirement applies to the following operations: * Getting a policy that
* includes a conditional role binding * Adding a conditional role binding to
* a policy * Changing a conditional role binding in a policy * Removing any
* role binding, with or without a condition, from a policy that includes
* conditions **Important:** If you use IAM Conditions, you must include the
* `etag` field whenever you call `setIamPolicy`. If you omit this field, then
* IAM allows you to overwrite a version `3` policy with a version `1` policy,
* and all of the conditions in the version `3` policy are lost. If a policy
* does not include any conditions, operations on that policy may specify any
* valid version or leave the field unset. To learn which resources support
* conditions in their IAM policies, see the [IAM
* documentation](https://cloud.google.com/iam/help/conditions/resource-
* policies).
*
* @var int
*/
public $version;
/**
* Specifies cloud audit logging configuration for this policy.
*
* @param AuditConfig[] $auditConfigs
*/
public function setAuditConfigs($auditConfigs)
{
$this->auditConfigs = $auditConfigs;
}
/**
* @return AuditConfig[]
*/
public function getAuditConfigs()
{
return $this->auditConfigs;
}
/**
* Associates a list of `members`, or principals, with a `role`. Optionally,
* may specify a `condition` that determines how and when the `bindings` are
* applied. Each of the `bindings` must contain at least one principal. The
* `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250 of
* these principals can be Google groups. Each occurrence of a principal
* counts towards these limits. For example, if the `bindings` grant 50
* different roles to `user:alice@example.com`, and not to any other
* principal, then you can add another 1,450 principals to the `bindings` in
* the `Policy`.
*
* @param Binding[] $bindings
*/
public function setBindings($bindings)
{
$this->bindings = $bindings;
}
/**
* @return Binding[]
*/
public function getBindings()
{
return $this->bindings;
}
/**
* `etag` is used for optimistic concurrency control as a way to help prevent
* simultaneous updates of a policy from overwriting each other. It is
* strongly suggested that systems make use of the `etag` in the read-modify-
* write cycle to perform policy updates in order to avoid race conditions: An
* `etag` is returned in the response to `getIamPolicy`, and systems are
* expected to put that etag in the request to `setIamPolicy` to ensure that
* their change will be applied to the same version of the policy.
* **Important:** If you use IAM Conditions, you must include the `etag` field
* whenever you call `setIamPolicy`. If you omit this field, then IAM allows
* you to overwrite a version `3` policy with a version `1` policy, and all of
* the conditions in the version `3` policy are lost.
*
* @param string $etag
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* Specifies the format of the policy. Valid values are `0`, `1`, and `3`.
* Requests that specify an invalid value are rejected. Any operation that
* affects conditional role bindings must specify version `3`. This
* requirement applies to the following operations: * Getting a policy that
* includes a conditional role binding * Adding a conditional role binding to
* a policy * Changing a conditional role binding in a policy * Removing any
* role binding, with or without a condition, from a policy that includes
* conditions **Important:** If you use IAM Conditions, you must include the
* `etag` field whenever you call `setIamPolicy`. If you omit this field, then
* IAM allows you to overwrite a version `3` policy with a version `1` policy,
* and all of the conditions in the version `3` policy are lost. If a policy
* does not include any conditions, operations on that policy may specify any
* valid version or leave the field unset. To learn which resources support
* conditions in their IAM policies, see the [IAM
* documentation](https://cloud.google.com/iam/help/conditions/resource-
* policies).
*
* @param int $version
*/
public function setVersion($version)
{
$this->version = $version;
}
/**
* @return int
*/
public function getVersion()
{
return $this->version;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Policy::class, 'Google_Service_BackupforGKE_Policy');

View File

@@ -0,0 +1,33 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\BackupforGKE\Resource;
/**
* The "projects" collection of methods.
* Typical usage is:
* <code>
* $gkebackupService = new Google\Service\BackupforGKE(...);
* $projects = $gkebackupService->projects;
* </code>
*/
class Projects extends \Google\Service\Resource
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Projects::class, 'Google_Service_BackupforGKE_Resource_Projects');

View File

@@ -0,0 +1,77 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\BackupforGKE\Resource;
use Google\Service\BackupforGKE\ListLocationsResponse;
use Google\Service\BackupforGKE\Location;
/**
* The "locations" collection of methods.
* Typical usage is:
* <code>
* $gkebackupService = new Google\Service\BackupforGKE(...);
* $locations = $gkebackupService->projects_locations;
* </code>
*/
class ProjectsLocations extends \Google\Service\Resource
{
/**
* Gets information about a location. (locations.get)
*
* @param string $name Resource name for the location.
* @param array $optParams Optional parameters.
* @return Location
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Location::class);
}
/**
* Lists information about the supported locations for this service.
* (locations.listProjectsLocations)
*
* @param string $name The resource that owns the locations collection, if
* applicable.
* @param array $optParams Optional parameters.
*
* @opt_param string extraLocationTypes Optional. Do not use this field. It is
* unsupported and is ignored unless explicitly documented otherwise. This is
* primarily for internal usage.
* @opt_param string filter A filter to narrow down results to a preferred
* subset. The filtering language accepts strings like `"displayName=tokyo"`,
* and is documented in more detail in [AIP-160](https://google.aip.dev/160).
* @opt_param int pageSize The maximum number of results to return. If not set,
* the service selects a default.
* @opt_param string pageToken A page token received from the `next_page_token`
* field in the response. Send that page token to receive the subsequent page.
* @return ListLocationsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocations($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListLocationsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocations::class, 'Google_Service_BackupforGKE_Resource_ProjectsLocations');

View File

@@ -0,0 +1,153 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\BackupforGKE\Resource;
use Google\Service\BackupforGKE\BackupChannel;
use Google\Service\BackupforGKE\GoogleLongrunningOperation;
use Google\Service\BackupforGKE\ListBackupChannelsResponse;
/**
* The "backupChannels" collection of methods.
* Typical usage is:
* <code>
* $gkebackupService = new Google\Service\BackupforGKE(...);
* $backupChannels = $gkebackupService->projects_locations_backupChannels;
* </code>
*/
class ProjectsLocationsBackupChannels extends \Google\Service\Resource
{
/**
* Creates a new BackupChannel in a given location. (backupChannels.create)
*
* @param string $parent Required. The location within which to create the
* BackupChannel. Format: `projects/locations`
* @param BackupChannel $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string backupChannelId Optional. The client-provided short name
* for the BackupChannel resource. This name must: - be between 1 and 63
* characters long (inclusive) - consist of only lower-case ASCII letters,
* numbers, and dashes - start with a lower-case letter - end with a lower-case
* letter or number - be unique within the set of BackupChannels in this
* location If the user does not provide a name, a uuid will be used as the
* name.
* @return GoogleLongrunningOperation
* @throws \Google\Service\Exception
*/
public function create($parent, BackupChannel $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], GoogleLongrunningOperation::class);
}
/**
* Deletes an existing BackupChannel. (backupChannels.delete)
*
* @param string $name Required. Fully qualified BackupChannel name. Format:
* `projects/locations/backupChannels`
* @param array $optParams Optional parameters.
*
* @opt_param string etag Optional. If provided, this value must match the
* current value of the target BackupChannel's etag field or the request is
* rejected.
* @opt_param bool force Optional. If set to true, any BackupPlanAssociations
* below this BackupChannel will also be deleted. Otherwise, the request will
* only succeed if the BackupChannel has no BackupPlanAssociations.
* @return GoogleLongrunningOperation
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], GoogleLongrunningOperation::class);
}
/**
* Retrieve the details of a single BackupChannel. (backupChannels.get)
*
* @param string $name Required. Fully qualified BackupChannel name. Format:
* `projects/locations/backupChannels`
* @param array $optParams Optional parameters.
* @return BackupChannel
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], BackupChannel::class);
}
/**
* Lists BackupChannels in a given location.
* (backupChannels.listProjectsLocationsBackupChannels)
*
* @param string $parent Required. The location that contains the BackupChannels
* to list. Format: `projects/locations`
* @param array $optParams Optional parameters.
*
* @opt_param string filter Optional. Field match expression used to filter the
* results.
* @opt_param string orderBy Optional. Field by which to sort the results.
* @opt_param int pageSize Optional. The target number of results to return in a
* single response. If not specified, a default value will be chosen by the
* service. Note that the response may include a partial list and a caller
* should only rely on the response's next_page_token to determine if there are
* more instances left to be queried.
* @opt_param string pageToken Optional. The value of next_page_token received
* from a previous `ListBackupChannels` call. Provide this to retrieve the
* subsequent page in a multi-page list of results. When paginating, all other
* parameters provided to `ListBackupChannels` must match the call that provided
* the page token.
* @return ListBackupChannelsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsBackupChannels($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListBackupChannelsResponse::class);
}
/**
* Update a BackupChannel. (backupChannels.patch)
*
* @param string $name Identifier. The fully qualified name of the
* BackupChannel. `projects/locations/backupChannels`
* @param BackupChannel $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Optional. This is used to specify the fields to
* be overwritten in the BackupChannel targeted for update. The values for each
* of these updated fields will be taken from the `backup_channel` provided with
* this request. Field names are relative to the root of the resource (e.g.,
* `description`, `labels`, etc.) If no `update_mask` is provided, all fields in
* `backup_channel` will be written to the target BackupChannel resource. Note
* that OUTPUT_ONLY and IMMUTABLE fields in `backup_channel` are ignored and are
* not used to update the target BackupChannel.
* @return GoogleLongrunningOperation
* @throws \Google\Service\Exception
*/
public function patch($name, BackupChannel $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], GoogleLongrunningOperation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsBackupChannels::class, 'Google_Service_BackupforGKE_Resource_ProjectsLocationsBackupChannels');

View File

@@ -0,0 +1,81 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\BackupforGKE\Resource;
use Google\Service\BackupforGKE\BackupPlanBinding;
use Google\Service\BackupforGKE\ListBackupPlanBindingsResponse;
/**
* The "backupPlanBindings" collection of methods.
* Typical usage is:
* <code>
* $gkebackupService = new Google\Service\BackupforGKE(...);
* $backupPlanBindings = $gkebackupService->projects_locations_backupChannels_backupPlanBindings;
* </code>
*/
class ProjectsLocationsBackupChannelsBackupPlanBindings extends \Google\Service\Resource
{
/**
* Retrieve the details of a single BackupPlanBinding. (backupPlanBindings.get)
*
* @param string $name Required. Fully qualified BackupPlanBinding name. Format:
* `projects/locations/backupChannels/backupPlanBindings`
* @param array $optParams Optional parameters.
* @return BackupPlanBinding
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], BackupPlanBinding::class);
}
/**
* Lists BackupPlanBindings in a given location.
* (backupPlanBindings.listProjectsLocationsBackupChannelsBackupPlanBindings)
*
* @param string $parent Required. The BackupChannel that contains the
* BackupPlanBindings to list. Format: `projects/locations/backupChannels`
* @param array $optParams Optional parameters.
*
* @opt_param string filter Optional. Field match expression used to filter the
* results.
* @opt_param string orderBy Optional. Field by which to sort the results.
* @opt_param int pageSize Optional. The target number of results to return in a
* single response. If not specified, a default value will be chosen by the
* service. Note that the response may include a partial list and a caller
* should only rely on the response's next_page_token to determine if there are
* more instances left to be queried.
* @opt_param string pageToken Optional. The value of next_page_token received
* from a previous `ListBackupPlanBindings` call. Provide this to retrieve the
* subsequent page in a multi-page list of results. When paginating, all other
* parameters provided to `ListBackupPlanBindings` must match the call that
* provided the page token.
* @return ListBackupPlanBindingsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsBackupChannelsBackupPlanBindings($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListBackupPlanBindingsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsBackupChannelsBackupPlanBindings::class, 'Google_Service_BackupforGKE_Resource_ProjectsLocationsBackupChannelsBackupPlanBindings');

View File

@@ -0,0 +1,226 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\BackupforGKE\Resource;
use Google\Service\BackupforGKE\BackupPlan;
use Google\Service\BackupforGKE\GoogleLongrunningOperation;
use Google\Service\BackupforGKE\ListBackupPlansResponse;
use Google\Service\BackupforGKE\Policy;
use Google\Service\BackupforGKE\SetIamPolicyRequest;
use Google\Service\BackupforGKE\TestIamPermissionsRequest;
use Google\Service\BackupforGKE\TestIamPermissionsResponse;
/**
* The "backupPlans" collection of methods.
* Typical usage is:
* <code>
* $gkebackupService = new Google\Service\BackupforGKE(...);
* $backupPlans = $gkebackupService->projects_locations_backupPlans;
* </code>
*/
class ProjectsLocationsBackupPlans extends \Google\Service\Resource
{
/**
* Creates a new BackupPlan in a given location. (backupPlans.create)
*
* @param string $parent Required. The location within which to create the
* BackupPlan. Format: `projects/locations`
* @param BackupPlan $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string backupPlanId Required. The client-provided short name for
* the BackupPlan resource. This name must: - be between 1 and 63 characters
* long (inclusive) - consist of only lower-case ASCII letters, numbers, and
* dashes - start with a lower-case letter - end with a lower-case letter or
* number - be unique within the set of BackupPlans in this location
* @return GoogleLongrunningOperation
* @throws \Google\Service\Exception
*/
public function create($parent, BackupPlan $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], GoogleLongrunningOperation::class);
}
/**
* Deletes an existing BackupPlan. (backupPlans.delete)
*
* @param string $name Required. Fully qualified BackupPlan name. Format:
* `projects/locations/backupPlans`
* @param array $optParams Optional parameters.
*
* @opt_param string etag Optional. If provided, this value must match the
* current value of the target BackupPlan's etag field or the request is
* rejected.
* @return GoogleLongrunningOperation
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], GoogleLongrunningOperation::class);
}
/**
* Retrieve the details of a single BackupPlan. (backupPlans.get)
*
* @param string $name Required. Fully qualified BackupPlan name. Format:
* `projects/locations/backupPlans`
* @param array $optParams Optional parameters.
* @return BackupPlan
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], BackupPlan::class);
}
/**
* Gets the access control policy for a resource. Returns an empty policy if the
* resource exists and does not have a policy set. (backupPlans.getIamPolicy)
*
* @param string $resource REQUIRED: The resource for which the policy is being
* requested. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param array $optParams Optional parameters.
*
* @opt_param int options.requestedPolicyVersion Optional. The maximum policy
* version that will be used to format the policy. Valid values are 0, 1, and 3.
* Requests specifying an invalid value will be rejected. Requests for policies
* with any conditional role bindings must specify version 3. Policies with no
* conditional role bindings may specify any valid value or leave the field
* unset. The policy in the response might use the policy version that you
* specified, or it might use a lower policy version. For example, if you
* specify version 3, but the policy has no conditional role bindings, the
* response uses version 1. To learn which resources support conditions in their
* IAM policies, see the [IAM
* documentation](https://cloud.google.com/iam/help/conditions/resource-
* policies).
* @return Policy
* @throws \Google\Service\Exception
*/
public function getIamPolicy($resource, $optParams = [])
{
$params = ['resource' => $resource];
$params = array_merge($params, $optParams);
return $this->call('getIamPolicy', [$params], Policy::class);
}
/**
* Lists BackupPlans in a given location.
* (backupPlans.listProjectsLocationsBackupPlans)
*
* @param string $parent Required. The location that contains the BackupPlans to
* list. Format: `projects/locations`
* @param array $optParams Optional parameters.
*
* @opt_param string filter Optional. Field match expression used to filter the
* results.
* @opt_param string orderBy Optional. Field by which to sort the results.
* @opt_param int pageSize Optional. The target number of results to return in a
* single response. If not specified, a default value will be chosen by the
* service. Note that the response may include a partial list and a caller
* should only rely on the response's next_page_token to determine if there are
* more instances left to be queried.
* @opt_param string pageToken Optional. The value of next_page_token received
* from a previous `ListBackupPlans` call. Provide this to retrieve the
* subsequent page in a multi-page list of results. When paginating, all other
* parameters provided to `ListBackupPlans` must match the call that provided
* the page token.
* @return ListBackupPlansResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsBackupPlans($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListBackupPlansResponse::class);
}
/**
* Update a BackupPlan. (backupPlans.patch)
*
* @param string $name Output only. Identifier. The full name of the BackupPlan
* resource. Format: `projects/locations/backupPlans`
* @param BackupPlan $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Optional. This is used to specify the fields to
* be overwritten in the BackupPlan targeted for update. The values for each of
* these updated fields will be taken from the `backup_plan` provided with this
* request. Field names are relative to the root of the resource (e.g.,
* `description`, `backup_config.include_volume_data`, etc.) If no `update_mask`
* is provided, all fields in `backup_plan` will be written to the target
* BackupPlan resource. Note that OUTPUT_ONLY and IMMUTABLE fields in
* `backup_plan` are ignored and are not used to update the target BackupPlan.
* @return GoogleLongrunningOperation
* @throws \Google\Service\Exception
*/
public function patch($name, BackupPlan $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], GoogleLongrunningOperation::class);
}
/**
* Sets the access control policy on the specified resource. Replaces any
* existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and
* `PERMISSION_DENIED` errors. (backupPlans.setIamPolicy)
*
* @param string $resource REQUIRED: The resource for which the policy is being
* specified. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param SetIamPolicyRequest $postBody
* @param array $optParams Optional parameters.
* @return Policy
* @throws \Google\Service\Exception
*/
public function setIamPolicy($resource, SetIamPolicyRequest $postBody, $optParams = [])
{
$params = ['resource' => $resource, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('setIamPolicy', [$params], Policy::class);
}
/**
* Returns permissions that a caller has on the specified resource. If the
* resource does not exist, this will return an empty set of permissions, not a
* `NOT_FOUND` error. Note: This operation is designed to be used for building
* permission-aware UIs and command-line tools, not for authorization checking.
* This operation may "fail open" without warning.
* (backupPlans.testIamPermissions)
*
* @param string $resource REQUIRED: The resource for which the policy detail is
* being requested. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param TestIamPermissionsRequest $postBody
* @param array $optParams Optional parameters.
* @return TestIamPermissionsResponse
* @throws \Google\Service\Exception
*/
public function testIamPermissions($resource, TestIamPermissionsRequest $postBody, $optParams = [])
{
$params = ['resource' => $resource, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('testIamPermissions', [$params], TestIamPermissionsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsBackupPlans::class, 'Google_Service_BackupforGKE_Resource_ProjectsLocationsBackupPlans');

View File

@@ -0,0 +1,244 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\BackupforGKE\Resource;
use Google\Service\BackupforGKE\Backup;
use Google\Service\BackupforGKE\GetBackupIndexDownloadUrlResponse;
use Google\Service\BackupforGKE\GoogleLongrunningOperation;
use Google\Service\BackupforGKE\ListBackupsResponse;
use Google\Service\BackupforGKE\Policy;
use Google\Service\BackupforGKE\SetIamPolicyRequest;
use Google\Service\BackupforGKE\TestIamPermissionsRequest;
use Google\Service\BackupforGKE\TestIamPermissionsResponse;
/**
* The "backups" collection of methods.
* Typical usage is:
* <code>
* $gkebackupService = new Google\Service\BackupforGKE(...);
* $backups = $gkebackupService->projects_locations_backupPlans_backups;
* </code>
*/
class ProjectsLocationsBackupPlansBackups extends \Google\Service\Resource
{
/**
* Creates a Backup for the given BackupPlan. (backups.create)
*
* @param string $parent Required. The BackupPlan within which to create the
* Backup. Format: `projects/locations/backupPlans`
* @param Backup $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string backupId Optional. The client-provided short name for the
* Backup resource. This name must: - be between 1 and 63 characters long
* (inclusive) - consist of only lower-case ASCII letters, numbers, and dashes -
* start with a lower-case letter - end with a lower-case letter or number - be
* unique within the set of Backups in this BackupPlan
* @return GoogleLongrunningOperation
* @throws \Google\Service\Exception
*/
public function create($parent, Backup $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], GoogleLongrunningOperation::class);
}
/**
* Deletes an existing Backup. (backups.delete)
*
* @param string $name Required. Name of the Backup resource. Format:
* `projects/locations/backupPlans/backups`
* @param array $optParams Optional parameters.
*
* @opt_param string etag Optional. If provided, this value must match the
* current value of the target Backup's etag field or the request is rejected.
* @opt_param bool force Optional. If set to true, any VolumeBackups below this
* Backup will also be deleted. Otherwise, the request will only succeed if the
* Backup has no VolumeBackups.
* @return GoogleLongrunningOperation
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], GoogleLongrunningOperation::class);
}
/**
* Retrieve the details of a single Backup. (backups.get)
*
* @param string $name Required. Full name of the Backup resource. Format:
* `projects/locations/backupPlans/backups`
* @param array $optParams Optional parameters.
* @return Backup
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Backup::class);
}
/**
* Retrieve the link to the backupIndex. (backups.getBackupIndexDownloadUrl)
*
* @param string $backup Required. Full name of Backup resource. Format: project
* s/{project}/locations/{location}/backupPlans/{backup_plan}/backups/{backup}
* @param array $optParams Optional parameters.
* @return GetBackupIndexDownloadUrlResponse
* @throws \Google\Service\Exception
*/
public function getBackupIndexDownloadUrl($backup, $optParams = [])
{
$params = ['backup' => $backup];
$params = array_merge($params, $optParams);
return $this->call('getBackupIndexDownloadUrl', [$params], GetBackupIndexDownloadUrlResponse::class);
}
/**
* Gets the access control policy for a resource. Returns an empty policy if the
* resource exists and does not have a policy set. (backups.getIamPolicy)
*
* @param string $resource REQUIRED: The resource for which the policy is being
* requested. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param array $optParams Optional parameters.
*
* @opt_param int options.requestedPolicyVersion Optional. The maximum policy
* version that will be used to format the policy. Valid values are 0, 1, and 3.
* Requests specifying an invalid value will be rejected. Requests for policies
* with any conditional role bindings must specify version 3. Policies with no
* conditional role bindings may specify any valid value or leave the field
* unset. The policy in the response might use the policy version that you
* specified, or it might use a lower policy version. For example, if you
* specify version 3, but the policy has no conditional role bindings, the
* response uses version 1. To learn which resources support conditions in their
* IAM policies, see the [IAM
* documentation](https://cloud.google.com/iam/help/conditions/resource-
* policies).
* @return Policy
* @throws \Google\Service\Exception
*/
public function getIamPolicy($resource, $optParams = [])
{
$params = ['resource' => $resource];
$params = array_merge($params, $optParams);
return $this->call('getIamPolicy', [$params], Policy::class);
}
/**
* Lists the Backups for a given BackupPlan.
* (backups.listProjectsLocationsBackupPlansBackups)
*
* @param string $parent Required. The BackupPlan that contains the Backups to
* list. Format: `projects/locations/backupPlans`
* @param array $optParams Optional parameters.
*
* @opt_param string filter Optional. Field match expression used to filter the
* results.
* @opt_param string orderBy Optional. Field by which to sort the results.
* @opt_param int pageSize Optional. The target number of results to return in a
* single response. If not specified, a default value will be chosen by the
* service. Note that the response may include a partial list and a caller
* should only rely on the response's next_page_token to determine if there are
* more instances left to be queried.
* @opt_param string pageToken Optional. The value of next_page_token received
* from a previous `ListBackups` call. Provide this to retrieve the subsequent
* page in a multi-page list of results. When paginating, all other parameters
* provided to `ListBackups` must match the call that provided the page token.
* @opt_param bool returnPartialSuccess Optional. If set to true, the response
* will return partial results when some regions are unreachable and the
* unreachable field will be populated.
* @return ListBackupsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsBackupPlansBackups($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListBackupsResponse::class);
}
/**
* Update a Backup. (backups.patch)
*
* @param string $name Output only. Identifier. The fully qualified name of the
* Backup. `projects/locations/backupPlans/backups`
* @param Backup $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Optional. This is used to specify the fields to
* be overwritten in the Backup targeted for update. The values for each of
* these updated fields will be taken from the `backup_plan` provided with this
* request. Field names are relative to the root of the resource. If no
* `update_mask` is provided, all fields in `backup` will be written to the
* target Backup resource. Note that OUTPUT_ONLY and IMMUTABLE fields in
* `backup` are ignored and are not used to update the target Backup.
* @return GoogleLongrunningOperation
* @throws \Google\Service\Exception
*/
public function patch($name, Backup $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], GoogleLongrunningOperation::class);
}
/**
* Sets the access control policy on the specified resource. Replaces any
* existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and
* `PERMISSION_DENIED` errors. (backups.setIamPolicy)
*
* @param string $resource REQUIRED: The resource for which the policy is being
* specified. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param SetIamPolicyRequest $postBody
* @param array $optParams Optional parameters.
* @return Policy
* @throws \Google\Service\Exception
*/
public function setIamPolicy($resource, SetIamPolicyRequest $postBody, $optParams = [])
{
$params = ['resource' => $resource, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('setIamPolicy', [$params], Policy::class);
}
/**
* Returns permissions that a caller has on the specified resource. If the
* resource does not exist, this will return an empty set of permissions, not a
* `NOT_FOUND` error. Note: This operation is designed to be used for building
* permission-aware UIs and command-line tools, not for authorization checking.
* This operation may "fail open" without warning. (backups.testIamPermissions)
*
* @param string $resource REQUIRED: The resource for which the policy detail is
* being requested. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param TestIamPermissionsRequest $postBody
* @param array $optParams Optional parameters.
* @return TestIamPermissionsResponse
* @throws \Google\Service\Exception
*/
public function testIamPermissions($resource, TestIamPermissionsRequest $postBody, $optParams = [])
{
$params = ['resource' => $resource, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('testIamPermissions', [$params], TestIamPermissionsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsBackupPlansBackups::class, 'Google_Service_BackupforGKE_Resource_ProjectsLocationsBackupPlansBackups');

View File

@@ -0,0 +1,159 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\BackupforGKE\Resource;
use Google\Service\BackupforGKE\ListVolumeBackupsResponse;
use Google\Service\BackupforGKE\Policy;
use Google\Service\BackupforGKE\SetIamPolicyRequest;
use Google\Service\BackupforGKE\TestIamPermissionsRequest;
use Google\Service\BackupforGKE\TestIamPermissionsResponse;
use Google\Service\BackupforGKE\VolumeBackup;
/**
* The "volumeBackups" collection of methods.
* Typical usage is:
* <code>
* $gkebackupService = new Google\Service\BackupforGKE(...);
* $volumeBackups = $gkebackupService->projects_locations_backupPlans_backups_volumeBackups;
* </code>
*/
class ProjectsLocationsBackupPlansBackupsVolumeBackups extends \Google\Service\Resource
{
/**
* Retrieve the details of a single VolumeBackup. (volumeBackups.get)
*
* @param string $name Required. Full name of the VolumeBackup resource. Format:
* `projects/locations/backupPlans/backups/volumeBackups`
* @param array $optParams Optional parameters.
* @return VolumeBackup
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], VolumeBackup::class);
}
/**
* Gets the access control policy for a resource. Returns an empty policy if the
* resource exists and does not have a policy set. (volumeBackups.getIamPolicy)
*
* @param string $resource REQUIRED: The resource for which the policy is being
* requested. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param array $optParams Optional parameters.
*
* @opt_param int options.requestedPolicyVersion Optional. The maximum policy
* version that will be used to format the policy. Valid values are 0, 1, and 3.
* Requests specifying an invalid value will be rejected. Requests for policies
* with any conditional role bindings must specify version 3. Policies with no
* conditional role bindings may specify any valid value or leave the field
* unset. The policy in the response might use the policy version that you
* specified, or it might use a lower policy version. For example, if you
* specify version 3, but the policy has no conditional role bindings, the
* response uses version 1. To learn which resources support conditions in their
* IAM policies, see the [IAM
* documentation](https://cloud.google.com/iam/help/conditions/resource-
* policies).
* @return Policy
* @throws \Google\Service\Exception
*/
public function getIamPolicy($resource, $optParams = [])
{
$params = ['resource' => $resource];
$params = array_merge($params, $optParams);
return $this->call('getIamPolicy', [$params], Policy::class);
}
/**
* Lists the VolumeBackups for a given Backup.
* (volumeBackups.listProjectsLocationsBackupPlansBackupsVolumeBackups)
*
* @param string $parent Required. The Backup that contains the VolumeBackups to
* list. Format: `projects/locations/backupPlans/backups`
* @param array $optParams Optional parameters.
*
* @opt_param string filter Optional. Field match expression used to filter the
* results.
* @opt_param string orderBy Optional. Field by which to sort the results.
* @opt_param int pageSize Optional. The target number of results to return in a
* single response. If not specified, a default value will be chosen by the
* service. Note that the response may include a partial list and a caller
* should only rely on the response's next_page_token to determine if there are
* more instances left to be queried.
* @opt_param string pageToken Optional. The value of next_page_token received
* from a previous `ListVolumeBackups` call. Provide this to retrieve the
* subsequent page in a multi-page list of results. When paginating, all other
* parameters provided to `ListVolumeBackups` must match the call that provided
* the page token.
* @return ListVolumeBackupsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsBackupPlansBackupsVolumeBackups($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListVolumeBackupsResponse::class);
}
/**
* Sets the access control policy on the specified resource. Replaces any
* existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and
* `PERMISSION_DENIED` errors. (volumeBackups.setIamPolicy)
*
* @param string $resource REQUIRED: The resource for which the policy is being
* specified. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param SetIamPolicyRequest $postBody
* @param array $optParams Optional parameters.
* @return Policy
* @throws \Google\Service\Exception
*/
public function setIamPolicy($resource, SetIamPolicyRequest $postBody, $optParams = [])
{
$params = ['resource' => $resource, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('setIamPolicy', [$params], Policy::class);
}
/**
* Returns permissions that a caller has on the specified resource. If the
* resource does not exist, this will return an empty set of permissions, not a
* `NOT_FOUND` error. Note: This operation is designed to be used for building
* permission-aware UIs and command-line tools, not for authorization checking.
* This operation may "fail open" without warning.
* (volumeBackups.testIamPermissions)
*
* @param string $resource REQUIRED: The resource for which the policy detail is
* being requested. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param TestIamPermissionsRequest $postBody
* @param array $optParams Optional parameters.
* @return TestIamPermissionsResponse
* @throws \Google\Service\Exception
*/
public function testIamPermissions($resource, TestIamPermissionsRequest $postBody, $optParams = [])
{
$params = ['resource' => $resource, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('testIamPermissions', [$params], TestIamPermissionsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsBackupPlansBackupsVolumeBackups::class, 'Google_Service_BackupforGKE_Resource_ProjectsLocationsBackupPlansBackupsVolumeBackups');

View File

@@ -0,0 +1,121 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\BackupforGKE\Resource;
use Google\Service\BackupforGKE\GkebackupEmpty;
use Google\Service\BackupforGKE\GoogleLongrunningCancelOperationRequest;
use Google\Service\BackupforGKE\GoogleLongrunningListOperationsResponse;
use Google\Service\BackupforGKE\GoogleLongrunningOperation;
/**
* The "operations" collection of methods.
* Typical usage is:
* <code>
* $gkebackupService = new Google\Service\BackupforGKE(...);
* $operations = $gkebackupService->projects_locations_operations;
* </code>
*/
class ProjectsLocationsOperations extends \Google\Service\Resource
{
/**
* Starts asynchronous cancellation on a long-running operation. The server
* makes a best effort to cancel the operation, but success is not guaranteed.
* If the server doesn't support this method, it returns
* `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or
* other methods to check whether the cancellation succeeded or whether the
* operation completed despite cancellation. On successful cancellation, the
* operation is not deleted; instead, it becomes an operation with an
* Operation.error value with a google.rpc.Status.code of `1`, corresponding to
* `Code.CANCELLED`. (operations.cancel)
*
* @param string $name The name of the operation resource to be cancelled.
* @param GoogleLongrunningCancelOperationRequest $postBody
* @param array $optParams Optional parameters.
* @return GkebackupEmpty
* @throws \Google\Service\Exception
*/
public function cancel($name, GoogleLongrunningCancelOperationRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('cancel', [$params], GkebackupEmpty::class);
}
/**
* Deletes a long-running operation. This method indicates that the client is no
* longer interested in the operation result. It does not cancel the operation.
* If the server doesn't support this method, it returns
* `google.rpc.Code.UNIMPLEMENTED`. (operations.delete)
*
* @param string $name The name of the operation resource to be deleted.
* @param array $optParams Optional parameters.
* @return GkebackupEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], GkebackupEmpty::class);
}
/**
* Gets the latest state of a long-running operation. Clients can use this
* method to poll the operation result at intervals as recommended by the API
* service. (operations.get)
*
* @param string $name The name of the operation resource.
* @param array $optParams Optional parameters.
* @return GoogleLongrunningOperation
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], GoogleLongrunningOperation::class);
}
/**
* Lists operations that match the specified filter in the request. If the
* server doesn't support this method, it returns `UNIMPLEMENTED`.
* (operations.listProjectsLocationsOperations)
*
* @param string $name The name of the operation's parent resource.
* @param array $optParams Optional parameters.
*
* @opt_param string filter The standard list filter.
* @opt_param int pageSize The standard list page size.
* @opt_param string pageToken The standard list page token.
* @opt_param bool returnPartialSuccess When set to `true`, operations that are
* reachable are returned as normal, and those that are unreachable are returned
* in the ListOperationsResponse.unreachable field. This can only be `true` when
* reading across collections. For example, when `parent` is set to
* `"projects/example/locations/-"`. This field is not supported by default and
* will result in an `UNIMPLEMENTED` error if set unless explicitly documented
* otherwise in service or product specific documentation.
* @return GoogleLongrunningListOperationsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsOperations($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], GoogleLongrunningListOperationsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsOperations::class, 'Google_Service_BackupforGKE_Resource_ProjectsLocationsOperations');

View File

@@ -0,0 +1,151 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\BackupforGKE\Resource;
use Google\Service\BackupforGKE\GoogleLongrunningOperation;
use Google\Service\BackupforGKE\ListRestoreChannelsResponse;
use Google\Service\BackupforGKE\RestoreChannel;
/**
* The "restoreChannels" collection of methods.
* Typical usage is:
* <code>
* $gkebackupService = new Google\Service\BackupforGKE(...);
* $restoreChannels = $gkebackupService->projects_locations_restoreChannels;
* </code>
*/
class ProjectsLocationsRestoreChannels extends \Google\Service\Resource
{
/**
* Creates a new RestoreChannel in a given location. (restoreChannels.create)
*
* @param string $parent Required. The location within which to create the
* RestoreChannel. Format: `projects/locations`
* @param RestoreChannel $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string restoreChannelId Optional. The client-provided short name
* for the RestoreChannel resource. This name must: - be between 1 and 63
* characters long (inclusive) - consist of only lower-case ASCII letters,
* numbers, and dashes - start with a lower-case letter - end with a lower-case
* letter or number - be unique within the set of RestoreChannels in this
* location If the user does not provide a name, a uuid will be used as the
* name.
* @return GoogleLongrunningOperation
* @throws \Google\Service\Exception
*/
public function create($parent, RestoreChannel $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], GoogleLongrunningOperation::class);
}
/**
* Deletes an existing RestoreChannel. (restoreChannels.delete)
*
* @param string $name Required. Fully qualified RestoreChannel name. Format:
* `projects/locations/restoreChannels`
* @param array $optParams Optional parameters.
*
* @opt_param string etag Optional. If provided, this value must match the
* current value of the target RestoreChannel's etag field or the request is
* rejected.
* @return GoogleLongrunningOperation
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], GoogleLongrunningOperation::class);
}
/**
* Retrieve the details of a single RestoreChannel. (restoreChannels.get)
*
* @param string $name Required. Fully qualified RestoreChannel name. Format:
* `projects/locations/restoreChannels`
* @param array $optParams Optional parameters.
* @return RestoreChannel
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], RestoreChannel::class);
}
/**
* Lists RestoreChannels in a given location.
* (restoreChannels.listProjectsLocationsRestoreChannels)
*
* @param string $parent Required. The location that contains the
* RestoreChannels to list. Format: `projects/locations`
* @param array $optParams Optional parameters.
*
* @opt_param string filter Optional. Field match expression used to filter the
* results.
* @opt_param string orderBy Optional. Field by which to sort the results.
* @opt_param int pageSize Optional. The target number of results to return in a
* single response. If not specified, a default value will be chosen by the
* service. Note that the response may include a partial list and a caller
* should only rely on the response's next_page_token to determine if there are
* more instances left to be queried.
* @opt_param string pageToken Optional. The value of next_page_token received
* from a previous `ListRestoreChannels` call. Provide this to retrieve the
* subsequent page in a multi-page list of results. When paginating, all other
* parameters provided to `ListRestoreChannels` must match the call that
* provided the page token.
* @return ListRestoreChannelsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsRestoreChannels($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListRestoreChannelsResponse::class);
}
/**
* Update a RestoreChannel. (restoreChannels.patch)
*
* @param string $name Identifier. The fully qualified name of the
* RestoreChannel. `projects/locations/restoreChannels`
* @param RestoreChannel $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Optional. This is used to specify the fields to
* be overwritten in the RestoreChannel targeted for update. The values for each
* of these updated fields will be taken from the `restore_channel` provided
* with this request. Field names are relative to the root of the resource
* (e.g., `description`, `destination_project_id`, etc.) If no `update_mask` is
* provided, all fields in `restore_channel` will be written to the target
* RestoreChannel resource. Note that OUTPUT_ONLY and IMMUTABLE fields in
* `restore_channel` are ignored and are not used to update the target
* RestoreChannel.
* @return GoogleLongrunningOperation
* @throws \Google\Service\Exception
*/
public function patch($name, RestoreChannel $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], GoogleLongrunningOperation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsRestoreChannels::class, 'Google_Service_BackupforGKE_Resource_ProjectsLocationsRestoreChannels');

View File

@@ -0,0 +1,82 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\BackupforGKE\Resource;
use Google\Service\BackupforGKE\ListRestorePlanBindingsResponse;
use Google\Service\BackupforGKE\RestorePlanBinding;
/**
* The "restorePlanBindings" collection of methods.
* Typical usage is:
* <code>
* $gkebackupService = new Google\Service\BackupforGKE(...);
* $restorePlanBindings = $gkebackupService->projects_locations_restoreChannels_restorePlanBindings;
* </code>
*/
class ProjectsLocationsRestoreChannelsRestorePlanBindings extends \Google\Service\Resource
{
/**
* Retrieve the details of a single RestorePlanBinding.
* (restorePlanBindings.get)
*
* @param string $name Required. Fully qualified RestorePlanBinding name.
* Format: `projects/locations/restoreChannels/restorePlanBindings`
* @param array $optParams Optional parameters.
* @return RestorePlanBinding
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], RestorePlanBinding::class);
}
/**
* Lists RestorePlanBindings in a given location.
* (restorePlanBindings.listProjectsLocationsRestoreChannelsRestorePlanBindings)
*
* @param string $parent Required. The RestoreChannel that contains the
* ListRestorePlanBindings to list. Format: `projects/locations/restoreChannels`
* @param array $optParams Optional parameters.
*
* @opt_param string filter Optional. Field match expression used to filter the
* results.
* @opt_param string orderBy Optional. Field by which to sort the results.
* @opt_param int pageSize Optional. The target number of results to return in a
* single response. If not specified, a default value will be chosen by the
* service. Note that the response may include a partial list and a caller
* should only rely on the response's next_page_token to determine if there are
* more instances left to be queried.
* @opt_param string pageToken Optional. The value of next_page_token received
* from a previous `ListRestorePlanBindings` call. Provide this to retrieve the
* subsequent page in a multi-page list of results. When paginating, all other
* parameters provided to `ListRestorePlanBindings` must match the call that
* provided the page token.
* @return ListRestorePlanBindingsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsRestoreChannelsRestorePlanBindings($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListRestorePlanBindingsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsRestoreChannelsRestorePlanBindings::class, 'Google_Service_BackupforGKE_Resource_ProjectsLocationsRestoreChannelsRestorePlanBindings');

View File

@@ -0,0 +1,229 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\BackupforGKE\Resource;
use Google\Service\BackupforGKE\GoogleLongrunningOperation;
use Google\Service\BackupforGKE\ListRestorePlansResponse;
use Google\Service\BackupforGKE\Policy;
use Google\Service\BackupforGKE\RestorePlan;
use Google\Service\BackupforGKE\SetIamPolicyRequest;
use Google\Service\BackupforGKE\TestIamPermissionsRequest;
use Google\Service\BackupforGKE\TestIamPermissionsResponse;
/**
* The "restorePlans" collection of methods.
* Typical usage is:
* <code>
* $gkebackupService = new Google\Service\BackupforGKE(...);
* $restorePlans = $gkebackupService->projects_locations_restorePlans;
* </code>
*/
class ProjectsLocationsRestorePlans extends \Google\Service\Resource
{
/**
* Creates a new RestorePlan in a given location. (restorePlans.create)
*
* @param string $parent Required. The location within which to create the
* RestorePlan. Format: `projects/locations`
* @param RestorePlan $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string restorePlanId Required. The client-provided short name for
* the RestorePlan resource. This name must: - be between 1 and 63 characters
* long (inclusive) - consist of only lower-case ASCII letters, numbers, and
* dashes - start with a lower-case letter - end with a lower-case letter or
* number - be unique within the set of RestorePlans in this location
* @return GoogleLongrunningOperation
* @throws \Google\Service\Exception
*/
public function create($parent, RestorePlan $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], GoogleLongrunningOperation::class);
}
/**
* Deletes an existing RestorePlan. (restorePlans.delete)
*
* @param string $name Required. Fully qualified RestorePlan name. Format:
* `projects/locations/restorePlans`
* @param array $optParams Optional parameters.
*
* @opt_param string etag Optional. If provided, this value must match the
* current value of the target RestorePlan's etag field or the request is
* rejected.
* @opt_param bool force Optional. If set to true, any Restores below this
* RestorePlan will also be deleted. Otherwise, the request will only succeed if
* the RestorePlan has no Restores.
* @return GoogleLongrunningOperation
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], GoogleLongrunningOperation::class);
}
/**
* Retrieve the details of a single RestorePlan. (restorePlans.get)
*
* @param string $name Required. Fully qualified RestorePlan name. Format:
* `projects/locations/restorePlans`
* @param array $optParams Optional parameters.
* @return RestorePlan
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], RestorePlan::class);
}
/**
* Gets the access control policy for a resource. Returns an empty policy if the
* resource exists and does not have a policy set. (restorePlans.getIamPolicy)
*
* @param string $resource REQUIRED: The resource for which the policy is being
* requested. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param array $optParams Optional parameters.
*
* @opt_param int options.requestedPolicyVersion Optional. The maximum policy
* version that will be used to format the policy. Valid values are 0, 1, and 3.
* Requests specifying an invalid value will be rejected. Requests for policies
* with any conditional role bindings must specify version 3. Policies with no
* conditional role bindings may specify any valid value or leave the field
* unset. The policy in the response might use the policy version that you
* specified, or it might use a lower policy version. For example, if you
* specify version 3, but the policy has no conditional role bindings, the
* response uses version 1. To learn which resources support conditions in their
* IAM policies, see the [IAM
* documentation](https://cloud.google.com/iam/help/conditions/resource-
* policies).
* @return Policy
* @throws \Google\Service\Exception
*/
public function getIamPolicy($resource, $optParams = [])
{
$params = ['resource' => $resource];
$params = array_merge($params, $optParams);
return $this->call('getIamPolicy', [$params], Policy::class);
}
/**
* Lists RestorePlans in a given location.
* (restorePlans.listProjectsLocationsRestorePlans)
*
* @param string $parent Required. The location that contains the RestorePlans
* to list. Format: `projects/locations`
* @param array $optParams Optional parameters.
*
* @opt_param string filter Optional. Field match expression used to filter the
* results.
* @opt_param string orderBy Optional. Field by which to sort the results.
* @opt_param int pageSize Optional. The target number of results to return in a
* single response. If not specified, a default value will be chosen by the
* service. Note that the response may include a partial list and a caller
* should only rely on the response's next_page_token to determine if there are
* more instances left to be queried.
* @opt_param string pageToken Optional. The value of next_page_token received
* from a previous `ListRestorePlans` call. Provide this to retrieve the
* subsequent page in a multi-page list of results. When paginating, all other
* parameters provided to `ListRestorePlans` must match the call that provided
* the page token.
* @return ListRestorePlansResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsRestorePlans($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListRestorePlansResponse::class);
}
/**
* Update a RestorePlan. (restorePlans.patch)
*
* @param string $name Output only. Identifier. The full name of the RestorePlan
* resource. Format: `projects/locations/restorePlans`.
* @param RestorePlan $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Optional. This is used to specify the fields to
* be overwritten in the RestorePlan targeted for update. The values for each of
* these updated fields will be taken from the `restore_plan` provided with this
* request. Field names are relative to the root of the resource. If no
* `update_mask` is provided, all fields in `restore_plan` will be written to
* the target RestorePlan resource. Note that OUTPUT_ONLY and IMMUTABLE fields
* in `restore_plan` are ignored and are not used to update the target
* RestorePlan.
* @return GoogleLongrunningOperation
* @throws \Google\Service\Exception
*/
public function patch($name, RestorePlan $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], GoogleLongrunningOperation::class);
}
/**
* Sets the access control policy on the specified resource. Replaces any
* existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and
* `PERMISSION_DENIED` errors. (restorePlans.setIamPolicy)
*
* @param string $resource REQUIRED: The resource for which the policy is being
* specified. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param SetIamPolicyRequest $postBody
* @param array $optParams Optional parameters.
* @return Policy
* @throws \Google\Service\Exception
*/
public function setIamPolicy($resource, SetIamPolicyRequest $postBody, $optParams = [])
{
$params = ['resource' => $resource, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('setIamPolicy', [$params], Policy::class);
}
/**
* Returns permissions that a caller has on the specified resource. If the
* resource does not exist, this will return an empty set of permissions, not a
* `NOT_FOUND` error. Note: This operation is designed to be used for building
* permission-aware UIs and command-line tools, not for authorization checking.
* This operation may "fail open" without warning.
* (restorePlans.testIamPermissions)
*
* @param string $resource REQUIRED: The resource for which the policy detail is
* being requested. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param TestIamPermissionsRequest $postBody
* @param array $optParams Optional parameters.
* @return TestIamPermissionsResponse
* @throws \Google\Service\Exception
*/
public function testIamPermissions($resource, TestIamPermissionsRequest $postBody, $optParams = [])
{
$params = ['resource' => $resource, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('testIamPermissions', [$params], TestIamPermissionsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsRestorePlans::class, 'Google_Service_BackupforGKE_Resource_ProjectsLocationsRestorePlans');

View File

@@ -0,0 +1,225 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\BackupforGKE\Resource;
use Google\Service\BackupforGKE\GoogleLongrunningOperation;
use Google\Service\BackupforGKE\ListRestoresResponse;
use Google\Service\BackupforGKE\Policy;
use Google\Service\BackupforGKE\Restore;
use Google\Service\BackupforGKE\SetIamPolicyRequest;
use Google\Service\BackupforGKE\TestIamPermissionsRequest;
use Google\Service\BackupforGKE\TestIamPermissionsResponse;
/**
* The "restores" collection of methods.
* Typical usage is:
* <code>
* $gkebackupService = new Google\Service\BackupforGKE(...);
* $restores = $gkebackupService->projects_locations_restorePlans_restores;
* </code>
*/
class ProjectsLocationsRestorePlansRestores extends \Google\Service\Resource
{
/**
* Creates a new Restore for the given RestorePlan. (restores.create)
*
* @param string $parent Required. The RestorePlan within which to create the
* Restore. Format: `projects/locations/restorePlans`
* @param Restore $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string restoreId Required. The client-provided short name for the
* Restore resource. This name must: - be between 1 and 63 characters long
* (inclusive) - consist of only lower-case ASCII letters, numbers, and dashes -
* start with a lower-case letter - end with a lower-case letter or number - be
* unique within the set of Restores in this RestorePlan.
* @return GoogleLongrunningOperation
* @throws \Google\Service\Exception
*/
public function create($parent, Restore $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], GoogleLongrunningOperation::class);
}
/**
* Deletes an existing Restore. (restores.delete)
*
* @param string $name Required. Full name of the Restore Format:
* `projects/locations/restorePlans/restores`
* @param array $optParams Optional parameters.
*
* @opt_param string etag Optional. If provided, this value must match the
* current value of the target Restore's etag field or the request is rejected.
* @opt_param bool force Optional. If set to true, any VolumeRestores below this
* restore will also be deleted. Otherwise, the request will only succeed if the
* restore has no VolumeRestores.
* @return GoogleLongrunningOperation
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], GoogleLongrunningOperation::class);
}
/**
* Retrieves the details of a single Restore. (restores.get)
*
* @param string $name Required. Name of the restore resource. Format:
* `projects/locations/restorePlans/restores`
* @param array $optParams Optional parameters.
* @return Restore
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Restore::class);
}
/**
* Gets the access control policy for a resource. Returns an empty policy if the
* resource exists and does not have a policy set. (restores.getIamPolicy)
*
* @param string $resource REQUIRED: The resource for which the policy is being
* requested. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param array $optParams Optional parameters.
*
* @opt_param int options.requestedPolicyVersion Optional. The maximum policy
* version that will be used to format the policy. Valid values are 0, 1, and 3.
* Requests specifying an invalid value will be rejected. Requests for policies
* with any conditional role bindings must specify version 3. Policies with no
* conditional role bindings may specify any valid value or leave the field
* unset. The policy in the response might use the policy version that you
* specified, or it might use a lower policy version. For example, if you
* specify version 3, but the policy has no conditional role bindings, the
* response uses version 1. To learn which resources support conditions in their
* IAM policies, see the [IAM
* documentation](https://cloud.google.com/iam/help/conditions/resource-
* policies).
* @return Policy
* @throws \Google\Service\Exception
*/
public function getIamPolicy($resource, $optParams = [])
{
$params = ['resource' => $resource];
$params = array_merge($params, $optParams);
return $this->call('getIamPolicy', [$params], Policy::class);
}
/**
* Lists the Restores for a given RestorePlan.
* (restores.listProjectsLocationsRestorePlansRestores)
*
* @param string $parent Required. The RestorePlan that contains the Restores to
* list. Format: `projects/locations/restorePlans`
* @param array $optParams Optional parameters.
*
* @opt_param string filter Optional. Field match expression used to filter the
* results.
* @opt_param string orderBy Optional. Field by which to sort the results.
* @opt_param int pageSize Optional. The target number of results to return in a
* single response. If not specified, a default value will be chosen by the
* service. Note that the response may include a partial list and a caller
* should only rely on the response's next_page_token to determine if there are
* more instances left to be queried.
* @opt_param string pageToken Optional. The value of next_page_token received
* from a previous `ListRestores` call. Provide this to retrieve the subsequent
* page in a multi-page list of results. When paginating, all other parameters
* provided to `ListRestores` must match the call that provided the page token.
* @return ListRestoresResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsRestorePlansRestores($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListRestoresResponse::class);
}
/**
* Update a Restore. (restores.patch)
*
* @param string $name Output only. Identifier. The full name of the Restore
* resource. Format: `projects/locations/restorePlans/restores`
* @param Restore $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Optional. This is used to specify the fields to
* be overwritten in the Restore targeted for update. The values for each of
* these updated fields will be taken from the `restore` provided with this
* request. Field names are relative to the root of the resource. If no
* `update_mask` is provided, all fields in `restore` will be written to the
* target Restore resource. Note that OUTPUT_ONLY and IMMUTABLE fields in
* `restore` are ignored and are not used to update the target Restore.
* @return GoogleLongrunningOperation
* @throws \Google\Service\Exception
*/
public function patch($name, Restore $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], GoogleLongrunningOperation::class);
}
/**
* Sets the access control policy on the specified resource. Replaces any
* existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and
* `PERMISSION_DENIED` errors. (restores.setIamPolicy)
*
* @param string $resource REQUIRED: The resource for which the policy is being
* specified. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param SetIamPolicyRequest $postBody
* @param array $optParams Optional parameters.
* @return Policy
* @throws \Google\Service\Exception
*/
public function setIamPolicy($resource, SetIamPolicyRequest $postBody, $optParams = [])
{
$params = ['resource' => $resource, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('setIamPolicy', [$params], Policy::class);
}
/**
* Returns permissions that a caller has on the specified resource. If the
* resource does not exist, this will return an empty set of permissions, not a
* `NOT_FOUND` error. Note: This operation is designed to be used for building
* permission-aware UIs and command-line tools, not for authorization checking.
* This operation may "fail open" without warning. (restores.testIamPermissions)
*
* @param string $resource REQUIRED: The resource for which the policy detail is
* being requested. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param TestIamPermissionsRequest $postBody
* @param array $optParams Optional parameters.
* @return TestIamPermissionsResponse
* @throws \Google\Service\Exception
*/
public function testIamPermissions($resource, TestIamPermissionsRequest $postBody, $optParams = [])
{
$params = ['resource' => $resource, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('testIamPermissions', [$params], TestIamPermissionsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsRestorePlansRestores::class, 'Google_Service_BackupforGKE_Resource_ProjectsLocationsRestorePlansRestores');

View File

@@ -0,0 +1,159 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\BackupforGKE\Resource;
use Google\Service\BackupforGKE\ListVolumeRestoresResponse;
use Google\Service\BackupforGKE\Policy;
use Google\Service\BackupforGKE\SetIamPolicyRequest;
use Google\Service\BackupforGKE\TestIamPermissionsRequest;
use Google\Service\BackupforGKE\TestIamPermissionsResponse;
use Google\Service\BackupforGKE\VolumeRestore;
/**
* The "volumeRestores" collection of methods.
* Typical usage is:
* <code>
* $gkebackupService = new Google\Service\BackupforGKE(...);
* $volumeRestores = $gkebackupService->projects_locations_restorePlans_restores_volumeRestores;
* </code>
*/
class ProjectsLocationsRestorePlansRestoresVolumeRestores extends \Google\Service\Resource
{
/**
* Retrieve the details of a single VolumeRestore. (volumeRestores.get)
*
* @param string $name Required. Full name of the VolumeRestore resource.
* Format: `projects/locations/restorePlans/restores/volumeRestores`
* @param array $optParams Optional parameters.
* @return VolumeRestore
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], VolumeRestore::class);
}
/**
* Gets the access control policy for a resource. Returns an empty policy if the
* resource exists and does not have a policy set. (volumeRestores.getIamPolicy)
*
* @param string $resource REQUIRED: The resource for which the policy is being
* requested. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param array $optParams Optional parameters.
*
* @opt_param int options.requestedPolicyVersion Optional. The maximum policy
* version that will be used to format the policy. Valid values are 0, 1, and 3.
* Requests specifying an invalid value will be rejected. Requests for policies
* with any conditional role bindings must specify version 3. Policies with no
* conditional role bindings may specify any valid value or leave the field
* unset. The policy in the response might use the policy version that you
* specified, or it might use a lower policy version. For example, if you
* specify version 3, but the policy has no conditional role bindings, the
* response uses version 1. To learn which resources support conditions in their
* IAM policies, see the [IAM
* documentation](https://cloud.google.com/iam/help/conditions/resource-
* policies).
* @return Policy
* @throws \Google\Service\Exception
*/
public function getIamPolicy($resource, $optParams = [])
{
$params = ['resource' => $resource];
$params = array_merge($params, $optParams);
return $this->call('getIamPolicy', [$params], Policy::class);
}
/**
* Lists the VolumeRestores for a given Restore.
* (volumeRestores.listProjectsLocationsRestorePlansRestoresVolumeRestores)
*
* @param string $parent Required. The Restore that contains the VolumeRestores
* to list. Format: `projects/locations/restorePlans/restores`
* @param array $optParams Optional parameters.
*
* @opt_param string filter Optional. Field match expression used to filter the
* results.
* @opt_param string orderBy Optional. Field by which to sort the results.
* @opt_param int pageSize Optional. The target number of results to return in a
* single response. If not specified, a default value will be chosen by the
* service. Note that the response may include a partial list and a caller
* should only rely on the response's next_page_token to determine if there are
* more instances left to be queried.
* @opt_param string pageToken Optional. The value of next_page_token received
* from a previous `ListVolumeRestores` call. Provide this to retrieve the
* subsequent page in a multi-page list of results. When paginating, all other
* parameters provided to `ListVolumeRestores` must match the call that provided
* the page token.
* @return ListVolumeRestoresResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsRestorePlansRestoresVolumeRestores($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListVolumeRestoresResponse::class);
}
/**
* Sets the access control policy on the specified resource. Replaces any
* existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and
* `PERMISSION_DENIED` errors. (volumeRestores.setIamPolicy)
*
* @param string $resource REQUIRED: The resource for which the policy is being
* specified. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param SetIamPolicyRequest $postBody
* @param array $optParams Optional parameters.
* @return Policy
* @throws \Google\Service\Exception
*/
public function setIamPolicy($resource, SetIamPolicyRequest $postBody, $optParams = [])
{
$params = ['resource' => $resource, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('setIamPolicy', [$params], Policy::class);
}
/**
* Returns permissions that a caller has on the specified resource. If the
* resource does not exist, this will return an empty set of permissions, not a
* `NOT_FOUND` error. Note: This operation is designed to be used for building
* permission-aware UIs and command-line tools, not for authorization checking.
* This operation may "fail open" without warning.
* (volumeRestores.testIamPermissions)
*
* @param string $resource REQUIRED: The resource for which the policy detail is
* being requested. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param TestIamPermissionsRequest $postBody
* @param array $optParams Optional parameters.
* @return TestIamPermissionsResponse
* @throws \Google\Service\Exception
*/
public function testIamPermissions($resource, TestIamPermissionsRequest $postBody, $optParams = [])
{
$params = ['resource' => $resource, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('testIamPermissions', [$params], TestIamPermissionsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsRestorePlansRestoresVolumeRestores::class, 'Google_Service_BackupforGKE_Resource_ProjectsLocationsRestorePlansRestoresVolumeRestores');

View File

@@ -0,0 +1,108 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\BackupforGKE;
class ResourceFilter extends \Google\Collection
{
protected $collection_key = 'namespaces';
protected $groupKindsType = GroupKind::class;
protected $groupKindsDataType = 'array';
/**
* Optional. This is a [JSONPath] (https://github.com/json-
* path/JsonPath/blob/master/README.md) expression that matches specific
* fields of candidate resources and it operates as a filtering parameter
* (resources that are not matched with this expression will not be candidates
* for transformation).
*
* @var string
*/
public $jsonPath;
/**
* Optional. (Filtering parameter) Any resource subject to transformation must
* be contained within one of the listed Kubernetes Namespace in the Backup.
* If this field is not provided, no namespace filtering will be performed
* (all resources in all Namespaces, including all cluster-scoped resources,
* will be candidates for transformation).
*
* @var string[]
*/
public $namespaces;
/**
* Optional. (Filtering parameter) Any resource subject to transformation must
* belong to one of the listed "types". If this field is not provided, no type
* filtering will be performed (all resources of all types matching previous
* filtering parameters will be candidates for transformation).
*
* @param GroupKind[] $groupKinds
*/
public function setGroupKinds($groupKinds)
{
$this->groupKinds = $groupKinds;
}
/**
* @return GroupKind[]
*/
public function getGroupKinds()
{
return $this->groupKinds;
}
/**
* Optional. This is a [JSONPath] (https://github.com/json-
* path/JsonPath/blob/master/README.md) expression that matches specific
* fields of candidate resources and it operates as a filtering parameter
* (resources that are not matched with this expression will not be candidates
* for transformation).
*
* @param string $jsonPath
*/
public function setJsonPath($jsonPath)
{
$this->jsonPath = $jsonPath;
}
/**
* @return string
*/
public function getJsonPath()
{
return $this->jsonPath;
}
/**
* Optional. (Filtering parameter) Any resource subject to transformation must
* be contained within one of the listed Kubernetes Namespace in the Backup.
* If this field is not provided, no namespace filtering will be performed
* (all resources in all Namespaces, including all cluster-scoped resources,
* will be candidates for transformation).
*
* @param string[] $namespaces
*/
public function setNamespaces($namespaces)
{
$this->namespaces = $namespaces;
}
/**
* @return string[]
*/
public function getNamespaces()
{
return $this->namespaces;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ResourceFilter::class, 'Google_Service_BackupforGKE_ResourceFilter');

View File

@@ -0,0 +1,45 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\BackupforGKE;
class ResourceLabels extends \Google\Collection
{
protected $collection_key = 'resourceLabels';
protected $resourceLabelsType = Label::class;
protected $resourceLabelsDataType = 'array';
/**
* Optional. A list of Kubernetes label-value pairs.
*
* @param Label[] $resourceLabels
*/
public function setResourceLabels($resourceLabels)
{
$this->resourceLabels = $resourceLabels;
}
/**
* @return Label[]
*/
public function getResourceLabels()
{
return $this->resourceLabels;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ResourceLabels::class, 'Google_Service_BackupforGKE_ResourceLabels');

View File

@@ -0,0 +1,133 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\BackupforGKE;
class ResourceSelector extends \Google\Model
{
protected $groupKindType = GroupKind::class;
protected $groupKindDataType = '';
/**
* Optional. Selects resources using Kubernetes
* [labels](https://kubernetes.io/docs/concepts/overview/working-with-
* objects/labels/). If specified, a resource will be selected if and only if
* the resource has all of the provided labels and all the label values match.
*
* @var string[]
*/
public $labels;
/**
* Optional. Selects resources using their resource names. If specified, only
* resources with the provided name will be selected.
*
* @var string
*/
public $name;
/**
* Optional. Selects resources using their namespaces. This only applies to
* namespace scoped resources and cannot be used for selecting cluster scoped
* resources. If specified, only resources in the provided namespace will be
* selected. If not specified, the filter will apply to both cluster scoped
* and namespace scoped resources (e.g. name or label). The
* [Namespace](https://pkg.go.dev/k8s.io/api/core/v1#Namespace) resource
* itself will be restored if and only if any resources within the namespace
* are restored.
*
* @var string
*/
public $namespace;
/**
* Optional. Selects resources using their Kubernetes GroupKinds. If
* specified, only resources of provided GroupKind will be selected.
*
* @param GroupKind $groupKind
*/
public function setGroupKind(GroupKind $groupKind)
{
$this->groupKind = $groupKind;
}
/**
* @return GroupKind
*/
public function getGroupKind()
{
return $this->groupKind;
}
/**
* Optional. Selects resources using Kubernetes
* [labels](https://kubernetes.io/docs/concepts/overview/working-with-
* objects/labels/). If specified, a resource will be selected if and only if
* the resource has all of the provided labels and all the label values match.
*
* @param string[] $labels
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* Optional. Selects resources using their resource names. If specified, only
* resources with the provided name will be selected.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Optional. Selects resources using their namespaces. This only applies to
* namespace scoped resources and cannot be used for selecting cluster scoped
* resources. If specified, only resources in the provided namespace will be
* selected. If not specified, the filter will apply to both cluster scoped
* and namespace scoped resources (e.g. name or label). The
* [Namespace](https://pkg.go.dev/k8s.io/api/core/v1#Namespace) resource
* itself will be restored if and only if any resources within the namespace
* are restored.
*
* @param string $namespace
*/
public function setNamespace($namespace)
{
$this->namespace = $namespace;
}
/**
* @return string
*/
public function getNamespace()
{
return $this->namespace;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ResourceSelector::class, 'Google_Service_BackupforGKE_ResourceSelector');

View File

@@ -0,0 +1,530 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\BackupforGKE;
class Restore extends \Google\Collection
{
/**
* The Restore resource is in the process of being created.
*/
public const STATE_STATE_UNSPECIFIED = 'STATE_UNSPECIFIED';
/**
* The Restore resource has been created and the associated RestoreJob
* Kubernetes resource has been injected into target cluster.
*/
public const STATE_CREATING = 'CREATING';
/**
* The gkebackup agent in the cluster has begun executing the restore
* operation.
*/
public const STATE_IN_PROGRESS = 'IN_PROGRESS';
/**
* The restore operation has completed successfully. Restored workloads may
* not yet be operational.
*/
public const STATE_SUCCEEDED = 'SUCCEEDED';
/**
* The restore operation has failed.
*/
public const STATE_FAILED = 'FAILED';
/**
* This Restore resource is in the process of being deleted.
*/
public const STATE_DELETING = 'DELETING';
/**
* The Kubernetes resources created by this Restore are being validated.
*/
public const STATE_VALIDATING = 'VALIDATING';
protected $collection_key = 'volumeDataRestorePolicyOverrides';
/**
* Required. Immutable. A reference to the Backup used as the source from
* which this Restore will restore. Note that this Backup must be a sub-
* resource of the RestorePlan's backup_plan. Format:
* `projects/locations/backupPlans/backups`.
*
* @var string
*/
public $backup;
/**
* Output only. The target cluster into which this Restore will restore data.
* Valid formats: - `projects/locations/clusters` - `projects/zones/clusters`
* Inherited from parent RestorePlan's cluster value.
*
* @var string
*/
public $cluster;
/**
* Output only. Timestamp of when the restore operation completed.
*
* @var string
*/
public $completeTime;
/**
* Output only. The timestamp when this Restore resource was created.
*
* @var string
*/
public $createTime;
/**
* Optional. User specified descriptive string for this Restore.
*
* @var string
*/
public $description;
/**
* Output only. `etag` is used for optimistic concurrency control as a way to
* help prevent simultaneous updates of a restore from overwriting each other.
* It is strongly suggested that systems make use of the `etag` in the read-
* modify-write cycle to perform restore updates in order to avoid race
* conditions: An `etag` is returned in the response to `GetRestore`, and
* systems are expected to put that etag in the request to `UpdateRestore` or
* `DeleteRestore` to ensure that their change will be applied to the same
* version of the resource.
*
* @var string
*/
public $etag;
protected $filterType = Filter::class;
protected $filterDataType = '';
/**
* A set of custom labels supplied by user.
*
* @var string[]
*/
public $labels;
/**
* Output only. Identifier. The full name of the Restore resource. Format:
* `projects/locations/restorePlans/restores`
*
* @var string
*/
public $name;
/**
* Output only. Number of resources excluded during the restore execution.
*
* @var int
*/
public $resourcesExcludedCount;
/**
* Output only. Number of resources that failed to be restored during the
* restore execution.
*
* @var int
*/
public $resourcesFailedCount;
/**
* Output only. Number of resources restored during the restore execution.
*
* @var int
*/
public $resourcesRestoredCount;
protected $restoreConfigType = RestoreConfig::class;
protected $restoreConfigDataType = '';
/**
* Output only. The current state of the Restore.
*
* @var string
*/
public $state;
/**
* Output only. Human-readable description of why the Restore is in its
* current state. This field is only meant for human readability and should
* not be used programmatically as this field is not guaranteed to be
* consistent.
*
* @var string
*/
public $stateReason;
protected $troubleshootingInfoType = TroubleshootingInfo::class;
protected $troubleshootingInfoDataType = '';
/**
* Output only. Server generated global unique identifier of
* [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
*
* @var string
*/
public $uid;
/**
* Output only. The timestamp when this Restore resource was last updated.
*
* @var string
*/
public $updateTime;
protected $volumeDataRestorePolicyOverridesType = VolumeDataRestorePolicyOverride::class;
protected $volumeDataRestorePolicyOverridesDataType = 'array';
/**
* Output only. Number of volumes restored during the restore execution.
*
* @var int
*/
public $volumesRestoredCount;
/**
* Required. Immutable. A reference to the Backup used as the source from
* which this Restore will restore. Note that this Backup must be a sub-
* resource of the RestorePlan's backup_plan. Format:
* `projects/locations/backupPlans/backups`.
*
* @param string $backup
*/
public function setBackup($backup)
{
$this->backup = $backup;
}
/**
* @return string
*/
public function getBackup()
{
return $this->backup;
}
/**
* Output only. The target cluster into which this Restore will restore data.
* Valid formats: - `projects/locations/clusters` - `projects/zones/clusters`
* Inherited from parent RestorePlan's cluster value.
*
* @param string $cluster
*/
public function setCluster($cluster)
{
$this->cluster = $cluster;
}
/**
* @return string
*/
public function getCluster()
{
return $this->cluster;
}
/**
* Output only. Timestamp of when the restore operation completed.
*
* @param string $completeTime
*/
public function setCompleteTime($completeTime)
{
$this->completeTime = $completeTime;
}
/**
* @return string
*/
public function getCompleteTime()
{
return $this->completeTime;
}
/**
* Output only. The timestamp when this Restore resource was created.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* Optional. User specified descriptive string for this Restore.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* Output only. `etag` is used for optimistic concurrency control as a way to
* help prevent simultaneous updates of a restore from overwriting each other.
* It is strongly suggested that systems make use of the `etag` in the read-
* modify-write cycle to perform restore updates in order to avoid race
* conditions: An `etag` is returned in the response to `GetRestore`, and
* systems are expected to put that etag in the request to `UpdateRestore` or
* `DeleteRestore` to ensure that their change will be applied to the same
* version of the resource.
*
* @param string $etag
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* Optional. Immutable. Filters resources for `Restore`. If not specified, the
* scope of the restore will remain the same as defined in the `RestorePlan`.
* If this is specified and no resources are matched by the
* `inclusion_filters` or everything is excluded by the `exclusion_filters`,
* nothing will be restored. This filter can only be specified if the value of
* namespaced_resource_restore_mode is set to `MERGE_SKIP_ON_CONFLICT`,
* `MERGE_REPLACE_VOLUME_ON_CONFLICT` or `MERGE_REPLACE_ON_CONFLICT`.
*
* @param Filter $filter
*/
public function setFilter(Filter $filter)
{
$this->filter = $filter;
}
/**
* @return Filter
*/
public function getFilter()
{
return $this->filter;
}
/**
* A set of custom labels supplied by user.
*
* @param string[] $labels
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* Output only. Identifier. The full name of the Restore resource. Format:
* `projects/locations/restorePlans/restores`
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Output only. Number of resources excluded during the restore execution.
*
* @param int $resourcesExcludedCount
*/
public function setResourcesExcludedCount($resourcesExcludedCount)
{
$this->resourcesExcludedCount = $resourcesExcludedCount;
}
/**
* @return int
*/
public function getResourcesExcludedCount()
{
return $this->resourcesExcludedCount;
}
/**
* Output only. Number of resources that failed to be restored during the
* restore execution.
*
* @param int $resourcesFailedCount
*/
public function setResourcesFailedCount($resourcesFailedCount)
{
$this->resourcesFailedCount = $resourcesFailedCount;
}
/**
* @return int
*/
public function getResourcesFailedCount()
{
return $this->resourcesFailedCount;
}
/**
* Output only. Number of resources restored during the restore execution.
*
* @param int $resourcesRestoredCount
*/
public function setResourcesRestoredCount($resourcesRestoredCount)
{
$this->resourcesRestoredCount = $resourcesRestoredCount;
}
/**
* @return int
*/
public function getResourcesRestoredCount()
{
return $this->resourcesRestoredCount;
}
/**
* Output only. Configuration of the Restore. Inherited from parent
* RestorePlan's restore_config.
*
* @param RestoreConfig $restoreConfig
*/
public function setRestoreConfig(RestoreConfig $restoreConfig)
{
$this->restoreConfig = $restoreConfig;
}
/**
* @return RestoreConfig
*/
public function getRestoreConfig()
{
return $this->restoreConfig;
}
/**
* Output only. The current state of the Restore.
*
* Accepted values: STATE_UNSPECIFIED, CREATING, IN_PROGRESS, SUCCEEDED,
* FAILED, DELETING, VALIDATING
*
* @param self::STATE_* $state
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return self::STATE_*
*/
public function getState()
{
return $this->state;
}
/**
* Output only. Human-readable description of why the Restore is in its
* current state. This field is only meant for human readability and should
* not be used programmatically as this field is not guaranteed to be
* consistent.
*
* @param string $stateReason
*/
public function setStateReason($stateReason)
{
$this->stateReason = $stateReason;
}
/**
* @return string
*/
public function getStateReason()
{
return $this->stateReason;
}
/**
* Output only. Information about the troubleshooting steps which will provide
* debugging information to the end users.
*
* @param TroubleshootingInfo $troubleshootingInfo
*/
public function setTroubleshootingInfo(TroubleshootingInfo $troubleshootingInfo)
{
$this->troubleshootingInfo = $troubleshootingInfo;
}
/**
* @return TroubleshootingInfo
*/
public function getTroubleshootingInfo()
{
return $this->troubleshootingInfo;
}
/**
* Output only. Server generated global unique identifier of
* [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
*
* @param string $uid
*/
public function setUid($uid)
{
$this->uid = $uid;
}
/**
* @return string
*/
public function getUid()
{
return $this->uid;
}
/**
* Output only. The timestamp when this Restore resource was last updated.
*
* @param string $updateTime
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
/**
* Optional. Immutable. Overrides the volume data restore policies selected in
* the Restore Config for override-scoped resources.
*
* @param VolumeDataRestorePolicyOverride[] $volumeDataRestorePolicyOverrides
*/
public function setVolumeDataRestorePolicyOverrides($volumeDataRestorePolicyOverrides)
{
$this->volumeDataRestorePolicyOverrides = $volumeDataRestorePolicyOverrides;
}
/**
* @return VolumeDataRestorePolicyOverride[]
*/
public function getVolumeDataRestorePolicyOverrides()
{
return $this->volumeDataRestorePolicyOverrides;
}
/**
* Output only. Number of volumes restored during the restore execution.
*
* @param int $volumesRestoredCount
*/
public function setVolumesRestoredCount($volumesRestoredCount)
{
$this->volumesRestoredCount = $volumesRestoredCount;
}
/**
* @return int
*/
public function getVolumesRestoredCount()
{
return $this->volumesRestoredCount;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Restore::class, 'Google_Service_BackupforGKE_Restore');

View File

@@ -0,0 +1,248 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\BackupforGKE;
class RestoreChannel extends \Google\Model
{
/**
* Output only. The timestamp when this RestoreChannel was created.
*
* @var string
*/
public $createTime;
/**
* Optional. User specified descriptive string for this RestoreChannel.
*
* @var string
*/
public $description;
/**
* Required. Immutable. The project into which the backups will be restored.
* The format is `projects/{projectId}` or `projects/{projectNumber}`.
*
* @var string
*/
public $destinationProject;
/**
* Output only. The project_id where backups will be restored. Example Project
* ID: "my-project-id". This will be an OUTPUT_ONLY field to return the
* project_id of the destination project.
*
* @var string
*/
public $destinationProjectId;
/**
* Output only. `etag` is used for optimistic concurrency control as a way to
* help prevent simultaneous updates of a RestoreChannel from overwriting each
* other. It is strongly suggested that systems make use of the 'etag' in the
* read-modify-write cycle to perform RestoreChannel updates in order to avoid
* race conditions: An `etag` is returned in the response to
* `GetRestoreChannel`, and systems are expected to put that etag in the
* request to `UpdateRestoreChannel` or `DeleteRestoreChannel` to ensure that
* their change will be applied to the same version of the resource.
*
* @var string
*/
public $etag;
/**
* Optional. A set of custom labels supplied by user.
*
* @var string[]
*/
public $labels;
/**
* Identifier. The fully qualified name of the RestoreChannel.
* `projects/locations/restoreChannels`
*
* @var string
*/
public $name;
/**
* Output only. Server generated global unique identifier of
* [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
*
* @var string
*/
public $uid;
/**
* Output only. The timestamp when this RestoreChannel was last updated.
*
* @var string
*/
public $updateTime;
/**
* Output only. The timestamp when this RestoreChannel was created.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* Optional. User specified descriptive string for this RestoreChannel.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* Required. Immutable. The project into which the backups will be restored.
* The format is `projects/{projectId}` or `projects/{projectNumber}`.
*
* @param string $destinationProject
*/
public function setDestinationProject($destinationProject)
{
$this->destinationProject = $destinationProject;
}
/**
* @return string
*/
public function getDestinationProject()
{
return $this->destinationProject;
}
/**
* Output only. The project_id where backups will be restored. Example Project
* ID: "my-project-id". This will be an OUTPUT_ONLY field to return the
* project_id of the destination project.
*
* @param string $destinationProjectId
*/
public function setDestinationProjectId($destinationProjectId)
{
$this->destinationProjectId = $destinationProjectId;
}
/**
* @return string
*/
public function getDestinationProjectId()
{
return $this->destinationProjectId;
}
/**
* Output only. `etag` is used for optimistic concurrency control as a way to
* help prevent simultaneous updates of a RestoreChannel from overwriting each
* other. It is strongly suggested that systems make use of the 'etag' in the
* read-modify-write cycle to perform RestoreChannel updates in order to avoid
* race conditions: An `etag` is returned in the response to
* `GetRestoreChannel`, and systems are expected to put that etag in the
* request to `UpdateRestoreChannel` or `DeleteRestoreChannel` to ensure that
* their change will be applied to the same version of the resource.
*
* @param string $etag
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* Optional. A set of custom labels supplied by user.
*
* @param string[] $labels
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* Identifier. The fully qualified name of the RestoreChannel.
* `projects/locations/restoreChannels`
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Output only. Server generated global unique identifier of
* [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
*
* @param string $uid
*/
public function setUid($uid)
{
$this->uid = $uid;
}
/**
* @return string
*/
public function getUid()
{
return $this->uid;
}
/**
* Output only. The timestamp when this RestoreChannel was last updated.
*
* @param string $updateTime
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RestoreChannel::class, 'Google_Service_BackupforGKE_RestoreChannel');

View File

@@ -0,0 +1,421 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\BackupforGKE;
class RestoreConfig extends \Google\Collection
{
/**
* Unspecified. Only allowed if no cluster-scoped resources will be restored.
*/
public const CLUSTER_RESOURCE_CONFLICT_POLICY_CLUSTER_RESOURCE_CONFLICT_POLICY_UNSPECIFIED = 'CLUSTER_RESOURCE_CONFLICT_POLICY_UNSPECIFIED';
/**
* Do not attempt to restore the conflicting resource.
*/
public const CLUSTER_RESOURCE_CONFLICT_POLICY_USE_EXISTING_VERSION = 'USE_EXISTING_VERSION';
/**
* Delete the existing version before re-creating it from the Backup. This is
* a dangerous option which could cause unintentional data loss if used
* inappropriately. For example, deleting a CRD will cause Kubernetes to
* delete all CRs of that type.
*/
public const CLUSTER_RESOURCE_CONFLICT_POLICY_USE_BACKUP_VERSION = 'USE_BACKUP_VERSION';
/**
* Unspecified (invalid).
*/
public const NAMESPACED_RESOURCE_RESTORE_MODE_NAMESPACED_RESOURCE_RESTORE_MODE_UNSPECIFIED = 'NAMESPACED_RESOURCE_RESTORE_MODE_UNSPECIFIED';
/**
* When conflicting top-level resources (either Namespaces or
* ProtectedApplications, depending upon the scope) are encountered, this will
* first trigger a delete of the conflicting resource AND ALL OF ITS
* REFERENCED RESOURCES (e.g., all resources in the Namespace or all resources
* referenced by the ProtectedApplication) before restoring the resources from
* the Backup. This mode should only be used when you are intending to revert
* some portion of a cluster to an earlier state.
*/
public const NAMESPACED_RESOURCE_RESTORE_MODE_DELETE_AND_RESTORE = 'DELETE_AND_RESTORE';
/**
* If conflicting top-level resources (either Namespaces or
* ProtectedApplications, depending upon the scope) are encountered at the
* beginning of a restore process, the Restore will fail. If a conflict occurs
* during the restore process itself (e.g., because an out of band process
* creates conflicting resources), a conflict will be reported.
*/
public const NAMESPACED_RESOURCE_RESTORE_MODE_FAIL_ON_CONFLICT = 'FAIL_ON_CONFLICT';
/**
* This mode merges the backup and the target cluster and skips the
* conflicting resources. If a single resource to restore exists in the
* cluster before restoration, the resource will be skipped, otherwise it will
* be restored.
*/
public const NAMESPACED_RESOURCE_RESTORE_MODE_MERGE_SKIP_ON_CONFLICT = 'MERGE_SKIP_ON_CONFLICT';
/**
* This mode merges the backup and the target cluster and skips the
* conflicting resources except volume data. If a PVC to restore already
* exists, this mode will restore/reconnect the volume without overwriting the
* PVC. It is similar to MERGE_SKIP_ON_CONFLICT except that it will apply the
* volume data policy for the conflicting PVCs: -
* RESTORE_VOLUME_DATA_FROM_BACKUP: restore data only and respect the reclaim
* policy of the original PV; - REUSE_VOLUME_HANDLE_FROM_BACKUP: reconnect and
* respect the reclaim policy of the original PV; -
* NO_VOLUME_DATA_RESTORATION: new provision and respect the reclaim policy of
* the original PV. Note that this mode could cause data loss as the original
* PV can be retained or deleted depending on its reclaim policy.
*/
public const NAMESPACED_RESOURCE_RESTORE_MODE_MERGE_REPLACE_VOLUME_ON_CONFLICT = 'MERGE_REPLACE_VOLUME_ON_CONFLICT';
/**
* This mode merges the backup and the target cluster and replaces the
* conflicting resources with the ones in the backup. If a single resource to
* restore exists in the cluster before restoration, the resource will be
* replaced with the one from the backup. To replace an existing resource, the
* first attempt is to update the resource to match the one from the backup;
* if the update fails, the second attempt is to delete the resource and
* restore it from the backup. Note that this mode could cause data loss as it
* replaces the existing resources in the target cluster, and the original PV
* can be retained or deleted depending on its reclaim policy.
*/
public const NAMESPACED_RESOURCE_RESTORE_MODE_MERGE_REPLACE_ON_CONFLICT = 'MERGE_REPLACE_ON_CONFLICT';
/**
* Unspecified (illegal).
*/
public const VOLUME_DATA_RESTORE_POLICY_VOLUME_DATA_RESTORE_POLICY_UNSPECIFIED = 'VOLUME_DATA_RESTORE_POLICY_UNSPECIFIED';
/**
* For each PVC to be restored, create a new underlying volume and PV from the
* corresponding VolumeBackup contained within the Backup.
*/
public const VOLUME_DATA_RESTORE_POLICY_RESTORE_VOLUME_DATA_FROM_BACKUP = 'RESTORE_VOLUME_DATA_FROM_BACKUP';
/**
* For each PVC to be restored, attempt to reuse the original PV contained in
* the Backup (with its original underlying volume). This option is likely
* only usable when restoring a workload to its original cluster.
*/
public const VOLUME_DATA_RESTORE_POLICY_REUSE_VOLUME_HANDLE_FROM_BACKUP = 'REUSE_VOLUME_HANDLE_FROM_BACKUP';
/**
* For each PVC to be restored, create PVC without any particular action to
* restore data. In this case, the normal Kubernetes provisioning logic would
* kick in, and this would likely result in either dynamically provisioning
* blank PVs or binding to statically provisioned PVs.
*/
public const VOLUME_DATA_RESTORE_POLICY_NO_VOLUME_DATA_RESTORATION = 'NO_VOLUME_DATA_RESTORATION';
protected $collection_key = 'volumeDataRestorePolicyBindings';
/**
* Restore all namespaced resources in the Backup if set to "True". Specifying
* this field to "False" is an error.
*
* @var bool
*/
public $allNamespaces;
/**
* Optional. Defines the behavior for handling the situation where cluster-
* scoped resources being restored already exist in the target cluster. This
* MUST be set to a value other than
* CLUSTER_RESOURCE_CONFLICT_POLICY_UNSPECIFIED if
* cluster_resource_restore_scope is not empty.
*
* @var string
*/
public $clusterResourceConflictPolicy;
protected $clusterResourceRestoreScopeType = ClusterResourceRestoreScope::class;
protected $clusterResourceRestoreScopeDataType = '';
protected $excludedNamespacesType = Namespaces::class;
protected $excludedNamespacesDataType = '';
/**
* Optional. Defines the behavior for handling the situation where sets of
* namespaced resources being restored already exist in the target cluster.
* This MUST be set to a value other than
* NAMESPACED_RESOURCE_RESTORE_MODE_UNSPECIFIED.
*
* @var string
*/
public $namespacedResourceRestoreMode;
/**
* Do not restore any namespaced resources if set to "True". Specifying this
* field to "False" is not allowed.
*
* @var bool
*/
public $noNamespaces;
protected $restoreOrderType = RestoreOrder::class;
protected $restoreOrderDataType = '';
protected $selectedApplicationsType = NamespacedNames::class;
protected $selectedApplicationsDataType = '';
protected $selectedNamespacesType = Namespaces::class;
protected $selectedNamespacesDataType = '';
protected $substitutionRulesType = SubstitutionRule::class;
protected $substitutionRulesDataType = 'array';
protected $transformationRulesType = TransformationRule::class;
protected $transformationRulesDataType = 'array';
/**
* Optional. Specifies the mechanism to be used to restore volume data.
* Default: VOLUME_DATA_RESTORE_POLICY_UNSPECIFIED (will be treated as
* NO_VOLUME_DATA_RESTORATION).
*
* @var string
*/
public $volumeDataRestorePolicy;
protected $volumeDataRestorePolicyBindingsType = VolumeDataRestorePolicyBinding::class;
protected $volumeDataRestorePolicyBindingsDataType = 'array';
/**
* Restore all namespaced resources in the Backup if set to "True". Specifying
* this field to "False" is an error.
*
* @param bool $allNamespaces
*/
public function setAllNamespaces($allNamespaces)
{
$this->allNamespaces = $allNamespaces;
}
/**
* @return bool
*/
public function getAllNamespaces()
{
return $this->allNamespaces;
}
/**
* Optional. Defines the behavior for handling the situation where cluster-
* scoped resources being restored already exist in the target cluster. This
* MUST be set to a value other than
* CLUSTER_RESOURCE_CONFLICT_POLICY_UNSPECIFIED if
* cluster_resource_restore_scope is not empty.
*
* Accepted values: CLUSTER_RESOURCE_CONFLICT_POLICY_UNSPECIFIED,
* USE_EXISTING_VERSION, USE_BACKUP_VERSION
*
* @param self::CLUSTER_RESOURCE_CONFLICT_POLICY_* $clusterResourceConflictPolicy
*/
public function setClusterResourceConflictPolicy($clusterResourceConflictPolicy)
{
$this->clusterResourceConflictPolicy = $clusterResourceConflictPolicy;
}
/**
* @return self::CLUSTER_RESOURCE_CONFLICT_POLICY_*
*/
public function getClusterResourceConflictPolicy()
{
return $this->clusterResourceConflictPolicy;
}
/**
* Optional. Identifies the cluster-scoped resources to restore from the
* Backup. Not specifying it means NO cluster resource will be restored.
*
* @param ClusterResourceRestoreScope $clusterResourceRestoreScope
*/
public function setClusterResourceRestoreScope(ClusterResourceRestoreScope $clusterResourceRestoreScope)
{
$this->clusterResourceRestoreScope = $clusterResourceRestoreScope;
}
/**
* @return ClusterResourceRestoreScope
*/
public function getClusterResourceRestoreScope()
{
return $this->clusterResourceRestoreScope;
}
/**
* A list of selected namespaces excluded from restoration. All namespaces
* except those in this list will be restored.
*
* @param Namespaces $excludedNamespaces
*/
public function setExcludedNamespaces(Namespaces $excludedNamespaces)
{
$this->excludedNamespaces = $excludedNamespaces;
}
/**
* @return Namespaces
*/
public function getExcludedNamespaces()
{
return $this->excludedNamespaces;
}
/**
* Optional. Defines the behavior for handling the situation where sets of
* namespaced resources being restored already exist in the target cluster.
* This MUST be set to a value other than
* NAMESPACED_RESOURCE_RESTORE_MODE_UNSPECIFIED.
*
* Accepted values: NAMESPACED_RESOURCE_RESTORE_MODE_UNSPECIFIED,
* DELETE_AND_RESTORE, FAIL_ON_CONFLICT, MERGE_SKIP_ON_CONFLICT,
* MERGE_REPLACE_VOLUME_ON_CONFLICT, MERGE_REPLACE_ON_CONFLICT
*
* @param self::NAMESPACED_RESOURCE_RESTORE_MODE_* $namespacedResourceRestoreMode
*/
public function setNamespacedResourceRestoreMode($namespacedResourceRestoreMode)
{
$this->namespacedResourceRestoreMode = $namespacedResourceRestoreMode;
}
/**
* @return self::NAMESPACED_RESOURCE_RESTORE_MODE_*
*/
public function getNamespacedResourceRestoreMode()
{
return $this->namespacedResourceRestoreMode;
}
/**
* Do not restore any namespaced resources if set to "True". Specifying this
* field to "False" is not allowed.
*
* @param bool $noNamespaces
*/
public function setNoNamespaces($noNamespaces)
{
$this->noNamespaces = $noNamespaces;
}
/**
* @return bool
*/
public function getNoNamespaces()
{
return $this->noNamespaces;
}
/**
* Optional. RestoreOrder contains custom ordering to use on a Restore.
*
* @param RestoreOrder $restoreOrder
*/
public function setRestoreOrder(RestoreOrder $restoreOrder)
{
$this->restoreOrder = $restoreOrder;
}
/**
* @return RestoreOrder
*/
public function getRestoreOrder()
{
return $this->restoreOrder;
}
/**
* A list of selected ProtectedApplications to restore. The listed
* ProtectedApplications and all the resources to which they refer will be
* restored.
*
* @param NamespacedNames $selectedApplications
*/
public function setSelectedApplications(NamespacedNames $selectedApplications)
{
$this->selectedApplications = $selectedApplications;
}
/**
* @return NamespacedNames
*/
public function getSelectedApplications()
{
return $this->selectedApplications;
}
/**
* A list of selected Namespaces to restore from the Backup. The listed
* Namespaces and all resources contained in them will be restored.
*
* @param Namespaces $selectedNamespaces
*/
public function setSelectedNamespaces(Namespaces $selectedNamespaces)
{
$this->selectedNamespaces = $selectedNamespaces;
}
/**
* @return Namespaces
*/
public function getSelectedNamespaces()
{
return $this->selectedNamespaces;
}
/**
* Optional. A list of transformation rules to be applied against Kubernetes
* resources as they are selected for restoration from a Backup. Rules are
* executed in order defined - this order matters, as changes made by a rule
* may impact the filtering logic of subsequent rules. An empty list means no
* substitution will occur.
*
* @param SubstitutionRule[] $substitutionRules
*/
public function setSubstitutionRules($substitutionRules)
{
$this->substitutionRules = $substitutionRules;
}
/**
* @return SubstitutionRule[]
*/
public function getSubstitutionRules()
{
return $this->substitutionRules;
}
/**
* Optional. A list of transformation rules to be applied against Kubernetes
* resources as they are selected for restoration from a Backup. Rules are
* executed in order defined - this order matters, as changes made by a rule
* may impact the filtering logic of subsequent rules. An empty list means no
* transformation will occur.
*
* @param TransformationRule[] $transformationRules
*/
public function setTransformationRules($transformationRules)
{
$this->transformationRules = $transformationRules;
}
/**
* @return TransformationRule[]
*/
public function getTransformationRules()
{
return $this->transformationRules;
}
/**
* Optional. Specifies the mechanism to be used to restore volume data.
* Default: VOLUME_DATA_RESTORE_POLICY_UNSPECIFIED (will be treated as
* NO_VOLUME_DATA_RESTORATION).
*
* Accepted values: VOLUME_DATA_RESTORE_POLICY_UNSPECIFIED,
* RESTORE_VOLUME_DATA_FROM_BACKUP, REUSE_VOLUME_HANDLE_FROM_BACKUP,
* NO_VOLUME_DATA_RESTORATION
*
* @param self::VOLUME_DATA_RESTORE_POLICY_* $volumeDataRestorePolicy
*/
public function setVolumeDataRestorePolicy($volumeDataRestorePolicy)
{
$this->volumeDataRestorePolicy = $volumeDataRestorePolicy;
}
/**
* @return self::VOLUME_DATA_RESTORE_POLICY_*
*/
public function getVolumeDataRestorePolicy()
{
return $this->volumeDataRestorePolicy;
}
/**
* Optional. A table that binds volumes by their scope to a restore policy.
* Bindings must have a unique scope. Any volumes not scoped in the bindings
* are subject to the policy defined in volume_data_restore_policy.
*
* @param VolumeDataRestorePolicyBinding[] $volumeDataRestorePolicyBindings
*/
public function setVolumeDataRestorePolicyBindings($volumeDataRestorePolicyBindings)
{
$this->volumeDataRestorePolicyBindings = $volumeDataRestorePolicyBindings;
}
/**
* @return VolumeDataRestorePolicyBinding[]
*/
public function getVolumeDataRestorePolicyBindings()
{
return $this->volumeDataRestorePolicyBindings;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RestoreConfig::class, 'Google_Service_BackupforGKE_RestoreConfig');

View File

@@ -0,0 +1,47 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\BackupforGKE;
class RestoreOrder extends \Google\Collection
{
protected $collection_key = 'groupKindDependencies';
protected $groupKindDependenciesType = GroupKindDependency::class;
protected $groupKindDependenciesDataType = 'array';
/**
* Optional. Contains a list of group kind dependency pairs provided by the
* customer, that is used by Backup for GKE to generate a group kind restore
* order.
*
* @param GroupKindDependency[] $groupKindDependencies
*/
public function setGroupKindDependencies($groupKindDependencies)
{
$this->groupKindDependencies = $groupKindDependencies;
}
/**
* @return GroupKindDependency[]
*/
public function getGroupKindDependencies()
{
return $this->groupKindDependencies;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RestoreOrder::class, 'Google_Service_BackupforGKE_RestoreOrder');

View File

@@ -0,0 +1,373 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\BackupforGKE;
class RestorePlan extends \Google\Model
{
/**
* Default first value for Enums.
*/
public const STATE_STATE_UNSPECIFIED = 'STATE_UNSPECIFIED';
/**
* Waiting for cluster state to be RUNNING.
*/
public const STATE_CLUSTER_PENDING = 'CLUSTER_PENDING';
/**
* The RestorePlan has successfully been created and is ready for Restores.
*/
public const STATE_READY = 'READY';
/**
* RestorePlan creation has failed.
*/
public const STATE_FAILED = 'FAILED';
/**
* The RestorePlan is in the process of being deleted.
*/
public const STATE_DELETING = 'DELETING';
/**
* Required. Immutable. A reference to the BackupPlan from which Backups may
* be used as the source for Restores created via this RestorePlan. Format:
* `projects/locations/backupPlans`.
*
* @var string
*/
public $backupPlan;
/**
* Required. Immutable. The target cluster into which Restores created via
* this RestorePlan will restore data. NOTE: the cluster's region must be the
* same as the RestorePlan. Valid formats: - `projects/locations/clusters` -
* `projects/zones/clusters`
*
* @var string
*/
public $cluster;
/**
* Output only. The timestamp when this RestorePlan resource was created.
*
* @var string
*/
public $createTime;
/**
* Optional. User specified descriptive string for this RestorePlan.
*
* @var string
*/
public $description;
/**
* Output only. `etag` is used for optimistic concurrency control as a way to
* help prevent simultaneous updates of a restore from overwriting each other.
* It is strongly suggested that systems make use of the `etag` in the read-
* modify-write cycle to perform restore updates in order to avoid race
* conditions: An `etag` is returned in the response to `GetRestorePlan`, and
* systems are expected to put that etag in the request to `UpdateRestorePlan`
* or `DeleteRestorePlan` to ensure that their change will be applied to the
* same version of the resource.
*
* @var string
*/
public $etag;
/**
* Optional. A set of custom labels supplied by user.
*
* @var string[]
*/
public $labels;
/**
* Output only. Identifier. The full name of the RestorePlan resource. Format:
* `projects/locations/restorePlans`.
*
* @var string
*/
public $name;
/**
* Output only. The fully qualified name of the RestoreChannel to be used to
* create a RestorePlan. This field is set only if the `backup_plan` is in a
* different project than the RestorePlan. Format:
* `projects/locations/restoreChannels`
*
* @var string
*/
public $restoreChannel;
protected $restoreConfigType = RestoreConfig::class;
protected $restoreConfigDataType = '';
/**
* Output only. State of the RestorePlan. This State field reflects the
* various stages a RestorePlan can be in during the Create operation.
*
* @var string
*/
public $state;
/**
* Output only. Human-readable description of why RestorePlan is in the
* current `state`. This field is only meant for human readability and should
* not be used programmatically as this field is not guaranteed to be
* consistent.
*
* @var string
*/
public $stateReason;
/**
* Output only. Server generated global unique identifier of
* [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
*
* @var string
*/
public $uid;
/**
* Output only. The timestamp when this RestorePlan resource was last updated.
*
* @var string
*/
public $updateTime;
/**
* Required. Immutable. A reference to the BackupPlan from which Backups may
* be used as the source for Restores created via this RestorePlan. Format:
* `projects/locations/backupPlans`.
*
* @param string $backupPlan
*/
public function setBackupPlan($backupPlan)
{
$this->backupPlan = $backupPlan;
}
/**
* @return string
*/
public function getBackupPlan()
{
return $this->backupPlan;
}
/**
* Required. Immutable. The target cluster into which Restores created via
* this RestorePlan will restore data. NOTE: the cluster's region must be the
* same as the RestorePlan. Valid formats: - `projects/locations/clusters` -
* `projects/zones/clusters`
*
* @param string $cluster
*/
public function setCluster($cluster)
{
$this->cluster = $cluster;
}
/**
* @return string
*/
public function getCluster()
{
return $this->cluster;
}
/**
* Output only. The timestamp when this RestorePlan resource was created.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* Optional. User specified descriptive string for this RestorePlan.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* Output only. `etag` is used for optimistic concurrency control as a way to
* help prevent simultaneous updates of a restore from overwriting each other.
* It is strongly suggested that systems make use of the `etag` in the read-
* modify-write cycle to perform restore updates in order to avoid race
* conditions: An `etag` is returned in the response to `GetRestorePlan`, and
* systems are expected to put that etag in the request to `UpdateRestorePlan`
* or `DeleteRestorePlan` to ensure that their change will be applied to the
* same version of the resource.
*
* @param string $etag
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* Optional. A set of custom labels supplied by user.
*
* @param string[] $labels
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* Output only. Identifier. The full name of the RestorePlan resource. Format:
* `projects/locations/restorePlans`.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Output only. The fully qualified name of the RestoreChannel to be used to
* create a RestorePlan. This field is set only if the `backup_plan` is in a
* different project than the RestorePlan. Format:
* `projects/locations/restoreChannels`
*
* @param string $restoreChannel
*/
public function setRestoreChannel($restoreChannel)
{
$this->restoreChannel = $restoreChannel;
}
/**
* @return string
*/
public function getRestoreChannel()
{
return $this->restoreChannel;
}
/**
* Required. Configuration of Restores created via this RestorePlan.
*
* @param RestoreConfig $restoreConfig
*/
public function setRestoreConfig(RestoreConfig $restoreConfig)
{
$this->restoreConfig = $restoreConfig;
}
/**
* @return RestoreConfig
*/
public function getRestoreConfig()
{
return $this->restoreConfig;
}
/**
* Output only. State of the RestorePlan. This State field reflects the
* various stages a RestorePlan can be in during the Create operation.
*
* Accepted values: STATE_UNSPECIFIED, CLUSTER_PENDING, READY, FAILED,
* DELETING
*
* @param self::STATE_* $state
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return self::STATE_*
*/
public function getState()
{
return $this->state;
}
/**
* Output only. Human-readable description of why RestorePlan is in the
* current `state`. This field is only meant for human readability and should
* not be used programmatically as this field is not guaranteed to be
* consistent.
*
* @param string $stateReason
*/
public function setStateReason($stateReason)
{
$this->stateReason = $stateReason;
}
/**
* @return string
*/
public function getStateReason()
{
return $this->stateReason;
}
/**
* Output only. Server generated global unique identifier of
* [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
*
* @param string $uid
*/
public function setUid($uid)
{
$this->uid = $uid;
}
/**
* @return string
*/
public function getUid()
{
return $this->uid;
}
/**
* Output only. The timestamp when this RestorePlan resource was last updated.
*
* @param string $updateTime
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RestorePlan::class, 'Google_Service_BackupforGKE_RestorePlan');

View File

@@ -0,0 +1,204 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\BackupforGKE;
class RestorePlanBinding extends \Google\Model
{
/**
* Output only. The fully qualified name of the BackupPlan bound to the
* specified RestorePlan. `projects/locations/backukpPlans/{backup_plan}`
*
* @var string
*/
public $backupPlan;
/**
* Output only. The timestamp when this binding was created.
*
* @var string
*/
public $createTime;
/**
* Output only. `etag` is used for optimistic concurrency control as a way to
* help prevent simultaneous updates of a RestorePlanBinding from overwriting
* each other. It is strongly suggested that systems make use of the 'etag' in
* the read-modify-write cycle to perform RestorePlanBinding updates in order
* to avoid race conditions: An `etag` is returned in the response to
* `GetRestorePlanBinding`, and systems are expected to put that etag in the
* request to `UpdateRestorePlanBinding` or `DeleteRestorePlanBinding` to
* ensure that their change will be applied to the same version of the
* resource.
*
* @var string
*/
public $etag;
/**
* Identifier. The fully qualified name of the RestorePlanBinding.
* `projects/locations/restoreChannels/restorePlanBindings`
*
* @var string
*/
public $name;
/**
* Output only. The fully qualified name of the RestorePlan bound to this
* RestoreChannel. `projects/locations/restorePlans/{restore_plan}`
*
* @var string
*/
public $restorePlan;
/**
* Output only. Server generated global unique identifier of
* [UUID4](https://en.wikipedia.org/wiki/Universally_unique_identifier)
*
* @var string
*/
public $uid;
/**
* Output only. The timestamp when this binding was created.
*
* @var string
*/
public $updateTime;
/**
* Output only. The fully qualified name of the BackupPlan bound to the
* specified RestorePlan. `projects/locations/backukpPlans/{backup_plan}`
*
* @param string $backupPlan
*/
public function setBackupPlan($backupPlan)
{
$this->backupPlan = $backupPlan;
}
/**
* @return string
*/
public function getBackupPlan()
{
return $this->backupPlan;
}
/**
* Output only. The timestamp when this binding was created.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* Output only. `etag` is used for optimistic concurrency control as a way to
* help prevent simultaneous updates of a RestorePlanBinding from overwriting
* each other. It is strongly suggested that systems make use of the 'etag' in
* the read-modify-write cycle to perform RestorePlanBinding updates in order
* to avoid race conditions: An `etag` is returned in the response to
* `GetRestorePlanBinding`, and systems are expected to put that etag in the
* request to `UpdateRestorePlanBinding` or `DeleteRestorePlanBinding` to
* ensure that their change will be applied to the same version of the
* resource.
*
* @param string $etag
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* Identifier. The fully qualified name of the RestorePlanBinding.
* `projects/locations/restoreChannels/restorePlanBindings`
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Output only. The fully qualified name of the RestorePlan bound to this
* RestoreChannel. `projects/locations/restorePlans/{restore_plan}`
*
* @param string $restorePlan
*/
public function setRestorePlan($restorePlan)
{
$this->restorePlan = $restorePlan;
}
/**
* @return string
*/
public function getRestorePlan()
{
return $this->restorePlan;
}
/**
* Output only. Server generated global unique identifier of
* [UUID4](https://en.wikipedia.org/wiki/Universally_unique_identifier)
*
* @param string $uid
*/
public function setUid($uid)
{
$this->uid = $uid;
}
/**
* @return string
*/
public function getUid()
{
return $this->uid;
}
/**
* Output only. The timestamp when this binding was created.
*
* @param string $updateTime
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RestorePlanBinding::class, 'Google_Service_BackupforGKE_RestorePlanBinding');

View File

@@ -0,0 +1,128 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\BackupforGKE;
class RetentionPolicy extends \Google\Model
{
/**
* Optional. Minimum age for Backups created via this BackupPlan (in days).
* This field MUST be an integer value between 0-90 (inclusive). A Backup
* created under this BackupPlan will NOT be deletable until it reaches
* Backup's (create_time + backup_delete_lock_days). Updating this field of a
* BackupPlan does NOT affect existing Backups under it. Backups created AFTER
* a successful update will inherit the new value. Default: 0 (no delete
* blocking)
*
* @var int
*/
public $backupDeleteLockDays;
/**
* Optional. The default maximum age of a Backup created via this BackupPlan.
* This field MUST be an integer value >= 0 and <= 365. If specified, a Backup
* created under this BackupPlan will be automatically deleted after its age
* reaches (create_time + backup_retain_days). If not specified, Backups
* created under this BackupPlan will NOT be subject to automatic deletion.
* Updating this field does NOT affect existing Backups under it. Backups
* created AFTER a successful update will automatically pick up the new value.
* NOTE: backup_retain_days must be >= backup_delete_lock_days. If
* cron_schedule is defined, then this must be <= 360 * the creation interval.
* If rpo_config is defined, then this must be <= 360 * target_rpo_minutes /
* (1440minutes/day). Default: 0 (no automatic deletion)
*
* @var int
*/
public $backupRetainDays;
/**
* Optional. This flag denotes whether the retention policy of this BackupPlan
* is locked. If set to True, no further update is allowed on this policy,
* including the `locked` field itself. Default: False
*
* @var bool
*/
public $locked;
/**
* Optional. Minimum age for Backups created via this BackupPlan (in days).
* This field MUST be an integer value between 0-90 (inclusive). A Backup
* created under this BackupPlan will NOT be deletable until it reaches
* Backup's (create_time + backup_delete_lock_days). Updating this field of a
* BackupPlan does NOT affect existing Backups under it. Backups created AFTER
* a successful update will inherit the new value. Default: 0 (no delete
* blocking)
*
* @param int $backupDeleteLockDays
*/
public function setBackupDeleteLockDays($backupDeleteLockDays)
{
$this->backupDeleteLockDays = $backupDeleteLockDays;
}
/**
* @return int
*/
public function getBackupDeleteLockDays()
{
return $this->backupDeleteLockDays;
}
/**
* Optional. The default maximum age of a Backup created via this BackupPlan.
* This field MUST be an integer value >= 0 and <= 365. If specified, a Backup
* created under this BackupPlan will be automatically deleted after its age
* reaches (create_time + backup_retain_days). If not specified, Backups
* created under this BackupPlan will NOT be subject to automatic deletion.
* Updating this field does NOT affect existing Backups under it. Backups
* created AFTER a successful update will automatically pick up the new value.
* NOTE: backup_retain_days must be >= backup_delete_lock_days. If
* cron_schedule is defined, then this must be <= 360 * the creation interval.
* If rpo_config is defined, then this must be <= 360 * target_rpo_minutes /
* (1440minutes/day). Default: 0 (no automatic deletion)
*
* @param int $backupRetainDays
*/
public function setBackupRetainDays($backupRetainDays)
{
$this->backupRetainDays = $backupRetainDays;
}
/**
* @return int
*/
public function getBackupRetainDays()
{
return $this->backupRetainDays;
}
/**
* Optional. This flag denotes whether the retention policy of this BackupPlan
* is locked. If set to True, no further update is allowed on this policy,
* including the `locked` field itself. Default: False
*
* @param bool $locked
*/
public function setLocked($locked)
{
$this->locked = $locked;
}
/**
* @return bool
*/
public function getLocked()
{
return $this->locked;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RetentionPolicy::class, 'Google_Service_BackupforGKE_RetentionPolicy');

View File

@@ -0,0 +1,92 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\BackupforGKE;
class RetentionPolicyDetails extends \Google\Model
{
/**
* Optional. Minimum age for Backups created via this BackupPlan (in days).
* This field MUST be an integer value between 0-90 (inclusive). A Backup
* created under this BackupPlan will NOT be deletable until it reaches
* Backup's (create_time + backup_delete_lock_days). Updating this field of a
* BackupPlan does NOT affect existing Backups under it. Backups created AFTER
* a successful update will inherit the new value. Default: 0 (no delete
* blocking)
*
* @var int
*/
public $backupDeleteLockDays;
/**
* Optional. The default maximum age of a Backup created via this BackupPlan.
* This field MUST be an integer value >= 0 and <= 365. If specified, a Backup
* created under this BackupPlan will be automatically deleted after its age
* reaches (create_time + backup_retain_days). If not specified, Backups
* created under this BackupPlan will NOT be subject to automatic deletion.
* Default: 0 (no automatic deletion)
*
* @var int
*/
public $backupRetainDays;
/**
* Optional. Minimum age for Backups created via this BackupPlan (in days).
* This field MUST be an integer value between 0-90 (inclusive). A Backup
* created under this BackupPlan will NOT be deletable until it reaches
* Backup's (create_time + backup_delete_lock_days). Updating this field of a
* BackupPlan does NOT affect existing Backups under it. Backups created AFTER
* a successful update will inherit the new value. Default: 0 (no delete
* blocking)
*
* @param int $backupDeleteLockDays
*/
public function setBackupDeleteLockDays($backupDeleteLockDays)
{
$this->backupDeleteLockDays = $backupDeleteLockDays;
}
/**
* @return int
*/
public function getBackupDeleteLockDays()
{
return $this->backupDeleteLockDays;
}
/**
* Optional. The default maximum age of a Backup created via this BackupPlan.
* This field MUST be an integer value >= 0 and <= 365. If specified, a Backup
* created under this BackupPlan will be automatically deleted after its age
* reaches (create_time + backup_retain_days). If not specified, Backups
* created under this BackupPlan will NOT be subject to automatic deletion.
* Default: 0 (no automatic deletion)
*
* @param int $backupRetainDays
*/
public function setBackupRetainDays($backupRetainDays)
{
$this->backupRetainDays = $backupRetainDays;
}
/**
* @return int
*/
public function getBackupRetainDays()
{
return $this->backupRetainDays;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RetentionPolicyDetails::class, 'Google_Service_BackupforGKE_RetentionPolicyDetails');

View File

@@ -0,0 +1,80 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\BackupforGKE;
class RpoConfig extends \Google\Collection
{
protected $collection_key = 'exclusionWindows';
protected $exclusionWindowsType = ExclusionWindow::class;
protected $exclusionWindowsDataType = 'array';
/**
* Required. Defines the target RPO for the BackupPlan in minutes, which means
* the target maximum data loss in time that is acceptable for this
* BackupPlan. This must be at least 60, i.e., 1 hour, and at most 86400,
* i.e., 60 days.
*
* @var int
*/
public $targetRpoMinutes;
/**
* Optional. User specified time windows during which backup can NOT happen
* for this BackupPlan - backups should start and finish outside of any given
* exclusion window. Note: backup jobs will be scheduled to start and finish
* outside the duration of the window as much as possible, but running jobs
* will not get canceled when it runs into the window. All the time and date
* values in exclusion_windows entry in the API are in UTC. We only allow <=1
* recurrence (daily or weekly) exclusion window for a BackupPlan while no
* restriction on number of single occurrence windows.
*
* @param ExclusionWindow[] $exclusionWindows
*/
public function setExclusionWindows($exclusionWindows)
{
$this->exclusionWindows = $exclusionWindows;
}
/**
* @return ExclusionWindow[]
*/
public function getExclusionWindows()
{
return $this->exclusionWindows;
}
/**
* Required. Defines the target RPO for the BackupPlan in minutes, which means
* the target maximum data loss in time that is acceptable for this
* BackupPlan. This must be at least 60, i.e., 1 hour, and at most 86400,
* i.e., 60 days.
*
* @param int $targetRpoMinutes
*/
public function setTargetRpoMinutes($targetRpoMinutes)
{
$this->targetRpoMinutes = $targetRpoMinutes;
}
/**
* @return int
*/
public function getTargetRpoMinutes()
{
return $this->targetRpoMinutes;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RpoConfig::class, 'Google_Service_BackupforGKE_RpoConfig');

View File

@@ -0,0 +1,128 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\BackupforGKE;
class Schedule extends \Google\Model
{
/**
* Optional. A standard [cron](https://wikipedia.com/wiki/cron) string that
* defines a repeating schedule for creating Backups via this BackupPlan. This
* is mutually exclusive with the rpo_config field since at most one schedule
* can be defined for a BackupPlan. If this is defined, then
* backup_retain_days must also be defined. Default (empty): no automatic
* backup creation will occur.
*
* @var string
*/
public $cronSchedule;
/**
* Output only. Start time of next scheduled backup under this BackupPlan by
* either cron_schedule or rpo config.
*
* @var string
*/
public $nextScheduledBackupTime;
/**
* Optional. This flag denotes whether automatic Backup creation is paused for
* this BackupPlan. Default: False
*
* @var bool
*/
public $paused;
protected $rpoConfigType = RpoConfig::class;
protected $rpoConfigDataType = '';
/**
* Optional. A standard [cron](https://wikipedia.com/wiki/cron) string that
* defines a repeating schedule for creating Backups via this BackupPlan. This
* is mutually exclusive with the rpo_config field since at most one schedule
* can be defined for a BackupPlan. If this is defined, then
* backup_retain_days must also be defined. Default (empty): no automatic
* backup creation will occur.
*
* @param string $cronSchedule
*/
public function setCronSchedule($cronSchedule)
{
$this->cronSchedule = $cronSchedule;
}
/**
* @return string
*/
public function getCronSchedule()
{
return $this->cronSchedule;
}
/**
* Output only. Start time of next scheduled backup under this BackupPlan by
* either cron_schedule or rpo config.
*
* @param string $nextScheduledBackupTime
*/
public function setNextScheduledBackupTime($nextScheduledBackupTime)
{
$this->nextScheduledBackupTime = $nextScheduledBackupTime;
}
/**
* @return string
*/
public function getNextScheduledBackupTime()
{
return $this->nextScheduledBackupTime;
}
/**
* Optional. This flag denotes whether automatic Backup creation is paused for
* this BackupPlan. Default: False
*
* @param bool $paused
*/
public function setPaused($paused)
{
$this->paused = $paused;
}
/**
* @return bool
*/
public function getPaused()
{
return $this->paused;
}
/**
* Optional. Defines the RPO schedule configuration for this BackupPlan. This
* is mutually exclusive with the cron_schedule field since at most one
* schedule can be defined for a BackupPLan. If this is defined, then
* backup_retain_days must also be defined. Default (empty): no automatic
* backup creation will occur.
*
* @param RpoConfig $rpoConfig
*/
public function setRpoConfig(RpoConfig $rpoConfig)
{
$this->rpoConfig = $rpoConfig;
}
/**
* @return RpoConfig
*/
public function getRpoConfig()
{
return $this->rpoConfig;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Schedule::class, 'Google_Service_BackupforGKE_Schedule');

View File

@@ -0,0 +1,72 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\BackupforGKE;
class SetIamPolicyRequest extends \Google\Model
{
protected $policyType = Policy::class;
protected $policyDataType = '';
/**
* OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
* the fields in the mask will be modified. If no mask is provided, the
* following default mask is used: `paths: "bindings, etag"`
*
* @var string
*/
public $updateMask;
/**
* REQUIRED: The complete policy to be applied to the `resource`. The size of
* the policy is limited to a few 10s of KB. An empty policy is a valid policy
* but certain Google Cloud services (such as Projects) might reject them.
*
* @param Policy $policy
*/
public function setPolicy(Policy $policy)
{
$this->policy = $policy;
}
/**
* @return Policy
*/
public function getPolicy()
{
return $this->policy;
}
/**
* OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
* the fields in the mask will be modified. If no mask is provided, the
* following default mask is used: `paths: "bindings, etag"`
*
* @param string $updateMask
*/
public function setUpdateMask($updateMask)
{
$this->updateMask = $updateMask;
}
/**
* @return string
*/
public function getUpdateMask()
{
return $this->updateMask;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SetIamPolicyRequest::class, 'Google_Service_BackupforGKE_SetIamPolicyRequest');

View File

@@ -0,0 +1,102 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\BackupforGKE;
class SetTagsRequest extends \Google\Model
{
/**
* Optional. A checksum based on the current bindings which can be passed to
* prevent race conditions. If not passed, etag check would be skipped.
*
* @var string
*/
public $etag;
/**
* Optional. A unique identifier for this request. Must be a valid UUID. This
* request is only idempotent if a `request_id` is provided.
*
* @var string
*/
public $requestId;
/**
* Required. These bindings will override any bindings previously set and will
* be effective immediately. Each item in the map must be expressed as " : ".
* For example: "123/environment" : "production", "123/costCenter" :
* "marketing"
*
* @var string[]
*/
public $tags;
/**
* Optional. A checksum based on the current bindings which can be passed to
* prevent race conditions. If not passed, etag check would be skipped.
*
* @param string $etag
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* Optional. A unique identifier for this request. Must be a valid UUID. This
* request is only idempotent if a `request_id` is provided.
*
* @param string $requestId
*/
public function setRequestId($requestId)
{
$this->requestId = $requestId;
}
/**
* @return string
*/
public function getRequestId()
{
return $this->requestId;
}
/**
* Required. These bindings will override any bindings previously set and will
* be effective immediately. Each item in the map must be expressed as " : ".
* For example: "123/environment" : "production", "123/costCenter" :
* "marketing"
*
* @param string[] $tags
*/
public function setTags($tags)
{
$this->tags = $tags;
}
/**
* @return string[]
*/
public function getTags()
{
return $this->tags;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SetTagsRequest::class, 'Google_Service_BackupforGKE_SetTagsRequest');

View File

@@ -0,0 +1,98 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\BackupforGKE;
class SetTagsResponse extends \Google\Model
{
/**
* A checksum based on the current bindings. This field is always set in
* server responses.
*
* @var string
*/
public $etag;
/**
* Required. The full resource name of the service resource.
*
* @var string
*/
public $name;
/**
* Required. Tag keys/values directly bound to this resource. Each item in the
* map must be expressed as " : ". For example: "123/environment" :
* "production", "123/costCenter" : "marketing"
*
* @var string[]
*/
public $tags;
/**
* A checksum based on the current bindings. This field is always set in
* server responses.
*
* @param string $etag
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* Required. The full resource name of the service resource.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Required. Tag keys/values directly bound to this resource. Each item in the
* map must be expressed as " : ". For example: "123/environment" :
* "production", "123/costCenter" : "marketing"
*
* @param string[] $tags
*/
public function setTags($tags)
{
$this->tags = $tags;
}
/**
* @return string[]
*/
public function getTags()
{
return $this->tags;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SetTagsResponse::class, 'Google_Service_BackupforGKE_SetTagsResponse');

View File

@@ -0,0 +1,180 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\BackupforGKE;
class SubstitutionRule extends \Google\Collection
{
protected $collection_key = 'targetNamespaces';
/**
* Optional. This is the new value to set for any fields that pass the
* filtering and selection criteria. To remove a value from a Kubernetes
* resource, either leave this field unspecified, or set it to the empty
* string ("").
*
* @var string
*/
public $newValue;
/**
* Optional. (Filtering parameter) This is a [regular expression]
* (https://en.wikipedia.org/wiki/Regular_expression) that is compared against
* the fields matched by the target_json_path expression (and must also have
* passed the previous filters). Substitution will not be performed against
* fields whose value does not match this expression. If this field is NOT
* specified, then ALL fields matched by the target_json_path expression will
* undergo substitution. Note that an empty (e.g., "", rather than
* unspecified) value for this field will only match empty fields.
*
* @var string
*/
public $originalValuePattern;
protected $targetGroupKindsType = GroupKind::class;
protected $targetGroupKindsDataType = 'array';
/**
* Required. This is a [JSONPath]
* (https://kubernetes.io/docs/reference/kubectl/jsonpath/) expression that
* matches specific fields of candidate resources and it operates as both a
* filtering parameter (resources that are not matched with this expression
* will not be candidates for substitution) as well as a field identifier
* (identifies exactly which fields out of the candidate resources will be
* modified).
*
* @var string
*/
public $targetJsonPath;
/**
* Optional. (Filtering parameter) Any resource subject to substitution must
* be contained within one of the listed Kubernetes Namespace in the Backup.
* If this field is not provided, no namespace filtering will be performed
* (all resources in all Namespaces, including all cluster-scoped resources,
* will be candidates for substitution). To mix cluster-scoped and namespaced
* resources in the same rule, use an empty string ("") as one of the target
* namespaces.
*
* @var string[]
*/
public $targetNamespaces;
/**
* Optional. This is the new value to set for any fields that pass the
* filtering and selection criteria. To remove a value from a Kubernetes
* resource, either leave this field unspecified, or set it to the empty
* string ("").
*
* @param string $newValue
*/
public function setNewValue($newValue)
{
$this->newValue = $newValue;
}
/**
* @return string
*/
public function getNewValue()
{
return $this->newValue;
}
/**
* Optional. (Filtering parameter) This is a [regular expression]
* (https://en.wikipedia.org/wiki/Regular_expression) that is compared against
* the fields matched by the target_json_path expression (and must also have
* passed the previous filters). Substitution will not be performed against
* fields whose value does not match this expression. If this field is NOT
* specified, then ALL fields matched by the target_json_path expression will
* undergo substitution. Note that an empty (e.g., "", rather than
* unspecified) value for this field will only match empty fields.
*
* @param string $originalValuePattern
*/
public function setOriginalValuePattern($originalValuePattern)
{
$this->originalValuePattern = $originalValuePattern;
}
/**
* @return string
*/
public function getOriginalValuePattern()
{
return $this->originalValuePattern;
}
/**
* Optional. (Filtering parameter) Any resource subject to substitution must
* belong to one of the listed "types". If this field is not provided, no type
* filtering will be performed (all resources of all types matching previous
* filtering parameters will be candidates for substitution).
*
* @param GroupKind[] $targetGroupKinds
*/
public function setTargetGroupKinds($targetGroupKinds)
{
$this->targetGroupKinds = $targetGroupKinds;
}
/**
* @return GroupKind[]
*/
public function getTargetGroupKinds()
{
return $this->targetGroupKinds;
}
/**
* Required. This is a [JSONPath]
* (https://kubernetes.io/docs/reference/kubectl/jsonpath/) expression that
* matches specific fields of candidate resources and it operates as both a
* filtering parameter (resources that are not matched with this expression
* will not be candidates for substitution) as well as a field identifier
* (identifies exactly which fields out of the candidate resources will be
* modified).
*
* @param string $targetJsonPath
*/
public function setTargetJsonPath($targetJsonPath)
{
$this->targetJsonPath = $targetJsonPath;
}
/**
* @return string
*/
public function getTargetJsonPath()
{
return $this->targetJsonPath;
}
/**
* Optional. (Filtering parameter) Any resource subject to substitution must
* be contained within one of the listed Kubernetes Namespace in the Backup.
* If this field is not provided, no namespace filtering will be performed
* (all resources in all Namespaces, including all cluster-scoped resources,
* will be candidates for substitution). To mix cluster-scoped and namespaced
* resources in the same rule, use an empty string ("") as one of the target
* namespaces.
*
* @param string[] $targetNamespaces
*/
public function setTargetNamespaces($targetNamespaces)
{
$this->targetNamespaces = $targetNamespaces;
}
/**
* @return string[]
*/
public function getTargetNamespaces()
{
return $this->targetNamespaces;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SubstitutionRule::class, 'Google_Service_BackupforGKE_SubstitutionRule');

View File

@@ -0,0 +1,55 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\BackupforGKE;
class TestIamPermissionsRequest extends \Google\Collection
{
protected $collection_key = 'permissions';
/**
* The set of permissions to check for the `resource`. Permissions with
* wildcards (such as `*` or `storage.*`) are not allowed. For more
* information see [IAM
* Overview](https://cloud.google.com/iam/docs/overview#permissions).
*
* @var string[]
*/
public $permissions;
/**
* The set of permissions to check for the `resource`. Permissions with
* wildcards (such as `*` or `storage.*`) are not allowed. For more
* information see [IAM
* Overview](https://cloud.google.com/iam/docs/overview#permissions).
*
* @param string[] $permissions
*/
public function setPermissions($permissions)
{
$this->permissions = $permissions;
}
/**
* @return string[]
*/
public function getPermissions()
{
return $this->permissions;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(TestIamPermissionsRequest::class, 'Google_Service_BackupforGKE_TestIamPermissionsRequest');

View File

@@ -0,0 +1,51 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\BackupforGKE;
class TestIamPermissionsResponse extends \Google\Collection
{
protected $collection_key = 'permissions';
/**
* A subset of `TestPermissionsRequest.permissions` that the caller is
* allowed.
*
* @var string[]
*/
public $permissions;
/**
* A subset of `TestPermissionsRequest.permissions` that the caller is
* allowed.
*
* @param string[] $permissions
*/
public function setPermissions($permissions)
{
$this->permissions = $permissions;
}
/**
* @return string[]
*/
public function getPermissions()
{
return $this->permissions;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(TestIamPermissionsResponse::class, 'Google_Service_BackupforGKE_TestIamPermissionsResponse');

View File

@@ -0,0 +1,126 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\BackupforGKE;
class TimeOfDay extends \Google\Model
{
/**
* Hours of a day in 24 hour format. Must be greater than or equal to 0 and
* typically must be less than or equal to 23. An API may choose to allow the
* value "24:00:00" for scenarios like business closing time.
*
* @var int
*/
public $hours;
/**
* Minutes of an hour. Must be greater than or equal to 0 and less than or
* equal to 59.
*
* @var int
*/
public $minutes;
/**
* Fractions of seconds, in nanoseconds. Must be greater than or equal to 0
* and less than or equal to 999,999,999.
*
* @var int
*/
public $nanos;
/**
* Seconds of a minute. Must be greater than or equal to 0 and typically must
* be less than or equal to 59. An API may allow the value 60 if it allows
* leap-seconds.
*
* @var int
*/
public $seconds;
/**
* Hours of a day in 24 hour format. Must be greater than or equal to 0 and
* typically must be less than or equal to 23. An API may choose to allow the
* value "24:00:00" for scenarios like business closing time.
*
* @param int $hours
*/
public function setHours($hours)
{
$this->hours = $hours;
}
/**
* @return int
*/
public function getHours()
{
return $this->hours;
}
/**
* Minutes of an hour. Must be greater than or equal to 0 and less than or
* equal to 59.
*
* @param int $minutes
*/
public function setMinutes($minutes)
{
$this->minutes = $minutes;
}
/**
* @return int
*/
public function getMinutes()
{
return $this->minutes;
}
/**
* Fractions of seconds, in nanoseconds. Must be greater than or equal to 0
* and less than or equal to 999,999,999.
*
* @param int $nanos
*/
public function setNanos($nanos)
{
$this->nanos = $nanos;
}
/**
* @return int
*/
public function getNanos()
{
return $this->nanos;
}
/**
* Seconds of a minute. Must be greater than or equal to 0 and typically must
* be less than or equal to 59. An API may allow the value 60 if it allows
* leap-seconds.
*
* @param int $seconds
*/
public function setSeconds($seconds)
{
$this->seconds = $seconds;
}
/**
* @return int
*/
public function getSeconds()
{
return $this->seconds;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(TimeOfDay::class, 'Google_Service_BackupforGKE_TimeOfDay');

View File

@@ -0,0 +1,93 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\BackupforGKE;
class TransformationRule extends \Google\Collection
{
protected $collection_key = 'fieldActions';
/**
* Optional. The description is a user specified string description of the
* transformation rule.
*
* @var string
*/
public $description;
protected $fieldActionsType = TransformationRuleAction::class;
protected $fieldActionsDataType = 'array';
protected $resourceFilterType = ResourceFilter::class;
protected $resourceFilterDataType = '';
/**
* Optional. The description is a user specified string description of the
* transformation rule.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* Required. A list of transformation rule actions to take against candidate
* resources. Actions are executed in order defined - this order matters, as
* they could potentially interfere with each other and the first operation
* could affect the outcome of the second operation.
*
* @param TransformationRuleAction[] $fieldActions
*/
public function setFieldActions($fieldActions)
{
$this->fieldActions = $fieldActions;
}
/**
* @return TransformationRuleAction[]
*/
public function getFieldActions()
{
return $this->fieldActions;
}
/**
* Optional. This field is used to specify a set of fields that should be used
* to determine which resources in backup should be acted upon by the supplied
* transformation rule actions, and this will ensure that only specific
* resources are affected by transformation rule actions.
*
* @param ResourceFilter $resourceFilter
*/
public function setResourceFilter(ResourceFilter $resourceFilter)
{
$this->resourceFilter = $resourceFilter;
}
/**
* @return ResourceFilter
*/
public function getResourceFilter()
{
return $this->resourceFilter;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(TransformationRule::class, 'Google_Service_BackupforGKE_TransformationRule');

View File

@@ -0,0 +1,161 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\BackupforGKE;
class TransformationRuleAction extends \Google\Model
{
/**
* Unspecified operation
*/
public const OP_OP_UNSPECIFIED = 'OP_UNSPECIFIED';
/**
* The "remove" operation removes the value at the target location.
*/
public const OP_REMOVE = 'REMOVE';
/**
* The "move" operation removes the value at a specified location and adds it
* to the target location.
*/
public const OP_MOVE = 'MOVE';
/**
* The "copy" operation copies the value at a specified location to the target
* location.
*/
public const OP_COPY = 'COPY';
/**
* The "add" operation performs one of the following functions, depending upon
* what the target location references: 1. If the target location specifies an
* array index, a new value is inserted into the array at the specified index.
* 2. If the target location specifies an object member that does not already
* exist, a new member is added to the object. 3. If the target location
* specifies an object member that does exist, that member's value is
* replaced.
*/
public const OP_ADD = 'ADD';
/**
* The "test" operation tests that a value at the target location is equal to
* a specified value.
*/
public const OP_TEST = 'TEST';
/**
* The "replace" operation replaces the value at the target location with a
* new value. The operation object MUST contain a "value" member whose content
* specifies the replacement value.
*/
public const OP_REPLACE = 'REPLACE';
/**
* Optional. A string containing a JSON Pointer value that references the
* location in the target document to move the value from.
*
* @var string
*/
public $fromPath;
/**
* Required. op specifies the operation to perform.
*
* @var string
*/
public $op;
/**
* Optional. A string containing a JSON-Pointer value that references a
* location within the target document where the operation is performed.
*
* @var string
*/
public $path;
/**
* Optional. A string that specifies the desired value in string format to use
* for transformation.
*
* @var string
*/
public $value;
/**
* Optional. A string containing a JSON Pointer value that references the
* location in the target document to move the value from.
*
* @param string $fromPath
*/
public function setFromPath($fromPath)
{
$this->fromPath = $fromPath;
}
/**
* @return string
*/
public function getFromPath()
{
return $this->fromPath;
}
/**
* Required. op specifies the operation to perform.
*
* Accepted values: OP_UNSPECIFIED, REMOVE, MOVE, COPY, ADD, TEST, REPLACE
*
* @param self::OP_* $op
*/
public function setOp($op)
{
$this->op = $op;
}
/**
* @return self::OP_*
*/
public function getOp()
{
return $this->op;
}
/**
* Optional. A string containing a JSON-Pointer value that references a
* location within the target document where the operation is performed.
*
* @param string $path
*/
public function setPath($path)
{
$this->path = $path;
}
/**
* @return string
*/
public function getPath()
{
return $this->path;
}
/**
* Optional. A string that specifies the desired value in string format to use
* for transformation.
*
* @param string $value
*/
public function setValue($value)
{
$this->value = $value;
}
/**
* @return string
*/
public function getValue()
{
return $this->value;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(TransformationRuleAction::class, 'Google_Service_BackupforGKE_TransformationRuleAction');

View File

@@ -0,0 +1,74 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\BackupforGKE;
class TroubleshootingInfo extends \Google\Model
{
/**
* Output only. Unique code for each backup/restore operation failure message
* which helps user identify the failure.
*
* @var string
*/
public $stateReasonCode;
/**
* Output only. URL for the troubleshooting doc which will help the user fix
* the failing backup/restore operation.
*
* @var string
*/
public $stateReasonUri;
/**
* Output only. Unique code for each backup/restore operation failure message
* which helps user identify the failure.
*
* @param string $stateReasonCode
*/
public function setStateReasonCode($stateReasonCode)
{
$this->stateReasonCode = $stateReasonCode;
}
/**
* @return string
*/
public function getStateReasonCode()
{
return $this->stateReasonCode;
}
/**
* Output only. URL for the troubleshooting doc which will help the user fix
* the failing backup/restore operation.
*
* @param string $stateReasonUri
*/
public function setStateReasonUri($stateReasonUri)
{
$this->stateReasonUri = $stateReasonUri;
}
/**
* @return string
*/
public function getStateReasonUri()
{
return $this->stateReasonUri;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(TroubleshootingInfo::class, 'Google_Service_BackupforGKE_TroubleshootingInfo');

View File

@@ -0,0 +1,439 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\BackupforGKE;
class VolumeBackup extends \Google\Model
{
/**
* Default value, not specified.
*/
public const FORMAT_VOLUME_BACKUP_FORMAT_UNSPECIFIED = 'VOLUME_BACKUP_FORMAT_UNSPECIFIED';
/**
* Compute Engine Persistent Disk snapshot based volume backup.
*/
public const FORMAT_GCE_PERSISTENT_DISK = 'GCE_PERSISTENT_DISK';
/**
* This is an illegal state and should not be encountered.
*/
public const STATE_STATE_UNSPECIFIED = 'STATE_UNSPECIFIED';
/**
* A volume for the backup was identified and backup process is about to
* start.
*/
public const STATE_CREATING = 'CREATING';
/**
* The volume backup operation has begun and is in the initial "snapshot"
* phase of the process. Any defined ProtectedApplication "pre" hooks will be
* executed before entering this state and "post" hooks will be executed upon
* leaving this state.
*/
public const STATE_SNAPSHOTTING = 'SNAPSHOTTING';
/**
* The snapshot phase of the volume backup operation has completed and the
* snapshot is now being uploaded to backup storage.
*/
public const STATE_UPLOADING = 'UPLOADING';
/**
* The volume backup operation has completed successfully.
*/
public const STATE_SUCCEEDED = 'SUCCEEDED';
/**
* The volume backup operation has failed.
*/
public const STATE_FAILED = 'FAILED';
/**
* This VolumeBackup resource (and its associated artifacts) is in the process
* of being deleted.
*/
public const STATE_DELETING = 'DELETING';
/**
* The underlying artifacts of a volume backup (eg: persistent disk snapshots)
* are deleted.
*/
public const STATE_CLEANED_UP = 'CLEANED_UP';
/**
* Output only. The timestamp when the associated underlying volume backup
* operation completed.
*
* @var string
*/
public $completeTime;
/**
* Output only. The timestamp when this VolumeBackup resource was created.
*
* @var string
*/
public $createTime;
/**
* Output only. The minimum size of the disk to which this VolumeBackup can be
* restored.
*
* @var string
*/
public $diskSizeBytes;
/**
* Output only. `etag` is used for optimistic concurrency control as a way to
* help prevent simultaneous updates of a volume backup from overwriting each
* other. It is strongly suggested that systems make use of the `etag` in the
* read-modify-write cycle to perform volume backup updates in order to avoid
* race conditions.
*
* @var string
*/
public $etag;
/**
* Output only. The format used for the volume backup.
*
* @var string
*/
public $format;
/**
* Output only. The full name of the VolumeBackup resource. Format:
* `projects/locations/backupPlans/backups/volumeBackups`.
*
* @var string
*/
public $name;
/**
* Output only. [Output Only] Reserved for future use.
*
* @var bool
*/
public $satisfiesPzi;
/**
* Output only. [Output Only] Reserved for future use.
*
* @var bool
*/
public $satisfiesPzs;
protected $sourcePvcType = NamespacedName::class;
protected $sourcePvcDataType = '';
/**
* Output only. The current state of this VolumeBackup.
*
* @var string
*/
public $state;
/**
* Output only. A human readable message explaining why the VolumeBackup is in
* its current state. This field is only meant for human consumption and
* should not be used programmatically as this field is not guaranteed to be
* consistent.
*
* @var string
*/
public $stateMessage;
/**
* Output only. The aggregate size of the underlying artifacts associated with
* this VolumeBackup in the backup storage. This may change over time when
* multiple backups of the same volume share the same backup storage location.
* In particular, this is likely to increase in size when the immediately
* preceding backup of the same volume is deleted.
*
* @var string
*/
public $storageBytes;
/**
* Output only. Server generated global unique identifier of
* [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
*
* @var string
*/
public $uid;
/**
* Output only. The timestamp when this VolumeBackup resource was last
* updated.
*
* @var string
*/
public $updateTime;
/**
* Output only. A storage system-specific opaque handle to the underlying
* volume backup.
*
* @var string
*/
public $volumeBackupHandle;
/**
* Output only. The timestamp when the associated underlying volume backup
* operation completed.
*
* @param string $completeTime
*/
public function setCompleteTime($completeTime)
{
$this->completeTime = $completeTime;
}
/**
* @return string
*/
public function getCompleteTime()
{
return $this->completeTime;
}
/**
* Output only. The timestamp when this VolumeBackup resource was created.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* Output only. The minimum size of the disk to which this VolumeBackup can be
* restored.
*
* @param string $diskSizeBytes
*/
public function setDiskSizeBytes($diskSizeBytes)
{
$this->diskSizeBytes = $diskSizeBytes;
}
/**
* @return string
*/
public function getDiskSizeBytes()
{
return $this->diskSizeBytes;
}
/**
* Output only. `etag` is used for optimistic concurrency control as a way to
* help prevent simultaneous updates of a volume backup from overwriting each
* other. It is strongly suggested that systems make use of the `etag` in the
* read-modify-write cycle to perform volume backup updates in order to avoid
* race conditions.
*
* @param string $etag
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* Output only. The format used for the volume backup.
*
* Accepted values: VOLUME_BACKUP_FORMAT_UNSPECIFIED, GCE_PERSISTENT_DISK
*
* @param self::FORMAT_* $format
*/
public function setFormat($format)
{
$this->format = $format;
}
/**
* @return self::FORMAT_*
*/
public function getFormat()
{
return $this->format;
}
/**
* Output only. The full name of the VolumeBackup resource. Format:
* `projects/locations/backupPlans/backups/volumeBackups`.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Output only. [Output Only] Reserved for future use.
*
* @param bool $satisfiesPzi
*/
public function setSatisfiesPzi($satisfiesPzi)
{
$this->satisfiesPzi = $satisfiesPzi;
}
/**
* @return bool
*/
public function getSatisfiesPzi()
{
return $this->satisfiesPzi;
}
/**
* Output only. [Output Only] Reserved for future use.
*
* @param bool $satisfiesPzs
*/
public function setSatisfiesPzs($satisfiesPzs)
{
$this->satisfiesPzs = $satisfiesPzs;
}
/**
* @return bool
*/
public function getSatisfiesPzs()
{
return $this->satisfiesPzs;
}
/**
* Output only. A reference to the source Kubernetes PVC from which this
* VolumeBackup was created.
*
* @param NamespacedName $sourcePvc
*/
public function setSourcePvc(NamespacedName $sourcePvc)
{
$this->sourcePvc = $sourcePvc;
}
/**
* @return NamespacedName
*/
public function getSourcePvc()
{
return $this->sourcePvc;
}
/**
* Output only. The current state of this VolumeBackup.
*
* Accepted values: STATE_UNSPECIFIED, CREATING, SNAPSHOTTING, UPLOADING,
* SUCCEEDED, FAILED, DELETING, CLEANED_UP
*
* @param self::STATE_* $state
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return self::STATE_*
*/
public function getState()
{
return $this->state;
}
/**
* Output only. A human readable message explaining why the VolumeBackup is in
* its current state. This field is only meant for human consumption and
* should not be used programmatically as this field is not guaranteed to be
* consistent.
*
* @param string $stateMessage
*/
public function setStateMessage($stateMessage)
{
$this->stateMessage = $stateMessage;
}
/**
* @return string
*/
public function getStateMessage()
{
return $this->stateMessage;
}
/**
* Output only. The aggregate size of the underlying artifacts associated with
* this VolumeBackup in the backup storage. This may change over time when
* multiple backups of the same volume share the same backup storage location.
* In particular, this is likely to increase in size when the immediately
* preceding backup of the same volume is deleted.
*
* @param string $storageBytes
*/
public function setStorageBytes($storageBytes)
{
$this->storageBytes = $storageBytes;
}
/**
* @return string
*/
public function getStorageBytes()
{
return $this->storageBytes;
}
/**
* Output only. Server generated global unique identifier of
* [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
*
* @param string $uid
*/
public function setUid($uid)
{
$this->uid = $uid;
}
/**
* @return string
*/
public function getUid()
{
return $this->uid;
}
/**
* Output only. The timestamp when this VolumeBackup resource was last
* updated.
*
* @param string $updateTime
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
/**
* Output only. A storage system-specific opaque handle to the underlying
* volume backup.
*
* @param string $volumeBackupHandle
*/
public function setVolumeBackupHandle($volumeBackupHandle)
{
$this->volumeBackupHandle = $volumeBackupHandle;
}
/**
* @return string
*/
public function getVolumeBackupHandle()
{
return $this->volumeBackupHandle;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(VolumeBackup::class, 'Google_Service_BackupforGKE_VolumeBackup');

View File

@@ -0,0 +1,110 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\BackupforGKE;
class VolumeDataRestorePolicyBinding extends \Google\Model
{
/**
* Unspecified (illegal).
*/
public const POLICY_VOLUME_DATA_RESTORE_POLICY_UNSPECIFIED = 'VOLUME_DATA_RESTORE_POLICY_UNSPECIFIED';
/**
* For each PVC to be restored, create a new underlying volume and PV from the
* corresponding VolumeBackup contained within the Backup.
*/
public const POLICY_RESTORE_VOLUME_DATA_FROM_BACKUP = 'RESTORE_VOLUME_DATA_FROM_BACKUP';
/**
* For each PVC to be restored, attempt to reuse the original PV contained in
* the Backup (with its original underlying volume). This option is likely
* only usable when restoring a workload to its original cluster.
*/
public const POLICY_REUSE_VOLUME_HANDLE_FROM_BACKUP = 'REUSE_VOLUME_HANDLE_FROM_BACKUP';
/**
* For each PVC to be restored, create PVC without any particular action to
* restore data. In this case, the normal Kubernetes provisioning logic would
* kick in, and this would likely result in either dynamically provisioning
* blank PVs or binding to statically provisioned PVs.
*/
public const POLICY_NO_VOLUME_DATA_RESTORATION = 'NO_VOLUME_DATA_RESTORATION';
/**
* Default
*/
public const VOLUME_TYPE_VOLUME_TYPE_UNSPECIFIED = 'VOLUME_TYPE_UNSPECIFIED';
/**
* Compute Engine Persistent Disk volume
*/
public const VOLUME_TYPE_GCE_PERSISTENT_DISK = 'GCE_PERSISTENT_DISK';
/**
* Required. The VolumeDataRestorePolicy to apply when restoring volumes in
* scope.
*
* @var string
*/
public $policy;
/**
* The volume type, as determined by the PVC's bound PV, to apply the policy
* to.
*
* @var string
*/
public $volumeType;
/**
* Required. The VolumeDataRestorePolicy to apply when restoring volumes in
* scope.
*
* Accepted values: VOLUME_DATA_RESTORE_POLICY_UNSPECIFIED,
* RESTORE_VOLUME_DATA_FROM_BACKUP, REUSE_VOLUME_HANDLE_FROM_BACKUP,
* NO_VOLUME_DATA_RESTORATION
*
* @param self::POLICY_* $policy
*/
public function setPolicy($policy)
{
$this->policy = $policy;
}
/**
* @return self::POLICY_*
*/
public function getPolicy()
{
return $this->policy;
}
/**
* The volume type, as determined by the PVC's bound PV, to apply the policy
* to.
*
* Accepted values: VOLUME_TYPE_UNSPECIFIED, GCE_PERSISTENT_DISK
*
* @param self::VOLUME_TYPE_* $volumeType
*/
public function setVolumeType($volumeType)
{
$this->volumeType = $volumeType;
}
/**
* @return self::VOLUME_TYPE_*
*/
public function getVolumeType()
{
return $this->volumeType;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(VolumeDataRestorePolicyBinding::class, 'Google_Service_BackupforGKE_VolumeDataRestorePolicyBinding');

View File

@@ -0,0 +1,94 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\BackupforGKE;
class VolumeDataRestorePolicyOverride extends \Google\Model
{
/**
* Unspecified (illegal).
*/
public const POLICY_VOLUME_DATA_RESTORE_POLICY_UNSPECIFIED = 'VOLUME_DATA_RESTORE_POLICY_UNSPECIFIED';
/**
* For each PVC to be restored, create a new underlying volume and PV from the
* corresponding VolumeBackup contained within the Backup.
*/
public const POLICY_RESTORE_VOLUME_DATA_FROM_BACKUP = 'RESTORE_VOLUME_DATA_FROM_BACKUP';
/**
* For each PVC to be restored, attempt to reuse the original PV contained in
* the Backup (with its original underlying volume). This option is likely
* only usable when restoring a workload to its original cluster.
*/
public const POLICY_REUSE_VOLUME_HANDLE_FROM_BACKUP = 'REUSE_VOLUME_HANDLE_FROM_BACKUP';
/**
* For each PVC to be restored, create PVC without any particular action to
* restore data. In this case, the normal Kubernetes provisioning logic would
* kick in, and this would likely result in either dynamically provisioning
* blank PVs or binding to statically provisioned PVs.
*/
public const POLICY_NO_VOLUME_DATA_RESTORATION = 'NO_VOLUME_DATA_RESTORATION';
/**
* Required. The VolumeDataRestorePolicy to apply when restoring volumes in
* scope.
*
* @var string
*/
public $policy;
protected $selectedPvcsType = NamespacedNames::class;
protected $selectedPvcsDataType = '';
/**
* Required. The VolumeDataRestorePolicy to apply when restoring volumes in
* scope.
*
* Accepted values: VOLUME_DATA_RESTORE_POLICY_UNSPECIFIED,
* RESTORE_VOLUME_DATA_FROM_BACKUP, REUSE_VOLUME_HANDLE_FROM_BACKUP,
* NO_VOLUME_DATA_RESTORATION
*
* @param self::POLICY_* $policy
*/
public function setPolicy($policy)
{
$this->policy = $policy;
}
/**
* @return self::POLICY_*
*/
public function getPolicy()
{
return $this->policy;
}
/**
* A list of PVCs to apply the policy override to.
*
* @param NamespacedNames $selectedPvcs
*/
public function setSelectedPvcs(NamespacedNames $selectedPvcs)
{
$this->selectedPvcs = $selectedPvcs;
}
/**
* @return NamespacedNames
*/
public function getSelectedPvcs()
{
return $this->selectedPvcs;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(VolumeDataRestorePolicyOverride::class, 'Google_Service_BackupforGKE_VolumeDataRestorePolicyOverride');

View File

@@ -0,0 +1,348 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\BackupforGKE;
class VolumeRestore extends \Google\Model
{
/**
* This is an illegal state and should not be encountered.
*/
public const STATE_STATE_UNSPECIFIED = 'STATE_UNSPECIFIED';
/**
* A volume for the restore was identified and restore process is about to
* start.
*/
public const STATE_CREATING = 'CREATING';
/**
* The volume is currently being restored.
*/
public const STATE_RESTORING = 'RESTORING';
/**
* The volume has been successfully restored.
*/
public const STATE_SUCCEEDED = 'SUCCEEDED';
/**
* The volume restoration process failed.
*/
public const STATE_FAILED = 'FAILED';
/**
* This VolumeRestore resource is in the process of being deleted.
*/
public const STATE_DELETING = 'DELETING';
/**
* Default
*/
public const VOLUME_TYPE_VOLUME_TYPE_UNSPECIFIED = 'VOLUME_TYPE_UNSPECIFIED';
/**
* Compute Engine Persistent Disk volume
*/
public const VOLUME_TYPE_GCE_PERSISTENT_DISK = 'GCE_PERSISTENT_DISK';
/**
* Output only. The timestamp when the associated underlying volume
* restoration completed.
*
* @var string
*/
public $completeTime;
/**
* Output only. The timestamp when this VolumeRestore resource was created.
*
* @var string
*/
public $createTime;
/**
* Output only. `etag` is used for optimistic concurrency control as a way to
* help prevent simultaneous updates of a volume restore from overwriting each
* other. It is strongly suggested that systems make use of the `etag` in the
* read-modify-write cycle to perform volume restore updates in order to avoid
* race conditions.
*
* @var string
*/
public $etag;
/**
* Output only. Full name of the VolumeRestore resource. Format:
* `projects/locations/restorePlans/restores/volumeRestores`
*
* @var string
*/
public $name;
/**
* Output only. The current state of this VolumeRestore.
*
* @var string
*/
public $state;
/**
* Output only. A human readable message explaining why the VolumeRestore is
* in its current state.
*
* @var string
*/
public $stateMessage;
protected $targetPvcType = NamespacedName::class;
protected $targetPvcDataType = '';
/**
* Output only. Server generated global unique identifier of
* [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
*
* @var string
*/
public $uid;
/**
* Output only. The timestamp when this VolumeRestore resource was last
* updated.
*
* @var string
*/
public $updateTime;
/**
* Output only. The full name of the VolumeBackup from which the volume will
* be restored. Format:
* `projects/locations/backupPlans/backups/volumeBackups`.
*
* @var string
*/
public $volumeBackup;
/**
* Output only. A storage system-specific opaque handler to the underlying
* volume created for the target PVC from the volume backup.
*
* @var string
*/
public $volumeHandle;
/**
* Output only. The type of volume provisioned
*
* @var string
*/
public $volumeType;
/**
* Output only. The timestamp when the associated underlying volume
* restoration completed.
*
* @param string $completeTime
*/
public function setCompleteTime($completeTime)
{
$this->completeTime = $completeTime;
}
/**
* @return string
*/
public function getCompleteTime()
{
return $this->completeTime;
}
/**
* Output only. The timestamp when this VolumeRestore resource was created.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* Output only. `etag` is used for optimistic concurrency control as a way to
* help prevent simultaneous updates of a volume restore from overwriting each
* other. It is strongly suggested that systems make use of the `etag` in the
* read-modify-write cycle to perform volume restore updates in order to avoid
* race conditions.
*
* @param string $etag
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* Output only. Full name of the VolumeRestore resource. Format:
* `projects/locations/restorePlans/restores/volumeRestores`
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Output only. The current state of this VolumeRestore.
*
* Accepted values: STATE_UNSPECIFIED, CREATING, RESTORING, SUCCEEDED, FAILED,
* DELETING
*
* @param self::STATE_* $state
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return self::STATE_*
*/
public function getState()
{
return $this->state;
}
/**
* Output only. A human readable message explaining why the VolumeRestore is
* in its current state.
*
* @param string $stateMessage
*/
public function setStateMessage($stateMessage)
{
$this->stateMessage = $stateMessage;
}
/**
* @return string
*/
public function getStateMessage()
{
return $this->stateMessage;
}
/**
* Output only. The reference to the target Kubernetes PVC to be restored.
*
* @param NamespacedName $targetPvc
*/
public function setTargetPvc(NamespacedName $targetPvc)
{
$this->targetPvc = $targetPvc;
}
/**
* @return NamespacedName
*/
public function getTargetPvc()
{
return $this->targetPvc;
}
/**
* Output only. Server generated global unique identifier of
* [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
*
* @param string $uid
*/
public function setUid($uid)
{
$this->uid = $uid;
}
/**
* @return string
*/
public function getUid()
{
return $this->uid;
}
/**
* Output only. The timestamp when this VolumeRestore resource was last
* updated.
*
* @param string $updateTime
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
/**
* Output only. The full name of the VolumeBackup from which the volume will
* be restored. Format:
* `projects/locations/backupPlans/backups/volumeBackups`.
*
* @param string $volumeBackup
*/
public function setVolumeBackup($volumeBackup)
{
$this->volumeBackup = $volumeBackup;
}
/**
* @return string
*/
public function getVolumeBackup()
{
return $this->volumeBackup;
}
/**
* Output only. A storage system-specific opaque handler to the underlying
* volume created for the target PVC from the volume backup.
*
* @param string $volumeHandle
*/
public function setVolumeHandle($volumeHandle)
{
$this->volumeHandle = $volumeHandle;
}
/**
* @return string
*/
public function getVolumeHandle()
{
return $this->volumeHandle;
}
/**
* Output only. The type of volume provisioned
*
* Accepted values: VOLUME_TYPE_UNSPECIFIED, GCE_PERSISTENT_DISK
*
* @param self::VOLUME_TYPE_* $volumeType
*/
public function setVolumeType($volumeType)
{
$this->volumeType = $volumeType;
}
/**
* @return self::VOLUME_TYPE_*
*/
public function getVolumeType()
{
return $this->volumeType;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(VolumeRestore::class, 'Google_Service_BackupforGKE_VolumeRestore');