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,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\Backupdr;
class AbandonBackupRequest extends \Google\Model
{
/**
* Optional. An optional request ID to identify requests. Specify a unique
* request ID so that if you must retry your request, the server will know to
* ignore the request if it has already been completed. The server will
* guarantee that for at least 60 minutes since the first request. For
* example, consider a situation where you make an initial request and the
* request times out. If you make the request again with the same request ID,
* the server can check if original operation with the same request ID was
* received, and if so, will ignore the second request. This prevents clients
* from accidentally creating duplicate commitments. The request ID must be a
* valid UUID with the exception that zero UUID is not supported
* (00000000-0000-0000-0000-000000000000).
*
* @var string
*/
public $requestId;
/**
* Optional. An optional request ID to identify requests. Specify a unique
* request ID so that if you must retry your request, the server will know to
* ignore the request if it has already been completed. The server will
* guarantee that for at least 60 minutes since the first request. For
* example, consider a situation where you make an initial request and the
* request times out. If you make the request again with the same request ID,
* the server can check if original operation with the same request ID was
* received, and if so, will ignore the second request. This prevents clients
* from accidentally creating duplicate commitments. The request ID must be a
* valid UUID with the exception that zero UUID is not supported
* (00000000-0000-0000-0000-000000000000).
*
* @param string $requestId
*/
public function setRequestId($requestId)
{
$this->requestId = $requestId;
}
/**
* @return string
*/
public function getRequestId()
{
return $this->requestId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AbandonBackupRequest::class, 'Google_Service_Backupdr_AbandonBackupRequest');

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\Backupdr;
class AcceleratorConfig extends \Google\Model
{
/**
* Optional. The number of the guest accelerator cards exposed to this
* instance.
*
* @var int
*/
public $acceleratorCount;
/**
* Optional. Full or partial URL of the accelerator type resource to attach to
* this instance.
*
* @var string
*/
public $acceleratorType;
/**
* Optional. The number of the guest accelerator cards exposed to this
* instance.
*
* @param int $acceleratorCount
*/
public function setAcceleratorCount($acceleratorCount)
{
$this->acceleratorCount = $acceleratorCount;
}
/**
* @return int
*/
public function getAcceleratorCount()
{
return $this->acceleratorCount;
}
/**
* Optional. Full or partial URL of the accelerator type resource to attach to
* this instance.
*
* @param string $acceleratorType
*/
public function setAcceleratorType($acceleratorType)
{
$this->acceleratorType = $acceleratorType;
}
/**
* @return string
*/
public function getAcceleratorType()
{
return $this->acceleratorType;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AcceleratorConfig::class, 'Google_Service_Backupdr_AcceleratorConfig');

View File

@@ -0,0 +1,240 @@
<?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\Backupdr;
class AccessConfig extends \Google\Model
{
/**
* Default value. This value is unused.
*/
public const NETWORK_TIER_NETWORK_TIER_UNSPECIFIED = 'NETWORK_TIER_UNSPECIFIED';
/**
* High quality, Google-grade network tier, support for all networking
* products.
*/
public const NETWORK_TIER_PREMIUM = 'PREMIUM';
/**
* Public internet quality, only limited support for other networking
* products.
*/
public const NETWORK_TIER_STANDARD = 'STANDARD';
/**
* Default value. This value is unused.
*/
public const TYPE_ACCESS_TYPE_UNSPECIFIED = 'ACCESS_TYPE_UNSPECIFIED';
/**
* ONE_TO_ONE_NAT
*/
public const TYPE_ONE_TO_ONE_NAT = 'ONE_TO_ONE_NAT';
/**
* Direct IPv6 access.
*/
public const TYPE_DIRECT_IPV6 = 'DIRECT_IPV6';
/**
* Optional. The external IPv6 address of this access configuration.
*
* @var string
*/
public $externalIpv6;
/**
* Optional. The prefix length of the external IPv6 range.
*
* @var int
*/
public $externalIpv6PrefixLength;
/**
* Optional. The name of this access configuration.
*
* @var string
*/
public $name;
/**
* Optional. The external IP address of this access configuration.
*
* @var string
*/
public $natIP;
/**
* Optional. This signifies the networking tier used for configuring this
* access
*
* @var string
*/
public $networkTier;
/**
* Optional. The DNS domain name for the public PTR record.
*
* @var string
*/
public $publicPtrDomainName;
/**
* Optional. Specifies whether a public DNS 'PTR' record should be created to
* map the external IP address of the instance to a DNS domain name.
*
* @var bool
*/
public $setPublicPtr;
/**
* Optional. In accessConfigs (IPv4), the default and only option is
* ONE_TO_ONE_NAT. In ipv6AccessConfigs, the default and only option is
* DIRECT_IPV6.
*
* @var string
*/
public $type;
/**
* Optional. The external IPv6 address of this access configuration.
*
* @param string $externalIpv6
*/
public function setExternalIpv6($externalIpv6)
{
$this->externalIpv6 = $externalIpv6;
}
/**
* @return string
*/
public function getExternalIpv6()
{
return $this->externalIpv6;
}
/**
* Optional. The prefix length of the external IPv6 range.
*
* @param int $externalIpv6PrefixLength
*/
public function setExternalIpv6PrefixLength($externalIpv6PrefixLength)
{
$this->externalIpv6PrefixLength = $externalIpv6PrefixLength;
}
/**
* @return int
*/
public function getExternalIpv6PrefixLength()
{
return $this->externalIpv6PrefixLength;
}
/**
* Optional. The name of this access configuration.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Optional. The external IP address of this access configuration.
*
* @param string $natIP
*/
public function setNatIP($natIP)
{
$this->natIP = $natIP;
}
/**
* @return string
*/
public function getNatIP()
{
return $this->natIP;
}
/**
* Optional. This signifies the networking tier used for configuring this
* access
*
* Accepted values: NETWORK_TIER_UNSPECIFIED, PREMIUM, STANDARD
*
* @param self::NETWORK_TIER_* $networkTier
*/
public function setNetworkTier($networkTier)
{
$this->networkTier = $networkTier;
}
/**
* @return self::NETWORK_TIER_*
*/
public function getNetworkTier()
{
return $this->networkTier;
}
/**
* Optional. The DNS domain name for the public PTR record.
*
* @param string $publicPtrDomainName
*/
public function setPublicPtrDomainName($publicPtrDomainName)
{
$this->publicPtrDomainName = $publicPtrDomainName;
}
/**
* @return string
*/
public function getPublicPtrDomainName()
{
return $this->publicPtrDomainName;
}
/**
* Optional. Specifies whether a public DNS 'PTR' record should be created to
* map the external IP address of the instance to a DNS domain name.
*
* @param bool $setPublicPtr
*/
public function setSetPublicPtr($setPublicPtr)
{
$this->setPublicPtr = $setPublicPtr;
}
/**
* @return bool
*/
public function getSetPublicPtr()
{
return $this->setPublicPtr;
}
/**
* Optional. In accessConfigs (IPv4), the default and only option is
* ONE_TO_ONE_NAT. In ipv6AccessConfigs, the default and only option is
* DIRECT_IPV6.
*
* Accepted values: ACCESS_TYPE_UNSPECIFIED, ONE_TO_ONE_NAT, DIRECT_IPV6
*
* @param self::TYPE_* $type
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return self::TYPE_*
*/
public function getType()
{
return $this->type;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AccessConfig::class, 'Google_Service_Backupdr_AccessConfig');

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\Backupdr;
class AdvancedMachineFeatures extends \Google\Model
{
/**
* Optional. Whether to enable nested virtualization or not (default is
* false).
*
* @var bool
*/
public $enableNestedVirtualization;
/**
* Optional. Whether to enable UEFI networking for instance creation.
*
* @var bool
*/
public $enableUefiNetworking;
/**
* Optional. The number of threads per physical core. To disable simultaneous
* multithreading (SMT) set this to 1. If unset, the maximum number of threads
* supported per core by the underlying processor is assumed.
*
* @var int
*/
public $threadsPerCore;
/**
* Optional. The number of physical cores to expose to an instance. Multiply
* by the number of threads per core to compute the total number of virtual
* CPUs to expose to the instance. If unset, the number of cores is inferred
* from the instance's nominal CPU count and the underlying platform's SMT
* width.
*
* @var int
*/
public $visibleCoreCount;
/**
* Optional. Whether to enable nested virtualization or not (default is
* false).
*
* @param bool $enableNestedVirtualization
*/
public function setEnableNestedVirtualization($enableNestedVirtualization)
{
$this->enableNestedVirtualization = $enableNestedVirtualization;
}
/**
* @return bool
*/
public function getEnableNestedVirtualization()
{
return $this->enableNestedVirtualization;
}
/**
* Optional. Whether to enable UEFI networking for instance creation.
*
* @param bool $enableUefiNetworking
*/
public function setEnableUefiNetworking($enableUefiNetworking)
{
$this->enableUefiNetworking = $enableUefiNetworking;
}
/**
* @return bool
*/
public function getEnableUefiNetworking()
{
return $this->enableUefiNetworking;
}
/**
* Optional. The number of threads per physical core. To disable simultaneous
* multithreading (SMT) set this to 1. If unset, the maximum number of threads
* supported per core by the underlying processor is assumed.
*
* @param int $threadsPerCore
*/
public function setThreadsPerCore($threadsPerCore)
{
$this->threadsPerCore = $threadsPerCore;
}
/**
* @return int
*/
public function getThreadsPerCore()
{
return $this->threadsPerCore;
}
/**
* Optional. The number of physical cores to expose to an instance. Multiply
* by the number of threads per core to compute the total number of virtual
* CPUs to expose to the instance. If unset, the number of cores is inferred
* from the instance's nominal CPU count and the underlying platform's SMT
* width.
*
* @param int $visibleCoreCount
*/
public function setVisibleCoreCount($visibleCoreCount)
{
$this->visibleCoreCount = $visibleCoreCount;
}
/**
* @return int
*/
public function getVisibleCoreCount()
{
return $this->visibleCoreCount;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AdvancedMachineFeatures::class, 'Google_Service_Backupdr_AdvancedMachineFeatures');

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\Backupdr;
class AliasIpRange extends \Google\Model
{
/**
* Optional. The IP alias ranges to allocate for this interface.
*
* @var string
*/
public $ipCidrRange;
/**
* Optional. The name of a subnetwork secondary IP range from which to
* allocate an IP alias range. If not specified, the primary range of the
* subnetwork is used.
*
* @var string
*/
public $subnetworkRangeName;
/**
* Optional. The IP alias ranges to allocate for this interface.
*
* @param string $ipCidrRange
*/
public function setIpCidrRange($ipCidrRange)
{
$this->ipCidrRange = $ipCidrRange;
}
/**
* @return string
*/
public function getIpCidrRange()
{
return $this->ipCidrRange;
}
/**
* Optional. The name of a subnetwork secondary IP range from which to
* allocate an IP alias range. If not specified, the primary range of the
* subnetwork is used.
*
* @param string $subnetworkRangeName
*/
public function setSubnetworkRangeName($subnetworkRangeName)
{
$this->subnetworkRangeName = $subnetworkRangeName;
}
/**
* @return string
*/
public function getSubnetworkRangeName()
{
return $this->subnetworkRangeName;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AliasIpRange::class, 'Google_Service_Backupdr_AliasIpRange');

View File

@@ -0,0 +1,115 @@
<?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\Backupdr;
class AllocationAffinity extends \Google\Collection
{
/**
* Default value. This value is unused.
*/
public const CONSUME_RESERVATION_TYPE_TYPE_UNSPECIFIED = 'TYPE_UNSPECIFIED';
/**
* Do not consume from any allocated capacity.
*/
public const CONSUME_RESERVATION_TYPE_NO_RESERVATION = 'NO_RESERVATION';
/**
* Consume any allocation available.
*/
public const CONSUME_RESERVATION_TYPE_ANY_RESERVATION = 'ANY_RESERVATION';
/**
* Must consume from a specific reservation. Must specify key value fields for
* specifying the reservations.
*/
public const CONSUME_RESERVATION_TYPE_SPECIFIC_RESERVATION = 'SPECIFIC_RESERVATION';
protected $collection_key = 'values';
/**
* Optional. Specifies the type of reservation from which this instance can
* consume
*
* @var string
*/
public $consumeReservationType;
/**
* Optional. Corresponds to the label key of a reservation resource.
*
* @var string
*/
public $key;
/**
* Optional. Corresponds to the label values of a reservation resource.
*
* @var string[]
*/
public $values;
/**
* Optional. Specifies the type of reservation from which this instance can
* consume
*
* Accepted values: TYPE_UNSPECIFIED, NO_RESERVATION, ANY_RESERVATION,
* SPECIFIC_RESERVATION
*
* @param self::CONSUME_RESERVATION_TYPE_* $consumeReservationType
*/
public function setConsumeReservationType($consumeReservationType)
{
$this->consumeReservationType = $consumeReservationType;
}
/**
* @return self::CONSUME_RESERVATION_TYPE_*
*/
public function getConsumeReservationType()
{
return $this->consumeReservationType;
}
/**
* Optional. Corresponds to the label key of a reservation resource.
*
* @param string $key
*/
public function setKey($key)
{
$this->key = $key;
}
/**
* @return string
*/
public function getKey()
{
return $this->key;
}
/**
* Optional. Corresponds to the label values of a reservation resource.
*
* @param string[] $values
*/
public function setValues($values)
{
$this->values = $values;
}
/**
* @return string[]
*/
public function getValues()
{
return $this->values;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AllocationAffinity::class, 'Google_Service_Backupdr_AllocationAffinity');

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\Backupdr;
class AlloyDBClusterDataSourceProperties extends \Google\Model
{
/**
* Output only. Name of the AlloyDB cluster backed up by the datasource.
*
* @var string
*/
public $name;
/**
* Output only. Name of the AlloyDB cluster backed up by the datasource.
*
* @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(AlloyDBClusterDataSourceProperties::class, 'Google_Service_Backupdr_AlloyDBClusterDataSourceProperties');

View File

@@ -0,0 +1,120 @@
<?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\Backupdr;
class AlloyDbClusterBackupProperties extends \Google\Model
{
/**
* Output only. The chain id of this backup. Backups belonging to the same
* chain are sharing the same chain id. This property is calculated and
* maintained by BackupDR.
*
* @var string
*/
public $chainId;
/**
* Output only. The PostgreSQL major version of the AlloyDB cluster when the
* backup was taken.
*
* @var string
*/
public $databaseVersion;
/**
* An optional text description for the backup.
*
* @var string
*/
public $description;
/**
* Output only. Storage usage of this particular backup
*
* @var string
*/
public $storedBytes;
/**
* Output only. The chain id of this backup. Backups belonging to the same
* chain are sharing the same chain id. This property is calculated and
* maintained by BackupDR.
*
* @param string $chainId
*/
public function setChainId($chainId)
{
$this->chainId = $chainId;
}
/**
* @return string
*/
public function getChainId()
{
return $this->chainId;
}
/**
* Output only. The PostgreSQL major version of the AlloyDB cluster when the
* backup was taken.
*
* @param string $databaseVersion
*/
public function setDatabaseVersion($databaseVersion)
{
$this->databaseVersion = $databaseVersion;
}
/**
* @return string
*/
public function getDatabaseVersion()
{
return $this->databaseVersion;
}
/**
* An optional text description for the backup.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* Output only. Storage usage of this particular backup
*
* @param string $storedBytes
*/
public function setStoredBytes($storedBytes)
{
$this->storedBytes = $storedBytes;
}
/**
* @return string
*/
public function getStoredBytes()
{
return $this->storedBytes;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AlloyDbClusterBackupProperties::class, 'Google_Service_Backupdr_AlloyDbClusterBackupProperties');

View File

@@ -0,0 +1,109 @@
<?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\Backupdr;
class AssetLocation extends \Google\Collection
{
protected $collection_key = 'parentAsset';
/**
* @var string
*/
public $ccfeRmsPath;
protected $expectedType = IsolationExpectations::class;
protected $expectedDataType = '';
protected $extraParametersType = ExtraParameter::class;
protected $extraParametersDataType = 'array';
protected $locationDataType = LocationData::class;
protected $locationDataDataType = 'array';
protected $parentAssetType = CloudAsset::class;
protected $parentAssetDataType = 'array';
/**
* @param string
*/
public function setCcfeRmsPath($ccfeRmsPath)
{
$this->ccfeRmsPath = $ccfeRmsPath;
}
/**
* @return string
*/
public function getCcfeRmsPath()
{
return $this->ccfeRmsPath;
}
/**
* @param IsolationExpectations
*/
public function setExpected(IsolationExpectations $expected)
{
$this->expected = $expected;
}
/**
* @return IsolationExpectations
*/
public function getExpected()
{
return $this->expected;
}
/**
* @param ExtraParameter[]
*/
public function setExtraParameters($extraParameters)
{
$this->extraParameters = $extraParameters;
}
/**
* @return ExtraParameter[]
*/
public function getExtraParameters()
{
return $this->extraParameters;
}
/**
* @param LocationData[]
*/
public function setLocationData($locationData)
{
$this->locationData = $locationData;
}
/**
* @return LocationData[]
*/
public function getLocationData()
{
return $this->locationData;
}
/**
* @param CloudAsset[]
*/
public function setParentAsset($parentAsset)
{
$this->parentAsset = $parentAsset;
}
/**
* @return CloudAsset[]
*/
public function getParentAsset()
{
return $this->parentAsset;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AssetLocation::class, 'Google_Service_Backupdr_AssetLocation');

View File

@@ -0,0 +1,490 @@
<?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\Backupdr;
class AttachedDisk extends \Google\Collection
{
/**
* Default value, which is unused.
*/
public const DISK_INTERFACE_DISK_INTERFACE_UNSPECIFIED = 'DISK_INTERFACE_UNSPECIFIED';
/**
* SCSI Disk Interface.
*/
public const DISK_INTERFACE_SCSI = 'SCSI';
/**
* NVME Disk Interface.
*/
public const DISK_INTERFACE_NVME = 'NVME';
/**
* NVDIMM Disk Interface.
*/
public const DISK_INTERFACE_NVDIMM = 'NVDIMM';
/**
* ISCSI Disk Interface.
*/
public const DISK_INTERFACE_ISCSI = 'ISCSI';
/**
* Default value, which is unused.
*/
public const DISK_TYPE_DEPRECATED_DISK_TYPE_UNSPECIFIED = 'DISK_TYPE_UNSPECIFIED';
/**
* A scratch disk type.
*/
public const DISK_TYPE_DEPRECATED_SCRATCH = 'SCRATCH';
/**
* A persistent disk type.
*/
public const DISK_TYPE_DEPRECATED_PERSISTENT = 'PERSISTENT';
/**
* Default value, which is unused.
*/
public const MODE_DISK_MODE_UNSPECIFIED = 'DISK_MODE_UNSPECIFIED';
/**
* Attaches this disk in read-write mode. Only one virtual machine at a time
* can be attached to a disk in read-write mode.
*/
public const MODE_READ_WRITE = 'READ_WRITE';
/**
* Attaches this disk in read-only mode. Multiple virtual machines can use a
* disk in read-only mode at a time.
*/
public const MODE_READ_ONLY = 'READ_ONLY';
/**
* The disk is locked for administrative reasons. Nobody else can use the
* disk. This mode is used (for example) when taking a snapshot of a disk to
* prevent mounting the disk while it is being snapshotted.
*/
public const MODE_LOCKED = 'LOCKED';
/**
* Default Disk state has not been preserved.
*/
public const SAVED_STATE_DISK_SAVED_STATE_UNSPECIFIED = 'DISK_SAVED_STATE_UNSPECIFIED';
/**
* Disk state has been preserved.
*/
public const SAVED_STATE_PRESERVED = 'PRESERVED';
/**
* Default value, which is unused.
*/
public const TYPE_DISK_TYPE_UNSPECIFIED = 'DISK_TYPE_UNSPECIFIED';
/**
* A scratch disk type.
*/
public const TYPE_SCRATCH = 'SCRATCH';
/**
* A persistent disk type.
*/
public const TYPE_PERSISTENT = 'PERSISTENT';
protected $collection_key = 'license';
/**
* Optional. Specifies whether the disk will be auto-deleted when the instance
* is deleted (but not when the disk is detached from the instance).
*
* @var bool
*/
public $autoDelete;
/**
* Optional. Indicates that this is a boot disk. The virtual machine will use
* the first partition of the disk for its root filesystem.
*
* @var bool
*/
public $boot;
/**
* Optional. This is used as an identifier for the disks. This is the unique
* name has to provided to modify disk parameters like disk_name and
* replica_zones (in case of RePDs)
*
* @var string
*/
public $deviceName;
protected $diskEncryptionKeyType = CustomerEncryptionKey::class;
protected $diskEncryptionKeyDataType = '';
/**
* Optional. Specifies the disk interface to use for attaching this disk.
*
* @var string
*/
public $diskInterface;
/**
* Optional. The size of the disk in GB.
*
* @var string
*/
public $diskSizeGb;
/**
* Optional. Output only. The URI of the disk type resource. For example:
* projects/project/zones/zone/diskTypes/pd-standard or pd-ssd
*
* @var string
*/
public $diskType;
/**
* Specifies the type of the disk.
*
* @deprecated
* @var string
*/
public $diskTypeDeprecated;
protected $guestOsFeatureType = GuestOsFeature::class;
protected $guestOsFeatureDataType = 'array';
/**
* Optional. A zero-based index to this disk, where 0 is reserved for the boot
* disk.
*
* @var string
*/
public $index;
protected $initializeParamsType = InitializeParams::class;
protected $initializeParamsDataType = '';
/**
* Optional. Type of the resource.
*
* @var string
*/
public $kind;
/**
* Optional. Any valid publicly visible licenses.
*
* @var string[]
*/
public $license;
/**
* Optional. The mode in which to attach this disk.
*
* @var string
*/
public $mode;
/**
* Optional. Output only. The state of the disk.
*
* @var string
*/
public $savedState;
/**
* Optional. Specifies a valid partial or full URL to an existing Persistent
* Disk resource.
*
* @var string
*/
public $source;
/**
* Optional. Specifies the type of the disk.
*
* @var string
*/
public $type;
/**
* Optional. Specifies whether the disk will be auto-deleted when the instance
* is deleted (but not when the disk is detached from the instance).
*
* @param bool $autoDelete
*/
public function setAutoDelete($autoDelete)
{
$this->autoDelete = $autoDelete;
}
/**
* @return bool
*/
public function getAutoDelete()
{
return $this->autoDelete;
}
/**
* Optional. Indicates that this is a boot disk. The virtual machine will use
* the first partition of the disk for its root filesystem.
*
* @param bool $boot
*/
public function setBoot($boot)
{
$this->boot = $boot;
}
/**
* @return bool
*/
public function getBoot()
{
return $this->boot;
}
/**
* Optional. This is used as an identifier for the disks. This is the unique
* name has to provided to modify disk parameters like disk_name and
* replica_zones (in case of RePDs)
*
* @param string $deviceName
*/
public function setDeviceName($deviceName)
{
$this->deviceName = $deviceName;
}
/**
* @return string
*/
public function getDeviceName()
{
return $this->deviceName;
}
/**
* Optional. Encrypts or decrypts a disk using a customer-supplied encryption
* key.
*
* @param CustomerEncryptionKey $diskEncryptionKey
*/
public function setDiskEncryptionKey(CustomerEncryptionKey $diskEncryptionKey)
{
$this->diskEncryptionKey = $diskEncryptionKey;
}
/**
* @return CustomerEncryptionKey
*/
public function getDiskEncryptionKey()
{
return $this->diskEncryptionKey;
}
/**
* Optional. Specifies the disk interface to use for attaching this disk.
*
* Accepted values: DISK_INTERFACE_UNSPECIFIED, SCSI, NVME, NVDIMM, ISCSI
*
* @param self::DISK_INTERFACE_* $diskInterface
*/
public function setDiskInterface($diskInterface)
{
$this->diskInterface = $diskInterface;
}
/**
* @return self::DISK_INTERFACE_*
*/
public function getDiskInterface()
{
return $this->diskInterface;
}
/**
* Optional. The size of the disk in GB.
*
* @param string $diskSizeGb
*/
public function setDiskSizeGb($diskSizeGb)
{
$this->diskSizeGb = $diskSizeGb;
}
/**
* @return string
*/
public function getDiskSizeGb()
{
return $this->diskSizeGb;
}
/**
* Optional. Output only. The URI of the disk type resource. For example:
* projects/project/zones/zone/diskTypes/pd-standard or pd-ssd
*
* @param string $diskType
*/
public function setDiskType($diskType)
{
$this->diskType = $diskType;
}
/**
* @return string
*/
public function getDiskType()
{
return $this->diskType;
}
/**
* Specifies the type of the disk.
*
* Accepted values: DISK_TYPE_UNSPECIFIED, SCRATCH, PERSISTENT
*
* @deprecated
* @param self::DISK_TYPE_DEPRECATED_* $diskTypeDeprecated
*/
public function setDiskTypeDeprecated($diskTypeDeprecated)
{
$this->diskTypeDeprecated = $diskTypeDeprecated;
}
/**
* @deprecated
* @return self::DISK_TYPE_DEPRECATED_*
*/
public function getDiskTypeDeprecated()
{
return $this->diskTypeDeprecated;
}
/**
* Optional. A list of features to enable on the guest operating system.
* Applicable only for bootable images.
*
* @param GuestOsFeature[] $guestOsFeature
*/
public function setGuestOsFeature($guestOsFeature)
{
$this->guestOsFeature = $guestOsFeature;
}
/**
* @return GuestOsFeature[]
*/
public function getGuestOsFeature()
{
return $this->guestOsFeature;
}
/**
* Optional. A zero-based index to this disk, where 0 is reserved for the boot
* disk.
*
* @param string $index
*/
public function setIndex($index)
{
$this->index = $index;
}
/**
* @return string
*/
public function getIndex()
{
return $this->index;
}
/**
* Optional. Specifies the parameters to initialize this disk.
*
* @param InitializeParams $initializeParams
*/
public function setInitializeParams(InitializeParams $initializeParams)
{
$this->initializeParams = $initializeParams;
}
/**
* @return InitializeParams
*/
public function getInitializeParams()
{
return $this->initializeParams;
}
/**
* Optional. Type of the resource.
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* Optional. Any valid publicly visible licenses.
*
* @param string[] $license
*/
public function setLicense($license)
{
$this->license = $license;
}
/**
* @return string[]
*/
public function getLicense()
{
return $this->license;
}
/**
* Optional. The mode in which to attach this disk.
*
* Accepted values: DISK_MODE_UNSPECIFIED, READ_WRITE, READ_ONLY, LOCKED
*
* @param self::MODE_* $mode
*/
public function setMode($mode)
{
$this->mode = $mode;
}
/**
* @return self::MODE_*
*/
public function getMode()
{
return $this->mode;
}
/**
* Optional. Output only. The state of the disk.
*
* Accepted values: DISK_SAVED_STATE_UNSPECIFIED, PRESERVED
*
* @param self::SAVED_STATE_* $savedState
*/
public function setSavedState($savedState)
{
$this->savedState = $savedState;
}
/**
* @return self::SAVED_STATE_*
*/
public function getSavedState()
{
return $this->savedState;
}
/**
* Optional. Specifies a valid partial or full URL to an existing Persistent
* Disk resource.
*
* @param string $source
*/
public function setSource($source)
{
$this->source = $source;
}
/**
* @return string
*/
public function getSource()
{
return $this->source;
}
/**
* Optional. Specifies the type of the disk.
*
* Accepted values: DISK_TYPE_UNSPECIFIED, SCRATCH, PERSISTENT
*
* @param self::TYPE_* $type
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return self::TYPE_*
*/
public function getType()
{
return $this->type;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AttachedDisk::class, 'Google_Service_Backupdr_AttachedDisk');

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\Backupdr;
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_Backupdr_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\Backupdr;
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_Backupdr_AuditLogConfig');

View File

@@ -0,0 +1,628 @@
<?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\Backupdr;
class Backup extends \Google\Collection
{
/**
* Inheritance behavior not set. This will default to
* `INHERIT_VAULT_RETENTION`.
*/
public const BACKUP_RETENTION_INHERITANCE_BACKUP_RETENTION_INHERITANCE_UNSPECIFIED = 'BACKUP_RETENTION_INHERITANCE_UNSPECIFIED';
/**
* The enforced retention end time of a backup will be inherited from the
* backup vault's `backup_minimum_enforced_retention_duration` field. This is
* the default behavior.
*/
public const BACKUP_RETENTION_INHERITANCE_INHERIT_VAULT_RETENTION = 'INHERIT_VAULT_RETENTION';
/**
* The enforced retention end time of a backup will always match the expire
* time of the backup. If this is set, the backup's enforced retention end
* time will be set to match the expire time during creation of the backup.
* When updating, the ERET and expire time must be updated together and have
* the same value. Invalid update requests will be rejected by the server.
*/
public const BACKUP_RETENTION_INHERITANCE_MATCH_BACKUP_EXPIRE_TIME = 'MATCH_BACKUP_EXPIRE_TIME';
/**
* Backup type is unspecified.
*/
public const BACKUP_TYPE_BACKUP_TYPE_UNSPECIFIED = 'BACKUP_TYPE_UNSPECIFIED';
/**
* Scheduled backup.
*/
public const BACKUP_TYPE_SCHEDULED = 'SCHEDULED';
/**
* On demand backup.
*/
public const BACKUP_TYPE_ON_DEMAND = 'ON_DEMAND';
/**
* Operational backup.
*/
public const BACKUP_TYPE_ON_DEMAND_OPERATIONAL = 'ON_DEMAND_OPERATIONAL';
/**
* State not set.
*/
public const STATE_STATE_UNSPECIFIED = 'STATE_UNSPECIFIED';
/**
* The backup is being created.
*/
public const STATE_CREATING = 'CREATING';
/**
* The backup has been created and is fully usable.
*/
public const STATE_ACTIVE = 'ACTIVE';
/**
* The backup is being deleted.
*/
public const STATE_DELETING = 'DELETING';
/**
* The backup is experiencing an issue and might be unusable.
*/
public const STATE_ERROR = 'ERROR';
/**
* The backup is being uploaded.
*/
public const STATE_UPLOADING = 'UPLOADING';
protected $collection_key = 'serviceLocks';
protected $alloyDbBackupPropertiesType = AlloyDbClusterBackupProperties::class;
protected $alloyDbBackupPropertiesDataType = '';
protected $backupApplianceBackupPropertiesType = BackupApplianceBackupProperties::class;
protected $backupApplianceBackupPropertiesDataType = '';
protected $backupApplianceLocksType = BackupLock::class;
protected $backupApplianceLocksDataType = 'array';
/**
* Output only. Setting for how the enforced retention end time is inherited.
* This value is copied from this backup's BackupVault.
*
* @var string
*/
public $backupRetentionInheritance;
/**
* Output only. Type of the backup, unspecified, scheduled or ondemand.
*
* @var string
*/
public $backupType;
protected $cloudSqlInstanceBackupPropertiesType = CloudSqlInstanceBackupProperties::class;
protected $cloudSqlInstanceBackupPropertiesDataType = '';
protected $computeInstanceBackupPropertiesType = ComputeInstanceBackupProperties::class;
protected $computeInstanceBackupPropertiesDataType = '';
/**
* Output only. The point in time when this backup was captured from the
* source.
*
* @var string
*/
public $consistencyTime;
/**
* Output only. The time when the instance was created.
*
* @var string
*/
public $createTime;
/**
* Output only. The description of the Backup instance (2048 characters or
* less).
*
* @var string
*/
public $description;
protected $diskBackupPropertiesType = DiskBackupProperties::class;
protected $diskBackupPropertiesDataType = '';
/**
* Optional. The backup can not be deleted before this time.
*
* @var string
*/
public $enforcedRetentionEndTime;
/**
* Optional. Server specified ETag to prevent updates from overwriting each
* other.
*
* @var string
*/
public $etag;
/**
* Optional. When this backup is automatically expired.
*
* @var string
*/
public $expireTime;
protected $gcpBackupPlanInfoType = GCPBackupPlanInfo::class;
protected $gcpBackupPlanInfoDataType = '';
protected $gcpResourceType = BackupGcpResource::class;
protected $gcpResourceDataType = '';
/**
* Optional. Output only. The list of KMS key versions used to encrypt the
* backup.
*
* @var string[]
*/
public $kmsKeyVersions;
/**
* Optional. Resource labels to represent user provided metadata. No labels
* currently defined.
*
* @var string[]
*/
public $labels;
/**
* Output only. Identifier. Name of the backup to create. It must have the for
* mat`"projects//locations//backupVaults//dataSources/{datasource}/backups/{b
* ackup}"`. `{backup}` cannot be changed after creation. It must be between
* 3-63 characters long and must be unique within the datasource.
*
* @var string
*/
public $name;
/**
* Output only. source resource size in bytes at the time of the backup.
*
* @var string
*/
public $resourceSizeBytes;
/**
* Optional. Output only. Reserved for future use.
*
* @var bool
*/
public $satisfiesPzi;
/**
* Optional. Output only. Reserved for future use.
*
* @var bool
*/
public $satisfiesPzs;
protected $serviceLocksType = BackupLock::class;
protected $serviceLocksDataType = 'array';
/**
* Output only. The Backup resource instance state.
*
* @var string
*/
public $state;
/**
* Output only. The time when the instance was updated.
*
* @var string
*/
public $updateTime;
/**
* Output only. AlloyDB specific backup properties.
*
* @param AlloyDbClusterBackupProperties $alloyDbBackupProperties
*/
public function setAlloyDbBackupProperties(AlloyDbClusterBackupProperties $alloyDbBackupProperties)
{
$this->alloyDbBackupProperties = $alloyDbBackupProperties;
}
/**
* @return AlloyDbClusterBackupProperties
*/
public function getAlloyDbBackupProperties()
{
return $this->alloyDbBackupProperties;
}
/**
* Output only. Backup Appliance specific backup properties.
*
* @param BackupApplianceBackupProperties $backupApplianceBackupProperties
*/
public function setBackupApplianceBackupProperties(BackupApplianceBackupProperties $backupApplianceBackupProperties)
{
$this->backupApplianceBackupProperties = $backupApplianceBackupProperties;
}
/**
* @return BackupApplianceBackupProperties
*/
public function getBackupApplianceBackupProperties()
{
return $this->backupApplianceBackupProperties;
}
/**
* Optional. The list of BackupLocks taken by the accessor Backup Appliance.
*
* @param BackupLock[] $backupApplianceLocks
*/
public function setBackupApplianceLocks($backupApplianceLocks)
{
$this->backupApplianceLocks = $backupApplianceLocks;
}
/**
* @return BackupLock[]
*/
public function getBackupApplianceLocks()
{
return $this->backupApplianceLocks;
}
/**
* Output only. Setting for how the enforced retention end time is inherited.
* This value is copied from this backup's BackupVault.
*
* Accepted values: BACKUP_RETENTION_INHERITANCE_UNSPECIFIED,
* INHERIT_VAULT_RETENTION, MATCH_BACKUP_EXPIRE_TIME
*
* @param self::BACKUP_RETENTION_INHERITANCE_* $backupRetentionInheritance
*/
public function setBackupRetentionInheritance($backupRetentionInheritance)
{
$this->backupRetentionInheritance = $backupRetentionInheritance;
}
/**
* @return self::BACKUP_RETENTION_INHERITANCE_*
*/
public function getBackupRetentionInheritance()
{
return $this->backupRetentionInheritance;
}
/**
* Output only. Type of the backup, unspecified, scheduled or ondemand.
*
* Accepted values: BACKUP_TYPE_UNSPECIFIED, SCHEDULED, ON_DEMAND,
* ON_DEMAND_OPERATIONAL
*
* @param self::BACKUP_TYPE_* $backupType
*/
public function setBackupType($backupType)
{
$this->backupType = $backupType;
}
/**
* @return self::BACKUP_TYPE_*
*/
public function getBackupType()
{
return $this->backupType;
}
/**
* Output only. Cloud SQL specific backup properties.
*
* @param CloudSqlInstanceBackupProperties $cloudSqlInstanceBackupProperties
*/
public function setCloudSqlInstanceBackupProperties(CloudSqlInstanceBackupProperties $cloudSqlInstanceBackupProperties)
{
$this->cloudSqlInstanceBackupProperties = $cloudSqlInstanceBackupProperties;
}
/**
* @return CloudSqlInstanceBackupProperties
*/
public function getCloudSqlInstanceBackupProperties()
{
return $this->cloudSqlInstanceBackupProperties;
}
/**
* Output only. Compute Engine specific backup properties.
*
* @param ComputeInstanceBackupProperties $computeInstanceBackupProperties
*/
public function setComputeInstanceBackupProperties(ComputeInstanceBackupProperties $computeInstanceBackupProperties)
{
$this->computeInstanceBackupProperties = $computeInstanceBackupProperties;
}
/**
* @return ComputeInstanceBackupProperties
*/
public function getComputeInstanceBackupProperties()
{
return $this->computeInstanceBackupProperties;
}
/**
* Output only. The point in time when this backup was captured from the
* source.
*
* @param string $consistencyTime
*/
public function setConsistencyTime($consistencyTime)
{
$this->consistencyTime = $consistencyTime;
}
/**
* @return string
*/
public function getConsistencyTime()
{
return $this->consistencyTime;
}
/**
* Output only. The time when the instance was created.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* Output only. The description of the Backup instance (2048 characters or
* less).
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* Output only. Disk specific backup properties.
*
* @param DiskBackupProperties $diskBackupProperties
*/
public function setDiskBackupProperties(DiskBackupProperties $diskBackupProperties)
{
$this->diskBackupProperties = $diskBackupProperties;
}
/**
* @return DiskBackupProperties
*/
public function getDiskBackupProperties()
{
return $this->diskBackupProperties;
}
/**
* Optional. The backup can not be deleted before this time.
*
* @param string $enforcedRetentionEndTime
*/
public function setEnforcedRetentionEndTime($enforcedRetentionEndTime)
{
$this->enforcedRetentionEndTime = $enforcedRetentionEndTime;
}
/**
* @return string
*/
public function getEnforcedRetentionEndTime()
{
return $this->enforcedRetentionEndTime;
}
/**
* Optional. Server specified ETag to prevent updates from overwriting each
* other.
*
* @param string $etag
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* Optional. When this backup is automatically expired.
*
* @param string $expireTime
*/
public function setExpireTime($expireTime)
{
$this->expireTime = $expireTime;
}
/**
* @return string
*/
public function getExpireTime()
{
return $this->expireTime;
}
/**
* Output only. Configuration for a Google Cloud resource.
*
* @param GCPBackupPlanInfo $gcpBackupPlanInfo
*/
public function setGcpBackupPlanInfo(GCPBackupPlanInfo $gcpBackupPlanInfo)
{
$this->gcpBackupPlanInfo = $gcpBackupPlanInfo;
}
/**
* @return GCPBackupPlanInfo
*/
public function getGcpBackupPlanInfo()
{
return $this->gcpBackupPlanInfo;
}
/**
* Output only. Unique identifier of the GCP resource that is being backed up.
*
* @param BackupGcpResource $gcpResource
*/
public function setGcpResource(BackupGcpResource $gcpResource)
{
$this->gcpResource = $gcpResource;
}
/**
* @return BackupGcpResource
*/
public function getGcpResource()
{
return $this->gcpResource;
}
/**
* Optional. Output only. The list of KMS key versions used to encrypt the
* backup.
*
* @param string[] $kmsKeyVersions
*/
public function setKmsKeyVersions($kmsKeyVersions)
{
$this->kmsKeyVersions = $kmsKeyVersions;
}
/**
* @return string[]
*/
public function getKmsKeyVersions()
{
return $this->kmsKeyVersions;
}
/**
* Optional. Resource labels to represent user provided metadata. No labels
* currently defined.
*
* @param string[] $labels
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* Output only. Identifier. Name of the backup to create. It must have the for
* mat`"projects//locations//backupVaults//dataSources/{datasource}/backups/{b
* ackup}"`. `{backup}` cannot be changed after creation. It must be between
* 3-63 characters long and must be unique within the datasource.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Output only. source resource size in bytes at the time of the backup.
*
* @param string $resourceSizeBytes
*/
public function setResourceSizeBytes($resourceSizeBytes)
{
$this->resourceSizeBytes = $resourceSizeBytes;
}
/**
* @return string
*/
public function getResourceSizeBytes()
{
return $this->resourceSizeBytes;
}
/**
* Optional. Output only. Reserved for future use.
*
* @param bool $satisfiesPzi
*/
public function setSatisfiesPzi($satisfiesPzi)
{
$this->satisfiesPzi = $satisfiesPzi;
}
/**
* @return bool
*/
public function getSatisfiesPzi()
{
return $this->satisfiesPzi;
}
/**
* Optional. 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. The list of BackupLocks taken by the service to prevent the
* deletion of the backup.
*
* @param BackupLock[] $serviceLocks
*/
public function setServiceLocks($serviceLocks)
{
$this->serviceLocks = $serviceLocks;
}
/**
* @return BackupLock[]
*/
public function getServiceLocks()
{
return $this->serviceLocks;
}
/**
* Output only. The Backup resource instance state.
*
* Accepted values: STATE_UNSPECIFIED, CREATING, ACTIVE, DELETING, ERROR,
* UPLOADING
*
* @param self::STATE_* $state
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return self::STATE_*
*/
public function getState()
{
return $this->state;
}
/**
* Output only. The time when the instance was 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(Backup::class, 'Google_Service_Backupdr_Backup');

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\Backupdr;
class BackupApplianceBackupConfig extends \Google\Model
{
/**
* The name of the application.
*
* @var string
*/
public $applicationName;
/**
* The ID of the backup appliance.
*
* @var string
*/
public $backupApplianceId;
/**
* The name of the backup appliance.
*
* @var string
*/
public $backupApplianceName;
/**
* The name of the host where the application is running.
*
* @var string
*/
public $hostName;
/**
* The ID of the SLA of this application.
*
* @var string
*/
public $slaId;
/**
* The name of the SLP associated with the application.
*
* @var string
*/
public $slpName;
/**
* The name of the SLT associated with the application.
*
* @var string
*/
public $sltName;
/**
* The name of the application.
*
* @param string $applicationName
*/
public function setApplicationName($applicationName)
{
$this->applicationName = $applicationName;
}
/**
* @return string
*/
public function getApplicationName()
{
return $this->applicationName;
}
/**
* The ID of the backup appliance.
*
* @param string $backupApplianceId
*/
public function setBackupApplianceId($backupApplianceId)
{
$this->backupApplianceId = $backupApplianceId;
}
/**
* @return string
*/
public function getBackupApplianceId()
{
return $this->backupApplianceId;
}
/**
* The name of the backup appliance.
*
* @param string $backupApplianceName
*/
public function setBackupApplianceName($backupApplianceName)
{
$this->backupApplianceName = $backupApplianceName;
}
/**
* @return string
*/
public function getBackupApplianceName()
{
return $this->backupApplianceName;
}
/**
* The name of the host where the application is running.
*
* @param string $hostName
*/
public function setHostName($hostName)
{
$this->hostName = $hostName;
}
/**
* @return string
*/
public function getHostName()
{
return $this->hostName;
}
/**
* The ID of the SLA of this application.
*
* @param string $slaId
*/
public function setSlaId($slaId)
{
$this->slaId = $slaId;
}
/**
* @return string
*/
public function getSlaId()
{
return $this->slaId;
}
/**
* The name of the SLP associated with the application.
*
* @param string $slpName
*/
public function setSlpName($slpName)
{
$this->slpName = $slpName;
}
/**
* @return string
*/
public function getSlpName()
{
return $this->slpName;
}
/**
* The name of the SLT associated with the application.
*
* @param string $sltName
*/
public function setSltName($sltName)
{
$this->sltName = $sltName;
}
/**
* @return string
*/
public function getSltName()
{
return $this->sltName;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BackupApplianceBackupConfig::class, 'Google_Service_Backupdr_BackupApplianceBackupConfig');

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\Backupdr;
class BackupApplianceBackupProperties extends \Google\Model
{
/**
* Output only. The time when this backup object was finalized (if none,
* backup is not finalized).
*
* @var string
*/
public $finalizeTime;
/**
* Output only. The numeric generation ID of the backup (monotonically
* increasing).
*
* @var int
*/
public $generationId;
/**
* Optional. The latest timestamp of data available in this Backup.
*
* @var string
*/
public $recoveryRangeEndTime;
/**
* Optional. The earliest timestamp of data available in this Backup.
*
* @var string
*/
public $recoveryRangeStartTime;
/**
* Output only. The time when this backup object was finalized (if none,
* backup is not finalized).
*
* @param string $finalizeTime
*/
public function setFinalizeTime($finalizeTime)
{
$this->finalizeTime = $finalizeTime;
}
/**
* @return string
*/
public function getFinalizeTime()
{
return $this->finalizeTime;
}
/**
* Output only. The numeric generation ID of the backup (monotonically
* increasing).
*
* @param int $generationId
*/
public function setGenerationId($generationId)
{
$this->generationId = $generationId;
}
/**
* @return int
*/
public function getGenerationId()
{
return $this->generationId;
}
/**
* Optional. The latest timestamp of data available in this Backup.
*
* @param string $recoveryRangeEndTime
*/
public function setRecoveryRangeEndTime($recoveryRangeEndTime)
{
$this->recoveryRangeEndTime = $recoveryRangeEndTime;
}
/**
* @return string
*/
public function getRecoveryRangeEndTime()
{
return $this->recoveryRangeEndTime;
}
/**
* Optional. The earliest timestamp of data available in this Backup.
*
* @param string $recoveryRangeStartTime
*/
public function setRecoveryRangeStartTime($recoveryRangeStartTime)
{
$this->recoveryRangeStartTime = $recoveryRangeStartTime;
}
/**
* @return string
*/
public function getRecoveryRangeStartTime()
{
return $this->recoveryRangeStartTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BackupApplianceBackupProperties::class, 'Google_Service_Backupdr_BackupApplianceBackupProperties');

View File

@@ -0,0 +1,162 @@
<?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\Backupdr;
class BackupApplianceLockInfo extends \Google\Model
{
/**
* Required. The ID of the backup/recovery appliance that created this lock.
*
* @var string
*/
public $backupApplianceId;
/**
* Required. The name of the backup/recovery appliance that created this lock.
*
* @var string
*/
public $backupApplianceName;
/**
* The image name that depends on this Backup.
*
* @var string
*/
public $backupImage;
/**
* The job name on the backup/recovery appliance that created this lock.
*
* @var string
*/
public $jobName;
/**
* Required. The reason for the lock: e.g. MOUNT/RESTORE/BACKUP/etc. The value
* of this string is only meaningful to the client and it is not interpreted
* by the BackupVault service.
*
* @var string
*/
public $lockReason;
/**
* The SLA on the backup/recovery appliance that owns the lock.
*
* @var string
*/
public $slaId;
/**
* Required. The ID of the backup/recovery appliance that created this lock.
*
* @param string $backupApplianceId
*/
public function setBackupApplianceId($backupApplianceId)
{
$this->backupApplianceId = $backupApplianceId;
}
/**
* @return string
*/
public function getBackupApplianceId()
{
return $this->backupApplianceId;
}
/**
* Required. The name of the backup/recovery appliance that created this lock.
*
* @param string $backupApplianceName
*/
public function setBackupApplianceName($backupApplianceName)
{
$this->backupApplianceName = $backupApplianceName;
}
/**
* @return string
*/
public function getBackupApplianceName()
{
return $this->backupApplianceName;
}
/**
* The image name that depends on this Backup.
*
* @param string $backupImage
*/
public function setBackupImage($backupImage)
{
$this->backupImage = $backupImage;
}
/**
* @return string
*/
public function getBackupImage()
{
return $this->backupImage;
}
/**
* The job name on the backup/recovery appliance that created this lock.
*
* @param string $jobName
*/
public function setJobName($jobName)
{
$this->jobName = $jobName;
}
/**
* @return string
*/
public function getJobName()
{
return $this->jobName;
}
/**
* Required. The reason for the lock: e.g. MOUNT/RESTORE/BACKUP/etc. The value
* of this string is only meaningful to the client and it is not interpreted
* by the BackupVault service.
*
* @param string $lockReason
*/
public function setLockReason($lockReason)
{
$this->lockReason = $lockReason;
}
/**
* @return string
*/
public function getLockReason()
{
return $this->lockReason;
}
/**
* The SLA on the backup/recovery appliance that owns the lock.
*
* @param string $slaId
*/
public function setSlaId($slaId)
{
$this->slaId = $slaId;
}
/**
* @return string
*/
public function getSlaId()
{
return $this->slaId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BackupApplianceLockInfo::class, 'Google_Service_Backupdr_BackupApplianceLockInfo');

View File

@@ -0,0 +1,321 @@
<?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\Backupdr;
class BackupConfigDetails extends \Google\Collection
{
/**
* Backup config state not set.
*/
public const STATE_STATE_UNSPECIFIED = 'STATE_UNSPECIFIED';
/**
* The config is in an active state protecting the resource
*/
public const STATE_ACTIVE = 'ACTIVE';
/**
* The config is currently not protecting the resource. Either because it is
* disabled or the owning project has been deleted without cleanup of the
* actual resource.
*/
public const STATE_INACTIVE = 'INACTIVE';
/**
* The config still exists but because of some error state it is not
* protecting the resource. Like the source project is deleted. For eg.
* PlanAssociation, BackupPlan is deleted.
*/
public const STATE_ERROR = 'ERROR';
/**
* Backup config type is unspecified.
*/
public const TYPE_TYPE_UNSPECIFIED = 'TYPE_UNSPECIFIED';
/**
* Backup config is Cloud SQL instance's automated backup config.
*/
public const TYPE_CLOUD_SQL_INSTANCE_BACKUP_CONFIG = 'CLOUD_SQL_INSTANCE_BACKUP_CONFIG';
/**
* Backup config is Compute Engine Resource Policy.
*/
public const TYPE_COMPUTE_ENGINE_RESOURCE_POLICY = 'COMPUTE_ENGINE_RESOURCE_POLICY';
/**
* Backup config is Backup and DR's Backup Plan.
*/
public const TYPE_BACKUPDR_BACKUP_PLAN = 'BACKUPDR_BACKUP_PLAN';
/**
* Backup config is Backup and DR's Template.
*/
public const TYPE_BACKUPDR_TEMPLATE = 'BACKUPDR_TEMPLATE';
protected $collection_key = 'backupLocations';
/**
* Output only. The [full resource name](https://cloud.google.com/asset-
* inventory/docs/resource-name-format) of the resource that is applicable for
* the backup configuration. Example: "//compute.googleapis.com/projects/{proj
* ect}/zones/{zone}/instances/{instance}"
*
* @var string
*/
public $applicableResource;
/**
* Output only. The full resource name of the backup config source resource.
* For example, "//backupdr.googleapis.com/v1/projects/{project}/locations/{re
* gion}/backupPlans/{backupplanId}" or "//compute.googleapis.com/projects/{pr
* oject}/locations/{region}/resourcePolicies/{resourcePolicyId}".
*
* @var string
*/
public $backupConfigSource;
/**
* Output only. The display name of the backup config source resource.
*
* @var string
*/
public $backupConfigSourceDisplayName;
protected $backupDrPlanConfigType = BackupDrPlanConfig::class;
protected $backupDrPlanConfigDataType = '';
protected $backupDrTemplateConfigType = BackupDrTemplateConfig::class;
protected $backupDrTemplateConfigDataType = '';
protected $backupLocationsType = BackupLocation::class;
protected $backupLocationsDataType = 'array';
/**
* Output only. The [full resource name](https://cloud.google.com/asset-
* inventory/docs/resource-name-format) of the backup vault that will store
* the backups generated through this backup configuration. Example: "//backup
* dr.googleapis.com/v1/projects/{project}/locations/{region}/backupVaults/{ba
* ckupvaultId}"
*
* @var string
*/
public $backupVault;
/**
* Output only. Timestamp of the latest successful backup created via this
* backup configuration.
*
* @var string
*/
public $latestSuccessfulBackupTime;
protected $pitrSettingsType = PitrSettings::class;
protected $pitrSettingsDataType = '';
/**
* Output only. The state of the backup config resource.
*
* @var string
*/
public $state;
/**
* Output only. The type of the backup config resource.
*
* @var string
*/
public $type;
/**
* Output only. The [full resource name](https://cloud.google.com/asset-
* inventory/docs/resource-name-format) of the resource that is applicable for
* the backup configuration. Example: "//compute.googleapis.com/projects/{proj
* ect}/zones/{zone}/instances/{instance}"
*
* @param string $applicableResource
*/
public function setApplicableResource($applicableResource)
{
$this->applicableResource = $applicableResource;
}
/**
* @return string
*/
public function getApplicableResource()
{
return $this->applicableResource;
}
/**
* Output only. The full resource name of the backup config source resource.
* For example, "//backupdr.googleapis.com/v1/projects/{project}/locations/{re
* gion}/backupPlans/{backupplanId}" or "//compute.googleapis.com/projects/{pr
* oject}/locations/{region}/resourcePolicies/{resourcePolicyId}".
*
* @param string $backupConfigSource
*/
public function setBackupConfigSource($backupConfigSource)
{
$this->backupConfigSource = $backupConfigSource;
}
/**
* @return string
*/
public function getBackupConfigSource()
{
return $this->backupConfigSource;
}
/**
* Output only. The display name of the backup config source resource.
*
* @param string $backupConfigSourceDisplayName
*/
public function setBackupConfigSourceDisplayName($backupConfigSourceDisplayName)
{
$this->backupConfigSourceDisplayName = $backupConfigSourceDisplayName;
}
/**
* @return string
*/
public function getBackupConfigSourceDisplayName()
{
return $this->backupConfigSourceDisplayName;
}
/**
* Backup and DR's Backup Plan specific data.
*
* @param BackupDrPlanConfig $backupDrPlanConfig
*/
public function setBackupDrPlanConfig(BackupDrPlanConfig $backupDrPlanConfig)
{
$this->backupDrPlanConfig = $backupDrPlanConfig;
}
/**
* @return BackupDrPlanConfig
*/
public function getBackupDrPlanConfig()
{
return $this->backupDrPlanConfig;
}
/**
* Backup and DR's Template specific data.
*
* @param BackupDrTemplateConfig $backupDrTemplateConfig
*/
public function setBackupDrTemplateConfig(BackupDrTemplateConfig $backupDrTemplateConfig)
{
$this->backupDrTemplateConfig = $backupDrTemplateConfig;
}
/**
* @return BackupDrTemplateConfig
*/
public function getBackupDrTemplateConfig()
{
return $this->backupDrTemplateConfig;
}
/**
* The locations where the backups are to be stored.
*
* @param BackupLocation[] $backupLocations
*/
public function setBackupLocations($backupLocations)
{
$this->backupLocations = $backupLocations;
}
/**
* @return BackupLocation[]
*/
public function getBackupLocations()
{
return $this->backupLocations;
}
/**
* Output only. The [full resource name](https://cloud.google.com/asset-
* inventory/docs/resource-name-format) of the backup vault that will store
* the backups generated through this backup configuration. Example: "//backup
* dr.googleapis.com/v1/projects/{project}/locations/{region}/backupVaults/{ba
* ckupvaultId}"
*
* @param string $backupVault
*/
public function setBackupVault($backupVault)
{
$this->backupVault = $backupVault;
}
/**
* @return string
*/
public function getBackupVault()
{
return $this->backupVault;
}
/**
* Output only. Timestamp of the latest successful backup created via this
* backup configuration.
*
* @param string $latestSuccessfulBackupTime
*/
public function setLatestSuccessfulBackupTime($latestSuccessfulBackupTime)
{
$this->latestSuccessfulBackupTime = $latestSuccessfulBackupTime;
}
/**
* @return string
*/
public function getLatestSuccessfulBackupTime()
{
return $this->latestSuccessfulBackupTime;
}
/**
* Output only. Point in time recovery settings of the backup configuration
* resource.
*
* @param PitrSettings $pitrSettings
*/
public function setPitrSettings(PitrSettings $pitrSettings)
{
$this->pitrSettings = $pitrSettings;
}
/**
* @return PitrSettings
*/
public function getPitrSettings()
{
return $this->pitrSettings;
}
/**
* Output only. The state of the backup config resource.
*
* Accepted values: STATE_UNSPECIFIED, ACTIVE, INACTIVE, ERROR
*
* @param self::STATE_* $state
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return self::STATE_*
*/
public function getState()
{
return $this->state;
}
/**
* Output only. The type of the backup config resource.
*
* Accepted values: TYPE_UNSPECIFIED, CLOUD_SQL_INSTANCE_BACKUP_CONFIG,
* COMPUTE_ENGINE_RESOURCE_POLICY, BACKUPDR_BACKUP_PLAN, BACKUPDR_TEMPLATE
*
* @param self::TYPE_* $type
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return self::TYPE_*
*/
public function getType()
{
return $this->type;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BackupConfigDetails::class, 'Google_Service_Backupdr_BackupConfigDetails');

View File

@@ -0,0 +1,150 @@
<?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\Backupdr;
class BackupConfigInfo extends \Google\Model
{
/**
* Status not set.
*/
public const LAST_BACKUP_STATE_LAST_BACKUP_STATE_UNSPECIFIED = 'LAST_BACKUP_STATE_UNSPECIFIED';
/**
* The first backup has not yet completed
*/
public const LAST_BACKUP_STATE_FIRST_BACKUP_PENDING = 'FIRST_BACKUP_PENDING';
/**
* The most recent backup was successful
*/
public const LAST_BACKUP_STATE_SUCCEEDED = 'SUCCEEDED';
/**
* The most recent backup failed
*/
public const LAST_BACKUP_STATE_FAILED = 'FAILED';
/**
* The most recent backup could not be run/failed because of the lack of
* permissions
*/
public const LAST_BACKUP_STATE_PERMISSION_DENIED = 'PERMISSION_DENIED';
protected $backupApplianceBackupConfigType = BackupApplianceBackupConfig::class;
protected $backupApplianceBackupConfigDataType = '';
protected $gcpBackupConfigType = GcpBackupConfig::class;
protected $gcpBackupConfigDataType = '';
protected $lastBackupErrorType = Status::class;
protected $lastBackupErrorDataType = '';
/**
* Output only. The status of the last backup to this BackupVault
*
* @var string
*/
public $lastBackupState;
/**
* Output only. If the last backup were successful, this field has the
* consistency date.
*
* @var string
*/
public $lastSuccessfulBackupConsistencyTime;
/**
* Configuration for an application backed up by a Backup Appliance.
*
* @param BackupApplianceBackupConfig $backupApplianceBackupConfig
*/
public function setBackupApplianceBackupConfig(BackupApplianceBackupConfig $backupApplianceBackupConfig)
{
$this->backupApplianceBackupConfig = $backupApplianceBackupConfig;
}
/**
* @return BackupApplianceBackupConfig
*/
public function getBackupApplianceBackupConfig()
{
return $this->backupApplianceBackupConfig;
}
/**
* Configuration for a Google Cloud resource.
*
* @param GcpBackupConfig $gcpBackupConfig
*/
public function setGcpBackupConfig(GcpBackupConfig $gcpBackupConfig)
{
$this->gcpBackupConfig = $gcpBackupConfig;
}
/**
* @return GcpBackupConfig
*/
public function getGcpBackupConfig()
{
return $this->gcpBackupConfig;
}
/**
* Output only. If the last backup failed, this field has the error message.
*
* @param Status $lastBackupError
*/
public function setLastBackupError(Status $lastBackupError)
{
$this->lastBackupError = $lastBackupError;
}
/**
* @return Status
*/
public function getLastBackupError()
{
return $this->lastBackupError;
}
/**
* Output only. The status of the last backup to this BackupVault
*
* Accepted values: LAST_BACKUP_STATE_UNSPECIFIED, FIRST_BACKUP_PENDING,
* SUCCEEDED, FAILED, PERMISSION_DENIED
*
* @param self::LAST_BACKUP_STATE_* $lastBackupState
*/
public function setLastBackupState($lastBackupState)
{
$this->lastBackupState = $lastBackupState;
}
/**
* @return self::LAST_BACKUP_STATE_*
*/
public function getLastBackupState()
{
return $this->lastBackupState;
}
/**
* Output only. If the last backup were successful, this field has the
* consistency date.
*
* @param string $lastSuccessfulBackupConsistencyTime
*/
public function setLastSuccessfulBackupConsistencyTime($lastSuccessfulBackupConsistencyTime)
{
$this->lastSuccessfulBackupConsistencyTime = $lastSuccessfulBackupConsistencyTime;
}
/**
* @return string
*/
public function getLastSuccessfulBackupConsistencyTime()
{
return $this->lastSuccessfulBackupConsistencyTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BackupConfigInfo::class, 'Google_Service_Backupdr_BackupConfigInfo');

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\Backupdr;
class BackupDrPlanConfig extends \Google\Collection
{
protected $collection_key = 'backupDrPlanRules';
protected $backupDrPlanRulesType = BackupDrPlanRule::class;
protected $backupDrPlanRulesDataType = 'array';
/**
* Backup rules of the backup plan resource.
*
* @param BackupDrPlanRule[] $backupDrPlanRules
*/
public function setBackupDrPlanRules($backupDrPlanRules)
{
$this->backupDrPlanRules = $backupDrPlanRules;
}
/**
* @return BackupDrPlanRule[]
*/
public function getBackupDrPlanRules()
{
return $this->backupDrPlanRules;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BackupDrPlanConfig::class, 'Google_Service_Backupdr_BackupDrPlanConfig');

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\Backupdr;
class BackupDrPlanRule extends \Google\Model
{
/**
* Output only. Timestamp of the latest successful backup created via this
* backup rule.
*
* @var string
*/
public $lastSuccessfulBackupTime;
/**
* Output only. Unique Id of the backup rule.
*
* @var string
*/
public $ruleId;
/**
* Output only. Timestamp of the latest successful backup created via this
* backup rule.
*
* @param string $lastSuccessfulBackupTime
*/
public function setLastSuccessfulBackupTime($lastSuccessfulBackupTime)
{
$this->lastSuccessfulBackupTime = $lastSuccessfulBackupTime;
}
/**
* @return string
*/
public function getLastSuccessfulBackupTime()
{
return $this->lastSuccessfulBackupTime;
}
/**
* Output only. Unique Id of the backup rule.
*
* @param string $ruleId
*/
public function setRuleId($ruleId)
{
$this->ruleId = $ruleId;
}
/**
* @return string
*/
public function getRuleId()
{
return $this->ruleId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BackupDrPlanRule::class, 'Google_Service_Backupdr_BackupDrPlanRule');

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\Backupdr;
class BackupDrTemplateConfig extends \Google\Model
{
/**
* Output only. The URI of the BackupDr template resource for the first party
* identity users.
*
* @var string
*/
public $firstPartyManagementUri;
/**
* Output only. The URI of the BackupDr template resource for the third party
* identity users.
*
* @var string
*/
public $thirdPartyManagementUri;
/**
* Output only. The URI of the BackupDr template resource for the first party
* identity users.
*
* @param string $firstPartyManagementUri
*/
public function setFirstPartyManagementUri($firstPartyManagementUri)
{
$this->firstPartyManagementUri = $firstPartyManagementUri;
}
/**
* @return string
*/
public function getFirstPartyManagementUri()
{
return $this->firstPartyManagementUri;
}
/**
* Output only. The URI of the BackupDr template resource for the third party
* identity users.
*
* @param string $thirdPartyManagementUri
*/
public function setThirdPartyManagementUri($thirdPartyManagementUri)
{
$this->thirdPartyManagementUri = $thirdPartyManagementUri;
}
/**
* @return string
*/
public function getThirdPartyManagementUri()
{
return $this->thirdPartyManagementUri;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BackupDrTemplateConfig::class, 'Google_Service_Backupdr_BackupDrTemplateConfig');

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\Backupdr;
class BackupGcpResource extends \Google\Model
{
/**
* Name of the Google Cloud resource.
*
* @var string
*/
public $gcpResourcename;
/**
* Location of the resource: //"global"/"unspecified".
*
* @var string
*/
public $location;
/**
* Type of the resource. Use the Unified Resource Type, eg.
* compute.googleapis.com/Instance.
*
* @var string
*/
public $type;
/**
* Name of the Google Cloud resource.
*
* @param string $gcpResourcename
*/
public function setGcpResourcename($gcpResourcename)
{
$this->gcpResourcename = $gcpResourcename;
}
/**
* @return string
*/
public function getGcpResourcename()
{
return $this->gcpResourcename;
}
/**
* Location of the resource: //"global"/"unspecified".
*
* @param string $location
*/
public function setLocation($location)
{
$this->location = $location;
}
/**
* @return string
*/
public function getLocation()
{
return $this->location;
}
/**
* Type of the resource. Use the Unified Resource Type, eg.
* compute.googleapis.com/Instance.
*
* @param string $type
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return string
*/
public function getType()
{
return $this->type;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BackupGcpResource::class, 'Google_Service_Backupdr_BackupGcpResource');

View File

@@ -0,0 +1,88 @@
<?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\Backupdr;
class BackupLocation extends \Google\Model
{
/**
* Location type is unspecified.
*/
public const TYPE_TYPE_UNSPECIFIED = 'TYPE_UNSPECIFIED';
/**
* Location type is zonal.
*/
public const TYPE_ZONAL = 'ZONAL';
/**
* Location type is regional.
*/
public const TYPE_REGIONAL = 'REGIONAL';
/**
* Location type is multi regional.
*/
public const TYPE_MULTI_REGIONAL = 'MULTI_REGIONAL';
/**
* Output only. The id of the cloud location. Example: "us-central1"
*
* @var string
*/
public $locationId;
/**
* Output only. The type of the location.
*
* @var string
*/
public $type;
/**
* Output only. The id of the cloud location. Example: "us-central1"
*
* @param string $locationId
*/
public function setLocationId($locationId)
{
$this->locationId = $locationId;
}
/**
* @return string
*/
public function getLocationId()
{
return $this->locationId;
}
/**
* Output only. The type of the location.
*
* Accepted values: TYPE_UNSPECIFIED, ZONAL, REGIONAL, MULTI_REGIONAL
*
* @param self::TYPE_* $type
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return self::TYPE_*
*/
public function getType()
{
return $this->type;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BackupLocation::class, 'Google_Service_Backupdr_BackupLocation');

View File

@@ -0,0 +1,88 @@
<?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\Backupdr;
class BackupLock extends \Google\Model
{
protected $backupApplianceLockInfoType = BackupApplianceLockInfo::class;
protected $backupApplianceLockInfoDataType = '';
/**
* Required. The time after which this lock is not considered valid and will
* no longer protect the Backup from deletion.
*
* @var string
*/
public $lockUntilTime;
protected $serviceLockInfoType = ServiceLockInfo::class;
protected $serviceLockInfoDataType = '';
/**
* If the client is a backup and recovery appliance, this contains metadata
* about why the lock exists.
*
* @param BackupApplianceLockInfo $backupApplianceLockInfo
*/
public function setBackupApplianceLockInfo(BackupApplianceLockInfo $backupApplianceLockInfo)
{
$this->backupApplianceLockInfo = $backupApplianceLockInfo;
}
/**
* @return BackupApplianceLockInfo
*/
public function getBackupApplianceLockInfo()
{
return $this->backupApplianceLockInfo;
}
/**
* Required. The time after which this lock is not considered valid and will
* no longer protect the Backup from deletion.
*
* @param string $lockUntilTime
*/
public function setLockUntilTime($lockUntilTime)
{
$this->lockUntilTime = $lockUntilTime;
}
/**
* @return string
*/
public function getLockUntilTime()
{
return $this->lockUntilTime;
}
/**
* Output only. Contains metadata about the lock exist for Google Cloud native
* backups.
*
* @param ServiceLockInfo $serviceLockInfo
*/
public function setServiceLockInfo(ServiceLockInfo $serviceLockInfo)
{
$this->serviceLockInfo = $serviceLockInfo;
}
/**
* @return ServiceLockInfo
*/
public function getServiceLockInfo()
{
return $this->serviceLockInfo;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BackupLock::class, 'Google_Service_Backupdr_BackupLock');

View File

@@ -0,0 +1,448 @@
<?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\Backupdr;
class BackupPlan extends \Google\Collection
{
/**
* State not set.
*/
public const STATE_STATE_UNSPECIFIED = 'STATE_UNSPECIFIED';
/**
* The resource is being created.
*/
public const STATE_CREATING = 'CREATING';
/**
* The resource has been created and is fully usable.
*/
public const STATE_ACTIVE = 'ACTIVE';
/**
* The resource is being deleted.
*/
public const STATE_DELETING = 'DELETING';
/**
* The resource has been created but is not usable.
*/
public const STATE_INACTIVE = 'INACTIVE';
/**
* The resource is being updated.
*/
public const STATE_UPDATING = 'UPDATING';
protected $collection_key = 'supportedResourceTypes';
protected $backupRulesType = BackupRule::class;
protected $backupRulesDataType = 'array';
/**
* Required. Resource name of backup vault which will be used as storage
* location for backups. Format:
* projects/{project}/locations/{location}/backupVaults/{backupvault}
*
* @var string
*/
public $backupVault;
/**
* Output only. The Google Cloud Platform Service Account to be used by the
* BackupVault for taking backups. Specify the email address of the Backup
* Vault Service Account.
*
* @var string
*/
public $backupVaultServiceAccount;
/**
* Output only. When the `BackupPlan` was created.
*
* @var string
*/
public $createTime;
/**
* Optional. The description of the `BackupPlan` resource. The description
* allows for additional details about `BackupPlan` and its use cases to be
* provided. An example description is the following: "This is a backup plan
* that performs a daily backup at 6pm and retains data for 3 months". The
* description must be at most 2048 characters.
*
* @var string
*/
public $description;
/**
* Optional. `etag` is returned from the service in the response. As a user of
* the service, you may provide an etag value in this field to prevent stale
* resources.
*
* @var string
*/
public $etag;
/**
* Optional. This collection of key/value pairs allows for custom labels to be
* supplied by the user. Example, {"tag": "Weekly"}.
*
* @var string[]
*/
public $labels;
/**
* Optional. Applicable only for CloudSQL resource_type. Configures how long
* logs will be stored. It is defined in “days”. This value should be greater
* than or equal to minimum enforced log retention duration of the backup
* vault.
*
* @var string
*/
public $logRetentionDays;
/**
* Optional. Optional field to configure the maximum number of days for which
* a backup can be retained. This field is only applicable for on-demand
* backups taken with custom retention value.
*
* @var int
*/
public $maxCustomOnDemandRetentionDays;
/**
* Output only. Identifier. The resource name of the `BackupPlan`. Format:
* `projects/{project}/locations/{location}/backupPlans/{backup_plan}`
*
* @var string
*/
public $name;
/**
* Required. The resource type to which the `BackupPlan` will be applied.
* Examples include, "compute.googleapis.com/Instance",
* "sqladmin.googleapis.com/Instance", "alloydb.googleapis.com/Cluster",
* "compute.googleapis.com/Disk".
*
* @var string
*/
public $resourceType;
/**
* Output only. The user friendly revision ID of the `BackupPlanRevision`.
* Example: v0, v1, v2, etc.
*
* @var string
*/
public $revisionId;
/**
* Output only. The resource id of the `BackupPlanRevision`. Format: `projects
* /{project}/locations/{location}/backupPlans/{backup_plan}/revisions/{revisi
* on_id}`
*
* @var string
*/
public $revisionName;
/**
* Output only. The `State` for the `BackupPlan`.
*
* @var string
*/
public $state;
/**
* Output only. All resource types to which backupPlan can be applied.
*
* @var string[]
*/
public $supportedResourceTypes;
/**
* Output only. When the `BackupPlan` was last updated.
*
* @var string
*/
public $updateTime;
/**
* Optional. The backup rules for this `BackupPlan`.
*
* @param BackupRule[] $backupRules
*/
public function setBackupRules($backupRules)
{
$this->backupRules = $backupRules;
}
/**
* @return BackupRule[]
*/
public function getBackupRules()
{
return $this->backupRules;
}
/**
* Required. Resource name of backup vault which will be used as storage
* location for backups. Format:
* projects/{project}/locations/{location}/backupVaults/{backupvault}
*
* @param string $backupVault
*/
public function setBackupVault($backupVault)
{
$this->backupVault = $backupVault;
}
/**
* @return string
*/
public function getBackupVault()
{
return $this->backupVault;
}
/**
* Output only. The Google Cloud Platform Service Account to be used by the
* BackupVault for taking backups. Specify the email address of the Backup
* Vault Service Account.
*
* @param string $backupVaultServiceAccount
*/
public function setBackupVaultServiceAccount($backupVaultServiceAccount)
{
$this->backupVaultServiceAccount = $backupVaultServiceAccount;
}
/**
* @return string
*/
public function getBackupVaultServiceAccount()
{
return $this->backupVaultServiceAccount;
}
/**
* Output only. When the `BackupPlan` was created.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* Optional. The description of the `BackupPlan` resource. The description
* allows for additional details about `BackupPlan` and its use cases to be
* provided. An example description is the following: "This is a backup plan
* that performs a daily backup at 6pm and retains data for 3 months". The
* description must be at most 2048 characters.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* Optional. `etag` is returned from the service in the response. As a user of
* the service, you may provide an etag value in this field to prevent stale
* resources.
*
* @param string $etag
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* Optional. This collection of key/value pairs allows for custom labels to be
* supplied by the user. Example, {"tag": "Weekly"}.
*
* @param string[] $labels
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* Optional. Applicable only for CloudSQL resource_type. Configures how long
* logs will be stored. It is defined in “days”. This value should be greater
* than or equal to minimum enforced log retention duration of the backup
* vault.
*
* @param string $logRetentionDays
*/
public function setLogRetentionDays($logRetentionDays)
{
$this->logRetentionDays = $logRetentionDays;
}
/**
* @return string
*/
public function getLogRetentionDays()
{
return $this->logRetentionDays;
}
/**
* Optional. Optional field to configure the maximum number of days for which
* a backup can be retained. This field is only applicable for on-demand
* backups taken with custom retention value.
*
* @param int $maxCustomOnDemandRetentionDays
*/
public function setMaxCustomOnDemandRetentionDays($maxCustomOnDemandRetentionDays)
{
$this->maxCustomOnDemandRetentionDays = $maxCustomOnDemandRetentionDays;
}
/**
* @return int
*/
public function getMaxCustomOnDemandRetentionDays()
{
return $this->maxCustomOnDemandRetentionDays;
}
/**
* Output only. Identifier. The resource name of the `BackupPlan`. Format:
* `projects/{project}/locations/{location}/backupPlans/{backup_plan}`
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Required. The resource type to which the `BackupPlan` will be applied.
* Examples include, "compute.googleapis.com/Instance",
* "sqladmin.googleapis.com/Instance", "alloydb.googleapis.com/Cluster",
* "compute.googleapis.com/Disk".
*
* @param string $resourceType
*/
public function setResourceType($resourceType)
{
$this->resourceType = $resourceType;
}
/**
* @return string
*/
public function getResourceType()
{
return $this->resourceType;
}
/**
* Output only. The user friendly revision ID of the `BackupPlanRevision`.
* Example: v0, v1, v2, etc.
*
* @param string $revisionId
*/
public function setRevisionId($revisionId)
{
$this->revisionId = $revisionId;
}
/**
* @return string
*/
public function getRevisionId()
{
return $this->revisionId;
}
/**
* Output only. The resource id of the `BackupPlanRevision`. Format: `projects
* /{project}/locations/{location}/backupPlans/{backup_plan}/revisions/{revisi
* on_id}`
*
* @param string $revisionName
*/
public function setRevisionName($revisionName)
{
$this->revisionName = $revisionName;
}
/**
* @return string
*/
public function getRevisionName()
{
return $this->revisionName;
}
/**
* Output only. The `State` for the `BackupPlan`.
*
* Accepted values: STATE_UNSPECIFIED, CREATING, ACTIVE, DELETING, INACTIVE,
* UPDATING
*
* @param self::STATE_* $state
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return self::STATE_*
*/
public function getState()
{
return $this->state;
}
/**
* Output only. All resource types to which backupPlan can be applied.
*
* @param string[] $supportedResourceTypes
*/
public function setSupportedResourceTypes($supportedResourceTypes)
{
$this->supportedResourceTypes = $supportedResourceTypes;
}
/**
* @return string[]
*/
public function getSupportedResourceTypes()
{
return $this->supportedResourceTypes;
}
/**
* Output only. When the `BackupPlan` 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_Backupdr_BackupPlan');

View File

@@ -0,0 +1,338 @@
<?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\Backupdr;
class BackupPlanAssociation extends \Google\Collection
{
/**
* State not set.
*/
public const STATE_STATE_UNSPECIFIED = 'STATE_UNSPECIFIED';
/**
* The resource is being created.
*/
public const STATE_CREATING = 'CREATING';
/**
* The resource has been created and is fully usable.
*/
public const STATE_ACTIVE = 'ACTIVE';
/**
* The resource is being deleted.
*/
public const STATE_DELETING = 'DELETING';
/**
* The resource has been created but is not usable.
*/
public const STATE_INACTIVE = 'INACTIVE';
/**
* The resource is being updated.
*/
public const STATE_UPDATING = 'UPDATING';
protected $collection_key = 'rulesConfigInfo';
/**
* Required. Resource name of backup plan which needs to be applied on
* workload. Format:
* projects/{project}/locations/{location}/backupPlans/{backupPlanId}
*
* @var string
*/
public $backupPlan;
/**
* Output only. The user friendly revision ID of the `BackupPlanRevision`.
* Example: v0, v1, v2, etc.
*
* @var string
*/
public $backupPlanRevisionId;
/**
* Output only. The resource id of the `BackupPlanRevision`. Format: `projects
* /{project}/locations/{location}/backupPlans/{backup_plan}/revisions/{revisi
* on_id}`
*
* @var string
*/
public $backupPlanRevisionName;
protected $cloudSqlInstanceBackupPlanAssociationPropertiesType = CloudSqlInstanceBackupPlanAssociationProperties::class;
protected $cloudSqlInstanceBackupPlanAssociationPropertiesDataType = '';
/**
* Output only. The time when the instance was created.
*
* @var string
*/
public $createTime;
/**
* Output only. Resource name of data source which will be used as storage
* location for backups taken. Format : projects/{project}/locations/{location
* }/backupVaults/{backupvault}/dataSources/{datasource}
*
* @var string
*/
public $dataSource;
/**
* Output only. Identifier. The resource name of BackupPlanAssociation in
* below format Format : projects/{project}/locations/{location}/backupPlanAss
* ociations/{backupPlanAssociationId}
*
* @var string
*/
public $name;
/**
* Required. Immutable. Resource name of workload on which the backup plan is
* applied. The format can either be the resource name (e.g., "projects/my-
* project/zones/us-central1-a/instances/my-instance") or the full resource
* URI (e.g., "https://www.googleapis.com/compute/v1/projects/my-
* project/zones/us-central1-a/instances/my-instance").
*
* @var string
*/
public $resource;
/**
* Required. Immutable. Resource type of workload on which backupplan is
* applied
*
* @var string
*/
public $resourceType;
protected $rulesConfigInfoType = RuleConfigInfo::class;
protected $rulesConfigInfoDataType = 'array';
/**
* Output only. The BackupPlanAssociation resource state.
*
* @var string
*/
public $state;
/**
* Output only. The time when the instance was updated.
*
* @var string
*/
public $updateTime;
/**
* Required. Resource name of backup plan which needs to be applied on
* workload. Format:
* projects/{project}/locations/{location}/backupPlans/{backupPlanId}
*
* @param string $backupPlan
*/
public function setBackupPlan($backupPlan)
{
$this->backupPlan = $backupPlan;
}
/**
* @return string
*/
public function getBackupPlan()
{
return $this->backupPlan;
}
/**
* Output only. The user friendly revision ID of the `BackupPlanRevision`.
* Example: v0, v1, v2, etc.
*
* @param string $backupPlanRevisionId
*/
public function setBackupPlanRevisionId($backupPlanRevisionId)
{
$this->backupPlanRevisionId = $backupPlanRevisionId;
}
/**
* @return string
*/
public function getBackupPlanRevisionId()
{
return $this->backupPlanRevisionId;
}
/**
* Output only. The resource id of the `BackupPlanRevision`. Format: `projects
* /{project}/locations/{location}/backupPlans/{backup_plan}/revisions/{revisi
* on_id}`
*
* @param string $backupPlanRevisionName
*/
public function setBackupPlanRevisionName($backupPlanRevisionName)
{
$this->backupPlanRevisionName = $backupPlanRevisionName;
}
/**
* @return string
*/
public function getBackupPlanRevisionName()
{
return $this->backupPlanRevisionName;
}
/**
* Output only. Cloud SQL instance's backup plan association properties.
*
* @param CloudSqlInstanceBackupPlanAssociationProperties $cloudSqlInstanceBackupPlanAssociationProperties
*/
public function setCloudSqlInstanceBackupPlanAssociationProperties(CloudSqlInstanceBackupPlanAssociationProperties $cloudSqlInstanceBackupPlanAssociationProperties)
{
$this->cloudSqlInstanceBackupPlanAssociationProperties = $cloudSqlInstanceBackupPlanAssociationProperties;
}
/**
* @return CloudSqlInstanceBackupPlanAssociationProperties
*/
public function getCloudSqlInstanceBackupPlanAssociationProperties()
{
return $this->cloudSqlInstanceBackupPlanAssociationProperties;
}
/**
* Output only. The time when the instance was created.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* Output only. Resource name of data source which will be used as storage
* location for backups taken. Format : projects/{project}/locations/{location
* }/backupVaults/{backupvault}/dataSources/{datasource}
*
* @param string $dataSource
*/
public function setDataSource($dataSource)
{
$this->dataSource = $dataSource;
}
/**
* @return string
*/
public function getDataSource()
{
return $this->dataSource;
}
/**
* Output only. Identifier. The resource name of BackupPlanAssociation in
* below format Format : projects/{project}/locations/{location}/backupPlanAss
* ociations/{backupPlanAssociationId}
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Required. Immutable. Resource name of workload on which the backup plan is
* applied. The format can either be the resource name (e.g., "projects/my-
* project/zones/us-central1-a/instances/my-instance") or the full resource
* URI (e.g., "https://www.googleapis.com/compute/v1/projects/my-
* project/zones/us-central1-a/instances/my-instance").
*
* @param string $resource
*/
public function setResource($resource)
{
$this->resource = $resource;
}
/**
* @return string
*/
public function getResource()
{
return $this->resource;
}
/**
* Required. Immutable. Resource type of workload on which backupplan is
* applied
*
* @param string $resourceType
*/
public function setResourceType($resourceType)
{
$this->resourceType = $resourceType;
}
/**
* @return string
*/
public function getResourceType()
{
return $this->resourceType;
}
/**
* Output only. The config info related to backup rules.
*
* @param RuleConfigInfo[] $rulesConfigInfo
*/
public function setRulesConfigInfo($rulesConfigInfo)
{
$this->rulesConfigInfo = $rulesConfigInfo;
}
/**
* @return RuleConfigInfo[]
*/
public function getRulesConfigInfo()
{
return $this->rulesConfigInfo;
}
/**
* Output only. The BackupPlanAssociation resource state.
*
* Accepted values: STATE_UNSPECIFIED, CREATING, ACTIVE, DELETING, INACTIVE,
* UPDATING
*
* @param self::STATE_* $state
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return self::STATE_*
*/
public function getState()
{
return $this->state;
}
/**
* Output only. The time when the instance was 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(BackupPlanAssociation::class, 'Google_Service_Backupdr_BackupPlanAssociation');

View File

@@ -0,0 +1,160 @@
<?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\Backupdr;
class BackupPlanRevision extends \Google\Model
{
/**
* State not set.
*/
public const STATE_STATE_UNSPECIFIED = 'STATE_UNSPECIFIED';
/**
* The resource is being created.
*/
public const STATE_CREATING = 'CREATING';
/**
* The resource has been created and is fully usable.
*/
public const STATE_ACTIVE = 'ACTIVE';
/**
* The resource is being deleted.
*/
public const STATE_DELETING = 'DELETING';
/**
* The resource has been created but is not usable.
*/
public const STATE_INACTIVE = 'INACTIVE';
protected $backupPlanSnapshotType = BackupPlan::class;
protected $backupPlanSnapshotDataType = '';
/**
* Output only. The timestamp that the revision was created.
*
* @var string
*/
public $createTime;
/**
* Output only. Identifier. The resource name of the `BackupPlanRevision`.
* Format: `projects/{project}/locations/{location}/backupPlans/{backup_plan}/
* revisions/{revision}`
*
* @var string
*/
public $name;
/**
* Output only. The user friendly revision ID of the `BackupPlanRevision`.
* Example: v0, v1, v2, etc.
*
* @var string
*/
public $revisionId;
/**
* Output only. Resource State
*
* @var string
*/
public $state;
/**
* The Backup Plan being encompassed by this revision.
*
* @param BackupPlan $backupPlanSnapshot
*/
public function setBackupPlanSnapshot(BackupPlan $backupPlanSnapshot)
{
$this->backupPlanSnapshot = $backupPlanSnapshot;
}
/**
* @return BackupPlan
*/
public function getBackupPlanSnapshot()
{
return $this->backupPlanSnapshot;
}
/**
* Output only. The timestamp that the revision was created.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* Output only. Identifier. The resource name of the `BackupPlanRevision`.
* Format: `projects/{project}/locations/{location}/backupPlans/{backup_plan}/
* revisions/{revision}`
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Output only. The user friendly revision ID of the `BackupPlanRevision`.
* Example: v0, v1, v2, etc.
*
* @param string $revisionId
*/
public function setRevisionId($revisionId)
{
$this->revisionId = $revisionId;
}
/**
* @return string
*/
public function getRevisionId()
{
return $this->revisionId;
}
/**
* Output only. Resource State
*
* Accepted values: STATE_UNSPECIFIED, CREATING, ACTIVE, DELETING, INACTIVE
*
* @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(BackupPlanRevision::class, 'Google_Service_Backupdr_BackupPlanRevision');

View File

@@ -0,0 +1,107 @@
<?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\Backupdr;
class BackupRule extends \Google\Model
{
/**
* Required. Configures the duration for which backup data will be kept. It is
* defined in “days”. The value should be greater than or equal to minimum
* enforced retention of the backup vault. Minimum value is 1 and maximum
* value is 36159 for custom retention on-demand backup. Minimum and maximum
* values are workload specific for all other rules. Note: Longer retention
* can lead to higher storage costs post introductory trial. We recommend
* starting with a short duration of 3 days or less.
*
* @var int
*/
public $backupRetentionDays;
/**
* Required. Immutable. The unique id of this `BackupRule`. The `rule_id` is
* unique per `BackupPlan`.The `rule_id` must start with a lowercase letter
* followed by up to 62 lowercase letters, numbers, or hyphens. Pattern,
* /a-z{,62}/.
*
* @var string
*/
public $ruleId;
protected $standardScheduleType = StandardSchedule::class;
protected $standardScheduleDataType = '';
/**
* Required. Configures the duration for which backup data will be kept. It is
* defined in “days”. The value should be greater than or equal to minimum
* enforced retention of the backup vault. Minimum value is 1 and maximum
* value is 36159 for custom retention on-demand backup. Minimum and maximum
* values are workload specific for all other rules. Note: Longer retention
* can lead to higher storage costs post introductory trial. We recommend
* starting with a short duration of 3 days or less.
*
* @param int $backupRetentionDays
*/
public function setBackupRetentionDays($backupRetentionDays)
{
$this->backupRetentionDays = $backupRetentionDays;
}
/**
* @return int
*/
public function getBackupRetentionDays()
{
return $this->backupRetentionDays;
}
/**
* Required. Immutable. The unique id of this `BackupRule`. The `rule_id` is
* unique per `BackupPlan`.The `rule_id` must start with a lowercase letter
* followed by up to 62 lowercase letters, numbers, or hyphens. Pattern,
* /a-z{,62}/.
*
* @param string $ruleId
*/
public function setRuleId($ruleId)
{
$this->ruleId = $ruleId;
}
/**
* @return string
*/
public function getRuleId()
{
return $this->ruleId;
}
/**
* Optional. Defines a schedule that runs within the confines of a defined
* window of time.
*
* @param StandardSchedule $standardSchedule
*/
public function setStandardSchedule(StandardSchedule $standardSchedule)
{
$this->standardSchedule = $standardSchedule;
}
/**
* @return StandardSchedule
*/
public function getStandardSchedule()
{
return $this->standardSchedule;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BackupRule::class, 'Google_Service_Backupdr_BackupRule');

View File

@@ -0,0 +1,527 @@
<?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\Backupdr;
class BackupVault extends \Google\Model
{
/**
* Access restriction not set. If user does not provide any value or pass this
* value, it will be changed to WITHIN_ORGANIZATION.
*/
public const ACCESS_RESTRICTION_ACCESS_RESTRICTION_UNSPECIFIED = 'ACCESS_RESTRICTION_UNSPECIFIED';
/**
* Access to or from resources outside your current project will be denied.
*/
public const ACCESS_RESTRICTION_WITHIN_PROJECT = 'WITHIN_PROJECT';
/**
* Access to or from resources outside your current organization will be
* denied.
*/
public const ACCESS_RESTRICTION_WITHIN_ORGANIZATION = 'WITHIN_ORGANIZATION';
/**
* No access restriction.
*/
public const ACCESS_RESTRICTION_UNRESTRICTED = 'UNRESTRICTED';
/**
* Access to or from resources outside your current organization will be
* denied except for backup appliance.
*/
public const ACCESS_RESTRICTION_WITHIN_ORG_BUT_UNRESTRICTED_FOR_BA = 'WITHIN_ORG_BUT_UNRESTRICTED_FOR_BA';
/**
* Inheritance behavior not set. This will default to
* `INHERIT_VAULT_RETENTION`.
*/
public const BACKUP_RETENTION_INHERITANCE_BACKUP_RETENTION_INHERITANCE_UNSPECIFIED = 'BACKUP_RETENTION_INHERITANCE_UNSPECIFIED';
/**
* The enforced retention end time of a backup will be inherited from the
* backup vault's `backup_minimum_enforced_retention_duration` field. This is
* the default behavior.
*/
public const BACKUP_RETENTION_INHERITANCE_INHERIT_VAULT_RETENTION = 'INHERIT_VAULT_RETENTION';
/**
* The enforced retention end time of a backup will always match the expire
* time of the backup. If this is set, the backup's enforced retention end
* time will be set to match the expire time during creation of the backup.
* When updating, the ERET and expire time must be updated together and have
* the same value. Invalid update requests will be rejected by the server.
*/
public const BACKUP_RETENTION_INHERITANCE_MATCH_BACKUP_EXPIRE_TIME = 'MATCH_BACKUP_EXPIRE_TIME';
/**
* State not set.
*/
public const STATE_STATE_UNSPECIFIED = 'STATE_UNSPECIFIED';
/**
* The backup vault is being created.
*/
public const STATE_CREATING = 'CREATING';
/**
* The backup vault has been created and is fully usable.
*/
public const STATE_ACTIVE = 'ACTIVE';
/**
* The backup vault is being deleted.
*/
public const STATE_DELETING = 'DELETING';
/**
* The backup vault is experiencing an issue and might be unusable.
*/
public const STATE_ERROR = 'ERROR';
/**
* The backup vault is being updated.
*/
public const STATE_UPDATING = 'UPDATING';
/**
* Optional. Note: This field is added for future use case and will not be
* supported in the current release. Access restriction for the backup vault.
* Default value is WITHIN_ORGANIZATION if not provided during creation.
*
* @var string
*/
public $accessRestriction;
/**
* Optional. User annotations. See https://google.aip.dev/128#annotations
* Stores small amounts of arbitrary data.
*
* @var string[]
*/
public $annotations;
/**
* Output only. The number of backups in this backup vault.
*
* @var string
*/
public $backupCount;
/**
* Required. The default and minimum enforced retention for each backup within
* the backup vault. The enforced retention for each backup can be extended.
* Note: Longer minimum enforced retention period impacts potential storage
* costs post introductory trial. We recommend starting with a short duration
* of 3 days or less.
*
* @var string
*/
public $backupMinimumEnforcedRetentionDuration;
/**
* Optional. Setting for how a backup's enforced retention end time is
* inherited.
*
* @var string
*/
public $backupRetentionInheritance;
/**
* Output only. The time when the instance was created.
*
* @var string
*/
public $createTime;
/**
* Output only. Set to true when there are no backups nested under this
* resource.
*
* @var bool
*/
public $deletable;
/**
* Optional. The description of the BackupVault instance (2048 characters or
* less).
*
* @var string
*/
public $description;
/**
* Optional. Time after which the BackupVault resource is locked.
*
* @var string
*/
public $effectiveTime;
protected $encryptionConfigType = EncryptionConfig::class;
protected $encryptionConfigDataType = '';
/**
* Optional. Server specified ETag for the backup vault resource to prevent
* simultaneous updates from overwiting each other.
*
* @var string
*/
public $etag;
/**
* Optional. Resource labels to represent user provided metadata. No labels
* currently defined:
*
* @var string[]
*/
public $labels;
/**
* Output only. Identifier. Name of the backup vault to create. It must have
* the format`"projects/{project}/locations/{location}/backupVaults/{backupvau
* lt}"`. `{backupvault}` cannot be changed after creation. It must be between
* 3-63 characters long and must be unique within the project and location.
*
* @var string
*/
public $name;
/**
* Output only. Service account used by the BackupVault Service for this
* BackupVault. The user should grant this account permissions in their
* workload project to enable the service to run backups and restores there.
*
* @var string
*/
public $serviceAccount;
/**
* Output only. The BackupVault resource instance state.
*
* @var string
*/
public $state;
/**
* Output only. Total size of the storage used by all backup resources.
*
* @var string
*/
public $totalStoredBytes;
/**
* Output only. Immutable after resource creation until resource deletion.
*
* @var string
*/
public $uid;
/**
* Output only. The time when the instance was updated.
*
* @var string
*/
public $updateTime;
/**
* Optional. Note: This field is added for future use case and will not be
* supported in the current release. Access restriction for the backup vault.
* Default value is WITHIN_ORGANIZATION if not provided during creation.
*
* Accepted values: ACCESS_RESTRICTION_UNSPECIFIED, WITHIN_PROJECT,
* WITHIN_ORGANIZATION, UNRESTRICTED, WITHIN_ORG_BUT_UNRESTRICTED_FOR_BA
*
* @param self::ACCESS_RESTRICTION_* $accessRestriction
*/
public function setAccessRestriction($accessRestriction)
{
$this->accessRestriction = $accessRestriction;
}
/**
* @return self::ACCESS_RESTRICTION_*
*/
public function getAccessRestriction()
{
return $this->accessRestriction;
}
/**
* Optional. User annotations. See https://google.aip.dev/128#annotations
* Stores small amounts of arbitrary data.
*
* @param string[] $annotations
*/
public function setAnnotations($annotations)
{
$this->annotations = $annotations;
}
/**
* @return string[]
*/
public function getAnnotations()
{
return $this->annotations;
}
/**
* Output only. The number of backups in this backup vault.
*
* @param string $backupCount
*/
public function setBackupCount($backupCount)
{
$this->backupCount = $backupCount;
}
/**
* @return string
*/
public function getBackupCount()
{
return $this->backupCount;
}
/**
* Required. The default and minimum enforced retention for each backup within
* the backup vault. The enforced retention for each backup can be extended.
* Note: Longer minimum enforced retention period impacts potential storage
* costs post introductory trial. We recommend starting with a short duration
* of 3 days or less.
*
* @param string $backupMinimumEnforcedRetentionDuration
*/
public function setBackupMinimumEnforcedRetentionDuration($backupMinimumEnforcedRetentionDuration)
{
$this->backupMinimumEnforcedRetentionDuration = $backupMinimumEnforcedRetentionDuration;
}
/**
* @return string
*/
public function getBackupMinimumEnforcedRetentionDuration()
{
return $this->backupMinimumEnforcedRetentionDuration;
}
/**
* Optional. Setting for how a backup's enforced retention end time is
* inherited.
*
* Accepted values: BACKUP_RETENTION_INHERITANCE_UNSPECIFIED,
* INHERIT_VAULT_RETENTION, MATCH_BACKUP_EXPIRE_TIME
*
* @param self::BACKUP_RETENTION_INHERITANCE_* $backupRetentionInheritance
*/
public function setBackupRetentionInheritance($backupRetentionInheritance)
{
$this->backupRetentionInheritance = $backupRetentionInheritance;
}
/**
* @return self::BACKUP_RETENTION_INHERITANCE_*
*/
public function getBackupRetentionInheritance()
{
return $this->backupRetentionInheritance;
}
/**
* Output only. The time when the instance was created.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* Output only. Set to true when there are no backups nested under this
* resource.
*
* @param bool $deletable
*/
public function setDeletable($deletable)
{
$this->deletable = $deletable;
}
/**
* @return bool
*/
public function getDeletable()
{
return $this->deletable;
}
/**
* Optional. The description of the BackupVault instance (2048 characters or
* less).
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* Optional. Time after which the BackupVault resource is locked.
*
* @param string $effectiveTime
*/
public function setEffectiveTime($effectiveTime)
{
$this->effectiveTime = $effectiveTime;
}
/**
* @return string
*/
public function getEffectiveTime()
{
return $this->effectiveTime;
}
/**
* Optional. The encryption config of the backup vault.
*
* @param EncryptionConfig $encryptionConfig
*/
public function setEncryptionConfig(EncryptionConfig $encryptionConfig)
{
$this->encryptionConfig = $encryptionConfig;
}
/**
* @return EncryptionConfig
*/
public function getEncryptionConfig()
{
return $this->encryptionConfig;
}
/**
* Optional. Server specified ETag for the backup vault resource to prevent
* simultaneous updates from overwiting each other.
*
* @param string $etag
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* Optional. Resource labels to represent user provided metadata. No labels
* currently defined:
*
* @param string[] $labels
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* Output only. Identifier. Name of the backup vault to create. It must have
* the format`"projects/{project}/locations/{location}/backupVaults/{backupvau
* lt}"`. `{backupvault}` cannot be changed after creation. It must be between
* 3-63 characters long and must be unique within the project and location.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Output only. Service account used by the BackupVault Service for this
* BackupVault. The user should grant this account permissions in their
* workload project to enable the service to run backups and restores there.
*
* @param string $serviceAccount
*/
public function setServiceAccount($serviceAccount)
{
$this->serviceAccount = $serviceAccount;
}
/**
* @return string
*/
public function getServiceAccount()
{
return $this->serviceAccount;
}
/**
* Output only. The BackupVault resource instance state.
*
* Accepted values: STATE_UNSPECIFIED, CREATING, ACTIVE, DELETING, ERROR,
* UPDATING
*
* @param self::STATE_* $state
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return self::STATE_*
*/
public function getState()
{
return $this->state;
}
/**
* Output only. Total size of the storage used by all backup resources.
*
* @param string $totalStoredBytes
*/
public function setTotalStoredBytes($totalStoredBytes)
{
$this->totalStoredBytes = $totalStoredBytes;
}
/**
* @return string
*/
public function getTotalStoredBytes()
{
return $this->totalStoredBytes;
}
/**
* Output only. Immutable after resource creation until resource deletion.
*
* @param string $uid
*/
public function setUid($uid)
{
$this->uid = $uid;
}
/**
* @return string
*/
public function getUid()
{
return $this->uid;
}
/**
* Output only. The time when the instance was 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(BackupVault::class, 'Google_Service_Backupdr_BackupVault');

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\Backupdr;
class BackupWindow extends \Google\Model
{
/**
* Required. The hour of day (1-24) when the window end for e.g. if value of
* end hour of day is 10 that mean backup window end time is 10:00. End hour
* of day should be greater than start hour of day. 0 <= start_hour_of_day <
* end_hour_of_day <= 24 End hour of day is not include in backup window that
* mean if end_hour_of_day= 10 jobs should start before 10:00.
*
* @var int
*/
public $endHourOfDay;
/**
* Required. The hour of day (0-23) when the window starts for e.g. if value
* of start hour of day is 6 that mean backup window start at 6:00.
*
* @var int
*/
public $startHourOfDay;
/**
* Required. The hour of day (1-24) when the window end for e.g. if value of
* end hour of day is 10 that mean backup window end time is 10:00. End hour
* of day should be greater than start hour of day. 0 <= start_hour_of_day <
* end_hour_of_day <= 24 End hour of day is not include in backup window that
* mean if end_hour_of_day= 10 jobs should start before 10:00.
*
* @param int $endHourOfDay
*/
public function setEndHourOfDay($endHourOfDay)
{
$this->endHourOfDay = $endHourOfDay;
}
/**
* @return int
*/
public function getEndHourOfDay()
{
return $this->endHourOfDay;
}
/**
* Required. The hour of day (0-23) when the window starts for e.g. if value
* of start hour of day is 6 that mean backup window start at 6:00.
*
* @param int $startHourOfDay
*/
public function setStartHourOfDay($startHourOfDay)
{
$this->startHourOfDay = $startHourOfDay;
}
/**
* @return int
*/
public function getStartHourOfDay()
{
return $this->startHourOfDay;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BackupWindow::class, 'Google_Service_Backupdr_BackupWindow');

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\Backupdr;
class BackupdrEmpty extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BackupdrEmpty::class, 'Google_Service_Backupdr_BackupdrEmpty');

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\Backupdr;
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_Backupdr_Binding');

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\Backupdr;
class BlobstoreLocation extends \Google\Collection
{
protected $collection_key = 'policyId';
/**
* @var string[]
*/
public $policyId;
/**
* @param string[]
*/
public function setPolicyId($policyId)
{
$this->policyId = $policyId;
}
/**
* @return string[]
*/
public function getPolicyId()
{
return $this->policyId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BlobstoreLocation::class, 'Google_Service_Backupdr_BlobstoreLocation');

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\Backupdr;
class CancelOperationRequest extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CancelOperationRequest::class, 'Google_Service_Backupdr_CancelOperationRequest');

View File

@@ -0,0 +1,62 @@
<?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\Backupdr;
class CloudAsset extends \Google\Model
{
/**
* @var string
*/
public $assetName;
/**
* @var string
*/
public $assetType;
/**
* @param string
*/
public function setAssetName($assetName)
{
$this->assetName = $assetName;
}
/**
* @return string
*/
public function getAssetName()
{
return $this->assetName;
}
/**
* @param string
*/
public function setAssetType($assetType)
{
$this->assetType = $assetType;
}
/**
* @return string
*/
public function getAssetType()
{
return $this->assetType;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CloudAsset::class, 'Google_Service_Backupdr_CloudAsset');

View File

@@ -0,0 +1,43 @@
<?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\Backupdr;
class CloudAssetComposition extends \Google\Collection
{
protected $collection_key = 'childAsset';
protected $childAssetType = CloudAsset::class;
protected $childAssetDataType = 'array';
/**
* @param CloudAsset[]
*/
public function setChildAsset($childAsset)
{
$this->childAsset = $childAsset;
}
/**
* @return CloudAsset[]
*/
public function getChildAsset()
{
return $this->childAsset;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CloudAssetComposition::class, 'Google_Service_Backupdr_CloudAssetComposition');

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\Backupdr;
class CloudSqlInstanceBackupPlanAssociationProperties extends \Google\Model
{
/**
* Output only. The time when the instance was created.
*
* @var string
*/
public $instanceCreateTime;
/**
* Output only. The time when the instance was created.
*
* @param string $instanceCreateTime
*/
public function setInstanceCreateTime($instanceCreateTime)
{
$this->instanceCreateTime = $instanceCreateTime;
}
/**
* @return string
*/
public function getInstanceCreateTime()
{
return $this->instanceCreateTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CloudSqlInstanceBackupPlanAssociationProperties::class, 'Google_Service_Backupdr_CloudSqlInstanceBackupPlanAssociationProperties');

View File

@@ -0,0 +1,164 @@
<?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\Backupdr;
class CloudSqlInstanceBackupProperties extends \Google\Model
{
/**
* Output only. The installed database version of the Cloud SQL instance when
* the backup was taken.
*
* @var string
*/
public $databaseInstalledVersion;
/**
* Output only. Whether the backup is a final backup.
*
* @var bool
*/
public $finalBackup;
/**
* Output only. The instance creation timestamp.
*
* @var string
*/
public $instanceCreateTime;
/**
* Output only. The instance delete timestamp.
*
* @var string
*/
public $instanceDeleteTime;
/**
* Output only. The tier (or machine type) for this instance. Example: `db-
* custom-1-3840`
*
* @var string
*/
public $instanceTier;
/**
* Output only. The source instance of the backup. Format:
* projects/{project}/instances/{instance}
*
* @var string
*/
public $sourceInstance;
/**
* Output only. The installed database version of the Cloud SQL instance when
* the backup was taken.
*
* @param string $databaseInstalledVersion
*/
public function setDatabaseInstalledVersion($databaseInstalledVersion)
{
$this->databaseInstalledVersion = $databaseInstalledVersion;
}
/**
* @return string
*/
public function getDatabaseInstalledVersion()
{
return $this->databaseInstalledVersion;
}
/**
* Output only. Whether the backup is a final backup.
*
* @param bool $finalBackup
*/
public function setFinalBackup($finalBackup)
{
$this->finalBackup = $finalBackup;
}
/**
* @return bool
*/
public function getFinalBackup()
{
return $this->finalBackup;
}
/**
* Output only. The instance creation timestamp.
*
* @param string $instanceCreateTime
*/
public function setInstanceCreateTime($instanceCreateTime)
{
$this->instanceCreateTime = $instanceCreateTime;
}
/**
* @return string
*/
public function getInstanceCreateTime()
{
return $this->instanceCreateTime;
}
/**
* Output only. The instance delete timestamp.
*
* @param string $instanceDeleteTime
*/
public function setInstanceDeleteTime($instanceDeleteTime)
{
$this->instanceDeleteTime = $instanceDeleteTime;
}
/**
* @return string
*/
public function getInstanceDeleteTime()
{
return $this->instanceDeleteTime;
}
/**
* Output only. The tier (or machine type) for this instance. Example: `db-
* custom-1-3840`
*
* @param string $instanceTier
*/
public function setInstanceTier($instanceTier)
{
$this->instanceTier = $instanceTier;
}
/**
* @return string
*/
public function getInstanceTier()
{
return $this->instanceTier;
}
/**
* Output only. The source instance of the backup. Format:
* projects/{project}/instances/{instance}
*
* @param string $sourceInstance
*/
public function setSourceInstance($sourceInstance)
{
$this->sourceInstance = $sourceInstance;
}
/**
* @return string
*/
public function getSourceInstance()
{
return $this->sourceInstance;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CloudSqlInstanceBackupProperties::class, 'Google_Service_Backupdr_CloudSqlInstanceBackupProperties');

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\Backupdr;
class CloudSqlInstanceDataSourceProperties extends \Google\Model
{
/**
* Output only. The installed database version of the Cloud SQL instance.
*
* @var string
*/
public $databaseInstalledVersion;
/**
* Output only. The instance creation timestamp.
*
* @var string
*/
public $instanceCreateTime;
/**
* Output only. The tier (or machine type) for this instance. Example: `db-
* custom-1-3840`
*
* @var string
*/
public $instanceTier;
/**
* Output only. Name of the Cloud SQL instance backed up by the datasource.
* Format: projects/{project}/instances/{instance}
*
* @var string
*/
public $name;
/**
* Output only. The installed database version of the Cloud SQL instance.
*
* @param string $databaseInstalledVersion
*/
public function setDatabaseInstalledVersion($databaseInstalledVersion)
{
$this->databaseInstalledVersion = $databaseInstalledVersion;
}
/**
* @return string
*/
public function getDatabaseInstalledVersion()
{
return $this->databaseInstalledVersion;
}
/**
* Output only. The instance creation timestamp.
*
* @param string $instanceCreateTime
*/
public function setInstanceCreateTime($instanceCreateTime)
{
$this->instanceCreateTime = $instanceCreateTime;
}
/**
* @return string
*/
public function getInstanceCreateTime()
{
return $this->instanceCreateTime;
}
/**
* Output only. The tier (or machine type) for this instance. Example: `db-
* custom-1-3840`
*
* @param string $instanceTier
*/
public function setInstanceTier($instanceTier)
{
$this->instanceTier = $instanceTier;
}
/**
* @return string
*/
public function getInstanceTier()
{
return $this->instanceTier;
}
/**
* Output only. Name of the Cloud SQL instance backed up by the datasource.
* Format: projects/{project}/instances/{instance}
*
* @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(CloudSqlInstanceDataSourceProperties::class, 'Google_Service_Backupdr_CloudSqlInstanceDataSourceProperties');

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\Backupdr;
class CloudSqlInstanceDataSourceReferenceProperties extends \Google\Model
{
/**
* Output only. The installed database version of the Cloud SQL instance.
*
* @var string
*/
public $databaseInstalledVersion;
/**
* Output only. The instance creation timestamp.
*
* @var string
*/
public $instanceCreateTime;
/**
* Output only. The tier (or machine type) for this instance. Example: `db-
* custom-1-3840`
*
* @var string
*/
public $instanceTier;
/**
* Output only. Name of the Cloud SQL instance backed up by the datasource.
* Format: projects/{project}/instances/{instance}
*
* @var string
*/
public $name;
/**
* Output only. The installed database version of the Cloud SQL instance.
*
* @param string $databaseInstalledVersion
*/
public function setDatabaseInstalledVersion($databaseInstalledVersion)
{
$this->databaseInstalledVersion = $databaseInstalledVersion;
}
/**
* @return string
*/
public function getDatabaseInstalledVersion()
{
return $this->databaseInstalledVersion;
}
/**
* Output only. The instance creation timestamp.
*
* @param string $instanceCreateTime
*/
public function setInstanceCreateTime($instanceCreateTime)
{
$this->instanceCreateTime = $instanceCreateTime;
}
/**
* @return string
*/
public function getInstanceCreateTime()
{
return $this->instanceCreateTime;
}
/**
* Output only. The tier (or machine type) for this instance. Example: `db-
* custom-1-3840`
*
* @param string $instanceTier
*/
public function setInstanceTier($instanceTier)
{
$this->instanceTier = $instanceTier;
}
/**
* @return string
*/
public function getInstanceTier()
{
return $this->instanceTier;
}
/**
* Output only. Name of the Cloud SQL instance backed up by the datasource.
* Format: projects/{project}/instances/{instance}
*
* @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(CloudSqlInstanceDataSourceReferenceProperties::class, 'Google_Service_Backupdr_CloudSqlInstanceDataSourceReferenceProperties');

View File

@@ -0,0 +1,62 @@
<?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\Backupdr;
class CloudSqlInstanceInitializationConfig extends \Google\Model
{
/**
* Unspecified edition.
*/
public const EDITION_EDITION_UNSPECIFIED = 'EDITION_UNSPECIFIED';
/**
* Enterprise edition.
*/
public const EDITION_ENTERPRISE = 'ENTERPRISE';
/**
* Enterprise Plus edition.
*/
public const EDITION_ENTERPRISE_PLUS = 'ENTERPRISE_PLUS';
/**
* Required. The edition of the Cloud SQL instance.
*
* @var string
*/
public $edition;
/**
* Required. The edition of the Cloud SQL instance.
*
* Accepted values: EDITION_UNSPECIFIED, ENTERPRISE, ENTERPRISE_PLUS
*
* @param self::EDITION_* $edition
*/
public function setEdition($edition)
{
$this->edition = $edition;
}
/**
* @return self::EDITION_*
*/
public function getEdition()
{
return $this->edition;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CloudSqlInstanceInitializationConfig::class, 'Google_Service_Backupdr_CloudSqlInstanceInitializationConfig');

View File

@@ -0,0 +1,365 @@
<?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\Backupdr;
class ComputeInstanceBackupProperties extends \Google\Collection
{
/**
* Default value. This value is unused.
*/
public const KEY_REVOCATION_ACTION_TYPE_KEY_REVOCATION_ACTION_TYPE_UNSPECIFIED = 'KEY_REVOCATION_ACTION_TYPE_UNSPECIFIED';
/**
* Indicates user chose no operation.
*/
public const KEY_REVOCATION_ACTION_TYPE_NONE = 'NONE';
/**
* Indicates user chose to opt for VM shutdown on key revocation.
*/
public const KEY_REVOCATION_ACTION_TYPE_STOP = 'STOP';
protected $collection_key = 'serviceAccount';
/**
* Enables instances created based on these properties to send packets with
* source IP addresses other than their own and receive packets with
* destination IP addresses other than their own. If these instances will be
* used as an IP gateway or it will be set as the next-hop in a Route
* resource, specify `true`. If unsure, leave this set to `false`. See the
* https://cloud.google.com/vpc/docs/using-routes#canipforward documentation
* for more information.
*
* @var bool
*/
public $canIpForward;
/**
* An optional text description for the instances that are created from these
* properties.
*
* @var string
*/
public $description;
protected $diskType = AttachedDisk::class;
protected $diskDataType = 'array';
protected $guestAcceleratorType = AcceleratorConfig::class;
protected $guestAcceleratorDataType = 'array';
/**
* KeyRevocationActionType of the instance. Supported options are "STOP" and
* "NONE". The default value is "NONE" if it is not specified.
*
* @var string
*/
public $keyRevocationActionType;
/**
* Labels to apply to instances that are created from these properties.
*
* @var string[]
*/
public $labels;
/**
* The machine type to use for instances that are created from these
* properties.
*
* @var string
*/
public $machineType;
protected $metadataType = Metadata::class;
protected $metadataDataType = '';
/**
* Minimum cpu/platform to be used by instances. The instance may be scheduled
* on the specified or newer cpu/platform. Applicable values are the friendly
* names of CPU platforms, such as `minCpuPlatform: Intel Haswell` or
* `minCpuPlatform: Intel Sandy Bridge`. For more information, read
* https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform.
*
* @var string
*/
public $minCpuPlatform;
protected $networkInterfaceType = NetworkInterface::class;
protected $networkInterfaceDataType = 'array';
protected $schedulingType = Scheduling::class;
protected $schedulingDataType = '';
protected $serviceAccountType = ServiceAccount::class;
protected $serviceAccountDataType = 'array';
/**
* The source instance used to create this backup. This can be a partial or
* full URL to the resource. For example, the following are valid values: -htt
* ps://www.googleapis.com/compute/v1/projects/project/zones/zone/instances/in
* stance -projects/project/zones/zone/instances/instance
*
* @var string
*/
public $sourceInstance;
protected $tagsType = Tags::class;
protected $tagsDataType = '';
/**
* Enables instances created based on these properties to send packets with
* source IP addresses other than their own and receive packets with
* destination IP addresses other than their own. If these instances will be
* used as an IP gateway or it will be set as the next-hop in a Route
* resource, specify `true`. If unsure, leave this set to `false`. See the
* https://cloud.google.com/vpc/docs/using-routes#canipforward documentation
* for more information.
*
* @param bool $canIpForward
*/
public function setCanIpForward($canIpForward)
{
$this->canIpForward = $canIpForward;
}
/**
* @return bool
*/
public function getCanIpForward()
{
return $this->canIpForward;
}
/**
* An optional text description for the instances that are created from these
* properties.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* An array of disks that are associated with the instances that are created
* from these properties.
*
* @param AttachedDisk[] $disk
*/
public function setDisk($disk)
{
$this->disk = $disk;
}
/**
* @return AttachedDisk[]
*/
public function getDisk()
{
return $this->disk;
}
/**
* A list of guest accelerator cards' type and count to use for instances
* created from these properties.
*
* @param AcceleratorConfig[] $guestAccelerator
*/
public function setGuestAccelerator($guestAccelerator)
{
$this->guestAccelerator = $guestAccelerator;
}
/**
* @return AcceleratorConfig[]
*/
public function getGuestAccelerator()
{
return $this->guestAccelerator;
}
/**
* KeyRevocationActionType of the instance. Supported options are "STOP" and
* "NONE". The default value is "NONE" if it is not specified.
*
* Accepted values: KEY_REVOCATION_ACTION_TYPE_UNSPECIFIED, NONE, STOP
*
* @param self::KEY_REVOCATION_ACTION_TYPE_* $keyRevocationActionType
*/
public function setKeyRevocationActionType($keyRevocationActionType)
{
$this->keyRevocationActionType = $keyRevocationActionType;
}
/**
* @return self::KEY_REVOCATION_ACTION_TYPE_*
*/
public function getKeyRevocationActionType()
{
return $this->keyRevocationActionType;
}
/**
* Labels to apply to instances that are created from these properties.
*
* @param string[] $labels
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* The machine type to use for instances that are created from these
* properties.
*
* @param string $machineType
*/
public function setMachineType($machineType)
{
$this->machineType = $machineType;
}
/**
* @return string
*/
public function getMachineType()
{
return $this->machineType;
}
/**
* The metadata key/value pairs to assign to instances that are created from
* these properties. These pairs can consist of custom metadata or predefined
* keys. See https://cloud.google.com/compute/docs/metadata/overview for more
* information.
*
* @param Metadata $metadata
*/
public function setMetadata(Metadata $metadata)
{
$this->metadata = $metadata;
}
/**
* @return Metadata
*/
public function getMetadata()
{
return $this->metadata;
}
/**
* Minimum cpu/platform to be used by instances. The instance may be scheduled
* on the specified or newer cpu/platform. Applicable values are the friendly
* names of CPU platforms, such as `minCpuPlatform: Intel Haswell` or
* `minCpuPlatform: Intel Sandy Bridge`. For more information, read
* https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform.
*
* @param string $minCpuPlatform
*/
public function setMinCpuPlatform($minCpuPlatform)
{
$this->minCpuPlatform = $minCpuPlatform;
}
/**
* @return string
*/
public function getMinCpuPlatform()
{
return $this->minCpuPlatform;
}
/**
* An array of network access configurations for this interface.
*
* @param NetworkInterface[] $networkInterface
*/
public function setNetworkInterface($networkInterface)
{
$this->networkInterface = $networkInterface;
}
/**
* @return NetworkInterface[]
*/
public function getNetworkInterface()
{
return $this->networkInterface;
}
/**
* Specifies the scheduling options for the instances that are created from
* these properties.
*
* @param Scheduling $scheduling
*/
public function setScheduling(Scheduling $scheduling)
{
$this->scheduling = $scheduling;
}
/**
* @return Scheduling
*/
public function getScheduling()
{
return $this->scheduling;
}
/**
* A list of service accounts with specified scopes. Access tokens for these
* service accounts are available to the instances that are created from these
* properties. Use metadata queries to obtain the access tokens for these
* instances.
*
* @param ServiceAccount[] $serviceAccount
*/
public function setServiceAccount($serviceAccount)
{
$this->serviceAccount = $serviceAccount;
}
/**
* @return ServiceAccount[]
*/
public function getServiceAccount()
{
return $this->serviceAccount;
}
/**
* The source instance used to create this backup. This can be a partial or
* full URL to the resource. For example, the following are valid values: -htt
* ps://www.googleapis.com/compute/v1/projects/project/zones/zone/instances/in
* stance -projects/project/zones/zone/instances/instance
*
* @param string $sourceInstance
*/
public function setSourceInstance($sourceInstance)
{
$this->sourceInstance = $sourceInstance;
}
/**
* @return string
*/
public function getSourceInstance()
{
return $this->sourceInstance;
}
/**
* A list of tags to apply to the instances that are created from these
* properties. The tags identify valid sources or targets for network
* firewalls. The setTags method can modify this list of tags. Each tag within
* the list must comply with RFC1035 (https://www.ietf.org/rfc/rfc1035.txt).
*
* @param Tags $tags
*/
public function setTags(Tags $tags)
{
$this->tags = $tags;
}
/**
* @return Tags
*/
public function getTags()
{
return $this->tags;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ComputeInstanceBackupProperties::class, 'Google_Service_Backupdr_ComputeInstanceBackupProperties');

View File

@@ -0,0 +1,136 @@
<?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\Backupdr;
class ComputeInstanceDataSourceProperties extends \Google\Model
{
/**
* The description of the Compute Engine instance.
*
* @var string
*/
public $description;
/**
* The machine type of the instance.
*
* @var string
*/
public $machineType;
/**
* Name of the compute instance backed up by the datasource.
*
* @var string
*/
public $name;
/**
* The total number of disks attached to the Instance.
*
* @var string
*/
public $totalDiskCount;
/**
* The sum of all the disk sizes.
*
* @var string
*/
public $totalDiskSizeGb;
/**
* The description of the Compute Engine instance.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* The machine type of the instance.
*
* @param string $machineType
*/
public function setMachineType($machineType)
{
$this->machineType = $machineType;
}
/**
* @return string
*/
public function getMachineType()
{
return $this->machineType;
}
/**
* Name of the compute instance backed up by the datasource.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* The total number of disks attached to the Instance.
*
* @param string $totalDiskCount
*/
public function setTotalDiskCount($totalDiskCount)
{
$this->totalDiskCount = $totalDiskCount;
}
/**
* @return string
*/
public function getTotalDiskCount()
{
return $this->totalDiskCount;
}
/**
* The sum of all the disk sizes.
*
* @param string $totalDiskSizeGb
*/
public function setTotalDiskSizeGb($totalDiskSizeGb)
{
$this->totalDiskSizeGb = $totalDiskSizeGb;
}
/**
* @return string
*/
public function getTotalDiskSizeGb()
{
return $this->totalDiskSizeGb;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ComputeInstanceDataSourceProperties::class, 'Google_Service_Backupdr_ComputeInstanceDataSourceProperties');

View File

@@ -0,0 +1,591 @@
<?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\Backupdr;
class ComputeInstanceRestoreProperties extends \Google\Collection
{
/**
* Default value. This value is unused.
*/
public const KEY_REVOCATION_ACTION_TYPE_KEY_REVOCATION_ACTION_TYPE_UNSPECIFIED = 'KEY_REVOCATION_ACTION_TYPE_UNSPECIFIED';
/**
* Indicates user chose no operation.
*/
public const KEY_REVOCATION_ACTION_TYPE_NONE = 'NONE';
/**
* Indicates user chose to opt for VM shutdown on key revocation.
*/
public const KEY_REVOCATION_ACTION_TYPE_STOP = 'STOP';
/**
* Default value. This value is unused.
*/
public const PRIVATE_IPV6_GOOGLE_ACCESS_INSTANCE_PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED = 'INSTANCE_PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED';
/**
* Each network interface inherits PrivateIpv6GoogleAccess from its
* subnetwork.
*/
public const PRIVATE_IPV6_GOOGLE_ACCESS_INHERIT_FROM_SUBNETWORK = 'INHERIT_FROM_SUBNETWORK';
/**
* Outbound private IPv6 access from VMs in this subnet to Google services. If
* specified, the subnetwork who is attached to the instance's default network
* interface will be assigned an internal IPv6 prefix if it doesn't have
* before.
*/
public const PRIVATE_IPV6_GOOGLE_ACCESS_ENABLE_OUTBOUND_VM_ACCESS_TO_GOOGLE = 'ENABLE_OUTBOUND_VM_ACCESS_TO_GOOGLE';
/**
* Bidirectional private IPv6 access to/from Google services. If specified,
* the subnetwork who is attached to the instance's default network interface
* will be assigned an internal IPv6 prefix if it doesn't have before.
*/
public const PRIVATE_IPV6_GOOGLE_ACCESS_ENABLE_BIDIRECTIONAL_ACCESS_TO_GOOGLE = 'ENABLE_BIDIRECTIONAL_ACCESS_TO_GOOGLE';
protected $collection_key = 'serviceAccounts';
protected $advancedMachineFeaturesType = AdvancedMachineFeatures::class;
protected $advancedMachineFeaturesDataType = '';
/**
* Optional. Allows this instance to send and receive packets with non-
* matching destination or source IPs.
*
* @var bool
*/
public $canIpForward;
protected $confidentialInstanceConfigType = ConfidentialInstanceConfig::class;
protected $confidentialInstanceConfigDataType = '';
/**
* Optional. Whether the resource should be protected against deletion.
*
* @var bool
*/
public $deletionProtection;
/**
* Optional. An optional description of this resource. Provide this property
* when you create the resource.
*
* @var string
*/
public $description;
protected $disksType = AttachedDisk::class;
protected $disksDataType = 'array';
protected $displayDeviceType = DisplayDevice::class;
protected $displayDeviceDataType = '';
protected $guestAcceleratorsType = AcceleratorConfig::class;
protected $guestAcceleratorsDataType = 'array';
/**
* Optional. Specifies the hostname of the instance. The specified hostname
* must be RFC1035 compliant. If hostname is not specified, the default
* hostname is [INSTANCE_NAME].c.[PROJECT_ID].internal when using the global
* DNS, and [INSTANCE_NAME].[ZONE].c.[PROJECT_ID].internal when using zonal
* DNS.
*
* @var string
*/
public $hostname;
protected $instanceEncryptionKeyType = CustomerEncryptionKey::class;
protected $instanceEncryptionKeyDataType = '';
/**
* Optional. KeyRevocationActionType of the instance.
*
* @var string
*/
public $keyRevocationActionType;
/**
* Optional. Labels to apply to this instance.
*
* @var string[]
*/
public $labels;
/**
* Optional. Full or partial URL of the machine type resource to use for this
* instance.
*
* @var string
*/
public $machineType;
protected $metadataType = Metadata::class;
protected $metadataDataType = '';
/**
* Optional. Minimum CPU platform to use for this instance.
*
* @var string
*/
public $minCpuPlatform;
/**
* Required. Name of the compute instance.
*
* @var string
*/
public $name;
protected $networkInterfacesType = NetworkInterface::class;
protected $networkInterfacesDataType = 'array';
protected $networkPerformanceConfigType = NetworkPerformanceConfig::class;
protected $networkPerformanceConfigDataType = '';
protected $paramsType = InstanceParams::class;
protected $paramsDataType = '';
/**
* Optional. The private IPv6 google access type for the VM. If not specified,
* use INHERIT_FROM_SUBNETWORK as default.
*
* @var string
*/
public $privateIpv6GoogleAccess;
protected $reservationAffinityType = AllocationAffinity::class;
protected $reservationAffinityDataType = '';
/**
* Optional. Resource policies applied to this instance. By default, no
* resource policies will be applied.
*
* @var string[]
*/
public $resourcePolicies;
protected $schedulingType = Scheduling::class;
protected $schedulingDataType = '';
protected $serviceAccountsType = ServiceAccount::class;
protected $serviceAccountsDataType = 'array';
protected $tagsType = Tags::class;
protected $tagsDataType = '';
/**
* Optional. Controls for advanced machine-related behavior features.
*
* @param AdvancedMachineFeatures $advancedMachineFeatures
*/
public function setAdvancedMachineFeatures(AdvancedMachineFeatures $advancedMachineFeatures)
{
$this->advancedMachineFeatures = $advancedMachineFeatures;
}
/**
* @return AdvancedMachineFeatures
*/
public function getAdvancedMachineFeatures()
{
return $this->advancedMachineFeatures;
}
/**
* Optional. Allows this instance to send and receive packets with non-
* matching destination or source IPs.
*
* @param bool $canIpForward
*/
public function setCanIpForward($canIpForward)
{
$this->canIpForward = $canIpForward;
}
/**
* @return bool
*/
public function getCanIpForward()
{
return $this->canIpForward;
}
/**
* Optional. Controls Confidential compute options on the instance
*
* @param ConfidentialInstanceConfig $confidentialInstanceConfig
*/
public function setConfidentialInstanceConfig(ConfidentialInstanceConfig $confidentialInstanceConfig)
{
$this->confidentialInstanceConfig = $confidentialInstanceConfig;
}
/**
* @return ConfidentialInstanceConfig
*/
public function getConfidentialInstanceConfig()
{
return $this->confidentialInstanceConfig;
}
/**
* Optional. Whether the resource should be protected against deletion.
*
* @param bool $deletionProtection
*/
public function setDeletionProtection($deletionProtection)
{
$this->deletionProtection = $deletionProtection;
}
/**
* @return bool
*/
public function getDeletionProtection()
{
return $this->deletionProtection;
}
/**
* Optional. An optional description of this resource. Provide this property
* when you create the resource.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* Optional. Array of disks associated with this instance. Persistent disks
* must be created before you can assign them. Source regional persistent
* disks will be restored with default replica zones if not specified.
*
* @param AttachedDisk[] $disks
*/
public function setDisks($disks)
{
$this->disks = $disks;
}
/**
* @return AttachedDisk[]
*/
public function getDisks()
{
return $this->disks;
}
/**
* Optional. Enables display device for the instance.
*
* @param DisplayDevice $displayDevice
*/
public function setDisplayDevice(DisplayDevice $displayDevice)
{
$this->displayDevice = $displayDevice;
}
/**
* @return DisplayDevice
*/
public function getDisplayDevice()
{
return $this->displayDevice;
}
/**
* Optional. A list of the type and count of accelerator cards attached to the
* instance.
*
* @param AcceleratorConfig[] $guestAccelerators
*/
public function setGuestAccelerators($guestAccelerators)
{
$this->guestAccelerators = $guestAccelerators;
}
/**
* @return AcceleratorConfig[]
*/
public function getGuestAccelerators()
{
return $this->guestAccelerators;
}
/**
* Optional. Specifies the hostname of the instance. The specified hostname
* must be RFC1035 compliant. If hostname is not specified, the default
* hostname is [INSTANCE_NAME].c.[PROJECT_ID].internal when using the global
* DNS, and [INSTANCE_NAME].[ZONE].c.[PROJECT_ID].internal when using zonal
* DNS.
*
* @param string $hostname
*/
public function setHostname($hostname)
{
$this->hostname = $hostname;
}
/**
* @return string
*/
public function getHostname()
{
return $this->hostname;
}
/**
* Optional. Encrypts suspended data for an instance with a customer-managed
* encryption key.
*
* @param CustomerEncryptionKey $instanceEncryptionKey
*/
public function setInstanceEncryptionKey(CustomerEncryptionKey $instanceEncryptionKey)
{
$this->instanceEncryptionKey = $instanceEncryptionKey;
}
/**
* @return CustomerEncryptionKey
*/
public function getInstanceEncryptionKey()
{
return $this->instanceEncryptionKey;
}
/**
* Optional. KeyRevocationActionType of the instance.
*
* Accepted values: KEY_REVOCATION_ACTION_TYPE_UNSPECIFIED, NONE, STOP
*
* @param self::KEY_REVOCATION_ACTION_TYPE_* $keyRevocationActionType
*/
public function setKeyRevocationActionType($keyRevocationActionType)
{
$this->keyRevocationActionType = $keyRevocationActionType;
}
/**
* @return self::KEY_REVOCATION_ACTION_TYPE_*
*/
public function getKeyRevocationActionType()
{
return $this->keyRevocationActionType;
}
/**
* Optional. Labels to apply to this instance.
*
* @param string[] $labels
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* Optional. Full or partial URL of the machine type resource to use for this
* instance.
*
* @param string $machineType
*/
public function setMachineType($machineType)
{
$this->machineType = $machineType;
}
/**
* @return string
*/
public function getMachineType()
{
return $this->machineType;
}
/**
* Optional. This includes custom metadata and predefined keys.
*
* @param Metadata $metadata
*/
public function setMetadata(Metadata $metadata)
{
$this->metadata = $metadata;
}
/**
* @return Metadata
*/
public function getMetadata()
{
return $this->metadata;
}
/**
* Optional. Minimum CPU platform to use for this instance.
*
* @param string $minCpuPlatform
*/
public function setMinCpuPlatform($minCpuPlatform)
{
$this->minCpuPlatform = $minCpuPlatform;
}
/**
* @return string
*/
public function getMinCpuPlatform()
{
return $this->minCpuPlatform;
}
/**
* Required. Name of the compute instance.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Optional. An array of network configurations for this instance. These
* specify how interfaces are configured to interact with other network
* services, such as connecting to the internet. Multiple interfaces are
* supported per instance. Required to restore in different project or region.
*
* @param NetworkInterface[] $networkInterfaces
*/
public function setNetworkInterfaces($networkInterfaces)
{
$this->networkInterfaces = $networkInterfaces;
}
/**
* @return NetworkInterface[]
*/
public function getNetworkInterfaces()
{
return $this->networkInterfaces;
}
/**
* Optional. Configure network performance such as egress bandwidth tier.
*
* @param NetworkPerformanceConfig $networkPerformanceConfig
*/
public function setNetworkPerformanceConfig(NetworkPerformanceConfig $networkPerformanceConfig)
{
$this->networkPerformanceConfig = $networkPerformanceConfig;
}
/**
* @return NetworkPerformanceConfig
*/
public function getNetworkPerformanceConfig()
{
return $this->networkPerformanceConfig;
}
/**
* Input only. Additional params passed with the request, but not persisted as
* part of resource payload.
*
* @param InstanceParams $params
*/
public function setParams(InstanceParams $params)
{
$this->params = $params;
}
/**
* @return InstanceParams
*/
public function getParams()
{
return $this->params;
}
/**
* Optional. The private IPv6 google access type for the VM. If not specified,
* use INHERIT_FROM_SUBNETWORK as default.
*
* Accepted values: INSTANCE_PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED,
* INHERIT_FROM_SUBNETWORK, ENABLE_OUTBOUND_VM_ACCESS_TO_GOOGLE,
* ENABLE_BIDIRECTIONAL_ACCESS_TO_GOOGLE
*
* @param self::PRIVATE_IPV6_GOOGLE_ACCESS_* $privateIpv6GoogleAccess
*/
public function setPrivateIpv6GoogleAccess($privateIpv6GoogleAccess)
{
$this->privateIpv6GoogleAccess = $privateIpv6GoogleAccess;
}
/**
* @return self::PRIVATE_IPV6_GOOGLE_ACCESS_*
*/
public function getPrivateIpv6GoogleAccess()
{
return $this->privateIpv6GoogleAccess;
}
/**
* Optional. Specifies the reservations that this instance can consume from.
*
* @param AllocationAffinity $reservationAffinity
*/
public function setReservationAffinity(AllocationAffinity $reservationAffinity)
{
$this->reservationAffinity = $reservationAffinity;
}
/**
* @return AllocationAffinity
*/
public function getReservationAffinity()
{
return $this->reservationAffinity;
}
/**
* Optional. Resource policies applied to this instance. By default, no
* resource policies will be applied.
*
* @param string[] $resourcePolicies
*/
public function setResourcePolicies($resourcePolicies)
{
$this->resourcePolicies = $resourcePolicies;
}
/**
* @return string[]
*/
public function getResourcePolicies()
{
return $this->resourcePolicies;
}
/**
* Optional. Sets the scheduling options for this instance.
*
* @param Scheduling $scheduling
*/
public function setScheduling(Scheduling $scheduling)
{
$this->scheduling = $scheduling;
}
/**
* @return Scheduling
*/
public function getScheduling()
{
return $this->scheduling;
}
/**
* Optional. A list of service accounts, with their specified scopes,
* authorized for this instance. Only one service account per VM instance is
* supported.
*
* @param ServiceAccount[] $serviceAccounts
*/
public function setServiceAccounts($serviceAccounts)
{
$this->serviceAccounts = $serviceAccounts;
}
/**
* @return ServiceAccount[]
*/
public function getServiceAccounts()
{
return $this->serviceAccounts;
}
/**
* Optional. Tags to apply to this instance. Tags are used to identify valid
* sources or targets for network firewalls and are specified by the client
* during instance creation.
*
* @param Tags $tags
*/
public function setTags(Tags $tags)
{
$this->tags = $tags;
}
/**
* @return Tags
*/
public function getTags()
{
return $this->tags;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ComputeInstanceRestoreProperties::class, 'Google_Service_Backupdr_ComputeInstanceRestoreProperties');

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\Backupdr;
class ComputeInstanceTargetEnvironment extends \Google\Model
{
/**
* Required. Target project for the Compute Engine instance.
*
* @var string
*/
public $project;
/**
* Required. The zone of the Compute Engine instance.
*
* @var string
*/
public $zone;
/**
* Required. Target project for the Compute Engine instance.
*
* @param string $project
*/
public function setProject($project)
{
$this->project = $project;
}
/**
* @return string
*/
public function getProject()
{
return $this->project;
}
/**
* Required. The zone of the Compute Engine instance.
*
* @param string $zone
*/
public function setZone($zone)
{
$this->zone = $zone;
}
/**
* @return string
*/
public function getZone()
{
return $this->zone;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ComputeInstanceTargetEnvironment::class, 'Google_Service_Backupdr_ComputeInstanceTargetEnvironment');

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\Backupdr;
class ConfidentialInstanceConfig extends \Google\Model
{
/**
* Optional. Defines whether the instance should have confidential compute
* enabled.
*
* @var bool
*/
public $enableConfidentialCompute;
/**
* Optional. Defines whether the instance should have confidential compute
* enabled.
*
* @param bool $enableConfidentialCompute
*/
public function setEnableConfidentialCompute($enableConfidentialCompute)
{
$this->enableConfidentialCompute = $enableConfidentialCompute;
}
/**
* @return bool
*/
public function getEnableConfidentialCompute()
{
return $this->enableConfidentialCompute;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ConfidentialInstanceConfig::class, 'Google_Service_Backupdr_ConfidentialInstanceConfig');

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\Backupdr;
class CustomerEncryptionKey extends \Google\Model
{
/**
* Optional. The name of the encryption key that is stored in Google Cloud
* KMS.
*
* @var string
*/
public $kmsKeyName;
/**
* Optional. The service account being used for the encryption request for the
* given KMS key. If absent, the Compute Engine default service account is
* used.
*
* @var string
*/
public $kmsKeyServiceAccount;
/**
* Optional. Specifies a 256-bit customer-supplied encryption key.
*
* @var string
*/
public $rawKey;
/**
* Optional. RSA-wrapped 2048-bit customer-supplied encryption key to either
* encrypt or decrypt this resource.
*
* @var string
*/
public $rsaEncryptedKey;
/**
* Optional. The name of the encryption key that is stored in Google Cloud
* KMS.
*
* @param string $kmsKeyName
*/
public function setKmsKeyName($kmsKeyName)
{
$this->kmsKeyName = $kmsKeyName;
}
/**
* @return string
*/
public function getKmsKeyName()
{
return $this->kmsKeyName;
}
/**
* Optional. The service account being used for the encryption request for the
* given KMS key. If absent, the Compute Engine default service account is
* used.
*
* @param string $kmsKeyServiceAccount
*/
public function setKmsKeyServiceAccount($kmsKeyServiceAccount)
{
$this->kmsKeyServiceAccount = $kmsKeyServiceAccount;
}
/**
* @return string
*/
public function getKmsKeyServiceAccount()
{
return $this->kmsKeyServiceAccount;
}
/**
* Optional. Specifies a 256-bit customer-supplied encryption key.
*
* @param string $rawKey
*/
public function setRawKey($rawKey)
{
$this->rawKey = $rawKey;
}
/**
* @return string
*/
public function getRawKey()
{
return $this->rawKey;
}
/**
* Optional. RSA-wrapped 2048-bit customer-supplied encryption key to either
* encrypt or decrypt this resource.
*
* @param string $rsaEncryptedKey
*/
public function setRsaEncryptedKey($rsaEncryptedKey)
{
$this->rsaEncryptedKey = $rsaEncryptedKey;
}
/**
* @return string
*/
public function getRsaEncryptedKey()
{
return $this->rsaEncryptedKey;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CustomerEncryptionKey::class, 'Google_Service_Backupdr_CustomerEncryptionKey');

View File

@@ -0,0 +1,353 @@
<?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\Backupdr;
class DataSource extends \Google\Model
{
/**
* The possible states of backup configuration. Status not set.
*/
public const CONFIG_STATE_BACKUP_CONFIG_STATE_UNSPECIFIED = 'BACKUP_CONFIG_STATE_UNSPECIFIED';
/**
* The data source is actively protected (i.e. there is a
* BackupPlanAssociation or Appliance SLA pointing to it)
*/
public const CONFIG_STATE_ACTIVE = 'ACTIVE';
/**
* The data source is no longer protected (but may have backups under it)
*/
public const CONFIG_STATE_PASSIVE = 'PASSIVE';
/**
* State not set.
*/
public const STATE_STATE_UNSPECIFIED = 'STATE_UNSPECIFIED';
/**
* The data source is being created.
*/
public const STATE_CREATING = 'CREATING';
/**
* The data source has been created and is fully usable.
*/
public const STATE_ACTIVE = 'ACTIVE';
/**
* The data source is being deleted.
*/
public const STATE_DELETING = 'DELETING';
/**
* The data source is experiencing an issue and might be unusable.
*/
public const STATE_ERROR = 'ERROR';
/**
* Output only. This field is set to true if the backup is blocked by vault
* access restriction.
*
* @var bool
*/
public $backupBlockedByVaultAccessRestriction;
protected $backupConfigInfoType = BackupConfigInfo::class;
protected $backupConfigInfoDataType = '';
/**
* Number of backups in the data source.
*
* @var string
*/
public $backupCount;
/**
* Output only. The backup configuration state.
*
* @var string
*/
public $configState;
/**
* Output only. The time when the instance was created.
*
* @var string
*/
public $createTime;
protected $dataSourceBackupApplianceApplicationType = DataSourceBackupApplianceApplication::class;
protected $dataSourceBackupApplianceApplicationDataType = '';
protected $dataSourceGcpResourceType = DataSourceGcpResource::class;
protected $dataSourceGcpResourceDataType = '';
/**
* Server specified ETag for the ManagementServer resource to prevent
* simultaneous updates from overwiting each other.
*
* @var string
*/
public $etag;
/**
* Optional. Resource labels to represent user provided metadata. No labels
* currently defined:
*
* @var string[]
*/
public $labels;
/**
* Output only. Identifier. Name of the datasource to create. It must have the
* format`"projects/{project}/locations/{location}/backupVaults/{backupvault}/
* dataSources/{datasource}"`. `{datasource}` cannot be changed after
* creation. It must be between 3-63 characters long and must be unique within
* the backup vault.
*
* @var string
*/
public $name;
/**
* Output only. The DataSource resource instance state.
*
* @var string
*/
public $state;
/**
* The number of bytes (metadata and data) stored in this datasource.
*
* @var string
*/
public $totalStoredBytes;
/**
* Output only. The time when the instance was updated.
*
* @var string
*/
public $updateTime;
/**
* Output only. This field is set to true if the backup is blocked by vault
* access restriction.
*
* @param bool $backupBlockedByVaultAccessRestriction
*/
public function setBackupBlockedByVaultAccessRestriction($backupBlockedByVaultAccessRestriction)
{
$this->backupBlockedByVaultAccessRestriction = $backupBlockedByVaultAccessRestriction;
}
/**
* @return bool
*/
public function getBackupBlockedByVaultAccessRestriction()
{
return $this->backupBlockedByVaultAccessRestriction;
}
/**
* Output only. Details of how the resource is configured for backup.
*
* @param BackupConfigInfo $backupConfigInfo
*/
public function setBackupConfigInfo(BackupConfigInfo $backupConfigInfo)
{
$this->backupConfigInfo = $backupConfigInfo;
}
/**
* @return BackupConfigInfo
*/
public function getBackupConfigInfo()
{
return $this->backupConfigInfo;
}
/**
* Number of backups in the data source.
*
* @param string $backupCount
*/
public function setBackupCount($backupCount)
{
$this->backupCount = $backupCount;
}
/**
* @return string
*/
public function getBackupCount()
{
return $this->backupCount;
}
/**
* Output only. The backup configuration state.
*
* Accepted values: BACKUP_CONFIG_STATE_UNSPECIFIED, ACTIVE, PASSIVE
*
* @param self::CONFIG_STATE_* $configState
*/
public function setConfigState($configState)
{
$this->configState = $configState;
}
/**
* @return self::CONFIG_STATE_*
*/
public function getConfigState()
{
return $this->configState;
}
/**
* Output only. The time when the instance was created.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* The backed up resource is a backup appliance application.
*
* @param DataSourceBackupApplianceApplication $dataSourceBackupApplianceApplication
*/
public function setDataSourceBackupApplianceApplication(DataSourceBackupApplianceApplication $dataSourceBackupApplianceApplication)
{
$this->dataSourceBackupApplianceApplication = $dataSourceBackupApplianceApplication;
}
/**
* @return DataSourceBackupApplianceApplication
*/
public function getDataSourceBackupApplianceApplication()
{
return $this->dataSourceBackupApplianceApplication;
}
/**
* The backed up resource is a Google Cloud resource. The word 'DataSource'
* was included in the names to indicate that this is the representation of
* the Google Cloud resource used within the DataSource object.
*
* @param DataSourceGcpResource $dataSourceGcpResource
*/
public function setDataSourceGcpResource(DataSourceGcpResource $dataSourceGcpResource)
{
$this->dataSourceGcpResource = $dataSourceGcpResource;
}
/**
* @return DataSourceGcpResource
*/
public function getDataSourceGcpResource()
{
return $this->dataSourceGcpResource;
}
/**
* Server specified ETag for the ManagementServer resource to prevent
* simultaneous updates from overwiting each other.
*
* @param string $etag
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* Optional. Resource labels to represent user provided metadata. No labels
* currently defined:
*
* @param string[] $labels
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* Output only. Identifier. Name of the datasource to create. It must have the
* format`"projects/{project}/locations/{location}/backupVaults/{backupvault}/
* dataSources/{datasource}"`. `{datasource}` cannot be changed after
* creation. It must be between 3-63 characters long and must be unique within
* the backup vault.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Output only. The DataSource resource instance state.
*
* Accepted values: STATE_UNSPECIFIED, CREATING, ACTIVE, DELETING, ERROR
*
* @param self::STATE_* $state
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return self::STATE_*
*/
public function getState()
{
return $this->state;
}
/**
* The number of bytes (metadata and data) stored in this datasource.
*
* @param string $totalStoredBytes
*/
public function setTotalStoredBytes($totalStoredBytes)
{
$this->totalStoredBytes = $totalStoredBytes;
}
/**
* @return string
*/
public function getTotalStoredBytes()
{
return $this->totalStoredBytes;
}
/**
* Output only. The time when the instance was 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(DataSource::class, 'Google_Service_Backupdr_DataSource');

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\Backupdr;
class DataSourceBackupApplianceApplication extends \Google\Model
{
/**
* Appliance Id of the Backup Appliance.
*
* @var string
*/
public $applianceId;
/**
* The appid field of the application within the Backup Appliance.
*
* @var string
*/
public $applicationId;
/**
* The name of the Application as known to the Backup Appliance.
*
* @var string
*/
public $applicationName;
/**
* Appliance name.
*
* @var string
*/
public $backupAppliance;
/**
* Hostid of the application host.
*
* @var string
*/
public $hostId;
/**
* Hostname of the host where the application is running.
*
* @var string
*/
public $hostname;
/**
* The type of the application. e.g. VMBackup
*
* @var string
*/
public $type;
/**
* Appliance Id of the Backup Appliance.
*
* @param string $applianceId
*/
public function setApplianceId($applianceId)
{
$this->applianceId = $applianceId;
}
/**
* @return string
*/
public function getApplianceId()
{
return $this->applianceId;
}
/**
* The appid field of the application within the Backup Appliance.
*
* @param string $applicationId
*/
public function setApplicationId($applicationId)
{
$this->applicationId = $applicationId;
}
/**
* @return string
*/
public function getApplicationId()
{
return $this->applicationId;
}
/**
* The name of the Application as known to the Backup Appliance.
*
* @param string $applicationName
*/
public function setApplicationName($applicationName)
{
$this->applicationName = $applicationName;
}
/**
* @return string
*/
public function getApplicationName()
{
return $this->applicationName;
}
/**
* Appliance name.
*
* @param string $backupAppliance
*/
public function setBackupAppliance($backupAppliance)
{
$this->backupAppliance = $backupAppliance;
}
/**
* @return string
*/
public function getBackupAppliance()
{
return $this->backupAppliance;
}
/**
* Hostid of the application host.
*
* @param string $hostId
*/
public function setHostId($hostId)
{
$this->hostId = $hostId;
}
/**
* @return string
*/
public function getHostId()
{
return $this->hostId;
}
/**
* Hostname of the host where the application is running.
*
* @param string $hostname
*/
public function setHostname($hostname)
{
$this->hostname = $hostname;
}
/**
* @return string
*/
public function getHostname()
{
return $this->hostname;
}
/**
* The type of the application. e.g. VMBackup
*
* @param string $type
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return string
*/
public function getType()
{
return $this->type;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DataSourceBackupApplianceApplication::class, 'Google_Service_Backupdr_DataSourceBackupApplianceApplication');

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\Backupdr;
class DataSourceBackupConfigInfo extends \Google\Model
{
/**
* Status not set.
*/
public const LAST_BACKUP_STATE_LAST_BACKUP_STATE_UNSPECIFIED = 'LAST_BACKUP_STATE_UNSPECIFIED';
/**
* The first backup has not yet completed
*/
public const LAST_BACKUP_STATE_FIRST_BACKUP_PENDING = 'FIRST_BACKUP_PENDING';
/**
* The most recent backup was successful
*/
public const LAST_BACKUP_STATE_SUCCEEDED = 'SUCCEEDED';
/**
* The most recent backup failed
*/
public const LAST_BACKUP_STATE_FAILED = 'FAILED';
/**
* The most recent backup could not be run/failed because of the lack of
* permissions
*/
public const LAST_BACKUP_STATE_PERMISSION_DENIED = 'PERMISSION_DENIED';
/**
* Output only. The status of the last backup in this DataSource
*
* @var string
*/
public $lastBackupState;
/**
* Output only. Timestamp of the last successful backup to this DataSource.
*
* @var string
*/
public $lastSuccessfulBackupConsistencyTime;
/**
* Output only. The status of the last backup in this DataSource
*
* Accepted values: LAST_BACKUP_STATE_UNSPECIFIED, FIRST_BACKUP_PENDING,
* SUCCEEDED, FAILED, PERMISSION_DENIED
*
* @param self::LAST_BACKUP_STATE_* $lastBackupState
*/
public function setLastBackupState($lastBackupState)
{
$this->lastBackupState = $lastBackupState;
}
/**
* @return self::LAST_BACKUP_STATE_*
*/
public function getLastBackupState()
{
return $this->lastBackupState;
}
/**
* Output only. Timestamp of the last successful backup to this DataSource.
*
* @param string $lastSuccessfulBackupConsistencyTime
*/
public function setLastSuccessfulBackupConsistencyTime($lastSuccessfulBackupConsistencyTime)
{
$this->lastSuccessfulBackupConsistencyTime = $lastSuccessfulBackupConsistencyTime;
}
/**
* @return string
*/
public function getLastSuccessfulBackupConsistencyTime()
{
return $this->lastSuccessfulBackupConsistencyTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DataSourceBackupConfigInfo::class, 'Google_Service_Backupdr_DataSourceBackupConfigInfo');

View File

@@ -0,0 +1,174 @@
<?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\Backupdr;
class DataSourceGcpResource extends \Google\Model
{
protected $alloyDbClusterDatasourcePropertiesType = AlloyDBClusterDataSourceProperties::class;
protected $alloyDbClusterDatasourcePropertiesDataType = '';
protected $cloudSqlInstanceDatasourcePropertiesType = CloudSqlInstanceDataSourceProperties::class;
protected $cloudSqlInstanceDatasourcePropertiesDataType = '';
protected $computeInstanceDatasourcePropertiesType = ComputeInstanceDataSourceProperties::class;
protected $computeInstanceDatasourcePropertiesDataType = '';
protected $diskDatasourcePropertiesType = DiskDataSourceProperties::class;
protected $diskDatasourcePropertiesDataType = '';
/**
* Output only. Full resource pathname URL of the source Google Cloud
* resource.
*
* @var string
*/
public $gcpResourcename;
/**
* Location of the resource: //"global"/"unspecified".
*
* @var string
*/
public $location;
/**
* The type of the Google Cloud resource. Use the Unified Resource Type, eg.
* compute.googleapis.com/Instance.
*
* @var string
*/
public $type;
/**
* Output only. AlloyDBClusterDataSourceProperties has a subset of AlloyDB
* cluster properties that are useful at the Datasource level. Currently none
* of its child properties are auditable. If new auditable properties are
* added, the AUDIT annotation should be added.
*
* @param AlloyDBClusterDataSourceProperties $alloyDbClusterDatasourceProperties
*/
public function setAlloyDbClusterDatasourceProperties(AlloyDBClusterDataSourceProperties $alloyDbClusterDatasourceProperties)
{
$this->alloyDbClusterDatasourceProperties = $alloyDbClusterDatasourceProperties;
}
/**
* @return AlloyDBClusterDataSourceProperties
*/
public function getAlloyDbClusterDatasourceProperties()
{
return $this->alloyDbClusterDatasourceProperties;
}
/**
* Output only. CloudSqlInstanceDataSourceProperties has a subset of Cloud SQL
* Instance properties that are useful at the Datasource level.
*
* @param CloudSqlInstanceDataSourceProperties $cloudSqlInstanceDatasourceProperties
*/
public function setCloudSqlInstanceDatasourceProperties(CloudSqlInstanceDataSourceProperties $cloudSqlInstanceDatasourceProperties)
{
$this->cloudSqlInstanceDatasourceProperties = $cloudSqlInstanceDatasourceProperties;
}
/**
* @return CloudSqlInstanceDataSourceProperties
*/
public function getCloudSqlInstanceDatasourceProperties()
{
return $this->cloudSqlInstanceDatasourceProperties;
}
/**
* ComputeInstanceDataSourceProperties has a subset of Compute Instance
* properties that are useful at the Datasource level.
*
* @param ComputeInstanceDataSourceProperties $computeInstanceDatasourceProperties
*/
public function setComputeInstanceDatasourceProperties(ComputeInstanceDataSourceProperties $computeInstanceDatasourceProperties)
{
$this->computeInstanceDatasourceProperties = $computeInstanceDatasourceProperties;
}
/**
* @return ComputeInstanceDataSourceProperties
*/
public function getComputeInstanceDatasourceProperties()
{
return $this->computeInstanceDatasourceProperties;
}
/**
* DiskDataSourceProperties has a subset of Disk properties that are useful at
* the Datasource level.
*
* @param DiskDataSourceProperties $diskDatasourceProperties
*/
public function setDiskDatasourceProperties(DiskDataSourceProperties $diskDatasourceProperties)
{
$this->diskDatasourceProperties = $diskDatasourceProperties;
}
/**
* @return DiskDataSourceProperties
*/
public function getDiskDatasourceProperties()
{
return $this->diskDatasourceProperties;
}
/**
* Output only. Full resource pathname URL of the source Google Cloud
* resource.
*
* @param string $gcpResourcename
*/
public function setGcpResourcename($gcpResourcename)
{
$this->gcpResourcename = $gcpResourcename;
}
/**
* @return string
*/
public function getGcpResourcename()
{
return $this->gcpResourcename;
}
/**
* Location of the resource: //"global"/"unspecified".
*
* @param string $location
*/
public function setLocation($location)
{
$this->location = $location;
}
/**
* @return string
*/
public function getLocation()
{
return $this->location;
}
/**
* The type of the Google Cloud resource. Use the Unified Resource Type, eg.
* compute.googleapis.com/Instance.
*
* @param string $type
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return string
*/
public function getType()
{
return $this->type;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DataSourceGcpResource::class, 'Google_Service_Backupdr_DataSourceGcpResource');

View File

@@ -0,0 +1,114 @@
<?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\Backupdr;
class DataSourceGcpResourceInfo extends \Google\Model
{
protected $cloudSqlInstancePropertiesType = CloudSqlInstanceDataSourceReferenceProperties::class;
protected $cloudSqlInstancePropertiesDataType = '';
/**
* Output only. The resource name of the GCP resource. Ex:
* projects/{project}/zones/{zone}/instances/{instance}
*
* @var string
*/
public $gcpResourcename;
/**
* Output only. The location of the GCP resource. Ex: //"global"/"unspecified"
*
* @var string
*/
public $location;
/**
* Output only. The type of the GCP resource. Ex:
* compute.googleapis.com/Instance
*
* @var string
*/
public $type;
/**
* Output only. The properties of the Cloud SQL instance.
*
* @param CloudSqlInstanceDataSourceReferenceProperties $cloudSqlInstanceProperties
*/
public function setCloudSqlInstanceProperties(CloudSqlInstanceDataSourceReferenceProperties $cloudSqlInstanceProperties)
{
$this->cloudSqlInstanceProperties = $cloudSqlInstanceProperties;
}
/**
* @return CloudSqlInstanceDataSourceReferenceProperties
*/
public function getCloudSqlInstanceProperties()
{
return $this->cloudSqlInstanceProperties;
}
/**
* Output only. The resource name of the GCP resource. Ex:
* projects/{project}/zones/{zone}/instances/{instance}
*
* @param string $gcpResourcename
*/
public function setGcpResourcename($gcpResourcename)
{
$this->gcpResourcename = $gcpResourcename;
}
/**
* @return string
*/
public function getGcpResourcename()
{
return $this->gcpResourcename;
}
/**
* Output only. The location of the GCP resource. Ex: //"global"/"unspecified"
*
* @param string $location
*/
public function setLocation($location)
{
$this->location = $location;
}
/**
* @return string
*/
public function getLocation()
{
return $this->location;
}
/**
* Output only. The type of the GCP resource. Ex:
* compute.googleapis.com/Instance
*
* @param string $type
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return string
*/
public function getType()
{
return $this->type;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DataSourceGcpResourceInfo::class, 'Google_Service_Backupdr_DataSourceGcpResourceInfo');

View File

@@ -0,0 +1,215 @@
<?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\Backupdr;
class DataSourceReference extends \Google\Model
{
/**
* The possible states of backup configuration. Status not set.
*/
public const DATA_SOURCE_BACKUP_CONFIG_STATE_BACKUP_CONFIG_STATE_UNSPECIFIED = 'BACKUP_CONFIG_STATE_UNSPECIFIED';
/**
* The data source is actively protected (i.e. there is a
* BackupPlanAssociation or Appliance SLA pointing to it)
*/
public const DATA_SOURCE_BACKUP_CONFIG_STATE_ACTIVE = 'ACTIVE';
/**
* The data source is no longer protected (but may have backups under it)
*/
public const DATA_SOURCE_BACKUP_CONFIG_STATE_PASSIVE = 'PASSIVE';
/**
* Output only. The time when the DataSourceReference was created.
*
* @var string
*/
public $createTime;
/**
* Output only. The resource name of the DataSource. Format: projects/{project
* }/locations/{location}/backupVaults/{backupVault}/dataSources/{dataSource}
*
* @var string
*/
public $dataSource;
protected $dataSourceBackupConfigInfoType = DataSourceBackupConfigInfo::class;
protected $dataSourceBackupConfigInfoDataType = '';
/**
* Output only. The backup configuration state of the DataSource.
*
* @var string
*/
public $dataSourceBackupConfigState;
/**
* Output only. Number of backups in the DataSource.
*
* @var string
*/
public $dataSourceBackupCount;
protected $dataSourceGcpResourceInfoType = DataSourceGcpResourceInfo::class;
protected $dataSourceGcpResourceInfoDataType = '';
/**
* Identifier. The resource name of the DataSourceReference. Format: projects/
* {project}/locations/{location}/dataSourceReferences/{data_source_reference}
*
* @var string
*/
public $name;
/**
* Output only. Total size of the storage used by all backup resources for the
* referenced datasource.
*
* @var string
*/
public $totalStoredBytes;
/**
* Output only. The time when the DataSourceReference was created.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* Output only. The resource name of the DataSource. Format: projects/{project
* }/locations/{location}/backupVaults/{backupVault}/dataSources/{dataSource}
*
* @param string $dataSource
*/
public function setDataSource($dataSource)
{
$this->dataSource = $dataSource;
}
/**
* @return string
*/
public function getDataSource()
{
return $this->dataSource;
}
/**
* Output only. Information of backup configuration on the DataSource.
*
* @param DataSourceBackupConfigInfo $dataSourceBackupConfigInfo
*/
public function setDataSourceBackupConfigInfo(DataSourceBackupConfigInfo $dataSourceBackupConfigInfo)
{
$this->dataSourceBackupConfigInfo = $dataSourceBackupConfigInfo;
}
/**
* @return DataSourceBackupConfigInfo
*/
public function getDataSourceBackupConfigInfo()
{
return $this->dataSourceBackupConfigInfo;
}
/**
* Output only. The backup configuration state of the DataSource.
*
* Accepted values: BACKUP_CONFIG_STATE_UNSPECIFIED, ACTIVE, PASSIVE
*
* @param self::DATA_SOURCE_BACKUP_CONFIG_STATE_* $dataSourceBackupConfigState
*/
public function setDataSourceBackupConfigState($dataSourceBackupConfigState)
{
$this->dataSourceBackupConfigState = $dataSourceBackupConfigState;
}
/**
* @return self::DATA_SOURCE_BACKUP_CONFIG_STATE_*
*/
public function getDataSourceBackupConfigState()
{
return $this->dataSourceBackupConfigState;
}
/**
* Output only. Number of backups in the DataSource.
*
* @param string $dataSourceBackupCount
*/
public function setDataSourceBackupCount($dataSourceBackupCount)
{
$this->dataSourceBackupCount = $dataSourceBackupCount;
}
/**
* @return string
*/
public function getDataSourceBackupCount()
{
return $this->dataSourceBackupCount;
}
/**
* Output only. The GCP resource that the DataSource is associated with.
*
* @param DataSourceGcpResourceInfo $dataSourceGcpResourceInfo
*/
public function setDataSourceGcpResourceInfo(DataSourceGcpResourceInfo $dataSourceGcpResourceInfo)
{
$this->dataSourceGcpResourceInfo = $dataSourceGcpResourceInfo;
}
/**
* @return DataSourceGcpResourceInfo
*/
public function getDataSourceGcpResourceInfo()
{
return $this->dataSourceGcpResourceInfo;
}
/**
* Identifier. The resource name of the DataSourceReference. Format: projects/
* {project}/locations/{location}/dataSourceReferences/{data_source_reference}
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Output only. Total size of the storage used by all backup resources for the
* referenced datasource.
*
* @param string $totalStoredBytes
*/
public function setTotalStoredBytes($totalStoredBytes)
{
$this->totalStoredBytes = $totalStoredBytes;
}
/**
* @return string
*/
public function getTotalStoredBytes()
{
return $this->totalStoredBytes;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DataSourceReference::class, 'Google_Service_Backupdr_DataSourceReference');

View File

@@ -0,0 +1,43 @@
<?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\Backupdr;
class DirectLocationAssignment extends \Google\Collection
{
protected $collection_key = 'location';
protected $locationType = LocationAssignment::class;
protected $locationDataType = 'array';
/**
* @param LocationAssignment[]
*/
public function setLocation($location)
{
$this->location = $location;
}
/**
* @return LocationAssignment[]
*/
public function getLocation()
{
return $this->location;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DirectLocationAssignment::class, 'Google_Service_Backupdr_DirectLocationAssignment');

View File

@@ -0,0 +1,417 @@
<?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\Backupdr;
class DiskBackupProperties extends \Google\Collection
{
/**
* Default value. This value is unused.
*/
public const ARCHITECTURE_ARCHITECTURE_UNSPECIFIED = 'ARCHITECTURE_UNSPECIFIED';
/**
* Disks with architecture X86_64
*/
public const ARCHITECTURE_X86_64 = 'X86_64';
/**
* Disks with architecture ARM64
*/
public const ARCHITECTURE_ARM64 = 'ARM64';
protected $collection_key = 'replicaZones';
/**
* The access mode of the source disk.
*
* @var string
*/
public $accessMode;
/**
* The architecture of the source disk. Valid values are ARM64 or X86_64.
*
* @var string
*/
public $architecture;
/**
* A description of the source disk.
*
* @var string
*/
public $description;
/**
* Indicates whether the source disk is using confidential compute mode.
*
* @var bool
*/
public $enableConfidentialCompute;
protected $guestOsFeatureType = GuestOsFeature::class;
protected $guestOsFeatureDataType = 'array';
/**
* The labels of the source disk.
*
* @var string[]
*/
public $labels;
/**
* A list of publicly available licenses that are applicable to this backup.
* This is applicable if the original image had licenses attached, e.g.
* Windows image.
*
* @var string[]
*/
public $licenses;
/**
* The physical block size of the source disk.
*
* @var string
*/
public $physicalBlockSizeBytes;
/**
* The number of IOPS provisioned for the source disk.
*
* @var string
*/
public $provisionedIops;
/**
* The number of throughput provisioned for the source disk.
*
* @var string
*/
public $provisionedThroughput;
/**
* Region and zone are mutually exclusive fields. The URL of the region of the
* source disk.
*
* @var string
*/
public $region;
/**
* The URL of the Zones where the source disk should be replicated.
*
* @var string[]
*/
public $replicaZones;
/**
* Size(in GB) of the source disk.
*
* @var string
*/
public $sizeGb;
/**
* The source disk used to create this backup.
*
* @var string
*/
public $sourceDisk;
/**
* The storage pool of the source disk.
*
* @var string
*/
public $storagePool;
/**
* The URL of the type of the disk.
*
* @var string
*/
public $type;
/**
* The URL of the Zone where the source disk.
*
* @var string
*/
public $zone;
/**
* The access mode of the source disk.
*
* @param string $accessMode
*/
public function setAccessMode($accessMode)
{
$this->accessMode = $accessMode;
}
/**
* @return string
*/
public function getAccessMode()
{
return $this->accessMode;
}
/**
* The architecture of the source disk. Valid values are ARM64 or X86_64.
*
* Accepted values: ARCHITECTURE_UNSPECIFIED, X86_64, ARM64
*
* @param self::ARCHITECTURE_* $architecture
*/
public function setArchitecture($architecture)
{
$this->architecture = $architecture;
}
/**
* @return self::ARCHITECTURE_*
*/
public function getArchitecture()
{
return $this->architecture;
}
/**
* A description of the source disk.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* Indicates whether the source disk is using confidential compute mode.
*
* @param bool $enableConfidentialCompute
*/
public function setEnableConfidentialCompute($enableConfidentialCompute)
{
$this->enableConfidentialCompute = $enableConfidentialCompute;
}
/**
* @return bool
*/
public function getEnableConfidentialCompute()
{
return $this->enableConfidentialCompute;
}
/**
* A list of guest OS features that are applicable to this backup.
*
* @param GuestOsFeature[] $guestOsFeature
*/
public function setGuestOsFeature($guestOsFeature)
{
$this->guestOsFeature = $guestOsFeature;
}
/**
* @return GuestOsFeature[]
*/
public function getGuestOsFeature()
{
return $this->guestOsFeature;
}
/**
* The labels of the source disk.
*
* @param string[] $labels
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* A list of publicly available licenses that are applicable to this backup.
* This is applicable if the original image had licenses attached, e.g.
* Windows image.
*
* @param string[] $licenses
*/
public function setLicenses($licenses)
{
$this->licenses = $licenses;
}
/**
* @return string[]
*/
public function getLicenses()
{
return $this->licenses;
}
/**
* The physical block size of the source disk.
*
* @param string $physicalBlockSizeBytes
*/
public function setPhysicalBlockSizeBytes($physicalBlockSizeBytes)
{
$this->physicalBlockSizeBytes = $physicalBlockSizeBytes;
}
/**
* @return string
*/
public function getPhysicalBlockSizeBytes()
{
return $this->physicalBlockSizeBytes;
}
/**
* The number of IOPS provisioned for the source disk.
*
* @param string $provisionedIops
*/
public function setProvisionedIops($provisionedIops)
{
$this->provisionedIops = $provisionedIops;
}
/**
* @return string
*/
public function getProvisionedIops()
{
return $this->provisionedIops;
}
/**
* The number of throughput provisioned for the source disk.
*
* @param string $provisionedThroughput
*/
public function setProvisionedThroughput($provisionedThroughput)
{
$this->provisionedThroughput = $provisionedThroughput;
}
/**
* @return string
*/
public function getProvisionedThroughput()
{
return $this->provisionedThroughput;
}
/**
* Region and zone are mutually exclusive fields. The URL of the region of the
* source disk.
*
* @param string $region
*/
public function setRegion($region)
{
$this->region = $region;
}
/**
* @return string
*/
public function getRegion()
{
return $this->region;
}
/**
* The URL of the Zones where the source disk should be replicated.
*
* @param string[] $replicaZones
*/
public function setReplicaZones($replicaZones)
{
$this->replicaZones = $replicaZones;
}
/**
* @return string[]
*/
public function getReplicaZones()
{
return $this->replicaZones;
}
/**
* Size(in GB) of the source disk.
*
* @param string $sizeGb
*/
public function setSizeGb($sizeGb)
{
$this->sizeGb = $sizeGb;
}
/**
* @return string
*/
public function getSizeGb()
{
return $this->sizeGb;
}
/**
* The source disk used to create this backup.
*
* @param string $sourceDisk
*/
public function setSourceDisk($sourceDisk)
{
$this->sourceDisk = $sourceDisk;
}
/**
* @return string
*/
public function getSourceDisk()
{
return $this->sourceDisk;
}
/**
* The storage pool of the source disk.
*
* @param string $storagePool
*/
public function setStoragePool($storagePool)
{
$this->storagePool = $storagePool;
}
/**
* @return string
*/
public function getStoragePool()
{
return $this->storagePool;
}
/**
* The URL of the type of the disk.
*
* @param string $type
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return string
*/
public function getType()
{
return $this->type;
}
/**
* The URL of the Zone where the source disk.
*
* @param string $zone
*/
public function setZone($zone)
{
$this->zone = $zone;
}
/**
* @return string
*/
public function getZone()
{
return $this->zone;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DiskBackupProperties::class, 'Google_Service_Backupdr_DiskBackupProperties');

View File

@@ -0,0 +1,114 @@
<?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\Backupdr;
class DiskDataSourceProperties extends \Google\Model
{
/**
* The description of the disk.
*
* @var string
*/
public $description;
/**
* Name of the disk backed up by the datasource.
*
* @var string
*/
public $name;
/**
* The size of the disk in GB.
*
* @var string
*/
public $sizeGb;
/**
* The type of the disk.
*
* @var string
*/
public $type;
/**
* The description of the disk.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* Name of the disk backed up by the datasource.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* The size of the disk in GB.
*
* @param string $sizeGb
*/
public function setSizeGb($sizeGb)
{
$this->sizeGb = $sizeGb;
}
/**
* @return string
*/
public function getSizeGb()
{
return $this->sizeGb;
}
/**
* The type of the disk.
*
* @param string $type
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return string
*/
public function getType()
{
return $this->type;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DiskDataSourceProperties::class, 'Google_Service_Backupdr_DiskDataSourceProperties');

View File

@@ -0,0 +1,450 @@
<?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\Backupdr;
class DiskRestoreProperties extends \Google\Collection
{
/**
* The default AccessMode, means the disk can be attached to single instance
* in RW mode.
*/
public const ACCESS_MODE_READ_WRITE_SINGLE = 'READ_WRITE_SINGLE';
/**
* The AccessMode means the disk can be attached to multiple instances in RW
* mode.
*/
public const ACCESS_MODE_READ_WRITE_MANY = 'READ_WRITE_MANY';
/**
* The AccessMode means the disk can be attached to multiple instances in RO
* mode.
*/
public const ACCESS_MODE_READ_ONLY_MANY = 'READ_ONLY_MANY';
/**
* Default value. This value is unused.
*/
public const ARCHITECTURE_ARCHITECTURE_UNSPECIFIED = 'ARCHITECTURE_UNSPECIFIED';
/**
* Disks with architecture X86_64
*/
public const ARCHITECTURE_X86_64 = 'X86_64';
/**
* Disks with architecture ARM64
*/
public const ARCHITECTURE_ARM64 = 'ARM64';
protected $collection_key = 'resourcePolicy';
/**
* Optional. The access mode of the disk.
*
* @var string
*/
public $accessMode;
/**
* Optional. The architecture of the source disk. Valid values are ARM64 or
* X86_64.
*
* @var string
*/
public $architecture;
/**
* Optional. An optional description of this resource. Provide this property
* when you create the resource.
*
* @var string
*/
public $description;
protected $diskEncryptionKeyType = CustomerEncryptionKey::class;
protected $diskEncryptionKeyDataType = '';
/**
* Optional. Indicates whether this disk is using confidential compute mode.
* Encryption with a Cloud KMS key is required to enable this option.
*
* @var bool
*/
public $enableConfidentialCompute;
protected $guestOsFeatureType = GuestOsFeature::class;
protected $guestOsFeatureDataType = 'array';
/**
* Optional. Labels to apply to this disk. These can be modified later using
* setLabels method. Label values can be empty.
*
* @var string[]
*/
public $labels;
/**
* Optional. A list of publicly available licenses that are applicable to this
* backup. This is applicable if the original image had licenses attached,
* e.g. Windows image
*
* @var string[]
*/
public $licenses;
/**
* Required. Name of the disk.
*
* @var string
*/
public $name;
/**
* Optional. Physical block size of the persistent disk, in bytes. If not
* present in a request, a default value is used. Currently, the supported
* size is 4096.
*
* @var string
*/
public $physicalBlockSizeBytes;
/**
* Optional. Indicates how many IOPS to provision for the disk. This sets the
* number of I/O operations per second that the disk can handle.
*
* @var string
*/
public $provisionedIops;
/**
* Optional. Indicates how much throughput to provision for the disk. This
* sets the number of throughput MB per second that the disk can handle.
*
* @var string
*/
public $provisionedThroughput;
/**
* Optional. Resource manager tags to be bound to the disk.
*
* @var string[]
*/
public $resourceManagerTags;
/**
* Optional. Resource policies applied to this disk.
*
* @var string[]
*/
public $resourcePolicy;
/**
* Required. The size of the disk in GB.
*
* @var string
*/
public $sizeGb;
/**
* Optional. The storage pool in which the new disk is created. You can
* provide this as a partial or full URL to the resource.
*
* @var string
*/
public $storagePool;
/**
* Required. URL of the disk type resource describing which disk type to use
* to create the disk.
*
* @var string
*/
public $type;
/**
* Optional. The access mode of the disk.
*
* Accepted values: READ_WRITE_SINGLE, READ_WRITE_MANY, READ_ONLY_MANY
*
* @param self::ACCESS_MODE_* $accessMode
*/
public function setAccessMode($accessMode)
{
$this->accessMode = $accessMode;
}
/**
* @return self::ACCESS_MODE_*
*/
public function getAccessMode()
{
return $this->accessMode;
}
/**
* Optional. The architecture of the source disk. Valid values are ARM64 or
* X86_64.
*
* Accepted values: ARCHITECTURE_UNSPECIFIED, X86_64, ARM64
*
* @param self::ARCHITECTURE_* $architecture
*/
public function setArchitecture($architecture)
{
$this->architecture = $architecture;
}
/**
* @return self::ARCHITECTURE_*
*/
public function getArchitecture()
{
return $this->architecture;
}
/**
* Optional. An optional description of this resource. Provide this property
* when you create the resource.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* Optional. Encrypts the disk using a customer-supplied encryption key or a
* customer-managed encryption key.
*
* @param CustomerEncryptionKey $diskEncryptionKey
*/
public function setDiskEncryptionKey(CustomerEncryptionKey $diskEncryptionKey)
{
$this->diskEncryptionKey = $diskEncryptionKey;
}
/**
* @return CustomerEncryptionKey
*/
public function getDiskEncryptionKey()
{
return $this->diskEncryptionKey;
}
/**
* Optional. Indicates whether this disk is using confidential compute mode.
* Encryption with a Cloud KMS key is required to enable this option.
*
* @param bool $enableConfidentialCompute
*/
public function setEnableConfidentialCompute($enableConfidentialCompute)
{
$this->enableConfidentialCompute = $enableConfidentialCompute;
}
/**
* @return bool
*/
public function getEnableConfidentialCompute()
{
return $this->enableConfidentialCompute;
}
/**
* Optional. A list of features to enable in the guest operating system. This
* is applicable only for bootable images.
*
* @param GuestOsFeature[] $guestOsFeature
*/
public function setGuestOsFeature($guestOsFeature)
{
$this->guestOsFeature = $guestOsFeature;
}
/**
* @return GuestOsFeature[]
*/
public function getGuestOsFeature()
{
return $this->guestOsFeature;
}
/**
* Optional. Labels to apply to this disk. These can be modified later using
* setLabels method. Label values can be empty.
*
* @param string[] $labels
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* Optional. A list of publicly available licenses that are applicable to this
* backup. This is applicable if the original image had licenses attached,
* e.g. Windows image
*
* @param string[] $licenses
*/
public function setLicenses($licenses)
{
$this->licenses = $licenses;
}
/**
* @return string[]
*/
public function getLicenses()
{
return $this->licenses;
}
/**
* Required. Name of the disk.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Optional. Physical block size of the persistent disk, in bytes. If not
* present in a request, a default value is used. Currently, the supported
* size is 4096.
*
* @param string $physicalBlockSizeBytes
*/
public function setPhysicalBlockSizeBytes($physicalBlockSizeBytes)
{
$this->physicalBlockSizeBytes = $physicalBlockSizeBytes;
}
/**
* @return string
*/
public function getPhysicalBlockSizeBytes()
{
return $this->physicalBlockSizeBytes;
}
/**
* Optional. Indicates how many IOPS to provision for the disk. This sets the
* number of I/O operations per second that the disk can handle.
*
* @param string $provisionedIops
*/
public function setProvisionedIops($provisionedIops)
{
$this->provisionedIops = $provisionedIops;
}
/**
* @return string
*/
public function getProvisionedIops()
{
return $this->provisionedIops;
}
/**
* Optional. Indicates how much throughput to provision for the disk. This
* sets the number of throughput MB per second that the disk can handle.
*
* @param string $provisionedThroughput
*/
public function setProvisionedThroughput($provisionedThroughput)
{
$this->provisionedThroughput = $provisionedThroughput;
}
/**
* @return string
*/
public function getProvisionedThroughput()
{
return $this->provisionedThroughput;
}
/**
* Optional. Resource manager tags to be bound to the disk.
*
* @param string[] $resourceManagerTags
*/
public function setResourceManagerTags($resourceManagerTags)
{
$this->resourceManagerTags = $resourceManagerTags;
}
/**
* @return string[]
*/
public function getResourceManagerTags()
{
return $this->resourceManagerTags;
}
/**
* Optional. Resource policies applied to this disk.
*
* @param string[] $resourcePolicy
*/
public function setResourcePolicy($resourcePolicy)
{
$this->resourcePolicy = $resourcePolicy;
}
/**
* @return string[]
*/
public function getResourcePolicy()
{
return $this->resourcePolicy;
}
/**
* Required. The size of the disk in GB.
*
* @param string $sizeGb
*/
public function setSizeGb($sizeGb)
{
$this->sizeGb = $sizeGb;
}
/**
* @return string
*/
public function getSizeGb()
{
return $this->sizeGb;
}
/**
* Optional. The storage pool in which the new disk is created. You can
* provide this as a partial or full URL to the resource.
*
* @param string $storagePool
*/
public function setStoragePool($storagePool)
{
$this->storagePool = $storagePool;
}
/**
* @return string
*/
public function getStoragePool()
{
return $this->storagePool;
}
/**
* Required. URL of the disk type resource describing which disk type to use
* to create the disk.
*
* @param string $type
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return string
*/
public function getType()
{
return $this->type;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DiskRestoreProperties::class, 'Google_Service_Backupdr_DiskRestoreProperties');

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\Backupdr;
class DiskTargetEnvironment extends \Google\Model
{
/**
* Required. Target project for the disk.
*
* @var string
*/
public $project;
/**
* Required. Target zone for the disk.
*
* @var string
*/
public $zone;
/**
* Required. Target project for the disk.
*
* @param string $project
*/
public function setProject($project)
{
$this->project = $project;
}
/**
* @return string
*/
public function getProject()
{
return $this->project;
}
/**
* Required. Target zone for the disk.
*
* @param string $zone
*/
public function setZone($zone)
{
$this->zone = $zone;
}
/**
* @return string
*/
public function getZone()
{
return $this->zone;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DiskTargetEnvironment::class, 'Google_Service_Backupdr_DiskTargetEnvironment');

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\Backupdr;
class DisplayDevice extends \Google\Model
{
/**
* Optional. Enables display for the Compute Engine VM
*
* @var bool
*/
public $enableDisplay;
/**
* Optional. Enables display for the Compute Engine VM
*
* @param bool $enableDisplay
*/
public function setEnableDisplay($enableDisplay)
{
$this->enableDisplay = $enableDisplay;
}
/**
* @return bool
*/
public function getEnableDisplay()
{
return $this->enableDisplay;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DisplayDevice::class, 'Google_Service_Backupdr_DisplayDevice');

View File

@@ -0,0 +1,54 @@
<?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\Backupdr;
class EncryptionConfig extends \Google\Model
{
/**
* Optional. The Cloud KMS key name to encrypt backups in this backup vault.
* Must be in the same region as the vault. Some workload backups like compute
* disk backups may use their inherited source key instead. Format:
* projects/{project}/locations/{location}/keyRings/{ring}/cryptoKeys/{key}
*
* @var string
*/
public $kmsKeyName;
/**
* Optional. The Cloud KMS key name to encrypt backups in this backup vault.
* Must be in the same region as the vault. Some workload backups like compute
* disk backups may use their inherited source key instead. Format:
* projects/{project}/locations/{location}/keyRings/{ring}/cryptoKeys/{key}
*
* @param string $kmsKeyName
*/
public function setKmsKeyName($kmsKeyName)
{
$this->kmsKeyName = $kmsKeyName;
}
/**
* @return string
*/
public function getKmsKeyName()
{
return $this->kmsKeyName;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(EncryptionConfig::class, 'Google_Service_Backupdr_EncryptionConfig');

View File

@@ -0,0 +1,62 @@
<?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\Backupdr;
class EndTrialRequest extends \Google\Model
{
/**
* End reason not set.
*/
public const END_REASON_END_REASON_UNSPECIFIED = 'END_REASON_UNSPECIFIED';
/**
* Trial is deliberately ended by the user to transition to paid usage.
*/
public const END_REASON_MOVE_TO_PAID = 'MOVE_TO_PAID';
/**
* Trial is discontinued before expiration.
*/
public const END_REASON_DISCONTINUED = 'DISCONTINUED';
/**
* Required. The reason for ending the trial.
*
* @var string
*/
public $endReason;
/**
* Required. The reason for ending the trial.
*
* Accepted values: END_REASON_UNSPECIFIED, MOVE_TO_PAID, DISCONTINUED
*
* @param self::END_REASON_* $endReason
*/
public function setEndReason($endReason)
{
$this->endReason = $endReason;
}
/**
* @return self::END_REASON_*
*/
public function getEndReason()
{
return $this->endReason;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(EndTrialRequest::class, 'Google_Service_Backupdr_EndTrialRequest');

View File

@@ -0,0 +1,76 @@
<?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\Backupdr;
class Entry extends \Google\Model
{
/**
* Optional. Key for the metadata entry.
*
* @var string
*/
public $key;
/**
* Optional. Value for the metadata entry. These are free-form strings, and
* only have meaning as interpreted by the image running in the instance. The
* only restriction placed on values is that their size must be less than or
* equal to 262144 bytes (256 KiB).
*
* @var string
*/
public $value;
/**
* Optional. Key for the metadata entry.
*
* @param string $key
*/
public function setKey($key)
{
$this->key = $key;
}
/**
* @return string
*/
public function getKey()
{
return $this->key;
}
/**
* Optional. Value for the metadata entry. These are free-form strings, and
* only have meaning as interpreted by the image running in the instance. The
* only restriction placed on values is that their size must be less than or
* equal to 262144 bytes (256 KiB).
*
* @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(Entry::class, 'Google_Service_Backupdr_Entry');

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\Backupdr;
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_Backupdr_Expr');

View File

@@ -0,0 +1,42 @@
<?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\Backupdr;
class ExtraParameter extends \Google\Model
{
protected $regionalMigDistributionPolicyType = RegionalMigDistributionPolicy::class;
protected $regionalMigDistributionPolicyDataType = '';
/**
* @param RegionalMigDistributionPolicy
*/
public function setRegionalMigDistributionPolicy(RegionalMigDistributionPolicy $regionalMigDistributionPolicy)
{
$this->regionalMigDistributionPolicy = $regionalMigDistributionPolicy;
}
/**
* @return RegionalMigDistributionPolicy
*/
public function getRegionalMigDistributionPolicy()
{
return $this->regionalMigDistributionPolicy;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ExtraParameter::class, 'Google_Service_Backupdr_ExtraParameter');

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\Backupdr;
class FetchAccessTokenRequest extends \Google\Model
{
/**
* Required. The generation of the backup to update.
*
* @var int
*/
public $generationId;
/**
* Required. The generation of the backup to update.
*
* @param int $generationId
*/
public function setGenerationId($generationId)
{
$this->generationId = $generationId;
}
/**
* @return int
*/
public function getGenerationId()
{
return $this->generationId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(FetchAccessTokenRequest::class, 'Google_Service_Backupdr_FetchAccessTokenRequest');

View File

@@ -0,0 +1,114 @@
<?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\Backupdr;
class FetchAccessTokenResponse extends \Google\Model
{
/**
* The token is valid until this time.
*
* @var string
*/
public $expireTime;
/**
* The location in bucket that can be used for reading.
*
* @var string
*/
public $readLocation;
/**
* The downscoped token that was created.
*
* @var string
*/
public $token;
/**
* The location in bucket that can be used for writing.
*
* @var string
*/
public $writeLocation;
/**
* The token is valid until this time.
*
* @param string $expireTime
*/
public function setExpireTime($expireTime)
{
$this->expireTime = $expireTime;
}
/**
* @return string
*/
public function getExpireTime()
{
return $this->expireTime;
}
/**
* The location in bucket that can be used for reading.
*
* @param string $readLocation
*/
public function setReadLocation($readLocation)
{
$this->readLocation = $readLocation;
}
/**
* @return string
*/
public function getReadLocation()
{
return $this->readLocation;
}
/**
* The downscoped token that was created.
*
* @param string $token
*/
public function setToken($token)
{
$this->token = $token;
}
/**
* @return string
*/
public function getToken()
{
return $this->token;
}
/**
* The location in bucket that can be used for writing.
*
* @param string $writeLocation
*/
public function setWriteLocation($writeLocation)
{
$this->writeLocation = $writeLocation;
}
/**
* @return string
*/
public function getWriteLocation()
{
return $this->writeLocation;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(FetchAccessTokenResponse::class, 'Google_Service_Backupdr_FetchAccessTokenResponse');

View File

@@ -0,0 +1,69 @@
<?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\Backupdr;
class FetchBackupPlanAssociationsForResourceTypeResponse extends \Google\Collection
{
protected $collection_key = 'backupPlanAssociations';
protected $backupPlanAssociationsType = BackupPlanAssociation::class;
protected $backupPlanAssociationsDataType = 'array';
/**
* Output only. A token, which can be sent as `page_token` to retrieve the
* next page. If this field is omitted, there are no subsequent pages.
*
* @var string
*/
public $nextPageToken;
/**
* Output only. The BackupPlanAssociations from the specified parent.
*
* @param BackupPlanAssociation[] $backupPlanAssociations
*/
public function setBackupPlanAssociations($backupPlanAssociations)
{
$this->backupPlanAssociations = $backupPlanAssociations;
}
/**
* @return BackupPlanAssociation[]
*/
public function getBackupPlanAssociations()
{
return $this->backupPlanAssociations;
}
/**
* Output only. A token, which can be sent as `page_token` to retrieve the
* next page. If this field is omitted, there are no subsequent pages.
*
* @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(FetchBackupPlanAssociationsForResourceTypeResponse::class, 'Google_Service_Backupdr_FetchBackupPlanAssociationsForResourceTypeResponse');

View File

@@ -0,0 +1,69 @@
<?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\Backupdr;
class FetchBackupsForResourceTypeResponse extends \Google\Collection
{
protected $collection_key = 'backups';
protected $backupsType = Backup::class;
protected $backupsDataType = 'array';
/**
* A token, which can be sent as `page_token` to retrieve the next page. If
* this field is omitted, there are no subsequent pages.
*
* @var string
*/
public $nextPageToken;
/**
* The Backups from the specified parent.
*
* @param Backup[] $backups
*/
public function setBackups($backups)
{
$this->backups = $backups;
}
/**
* @return Backup[]
*/
public function getBackups()
{
return $this->backups;
}
/**
* A token, which can be sent as `page_token` to retrieve the next page. If
* this field is omitted, there are no subsequent pages.
*
* @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(FetchBackupsForResourceTypeResponse::class, 'Google_Service_Backupdr_FetchBackupsForResourceTypeResponse');

View File

@@ -0,0 +1,69 @@
<?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\Backupdr;
class FetchDataSourceReferencesForResourceTypeResponse extends \Google\Collection
{
protected $collection_key = 'dataSourceReferences';
protected $dataSourceReferencesType = DataSourceReference::class;
protected $dataSourceReferencesDataType = 'array';
/**
* A token, which can be sent as `page_token` to retrieve the next page. If
* this field is omitted, there are no subsequent pages.
*
* @var string
*/
public $nextPageToken;
/**
* The DataSourceReferences from the specified parent.
*
* @param DataSourceReference[] $dataSourceReferences
*/
public function setDataSourceReferences($dataSourceReferences)
{
$this->dataSourceReferences = $dataSourceReferences;
}
/**
* @return DataSourceReference[]
*/
public function getDataSourceReferences()
{
return $this->dataSourceReferences;
}
/**
* A token, which can be sent as `page_token` to retrieve the next page. If
* this field is omitted, there are no subsequent pages.
*
* @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(FetchDataSourceReferencesForResourceTypeResponse::class, 'Google_Service_Backupdr_FetchDataSourceReferencesForResourceTypeResponse');

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\Backupdr;
class FetchMsComplianceMetadataRequest extends \Google\Model
{
/**
* Required. The project id of the target project
*
* @var string
*/
public $projectId;
/**
* Required. The project id of the target project
*
* @param string $projectId
*/
public function setProjectId($projectId)
{
$this->projectId = $projectId;
}
/**
* @return string
*/
public function getProjectId()
{
return $this->projectId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(FetchMsComplianceMetadataRequest::class, 'Google_Service_Backupdr_FetchMsComplianceMetadataRequest');

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\Backupdr;
class FetchMsComplianceMetadataResponse extends \Google\Model
{
/**
* The ms compliance metadata of the target project, if the project is an
* assured workloads project, values will be true, otherwise false.
*
* @var bool
*/
public $isAssuredWorkload;
/**
* The ms compliance metadata of the target project, if the project is an
* assured workloads project, values will be true, otherwise false.
*
* @param bool $isAssuredWorkload
*/
public function setIsAssuredWorkload($isAssuredWorkload)
{
$this->isAssuredWorkload = $isAssuredWorkload;
}
/**
* @return bool
*/
public function getIsAssuredWorkload()
{
return $this->isAssuredWorkload;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(FetchMsComplianceMetadataResponse::class, 'Google_Service_Backupdr_FetchMsComplianceMetadataResponse');

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\Backupdr;
class FetchUsableBackupVaultsResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
protected $backupVaultsType = BackupVault::class;
protected $backupVaultsDataType = 'array';
/**
* A token identifying a page of results the server should return.
*
* @var string
*/
public $nextPageToken;
/**
* Locations that could not be reached.
*
* @var string[]
*/
public $unreachable;
/**
* The list of BackupVault instances in the project for the specified
* location. If the '{location}' value in the request is "-", the response
* contains a list of instances from all locations. In case any location is
* unreachable, the response will only return backup vaults in reachable
* locations and the 'unreachable' field will be populated with a list of
* unreachable locations.
*
* @param BackupVault[] $backupVaults
*/
public function setBackupVaults($backupVaults)
{
$this->backupVaults = $backupVaults;
}
/**
* @return BackupVault[]
*/
public function getBackupVaults()
{
return $this->backupVaults;
}
/**
* A token identifying a page of results the server should 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(FetchUsableBackupVaultsResponse::class, 'Google_Service_Backupdr_FetchUsableBackupVaultsResponse');

View File

@@ -0,0 +1,214 @@
<?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\Backupdr;
class FinalizeBackupRequest extends \Google\Model
{
/**
* Required. Resource ID of the Backup resource to be finalized. This must be
* the same backup_id that was used in the InitiateBackupRequest.
*
* @var string
*/
public $backupId;
/**
* The point in time when this backup was captured from the source. This will
* be assigned to the consistency_time field of the newly created Backup.
*
* @var string
*/
public $consistencyTime;
/**
* This will be assigned to the description field of the newly created Backup.
*
* @var string
*/
public $description;
/**
* The latest timestamp of data available in this Backup. This will be set on
* the newly created Backup.
*
* @var string
*/
public $recoveryRangeEndTime;
/**
* The earliest timestamp of data available in this Backup. This will set on
* the newly created Backup.
*
* @var string
*/
public $recoveryRangeStartTime;
/**
* Optional. An optional request ID to identify requests. Specify a unique
* request ID so that if you must retry your request, the server will know to
* ignore the request if it has already been completed. The server will
* guarantee that for at least 60 minutes after the first request. For
* example, consider a situation where you make an initial request and the
* request times out. If you make the request again with the same request ID,
* the server can check if original operation with the same request ID was
* received, and if so, will ignore the second request. This prevents clients
* from accidentally creating duplicate commitments. The request ID must be a
* valid UUID with the exception that zero UUID is not supported
* (00000000-0000-0000-0000-000000000000).
*
* @var string
*/
public $requestId;
/**
* The ExpireTime on the backup will be set to FinalizeTime plus this
* duration. If the resulting ExpireTime is less than
* EnforcedRetentionEndTime, then ExpireTime is set to
* EnforcedRetentionEndTime.
*
* @var string
*/
public $retentionDuration;
/**
* Required. Resource ID of the Backup resource to be finalized. This must be
* the same backup_id that was used in the InitiateBackupRequest.
*
* @param string $backupId
*/
public function setBackupId($backupId)
{
$this->backupId = $backupId;
}
/**
* @return string
*/
public function getBackupId()
{
return $this->backupId;
}
/**
* The point in time when this backup was captured from the source. This will
* be assigned to the consistency_time field of the newly created Backup.
*
* @param string $consistencyTime
*/
public function setConsistencyTime($consistencyTime)
{
$this->consistencyTime = $consistencyTime;
}
/**
* @return string
*/
public function getConsistencyTime()
{
return $this->consistencyTime;
}
/**
* This will be assigned to the description field of the newly created Backup.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* The latest timestamp of data available in this Backup. This will be set on
* the newly created Backup.
*
* @param string $recoveryRangeEndTime
*/
public function setRecoveryRangeEndTime($recoveryRangeEndTime)
{
$this->recoveryRangeEndTime = $recoveryRangeEndTime;
}
/**
* @return string
*/
public function getRecoveryRangeEndTime()
{
return $this->recoveryRangeEndTime;
}
/**
* The earliest timestamp of data available in this Backup. This will set on
* the newly created Backup.
*
* @param string $recoveryRangeStartTime
*/
public function setRecoveryRangeStartTime($recoveryRangeStartTime)
{
$this->recoveryRangeStartTime = $recoveryRangeStartTime;
}
/**
* @return string
*/
public function getRecoveryRangeStartTime()
{
return $this->recoveryRangeStartTime;
}
/**
* Optional. An optional request ID to identify requests. Specify a unique
* request ID so that if you must retry your request, the server will know to
* ignore the request if it has already been completed. The server will
* guarantee that for at least 60 minutes after the first request. For
* example, consider a situation where you make an initial request and the
* request times out. If you make the request again with the same request ID,
* the server can check if original operation with the same request ID was
* received, and if so, will ignore the second request. This prevents clients
* from accidentally creating duplicate commitments. The request ID must be a
* valid UUID with the exception that zero UUID is not supported
* (00000000-0000-0000-0000-000000000000).
*
* @param string $requestId
*/
public function setRequestId($requestId)
{
$this->requestId = $requestId;
}
/**
* @return string
*/
public function getRequestId()
{
return $this->requestId;
}
/**
* The ExpireTime on the backup will be set to FinalizeTime plus this
* duration. If the resulting ExpireTime is less than
* EnforcedRetentionEndTime, then ExpireTime is set to
* EnforcedRetentionEndTime.
*
* @param string $retentionDuration
*/
public function setRetentionDuration($retentionDuration)
{
$this->retentionDuration = $retentionDuration;
}
/**
* @return string
*/
public function getRetentionDuration()
{
return $this->retentionDuration;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(FinalizeBackupRequest::class, 'Google_Service_Backupdr_FinalizeBackupRequest');

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\Backupdr;
class GCPBackupPlanInfo extends \Google\Model
{
/**
* Resource name of backup plan by which workload is protected at the time of
* the backup. Format:
* projects/{project}/locations/{location}/backupPlans/{backupPlanId}
*
* @var string
*/
public $backupPlan;
/**
* The user friendly id of the backup plan revision which triggered this
* backup in case of scheduled backup or used for on demand backup.
*
* @var string
*/
public $backupPlanRevisionId;
/**
* Resource name of the backup plan revision which triggered this backup in
* case of scheduled backup or used for on demand backup. Format: projects/{pr
* oject}/locations/{location}/backupPlans/{backupPlanId}/revisions/{revisionI
* d}
*
* @var string
*/
public $backupPlanRevisionName;
/**
* The rule id of the backup plan which triggered this backup in case of
* scheduled backup or used for
*
* @var string
*/
public $backupPlanRuleId;
/**
* Resource name of backup plan by which workload is protected at the time of
* the backup. Format:
* projects/{project}/locations/{location}/backupPlans/{backupPlanId}
*
* @param string $backupPlan
*/
public function setBackupPlan($backupPlan)
{
$this->backupPlan = $backupPlan;
}
/**
* @return string
*/
public function getBackupPlan()
{
return $this->backupPlan;
}
/**
* The user friendly id of the backup plan revision which triggered this
* backup in case of scheduled backup or used for on demand backup.
*
* @param string $backupPlanRevisionId
*/
public function setBackupPlanRevisionId($backupPlanRevisionId)
{
$this->backupPlanRevisionId = $backupPlanRevisionId;
}
/**
* @return string
*/
public function getBackupPlanRevisionId()
{
return $this->backupPlanRevisionId;
}
/**
* Resource name of the backup plan revision which triggered this backup in
* case of scheduled backup or used for on demand backup. Format: projects/{pr
* oject}/locations/{location}/backupPlans/{backupPlanId}/revisions/{revisionI
* d}
*
* @param string $backupPlanRevisionName
*/
public function setBackupPlanRevisionName($backupPlanRevisionName)
{
$this->backupPlanRevisionName = $backupPlanRevisionName;
}
/**
* @return string
*/
public function getBackupPlanRevisionName()
{
return $this->backupPlanRevisionName;
}
/**
* The rule id of the backup plan which triggered this backup in case of
* scheduled backup or used for
*
* @param string $backupPlanRuleId
*/
public function setBackupPlanRuleId($backupPlanRuleId)
{
$this->backupPlanRuleId = $backupPlanRuleId;
}
/**
* @return string
*/
public function getBackupPlanRuleId()
{
return $this->backupPlanRuleId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GCPBackupPlanInfo::class, 'Google_Service_Backupdr_GCPBackupPlanInfo');

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\Backupdr;
class GcpBackupConfig extends \Google\Collection
{
protected $collection_key = 'backupPlanRules';
/**
* The name of the backup plan.
*
* @var string
*/
public $backupPlan;
/**
* The name of the backup plan association.
*
* @var string
*/
public $backupPlanAssociation;
/**
* The description of the backup plan.
*
* @var string
*/
public $backupPlanDescription;
/**
* The user friendly id of the backup plan revision. E.g. v0, v1 etc.
*
* @var string
*/
public $backupPlanRevisionId;
/**
* The name of the backup plan revision.
*
* @var string
*/
public $backupPlanRevisionName;
/**
* The names of the backup plan rules which point to this backupvault
*
* @var string[]
*/
public $backupPlanRules;
/**
* The name of the backup plan.
*
* @param string $backupPlan
*/
public function setBackupPlan($backupPlan)
{
$this->backupPlan = $backupPlan;
}
/**
* @return string
*/
public function getBackupPlan()
{
return $this->backupPlan;
}
/**
* The name of the backup plan association.
*
* @param string $backupPlanAssociation
*/
public function setBackupPlanAssociation($backupPlanAssociation)
{
$this->backupPlanAssociation = $backupPlanAssociation;
}
/**
* @return string
*/
public function getBackupPlanAssociation()
{
return $this->backupPlanAssociation;
}
/**
* The description of the backup plan.
*
* @param string $backupPlanDescription
*/
public function setBackupPlanDescription($backupPlanDescription)
{
$this->backupPlanDescription = $backupPlanDescription;
}
/**
* @return string
*/
public function getBackupPlanDescription()
{
return $this->backupPlanDescription;
}
/**
* The user friendly id of the backup plan revision. E.g. v0, v1 etc.
*
* @param string $backupPlanRevisionId
*/
public function setBackupPlanRevisionId($backupPlanRevisionId)
{
$this->backupPlanRevisionId = $backupPlanRevisionId;
}
/**
* @return string
*/
public function getBackupPlanRevisionId()
{
return $this->backupPlanRevisionId;
}
/**
* The name of the backup plan revision.
*
* @param string $backupPlanRevisionName
*/
public function setBackupPlanRevisionName($backupPlanRevisionName)
{
$this->backupPlanRevisionName = $backupPlanRevisionName;
}
/**
* @return string
*/
public function getBackupPlanRevisionName()
{
return $this->backupPlanRevisionName;
}
/**
* The names of the backup plan rules which point to this backupvault
*
* @param string[] $backupPlanRules
*/
public function setBackupPlanRules($backupPlanRules)
{
$this->backupPlanRules = $backupPlanRules;
}
/**
* @return string[]
*/
public function getBackupPlanRules()
{
return $this->backupPlanRules;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GcpBackupConfig::class, 'Google_Service_Backupdr_GcpBackupConfig');

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\Backupdr;
class GcpResource extends \Google\Model
{
/**
* Name of the Google Cloud resource.
*
* @var string
*/
public $gcpResourcename;
/**
* Location of the resource: //"global"/"unspecified".
*
* @var string
*/
public $location;
/**
* Type of the resource. Use the Unified Resource Type, eg.
* compute.googleapis.com/Instance.
*
* @var string
*/
public $type;
/**
* Name of the Google Cloud resource.
*
* @param string $gcpResourcename
*/
public function setGcpResourcename($gcpResourcename)
{
$this->gcpResourcename = $gcpResourcename;
}
/**
* @return string
*/
public function getGcpResourcename()
{
return $this->gcpResourcename;
}
/**
* Location of the resource: //"global"/"unspecified".
*
* @param string $location
*/
public function setLocation($location)
{
$this->location = $location;
}
/**
* @return string
*/
public function getLocation()
{
return $this->location;
}
/**
* Type of the resource. Use the Unified Resource Type, eg.
* compute.googleapis.com/Instance.
*
* @param string $type
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return string
*/
public function getType()
{
return $this->type;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GcpResource::class, 'Google_Service_Backupdr_GcpResource');

View File

@@ -0,0 +1,114 @@
<?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\Backupdr;
class GuestOsFeature extends \Google\Model
{
/**
* Default value, which is unused.
*/
public const TYPE_FEATURE_TYPE_UNSPECIFIED = 'FEATURE_TYPE_UNSPECIFIED';
/**
* VIRTIO_SCSI_MULTIQUEUE feature type.
*/
public const TYPE_VIRTIO_SCSI_MULTIQUEUE = 'VIRTIO_SCSI_MULTIQUEUE';
/**
* WINDOWS feature type.
*/
public const TYPE_WINDOWS = 'WINDOWS';
/**
* MULTI_IP_SUBNET feature type.
*/
public const TYPE_MULTI_IP_SUBNET = 'MULTI_IP_SUBNET';
/**
* UEFI_COMPATIBLE feature type.
*/
public const TYPE_UEFI_COMPATIBLE = 'UEFI_COMPATIBLE';
/**
* SECURE_BOOT feature type.
*/
public const TYPE_SECURE_BOOT = 'SECURE_BOOT';
/**
* GVNIC feature type.
*/
public const TYPE_GVNIC = 'GVNIC';
/**
* SEV_CAPABLE feature type.
*/
public const TYPE_SEV_CAPABLE = 'SEV_CAPABLE';
/**
* BARE_METAL_LINUX_COMPATIBLE feature type.
*/
public const TYPE_BARE_METAL_LINUX_COMPATIBLE = 'BARE_METAL_LINUX_COMPATIBLE';
/**
* SUSPEND_RESUME_COMPATIBLE feature type.
*/
public const TYPE_SUSPEND_RESUME_COMPATIBLE = 'SUSPEND_RESUME_COMPATIBLE';
/**
* SEV_LIVE_MIGRATABLE feature type.
*/
public const TYPE_SEV_LIVE_MIGRATABLE = 'SEV_LIVE_MIGRATABLE';
/**
* SEV_SNP_CAPABLE feature type.
*/
public const TYPE_SEV_SNP_CAPABLE = 'SEV_SNP_CAPABLE';
/**
* TDX_CAPABLE feature type.
*/
public const TYPE_TDX_CAPABLE = 'TDX_CAPABLE';
/**
* IDPF feature type.
*/
public const TYPE_IDPF = 'IDPF';
/**
* SEV_LIVE_MIGRATABLE_V2 feature type.
*/
public const TYPE_SEV_LIVE_MIGRATABLE_V2 = 'SEV_LIVE_MIGRATABLE_V2';
/**
* The ID of a supported feature.
*
* @var string
*/
public $type;
/**
* The ID of a supported feature.
*
* Accepted values: FEATURE_TYPE_UNSPECIFIED, VIRTIO_SCSI_MULTIQUEUE, WINDOWS,
* MULTI_IP_SUBNET, UEFI_COMPATIBLE, SECURE_BOOT, GVNIC, SEV_CAPABLE,
* BARE_METAL_LINUX_COMPATIBLE, SUSPEND_RESUME_COMPATIBLE,
* SEV_LIVE_MIGRATABLE, SEV_SNP_CAPABLE, TDX_CAPABLE, IDPF,
* SEV_LIVE_MIGRATABLE_V2
*
* @param self::TYPE_* $type
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return self::TYPE_*
*/
public function getType()
{
return $this->type;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GuestOsFeature::class, 'Google_Service_Backupdr_GuestOsFeature');

View File

@@ -0,0 +1,75 @@
<?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\Backupdr;
class InitializeParams extends \Google\Collection
{
protected $collection_key = 'replicaZones';
/**
* Optional. Specifies the disk name. If not specified, the default is to use
* the name of the instance.
*
* @var string
*/
public $diskName;
/**
* Optional. URL of the zone where the disk should be created. Required for
* each regional disk associated with the instance.
*
* @var string[]
*/
public $replicaZones;
/**
* Optional. Specifies the disk name. If not specified, the default is to use
* the name of the instance.
*
* @param string $diskName
*/
public function setDiskName($diskName)
{
$this->diskName = $diskName;
}
/**
* @return string
*/
public function getDiskName()
{
return $this->diskName;
}
/**
* Optional. URL of the zone where the disk should be created. Required for
* each regional disk associated with the instance.
*
* @param string[] $replicaZones
*/
public function setReplicaZones($replicaZones)
{
$this->replicaZones = $replicaZones;
}
/**
* @return string[]
*/
public function getReplicaZones()
{
return $this->replicaZones;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(InitializeParams::class, 'Google_Service_Backupdr_InitializeParams');

View File

@@ -0,0 +1,112 @@
<?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\Backupdr;
class InitializeServiceRequest extends \Google\Model
{
protected $cloudSqlInstanceInitializationConfigType = CloudSqlInstanceInitializationConfig::class;
protected $cloudSqlInstanceInitializationConfigDataType = '';
/**
* Optional. An optional request ID to identify requests. Specify a unique
* request ID so that if you must retry your request, the server will know to
* ignore the request if it has already been completed. The server will
* guarantee that for at least 60 minutes since the first request. For
* example, consider a situation where you make an initial request and t he
* request times out. If you make the request again with the same request ID,
* the server can check if original operation with the same request ID was
* received, and if so, will ignore the second request. This prevents clients
* from accidentally creating duplicate commitments. The request ID must be a
* valid UUID with the exception that zero UUID is not supported
* (00000000-0000-0000-0000-000000000000).
*
* @var string
*/
public $requestId;
/**
* Required. The resource type to which the default service config will be
* applied. Examples include, "compute.googleapis.com/Instance" and
* "storage.googleapis.com/Bucket".
*
* @var string
*/
public $resourceType;
/**
* Optional. The configuration for initializing a Cloud SQL instance.
*
* @param CloudSqlInstanceInitializationConfig $cloudSqlInstanceInitializationConfig
*/
public function setCloudSqlInstanceInitializationConfig(CloudSqlInstanceInitializationConfig $cloudSqlInstanceInitializationConfig)
{
$this->cloudSqlInstanceInitializationConfig = $cloudSqlInstanceInitializationConfig;
}
/**
* @return CloudSqlInstanceInitializationConfig
*/
public function getCloudSqlInstanceInitializationConfig()
{
return $this->cloudSqlInstanceInitializationConfig;
}
/**
* Optional. An optional request ID to identify requests. Specify a unique
* request ID so that if you must retry your request, the server will know to
* ignore the request if it has already been completed. The server will
* guarantee that for at least 60 minutes since the first request. For
* example, consider a situation where you make an initial request and t he
* request times out. If you make the request again with the same request ID,
* the server can check if original operation with the same request ID was
* received, and if so, will ignore the second request. This prevents clients
* from accidentally creating duplicate commitments. The request ID must be a
* valid UUID with the exception that zero UUID is not supported
* (00000000-0000-0000-0000-000000000000).
*
* @param string $requestId
*/
public function setRequestId($requestId)
{
$this->requestId = $requestId;
}
/**
* @return string
*/
public function getRequestId()
{
return $this->requestId;
}
/**
* Required. The resource type to which the default service config will be
* applied. Examples include, "compute.googleapis.com/Instance" and
* "storage.googleapis.com/Bucket".
*
* @param string $resourceType
*/
public function setResourceType($resourceType)
{
$this->resourceType = $resourceType;
}
/**
* @return string
*/
public function getResourceType()
{
return $this->resourceType;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(InitializeServiceRequest::class, 'Google_Service_Backupdr_InitializeServiceRequest');

View File

@@ -0,0 +1,90 @@
<?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\Backupdr;
class InitiateBackupRequest extends \Google\Model
{
/**
* Required. Resource ID of the Backup resource.
*
* @var string
*/
public $backupId;
/**
* Optional. An optional request ID to identify requests. Specify a unique
* request ID so that if you must retry your request, the server will know to
* ignore the request if it has already been completed. The server will
* guarantee that for at least 60 minutes since the first request. For
* example, consider a situation where you make an initial request and the
* request times out. If you make the request again with the same request ID,
* the server can check if original operation with the same request ID was
* received, and if so, will ignore the second request. This prevents clients
* from accidentally creating duplicate commitments. The request ID must be a
* valid UUID with the exception that zero UUID is not supported
* (00000000-0000-0000-0000-000000000000).
*
* @var string
*/
public $requestId;
/**
* Required. Resource ID of the Backup resource.
*
* @param string $backupId
*/
public function setBackupId($backupId)
{
$this->backupId = $backupId;
}
/**
* @return string
*/
public function getBackupId()
{
return $this->backupId;
}
/**
* Optional. An optional request ID to identify requests. Specify a unique
* request ID so that if you must retry your request, the server will know to
* ignore the request if it has already been completed. The server will
* guarantee that for at least 60 minutes since the first request. For
* example, consider a situation where you make an initial request and the
* request times out. If you make the request again with the same request ID,
* the server can check if original operation with the same request ID was
* received, and if so, will ignore the second request. This prevents clients
* from accidentally creating duplicate commitments. The request ID must be a
* valid UUID with the exception that zero UUID is not supported
* (00000000-0000-0000-0000-000000000000).
*
* @param string $requestId
*/
public function setRequestId($requestId)
{
$this->requestId = $requestId;
}
/**
* @return string
*/
public function getRequestId()
{
return $this->requestId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(InitiateBackupRequest::class, 'Google_Service_Backupdr_InitiateBackupRequest');

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\Backupdr;
class InitiateBackupResponse extends \Google\Model
{
/**
* The name of the backup that was created.
*
* @var string
*/
public $backup;
/**
* The generation id of the base backup. It is needed for the incremental
* backups.
*
* @var int
*/
public $baseBackupGenerationId;
/**
* The generation id of the new backup.
*
* @var int
*/
public $newBackupGenerationId;
/**
* The name of the backup that was created.
*
* @param string $backup
*/
public function setBackup($backup)
{
$this->backup = $backup;
}
/**
* @return string
*/
public function getBackup()
{
return $this->backup;
}
/**
* The generation id of the base backup. It is needed for the incremental
* backups.
*
* @param int $baseBackupGenerationId
*/
public function setBaseBackupGenerationId($baseBackupGenerationId)
{
$this->baseBackupGenerationId = $baseBackupGenerationId;
}
/**
* @return int
*/
public function getBaseBackupGenerationId()
{
return $this->baseBackupGenerationId;
}
/**
* The generation id of the new backup.
*
* @param int $newBackupGenerationId
*/
public function setNewBackupGenerationId($newBackupGenerationId)
{
$this->newBackupGenerationId = $newBackupGenerationId;
}
/**
* @return int
*/
public function getNewBackupGenerationId()
{
return $this->newBackupGenerationId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(InitiateBackupResponse::class, 'Google_Service_Backupdr_InitiateBackupResponse');

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\Backupdr;
class InstanceParams extends \Google\Model
{
/**
* Optional. Resource manager tags to be bound to the instance.
*
* @var string[]
*/
public $resourceManagerTags;
/**
* Optional. Resource manager tags to be bound to the instance.
*
* @param string[] $resourceManagerTags
*/
public function setResourceManagerTags($resourceManagerTags)
{
$this->resourceManagerTags = $resourceManagerTags;
}
/**
* @return string[]
*/
public function getResourceManagerTags()
{
return $this->resourceManagerTags;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(InstanceParams::class, 'Google_Service_Backupdr_InstanceParams');

View File

@@ -0,0 +1,168 @@
<?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\Backupdr;
class IsolationExpectations extends \Google\Model
{
protected $requirementOverrideType = RequirementOverride::class;
protected $requirementOverrideDataType = '';
/**
* @var string
*/
public $ziOrgPolicy;
/**
* @var string
*/
public $ziRegionPolicy;
/**
* @var string
*/
public $ziRegionState;
/**
* @var string
*/
public $zoneIsolation;
/**
* @var string
*/
public $zoneSeparation;
/**
* @var string
*/
public $zsOrgPolicy;
/**
* @var string
*/
public $zsRegionState;
/**
* @param RequirementOverride
*/
public function setRequirementOverride(RequirementOverride $requirementOverride)
{
$this->requirementOverride = $requirementOverride;
}
/**
* @return RequirementOverride
*/
public function getRequirementOverride()
{
return $this->requirementOverride;
}
/**
* @param string
*/
public function setZiOrgPolicy($ziOrgPolicy)
{
$this->ziOrgPolicy = $ziOrgPolicy;
}
/**
* @return string
*/
public function getZiOrgPolicy()
{
return $this->ziOrgPolicy;
}
/**
* @param string
*/
public function setZiRegionPolicy($ziRegionPolicy)
{
$this->ziRegionPolicy = $ziRegionPolicy;
}
/**
* @return string
*/
public function getZiRegionPolicy()
{
return $this->ziRegionPolicy;
}
/**
* @param string
*/
public function setZiRegionState($ziRegionState)
{
$this->ziRegionState = $ziRegionState;
}
/**
* @return string
*/
public function getZiRegionState()
{
return $this->ziRegionState;
}
/**
* @param string
*/
public function setZoneIsolation($zoneIsolation)
{
$this->zoneIsolation = $zoneIsolation;
}
/**
* @return string
*/
public function getZoneIsolation()
{
return $this->zoneIsolation;
}
/**
* @param string
*/
public function setZoneSeparation($zoneSeparation)
{
$this->zoneSeparation = $zoneSeparation;
}
/**
* @return string
*/
public function getZoneSeparation()
{
return $this->zoneSeparation;
}
/**
* @param string
*/
public function setZsOrgPolicy($zsOrgPolicy)
{
$this->zsOrgPolicy = $zsOrgPolicy;
}
/**
* @return string
*/
public function getZsOrgPolicy()
{
return $this->zsOrgPolicy;
}
/**
* @param string
*/
public function setZsRegionState($zsRegionState)
{
$this->zsRegionState = $zsRegionState;
}
/**
* @return string
*/
public function getZsRegionState()
{
return $this->zsRegionState;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(IsolationExpectations::class, 'Google_Service_Backupdr_IsolationExpectations');

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\Backupdr;
class ListBackupPlanAssociationsResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
protected $backupPlanAssociationsType = BackupPlanAssociation::class;
protected $backupPlanAssociationsDataType = 'array';
/**
* A token identifying a page of results the server should return.
*
* @var string
*/
public $nextPageToken;
/**
* Locations that could not be reached.
*
* @var string[]
*/
public $unreachable;
/**
* The list of Backup Plan Associations in the project for the specified
* location. If the `{location}` value in the request is "-", the response
* contains a list of instances from all locations. In case any location is
* unreachable, the response will only return backup plan associations in
* reachable locations and the 'unreachable' field will be populated with a
* list of unreachable locations.
*
* @param BackupPlanAssociation[] $backupPlanAssociations
*/
public function setBackupPlanAssociations($backupPlanAssociations)
{
$this->backupPlanAssociations = $backupPlanAssociations;
}
/**
* @return BackupPlanAssociation[]
*/
public function getBackupPlanAssociations()
{
return $this->backupPlanAssociations;
}
/**
* A token identifying a page of results the server should 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(ListBackupPlanAssociationsResponse::class, 'Google_Service_Backupdr_ListBackupPlanAssociationsResponse');

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\Backupdr;
class ListBackupPlanRevisionsResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
protected $backupPlanRevisionsType = BackupPlanRevision::class;
protected $backupPlanRevisionsDataType = 'array';
/**
* A token which may be sent as page_token in a subsequent
* `ListBackupPlanRevisions` 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 `BackupPlanRevisions` in the project for the specified
* location. If the `{location}` value in the request is "-", the response
* contains a list of resources from all locations. In case any location is
* unreachable, the response will only return backup plans in reachable
* locations and the 'unreachable' field will be populated with a list of
* unreachable locations.
*
* @param BackupPlanRevision[] $backupPlanRevisions
*/
public function setBackupPlanRevisions($backupPlanRevisions)
{
$this->backupPlanRevisions = $backupPlanRevisions;
}
/**
* @return BackupPlanRevision[]
*/
public function getBackupPlanRevisions()
{
return $this->backupPlanRevisions;
}
/**
* A token which may be sent as page_token in a subsequent
* `ListBackupPlanRevisions` 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(ListBackupPlanRevisionsResponse::class, 'Google_Service_Backupdr_ListBackupPlanRevisionsResponse');

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\Backupdr;
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` in the project for the specified location. If the
* `{location}` value in the request is "-", the response contains a list of
* resources from all locations. In case any location is unreachable, the
* response will only return backup plans in reachable locations and the
* 'unreachable' field will be populated with a list of unreachable locations.
* BackupPlan
*
* @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_Backupdr_ListBackupPlansResponse');

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\Backupdr;
class ListBackupVaultsResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
protected $backupVaultsType = BackupVault::class;
protected $backupVaultsDataType = 'array';
/**
* A token identifying a page of results the server should return.
*
* @var string
*/
public $nextPageToken;
/**
* Locations that could not be reached.
*
* @var string[]
*/
public $unreachable;
/**
* The list of BackupVault instances in the project for the specified
* location. If the '{location}' value in the request is "-", the response
* contains a list of instances from all locations. In case any location is
* unreachable, the response will only return backup vaults in reachable
* locations and the 'unreachable' field will be populated with a list of
* unreachable locations.
*
* @param BackupVault[] $backupVaults
*/
public function setBackupVaults($backupVaults)
{
$this->backupVaults = $backupVaults;
}
/**
* @return BackupVault[]
*/
public function getBackupVaults()
{
return $this->backupVaults;
}
/**
* A token identifying a page of results the server should 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(ListBackupVaultsResponse::class, 'Google_Service_Backupdr_ListBackupVaultsResponse');

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\Backupdr;
class ListBackupsResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
protected $backupsType = Backup::class;
protected $backupsDataType = 'array';
/**
* A token identifying a page of results the server should return.
*
* @var string
*/
public $nextPageToken;
/**
* Locations that could not be reached.
*
* @var string[]
*/
public $unreachable;
/**
* The list of Backup instances in the project for the specified location. If
* the '{location}' value in the request is "-", the response contains a list
* of instances from all locations. In case any location is unreachable, the
* response will only return data sources in reachable locations and the
* 'unreachable' field will be populated with a list of unreachable locations.
*
* @param Backup[] $backups
*/
public function setBackups($backups)
{
$this->backups = $backups;
}
/**
* @return Backup[]
*/
public function getBackups()
{
return $this->backups;
}
/**
* A token identifying a page of results the server should 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_Backupdr_ListBackupsResponse');

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\Backupdr;
class ListDataSourceReferencesResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
protected $dataSourceReferencesType = DataSourceReference::class;
protected $dataSourceReferencesDataType = 'array';
/**
* A token, which can be sent as `page_token` to retrieve the next page. If
* this field is omitted, there are no subsequent pages.
*
* @var string
*/
public $nextPageToken;
/**
* Locations that could not be reached.
*
* @var string[]
*/
public $unreachable;
/**
* The DataSourceReferences from the specified parent.
*
* @param DataSourceReference[] $dataSourceReferences
*/
public function setDataSourceReferences($dataSourceReferences)
{
$this->dataSourceReferences = $dataSourceReferences;
}
/**
* @return DataSourceReference[]
*/
public function getDataSourceReferences()
{
return $this->dataSourceReferences;
}
/**
* A token, which can be sent as `page_token` to retrieve the next page. If
* this field is omitted, there are no subsequent pages.
*
* @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(ListDataSourceReferencesResponse::class, 'Google_Service_Backupdr_ListDataSourceReferencesResponse');

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\Backupdr;
class ListDataSourcesResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
protected $dataSourcesType = DataSource::class;
protected $dataSourcesDataType = 'array';
/**
* A token identifying a page of results the server should return.
*
* @var string
*/
public $nextPageToken;
/**
* Locations that could not be reached.
*
* @var string[]
*/
public $unreachable;
/**
* The list of DataSource instances in the project for the specified location.
* If the '{location}' value in the request is "-", the response contains a
* list of instances from all locations. In case any location is unreachable,
* the response will only return data sources in reachable locations and the
* 'unreachable' field will be populated with a list of unreachable locations.
*
* @param DataSource[] $dataSources
*/
public function setDataSources($dataSources)
{
$this->dataSources = $dataSources;
}
/**
* @return DataSource[]
*/
public function getDataSources()
{
return $this->dataSources;
}
/**
* A token identifying a page of results the server should 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(ListDataSourcesResponse::class, 'Google_Service_Backupdr_ListDataSourcesResponse');

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\Backupdr;
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_Backupdr_ListLocationsResponse');

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\Backupdr;
class ListManagementServersResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
protected $managementServersType = ManagementServer::class;
protected $managementServersDataType = 'array';
/**
* A token identifying a page of results the server should return.
*
* @var string
*/
public $nextPageToken;
/**
* Locations that could not be reached.
*
* @var string[]
*/
public $unreachable;
/**
* The list of ManagementServer instances in the project for the specified
* location. If the '{location}' value in the request is "-", the response
* contains a list of instances from all locations. In case any location is
* unreachable, the response will only return management servers in reachable
* locations and the 'unreachable' field will be populated with a list of
* unreachable locations.
*
* @param ManagementServer[] $managementServers
*/
public function setManagementServers($managementServers)
{
$this->managementServers = $managementServers;
}
/**
* @return ManagementServer[]
*/
public function getManagementServers()
{
return $this->managementServers;
}
/**
* A token identifying a page of results the server should 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(ListManagementServersResponse::class, 'Google_Service_Backupdr_ListManagementServersResponse');

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\Backupdr;
class ListOperationsResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
/**
* The standard List next-page token.
*
* @var string
*/
public $nextPageToken;
protected $operationsType = Operation::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 Operation[] $operations
*/
public function setOperations($operations)
{
$this->operations = $operations;
}
/**
* @return Operation[]
*/
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(ListOperationsResponse::class, 'Google_Service_Backupdr_ListOperationsResponse');

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\Backupdr;
class ListResourceBackupConfigsResponse extends \Google\Collection
{
protected $collection_key = 'resourceBackupConfigs';
/**
* A token identifying a page of results the server should return.
*
* @var string
*/
public $nextPageToken;
protected $resourceBackupConfigsType = ResourceBackupConfig::class;
protected $resourceBackupConfigsDataType = 'array';
/**
* A token identifying a page of results the server should return.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* The list of ResourceBackupConfigs for the specified scope.
*
* @param ResourceBackupConfig[] $resourceBackupConfigs
*/
public function setResourceBackupConfigs($resourceBackupConfigs)
{
$this->resourceBackupConfigs = $resourceBackupConfigs;
}
/**
* @return ResourceBackupConfig[]
*/
public function getResourceBackupConfigs()
{
return $this->resourceBackupConfigs;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListResourceBackupConfigsResponse::class, 'Google_Service_Backupdr_ListResourceBackupConfigsResponse');

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\Backupdr;
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_Backupdr_Location');

View File

@@ -0,0 +1,62 @@
<?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\Backupdr;
class LocationAssignment extends \Google\Model
{
/**
* @var string
*/
public $location;
/**
* @var string
*/
public $locationType;
/**
* @param string
*/
public function setLocation($location)
{
$this->location = $location;
}
/**
* @return string
*/
public function getLocation()
{
return $this->location;
}
/**
* @param string
*/
public function setLocationType($locationType)
{
$this->locationType = $locationType;
}
/**
* @return string
*/
public function getLocationType()
{
return $this->locationType;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(LocationAssignment::class, 'Google_Service_Backupdr_LocationAssignment');

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\Backupdr;
class LocationData extends \Google\Model
{
protected $blobstoreLocationType = BlobstoreLocation::class;
protected $blobstoreLocationDataType = '';
protected $childAssetLocationType = CloudAssetComposition::class;
protected $childAssetLocationDataType = '';
protected $directLocationType = DirectLocationAssignment::class;
protected $directLocationDataType = '';
protected $gcpProjectProxyType = TenantProjectProxy::class;
protected $gcpProjectProxyDataType = '';
protected $placerLocationType = PlacerLocation::class;
protected $placerLocationDataType = '';
protected $spannerLocationType = SpannerLocation::class;
protected $spannerLocationDataType = '';
/**
* @param BlobstoreLocation
*/
public function setBlobstoreLocation(BlobstoreLocation $blobstoreLocation)
{
$this->blobstoreLocation = $blobstoreLocation;
}
/**
* @return BlobstoreLocation
*/
public function getBlobstoreLocation()
{
return $this->blobstoreLocation;
}
/**
* @param CloudAssetComposition
*/
public function setChildAssetLocation(CloudAssetComposition $childAssetLocation)
{
$this->childAssetLocation = $childAssetLocation;
}
/**
* @return CloudAssetComposition
*/
public function getChildAssetLocation()
{
return $this->childAssetLocation;
}
/**
* @param DirectLocationAssignment
*/
public function setDirectLocation(DirectLocationAssignment $directLocation)
{
$this->directLocation = $directLocation;
}
/**
* @return DirectLocationAssignment
*/
public function getDirectLocation()
{
return $this->directLocation;
}
/**
* @param TenantProjectProxy
*/
public function setGcpProjectProxy(TenantProjectProxy $gcpProjectProxy)
{
$this->gcpProjectProxy = $gcpProjectProxy;
}
/**
* @return TenantProjectProxy
*/
public function getGcpProjectProxy()
{
return $this->gcpProjectProxy;
}
/**
* @param PlacerLocation
*/
public function setPlacerLocation(PlacerLocation $placerLocation)
{
$this->placerLocation = $placerLocation;
}
/**
* @return PlacerLocation
*/
public function getPlacerLocation()
{
return $this->placerLocation;
}
/**
* @param SpannerLocation
*/
public function setSpannerLocation(SpannerLocation $spannerLocation)
{
$this->spannerLocation = $spannerLocation;
}
/**
* @return SpannerLocation
*/
public function getSpannerLocation()
{
return $this->spannerLocation;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(LocationData::class, 'Google_Service_Backupdr_LocationData');

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\Backupdr;
class LocationMetadata extends \Google\Collection
{
protected $collection_key = 'unsupportedFeatures';
/**
* @var string[]
*/
public $unsupportedFeatures;
/**
* @param string[] $unsupportedFeatures
*/
public function setUnsupportedFeatures($unsupportedFeatures)
{
$this->unsupportedFeatures = $unsupportedFeatures;
}
/**
* @return string[]
*/
public function getUnsupportedFeatures()
{
return $this->unsupportedFeatures;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(LocationMetadata::class, 'Google_Service_Backupdr_LocationMetadata');

View File

@@ -0,0 +1,432 @@
<?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\Backupdr;
class ManagementServer extends \Google\Collection
{
/**
* State not set.
*/
public const STATE_INSTANCE_STATE_UNSPECIFIED = 'INSTANCE_STATE_UNSPECIFIED';
/**
* The instance is being created.
*/
public const STATE_CREATING = 'CREATING';
/**
* The instance has been created and is fully usable.
*/
public const STATE_READY = 'READY';
/**
* The instance configuration is being updated. Certain kinds of updates may
* cause the instance to become unusable while the update is in progress.
*/
public const STATE_UPDATING = 'UPDATING';
/**
* The instance is being deleted.
*/
public const STATE_DELETING = 'DELETING';
/**
* The instance is being repaired and may be unstable.
*/
public const STATE_REPAIRING = 'REPAIRING';
/**
* Maintenance is being performed on this instance.
*/
public const STATE_MAINTENANCE = 'MAINTENANCE';
/**
* The instance is experiencing an issue and might be unusable. You can get
* further details from the statusMessage field of Instance resource.
*/
public const STATE_ERROR = 'ERROR';
/**
* Instance type is not mentioned.
*/
public const TYPE_INSTANCE_TYPE_UNSPECIFIED = 'INSTANCE_TYPE_UNSPECIFIED';
/**
* Instance for backup and restore management (i.e., AGM).
*/
public const TYPE_BACKUP_RESTORE = 'BACKUP_RESTORE';
protected $collection_key = 'networks';
/**
* Output only. The hostname or ip address of the exposed AGM endpoints, used
* by BAs to connect to BA proxy.
*
* @var string[]
*/
public $baProxyUri;
/**
* Output only. The time when the instance was created.
*
* @var string
*/
public $createTime;
/**
* Optional. The description of the ManagementServer instance (2048 characters
* or less).
*
* @var string
*/
public $description;
/**
* Optional. Server specified ETag for the ManagementServer resource to
* prevent simultaneous updates from overwiting each other.
*
* @var string
*/
public $etag;
/**
* Optional. Resource labels to represent user provided metadata. Labels
* currently defined: 1. migrate_from_go= If set to true, the MS is created in
* migration ready mode.
*
* @var string[]
*/
public $labels;
protected $managementUriType = ManagementURI::class;
protected $managementUriDataType = '';
/**
* Output only. Identifier. The resource name.
*
* @var string
*/
public $name;
protected $networksType = NetworkConfig::class;
protected $networksDataType = 'array';
/**
* Output only. The OAuth 2.0 client id is required to make API calls to the
* BackupDR instance API of this ManagementServer. This is the value that
* should be provided in the 'aud' field of the OIDC ID Token (see openid
* specification https://openid.net/specs/openid-connect-
* core-1_0.html#IDToken).
*
* @var string
*/
public $oauth2ClientId;
/**
* Output only. Reserved for future use.
*
* @var bool
*/
public $satisfiesPzi;
/**
* Output only. Reserved for future use.
*
* @var bool
*/
public $satisfiesPzs;
/**
* Output only. The ManagementServer state.
*
* @var string
*/
public $state;
/**
* Optional. The type of the ManagementServer resource.
*
* @var string
*/
public $type;
/**
* Output only. The time when the instance was updated.
*
* @var string
*/
public $updateTime;
protected $workforceIdentityBasedManagementUriType = WorkforceIdentityBasedManagementURI::class;
protected $workforceIdentityBasedManagementUriDataType = '';
protected $workforceIdentityBasedOauth2ClientIdType = WorkforceIdentityBasedOAuth2ClientID::class;
protected $workforceIdentityBasedOauth2ClientIdDataType = '';
/**
* Output only. The hostname or ip address of the exposed AGM endpoints, used
* by BAs to connect to BA proxy.
*
* @param string[] $baProxyUri
*/
public function setBaProxyUri($baProxyUri)
{
$this->baProxyUri = $baProxyUri;
}
/**
* @return string[]
*/
public function getBaProxyUri()
{
return $this->baProxyUri;
}
/**
* Output only. The time when the instance was created.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* Optional. The description of the ManagementServer instance (2048 characters
* or less).
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* Optional. Server specified ETag for the ManagementServer resource to
* prevent simultaneous updates from overwiting each other.
*
* @param string $etag
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* Optional. Resource labels to represent user provided metadata. Labels
* currently defined: 1. migrate_from_go= If set to true, the MS is created in
* migration ready mode.
*
* @param string[] $labels
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* Output only. The hostname or ip address of the exposed AGM endpoints, used
* by clients to connect to AGM/RD graphical user interface and APIs.
*
* @param ManagementURI $managementUri
*/
public function setManagementUri(ManagementURI $managementUri)
{
$this->managementUri = $managementUri;
}
/**
* @return ManagementURI
*/
public function getManagementUri()
{
return $this->managementUri;
}
/**
* Output only. Identifier. The resource name.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Optional. VPC networks to which the ManagementServer instance is connected.
* For this version, only a single network is supported. This field is
* optional if MS is created without PSA
*
* @param NetworkConfig[] $networks
*/
public function setNetworks($networks)
{
$this->networks = $networks;
}
/**
* @return NetworkConfig[]
*/
public function getNetworks()
{
return $this->networks;
}
/**
* Output only. The OAuth 2.0 client id is required to make API calls to the
* BackupDR instance API of this ManagementServer. This is the value that
* should be provided in the 'aud' field of the OIDC ID Token (see openid
* specification https://openid.net/specs/openid-connect-
* core-1_0.html#IDToken).
*
* @param string $oauth2ClientId
*/
public function setOauth2ClientId($oauth2ClientId)
{
$this->oauth2ClientId = $oauth2ClientId;
}
/**
* @return string
*/
public function getOauth2ClientId()
{
return $this->oauth2ClientId;
}
/**
* 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. Reserved for future use.
*
* @param bool $satisfiesPzs
*/
public function setSatisfiesPzs($satisfiesPzs)
{
$this->satisfiesPzs = $satisfiesPzs;
}
/**
* @return bool
*/
public function getSatisfiesPzs()
{
return $this->satisfiesPzs;
}
/**
* Output only. The ManagementServer state.
*
* Accepted values: INSTANCE_STATE_UNSPECIFIED, CREATING, READY, UPDATING,
* DELETING, REPAIRING, MAINTENANCE, ERROR
*
* @param self::STATE_* $state
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return self::STATE_*
*/
public function getState()
{
return $this->state;
}
/**
* Optional. The type of the ManagementServer resource.
*
* Accepted values: INSTANCE_TYPE_UNSPECIFIED, BACKUP_RESTORE
*
* @param self::TYPE_* $type
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return self::TYPE_*
*/
public function getType()
{
return $this->type;
}
/**
* Output only. The time when the instance was updated.
*
* @param string $updateTime
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
/**
* Output only. The hostnames of the exposed AGM endpoints for both types of
* user i.e. 1p and 3p, used to connect AGM/RM UI.
*
* @param WorkforceIdentityBasedManagementURI $workforceIdentityBasedManagementUri
*/
public function setWorkforceIdentityBasedManagementUri(WorkforceIdentityBasedManagementURI $workforceIdentityBasedManagementUri)
{
$this->workforceIdentityBasedManagementUri = $workforceIdentityBasedManagementUri;
}
/**
* @return WorkforceIdentityBasedManagementURI
*/
public function getWorkforceIdentityBasedManagementUri()
{
return $this->workforceIdentityBasedManagementUri;
}
/**
* Output only. The OAuth client IDs for both types of user i.e. 1p and 3p.
*
* @param WorkforceIdentityBasedOAuth2ClientID $workforceIdentityBasedOauth2ClientId
*/
public function setWorkforceIdentityBasedOauth2ClientId(WorkforceIdentityBasedOAuth2ClientID $workforceIdentityBasedOauth2ClientId)
{
$this->workforceIdentityBasedOauth2ClientId = $workforceIdentityBasedOauth2ClientId;
}
/**
* @return WorkforceIdentityBasedOAuth2ClientID
*/
public function getWorkforceIdentityBasedOauth2ClientId()
{
return $this->workforceIdentityBasedOauth2ClientId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ManagementServer::class, 'Google_Service_Backupdr_ManagementServer');

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\Backupdr;
class ManagementURI extends \Google\Model
{
/**
* Output only. The ManagementServer AGM/RD API URL.
*
* @var string
*/
public $api;
/**
* Output only. The ManagementServer AGM/RD WebUI URL.
*
* @var string
*/
public $webUi;
/**
* Output only. The ManagementServer AGM/RD API URL.
*
* @param string $api
*/
public function setApi($api)
{
$this->api = $api;
}
/**
* @return string
*/
public function getApi()
{
return $this->api;
}
/**
* Output only. The ManagementServer AGM/RD WebUI URL.
*
* @param string $webUi
*/
public function setWebUi($webUi)
{
$this->webUi = $webUi;
}
/**
* @return string
*/
public function getWebUi()
{
return $this->webUi;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ManagementURI::class, 'Google_Service_Backupdr_ManagementURI');

Some files were not shown because too many files have changed in this diff Show More