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

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\CloudAlloyDBAdmin;
class AuthorizedNetwork extends \Google\Model
{
/**
* CIDR range for one authorzied network of the instance.
*
* @var string
*/
public $cidrRange;
/**
* CIDR range for one authorzied network of the instance.
*
* @param string $cidrRange
*/
public function setCidrRange($cidrRange)
{
$this->cidrRange = $cidrRange;
}
/**
* @return string
*/
public function getCidrRange()
{
return $this->cidrRange;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AuthorizedNetwork::class, 'Google_Service_CloudAlloyDBAdmin_AuthorizedNetwork');

View File

@@ -0,0 +1,59 @@
<?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\CloudAlloyDBAdmin;
class AutoScalingConfig extends \Google\Collection
{
protected $collection_key = 'schedules';
protected $policyType = Policy::class;
protected $policyDataType = '';
protected $schedulesType = Schedule::class;
protected $schedulesDataType = 'array';
/**
* @param Policy
*/
public function setPolicy(Policy $policy)
{
$this->policy = $policy;
}
/**
* @return Policy
*/
public function getPolicy()
{
return $this->policy;
}
/**
* @param Schedule[]
*/
public function setSchedules($schedules)
{
$this->schedules = $schedules;
}
/**
* @return Schedule[]
*/
public function getSchedules()
{
return $this->schedules;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AutoScalingConfig::class, 'Google_Service_CloudAlloyDBAdmin_AutoScalingConfig');

View File

@@ -0,0 +1,200 @@
<?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\CloudAlloyDBAdmin;
class AutomatedBackupPolicy extends \Google\Model
{
/**
* The length of the time window during which a backup can be taken. If a
* backup does not succeed within this time window, it will be canceled and
* considered failed. The backup window must be at least 5 minutes long. There
* is no upper bound on the window. If not set, it defaults to 1 hour.
*
* @var string
*/
public $backupWindow;
/**
* Whether automated automated backups are enabled. If not set, defaults to
* true.
*
* @var bool
*/
public $enabled;
protected $encryptionConfigType = EncryptionConfig::class;
protected $encryptionConfigDataType = '';
/**
* Labels to apply to backups created using this configuration.
*
* @var string[]
*/
public $labels;
/**
* The location where the backup will be stored. Currently, the only supported
* option is to store the backup in the same region as the cluster. If empty,
* defaults to the region of the cluster.
*
* @var string
*/
public $location;
protected $quantityBasedRetentionType = QuantityBasedRetention::class;
protected $quantityBasedRetentionDataType = '';
protected $timeBasedRetentionType = TimeBasedRetention::class;
protected $timeBasedRetentionDataType = '';
protected $weeklyScheduleType = WeeklySchedule::class;
protected $weeklyScheduleDataType = '';
/**
* The length of the time window during which a backup can be taken. If a
* backup does not succeed within this time window, it will be canceled and
* considered failed. The backup window must be at least 5 minutes long. There
* is no upper bound on the window. If not set, it defaults to 1 hour.
*
* @param string $backupWindow
*/
public function setBackupWindow($backupWindow)
{
$this->backupWindow = $backupWindow;
}
/**
* @return string
*/
public function getBackupWindow()
{
return $this->backupWindow;
}
/**
* Whether automated automated backups are enabled. If not set, defaults to
* true.
*
* @param bool $enabled
*/
public function setEnabled($enabled)
{
$this->enabled = $enabled;
}
/**
* @return bool
*/
public function getEnabled()
{
return $this->enabled;
}
/**
* Optional. The encryption config can be specified to encrypt the backups
* with a customer-managed encryption key (CMEK). When this field is not
* specified, the backup will use the cluster's encryption config.
*
* @param EncryptionConfig $encryptionConfig
*/
public function setEncryptionConfig(EncryptionConfig $encryptionConfig)
{
$this->encryptionConfig = $encryptionConfig;
}
/**
* @return EncryptionConfig
*/
public function getEncryptionConfig()
{
return $this->encryptionConfig;
}
/**
* Labels to apply to backups created using this configuration.
*
* @param string[] $labels
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* The location where the backup will be stored. Currently, the only supported
* option is to store the backup in the same region as the cluster. If empty,
* defaults to the region of the cluster.
*
* @param string $location
*/
public function setLocation($location)
{
$this->location = $location;
}
/**
* @return string
*/
public function getLocation()
{
return $this->location;
}
/**
* Quantity-based Backup retention policy to retain recent backups.
*
* @param QuantityBasedRetention $quantityBasedRetention
*/
public function setQuantityBasedRetention(QuantityBasedRetention $quantityBasedRetention)
{
$this->quantityBasedRetention = $quantityBasedRetention;
}
/**
* @return QuantityBasedRetention
*/
public function getQuantityBasedRetention()
{
return $this->quantityBasedRetention;
}
/**
* Time-based Backup retention policy.
*
* @param TimeBasedRetention $timeBasedRetention
*/
public function setTimeBasedRetention(TimeBasedRetention $timeBasedRetention)
{
$this->timeBasedRetention = $timeBasedRetention;
}
/**
* @return TimeBasedRetention
*/
public function getTimeBasedRetention()
{
return $this->timeBasedRetention;
}
/**
* Weekly schedule for the Backup.
*
* @param WeeklySchedule $weeklySchedule
*/
public function setWeeklySchedule(WeeklySchedule $weeklySchedule)
{
$this->weeklySchedule = $weeklySchedule;
}
/**
* @return WeeklySchedule
*/
public function getWeeklySchedule()
{
return $this->weeklySchedule;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AutomatedBackupPolicy::class, 'Google_Service_CloudAlloyDBAdmin_AutomatedBackupPolicy');

View File

@@ -0,0 +1,663 @@
<?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\CloudAlloyDBAdmin;
class Backup extends \Google\Model
{
/**
* This is an unknown database version.
*/
public const DATABASE_VERSION_DATABASE_VERSION_UNSPECIFIED = 'DATABASE_VERSION_UNSPECIFIED';
/**
* DEPRECATED - The database version is Postgres 13.
*
* @deprecated
*/
public const DATABASE_VERSION_POSTGRES_13 = 'POSTGRES_13';
/**
* The database version is Postgres 14.
*/
public const DATABASE_VERSION_POSTGRES_14 = 'POSTGRES_14';
/**
* The database version is Postgres 15.
*/
public const DATABASE_VERSION_POSTGRES_15 = 'POSTGRES_15';
/**
* The database version is Postgres 16.
*/
public const DATABASE_VERSION_POSTGRES_16 = 'POSTGRES_16';
/**
* The database version is Postgres 17.
*/
public const DATABASE_VERSION_POSTGRES_17 = 'POSTGRES_17';
/**
* The state of the backup is unknown.
*/
public const STATE_STATE_UNSPECIFIED = 'STATE_UNSPECIFIED';
/**
* The backup is ready.
*/
public const STATE_READY = 'READY';
/**
* The backup is creating.
*/
public const STATE_CREATING = 'CREATING';
/**
* The backup failed.
*/
public const STATE_FAILED = 'FAILED';
/**
* The backup is being deleted.
*/
public const STATE_DELETING = 'DELETING';
/**
* Backup Type is unknown.
*/
public const TYPE_TYPE_UNSPECIFIED = 'TYPE_UNSPECIFIED';
/**
* ON_DEMAND backups that were triggered by the customer (e.g., not
* AUTOMATED).
*/
public const TYPE_ON_DEMAND = 'ON_DEMAND';
/**
* AUTOMATED backups triggered by the automated backups scheduler pursuant to
* an automated backup policy.
*/
public const TYPE_AUTOMATED = 'AUTOMATED';
/**
* CONTINUOUS backups triggered by the automated backups scheduler due to a
* continuous backup policy.
*/
public const TYPE_CONTINUOUS = 'CONTINUOUS';
/**
* Annotations to allow client tools to store small amount of arbitrary data.
* This is distinct from labels. https://google.aip.dev/128
*
* @var string[]
*/
public $annotations;
/**
* Required. The full resource name of the backup source cluster (e.g.,
* projects/{project}/locations/{region}/clusters/{cluster_id}).
*
* @var string
*/
public $clusterName;
/**
* Output only. The system-generated UID of the cluster which was used to
* create this resource.
*
* @var string
*/
public $clusterUid;
/**
* Output only. Timestamp when the resource finished being created.
*
* @var string
*/
public $createCompletionTime;
/**
* Output only. Create time stamp
*
* @var string
*/
public $createTime;
/**
* Output only. The database engine major version of the cluster this backup
* was created from. Any restored cluster created from this backup will have
* the same database version.
*
* @var string
*/
public $databaseVersion;
/**
* Output only. Delete time stamp
*
* @var string
*/
public $deleteTime;
/**
* User-provided description of the backup.
*
* @var string
*/
public $description;
/**
* User-settable and human-readable display name for the Backup.
*
* @var string
*/
public $displayName;
protected $encryptionConfigType = EncryptionConfig::class;
protected $encryptionConfigDataType = '';
protected $encryptionInfoType = EncryptionInfo::class;
protected $encryptionInfoDataType = '';
/**
* For Resource freshness validation (https://google.aip.dev/154)
*
* @var string
*/
public $etag;
protected $expiryQuantityType = QuantityBasedExpiry::class;
protected $expiryQuantityDataType = '';
/**
* Output only. The time at which after the backup is eligible to be garbage
* collected. It is the duration specified by the backup's retention policy,
* added to the backup's create_time.
*
* @var string
*/
public $expiryTime;
/**
* Labels as key value pairs
*
* @var string[]
*/
public $labels;
/**
* Output only. The name of the backup resource with the format: *
* projects/{project}/locations/{region}/backups/{backup_id} where the cluster
* and backup ID segments should satisfy the regex expression
* `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`, e.g. 1-63 characters of lowercase
* letters, numbers, and dashes, starting with a letter, and ending with a
* letter or number. For more details see https://google.aip.dev/122. The
* prefix of the backup resource name is the name of the parent resource: *
* projects/{project}/locations/{region}
*
* @var string
*/
public $name;
/**
* Output only. Reconciling (https://google.aip.dev/128#reconciliation), if
* true, indicates that the service is actively updating the resource. This
* can happen due to user-triggered updates or system actions like failover or
* maintenance.
*
* @var bool
*/
public $reconciling;
/**
* Output only. Reserved for future use.
*
* @var bool
*/
public $satisfiesPzs;
/**
* Output only. The size of the backup in bytes.
*
* @var string
*/
public $sizeBytes;
/**
* Output only. The current state of the backup.
*
* @var string
*/
public $state;
/**
* Optional. Input only. Immutable. Tag keys/values directly bound to this
* resource. For example: ``` "123/environment": "production",
* "123/costCenter": "marketing" ```
*
* @var string[]
*/
public $tags;
/**
* The backup type, which suggests the trigger for the backup.
*
* @var string
*/
public $type;
/**
* Output only. The system-generated UID of the resource. The UID is assigned
* when the resource is created, and it is retained until it is deleted.
*
* @var string
*/
public $uid;
/**
* Output only. Update time stamp Users should not infer any meaning from this
* field. Its value is generally unrelated to the timing of the backup
* creation operation.
*
* @var string
*/
public $updateTime;
/**
* Annotations to allow client tools to store small amount of arbitrary data.
* This is distinct from labels. https://google.aip.dev/128
*
* @param string[] $annotations
*/
public function setAnnotations($annotations)
{
$this->annotations = $annotations;
}
/**
* @return string[]
*/
public function getAnnotations()
{
return $this->annotations;
}
/**
* Required. The full resource name of the backup source cluster (e.g.,
* projects/{project}/locations/{region}/clusters/{cluster_id}).
*
* @param string $clusterName
*/
public function setClusterName($clusterName)
{
$this->clusterName = $clusterName;
}
/**
* @return string
*/
public function getClusterName()
{
return $this->clusterName;
}
/**
* Output only. The system-generated UID of the cluster which was used to
* create this resource.
*
* @param string $clusterUid
*/
public function setClusterUid($clusterUid)
{
$this->clusterUid = $clusterUid;
}
/**
* @return string
*/
public function getClusterUid()
{
return $this->clusterUid;
}
/**
* Output only. Timestamp when the resource finished being created.
*
* @param string $createCompletionTime
*/
public function setCreateCompletionTime($createCompletionTime)
{
$this->createCompletionTime = $createCompletionTime;
}
/**
* @return string
*/
public function getCreateCompletionTime()
{
return $this->createCompletionTime;
}
/**
* Output only. Create time stamp
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* Output only. The database engine major version of the cluster this backup
* was created from. Any restored cluster created from this backup will have
* the same database version.
*
* Accepted values: DATABASE_VERSION_UNSPECIFIED, POSTGRES_13, POSTGRES_14,
* POSTGRES_15, POSTGRES_16, POSTGRES_17
*
* @param self::DATABASE_VERSION_* $databaseVersion
*/
public function setDatabaseVersion($databaseVersion)
{
$this->databaseVersion = $databaseVersion;
}
/**
* @return self::DATABASE_VERSION_*
*/
public function getDatabaseVersion()
{
return $this->databaseVersion;
}
/**
* Output only. Delete time stamp
*
* @param string $deleteTime
*/
public function setDeleteTime($deleteTime)
{
$this->deleteTime = $deleteTime;
}
/**
* @return string
*/
public function getDeleteTime()
{
return $this->deleteTime;
}
/**
* User-provided description of the backup.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* User-settable and human-readable display name for the Backup.
*
* @param string $displayName
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* Optional. The encryption config can be specified to encrypt the backup with
* a customer-managed encryption key (CMEK). When this field is not specified,
* the backup will then use default encryption scheme to protect the user
* data.
*
* @param EncryptionConfig $encryptionConfig
*/
public function setEncryptionConfig(EncryptionConfig $encryptionConfig)
{
$this->encryptionConfig = $encryptionConfig;
}
/**
* @return EncryptionConfig
*/
public function getEncryptionConfig()
{
return $this->encryptionConfig;
}
/**
* Output only. The encryption information for the backup.
*
* @param EncryptionInfo $encryptionInfo
*/
public function setEncryptionInfo(EncryptionInfo $encryptionInfo)
{
$this->encryptionInfo = $encryptionInfo;
}
/**
* @return EncryptionInfo
*/
public function getEncryptionInfo()
{
return $this->encryptionInfo;
}
/**
* For Resource freshness validation (https://google.aip.dev/154)
*
* @param string $etag
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* Output only. The QuantityBasedExpiry of the backup, specified by the
* backup's retention policy. Once the expiry quantity is over retention, the
* backup is eligible to be garbage collected.
*
* @param QuantityBasedExpiry $expiryQuantity
*/
public function setExpiryQuantity(QuantityBasedExpiry $expiryQuantity)
{
$this->expiryQuantity = $expiryQuantity;
}
/**
* @return QuantityBasedExpiry
*/
public function getExpiryQuantity()
{
return $this->expiryQuantity;
}
/**
* Output only. The time at which after the backup is eligible to be garbage
* collected. It is the duration specified by the backup's retention policy,
* added to the backup's create_time.
*
* @param string $expiryTime
*/
public function setExpiryTime($expiryTime)
{
$this->expiryTime = $expiryTime;
}
/**
* @return string
*/
public function getExpiryTime()
{
return $this->expiryTime;
}
/**
* Labels as key value pairs
*
* @param string[] $labels
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* Output only. The name of the backup resource with the format: *
* projects/{project}/locations/{region}/backups/{backup_id} where the cluster
* and backup ID segments should satisfy the regex expression
* `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`, e.g. 1-63 characters of lowercase
* letters, numbers, and dashes, starting with a letter, and ending with a
* letter or number. For more details see https://google.aip.dev/122. The
* prefix of the backup resource name is the name of the parent resource: *
* projects/{project}/locations/{region}
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Output only. Reconciling (https://google.aip.dev/128#reconciliation), if
* true, indicates that the service is actively updating the resource. This
* can happen due to user-triggered updates or system actions like failover or
* maintenance.
*
* @param bool $reconciling
*/
public function setReconciling($reconciling)
{
$this->reconciling = $reconciling;
}
/**
* @return bool
*/
public function getReconciling()
{
return $this->reconciling;
}
/**
* 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 size of the backup in bytes.
*
* @param string $sizeBytes
*/
public function setSizeBytes($sizeBytes)
{
$this->sizeBytes = $sizeBytes;
}
/**
* @return string
*/
public function getSizeBytes()
{
return $this->sizeBytes;
}
/**
* Output only. The current state of the backup.
*
* Accepted values: STATE_UNSPECIFIED, READY, CREATING, FAILED, DELETING
*
* @param self::STATE_* $state
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return self::STATE_*
*/
public function getState()
{
return $this->state;
}
/**
* Optional. Input only. Immutable. Tag keys/values directly bound to this
* resource. For example: ``` "123/environment": "production",
* "123/costCenter": "marketing" ```
*
* @param string[] $tags
*/
public function setTags($tags)
{
$this->tags = $tags;
}
/**
* @return string[]
*/
public function getTags()
{
return $this->tags;
}
/**
* The backup type, which suggests the trigger for the backup.
*
* Accepted values: TYPE_UNSPECIFIED, ON_DEMAND, AUTOMATED, CONTINUOUS
*
* @param self::TYPE_* $type
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return self::TYPE_*
*/
public function getType()
{
return $this->type;
}
/**
* Output only. The system-generated UID of the resource. The UID is assigned
* when the resource is created, and it is retained until it is deleted.
*
* @param string $uid
*/
public function setUid($uid)
{
$this->uid = $uid;
}
/**
* @return string
*/
public function getUid()
{
return $this->uid;
}
/**
* Output only. Update time stamp Users should not infer any meaning from this
* field. Its value is generally unrelated to the timing of the backup
* creation operation.
*
* @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_CloudAlloyDBAdmin_Backup');

View File

@@ -0,0 +1,52 @@
<?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\CloudAlloyDBAdmin;
class BackupDrBackupSource extends \Google\Model
{
/**
* Required. The name of the backup resource with the format: * projects/{proj
* ect}/locations/{location}/backupVaults/{backupvault_id}/dataSources/{dataso
* urce_id}/backups/{backup_id}
*
* @var string
*/
public $backup;
/**
* Required. The name of the backup resource with the format: * projects/{proj
* ect}/locations/{location}/backupVaults/{backupvault_id}/dataSources/{dataso
* urce_id}/backups/{backup_id}
*
* @param string $backup
*/
public function setBackup($backup)
{
$this->backup = $backup;
}
/**
* @return string
*/
public function getBackup()
{
return $this->backup;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BackupDrBackupSource::class, 'Google_Service_CloudAlloyDBAdmin_BackupDrBackupSource');

View File

@@ -0,0 +1,236 @@
<?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\CloudAlloyDBAdmin;
class BackupDrEnabledWindow extends \Google\Model
{
/**
* Whether automated backup was previously enabled prior to enabling BackupDR
* protection for this cluster.
*
* @var bool
*/
public $automatedBackupPreviouslyEnabled;
/**
* The BackupPlanAssociation resource that was used to enable BackupDR
* protection for this cluster.
*
* @var string
*/
public $backupPlanAssociation;
/**
* The retention set for the continuous backup that was previously enabled
* prior to enabling BackupDR protection for this cluster.
*
* @var int
*/
public $continuousBackupPreviousRecoveryWindowDays;
/**
* Whether continuous backup was previously enabled prior to enabling BackupDR
* protection for this cluster.
*
* @var bool
*/
public $continuousBackupPreviouslyEnabled;
/**
* The time when continuous backup was previously enabled prior to enabling
* BackupDR protection for this cluster.
*
* @var string
*/
public $continuousBackupPreviouslyEnabledTime;
/**
* The DataSource resource that represents the cluster in BackupDR.
*
* @var string
*/
public $dataSource;
/**
* Time when the BackupDR protection for this cluster was disabled. This field
* will be empty if this BackupDR window is the `current_window`.
*
* @var string
*/
public $disabledTime;
/**
* Time when the BackupDR protection for this cluster was enabled.
*
* @var string
*/
public $enabledTime;
/**
* The retention period for logs generated by BackupDR for this cluster.
*
* @var string
*/
public $logRetentionPeriod;
/**
* Whether automated backup was previously enabled prior to enabling BackupDR
* protection for this cluster.
*
* @param bool $automatedBackupPreviouslyEnabled
*/
public function setAutomatedBackupPreviouslyEnabled($automatedBackupPreviouslyEnabled)
{
$this->automatedBackupPreviouslyEnabled = $automatedBackupPreviouslyEnabled;
}
/**
* @return bool
*/
public function getAutomatedBackupPreviouslyEnabled()
{
return $this->automatedBackupPreviouslyEnabled;
}
/**
* The BackupPlanAssociation resource that was used to enable BackupDR
* protection for this cluster.
*
* @param string $backupPlanAssociation
*/
public function setBackupPlanAssociation($backupPlanAssociation)
{
$this->backupPlanAssociation = $backupPlanAssociation;
}
/**
* @return string
*/
public function getBackupPlanAssociation()
{
return $this->backupPlanAssociation;
}
/**
* The retention set for the continuous backup that was previously enabled
* prior to enabling BackupDR protection for this cluster.
*
* @param int $continuousBackupPreviousRecoveryWindowDays
*/
public function setContinuousBackupPreviousRecoveryWindowDays($continuousBackupPreviousRecoveryWindowDays)
{
$this->continuousBackupPreviousRecoveryWindowDays = $continuousBackupPreviousRecoveryWindowDays;
}
/**
* @return int
*/
public function getContinuousBackupPreviousRecoveryWindowDays()
{
return $this->continuousBackupPreviousRecoveryWindowDays;
}
/**
* Whether continuous backup was previously enabled prior to enabling BackupDR
* protection for this cluster.
*
* @param bool $continuousBackupPreviouslyEnabled
*/
public function setContinuousBackupPreviouslyEnabled($continuousBackupPreviouslyEnabled)
{
$this->continuousBackupPreviouslyEnabled = $continuousBackupPreviouslyEnabled;
}
/**
* @return bool
*/
public function getContinuousBackupPreviouslyEnabled()
{
return $this->continuousBackupPreviouslyEnabled;
}
/**
* The time when continuous backup was previously enabled prior to enabling
* BackupDR protection for this cluster.
*
* @param string $continuousBackupPreviouslyEnabledTime
*/
public function setContinuousBackupPreviouslyEnabledTime($continuousBackupPreviouslyEnabledTime)
{
$this->continuousBackupPreviouslyEnabledTime = $continuousBackupPreviouslyEnabledTime;
}
/**
* @return string
*/
public function getContinuousBackupPreviouslyEnabledTime()
{
return $this->continuousBackupPreviouslyEnabledTime;
}
/**
* The DataSource resource that represents the cluster in BackupDR.
*
* @param string $dataSource
*/
public function setDataSource($dataSource)
{
$this->dataSource = $dataSource;
}
/**
* @return string
*/
public function getDataSource()
{
return $this->dataSource;
}
/**
* Time when the BackupDR protection for this cluster was disabled. This field
* will be empty if this BackupDR window is the `current_window`.
*
* @param string $disabledTime
*/
public function setDisabledTime($disabledTime)
{
$this->disabledTime = $disabledTime;
}
/**
* @return string
*/
public function getDisabledTime()
{
return $this->disabledTime;
}
/**
* Time when the BackupDR protection for this cluster was enabled.
*
* @param string $enabledTime
*/
public function setEnabledTime($enabledTime)
{
$this->enabledTime = $enabledTime;
}
/**
* @return string
*/
public function getEnabledTime()
{
return $this->enabledTime;
}
/**
* The retention period for logs generated by BackupDR for this cluster.
*
* @param string $logRetentionPeriod
*/
public function setLogRetentionPeriod($logRetentionPeriod)
{
$this->logRetentionPeriod = $logRetentionPeriod;
}
/**
* @return string
*/
public function getLogRetentionPeriod()
{
return $this->logRetentionPeriod;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BackupDrEnabledWindow::class, 'Google_Service_CloudAlloyDBAdmin_BackupDrEnabledWindow');

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\CloudAlloyDBAdmin;
class BackupDrInfo extends \Google\Collection
{
protected $collection_key = 'previousWindows';
protected $currentWindowType = BackupDrEnabledWindow::class;
protected $currentWindowDataType = '';
protected $previousWindowsType = BackupDrEnabledWindow::class;
protected $previousWindowsDataType = 'array';
/**
* The current BackupDR configuration for this cluster. If BackupDR protection
* is not enabled for this cluster, this field will be empty.
*
* @param BackupDrEnabledWindow $currentWindow
*/
public function setCurrentWindow(BackupDrEnabledWindow $currentWindow)
{
$this->currentWindow = $currentWindow;
}
/**
* @return BackupDrEnabledWindow
*/
public function getCurrentWindow()
{
return $this->currentWindow;
}
/**
* Windows during which BackupDR was enabled for this cluster, along with
* associated configuration for that window. These are used to determine
* points-in-time for which restores can be performed. The windows are ordered
* with the most recent window last. Windows are mutally exclusive. Windows
* which closed more than 1 year ago will be removed from this list.
*
* @param BackupDrEnabledWindow[] $previousWindows
*/
public function setPreviousWindows($previousWindows)
{
$this->previousWindows = $previousWindows;
}
/**
* @return BackupDrEnabledWindow[]
*/
public function getPreviousWindows()
{
return $this->previousWindows;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BackupDrInfo::class, 'Google_Service_CloudAlloyDBAdmin_BackupDrInfo');

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\CloudAlloyDBAdmin;
class BackupDrPitrSource extends \Google\Model
{
/**
* Required. The name of the backup resource with the format: * projects/{proj
* ect}/locations/{location}/backupVaults/{backupvault_id}/dataSources/{dataso
* urce_id}
*
* @var string
*/
public $dataSource;
/**
* Required. The point in time to restore to.
*
* @var string
*/
public $pointInTime;
/**
* Required. The name of the backup resource with the format: * projects/{proj
* ect}/locations/{location}/backupVaults/{backupvault_id}/dataSources/{dataso
* urce_id}
*
* @param string $dataSource
*/
public function setDataSource($dataSource)
{
$this->dataSource = $dataSource;
}
/**
* @return string
*/
public function getDataSource()
{
return $this->dataSource;
}
/**
* Required. The point in time to restore to.
*
* @param string $pointInTime
*/
public function setPointInTime($pointInTime)
{
$this->pointInTime = $pointInTime;
}
/**
* @return string
*/
public function getPointInTime()
{
return $this->pointInTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BackupDrPitrSource::class, 'Google_Service_CloudAlloyDBAdmin_BackupDrPitrSource');

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\CloudAlloyDBAdmin;
class BackupSource extends \Google\Model
{
/**
* Required. The name of the backup resource with the format: *
* projects/{project}/locations/{region}/backups/{backup_id}
*
* @var string
*/
public $backupName;
/**
* Output only. The system-generated UID of the backup which was used to
* create this resource. The UID is generated when the backup is created, and
* it is retained until the backup is deleted.
*
* @var string
*/
public $backupUid;
/**
* Required. The name of the backup resource with the format: *
* projects/{project}/locations/{region}/backups/{backup_id}
*
* @param string $backupName
*/
public function setBackupName($backupName)
{
$this->backupName = $backupName;
}
/**
* @return string
*/
public function getBackupName()
{
return $this->backupName;
}
/**
* Output only. The system-generated UID of the backup which was used to
* create this resource. The UID is generated when the backup is created, and
* it is retained until the backup is deleted.
*
* @param string $backupUid
*/
public function setBackupUid($backupUid)
{
$this->backupUid = $backupUid;
}
/**
* @return string
*/
public function getBackupUid()
{
return $this->backupUid;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BackupSource::class, 'Google_Service_CloudAlloyDBAdmin_BackupSource');

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

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\CloudAlloyDBAdmin;
class ClientConnectionConfig extends \Google\Model
{
/**
* Optional. Configuration to enforce connectors only (ex: AuthProxy)
* connections to the database.
*
* @var bool
*/
public $requireConnectors;
protected $sslConfigType = SslConfig::class;
protected $sslConfigDataType = '';
/**
* Optional. Configuration to enforce connectors only (ex: AuthProxy)
* connections to the database.
*
* @param bool $requireConnectors
*/
public function setRequireConnectors($requireConnectors)
{
$this->requireConnectors = $requireConnectors;
}
/**
* @return bool
*/
public function getRequireConnectors()
{
return $this->requireConnectors;
}
/**
* Optional. SSL configuration option for this instance.
*
* @param SslConfig $sslConfig
*/
public function setSslConfig(SslConfig $sslConfig)
{
$this->sslConfig = $sslConfig;
}
/**
* @return SslConfig
*/
public function getSslConfig()
{
return $this->sslConfig;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ClientConnectionConfig::class, 'Google_Service_CloudAlloyDBAdmin_ClientConnectionConfig');

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\CloudAlloyDBAdmin;
class CloudControl2SharedOperationsReconciliationOperationMetadata extends \Google\Model
{
/**
* Unknown repair action.
*/
public const EXCLUSIVE_ACTION_UNKNOWN_REPAIR_ACTION = 'UNKNOWN_REPAIR_ACTION';
/**
* The resource has to be deleted. When using this bit, the CLH should fail
* the operation. DEPRECATED. Instead use DELETE_RESOURCE OperationSignal in
* SideChannel.
*
* @deprecated
*/
public const EXCLUSIVE_ACTION_DELETE = 'DELETE';
/**
* This resource could not be repaired but the repair should be tried again at
* a later time. This can happen if there is a dependency that needs to be
* resolved first- e.g. if a parent resource must be repaired before a child
* resource.
*/
public const EXCLUSIVE_ACTION_RETRY = 'RETRY';
/**
* DEPRECATED. Use exclusive_action instead.
*
* @deprecated
* @var bool
*/
public $deleteResource;
/**
* Excluisive action returned by the CLH.
*
* @var string
*/
public $exclusiveAction;
/**
* DEPRECATED. Use exclusive_action instead.
*
* @deprecated
* @param bool $deleteResource
*/
public function setDeleteResource($deleteResource)
{
$this->deleteResource = $deleteResource;
}
/**
* @deprecated
* @return bool
*/
public function getDeleteResource()
{
return $this->deleteResource;
}
/**
* Excluisive action returned by the CLH.
*
* Accepted values: UNKNOWN_REPAIR_ACTION, DELETE, RETRY
*
* @param self::EXCLUSIVE_ACTION_* $exclusiveAction
*/
public function setExclusiveAction($exclusiveAction)
{
$this->exclusiveAction = $exclusiveAction;
}
/**
* @return self::EXCLUSIVE_ACTION_*
*/
public function getExclusiveAction()
{
return $this->exclusiveAction;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CloudControl2SharedOperationsReconciliationOperationMetadata::class, 'Google_Service_CloudAlloyDBAdmin_CloudControl2SharedOperationsReconciliationOperationMetadata');

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\CloudAlloyDBAdmin;
class CloudSQLBackupRunSource extends \Google\Model
{
/**
* Required. The CloudSQL backup run ID.
*
* @var string
*/
public $backupRunId;
/**
* Required. The CloudSQL instance ID.
*
* @var string
*/
public $instanceId;
/**
* The project ID of the source CloudSQL instance. This should be the same as
* the AlloyDB cluster's project.
*
* @var string
*/
public $project;
/**
* Required. The CloudSQL backup run ID.
*
* @param string $backupRunId
*/
public function setBackupRunId($backupRunId)
{
$this->backupRunId = $backupRunId;
}
/**
* @return string
*/
public function getBackupRunId()
{
return $this->backupRunId;
}
/**
* Required. The CloudSQL instance ID.
*
* @param string $instanceId
*/
public function setInstanceId($instanceId)
{
$this->instanceId = $instanceId;
}
/**
* @return string
*/
public function getInstanceId()
{
return $this->instanceId;
}
/**
* The project ID of the source CloudSQL instance. This should be the same as
* the AlloyDB cluster's project.
*
* @param string $project
*/
public function setProject($project)
{
$this->project = $project;
}
/**
* @return string
*/
public function getProject()
{
return $this->project;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CloudSQLBackupRunSource::class, 'Google_Service_CloudAlloyDBAdmin_CloudSQLBackupRunSource');

View File

@@ -0,0 +1,973 @@
<?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\CloudAlloyDBAdmin;
class Cluster extends \Google\Model
{
/**
* The type of the cluster is unknown.
*/
public const CLUSTER_TYPE_CLUSTER_TYPE_UNSPECIFIED = 'CLUSTER_TYPE_UNSPECIFIED';
/**
* Primary cluster that support read and write operations.
*/
public const CLUSTER_TYPE_PRIMARY = 'PRIMARY';
/**
* Secondary cluster that is replicating from another region. This only
* supports read.
*/
public const CLUSTER_TYPE_SECONDARY = 'SECONDARY';
/**
* This is an unknown database version.
*/
public const DATABASE_VERSION_DATABASE_VERSION_UNSPECIFIED = 'DATABASE_VERSION_UNSPECIFIED';
/**
* DEPRECATED - The database version is Postgres 13.
*
* @deprecated
*/
public const DATABASE_VERSION_POSTGRES_13 = 'POSTGRES_13';
/**
* The database version is Postgres 14.
*/
public const DATABASE_VERSION_POSTGRES_14 = 'POSTGRES_14';
/**
* The database version is Postgres 15.
*/
public const DATABASE_VERSION_POSTGRES_15 = 'POSTGRES_15';
/**
* The database version is Postgres 16.
*/
public const DATABASE_VERSION_POSTGRES_16 = 'POSTGRES_16';
/**
* The database version is Postgres 17.
*/
public const DATABASE_VERSION_POSTGRES_17 = 'POSTGRES_17';
/**
* The maintenance version selection policy is not specified.
*/
public const MAINTENANCE_VERSION_SELECTION_POLICY_MAINTENANCE_VERSION_SELECTION_POLICY_UNSPECIFIED = 'MAINTENANCE_VERSION_SELECTION_POLICY_UNSPECIFIED';
/**
* Use the latest available maintenance version.
*/
public const MAINTENANCE_VERSION_SELECTION_POLICY_MAINTENANCE_VERSION_SELECTION_POLICY_LATEST = 'MAINTENANCE_VERSION_SELECTION_POLICY_LATEST';
/**
* Use the current default maintenance version.
*/
public const MAINTENANCE_VERSION_SELECTION_POLICY_MAINTENANCE_VERSION_SELECTION_POLICY_DEFAULT = 'MAINTENANCE_VERSION_SELECTION_POLICY_DEFAULT';
/**
* The state of the cluster is unknown.
*/
public const STATE_STATE_UNSPECIFIED = 'STATE_UNSPECIFIED';
/**
* The cluster is active and running.
*/
public const STATE_READY = 'READY';
/**
* This is unused. Even when all instances in the cluster are stopped, the
* cluster remains in READY state.
*/
public const STATE_STOPPED = 'STOPPED';
/**
* The cluster is empty and has no associated resources. All instances,
* associated storage and backups have been deleted.
*/
public const STATE_EMPTY = 'EMPTY';
/**
* The cluster is being created.
*/
public const STATE_CREATING = 'CREATING';
/**
* The cluster is being deleted.
*/
public const STATE_DELETING = 'DELETING';
/**
* The creation of the cluster failed.
*/
public const STATE_FAILED = 'FAILED';
/**
* The cluster is bootstrapping with data from some other source. Direct
* mutations to the cluster (e.g. adding read pool) are not allowed.
*/
public const STATE_BOOTSTRAPPING = 'BOOTSTRAPPING';
/**
* The cluster is under maintenance. AlloyDB regularly performs maintenance
* and upgrades on customer clusters. Updates on the cluster are not allowed
* while the cluster is in this state.
*/
public const STATE_MAINTENANCE = 'MAINTENANCE';
/**
* The cluster is being promoted.
*/
public const STATE_PROMOTING = 'PROMOTING';
/**
* The cluster has entered switchover state. All updates on cluster and its
* associated instances are restricted while the cluster is in this state.
*/
public const STATE_SWITCHOVER = 'SWITCHOVER';
/**
* This is an unknown subscription type. By default, the subscription type is
* STANDARD.
*/
public const SUBSCRIPTION_TYPE_SUBSCRIPTION_TYPE_UNSPECIFIED = 'SUBSCRIPTION_TYPE_UNSPECIFIED';
/**
* Standard subscription.
*/
public const SUBSCRIPTION_TYPE_STANDARD = 'STANDARD';
/**
* Trial subscription.
*/
public const SUBSCRIPTION_TYPE_TRIAL = 'TRIAL';
/**
* Annotations to allow client tools to store small amount of arbitrary data.
* This is distinct from labels. https://google.aip.dev/128
*
* @var string[]
*/
public $annotations;
protected $automatedBackupPolicyType = AutomatedBackupPolicy::class;
protected $automatedBackupPolicyDataType = '';
protected $backupSourceType = BackupSource::class;
protected $backupSourceDataType = '';
protected $backupdrBackupSourceType = BackupDrBackupSource::class;
protected $backupdrBackupSourceDataType = '';
protected $backupdrInfoType = BackupDrInfo::class;
protected $backupdrInfoDataType = '';
protected $cloudsqlBackupRunSourceType = CloudSQLBackupRunSource::class;
protected $cloudsqlBackupRunSourceDataType = '';
/**
* Output only. The type of the cluster. This is an output-only field and it's
* populated at the Cluster creation time or the Cluster promotion time. The
* cluster type is determined by which RPC was used to create the cluster
* (i.e. `CreateCluster` vs. `CreateSecondaryCluster`
*
* @var string
*/
public $clusterType;
protected $continuousBackupConfigType = ContinuousBackupConfig::class;
protected $continuousBackupConfigDataType = '';
protected $continuousBackupInfoType = ContinuousBackupInfo::class;
protected $continuousBackupInfoDataType = '';
/**
* Output only. Create time stamp
*
* @var string
*/
public $createTime;
/**
* Optional. The database engine major version. This is an optional field and
* it is populated at the Cluster creation time. If a database version is not
* supplied at cluster creation time, then a default database version will be
* used.
*
* @var string
*/
public $databaseVersion;
protected $dataplexConfigType = DataplexConfig::class;
protected $dataplexConfigDataType = '';
/**
* Output only. Delete time stamp
*
* @var string
*/
public $deleteTime;
/**
* User-settable and human-readable display name for the Cluster.
*
* @var string
*/
public $displayName;
protected $encryptionConfigType = EncryptionConfig::class;
protected $encryptionConfigDataType = '';
protected $encryptionInfoType = EncryptionInfo::class;
protected $encryptionInfoDataType = '';
/**
* For Resource freshness validation (https://google.aip.dev/154)
*
* @var string
*/
public $etag;
protected $initialUserType = UserPassword::class;
protected $initialUserDataType = '';
/**
* Labels as key value pairs
*
* @var string[]
*/
public $labels;
protected $maintenanceScheduleType = MaintenanceSchedule::class;
protected $maintenanceScheduleDataType = '';
protected $maintenanceUpdatePolicyType = MaintenanceUpdatePolicy::class;
protected $maintenanceUpdatePolicyDataType = '';
/**
* Input only. Policy to use to automatically select the maintenance version
* to which to update the cluster's instances.
*
* @var string
*/
public $maintenanceVersionSelectionPolicy;
protected $migrationSourceType = MigrationSource::class;
protected $migrationSourceDataType = '';
/**
* Output only. The name of the cluster resource with the format: *
* projects/{project}/locations/{region}/clusters/{cluster_id} where the
* cluster ID segment should satisfy the regex expression `[a-z0-9-]+`. For
* more details see https://google.aip.dev/122. The prefix of the cluster
* resource name is the name of the parent resource: *
* projects/{project}/locations/{region}
*
* @var string
*/
public $name;
/**
* Required. The resource link for the VPC network in which cluster resources
* are created and from which they are accessible via Private IP. The network
* must belong to the same project as the cluster. It is specified in the
* form: `projects/{project}/global/networks/{network_id}`. This is required
* to create a cluster. Deprecated, use network_config.network instead.
*
* @deprecated
* @var string
*/
public $network;
protected $networkConfigType = NetworkConfig::class;
protected $networkConfigDataType = '';
protected $primaryConfigType = PrimaryConfig::class;
protected $primaryConfigDataType = '';
protected $pscConfigType = PscConfig::class;
protected $pscConfigDataType = '';
/**
* Output only. Reconciling (https://google.aip.dev/128#reconciliation). Set
* to true if the current state of Cluster does not match the user's intended
* state, and the service is actively updating the resource to reconcile them.
* This can happen due to user-triggered updates or system actions like
* failover or maintenance.
*
* @var bool
*/
public $reconciling;
/**
* Output only. Reserved for future use.
*
* @var bool
*/
public $satisfiesPzs;
protected $secondaryConfigType = SecondaryConfig::class;
protected $secondaryConfigDataType = '';
protected $sslConfigType = SslConfig::class;
protected $sslConfigDataType = '';
/**
* Output only. The current serving state of the cluster.
*
* @var string
*/
public $state;
/**
* Optional. Subscription type of the cluster.
*
* @var string
*/
public $subscriptionType;
/**
* Optional. Input only. Immutable. Tag keys/values directly bound to this
* resource. For example: ``` "123/environment": "production",
* "123/costCenter": "marketing" ```
*
* @var string[]
*/
public $tags;
protected $trialMetadataType = TrialMetadata::class;
protected $trialMetadataDataType = '';
/**
* Output only. The system-generated UID of the resource. The UID is assigned
* when the resource is created, and it is retained until it is deleted.
*
* @var string
*/
public $uid;
/**
* Output only. Update time stamp
*
* @var string
*/
public $updateTime;
/**
* Annotations to allow client tools to store small amount of arbitrary data.
* This is distinct from labels. https://google.aip.dev/128
*
* @param string[] $annotations
*/
public function setAnnotations($annotations)
{
$this->annotations = $annotations;
}
/**
* @return string[]
*/
public function getAnnotations()
{
return $this->annotations;
}
/**
* The automated backup policy for this cluster. If no policy is provided then
* the default policy will be used. If backups are supported for the cluster,
* the default policy takes one backup a day, has a backup window of 1 hour,
* and retains backups for 14 days. For more information on the defaults,
* consult the documentation for the message type.
*
* @param AutomatedBackupPolicy $automatedBackupPolicy
*/
public function setAutomatedBackupPolicy(AutomatedBackupPolicy $automatedBackupPolicy)
{
$this->automatedBackupPolicy = $automatedBackupPolicy;
}
/**
* @return AutomatedBackupPolicy
*/
public function getAutomatedBackupPolicy()
{
return $this->automatedBackupPolicy;
}
/**
* Output only. Cluster created from backup.
*
* @param BackupSource $backupSource
*/
public function setBackupSource(BackupSource $backupSource)
{
$this->backupSource = $backupSource;
}
/**
* @return BackupSource
*/
public function getBackupSource()
{
return $this->backupSource;
}
/**
* Output only. Cluster created from a BackupDR backup.
*
* @param BackupDrBackupSource $backupdrBackupSource
*/
public function setBackupdrBackupSource(BackupDrBackupSource $backupdrBackupSource)
{
$this->backupdrBackupSource = $backupdrBackupSource;
}
/**
* @return BackupDrBackupSource
*/
public function getBackupdrBackupSource()
{
return $this->backupdrBackupSource;
}
/**
* Output only. Output only information about BackupDR protection for this
* cluster.
*
* @param BackupDrInfo $backupdrInfo
*/
public function setBackupdrInfo(BackupDrInfo $backupdrInfo)
{
$this->backupdrInfo = $backupdrInfo;
}
/**
* @return BackupDrInfo
*/
public function getBackupdrInfo()
{
return $this->backupdrInfo;
}
/**
* Output only. Cluster created from CloudSQL snapshot.
*
* @param CloudSQLBackupRunSource $cloudsqlBackupRunSource
*/
public function setCloudsqlBackupRunSource(CloudSQLBackupRunSource $cloudsqlBackupRunSource)
{
$this->cloudsqlBackupRunSource = $cloudsqlBackupRunSource;
}
/**
* @return CloudSQLBackupRunSource
*/
public function getCloudsqlBackupRunSource()
{
return $this->cloudsqlBackupRunSource;
}
/**
* Output only. The type of the cluster. This is an output-only field and it's
* populated at the Cluster creation time or the Cluster promotion time. The
* cluster type is determined by which RPC was used to create the cluster
* (i.e. `CreateCluster` vs. `CreateSecondaryCluster`
*
* Accepted values: CLUSTER_TYPE_UNSPECIFIED, PRIMARY, SECONDARY
*
* @param self::CLUSTER_TYPE_* $clusterType
*/
public function setClusterType($clusterType)
{
$this->clusterType = $clusterType;
}
/**
* @return self::CLUSTER_TYPE_*
*/
public function getClusterType()
{
return $this->clusterType;
}
/**
* Optional. Continuous backup configuration for this cluster.
*
* @param ContinuousBackupConfig $continuousBackupConfig
*/
public function setContinuousBackupConfig(ContinuousBackupConfig $continuousBackupConfig)
{
$this->continuousBackupConfig = $continuousBackupConfig;
}
/**
* @return ContinuousBackupConfig
*/
public function getContinuousBackupConfig()
{
return $this->continuousBackupConfig;
}
/**
* Output only. Continuous backup properties for this cluster.
*
* @param ContinuousBackupInfo $continuousBackupInfo
*/
public function setContinuousBackupInfo(ContinuousBackupInfo $continuousBackupInfo)
{
$this->continuousBackupInfo = $continuousBackupInfo;
}
/**
* @return ContinuousBackupInfo
*/
public function getContinuousBackupInfo()
{
return $this->continuousBackupInfo;
}
/**
* Output only. Create time stamp
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* Optional. The database engine major version. This is an optional field and
* it is populated at the Cluster creation time. If a database version is not
* supplied at cluster creation time, then a default database version will be
* used.
*
* Accepted values: DATABASE_VERSION_UNSPECIFIED, POSTGRES_13, POSTGRES_14,
* POSTGRES_15, POSTGRES_16, POSTGRES_17
*
* @param self::DATABASE_VERSION_* $databaseVersion
*/
public function setDatabaseVersion($databaseVersion)
{
$this->databaseVersion = $databaseVersion;
}
/**
* @return self::DATABASE_VERSION_*
*/
public function getDatabaseVersion()
{
return $this->databaseVersion;
}
/**
* Optional. Configuration for Dataplex integration.
*
* @param DataplexConfig $dataplexConfig
*/
public function setDataplexConfig(DataplexConfig $dataplexConfig)
{
$this->dataplexConfig = $dataplexConfig;
}
/**
* @return DataplexConfig
*/
public function getDataplexConfig()
{
return $this->dataplexConfig;
}
/**
* Output only. Delete time stamp
*
* @param string $deleteTime
*/
public function setDeleteTime($deleteTime)
{
$this->deleteTime = $deleteTime;
}
/**
* @return string
*/
public function getDeleteTime()
{
return $this->deleteTime;
}
/**
* User-settable and human-readable display name for the Cluster.
*
* @param string $displayName
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* Optional. The encryption config can be specified to encrypt the data disks
* and other persistent data resources of a cluster with a customer-managed
* encryption key (CMEK). When this field is not specified, the cluster will
* then use default encryption scheme to protect the user data.
*
* @param EncryptionConfig $encryptionConfig
*/
public function setEncryptionConfig(EncryptionConfig $encryptionConfig)
{
$this->encryptionConfig = $encryptionConfig;
}
/**
* @return EncryptionConfig
*/
public function getEncryptionConfig()
{
return $this->encryptionConfig;
}
/**
* Output only. The encryption information for the cluster.
*
* @param EncryptionInfo $encryptionInfo
*/
public function setEncryptionInfo(EncryptionInfo $encryptionInfo)
{
$this->encryptionInfo = $encryptionInfo;
}
/**
* @return EncryptionInfo
*/
public function getEncryptionInfo()
{
return $this->encryptionInfo;
}
/**
* For Resource freshness validation (https://google.aip.dev/154)
*
* @param string $etag
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* Input only. Initial user to setup during cluster creation. Required. If
* used in `RestoreCluster` this is ignored.
*
* @param UserPassword $initialUser
*/
public function setInitialUser(UserPassword $initialUser)
{
$this->initialUser = $initialUser;
}
/**
* @return UserPassword
*/
public function getInitialUser()
{
return $this->initialUser;
}
/**
* Labels as key value pairs
*
* @param string[] $labels
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* Output only. The maintenance schedule for the cluster, generated for a
* specific rollout if a maintenance window is set.
*
* @param MaintenanceSchedule $maintenanceSchedule
*/
public function setMaintenanceSchedule(MaintenanceSchedule $maintenanceSchedule)
{
$this->maintenanceSchedule = $maintenanceSchedule;
}
/**
* @return MaintenanceSchedule
*/
public function getMaintenanceSchedule()
{
return $this->maintenanceSchedule;
}
/**
* Optional. The maintenance update policy determines when to allow or deny
* updates.
*
* @param MaintenanceUpdatePolicy $maintenanceUpdatePolicy
*/
public function setMaintenanceUpdatePolicy(MaintenanceUpdatePolicy $maintenanceUpdatePolicy)
{
$this->maintenanceUpdatePolicy = $maintenanceUpdatePolicy;
}
/**
* @return MaintenanceUpdatePolicy
*/
public function getMaintenanceUpdatePolicy()
{
return $this->maintenanceUpdatePolicy;
}
/**
* Input only. Policy to use to automatically select the maintenance version
* to which to update the cluster's instances.
*
* Accepted values: MAINTENANCE_VERSION_SELECTION_POLICY_UNSPECIFIED,
* MAINTENANCE_VERSION_SELECTION_POLICY_LATEST,
* MAINTENANCE_VERSION_SELECTION_POLICY_DEFAULT
*
* @param self::MAINTENANCE_VERSION_SELECTION_POLICY_* $maintenanceVersionSelectionPolicy
*/
public function setMaintenanceVersionSelectionPolicy($maintenanceVersionSelectionPolicy)
{
$this->maintenanceVersionSelectionPolicy = $maintenanceVersionSelectionPolicy;
}
/**
* @return self::MAINTENANCE_VERSION_SELECTION_POLICY_*
*/
public function getMaintenanceVersionSelectionPolicy()
{
return $this->maintenanceVersionSelectionPolicy;
}
/**
* Output only. Cluster created via DMS migration.
*
* @param MigrationSource $migrationSource
*/
public function setMigrationSource(MigrationSource $migrationSource)
{
$this->migrationSource = $migrationSource;
}
/**
* @return MigrationSource
*/
public function getMigrationSource()
{
return $this->migrationSource;
}
/**
* Output only. The name of the cluster resource with the format: *
* projects/{project}/locations/{region}/clusters/{cluster_id} where the
* cluster ID segment should satisfy the regex expression `[a-z0-9-]+`. For
* more details see https://google.aip.dev/122. The prefix of the cluster
* resource name is the name of the parent resource: *
* projects/{project}/locations/{region}
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Required. The resource link for the VPC network in which cluster resources
* are created and from which they are accessible via Private IP. The network
* must belong to the same project as the cluster. It is specified in the
* form: `projects/{project}/global/networks/{network_id}`. This is required
* to create a cluster. Deprecated, use network_config.network instead.
*
* @deprecated
* @param string $network
*/
public function setNetwork($network)
{
$this->network = $network;
}
/**
* @deprecated
* @return string
*/
public function getNetwork()
{
return $this->network;
}
/**
* @param NetworkConfig $networkConfig
*/
public function setNetworkConfig(NetworkConfig $networkConfig)
{
$this->networkConfig = $networkConfig;
}
/**
* @return NetworkConfig
*/
public function getNetworkConfig()
{
return $this->networkConfig;
}
/**
* Output only. Cross Region replication config specific to PRIMARY cluster.
*
* @param PrimaryConfig $primaryConfig
*/
public function setPrimaryConfig(PrimaryConfig $primaryConfig)
{
$this->primaryConfig = $primaryConfig;
}
/**
* @return PrimaryConfig
*/
public function getPrimaryConfig()
{
return $this->primaryConfig;
}
/**
* Optional. The configuration for Private Service Connect (PSC) for the
* cluster.
*
* @param PscConfig $pscConfig
*/
public function setPscConfig(PscConfig $pscConfig)
{
$this->pscConfig = $pscConfig;
}
/**
* @return PscConfig
*/
public function getPscConfig()
{
return $this->pscConfig;
}
/**
* Output only. Reconciling (https://google.aip.dev/128#reconciliation). Set
* to true if the current state of Cluster does not match the user's intended
* state, and the service is actively updating the resource to reconcile them.
* This can happen due to user-triggered updates or system actions like
* failover or maintenance.
*
* @param bool $reconciling
*/
public function setReconciling($reconciling)
{
$this->reconciling = $reconciling;
}
/**
* @return bool
*/
public function getReconciling()
{
return $this->reconciling;
}
/**
* Output only. Reserved for future use.
*
* @param bool $satisfiesPzs
*/
public function setSatisfiesPzs($satisfiesPzs)
{
$this->satisfiesPzs = $satisfiesPzs;
}
/**
* @return bool
*/
public function getSatisfiesPzs()
{
return $this->satisfiesPzs;
}
/**
* Cross Region replication config specific to SECONDARY cluster.
*
* @param SecondaryConfig $secondaryConfig
*/
public function setSecondaryConfig(SecondaryConfig $secondaryConfig)
{
$this->secondaryConfig = $secondaryConfig;
}
/**
* @return SecondaryConfig
*/
public function getSecondaryConfig()
{
return $this->secondaryConfig;
}
/**
* SSL configuration for this AlloyDB cluster.
*
* @deprecated
* @param SslConfig $sslConfig
*/
public function setSslConfig(SslConfig $sslConfig)
{
$this->sslConfig = $sslConfig;
}
/**
* @deprecated
* @return SslConfig
*/
public function getSslConfig()
{
return $this->sslConfig;
}
/**
* Output only. The current serving state of the cluster.
*
* Accepted values: STATE_UNSPECIFIED, READY, STOPPED, EMPTY, CREATING,
* DELETING, FAILED, BOOTSTRAPPING, MAINTENANCE, PROMOTING, SWITCHOVER
*
* @param self::STATE_* $state
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return self::STATE_*
*/
public function getState()
{
return $this->state;
}
/**
* Optional. Subscription type of the cluster.
*
* Accepted values: SUBSCRIPTION_TYPE_UNSPECIFIED, STANDARD, TRIAL
*
* @param self::SUBSCRIPTION_TYPE_* $subscriptionType
*/
public function setSubscriptionType($subscriptionType)
{
$this->subscriptionType = $subscriptionType;
}
/**
* @return self::SUBSCRIPTION_TYPE_*
*/
public function getSubscriptionType()
{
return $this->subscriptionType;
}
/**
* Optional. Input only. Immutable. Tag keys/values directly bound to this
* resource. For example: ``` "123/environment": "production",
* "123/costCenter": "marketing" ```
*
* @param string[] $tags
*/
public function setTags($tags)
{
$this->tags = $tags;
}
/**
* @return string[]
*/
public function getTags()
{
return $this->tags;
}
/**
* Output only. Metadata for free trial clusters
*
* @param TrialMetadata $trialMetadata
*/
public function setTrialMetadata(TrialMetadata $trialMetadata)
{
$this->trialMetadata = $trialMetadata;
}
/**
* @return TrialMetadata
*/
public function getTrialMetadata()
{
return $this->trialMetadata;
}
/**
* Output only. The system-generated UID of the resource. The UID is assigned
* when the resource is created, and it is retained until it is deleted.
*
* @param string $uid
*/
public function setUid($uid)
{
$this->uid = $uid;
}
/**
* @return string
*/
public function getUid()
{
return $this->uid;
}
/**
* Output only. Update time stamp
*
* @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(Cluster::class, 'Google_Service_CloudAlloyDBAdmin_Cluster');

View File

@@ -0,0 +1,234 @@
<?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\CloudAlloyDBAdmin;
class ClusterUpgradeDetails extends \Google\Collection
{
/**
* The type of the cluster is unknown.
*/
public const CLUSTER_TYPE_CLUSTER_TYPE_UNSPECIFIED = 'CLUSTER_TYPE_UNSPECIFIED';
/**
* Primary cluster that support read and write operations.
*/
public const CLUSTER_TYPE_PRIMARY = 'PRIMARY';
/**
* Secondary cluster that is replicating from another region. This only
* supports read.
*/
public const CLUSTER_TYPE_SECONDARY = 'SECONDARY';
/**
* This is an unknown database version.
*/
public const DATABASE_VERSION_DATABASE_VERSION_UNSPECIFIED = 'DATABASE_VERSION_UNSPECIFIED';
/**
* DEPRECATED - The database version is Postgres 13.
*
* @deprecated
*/
public const DATABASE_VERSION_POSTGRES_13 = 'POSTGRES_13';
/**
* The database version is Postgres 14.
*/
public const DATABASE_VERSION_POSTGRES_14 = 'POSTGRES_14';
/**
* The database version is Postgres 15.
*/
public const DATABASE_VERSION_POSTGRES_15 = 'POSTGRES_15';
/**
* The database version is Postgres 16.
*/
public const DATABASE_VERSION_POSTGRES_16 = 'POSTGRES_16';
/**
* The database version is Postgres 17.
*/
public const DATABASE_VERSION_POSTGRES_17 = 'POSTGRES_17';
/**
* Unspecified status.
*/
public const UPGRADE_STATUS_STATUS_UNSPECIFIED = 'STATUS_UNSPECIFIED';
/**
* Not started.
*/
public const UPGRADE_STATUS_NOT_STARTED = 'NOT_STARTED';
/**
* In progress.
*/
public const UPGRADE_STATUS_IN_PROGRESS = 'IN_PROGRESS';
/**
* Operation succeeded.
*/
public const UPGRADE_STATUS_SUCCESS = 'SUCCESS';
/**
* Operation failed.
*/
public const UPGRADE_STATUS_FAILED = 'FAILED';
/**
* Operation partially succeeded.
*/
public const UPGRADE_STATUS_PARTIAL_SUCCESS = 'PARTIAL_SUCCESS';
/**
* Cancel is in progress.
*/
public const UPGRADE_STATUS_CANCEL_IN_PROGRESS = 'CANCEL_IN_PROGRESS';
/**
* Cancellation complete.
*/
public const UPGRADE_STATUS_CANCELLED = 'CANCELLED';
protected $collection_key = 'stageInfo';
/**
* Cluster type which can either be primary or secondary.
*
* @var string
*/
public $clusterType;
/**
* Database version of the cluster after the upgrade operation. This will be
* the target version if the upgrade was successful otherwise it remains the
* same as that before the upgrade operation.
*
* @var string
*/
public $databaseVersion;
protected $instanceUpgradeDetailsType = InstanceUpgradeDetails::class;
protected $instanceUpgradeDetailsDataType = 'array';
/**
* Normalized name of the cluster
*
* @var string
*/
public $name;
protected $stageInfoType = StageInfo::class;
protected $stageInfoDataType = 'array';
/**
* Upgrade status of the cluster.
*
* @var string
*/
public $upgradeStatus;
/**
* Cluster type which can either be primary or secondary.
*
* Accepted values: CLUSTER_TYPE_UNSPECIFIED, PRIMARY, SECONDARY
*
* @param self::CLUSTER_TYPE_* $clusterType
*/
public function setClusterType($clusterType)
{
$this->clusterType = $clusterType;
}
/**
* @return self::CLUSTER_TYPE_*
*/
public function getClusterType()
{
return $this->clusterType;
}
/**
* Database version of the cluster after the upgrade operation. This will be
* the target version if the upgrade was successful otherwise it remains the
* same as that before the upgrade operation.
*
* Accepted values: DATABASE_VERSION_UNSPECIFIED, POSTGRES_13, POSTGRES_14,
* POSTGRES_15, POSTGRES_16, POSTGRES_17
*
* @param self::DATABASE_VERSION_* $databaseVersion
*/
public function setDatabaseVersion($databaseVersion)
{
$this->databaseVersion = $databaseVersion;
}
/**
* @return self::DATABASE_VERSION_*
*/
public function getDatabaseVersion()
{
return $this->databaseVersion;
}
/**
* Upgrade details of the instances directly associated with this cluster.
*
* @param InstanceUpgradeDetails[] $instanceUpgradeDetails
*/
public function setInstanceUpgradeDetails($instanceUpgradeDetails)
{
$this->instanceUpgradeDetails = $instanceUpgradeDetails;
}
/**
* @return InstanceUpgradeDetails[]
*/
public function getInstanceUpgradeDetails()
{
return $this->instanceUpgradeDetails;
}
/**
* Normalized name of the cluster
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Array containing stage info associated with this cluster.
*
* @param StageInfo[] $stageInfo
*/
public function setStageInfo($stageInfo)
{
$this->stageInfo = $stageInfo;
}
/**
* @return StageInfo[]
*/
public function getStageInfo()
{
return $this->stageInfo;
}
/**
* Upgrade status of the cluster.
*
* Accepted values: STATUS_UNSPECIFIED, NOT_STARTED, IN_PROGRESS, SUCCESS,
* FAILED, PARTIAL_SUCCESS, CANCEL_IN_PROGRESS, CANCELLED
*
* @param self::UPGRADE_STATUS_* $upgradeStatus
*/
public function setUpgradeStatus($upgradeStatus)
{
$this->upgradeStatus = $upgradeStatus;
}
/**
* @return self::UPGRADE_STATUS_*
*/
public function getUpgradeStatus()
{
return $this->upgradeStatus;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ClusterUpgradeDetails::class, 'Google_Service_CloudAlloyDBAdmin_ClusterUpgradeDetails');

View File

@@ -0,0 +1,126 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudAlloyDBAdmin;
class ConnectionInfo extends \Google\Model
{
/**
* Output only. The unique ID of the Instance.
*
* @var string
*/
public $instanceUid;
/**
* Output only. The private network IP address for the Instance. This is the
* default IP for the instance and is always created (even if enable_public_ip
* is set). This is the connection endpoint for an end-user application.
*
* @var string
*/
public $ipAddress;
/**
* The name of the ConnectionInfo singleton resource, e.g.:
* projects/{project}/locations/{location}/clusters/instances/connectionInfo
* This field currently has no semantic meaning.
*
* @var string
*/
public $name;
/**
* Output only. The public IP addresses for the Instance. This is available
* ONLY when enable_public_ip is set. This is the connection endpoint for an
* end-user application.
*
* @var string
*/
public $publicIpAddress;
/**
* Output only. The unique ID of the Instance.
*
* @param string $instanceUid
*/
public function setInstanceUid($instanceUid)
{
$this->instanceUid = $instanceUid;
}
/**
* @return string
*/
public function getInstanceUid()
{
return $this->instanceUid;
}
/**
* Output only. The private network IP address for the Instance. This is the
* default IP for the instance and is always created (even if enable_public_ip
* is set). This is the connection endpoint for an end-user application.
*
* @param string $ipAddress
*/
public function setIpAddress($ipAddress)
{
$this->ipAddress = $ipAddress;
}
/**
* @return string
*/
public function getIpAddress()
{
return $this->ipAddress;
}
/**
* The name of the ConnectionInfo singleton resource, e.g.:
* projects/{project}/locations/{location}/clusters/instances/connectionInfo
* This field currently has no semantic meaning.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Output only. The public IP addresses for the Instance. This is available
* ONLY when enable_public_ip is set. This is the connection endpoint for an
* end-user application.
*
* @param string $publicIpAddress
*/
public function setPublicIpAddress($publicIpAddress)
{
$this->publicIpAddress = $publicIpAddress;
}
/**
* @return string
*/
public function getPublicIpAddress()
{
return $this->publicIpAddress;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ConnectionInfo::class, 'Google_Service_CloudAlloyDBAdmin_ConnectionInfo');

View File

@@ -0,0 +1,92 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudAlloyDBAdmin;
class ConnectionPoolConfig extends \Google\Model
{
/**
* Optional. Whether to enable Managed Connection Pool (MCP).
*
* @var bool
*/
public $enabled;
/**
* Optional. Connection Pool flags, as a list of "key": "value" pairs.
*
* @var string[]
*/
public $flags;
/**
* Output only. The number of running poolers per instance.
*
* @var int
*/
public $poolerCount;
/**
* Optional. Whether to enable Managed Connection Pool (MCP).
*
* @param bool $enabled
*/
public function setEnabled($enabled)
{
$this->enabled = $enabled;
}
/**
* @return bool
*/
public function getEnabled()
{
return $this->enabled;
}
/**
* Optional. Connection Pool flags, as a list of "key": "value" pairs.
*
* @param string[] $flags
*/
public function setFlags($flags)
{
$this->flags = $flags;
}
/**
* @return string[]
*/
public function getFlags()
{
return $this->flags;
}
/**
* Output only. The number of running poolers per instance.
*
* @param int $poolerCount
*/
public function setPoolerCount($poolerCount)
{
$this->poolerCount = $poolerCount;
}
/**
* @return int
*/
public function getPoolerCount()
{
return $this->poolerCount;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ConnectionPoolConfig::class, 'Google_Service_CloudAlloyDBAdmin_ConnectionPoolConfig');

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\CloudAlloyDBAdmin;
class ContinuousBackupConfig extends \Google\Model
{
/**
* Whether ContinuousBackup is enabled.
*
* @var bool
*/
public $enabled;
protected $encryptionConfigType = EncryptionConfig::class;
protected $encryptionConfigDataType = '';
/**
* The number of days that are eligible to restore from using PITR. To support
* the entire recovery window, backups and logs are retained for one day more
* than the recovery window. If not set, defaults to 14 days.
*
* @var int
*/
public $recoveryWindowDays;
/**
* Whether ContinuousBackup is enabled.
*
* @param bool $enabled
*/
public function setEnabled($enabled)
{
$this->enabled = $enabled;
}
/**
* @return bool
*/
public function getEnabled()
{
return $this->enabled;
}
/**
* The encryption config can be specified to encrypt the backups with a
* customer-managed encryption key (CMEK). When this field is not specified,
* the backup will use the cluster's encryption config.
*
* @param EncryptionConfig $encryptionConfig
*/
public function setEncryptionConfig(EncryptionConfig $encryptionConfig)
{
$this->encryptionConfig = $encryptionConfig;
}
/**
* @return EncryptionConfig
*/
public function getEncryptionConfig()
{
return $this->encryptionConfig;
}
/**
* The number of days that are eligible to restore from using PITR. To support
* the entire recovery window, backups and logs are retained for one day more
* than the recovery window. If not set, defaults to 14 days.
*
* @param int $recoveryWindowDays
*/
public function setRecoveryWindowDays($recoveryWindowDays)
{
$this->recoveryWindowDays = $recoveryWindowDays;
}
/**
* @return int
*/
public function getRecoveryWindowDays()
{
return $this->recoveryWindowDays;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ContinuousBackupConfig::class, 'Google_Service_CloudAlloyDBAdmin_ContinuousBackupConfig');

View File

@@ -0,0 +1,132 @@
<?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\CloudAlloyDBAdmin;
class ContinuousBackupInfo extends \Google\Collection
{
protected $collection_key = 'schedule';
/**
* Output only. The earliest restorable time that can be restored to. If
* continuous backups and recovery was recently enabled, the earliest
* restorable time is the creation time of the earliest eligible backup within
* this cluster's continuous backup recovery window. After a cluster has had
* continuous backups enabled for the duration of its recovery window, the
* earliest restorable time becomes "now minus the recovery window". For
* example, assuming a point in time recovery is attempted at 04/16/2025
* 3:23:00PM with a 14d recovery window, the earliest restorable time would be
* 04/02/2025 3:23:00PM. This field is only visible if the
* CLUSTER_VIEW_CONTINUOUS_BACKUP cluster view is provided.
*
* @var string
*/
public $earliestRestorableTime;
/**
* Output only. When ContinuousBackup was most recently enabled. Set to null
* if ContinuousBackup is not enabled.
*
* @var string
*/
public $enabledTime;
protected $encryptionInfoType = EncryptionInfo::class;
protected $encryptionInfoDataType = '';
/**
* Output only. Days of the week on which a continuous backup is taken.
*
* @var string[]
*/
public $schedule;
/**
* Output only. The earliest restorable time that can be restored to. If
* continuous backups and recovery was recently enabled, the earliest
* restorable time is the creation time of the earliest eligible backup within
* this cluster's continuous backup recovery window. After a cluster has had
* continuous backups enabled for the duration of its recovery window, the
* earliest restorable time becomes "now minus the recovery window". For
* example, assuming a point in time recovery is attempted at 04/16/2025
* 3:23:00PM with a 14d recovery window, the earliest restorable time would be
* 04/02/2025 3:23:00PM. This field is only visible if the
* CLUSTER_VIEW_CONTINUOUS_BACKUP cluster view is provided.
*
* @param string $earliestRestorableTime
*/
public function setEarliestRestorableTime($earliestRestorableTime)
{
$this->earliestRestorableTime = $earliestRestorableTime;
}
/**
* @return string
*/
public function getEarliestRestorableTime()
{
return $this->earliestRestorableTime;
}
/**
* Output only. When ContinuousBackup was most recently enabled. Set to null
* if ContinuousBackup is not enabled.
*
* @param string $enabledTime
*/
public function setEnabledTime($enabledTime)
{
$this->enabledTime = $enabledTime;
}
/**
* @return string
*/
public function getEnabledTime()
{
return $this->enabledTime;
}
/**
* Output only. The encryption information for the WALs and backups required
* for ContinuousBackup.
*
* @param EncryptionInfo $encryptionInfo
*/
public function setEncryptionInfo(EncryptionInfo $encryptionInfo)
{
$this->encryptionInfo = $encryptionInfo;
}
/**
* @return EncryptionInfo
*/
public function getEncryptionInfo()
{
return $this->encryptionInfo;
}
/**
* Output only. Days of the week on which a continuous backup is taken.
*
* @param string[] $schedule
*/
public function setSchedule($schedule)
{
$this->schedule = $schedule;
}
/**
* @return string[]
*/
public function getSchedule()
{
return $this->schedule;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ContinuousBackupInfo::class, 'Google_Service_CloudAlloyDBAdmin_ContinuousBackupInfo');

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\CloudAlloyDBAdmin;
class ContinuousBackupSource extends \Google\Model
{
/**
* Required. The source cluster from which to restore. This cluster must have
* continuous backup enabled for this operation to succeed. For the required
* format, see the comment on the Cluster.name field.
*
* @var string
*/
public $cluster;
/**
* Required. The point in time to restore to.
*
* @var string
*/
public $pointInTime;
/**
* Required. The source cluster from which to restore. This cluster must have
* continuous backup enabled for this operation to succeed. For the required
* format, see the comment on the Cluster.name field.
*
* @param string $cluster
*/
public function setCluster($cluster)
{
$this->cluster = $cluster;
}
/**
* @return string
*/
public function getCluster()
{
return $this->cluster;
}
/**
* Required. The point in time to restore to.
*
* @param string $pointInTime
*/
public function setPointInTime($pointInTime)
{
$this->pointInTime = $pointInTime;
}
/**
* @return string
*/
public function getPointInTime()
{
return $this->pointInTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ContinuousBackupSource::class, 'Google_Service_CloudAlloyDBAdmin_ContinuousBackupSource');

View File

@@ -0,0 +1,44 @@
<?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\CloudAlloyDBAdmin;
class CpuUtilization extends \Google\Model
{
/**
* @var float
*/
public $utilizationTarget;
/**
* @param float
*/
public function setUtilizationTarget($utilizationTarget)
{
$this->utilizationTarget = $utilizationTarget;
}
/**
* @return float
*/
public function getUtilizationTarget()
{
return $this->utilizationTarget;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CpuUtilization::class, 'Google_Service_CloudAlloyDBAdmin_CpuUtilization');

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\CloudAlloyDBAdmin;
class CsvExportOptions extends \Google\Model
{
/**
* Optional. Specifies the character that should appear before a data
* character that needs to be escaped. The default is the same as quote
* character. The value of this argument has to be a character in Hex ASCII
* Code.
*
* @var string
*/
public $escapeCharacter;
/**
* Optional. Specifies the character that separates columns within each row
* (line) of the file. The default is comma. The value of this argument has to
* be a character in Hex ASCII Code.
*
* @var string
*/
public $fieldDelimiter;
/**
* Optional. Specifies the quoting character to be used when a data value is
* quoted. The default is double-quote. The value of this argument has to be a
* character in Hex ASCII Code.
*
* @var string
*/
public $quoteCharacter;
/**
* Required. The SELECT query used to extract the data.
*
* @var string
*/
public $selectQuery;
/**
* Optional. Specifies the character that should appear before a data
* character that needs to be escaped. The default is the same as quote
* character. The value of this argument has to be a character in Hex ASCII
* Code.
*
* @param string $escapeCharacter
*/
public function setEscapeCharacter($escapeCharacter)
{
$this->escapeCharacter = $escapeCharacter;
}
/**
* @return string
*/
public function getEscapeCharacter()
{
return $this->escapeCharacter;
}
/**
* Optional. Specifies the character that separates columns within each row
* (line) of the file. The default is comma. The value of this argument has to
* be a character in Hex ASCII Code.
*
* @param string $fieldDelimiter
*/
public function setFieldDelimiter($fieldDelimiter)
{
$this->fieldDelimiter = $fieldDelimiter;
}
/**
* @return string
*/
public function getFieldDelimiter()
{
return $this->fieldDelimiter;
}
/**
* Optional. Specifies the quoting character to be used when a data value is
* quoted. The default is double-quote. The value of this argument has to be a
* character in Hex ASCII Code.
*
* @param string $quoteCharacter
*/
public function setQuoteCharacter($quoteCharacter)
{
$this->quoteCharacter = $quoteCharacter;
}
/**
* @return string
*/
public function getQuoteCharacter()
{
return $this->quoteCharacter;
}
/**
* Required. The SELECT query used to extract the data.
*
* @param string $selectQuery
*/
public function setSelectQuery($selectQuery)
{
$this->selectQuery = $selectQuery;
}
/**
* @return string
*/
public function getSelectQuery()
{
return $this->selectQuery;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CsvExportOptions::class, 'Google_Service_CloudAlloyDBAdmin_CsvExportOptions');

View File

@@ -0,0 +1,151 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudAlloyDBAdmin;
class CsvImportOptions extends \Google\Collection
{
protected $collection_key = 'columns';
/**
* Optional. The columns to which CSV data is imported. If not specified, all
* columns of the database table are loaded with CSV data.
*
* @var string[]
*/
public $columns;
/**
* Optional. Specifies the character that should appear before a data
* character that needs to be escaped. The default is same as quote character.
* The value of this argument has to be a character in Hex ASCII Code.
*
* @var string
*/
public $escapeCharacter;
/**
* Optional. Specifies the character that separates columns within each row
* (line) of the file. The default is comma. The value of this argument has to
* be a character in Hex ASCII Code.
*
* @var string
*/
public $fieldDelimiter;
/**
* Optional. Specifies the quoting character to be used when a data value is
* quoted. The default is double-quote. The value of this argument has to be a
* character in Hex ASCII Code.
*
* @var string
*/
public $quoteCharacter;
/**
* Required. The database table to import CSV file into.
*
* @var string
*/
public $table;
/**
* Optional. The columns to which CSV data is imported. If not specified, all
* columns of the database table are loaded with CSV data.
*
* @param string[] $columns
*/
public function setColumns($columns)
{
$this->columns = $columns;
}
/**
* @return string[]
*/
public function getColumns()
{
return $this->columns;
}
/**
* Optional. Specifies the character that should appear before a data
* character that needs to be escaped. The default is same as quote character.
* The value of this argument has to be a character in Hex ASCII Code.
*
* @param string $escapeCharacter
*/
public function setEscapeCharacter($escapeCharacter)
{
$this->escapeCharacter = $escapeCharacter;
}
/**
* @return string
*/
public function getEscapeCharacter()
{
return $this->escapeCharacter;
}
/**
* Optional. Specifies the character that separates columns within each row
* (line) of the file. The default is comma. The value of this argument has to
* be a character in Hex ASCII Code.
*
* @param string $fieldDelimiter
*/
public function setFieldDelimiter($fieldDelimiter)
{
$this->fieldDelimiter = $fieldDelimiter;
}
/**
* @return string
*/
public function getFieldDelimiter()
{
return $this->fieldDelimiter;
}
/**
* Optional. Specifies the quoting character to be used when a data value is
* quoted. The default is double-quote. The value of this argument has to be a
* character in Hex ASCII Code.
*
* @param string $quoteCharacter
*/
public function setQuoteCharacter($quoteCharacter)
{
$this->quoteCharacter = $quoteCharacter;
}
/**
* @return string
*/
public function getQuoteCharacter()
{
return $this->quoteCharacter;
}
/**
* Required. The database table to import CSV file into.
*
* @param string $table
*/
public function setTable($table)
{
$this->table = $table;
}
/**
* @return string
*/
public function getTable()
{
return $this->table;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CsvImportOptions::class, 'Google_Service_CloudAlloyDBAdmin_CsvImportOptions');

View File

@@ -0,0 +1,52 @@
<?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\CloudAlloyDBAdmin;
class DataplexConfig extends \Google\Model
{
/**
* Dataplex is enabled by default for resources such as clusters and
* instances. This flag controls the integration of AlloyDB PG resources (like
* databases, schemas, and tables) with Dataplex."
*
* @var bool
*/
public $enabled;
/**
* Dataplex is enabled by default for resources such as clusters and
* instances. This flag controls the integration of AlloyDB PG resources (like
* databases, schemas, and tables) with Dataplex."
*
* @param bool $enabled
*/
public function setEnabled($enabled)
{
$this->enabled = $enabled;
}
/**
* @return bool
*/
public function getEnabled()
{
return $this->enabled;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DataplexConfig::class, 'Google_Service_CloudAlloyDBAdmin_DataplexConfig');

View File

@@ -0,0 +1,84 @@
<?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\CloudAlloyDBAdmin;
class DenyMaintenancePeriod extends \Google\Model
{
protected $endDateType = GoogleTypeDate::class;
protected $endDateDataType = '';
protected $startDateType = GoogleTypeDate::class;
protected $startDateDataType = '';
protected $timeType = GoogleTypeTimeOfDay::class;
protected $timeDataType = '';
/**
* Deny period end date. This can be: * A full date, with non-zero year, month
* and day values OR * A month and day value, with a zero year for recurring
*
* @param GoogleTypeDate $endDate
*/
public function setEndDate(GoogleTypeDate $endDate)
{
$this->endDate = $endDate;
}
/**
* @return GoogleTypeDate
*/
public function getEndDate()
{
return $this->endDate;
}
/**
* Deny period start date. This can be: * A full date, with non-zero year,
* month and day values OR * A month and day value, with a zero year for
* recurring
*
* @param GoogleTypeDate $startDate
*/
public function setStartDate(GoogleTypeDate $startDate)
{
$this->startDate = $startDate;
}
/**
* @return GoogleTypeDate
*/
public function getStartDate()
{
return $this->startDate;
}
/**
* Time in UTC when the deny period starts on start_date and ends on end_date.
* This can be: * Full time OR * All zeros for 00:00:00 UTC
*
* @param GoogleTypeTimeOfDay $time
*/
public function setTime(GoogleTypeTimeOfDay $time)
{
$this->time = $time;
}
/**
* @return GoogleTypeTimeOfDay
*/
public function getTime()
{
return $this->time;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DenyMaintenancePeriod::class, 'Google_Service_CloudAlloyDBAdmin_DenyMaintenancePeriod');

View File

@@ -0,0 +1,52 @@
<?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\CloudAlloyDBAdmin;
class EncryptionConfig extends \Google\Model
{
/**
* The fully-qualified resource name of the KMS key. Each Cloud KMS key is
* regionalized and has the following format:
* projects/[PROJECT]/locations/[REGION]/keyRings/[RING]/cryptoKeys/[KEY_NAME]
*
* @var string
*/
public $kmsKeyName;
/**
* The fully-qualified resource name of the KMS key. Each Cloud KMS key is
* regionalized and has the following format:
* projects/[PROJECT]/locations/[REGION]/keyRings/[RING]/cryptoKeys/[KEY_NAME]
*
* @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_CloudAlloyDBAdmin_EncryptionConfig');

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\CloudAlloyDBAdmin;
class EncryptionInfo extends \Google\Collection
{
/**
* Encryption type not specified. Defaults to GOOGLE_DEFAULT_ENCRYPTION.
*/
public const ENCRYPTION_TYPE_TYPE_UNSPECIFIED = 'TYPE_UNSPECIFIED';
/**
* The data is encrypted at rest with a key that is fully managed by Google.
* No key version will be populated. This is the default state.
*/
public const ENCRYPTION_TYPE_GOOGLE_DEFAULT_ENCRYPTION = 'GOOGLE_DEFAULT_ENCRYPTION';
/**
* The data is encrypted at rest with a key that is managed by the customer.
* KMS key versions will be populated.
*/
public const ENCRYPTION_TYPE_CUSTOMER_MANAGED_ENCRYPTION = 'CUSTOMER_MANAGED_ENCRYPTION';
protected $collection_key = 'kmsKeyVersions';
/**
* Output only. Type of encryption.
*
* @var string
*/
public $encryptionType;
/**
* Output only. Cloud KMS key versions that are being used to protect the
* database or the backup.
*
* @var string[]
*/
public $kmsKeyVersions;
/**
* Output only. Type of encryption.
*
* Accepted values: TYPE_UNSPECIFIED, GOOGLE_DEFAULT_ENCRYPTION,
* CUSTOMER_MANAGED_ENCRYPTION
*
* @param self::ENCRYPTION_TYPE_* $encryptionType
*/
public function setEncryptionType($encryptionType)
{
$this->encryptionType = $encryptionType;
}
/**
* @return self::ENCRYPTION_TYPE_*
*/
public function getEncryptionType()
{
return $this->encryptionType;
}
/**
* Output only. Cloud KMS key versions that are being used to protect the
* database or the backup.
*
* @param string[] $kmsKeyVersions
*/
public function setKmsKeyVersions($kmsKeyVersions)
{
$this->kmsKeyVersions = $kmsKeyVersions;
}
/**
* @return string[]
*/
public function getKmsKeyVersions()
{
return $this->kmsKeyVersions;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(EncryptionInfo::class, 'Google_Service_CloudAlloyDBAdmin_EncryptionInfo');

View File

@@ -0,0 +1,108 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudAlloyDBAdmin;
class ExportClusterRequest extends \Google\Model
{
protected $csvExportOptionsType = CsvExportOptions::class;
protected $csvExportOptionsDataType = '';
/**
* Required. Name of the database where the export command will be executed.
* Note - Value provided should be the same as expected from `SELECT
* current_database();` and NOT as a resource reference.
*
* @var string
*/
public $database;
protected $gcsDestinationType = GcsDestination::class;
protected $gcsDestinationDataType = '';
protected $sqlExportOptionsType = SqlExportOptions::class;
protected $sqlExportOptionsDataType = '';
/**
* Options for exporting data in CSV format. Required field to be set for CSV
* file type.
*
* @param CsvExportOptions $csvExportOptions
*/
public function setCsvExportOptions(CsvExportOptions $csvExportOptions)
{
$this->csvExportOptions = $csvExportOptions;
}
/**
* @return CsvExportOptions
*/
public function getCsvExportOptions()
{
return $this->csvExportOptions;
}
/**
* Required. Name of the database where the export command will be executed.
* Note - Value provided should be the same as expected from `SELECT
* current_database();` and NOT as a resource reference.
*
* @param string $database
*/
public function setDatabase($database)
{
$this->database = $database;
}
/**
* @return string
*/
public function getDatabase()
{
return $this->database;
}
/**
* Required. Option to export data to cloud storage.
*
* @param GcsDestination $gcsDestination
*/
public function setGcsDestination(GcsDestination $gcsDestination)
{
$this->gcsDestination = $gcsDestination;
}
/**
* @return GcsDestination
*/
public function getGcsDestination()
{
return $this->gcsDestination;
}
/**
* Options for exporting data in SQL format. Required field to be set for SQL
* file type.
*
* @param SqlExportOptions $sqlExportOptions
*/
public function setSqlExportOptions(SqlExportOptions $sqlExportOptions)
{
$this->sqlExportOptions = $sqlExportOptions;
}
/**
* @return SqlExportOptions
*/
public function getSqlExportOptions()
{
return $this->sqlExportOptions;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ExportClusterRequest::class, 'Google_Service_CloudAlloyDBAdmin_ExportClusterRequest');

View File

@@ -0,0 +1,44 @@
<?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\CloudAlloyDBAdmin;
class ExportClusterResponse extends \Google\Model
{
protected $gcsDestinationType = GcsDestination::class;
protected $gcsDestinationDataType = '';
/**
* Required. Option to export data to cloud storage.
*
* @param GcsDestination $gcsDestination
*/
public function setGcsDestination(GcsDestination $gcsDestination)
{
$this->gcsDestination = $gcsDestination;
}
/**
* @return GcsDestination
*/
public function getGcsDestination()
{
return $this->gcsDestination;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ExportClusterResponse::class, 'Google_Service_CloudAlloyDBAdmin_ExportClusterResponse');

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\CloudAlloyDBAdmin;
class FailoverInstanceRequest 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 ignores the
* request if it has already been completed. The server guarantees 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 the
* original operation with the same request ID was received, and if so,
* ignores 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. If set, performs request validation, for example, permission
* checks and any other type of validation, but does not actually execute the
* create request.
*
* @var bool
*/
public $validateOnly;
/**
* Optional. An optional request ID to identify requests. Specify a unique
* request ID so that if you must retry your request, the server ignores the
* request if it has already been completed. The server guarantees 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 the
* original operation with the same request ID was received, and if so,
* ignores 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;
}
/**
* Optional. If set, performs request validation, for example, permission
* checks and any other type of validation, but does not actually execute the
* create request.
*
* @param bool $validateOnly
*/
public function setValidateOnly($validateOnly)
{
$this->validateOnly = $validateOnly;
}
/**
* @return bool
*/
public function getValidateOnly()
{
return $this->validateOnly;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(FailoverInstanceRequest::class, 'Google_Service_CloudAlloyDBAdmin_FailoverInstanceRequest');

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\CloudAlloyDBAdmin;
class GcsDestination extends \Google\Model
{
/**
* Required. The path to the file in Google Cloud Storage where the export
* will be stored. The URI is in the form `gs://bucketName/fileName`.
*
* @var string
*/
public $uri;
/**
* Required. The path to the file in Google Cloud Storage where the export
* will be stored. The URI is in the form `gs://bucketName/fileName`.
*
* @param string $uri
*/
public function setUri($uri)
{
$this->uri = $uri;
}
/**
* @return string
*/
public function getUri()
{
return $this->uri;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GcsDestination::class, 'Google_Service_CloudAlloyDBAdmin_GcsDestination');

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\CloudAlloyDBAdmin;
class GenerateClientCertificateRequest extends \Google\Model
{
/**
* @var string
*/
public $certDuration;
/**
* @var string
*/
public $publicKey;
/**
* @var string
*/
public $requestId;
/**
* @var bool
*/
public $useMetadataExchange;
/**
* @param string
*/
public function setCertDuration($certDuration)
{
$this->certDuration = $certDuration;
}
/**
* @return string
*/
public function getCertDuration()
{
return $this->certDuration;
}
/**
* @param string
*/
public function setPublicKey($publicKey)
{
$this->publicKey = $publicKey;
}
/**
* @return string
*/
public function getPublicKey()
{
return $this->publicKey;
}
/**
* @param string
*/
public function setRequestId($requestId)
{
$this->requestId = $requestId;
}
/**
* @return string
*/
public function getRequestId()
{
return $this->requestId;
}
/**
* @param bool
*/
public function setUseMetadataExchange($useMetadataExchange)
{
$this->useMetadataExchange = $useMetadataExchange;
}
/**
* @return bool
*/
public function getUseMetadataExchange()
{
return $this->useMetadataExchange;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GenerateClientCertificateRequest::class, 'Google_Service_CloudAlloyDBAdmin_GenerateClientCertificateRequest');

View File

@@ -0,0 +1,63 @@
<?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\CloudAlloyDBAdmin;
class GenerateClientCertificateResponse extends \Google\Collection
{
protected $collection_key = 'pemCertificateChain';
/**
* @var string
*/
public $caCert;
/**
* @var string[]
*/
public $pemCertificateChain;
/**
* @param string
*/
public function setCaCert($caCert)
{
$this->caCert = $caCert;
}
/**
* @return string
*/
public function getCaCert()
{
return $this->caCert;
}
/**
* @param string[]
*/
public function setPemCertificateChain($pemCertificateChain)
{
$this->pemCertificateChain = $pemCertificateChain;
}
/**
* @return string[]
*/
public function getPemCertificateChain()
{
return $this->pemCertificateChain;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GenerateClientCertificateResponse::class, 'Google_Service_CloudAlloyDBAdmin_GenerateClientCertificateResponse');

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\CloudAlloyDBAdmin;
class GoogleCloudLocationListLocationsResponse extends \Google\Collection
{
protected $collection_key = 'locations';
protected $locationsType = GoogleCloudLocationLocation::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 GoogleCloudLocationLocation[] $locations
*/
public function setLocations($locations)
{
$this->locations = $locations;
}
/**
* @return GoogleCloudLocationLocation[]
*/
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(GoogleCloudLocationListLocationsResponse::class, 'Google_Service_CloudAlloyDBAdmin_GoogleCloudLocationListLocationsResponse');

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\CloudAlloyDBAdmin;
class GoogleCloudLocationLocation 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(GoogleCloudLocationLocation::class, 'Google_Service_CloudAlloyDBAdmin_GoogleCloudLocationLocation');

View File

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

View File

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

View File

@@ -0,0 +1,142 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudAlloyDBAdmin;
class ImportClusterRequest extends \Google\Model
{
protected $csvImportOptionsType = CsvImportOptions::class;
protected $csvImportOptionsDataType = '';
/**
* Optional. Name of the database to which the import will be done. For import
* from SQL file, this is required only if the file does not specify a
* database. Note - Value provided should be the same as expected from `SELECT
* current_database();` and NOT as a resource reference.
*
* @var string
*/
public $database;
/**
* Required. The path to the file in Google Cloud Storage where the source
* file for import will be stored. The URI is in the form
* `gs://bucketName/fileName`.
*
* @var string
*/
public $gcsUri;
protected $sqlImportOptionsType = SqlImportOptions::class;
protected $sqlImportOptionsDataType = '';
/**
* Optional. Database user to be used for importing the data. Note - Value
* provided should be the same as expected from `SELECT current_user;` and NOT
* as a resource reference.
*
* @var string
*/
public $user;
/**
* Options for importing data in CSV format.
*
* @param CsvImportOptions $csvImportOptions
*/
public function setCsvImportOptions(CsvImportOptions $csvImportOptions)
{
$this->csvImportOptions = $csvImportOptions;
}
/**
* @return CsvImportOptions
*/
public function getCsvImportOptions()
{
return $this->csvImportOptions;
}
/**
* Optional. Name of the database to which the import will be done. For import
* from SQL file, this is required only if the file does not specify a
* database. Note - Value provided should be the same as expected from `SELECT
* current_database();` and NOT as a resource reference.
*
* @param string $database
*/
public function setDatabase($database)
{
$this->database = $database;
}
/**
* @return string
*/
public function getDatabase()
{
return $this->database;
}
/**
* Required. The path to the file in Google Cloud Storage where the source
* file for import will be stored. The URI is in the form
* `gs://bucketName/fileName`.
*
* @param string $gcsUri
*/
public function setGcsUri($gcsUri)
{
$this->gcsUri = $gcsUri;
}
/**
* @return string
*/
public function getGcsUri()
{
return $this->gcsUri;
}
/**
* Options for importing data in SQL format.
*
* @param SqlImportOptions $sqlImportOptions
*/
public function setSqlImportOptions(SqlImportOptions $sqlImportOptions)
{
$this->sqlImportOptions = $sqlImportOptions;
}
/**
* @return SqlImportOptions
*/
public function getSqlImportOptions()
{
return $this->sqlImportOptions;
}
/**
* Optional. Database user to be used for importing the data. Note - Value
* provided should be the same as expected from `SELECT current_user;` and NOT
* as a resource reference.
*
* @param string $user
*/
public function setUser($user)
{
$this->user = $user;
}
/**
* @return string
*/
public function getUser()
{
return $this->user;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ImportClusterRequest::class, 'Google_Service_CloudAlloyDBAdmin_ImportClusterRequest');

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\CloudAlloyDBAdmin;
class ImportClusterResponse extends \Google\Model
{
/**
* Required. Size of the object downloaded from Google Cloud Storage in bytes.
*
* @var string
*/
public $bytesDownloaded;
/**
* Required. Size of the object downloaded from Google Cloud Storage in bytes.
*
* @param string $bytesDownloaded
*/
public function setBytesDownloaded($bytesDownloaded)
{
$this->bytesDownloaded = $bytesDownloaded;
}
/**
* @return string
*/
public function getBytesDownloaded()
{
return $this->bytesDownloaded;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ImportClusterResponse::class, 'Google_Service_CloudAlloyDBAdmin_ImportClusterResponse');

View File

@@ -0,0 +1,126 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudAlloyDBAdmin;
class InjectFaultRequest extends \Google\Model
{
/**
* The fault type is unknown.
*/
public const FAULT_TYPE_FAULT_TYPE_UNSPECIFIED = 'FAULT_TYPE_UNSPECIFIED';
/**
* Stop the VM
*/
public const FAULT_TYPE_STOP_VM = 'STOP_VM';
/**
* Required. The type of fault to be injected in an instance.
*
* @var string
*/
public $faultType;
/**
* Optional. An optional request ID to identify requests. Specify a unique
* request ID so that if you must retry your request, the server ignores the
* request if it has already been completed. The server guarantees 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 the
* original operation with the same request ID was received, and if so,
* ignores 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. If set, performs request validation, for example, permission
* checks and any other type of validation, but does not actually execute the
* create request.
*
* @var bool
*/
public $validateOnly;
/**
* Required. The type of fault to be injected in an instance.
*
* Accepted values: FAULT_TYPE_UNSPECIFIED, STOP_VM
*
* @param self::FAULT_TYPE_* $faultType
*/
public function setFaultType($faultType)
{
$this->faultType = $faultType;
}
/**
* @return self::FAULT_TYPE_*
*/
public function getFaultType()
{
return $this->faultType;
}
/**
* Optional. An optional request ID to identify requests. Specify a unique
* request ID so that if you must retry your request, the server ignores the
* request if it has already been completed. The server guarantees 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 the
* original operation with the same request ID was received, and if so,
* ignores 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;
}
/**
* Optional. If set, performs request validation, for example, permission
* checks and any other type of validation, but does not actually execute the
* create request.
*
* @param bool $validateOnly
*/
public function setValidateOnly($validateOnly)
{
$this->validateOnly = $validateOnly;
}
/**
* @return bool
*/
public function getValidateOnly()
{
return $this->validateOnly;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(InjectFaultRequest::class, 'Google_Service_CloudAlloyDBAdmin_InjectFaultRequest');

View File

@@ -0,0 +1,856 @@
<?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\CloudAlloyDBAdmin;
class Instance extends \Google\Collection
{
/**
* The policy is not specified.
*/
public const ACTIVATION_POLICY_ACTIVATION_POLICY_UNSPECIFIED = 'ACTIVATION_POLICY_UNSPECIFIED';
/**
* The instance is running.
*/
public const ACTIVATION_POLICY_ALWAYS = 'ALWAYS';
/**
* The instance is not running.
*/
public const ACTIVATION_POLICY_NEVER = 'NEVER';
/**
* This is an unknown Availability type.
*/
public const AVAILABILITY_TYPE_AVAILABILITY_TYPE_UNSPECIFIED = 'AVAILABILITY_TYPE_UNSPECIFIED';
/**
* Zonal available instance.
*/
public const AVAILABILITY_TYPE_ZONAL = 'ZONAL';
/**
* Regional (or Highly) available instance.
*/
public const AVAILABILITY_TYPE_REGIONAL = 'REGIONAL';
/**
* The type of the instance is unknown.
*/
public const INSTANCE_TYPE_INSTANCE_TYPE_UNSPECIFIED = 'INSTANCE_TYPE_UNSPECIFIED';
/**
* PRIMARY instances support read and write operations.
*/
public const INSTANCE_TYPE_PRIMARY = 'PRIMARY';
/**
* READ POOL instances support read operations only. Each read pool instance
* consists of one or more homogeneous nodes. * Read pool of size 1 can only
* have zonal availability. * Read pools with node count of 2 or more can have
* regional availability (nodes are present in 2 or more zones in a region).
*/
public const INSTANCE_TYPE_READ_POOL = 'READ_POOL';
/**
* SECONDARY instances support read operations only. SECONDARY instance is a
* cross-region read replica
*/
public const INSTANCE_TYPE_SECONDARY = 'SECONDARY';
/**
* The state of the instance is unknown.
*/
public const STATE_STATE_UNSPECIFIED = 'STATE_UNSPECIFIED';
/**
* The instance is active and running.
*/
public const STATE_READY = 'READY';
/**
* The instance is stopped. Instance name and IP resources are preserved.
*/
public const STATE_STOPPED = 'STOPPED';
/**
* The instance is being created.
*/
public const STATE_CREATING = 'CREATING';
/**
* The instance is being deleted.
*/
public const STATE_DELETING = 'DELETING';
/**
* The instance is down for maintenance.
*/
public const STATE_MAINTENANCE = 'MAINTENANCE';
/**
* The creation of the instance failed or a fatal error occurred during an
* operation on the instance. Note: Instances in this state would tried to be
* auto-repaired. And Customers should be able to restart, update or delete
* these instances.
*/
public const STATE_FAILED = 'FAILED';
/**
* The instance has been configured to sync data from some other source.
*/
public const STATE_BOOTSTRAPPING = 'BOOTSTRAPPING';
/**
* The instance is being promoted.
*/
public const STATE_PROMOTING = 'PROMOTING';
/**
* The instance has entered switchover state. All updates on instance are
* restricted while the instance is in this state.
*/
public const STATE_SWITCHOVER = 'SWITCHOVER';
protected $collection_key = 'outboundPublicIpAddresses';
/**
* Optional. Specifies whether an instance needs to spin up. Once the instance
* is active, the activation policy can be updated to the `NEVER` to stop the
* instance. Likewise, the activation policy can be updated to `ALWAYS` to
* start the instance. There are restrictions around when an instance
* can/cannot be activated (for example, a read pool instance should be
* stopped before stopping primary etc.). Please refer to the API
* documentation for more details.
*
* @var string
*/
public $activationPolicy;
/**
* Annotations to allow client tools to store small amount of arbitrary data.
* This is distinct from labels. https://google.aip.dev/128
*
* @var string[]
*/
public $annotations;
/**
* Availability type of an Instance. If empty, defaults to REGIONAL for
* primary instances. For read pools, availability_type is always UNSPECIFIED.
* Instances in the read pools are evenly distributed across available zones
* within the region (i.e. read pools with more than one node will have a node
* in at least two zones).
*
* @var string
*/
public $availabilityType;
protected $clientConnectionConfigType = ClientConnectionConfig::class;
protected $clientConnectionConfigDataType = '';
protected $connectionPoolConfigType = ConnectionPoolConfig::class;
protected $connectionPoolConfigDataType = '';
/**
* Output only. Create time stamp
*
* @var string
*/
public $createTime;
/**
* Database flags. Set at the instance level. They are copied from the primary
* instance on secondary instance creation. Flags that have restrictions
* default to the value at primary instance on read instances during creation.
* Read instances can set new flags or override existing flags that are
* relevant for reads, for example, for enabling columnar cache on a read
* instance. Flags set on read instance might or might not be present on the
* primary instance. This is a list of "key": "value" pairs. "key": The name
* of the flag. These flags are passed at instance setup time, so include both
* server options and system variables for Postgres. Flags are specified with
* underscores, not hyphens. "value": The value of the flag. Booleans are set
* to **on** for true and **off** for false. This field must be omitted if the
* flag doesn't take a value.
*
* @var string[]
*/
public $databaseFlags;
/**
* Output only. Delete time stamp
*
* @var string
*/
public $deleteTime;
/**
* User-settable and human-readable display name for the Instance.
*
* @var string
*/
public $displayName;
/**
* For Resource freshness validation (https://google.aip.dev/154)
*
* @var string
*/
public $etag;
/**
* The Compute Engine zone that the instance should serve from, per
* https://cloud.google.com/compute/docs/regions-zones This can ONLY be
* specified for ZONAL instances. If present for a REGIONAL instance, an error
* will be thrown. If this is absent for a ZONAL instance, instance is created
* in a random zone with available capacity.
*
* @var string
*/
public $gceZone;
/**
* Required. The type of the instance. Specified at creation time.
*
* @var string
*/
public $instanceType;
/**
* Output only. The IP address for the Instance. This is the connection
* endpoint for an end-user application.
*
* @var string
*/
public $ipAddress;
/**
* Labels as key value pairs
*
* @var string[]
*/
public $labels;
protected $machineConfigType = MachineConfig::class;
protected $machineConfigDataType = '';
/**
* Output only. Maintenance version of the instance, for example:
* POSTGRES_15.2025_07_15.04_00. Output only. Update this field via the parent
* cluster's maintenance_version field(s).
*
* @var string
*/
public $maintenanceVersionName;
/**
* Output only. The name of the instance resource with the format: * projects/
* {project}/locations/{region}/clusters/{cluster_id}/instances/{instance_id}
* where the cluster and instance ID segments should satisfy the regex
* expression `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`, e.g. 1-63 characters of
* lowercase letters, numbers, and dashes, starting with a letter, and ending
* with a letter or number. For more details see https://google.aip.dev/122.
* The prefix of the instance resource name is the name of the parent
* resource: * projects/{project}/locations/{region}/clusters/{cluster_id}
*
* @var string
*/
public $name;
protected $networkConfigType = InstanceNetworkConfig::class;
protected $networkConfigDataType = '';
protected $nodesType = Node::class;
protected $nodesDataType = 'array';
protected $observabilityConfigType = ObservabilityInstanceConfig::class;
protected $observabilityConfigDataType = '';
/**
* Output only. All outbound public IP addresses configured for the instance.
*
* @var string[]
*/
public $outboundPublicIpAddresses;
protected $pscInstanceConfigType = PscInstanceConfig::class;
protected $pscInstanceConfigDataType = '';
/**
* Output only. The public IP addresses for the Instance. This is available
* ONLY when enable_public_ip is set. This is the connection endpoint for an
* end-user application.
*
* @var string
*/
public $publicIpAddress;
protected $queryInsightsConfigType = QueryInsightsInstanceConfig::class;
protected $queryInsightsConfigDataType = '';
protected $readPoolConfigType = ReadPoolConfig::class;
protected $readPoolConfigDataType = '';
/**
* Output only. Reconciling (https://google.aip.dev/128#reconciliation). Set
* to true if the current state of Instance does not match the user's intended
* state, and the service is actively updating the resource to reconcile them.
* This can happen due to user-triggered updates or system actions like
* failover or maintenance.
*
* @var bool
*/
public $reconciling;
/**
* Output only. Reserved for future use.
*
* @var bool
*/
public $satisfiesPzs;
/**
* Output only. The current serving state of the instance.
*
* @var string
*/
public $state;
/**
* Output only. The system-generated UID of the resource. The UID is assigned
* when the resource is created, and it is retained until it is deleted.
*
* @var string
*/
public $uid;
/**
* Output only. Update time stamp
*
* @var string
*/
public $updateTime;
protected $writableNodeType = Node::class;
protected $writableNodeDataType = '';
/**
* Optional. Specifies whether an instance needs to spin up. Once the instance
* is active, the activation policy can be updated to the `NEVER` to stop the
* instance. Likewise, the activation policy can be updated to `ALWAYS` to
* start the instance. There are restrictions around when an instance
* can/cannot be activated (for example, a read pool instance should be
* stopped before stopping primary etc.). Please refer to the API
* documentation for more details.
*
* Accepted values: ACTIVATION_POLICY_UNSPECIFIED, ALWAYS, NEVER
*
* @param self::ACTIVATION_POLICY_* $activationPolicy
*/
public function setActivationPolicy($activationPolicy)
{
$this->activationPolicy = $activationPolicy;
}
/**
* @return self::ACTIVATION_POLICY_*
*/
public function getActivationPolicy()
{
return $this->activationPolicy;
}
/**
* Annotations to allow client tools to store small amount of arbitrary data.
* This is distinct from labels. https://google.aip.dev/128
*
* @param string[] $annotations
*/
public function setAnnotations($annotations)
{
$this->annotations = $annotations;
}
/**
* @return string[]
*/
public function getAnnotations()
{
return $this->annotations;
}
/**
* Availability type of an Instance. If empty, defaults to REGIONAL for
* primary instances. For read pools, availability_type is always UNSPECIFIED.
* Instances in the read pools are evenly distributed across available zones
* within the region (i.e. read pools with more than one node will have a node
* in at least two zones).
*
* Accepted values: AVAILABILITY_TYPE_UNSPECIFIED, ZONAL, REGIONAL
*
* @param self::AVAILABILITY_TYPE_* $availabilityType
*/
public function setAvailabilityType($availabilityType)
{
$this->availabilityType = $availabilityType;
}
/**
* @return self::AVAILABILITY_TYPE_*
*/
public function getAvailabilityType()
{
return $this->availabilityType;
}
/**
* Optional. Client connection specific configurations
*
* @param ClientConnectionConfig $clientConnectionConfig
*/
public function setClientConnectionConfig(ClientConnectionConfig $clientConnectionConfig)
{
$this->clientConnectionConfig = $clientConnectionConfig;
}
/**
* @return ClientConnectionConfig
*/
public function getClientConnectionConfig()
{
return $this->clientConnectionConfig;
}
/**
* Optional. The configuration for Managed Connection Pool (MCP).
*
* @param ConnectionPoolConfig $connectionPoolConfig
*/
public function setConnectionPoolConfig(ConnectionPoolConfig $connectionPoolConfig)
{
$this->connectionPoolConfig = $connectionPoolConfig;
}
/**
* @return ConnectionPoolConfig
*/
public function getConnectionPoolConfig()
{
return $this->connectionPoolConfig;
}
/**
* Output only. Create time stamp
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* Database flags. Set at the instance level. They are copied from the primary
* instance on secondary instance creation. Flags that have restrictions
* default to the value at primary instance on read instances during creation.
* Read instances can set new flags or override existing flags that are
* relevant for reads, for example, for enabling columnar cache on a read
* instance. Flags set on read instance might or might not be present on the
* primary instance. This is a list of "key": "value" pairs. "key": The name
* of the flag. These flags are passed at instance setup time, so include both
* server options and system variables for Postgres. Flags are specified with
* underscores, not hyphens. "value": The value of the flag. Booleans are set
* to **on** for true and **off** for false. This field must be omitted if the
* flag doesn't take a value.
*
* @param string[] $databaseFlags
*/
public function setDatabaseFlags($databaseFlags)
{
$this->databaseFlags = $databaseFlags;
}
/**
* @return string[]
*/
public function getDatabaseFlags()
{
return $this->databaseFlags;
}
/**
* Output only. Delete time stamp
*
* @param string $deleteTime
*/
public function setDeleteTime($deleteTime)
{
$this->deleteTime = $deleteTime;
}
/**
* @return string
*/
public function getDeleteTime()
{
return $this->deleteTime;
}
/**
* User-settable and human-readable display name for the Instance.
*
* @param string $displayName
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* For Resource freshness validation (https://google.aip.dev/154)
*
* @param string $etag
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* The Compute Engine zone that the instance should serve from, per
* https://cloud.google.com/compute/docs/regions-zones This can ONLY be
* specified for ZONAL instances. If present for a REGIONAL instance, an error
* will be thrown. If this is absent for a ZONAL instance, instance is created
* in a random zone with available capacity.
*
* @param string $gceZone
*/
public function setGceZone($gceZone)
{
$this->gceZone = $gceZone;
}
/**
* @return string
*/
public function getGceZone()
{
return $this->gceZone;
}
/**
* Required. The type of the instance. Specified at creation time.
*
* Accepted values: INSTANCE_TYPE_UNSPECIFIED, PRIMARY, READ_POOL, SECONDARY
*
* @param self::INSTANCE_TYPE_* $instanceType
*/
public function setInstanceType($instanceType)
{
$this->instanceType = $instanceType;
}
/**
* @return self::INSTANCE_TYPE_*
*/
public function getInstanceType()
{
return $this->instanceType;
}
/**
* Output only. The IP address for the Instance. This is the connection
* endpoint for an end-user application.
*
* @param string $ipAddress
*/
public function setIpAddress($ipAddress)
{
$this->ipAddress = $ipAddress;
}
/**
* @return string
*/
public function getIpAddress()
{
return $this->ipAddress;
}
/**
* Labels as key value pairs
*
* @param string[] $labels
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* Configurations for the machines that host the underlying database engine.
*
* @param MachineConfig $machineConfig
*/
public function setMachineConfig(MachineConfig $machineConfig)
{
$this->machineConfig = $machineConfig;
}
/**
* @return MachineConfig
*/
public function getMachineConfig()
{
return $this->machineConfig;
}
/**
* Output only. Maintenance version of the instance, for example:
* POSTGRES_15.2025_07_15.04_00. Output only. Update this field via the parent
* cluster's maintenance_version field(s).
*
* @param string $maintenanceVersionName
*/
public function setMaintenanceVersionName($maintenanceVersionName)
{
$this->maintenanceVersionName = $maintenanceVersionName;
}
/**
* @return string
*/
public function getMaintenanceVersionName()
{
return $this->maintenanceVersionName;
}
/**
* Output only. The name of the instance resource with the format: * projects/
* {project}/locations/{region}/clusters/{cluster_id}/instances/{instance_id}
* where the cluster and instance ID segments should satisfy the regex
* expression `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`, e.g. 1-63 characters of
* lowercase letters, numbers, and dashes, starting with a letter, and ending
* with a letter or number. For more details see https://google.aip.dev/122.
* The prefix of the instance resource name is the name of the parent
* resource: * projects/{project}/locations/{region}/clusters/{cluster_id}
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Optional. Instance-level network configuration.
*
* @param InstanceNetworkConfig $networkConfig
*/
public function setNetworkConfig(InstanceNetworkConfig $networkConfig)
{
$this->networkConfig = $networkConfig;
}
/**
* @return InstanceNetworkConfig
*/
public function getNetworkConfig()
{
return $this->networkConfig;
}
/**
* Output only. List of available read-only VMs in this instance, including
* the standby for a PRIMARY instance.
*
* @param Node[] $nodes
*/
public function setNodes($nodes)
{
$this->nodes = $nodes;
}
/**
* @return Node[]
*/
public function getNodes()
{
return $this->nodes;
}
/**
* Configuration for observability.
*
* @param ObservabilityInstanceConfig $observabilityConfig
*/
public function setObservabilityConfig(ObservabilityInstanceConfig $observabilityConfig)
{
$this->observabilityConfig = $observabilityConfig;
}
/**
* @return ObservabilityInstanceConfig
*/
public function getObservabilityConfig()
{
return $this->observabilityConfig;
}
/**
* Output only. All outbound public IP addresses configured for the instance.
*
* @param string[] $outboundPublicIpAddresses
*/
public function setOutboundPublicIpAddresses($outboundPublicIpAddresses)
{
$this->outboundPublicIpAddresses = $outboundPublicIpAddresses;
}
/**
* @return string[]
*/
public function getOutboundPublicIpAddresses()
{
return $this->outboundPublicIpAddresses;
}
/**
* Optional. The configuration for Private Service Connect (PSC) for the
* instance.
*
* @param PscInstanceConfig $pscInstanceConfig
*/
public function setPscInstanceConfig(PscInstanceConfig $pscInstanceConfig)
{
$this->pscInstanceConfig = $pscInstanceConfig;
}
/**
* @return PscInstanceConfig
*/
public function getPscInstanceConfig()
{
return $this->pscInstanceConfig;
}
/**
* Output only. The public IP addresses for the Instance. This is available
* ONLY when enable_public_ip is set. This is the connection endpoint for an
* end-user application.
*
* @param string $publicIpAddress
*/
public function setPublicIpAddress($publicIpAddress)
{
$this->publicIpAddress = $publicIpAddress;
}
/**
* @return string
*/
public function getPublicIpAddress()
{
return $this->publicIpAddress;
}
/**
* Configuration for query insights.
*
* @param QueryInsightsInstanceConfig $queryInsightsConfig
*/
public function setQueryInsightsConfig(QueryInsightsInstanceConfig $queryInsightsConfig)
{
$this->queryInsightsConfig = $queryInsightsConfig;
}
/**
* @return QueryInsightsInstanceConfig
*/
public function getQueryInsightsConfig()
{
return $this->queryInsightsConfig;
}
/**
* Read pool instance configuration. This is required if the value of
* instanceType is READ_POOL.
*
* @param ReadPoolConfig $readPoolConfig
*/
public function setReadPoolConfig(ReadPoolConfig $readPoolConfig)
{
$this->readPoolConfig = $readPoolConfig;
}
/**
* @return ReadPoolConfig
*/
public function getReadPoolConfig()
{
return $this->readPoolConfig;
}
/**
* Output only. Reconciling (https://google.aip.dev/128#reconciliation). Set
* to true if the current state of Instance does not match the user's intended
* state, and the service is actively updating the resource to reconcile them.
* This can happen due to user-triggered updates or system actions like
* failover or maintenance.
*
* @param bool $reconciling
*/
public function setReconciling($reconciling)
{
$this->reconciling = $reconciling;
}
/**
* @return bool
*/
public function getReconciling()
{
return $this->reconciling;
}
/**
* 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 current serving state of the instance.
*
* Accepted values: STATE_UNSPECIFIED, READY, STOPPED, CREATING, DELETING,
* MAINTENANCE, FAILED, BOOTSTRAPPING, PROMOTING, SWITCHOVER
*
* @param self::STATE_* $state
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return self::STATE_*
*/
public function getState()
{
return $this->state;
}
/**
* Output only. The system-generated UID of the resource. The UID is assigned
* when the resource is created, and it is retained until it is deleted.
*
* @param string $uid
*/
public function setUid($uid)
{
$this->uid = $uid;
}
/**
* @return string
*/
public function getUid()
{
return $this->uid;
}
/**
* Output only. Update time stamp
*
* @param string $updateTime
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
/**
* Output only. This is set for the read-write VM of the PRIMARY instance
* only.
*
* @param Node $writableNode
*/
public function setWritableNode(Node $writableNode)
{
$this->writableNode = $writableNode;
}
/**
* @return Node
*/
public function getWritableNode()
{
return $this->writableNode;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Instance::class, 'Google_Service_CloudAlloyDBAdmin_Instance');

View File

@@ -0,0 +1,155 @@
<?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\CloudAlloyDBAdmin;
class InstanceNetworkConfig extends \Google\Collection
{
protected $collection_key = 'authorizedExternalNetworks';
/**
* Optional. Name of the allocated IP range for the private IP AlloyDB
* instance, for example: "google-managed-services-default". If set, the
* instance IPs will be created from this allocated range and will override
* the IP range used by the parent cluster. The range name must comply with
* [RFC 1035](http://datatracker.ietf.org/doc/html/rfc1035). Specifically, the
* name must be 1-63 characters long and match the regular expression
* [a-z]([-a-z0-9]*[a-z0-9])?.
*
* @var string
*/
public $allocatedIpRangeOverride;
protected $authorizedExternalNetworksType = AuthorizedNetwork::class;
protected $authorizedExternalNetworksDataType = 'array';
/**
* Optional. Enabling an outbound public IP address to support a database
* server sending requests out into the internet.
*
* @var bool
*/
public $enableOutboundPublicIp;
/**
* Optional. Enabling public ip for the instance.
*
* @var bool
*/
public $enablePublicIp;
/**
* Output only. The resource link for the VPC network in which instance
* resources are created and from which they are accessible via Private IP.
* This will be the same value as the parent cluster's network. It is
* specified in the form: //
* `projects/{project_number}/global/networks/{network_id}`.
*
* @var string
*/
public $network;
/**
* Optional. Name of the allocated IP range for the private IP AlloyDB
* instance, for example: "google-managed-services-default". If set, the
* instance IPs will be created from this allocated range and will override
* the IP range used by the parent cluster. The range name must comply with
* [RFC 1035](http://datatracker.ietf.org/doc/html/rfc1035). Specifically, the
* name must be 1-63 characters long and match the regular expression
* [a-z]([-a-z0-9]*[a-z0-9])?.
*
* @param string $allocatedIpRangeOverride
*/
public function setAllocatedIpRangeOverride($allocatedIpRangeOverride)
{
$this->allocatedIpRangeOverride = $allocatedIpRangeOverride;
}
/**
* @return string
*/
public function getAllocatedIpRangeOverride()
{
return $this->allocatedIpRangeOverride;
}
/**
* Optional. A list of external network authorized to access this instance.
*
* @param AuthorizedNetwork[] $authorizedExternalNetworks
*/
public function setAuthorizedExternalNetworks($authorizedExternalNetworks)
{
$this->authorizedExternalNetworks = $authorizedExternalNetworks;
}
/**
* @return AuthorizedNetwork[]
*/
public function getAuthorizedExternalNetworks()
{
return $this->authorizedExternalNetworks;
}
/**
* Optional. Enabling an outbound public IP address to support a database
* server sending requests out into the internet.
*
* @param bool $enableOutboundPublicIp
*/
public function setEnableOutboundPublicIp($enableOutboundPublicIp)
{
$this->enableOutboundPublicIp = $enableOutboundPublicIp;
}
/**
* @return bool
*/
public function getEnableOutboundPublicIp()
{
return $this->enableOutboundPublicIp;
}
/**
* Optional. Enabling public ip for the instance.
*
* @param bool $enablePublicIp
*/
public function setEnablePublicIp($enablePublicIp)
{
$this->enablePublicIp = $enablePublicIp;
}
/**
* @return bool
*/
public function getEnablePublicIp()
{
return $this->enablePublicIp;
}
/**
* Output only. The resource link for the VPC network in which instance
* resources are created and from which they are accessible via Private IP.
* This will be the same value as the parent cluster's network. It is
* specified in the form: //
* `projects/{project_number}/global/networks/{network_id}`.
*
* @param string $network
*/
public function setNetwork($network)
{
$this->network = $network;
}
/**
* @return string
*/
public function getNetwork()
{
return $this->network;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(InstanceNetworkConfig::class, 'Google_Service_CloudAlloyDBAdmin_InstanceNetworkConfig');

View File

@@ -0,0 +1,149 @@
<?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\CloudAlloyDBAdmin;
class InstanceUpgradeDetails extends \Google\Model
{
/**
* The type of the instance is unknown.
*/
public const INSTANCE_TYPE_INSTANCE_TYPE_UNSPECIFIED = 'INSTANCE_TYPE_UNSPECIFIED';
/**
* PRIMARY instances support read and write operations.
*/
public const INSTANCE_TYPE_PRIMARY = 'PRIMARY';
/**
* READ POOL instances support read operations only. Each read pool instance
* consists of one or more homogeneous nodes. * Read pool of size 1 can only
* have zonal availability. * Read pools with node count of 2 or more can have
* regional availability (nodes are present in 2 or more zones in a region).
*/
public const INSTANCE_TYPE_READ_POOL = 'READ_POOL';
/**
* SECONDARY instances support read operations only. SECONDARY instance is a
* cross-region read replica
*/
public const INSTANCE_TYPE_SECONDARY = 'SECONDARY';
/**
* Unspecified status.
*/
public const UPGRADE_STATUS_STATUS_UNSPECIFIED = 'STATUS_UNSPECIFIED';
/**
* Not started.
*/
public const UPGRADE_STATUS_NOT_STARTED = 'NOT_STARTED';
/**
* In progress.
*/
public const UPGRADE_STATUS_IN_PROGRESS = 'IN_PROGRESS';
/**
* Operation succeeded.
*/
public const UPGRADE_STATUS_SUCCESS = 'SUCCESS';
/**
* Operation failed.
*/
public const UPGRADE_STATUS_FAILED = 'FAILED';
/**
* Operation partially succeeded.
*/
public const UPGRADE_STATUS_PARTIAL_SUCCESS = 'PARTIAL_SUCCESS';
/**
* Cancel is in progress.
*/
public const UPGRADE_STATUS_CANCEL_IN_PROGRESS = 'CANCEL_IN_PROGRESS';
/**
* Cancellation complete.
*/
public const UPGRADE_STATUS_CANCELLED = 'CANCELLED';
/**
* Instance type.
*
* @var string
*/
public $instanceType;
/**
* Normalized name of the instance.
*
* @var string
*/
public $name;
/**
* Upgrade status of the instance.
*
* @var string
*/
public $upgradeStatus;
/**
* Instance type.
*
* Accepted values: INSTANCE_TYPE_UNSPECIFIED, PRIMARY, READ_POOL, SECONDARY
*
* @param self::INSTANCE_TYPE_* $instanceType
*/
public function setInstanceType($instanceType)
{
$this->instanceType = $instanceType;
}
/**
* @return self::INSTANCE_TYPE_*
*/
public function getInstanceType()
{
return $this->instanceType;
}
/**
* Normalized name of the instance.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Upgrade status of the instance.
*
* Accepted values: STATUS_UNSPECIFIED, NOT_STARTED, IN_PROGRESS, SUCCESS,
* FAILED, PARTIAL_SUCCESS, CANCEL_IN_PROGRESS, CANCELLED
*
* @param self::UPGRADE_STATUS_* $upgradeStatus
*/
public function setUpgradeStatus($upgradeStatus)
{
$this->upgradeStatus = $upgradeStatus;
}
/**
* @return self::UPGRADE_STATUS_*
*/
public function getUpgradeStatus()
{
return $this->upgradeStatus;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(InstanceUpgradeDetails::class, 'Google_Service_CloudAlloyDBAdmin_InstanceUpgradeDetails');

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\CloudAlloyDBAdmin;
class IntegerRestrictions extends \Google\Model
{
/**
* The maximum value that can be specified, if applicable.
*
* @var string
*/
public $maxValue;
/**
* The minimum value that can be specified, if applicable.
*
* @var string
*/
public $minValue;
/**
* The maximum value that can be specified, if applicable.
*
* @param string $maxValue
*/
public function setMaxValue($maxValue)
{
$this->maxValue = $maxValue;
}
/**
* @return string
*/
public function getMaxValue()
{
return $this->maxValue;
}
/**
* The minimum value that can be specified, if applicable.
*
* @param string $minValue
*/
public function setMinValue($minValue)
{
$this->minValue = $minValue;
}
/**
* @return string
*/
public function getMinValue()
{
return $this->minValue;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(IntegerRestrictions::class, 'Google_Service_CloudAlloyDBAdmin_IntegerRestrictions');

View File

@@ -0,0 +1,89 @@
<?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\CloudAlloyDBAdmin;
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
*
* @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_CloudAlloyDBAdmin_ListBackupsResponse');

View File

@@ -0,0 +1,89 @@
<?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\CloudAlloyDBAdmin;
class ListClustersResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
protected $clustersType = Cluster::class;
protected $clustersDataType = '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 Cluster
*
* @param Cluster[] $clusters
*/
public function setClusters($clusters)
{
$this->clusters = $clusters;
}
/**
* @return Cluster[]
*/
public function getClusters()
{
return $this->clusters;
}
/**
* 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(ListClustersResponse::class, 'Google_Service_CloudAlloyDBAdmin_ListClustersResponse');

View File

@@ -0,0 +1,89 @@
<?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\CloudAlloyDBAdmin;
class ListInstancesResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
protected $instancesType = Instance::class;
protected $instancesDataType = '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 Instance
*
* @param Instance[] $instances
*/
public function setInstances($instances)
{
$this->instances = $instances;
}
/**
* @return Instance[]
*/
public function getInstances()
{
return $this->instances;
}
/**
* 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(ListInstancesResponse::class, 'Google_Service_CloudAlloyDBAdmin_ListInstancesResponse');

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\CloudAlloyDBAdmin;
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_CloudAlloyDBAdmin_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\CloudAlloyDBAdmin;
class ListSupportedDatabaseFlagsResponse extends \Google\Collection
{
protected $collection_key = 'supportedDatabaseFlags';
/**
* A token identifying a page of results the server should return.
*
* @var string
*/
public $nextPageToken;
protected $supportedDatabaseFlagsType = SupportedDatabaseFlag::class;
protected $supportedDatabaseFlagsDataType = '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 SupportedDatabaseFlags.
*
* @param SupportedDatabaseFlag[] $supportedDatabaseFlags
*/
public function setSupportedDatabaseFlags($supportedDatabaseFlags)
{
$this->supportedDatabaseFlags = $supportedDatabaseFlags;
}
/**
* @return SupportedDatabaseFlag[]
*/
public function getSupportedDatabaseFlags()
{
return $this->supportedDatabaseFlags;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListSupportedDatabaseFlagsResponse::class, 'Google_Service_CloudAlloyDBAdmin_ListSupportedDatabaseFlagsResponse');

View File

@@ -0,0 +1,89 @@
<?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\CloudAlloyDBAdmin;
class ListUsersResponse extends \Google\Collection
{
protected $collection_key = 'users';
/**
* 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;
protected $usersType = User::class;
protected $usersDataType = '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;
}
/**
* Locations that could not be reached.
*
* @param string[] $unreachable
*/
public function setUnreachable($unreachable)
{
$this->unreachable = $unreachable;
}
/**
* @return string[]
*/
public function getUnreachable()
{
return $this->unreachable;
}
/**
* The list of User
*
* @param User[] $users
*/
public function setUsers($users)
{
$this->users = $users;
}
/**
* @return User[]
*/
public function getUsers()
{
return $this->users;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListUsersResponse::class, 'Google_Service_CloudAlloyDBAdmin_ListUsersResponse');

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\CloudAlloyDBAdmin;
class MachineConfig extends \Google\Model
{
/**
* The number of CPU's in the VM instance.
*
* @var int
*/
public $cpuCount;
/**
* Machine type of the VM instance. E.g. "n2-highmem-4", "n2-highmem-8",
* "c4a-highmem-4-lssd". cpu_count must match the number of vCPUs in the
* machine type.
*
* @var string
*/
public $machineType;
/**
* The number of CPU's in the VM instance.
*
* @param int $cpuCount
*/
public function setCpuCount($cpuCount)
{
$this->cpuCount = $cpuCount;
}
/**
* @return int
*/
public function getCpuCount()
{
return $this->cpuCount;
}
/**
* Machine type of the VM instance. E.g. "n2-highmem-4", "n2-highmem-8",
* "c4a-highmem-4-lssd". cpu_count must match the number of vCPUs in the
* machine type.
*
* @param string $machineType
*/
public function setMachineType($machineType)
{
$this->machineType = $machineType;
}
/**
* @return string
*/
public function getMachineType()
{
return $this->machineType;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(MachineConfig::class, 'Google_Service_CloudAlloyDBAdmin_MachineConfig');

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\CloudAlloyDBAdmin;
class MaintenanceSchedule extends \Google\Model
{
/**
* Output only. The scheduled start time for the maintenance.
*
* @var string
*/
public $startTime;
/**
* Output only. The scheduled start time for the maintenance.
*
* @param string $startTime
*/
public function setStartTime($startTime)
{
$this->startTime = $startTime;
}
/**
* @return string
*/
public function getStartTime()
{
return $this->startTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(MaintenanceSchedule::class, 'Google_Service_CloudAlloyDBAdmin_MaintenanceSchedule');

View File

@@ -0,0 +1,63 @@
<?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\CloudAlloyDBAdmin;
class MaintenanceUpdatePolicy extends \Google\Collection
{
protected $collection_key = 'maintenanceWindows';
protected $denyMaintenancePeriodsType = DenyMaintenancePeriod::class;
protected $denyMaintenancePeriodsDataType = 'array';
protected $maintenanceWindowsType = MaintenanceWindow::class;
protected $maintenanceWindowsDataType = 'array';
/**
* Periods to deny maintenance. Currently limited to 1.
*
* @param DenyMaintenancePeriod[] $denyMaintenancePeriods
*/
public function setDenyMaintenancePeriods($denyMaintenancePeriods)
{
$this->denyMaintenancePeriods = $denyMaintenancePeriods;
}
/**
* @return DenyMaintenancePeriod[]
*/
public function getDenyMaintenancePeriods()
{
return $this->denyMaintenancePeriods;
}
/**
* Preferred windows to perform maintenance. Currently limited to 1.
*
* @param MaintenanceWindow[] $maintenanceWindows
*/
public function setMaintenanceWindows($maintenanceWindows)
{
$this->maintenanceWindows = $maintenanceWindows;
}
/**
* @return MaintenanceWindow[]
*/
public function getMaintenanceWindows()
{
return $this->maintenanceWindows;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(MaintenanceUpdatePolicy::class, 'Google_Service_CloudAlloyDBAdmin_MaintenanceUpdatePolicy');

View File

@@ -0,0 +1,102 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudAlloyDBAdmin;
class MaintenanceWindow extends \Google\Model
{
/**
* The day of the week is unspecified.
*/
public const DAY_DAY_OF_WEEK_UNSPECIFIED = 'DAY_OF_WEEK_UNSPECIFIED';
/**
* Monday
*/
public const DAY_MONDAY = 'MONDAY';
/**
* Tuesday
*/
public const DAY_TUESDAY = 'TUESDAY';
/**
* Wednesday
*/
public const DAY_WEDNESDAY = 'WEDNESDAY';
/**
* Thursday
*/
public const DAY_THURSDAY = 'THURSDAY';
/**
* Friday
*/
public const DAY_FRIDAY = 'FRIDAY';
/**
* Saturday
*/
public const DAY_SATURDAY = 'SATURDAY';
/**
* Sunday
*/
public const DAY_SUNDAY = 'SUNDAY';
/**
* Preferred day of the week for maintenance, e.g. MONDAY, TUESDAY, etc.
*
* @var string
*/
public $day;
protected $startTimeType = GoogleTypeTimeOfDay::class;
protected $startTimeDataType = '';
/**
* Preferred day of the week for maintenance, e.g. MONDAY, TUESDAY, etc.
*
* Accepted values: DAY_OF_WEEK_UNSPECIFIED, MONDAY, TUESDAY, WEDNESDAY,
* THURSDAY, FRIDAY, SATURDAY, SUNDAY
*
* @param self::DAY_* $day
*/
public function setDay($day)
{
$this->day = $day;
}
/**
* @return self::DAY_*
*/
public function getDay()
{
return $this->day;
}
/**
* Preferred time to start the maintenance operation on the specified day.
* Maintenance will start within 1 hour of this time.
*
* @param GoogleTypeTimeOfDay $startTime
*/
public function setStartTime(GoogleTypeTimeOfDay $startTime)
{
$this->startTime = $startTime;
}
/**
* @return GoogleTypeTimeOfDay
*/
public function getStartTime()
{
return $this->startTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(MaintenanceWindow::class, 'Google_Service_CloudAlloyDBAdmin_MaintenanceWindow');

View File

@@ -0,0 +1,106 @@
<?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\CloudAlloyDBAdmin;
class MigrationSource extends \Google\Model
{
/**
* Migration source is unknown.
*/
public const SOURCE_TYPE_MIGRATION_SOURCE_TYPE_UNSPECIFIED = 'MIGRATION_SOURCE_TYPE_UNSPECIFIED';
/**
* DMS source means the cluster was created via DMS migration job.
*/
public const SOURCE_TYPE_DMS = 'DMS';
/**
* Output only. The host and port of the on-premises instance in host:port
* format
*
* @var string
*/
public $hostPort;
/**
* Output only. Place holder for the external source identifier(e.g DMS job
* name) that created the cluster.
*
* @var string
*/
public $referenceId;
/**
* Output only. Type of migration source.
*
* @var string
*/
public $sourceType;
/**
* Output only. The host and port of the on-premises instance in host:port
* format
*
* @param string $hostPort
*/
public function setHostPort($hostPort)
{
$this->hostPort = $hostPort;
}
/**
* @return string
*/
public function getHostPort()
{
return $this->hostPort;
}
/**
* Output only. Place holder for the external source identifier(e.g DMS job
* name) that created the cluster.
*
* @param string $referenceId
*/
public function setReferenceId($referenceId)
{
$this->referenceId = $referenceId;
}
/**
* @return string
*/
public function getReferenceId()
{
return $this->referenceId;
}
/**
* Output only. Type of migration source.
*
* Accepted values: MIGRATION_SOURCE_TYPE_UNSPECIFIED, DMS
*
* @param self::SOURCE_TYPE_* $sourceType
*/
public function setSourceType($sourceType)
{
$this->sourceType = $sourceType;
}
/**
* @return self::SOURCE_TYPE_*
*/
public function getSourceType()
{
return $this->sourceType;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(MigrationSource::class, 'Google_Service_CloudAlloyDBAdmin_MigrationSource');

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\CloudAlloyDBAdmin;
class NetworkConfig extends \Google\Model
{
/**
* Optional. Name of the allocated IP range for the private IP AlloyDB
* cluster, for example: "google-managed-services-default". If set, the
* instance IPs for this cluster will be created in the allocated range. The
* range name must comply with RFC 1035. Specifically, the name must be 1-63
* characters long and match the regular expression
* `[a-z]([-a-z0-9]*[a-z0-9])?`. Field name is intended to be consistent with
* Cloud SQL.
*
* @var string
*/
public $allocatedIpRange;
/**
* Optional. The resource link for the VPC network in which cluster resources
* are created and from which they are accessible via Private IP. The network
* must belong to the same project as the cluster. It is specified in the
* form: `projects/{project_number}/global/networks/{network_id}`. This is
* required to create a cluster.
*
* @var string
*/
public $network;
/**
* Optional. Name of the allocated IP range for the private IP AlloyDB
* cluster, for example: "google-managed-services-default". If set, the
* instance IPs for this cluster will be created in the allocated range. The
* range name must comply with RFC 1035. Specifically, the name must be 1-63
* characters long and match the regular expression
* `[a-z]([-a-z0-9]*[a-z0-9])?`. Field name is intended to be consistent with
* Cloud SQL.
*
* @param string $allocatedIpRange
*/
public function setAllocatedIpRange($allocatedIpRange)
{
$this->allocatedIpRange = $allocatedIpRange;
}
/**
* @return string
*/
public function getAllocatedIpRange()
{
return $this->allocatedIpRange;
}
/**
* Optional. The resource link for the VPC network in which cluster resources
* are created and from which they are accessible via Private IP. The network
* must belong to the same project as the cluster. It is specified in the
* form: `projects/{project_number}/global/networks/{network_id}`. This is
* required to create a cluster.
*
* @param string $network
*/
public function setNetwork($network)
{
$this->network = $network;
}
/**
* @return string
*/
public function getNetwork()
{
return $this->network;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(NetworkConfig::class, 'Google_Service_CloudAlloyDBAdmin_NetworkConfig');

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\CloudAlloyDBAdmin;
class Node extends \Google\Model
{
/**
* Output only. The identifier of the VM e.g. "test-read-0601-407e52be-ms3l".
*
* @var string
*/
public $id;
/**
* Output only. The private IP address of the VM e.g. "10.57.0.34".
*
* @var string
*/
public $ip;
/**
* Output only. Determined by state of the compute VM and postgres-service
* health. Compute VM state can have values listed in
* https://cloud.google.com/compute/docs/instances/instance-life-cycle and
* postgres-service health can have values: HEALTHY and UNHEALTHY.
*
* @var string
*/
public $state;
/**
* Output only. The Compute Engine zone of the VM e.g. "us-central1-b".
*
* @var string
*/
public $zoneId;
/**
* Output only. The identifier of the VM e.g. "test-read-0601-407e52be-ms3l".
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* Output only. The private IP address of the VM e.g. "10.57.0.34".
*
* @param string $ip
*/
public function setIp($ip)
{
$this->ip = $ip;
}
/**
* @return string
*/
public function getIp()
{
return $this->ip;
}
/**
* Output only. Determined by state of the compute VM and postgres-service
* health. Compute VM state can have values listed in
* https://cloud.google.com/compute/docs/instances/instance-life-cycle and
* postgres-service health can have values: HEALTHY and UNHEALTHY.
*
* @param string $state
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return string
*/
public function getState()
{
return $this->state;
}
/**
* Output only. The Compute Engine zone of the VM e.g. "us-central1-b".
*
* @param string $zoneId
*/
public function setZoneId($zoneId)
{
$this->zoneId = $zoneId;
}
/**
* @return string
*/
public function getZoneId()
{
return $this->zoneId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Node::class, 'Google_Service_CloudAlloyDBAdmin_Node');

View File

@@ -0,0 +1,224 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudAlloyDBAdmin;
class ObservabilityInstanceConfig extends \Google\Model
{
/**
* Observability feature status for an instance. This flag is turned "off" by
* default.
*
* @var bool
*/
public $enabled;
/**
* Query string length. The default value is 10k.
*
* @var int
*/
public $maxQueryStringLength;
/**
* Preserve comments in query string for an instance. This flag is turned
* "off" by default.
*
* @var bool
*/
public $preserveComments;
/**
* Number of query execution plans captured by Insights per minute for all
* queries combined. The default value is 200. Any integer between 0 to 200 is
* considered valid.
*
* @var int
*/
public $queryPlansPerMinute;
/**
* Record application tags for an instance. This flag is turned "off" by
* default.
*
* @var bool
*/
public $recordApplicationTags;
/**
* Track actively running queries on the instance. If not set, this flag is
* "off" by default.
*
* @var bool
*/
public $trackActiveQueries;
/**
* Output only. Track wait event types during query execution for an instance.
* This flag is turned "on" by default but tracking is enabled only after
* observability enabled flag is also turned on. This is read-only flag and
* only modifiable by internal API.
*
* @var bool
*/
public $trackWaitEventTypes;
/**
* Track wait events during query execution for an instance. This flag is
* turned "on" by default but tracking is enabled only after observability
* enabled flag is also turned on.
*
* @var bool
*/
public $trackWaitEvents;
/**
* Observability feature status for an instance. This flag is turned "off" by
* default.
*
* @param bool $enabled
*/
public function setEnabled($enabled)
{
$this->enabled = $enabled;
}
/**
* @return bool
*/
public function getEnabled()
{
return $this->enabled;
}
/**
* Query string length. The default value is 10k.
*
* @param int $maxQueryStringLength
*/
public function setMaxQueryStringLength($maxQueryStringLength)
{
$this->maxQueryStringLength = $maxQueryStringLength;
}
/**
* @return int
*/
public function getMaxQueryStringLength()
{
return $this->maxQueryStringLength;
}
/**
* Preserve comments in query string for an instance. This flag is turned
* "off" by default.
*
* @param bool $preserveComments
*/
public function setPreserveComments($preserveComments)
{
$this->preserveComments = $preserveComments;
}
/**
* @return bool
*/
public function getPreserveComments()
{
return $this->preserveComments;
}
/**
* Number of query execution plans captured by Insights per minute for all
* queries combined. The default value is 200. Any integer between 0 to 200 is
* considered valid.
*
* @param int $queryPlansPerMinute
*/
public function setQueryPlansPerMinute($queryPlansPerMinute)
{
$this->queryPlansPerMinute = $queryPlansPerMinute;
}
/**
* @return int
*/
public function getQueryPlansPerMinute()
{
return $this->queryPlansPerMinute;
}
/**
* Record application tags for an instance. This flag is turned "off" by
* default.
*
* @param bool $recordApplicationTags
*/
public function setRecordApplicationTags($recordApplicationTags)
{
$this->recordApplicationTags = $recordApplicationTags;
}
/**
* @return bool
*/
public function getRecordApplicationTags()
{
return $this->recordApplicationTags;
}
/**
* Track actively running queries on the instance. If not set, this flag is
* "off" by default.
*
* @param bool $trackActiveQueries
*/
public function setTrackActiveQueries($trackActiveQueries)
{
$this->trackActiveQueries = $trackActiveQueries;
}
/**
* @return bool
*/
public function getTrackActiveQueries()
{
return $this->trackActiveQueries;
}
/**
* Output only. Track wait event types during query execution for an instance.
* This flag is turned "on" by default but tracking is enabled only after
* observability enabled flag is also turned on. This is read-only flag and
* only modifiable by internal API.
*
* @param bool $trackWaitEventTypes
*/
public function setTrackWaitEventTypes($trackWaitEventTypes)
{
$this->trackWaitEventTypes = $trackWaitEventTypes;
}
/**
* @return bool
*/
public function getTrackWaitEventTypes()
{
return $this->trackWaitEventTypes;
}
/**
* Track wait events during query execution for an instance. This flag is
* turned "on" by default but tracking is enabled only after observability
* enabled flag is also turned on.
*
* @param bool $trackWaitEvents
*/
public function setTrackWaitEvents($trackWaitEvents)
{
$this->trackWaitEvents = $trackWaitEvents;
}
/**
* @return bool
*/
public function getTrackWaitEvents()
{
return $this->trackWaitEvents;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ObservabilityInstanceConfig::class, 'Google_Service_CloudAlloyDBAdmin_ObservabilityInstanceConfig');

View File

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

View File

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

View File

@@ -0,0 +1,96 @@
<?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\CloudAlloyDBAdmin;
class Policy extends \Google\Model
{
/**
* @var string
*/
public $coolDownPeriodSec;
protected $cpuUtilizationType = CpuUtilization::class;
protected $cpuUtilizationDataType = '';
/**
* @var bool
*/
public $enabled;
/**
* @var string
*/
public $maxNodeCount;
/**
* @param string
*/
public function setCoolDownPeriodSec($coolDownPeriodSec)
{
$this->coolDownPeriodSec = $coolDownPeriodSec;
}
/**
* @return string
*/
public function getCoolDownPeriodSec()
{
return $this->coolDownPeriodSec;
}
/**
* @param CpuUtilization
*/
public function setCpuUtilization(CpuUtilization $cpuUtilization)
{
$this->cpuUtilization = $cpuUtilization;
}
/**
* @return CpuUtilization
*/
public function getCpuUtilization()
{
return $this->cpuUtilization;
}
/**
* @param bool
*/
public function setEnabled($enabled)
{
$this->enabled = $enabled;
}
/**
* @return bool
*/
public function getEnabled()
{
return $this->enabled;
}
/**
* @param string
*/
public function setMaxNodeCount($maxNodeCount)
{
$this->maxNodeCount = $maxNodeCount;
}
/**
* @return string
*/
public function getMaxNodeCount()
{
return $this->maxNodeCount;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Policy::class, 'Google_Service_CloudAlloyDBAdmin_Policy');

View File

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

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\CloudAlloyDBAdmin;
class PromoteClusterRequest extends \Google\Model
{
/**
* Optional. The current etag of the Cluster. If an etag is provided and does
* not match the current etag of the Cluster, deletion will be blocked and an
* ABORTED error will be returned.
*
* @var string
*/
public $etag;
/**
* Optional. An optional request ID to identify requests. Specify a unique
* request ID so that if you must retry your request, the server ignores the
* request if it has already been completed. The server guarantees 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. If set, performs request validation, for example, permission
* checks and any other type of validation, but does not actually execute the
* create request.
*
* @var bool
*/
public $validateOnly;
/**
* Optional. The current etag of the Cluster. If an etag is provided and does
* not match the current etag of the Cluster, deletion will be blocked and an
* ABORTED error will be returned.
*
* @param string $etag
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* Optional. An optional request ID to identify requests. Specify a unique
* request ID so that if you must retry your request, the server ignores the
* request if it has already been completed. The server guarantees 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;
}
/**
* Optional. If set, performs request validation, for example, permission
* checks and any other type of validation, but does not actually execute the
* create request.
*
* @param bool $validateOnly
*/
public function setValidateOnly($validateOnly)
{
$this->validateOnly = $validateOnly;
}
/**
* @return bool
*/
public function getValidateOnly()
{
return $this->validateOnly;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PromoteClusterRequest::class, 'Google_Service_CloudAlloyDBAdmin_PromoteClusterRequest');

View File

@@ -0,0 +1,176 @@
<?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\CloudAlloyDBAdmin;
class PscAutoConnectionConfig extends \Google\Model
{
/**
* The consumer network for the PSC service automation, example:
* "projects/vpc-host-project/global/networks/default". The consumer network
* might be hosted a different project than the consumer project.
*
* @var string
*/
public $consumerNetwork;
/**
* Output only. The status of the service connection policy. Possible values:
* "STATE_UNSPECIFIED" - Default state, when Connection Map is created
* initially. "VALID" - Set when policy and map configuration is valid, and
* their matching can lead to allowing creation of PSC Connections subject to
* other constraints like connections limit. "CONNECTION_POLICY_MISSING" - No
* Service Connection Policy found for this network and Service Class
* "POLICY_LIMIT_REACHED" - Service Connection Policy limit reached for this
* network and Service Class "CONSUMER_INSTANCE_PROJECT_NOT_ALLOWLISTED" - The
* consumer instance project is not in
* AllowedGoogleProducersResourceHierarchyLevels of the matching
* ServiceConnectionPolicy.
*
* @var string
*/
public $consumerNetworkStatus;
/**
* The consumer project to which the PSC service automation endpoint will be
* created.
*
* @var string
*/
public $consumerProject;
/**
* Output only. The IP address of the PSC service automation endpoint.
*
* @var string
*/
public $ipAddress;
/**
* Output only. The status of the PSC service automation connection. Possible
* values: "STATE_UNSPECIFIED" - An invalid state as the default case.
* "ACTIVE" - The connection has been created successfully. "FAILED" - The
* connection is not functional since some resources on the connection fail to
* be created. "CREATING" - The connection is being created. "DELETING" - The
* connection is being deleted. "CREATE_REPAIRING" - The connection is being
* repaired to complete creation. "DELETE_REPAIRING" - The connection is being
* repaired to complete deletion.
*
* @var string
*/
public $status;
/**
* The consumer network for the PSC service automation, example:
* "projects/vpc-host-project/global/networks/default". The consumer network
* might be hosted a different project than the consumer project.
*
* @param string $consumerNetwork
*/
public function setConsumerNetwork($consumerNetwork)
{
$this->consumerNetwork = $consumerNetwork;
}
/**
* @return string
*/
public function getConsumerNetwork()
{
return $this->consumerNetwork;
}
/**
* Output only. The status of the service connection policy. Possible values:
* "STATE_UNSPECIFIED" - Default state, when Connection Map is created
* initially. "VALID" - Set when policy and map configuration is valid, and
* their matching can lead to allowing creation of PSC Connections subject to
* other constraints like connections limit. "CONNECTION_POLICY_MISSING" - No
* Service Connection Policy found for this network and Service Class
* "POLICY_LIMIT_REACHED" - Service Connection Policy limit reached for this
* network and Service Class "CONSUMER_INSTANCE_PROJECT_NOT_ALLOWLISTED" - The
* consumer instance project is not in
* AllowedGoogleProducersResourceHierarchyLevels of the matching
* ServiceConnectionPolicy.
*
* @param string $consumerNetworkStatus
*/
public function setConsumerNetworkStatus($consumerNetworkStatus)
{
$this->consumerNetworkStatus = $consumerNetworkStatus;
}
/**
* @return string
*/
public function getConsumerNetworkStatus()
{
return $this->consumerNetworkStatus;
}
/**
* The consumer project to which the PSC service automation endpoint will be
* created.
*
* @param string $consumerProject
*/
public function setConsumerProject($consumerProject)
{
$this->consumerProject = $consumerProject;
}
/**
* @return string
*/
public function getConsumerProject()
{
return $this->consumerProject;
}
/**
* Output only. The IP address of the PSC service automation endpoint.
*
* @param string $ipAddress
*/
public function setIpAddress($ipAddress)
{
$this->ipAddress = $ipAddress;
}
/**
* @return string
*/
public function getIpAddress()
{
return $this->ipAddress;
}
/**
* Output only. The status of the PSC service automation connection. Possible
* values: "STATE_UNSPECIFIED" - An invalid state as the default case.
* "ACTIVE" - The connection has been created successfully. "FAILED" - The
* connection is not functional since some resources on the connection fail to
* be created. "CREATING" - The connection is being created. "DELETING" - The
* connection is being deleted. "CREATE_REPAIRING" - The connection is being
* repaired to complete creation. "DELETE_REPAIRING" - The connection is being
* repaired to complete deletion.
*
* @param string $status
*/
public function setStatus($status)
{
$this->status = $status;
}
/**
* @return string
*/
public function getStatus()
{
return $this->status;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PscAutoConnectionConfig::class, 'Google_Service_CloudAlloyDBAdmin_PscAutoConnectionConfig');

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\CloudAlloyDBAdmin;
class PscConfig extends \Google\Model
{
/**
* Optional. Create an instance that allows connections from Private Service
* Connect endpoints to the instance.
*
* @var bool
*/
public $pscEnabled;
/**
* Output only. The project number that needs to be allowlisted on the network
* attachment to enable outbound connectivity.
*
* @var string
*/
public $serviceOwnedProjectNumber;
/**
* Optional. Create an instance that allows connections from Private Service
* Connect endpoints to the instance.
*
* @param bool $pscEnabled
*/
public function setPscEnabled($pscEnabled)
{
$this->pscEnabled = $pscEnabled;
}
/**
* @return bool
*/
public function getPscEnabled()
{
return $this->pscEnabled;
}
/**
* Output only. The project number that needs to be allowlisted on the network
* attachment to enable outbound connectivity.
*
* @param string $serviceOwnedProjectNumber
*/
public function setServiceOwnedProjectNumber($serviceOwnedProjectNumber)
{
$this->serviceOwnedProjectNumber = $serviceOwnedProjectNumber;
}
/**
* @return string
*/
public function getServiceOwnedProjectNumber()
{
return $this->serviceOwnedProjectNumber;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PscConfig::class, 'Google_Service_CloudAlloyDBAdmin_PscConfig');

View File

@@ -0,0 +1,140 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudAlloyDBAdmin;
class PscInstanceConfig extends \Google\Collection
{
protected $collection_key = 'pscInterfaceConfigs';
/**
* Optional. List of consumer projects that are allowed to create PSC
* endpoints to service-attachments to this instance.
*
* @var string[]
*/
public $allowedConsumerProjects;
protected $pscAutoConnectionsType = PscAutoConnectionConfig::class;
protected $pscAutoConnectionsDataType = 'array';
/**
* Output only. The DNS name of the instance for PSC connectivity. Name
* convention: ...alloydb-psc.goog
*
* @var string
*/
public $pscDnsName;
protected $pscInterfaceConfigsType = PscInterfaceConfig::class;
protected $pscInterfaceConfigsDataType = 'array';
/**
* Output only. The service attachment created when Private Service Connect
* (PSC) is enabled for the instance. The name of the resource will be in the
* format of `projects//regions//serviceAttachments/`
*
* @var string
*/
public $serviceAttachmentLink;
/**
* Optional. List of consumer projects that are allowed to create PSC
* endpoints to service-attachments to this instance.
*
* @param string[] $allowedConsumerProjects
*/
public function setAllowedConsumerProjects($allowedConsumerProjects)
{
$this->allowedConsumerProjects = $allowedConsumerProjects;
}
/**
* @return string[]
*/
public function getAllowedConsumerProjects()
{
return $this->allowedConsumerProjects;
}
/**
* Optional. Configurations for setting up PSC service automation.
*
* @param PscAutoConnectionConfig[] $pscAutoConnections
*/
public function setPscAutoConnections($pscAutoConnections)
{
$this->pscAutoConnections = $pscAutoConnections;
}
/**
* @return PscAutoConnectionConfig[]
*/
public function getPscAutoConnections()
{
return $this->pscAutoConnections;
}
/**
* Output only. The DNS name of the instance for PSC connectivity. Name
* convention: ...alloydb-psc.goog
*
* @param string $pscDnsName
*/
public function setPscDnsName($pscDnsName)
{
$this->pscDnsName = $pscDnsName;
}
/**
* @return string
*/
public function getPscDnsName()
{
return $this->pscDnsName;
}
/**
* Optional. Configurations for setting up PSC interfaces attached to the
* instance which are used for outbound connectivity. Only primary instances
* can have PSC interface attached. Currently we only support 0 or 1 PSC
* interface.
*
* @param PscInterfaceConfig[] $pscInterfaceConfigs
*/
public function setPscInterfaceConfigs($pscInterfaceConfigs)
{
$this->pscInterfaceConfigs = $pscInterfaceConfigs;
}
/**
* @return PscInterfaceConfig[]
*/
public function getPscInterfaceConfigs()
{
return $this->pscInterfaceConfigs;
}
/**
* Output only. The service attachment created when Private Service Connect
* (PSC) is enabled for the instance. The name of the resource will be in the
* format of `projects//regions//serviceAttachments/`
*
* @param string $serviceAttachmentLink
*/
public function setServiceAttachmentLink($serviceAttachmentLink)
{
$this->serviceAttachmentLink = $serviceAttachmentLink;
}
/**
* @return string
*/
public function getServiceAttachmentLink()
{
return $this->serviceAttachmentLink;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PscInstanceConfig::class, 'Google_Service_CloudAlloyDBAdmin_PscInstanceConfig');

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\CloudAlloyDBAdmin;
class PscInterfaceConfig extends \Google\Model
{
/**
* The network attachment resource created in the consumer network to which
* the PSC interface will be linked. This is of the format: "projects/${CONSUM
* ER_PROJECT}/regions/${REGION}/networkAttachments/${NETWORK_ATTACHMENT_NAME}
* ". The network attachment must be in the same region as the instance.
*
* @var string
*/
public $networkAttachmentResource;
/**
* The network attachment resource created in the consumer network to which
* the PSC interface will be linked. This is of the format: "projects/${CONSUM
* ER_PROJECT}/regions/${REGION}/networkAttachments/${NETWORK_ATTACHMENT_NAME}
* ". The network attachment must be in the same region as the instance.
*
* @param string $networkAttachmentResource
*/
public function setNetworkAttachmentResource($networkAttachmentResource)
{
$this->networkAttachmentResource = $networkAttachmentResource;
}
/**
* @return string
*/
public function getNetworkAttachmentResource()
{
return $this->networkAttachmentResource;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PscInterfaceConfig::class, 'Google_Service_CloudAlloyDBAdmin_PscInterfaceConfig');

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\CloudAlloyDBAdmin;
class QuantityBasedExpiry extends \Google\Model
{
/**
* Output only. The backup's position among its backups with the same source
* cluster and type, by descending chronological order create time(i.e. newest
* first).
*
* @var int
*/
public $retentionCount;
/**
* Output only. The length of the quantity-based queue, specified by the
* backup's retention policy.
*
* @var int
*/
public $totalRetentionCount;
/**
* Output only. The backup's position among its backups with the same source
* cluster and type, by descending chronological order create time(i.e. newest
* first).
*
* @param int $retentionCount
*/
public function setRetentionCount($retentionCount)
{
$this->retentionCount = $retentionCount;
}
/**
* @return int
*/
public function getRetentionCount()
{
return $this->retentionCount;
}
/**
* Output only. The length of the quantity-based queue, specified by the
* backup's retention policy.
*
* @param int $totalRetentionCount
*/
public function setTotalRetentionCount($totalRetentionCount)
{
$this->totalRetentionCount = $totalRetentionCount;
}
/**
* @return int
*/
public function getTotalRetentionCount()
{
return $this->totalRetentionCount;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(QuantityBasedExpiry::class, 'Google_Service_CloudAlloyDBAdmin_QuantityBasedExpiry');

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\CloudAlloyDBAdmin;
class QuantityBasedRetention extends \Google\Model
{
/**
* The number of backups to retain.
*
* @var int
*/
public $count;
/**
* The number of backups to retain.
*
* @param int $count
*/
public function setCount($count)
{
$this->count = $count;
}
/**
* @return int
*/
public function getCount()
{
return $this->count;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(QuantityBasedRetention::class, 'Google_Service_CloudAlloyDBAdmin_QuantityBasedRetention');

View File

@@ -0,0 +1,124 @@
<?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\CloudAlloyDBAdmin;
class QueryInsightsInstanceConfig extends \Google\Model
{
/**
* Number of query execution plans captured by Insights per minute for all
* queries combined. The default value is 5. Any integer between 0 and 20 is
* considered valid.
*
* @var string
*/
public $queryPlansPerMinute;
/**
* Query string length. The default value is 1024. Any integer between 256 and
* 4500 is considered valid.
*
* @var string
*/
public $queryStringLength;
/**
* Record application tags for an instance. This flag is turned "on" by
* default.
*
* @var bool
*/
public $recordApplicationTags;
/**
* Record client address for an instance. Client address is PII information.
* This flag is turned "on" by default.
*
* @var bool
*/
public $recordClientAddress;
/**
* Number of query execution plans captured by Insights per minute for all
* queries combined. The default value is 5. Any integer between 0 and 20 is
* considered valid.
*
* @param string $queryPlansPerMinute
*/
public function setQueryPlansPerMinute($queryPlansPerMinute)
{
$this->queryPlansPerMinute = $queryPlansPerMinute;
}
/**
* @return string
*/
public function getQueryPlansPerMinute()
{
return $this->queryPlansPerMinute;
}
/**
* Query string length. The default value is 1024. Any integer between 256 and
* 4500 is considered valid.
*
* @param string $queryStringLength
*/
public function setQueryStringLength($queryStringLength)
{
$this->queryStringLength = $queryStringLength;
}
/**
* @return string
*/
public function getQueryStringLength()
{
return $this->queryStringLength;
}
/**
* Record application tags for an instance. This flag is turned "on" by
* default.
*
* @param bool $recordApplicationTags
*/
public function setRecordApplicationTags($recordApplicationTags)
{
$this->recordApplicationTags = $recordApplicationTags;
}
/**
* @return bool
*/
public function getRecordApplicationTags()
{
return $this->recordApplicationTags;
}
/**
* Record client address for an instance. Client address is PII information.
* This flag is turned "on" by default.
*
* @param bool $recordClientAddress
*/
public function setRecordClientAddress($recordClientAddress)
{
$this->recordClientAddress = $recordClientAddress;
}
/**
* @return bool
*/
public function getRecordClientAddress()
{
return $this->recordClientAddress;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(QueryInsightsInstanceConfig::class, 'Google_Service_CloudAlloyDBAdmin_QueryInsightsInstanceConfig');

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\CloudAlloyDBAdmin;
class ReadPoolConfig extends \Google\Model
{
/**
* Read capacity, i.e. number of nodes in a read pool instance.
*
* @var int
*/
public $nodeCount;
/**
* Read capacity, i.e. number of nodes in a read pool instance.
*
* @param int $nodeCount
*/
public function setNodeCount($nodeCount)
{
$this->nodeCount = $nodeCount;
}
/**
* @return int
*/
public function getNodeCount()
{
return $this->nodeCount;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ReadPoolConfig::class, 'Google_Service_CloudAlloyDBAdmin_ReadPoolConfig');

View File

@@ -0,0 +1,44 @@
<?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\CloudAlloyDBAdmin;
class ReadPoolInstancesUpgradeStageStatus extends \Google\Model
{
protected $upgradeStatsType = Stats::class;
protected $upgradeStatsDataType = '';
/**
* Read pool instances upgrade statistics.
*
* @param Stats $upgradeStats
*/
public function setUpgradeStats(Stats $upgradeStats)
{
$this->upgradeStats = $upgradeStats;
}
/**
* @return Stats
*/
public function getUpgradeStats()
{
return $this->upgradeStats;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ReadPoolInstancesUpgradeStageStatus::class, 'Google_Service_CloudAlloyDBAdmin_ReadPoolInstancesUpgradeStageStatus');

View File

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

View File

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

View File

@@ -0,0 +1,182 @@
<?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\CloudAlloyDBAdmin\Resource;
use Google\Service\CloudAlloyDBAdmin\Backup;
use Google\Service\CloudAlloyDBAdmin\ListBackupsResponse;
use Google\Service\CloudAlloyDBAdmin\Operation;
/**
* The "backups" collection of methods.
* Typical usage is:
* <code>
* $alloydbService = new Google\Service\CloudAlloyDBAdmin(...);
* $backups = $alloydbService->projects_locations_backups;
* </code>
*/
class ProjectsLocationsBackups extends \Google\Service\Resource
{
/**
* Creates a new Backup in a given project and location. (backups.create)
*
* @param string $parent Required. Value for parent.
* @param Backup $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string backupId Required. ID of the requesting object.
* @opt_param string requestId Optional. An optional request ID to identify
* requests. Specify a unique request ID so that if you must retry your request,
* the server ignores the request if it has already been completed. The server
* guarantees 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 the original operation with the same request ID was received, and if
* so, ignores 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).
* @opt_param bool validateOnly Optional. If set, the backend validates the
* request, but doesn't actually execute it.
* @return Operation
* @throws \Google\Service\Exception
*/
public function create($parent, Backup $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Operation::class);
}
/**
* Deletes a single Backup. (backups.delete)
*
* @param string $name Required. Name of the resource. For the required format,
* see the comment on the Backup.name field.
* @param array $optParams Optional parameters.
*
* @opt_param string etag Optional. The current etag of the Backup. If an etag
* is provided and does not match the current etag of the Backup, deletion will
* be blocked and an ABORTED error will be returned.
* @opt_param string requestId Optional. An optional request ID to identify
* requests. Specify a unique request ID so that if you must retry your request,
* the server ignores the request if it has already been completed. The server
* guarantees 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 the original operation with the same request ID was received, and if
* so, ignores 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).
* @opt_param bool validateOnly Optional. If set, the backend validates the
* request, but doesn't actually execute it.
* @return Operation
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], Operation::class);
}
/**
* Gets details of a single Backup. (backups.get)
*
* @param string $name Required. Name of the resource
* @param array $optParams Optional parameters.
*
* @opt_param string view Optional. The view of the backup to return.
* @return Backup
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Backup::class);
}
/**
* Lists Backups in a given project and location.
* (backups.listProjectsLocationsBackups)
*
* @param string $parent Required. Parent value for ListBackupsRequest
* @param array $optParams Optional parameters.
*
* @opt_param string filter Filtering results
* @opt_param string orderBy Hint for how to order the results
* @opt_param int pageSize Requested page size. Server may return fewer items
* than requested. If unspecified, server will pick an appropriate default.
* @opt_param string pageToken A token identifying a page of results the server
* should return.
* @opt_param string view Optional. The view of the backup to return.
* @return ListBackupsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsBackups($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListBackupsResponse::class);
}
/**
* Updates the parameters of a single Backup. (backups.patch)
*
* @param string $name Output only. The name of the backup resource with the
* format: * projects/{project}/locations/{region}/backups/{backup_id} where the
* cluster and backup ID segments should satisfy the regex expression
* `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`, e.g. 1-63 characters of lowercase letters,
* numbers, and dashes, starting with a letter, and ending with a letter or
* number. For more details see https://google.aip.dev/122. The prefix of the
* backup resource name is the name of the parent resource: *
* projects/{project}/locations/{region}
* @param Backup $postBody
* @param array $optParams Optional parameters.
*
* @opt_param bool allowMissing Optional. If set to true, update succeeds even
* if instance is not found. In that case, a new backup is created and
* `update_mask` is ignored.
* @opt_param string requestId Optional. An optional request ID to identify
* requests. Specify a unique request ID so that if you must retry your request,
* the server ignores the request if it has already been completed. The server
* guarantees 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 the original operation with the same request ID was received, and if
* so, ignores 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).
* @opt_param string updateMask Optional. Field mask is used to specify the
* fields to be overwritten in the Backup resource by the update. The fields
* specified in the update_mask are relative to the resource, not the full
* request. A field will be overwritten if it is in the mask. If the user does
* not provide a mask then all fields will be overwritten.
* @opt_param bool validateOnly Optional. If set, the backend validates the
* request, but doesn't actually execute it.
* @return Operation
* @throws \Google\Service\Exception
*/
public function patch($name, Backup $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Operation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsBackups::class, 'Google_Service_CloudAlloyDBAdmin_Resource_ProjectsLocationsBackups');

View File

@@ -0,0 +1,349 @@
<?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\CloudAlloyDBAdmin\Resource;
use Google\Service\CloudAlloyDBAdmin\Cluster;
use Google\Service\CloudAlloyDBAdmin\ExportClusterRequest;
use Google\Service\CloudAlloyDBAdmin\ImportClusterRequest;
use Google\Service\CloudAlloyDBAdmin\ListClustersResponse;
use Google\Service\CloudAlloyDBAdmin\Operation;
use Google\Service\CloudAlloyDBAdmin\PromoteClusterRequest;
use Google\Service\CloudAlloyDBAdmin\RestoreClusterRequest;
use Google\Service\CloudAlloyDBAdmin\RestoreFromCloudSQLRequest;
use Google\Service\CloudAlloyDBAdmin\SwitchoverClusterRequest;
use Google\Service\CloudAlloyDBAdmin\UpgradeClusterRequest;
/**
* The "clusters" collection of methods.
* Typical usage is:
* <code>
* $alloydbService = new Google\Service\CloudAlloyDBAdmin(...);
* $clusters = $alloydbService->projects_locations_clusters;
* </code>
*/
class ProjectsLocationsClusters extends \Google\Service\Resource
{
/**
* Creates a new Cluster in a given project and location. (clusters.create)
*
* @param string $parent Required. The location of the new cluster. For the
* required format, see the comment on the Cluster.name field.
* @param Cluster $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string clusterId Required. ID of the requesting object.
* @opt_param string requestId Optional. An optional request ID to identify
* requests. Specify a unique request ID so that if you must retry your request,
* the server ignores the request if it has already been completed. The server
* guarantees 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 the original operation with the same request ID was received, and if
* so, ignores 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).
* @opt_param bool validateOnly Optional. If set, performs request validation,
* for example, permission checks and any other type of validation, but does not
* actually execute the create request.
* @return Operation
* @throws \Google\Service\Exception
*/
public function create($parent, Cluster $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Operation::class);
}
/**
* Creates a cluster of type SECONDARY in the given location using the primary
* cluster as the source. (clusters.createsecondary)
*
* @param string $parent Required. The location of the new cluster. For the
* required format, see the comment on the Cluster.name field.
* @param Cluster $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string clusterId Required. ID of the requesting object (the
* secondary cluster).
* @opt_param string requestId Optional. An optional request ID to identify
* requests. Specify a unique request ID so that if you must retry your request,
* the server ignores the request if it has already been completed. The server
* guarantees 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 the original operation with the same request ID was received, and if
* so, ignores 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).
* @opt_param bool validateOnly Optional. If set, performs request validation,
* for example, permission checks and any other type of validation, but does not
* actually execute the create request.
* @return Operation
* @throws \Google\Service\Exception
*/
public function createsecondary($parent, Cluster $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('createsecondary', [$params], Operation::class);
}
/**
* Deletes a single Cluster. (clusters.delete)
*
* @param string $name Required. The name of the resource. For the required
* format, see the comment on the Cluster.name field.
* @param array $optParams Optional parameters.
*
* @opt_param string etag Optional. The current etag of the Cluster. If an etag
* is provided and does not match the current etag of the Cluster, deletion will
* be blocked and an ABORTED error will be returned.
* @opt_param bool force Optional. Whether to cascade delete child instances for
* given cluster.
* @opt_param string requestId Optional. An optional request ID to identify
* requests. Specify a unique request ID so that if you must retry your request,
* the server ignores the request if it has already been completed. The server
* guarantees 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 the original operation with the same request ID was received, and if
* so, ignores 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).
* @opt_param bool validateOnly Optional. If set, performs request validation,
* for example, permission checks and any other type of validation, but does not
* actually execute the create request.
* @return Operation
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], Operation::class);
}
/**
* Exports data from the cluster. Imperative only. (clusters.export)
*
* @param string $name Required. The resource name of the cluster.
* @param ExportClusterRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function export($name, ExportClusterRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('export', [$params], Operation::class);
}
/**
* Gets details of a single Cluster. (clusters.get)
*
* @param string $name Required. The name of the resource. For the required
* format, see the comment on the Cluster.name field.
* @param array $optParams Optional parameters.
*
* @opt_param string view Optional. The view of the cluster to return. Returns
* all default fields if not set.
* @return Cluster
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Cluster::class);
}
/**
* Imports data to the cluster. Imperative only. (clusters.import)
*
* @param string $name Required. The resource name of the cluster.
* @param ImportClusterRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function import($name, ImportClusterRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('import', [$params], Operation::class);
}
/**
* Lists Clusters in a given project and location.
* (clusters.listProjectsLocationsClusters)
*
* @param string $parent Required. The name of the parent resource. For the
* required format, see the comment on the Cluster.name field. Additionally, you
* can perform an aggregated list operation by specifying a value with the
* following format: * projects/{project}/locations/-
* @param array $optParams Optional parameters.
*
* @opt_param string filter Optional. Filtering results
* @opt_param string orderBy Optional. Hint for how to order the results
* @opt_param int pageSize Optional. Requested page size. Server may return
* fewer items than requested. If unspecified, server will pick an appropriate
* default.
* @opt_param string pageToken A token identifying a page of results the server
* should return.
* @return ListClustersResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsClusters($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListClustersResponse::class);
}
/**
* Updates the parameters of a single Cluster. (clusters.patch)
*
* @param string $name Output only. The name of the cluster resource with the
* format: * projects/{project}/locations/{region}/clusters/{cluster_id} where
* the cluster ID segment should satisfy the regex expression `[a-z0-9-]+`. For
* more details see https://google.aip.dev/122. The prefix of the cluster
* resource name is the name of the parent resource: *
* projects/{project}/locations/{region}
* @param Cluster $postBody
* @param array $optParams Optional parameters.
*
* @opt_param bool allowMissing Optional. If set to true, update succeeds even
* if cluster is not found. In that case, a new cluster is created and
* `update_mask` is ignored.
* @opt_param string requestId Optional. An optional request ID to identify
* requests. Specify a unique request ID so that if you must retry your request,
* the server ignores the request if it has already been completed. The server
* guarantees 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 the original operation with the same request ID was received, and if
* so, ignores 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).
* @opt_param string updateMask Optional. Field mask is used to specify the
* fields to be overwritten in the Cluster resource by the update. The fields
* specified in the update_mask are relative to the resource, not the full
* request. A field will be overwritten if it is in the mask. If the user does
* not provide a mask then all fields will be overwritten.
* @opt_param bool validateOnly Optional. If set, performs request validation,
* for example, permission checks and any other type of validation, but does not
* actually execute the create request.
* @return Operation
* @throws \Google\Service\Exception
*/
public function patch($name, Cluster $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Operation::class);
}
/**
* Promotes a SECONDARY cluster. This turns down replication from the PRIMARY
* cluster and promotes a secondary cluster into its own standalone cluster.
* Imperative only. (clusters.promote)
*
* @param string $name Required. The name of the resource. For the required
* format, see the comment on the Cluster.name field
* @param PromoteClusterRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function promote($name, PromoteClusterRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('promote', [$params], Operation::class);
}
/**
* Creates a new Cluster in a given project and location, with a volume restored
* from the provided source, either a backup ID or a point-in-time and a source
* cluster. (clusters.restore)
*
* @param string $parent Required. The name of the parent resource. For the
* required format, see the comment on the Cluster.name field.
* @param RestoreClusterRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function restore($parent, RestoreClusterRequest $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('restore', [$params], Operation::class);
}
/**
* Restores an AlloyDB cluster from a CloudSQL resource.
* (clusters.restoreFromCloudSQL)
*
* @param string $parent Required. The location of the new cluster. For the
* required format, see the comment on Cluster.name field.
* @param RestoreFromCloudSQLRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function restoreFromCloudSQL($parent, RestoreFromCloudSQLRequest $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('restoreFromCloudSQL', [$params], Operation::class);
}
/**
* Switches the roles of PRIMARY and SECONDARY clusters without any data loss.
* This promotes the SECONDARY cluster to PRIMARY and sets up the original
* PRIMARY cluster to replicate from this newly promoted cluster.
* (clusters.switchover)
*
* @param string $name Required. The name of the resource. For the required
* format, see the comment on the Cluster.name field
* @param SwitchoverClusterRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function switchover($name, SwitchoverClusterRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('switchover', [$params], Operation::class);
}
/**
* Upgrades a single Cluster. Imperative only. (clusters.upgrade)
*
* @param string $name Required. The resource name of the cluster.
* @param UpgradeClusterRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function upgrade($name, UpgradeClusterRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('upgrade', [$params], Operation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsClusters::class, 'Google_Service_CloudAlloyDBAdmin_Resource_ProjectsLocationsClusters');

View File

@@ -0,0 +1,305 @@
<?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\CloudAlloyDBAdmin\Resource;
use Google\Service\CloudAlloyDBAdmin\ConnectionInfo;
use Google\Service\CloudAlloyDBAdmin\FailoverInstanceRequest;
use Google\Service\CloudAlloyDBAdmin\InjectFaultRequest;
use Google\Service\CloudAlloyDBAdmin\Instance;
use Google\Service\CloudAlloyDBAdmin\ListInstancesResponse;
use Google\Service\CloudAlloyDBAdmin\Operation;
use Google\Service\CloudAlloyDBAdmin\RestartInstanceRequest;
/**
* The "instances" collection of methods.
* Typical usage is:
* <code>
* $alloydbService = new Google\Service\CloudAlloyDBAdmin(...);
* $instances = $alloydbService->projects_locations_clusters_instances;
* </code>
*/
class ProjectsLocationsClustersInstances extends \Google\Service\Resource
{
/**
* Creates a new Instance in a given project and location. (instances.create)
*
* @param string $parent Required. The name of the parent resource. For the
* required format, see the comment on the Instance.name field.
* @param Instance $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string instanceId Required. ID of the requesting object.
* @opt_param string requestId Optional. An optional request ID to identify
* requests. Specify a unique request ID so that if you must retry your request,
* the server ignores the request if it has already been completed. The server
* guarantees 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 the original operation with the same request ID was received, and if
* so, ignores 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).
* @opt_param bool validateOnly Optional. If set, performs request validation,
* for example, permission checks and any other type of validation, but does not
* actually execute the create request.
* @return Operation
* @throws \Google\Service\Exception
*/
public function create($parent, Instance $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Operation::class);
}
/**
* Creates a new SECONDARY Instance in a given project and location.
* (instances.createsecondary)
*
* @param string $parent Required. The name of the parent resource. For the
* required format, see the comment on the Instance.name field.
* @param Instance $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string instanceId Required. ID of the requesting object.
* @opt_param string requestId Optional. An optional request ID to identify
* requests. Specify a unique request ID so that if you must retry your request,
* the server ignores the request if it has already been completed. The server
* guarantees 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 the original operation with the same request ID was received, and if
* so, ignores 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).
* @opt_param bool validateOnly Optional. If set, performs request validation,
* for example, permission checks and any other type of validation, but does not
* actually execute the create request.
* @return Operation
* @throws \Google\Service\Exception
*/
public function createsecondary($parent, Instance $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('createsecondary', [$params], Operation::class);
}
/**
* Deletes a single Instance. (instances.delete)
*
* @param string $name Required. The name of the resource. For the required
* format, see the comment on the Instance.name field.
* @param array $optParams Optional parameters.
*
* @opt_param string etag Optional. The current etag of the Instance. If an etag
* is provided and does not match the current etag of the Instance, deletion
* will be blocked and an ABORTED error will be returned.
* @opt_param string requestId Optional. An optional request ID to identify
* requests. Specify a unique request ID so that if you must retry your request,
* the server ignores the request if it has already been completed. The server
* guarantees 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 the original operation with the same request ID was received, and if
* so, ignores 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).
* @opt_param bool validateOnly Optional. If set, performs request validation,
* for example, permission checks and any other type of validation, but does not
* actually execute the create request.
* @return Operation
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], Operation::class);
}
/**
* Forces a Failover for a highly available instance. Failover promotes the HA
* standby instance as the new primary. Imperative only. (instances.failover)
*
* @param string $name Required. The name of the resource. For the required
* format, see the comment on the Instance.name field.
* @param FailoverInstanceRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function failover($name, FailoverInstanceRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('failover', [$params], Operation::class);
}
/**
* Gets details of a single Instance. (instances.get)
*
* @param string $name Required. The name of the resource. For the required
* format, see the comment on the Instance.name field.
* @param array $optParams Optional parameters.
*
* @opt_param string view The view of the instance to return.
* @return Instance
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Instance::class);
}
/**
* Get instance metadata used for a connection. (instances.getConnectionInfo)
*
* @param string $parent Required. The name of the parent resource. The required
* format is: projects/{project}/locations/{location}/clusters/{cluster}/instanc
* es/{instance}
* @param array $optParams Optional parameters.
*
* @opt_param string requestId Optional. An optional request ID to identify
* requests. Specify a unique request ID so that if you must retry your request,
* the server ignores the request if it has already been completed. The server
* guarantees 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 the original operation with the same request ID was received, and if
* so, ignores 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).
* @return ConnectionInfo
* @throws \Google\Service\Exception
*/
public function getConnectionInfo($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('getConnectionInfo', [$params], ConnectionInfo::class);
}
/**
* Injects fault in an instance. Imperative only. (instances.injectFault)
*
* @param string $name Required. The name of the resource. For the required
* format, see the comment on the Instance.name field.
* @param InjectFaultRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function injectFault($name, InjectFaultRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('injectFault', [$params], Operation::class);
}
/**
* Lists Instances in a given project and location.
* (instances.listProjectsLocationsClustersInstances)
*
* @param string $parent Required. The name of the parent resource. For the
* required format, see the comment on the Instance.name field. Additionally,
* you can perform an aggregated list operation by specifying a value with one
* of the following formats: * projects/{project}/locations/-/clusters/- *
* projects/{project}/locations/{region}/clusters/-
* @param array $optParams Optional parameters.
*
* @opt_param string filter Optional. Filtering results
* @opt_param string orderBy Optional. Hint for how to order the results
* @opt_param int pageSize Optional. Requested page size. Server may return
* fewer items than requested. If unspecified, server will pick an appropriate
* default.
* @opt_param string pageToken A token identifying a page of results the server
* should return.
* @return ListInstancesResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsClustersInstances($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListInstancesResponse::class);
}
/**
* Updates the parameters of a single Instance. (instances.patch)
*
* @param string $name Output only. The name of the instance resource with the
* format: * projects/{project}/locations/{region}/clusters/{cluster_id}/instanc
* es/{instance_id} where the cluster and instance ID segments should satisfy
* the regex expression `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`, e.g. 1-63 characters
* of lowercase letters, numbers, and dashes, starting with a letter, and ending
* with a letter or number. For more details see https://google.aip.dev/122. The
* prefix of the instance resource name is the name of the parent resource: *
* projects/{project}/locations/{region}/clusters/{cluster_id}
* @param Instance $postBody
* @param array $optParams Optional parameters.
*
* @opt_param bool allowMissing Optional. If set to true, update succeeds even
* if instance is not found. In that case, a new instance is created and
* `update_mask` is ignored.
* @opt_param string requestId Optional. An optional request ID to identify
* requests. Specify a unique request ID so that if you must retry your request,
* the server ignores the request if it has already been completed. The server
* guarantees 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 the original operation with the same request ID was received, and if
* so, ignores 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).
* @opt_param string updateMask Optional. Field mask is used to specify the
* fields to be overwritten in the Instance resource by the update. The fields
* specified in the update_mask are relative to the resource, not the full
* request. A field will be overwritten if it is in the mask. If the user does
* not provide a mask then all fields will be overwritten.
* @opt_param bool validateOnly Optional. If set, performs request validation,
* for example, permission checks and any other type of validation, but does not
* actually execute the create request.
* @return Operation
* @throws \Google\Service\Exception
*/
public function patch($name, Instance $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Operation::class);
}
/**
* Restart an Instance in a cluster. Imperative only. (instances.restart)
*
* @param string $name Required. The name of the resource. For the required
* format, see the comment on the Instance.name field.
* @param RestartInstanceRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function restart($name, RestartInstanceRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('restart', [$params], Operation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsClustersInstances::class, 'Google_Service_CloudAlloyDBAdmin_Resource_ProjectsLocationsClustersInstances');

View File

@@ -0,0 +1,171 @@
<?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\CloudAlloyDBAdmin\Resource;
use Google\Service\CloudAlloyDBAdmin\AlloydbEmpty;
use Google\Service\CloudAlloyDBAdmin\ListUsersResponse;
use Google\Service\CloudAlloyDBAdmin\User;
/**
* The "users" collection of methods.
* Typical usage is:
* <code>
* $alloydbService = new Google\Service\CloudAlloyDBAdmin(...);
* $users = $alloydbService->projects_locations_clusters_users;
* </code>
*/
class ProjectsLocationsClustersUsers extends \Google\Service\Resource
{
/**
* Creates a new User in a given project, location, and cluster. (users.create)
*
* @param string $parent Required. Value for parent.
* @param User $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string requestId Optional. An optional request ID to identify
* requests. Specify a unique request ID so that if you must retry your request,
* the server ignores the request if it has already been completed. The server
* guarantees 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 the original operation with the same request ID was received, and if
* so, ignores 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).
* @opt_param string userId Required. ID of the requesting object.
* @opt_param bool validateOnly Optional. If set, the backend validates the
* request, but doesn't actually execute it.
* @return User
* @throws \Google\Service\Exception
*/
public function create($parent, User $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], User::class);
}
/**
* Deletes a single User. (users.delete)
*
* @param string $name Required. The name of the resource. For the required
* format, see the comment on the User.name field.
* @param array $optParams Optional parameters.
*
* @opt_param string requestId Optional. An optional request ID to identify
* requests. Specify a unique request ID so that if you must retry your request,
* the server ignores the request if it has already been completed. The server
* guarantees 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 the original operation with the same request ID was received, and if
* so, ignores 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).
* @opt_param bool validateOnly Optional. If set, the backend validates the
* request, but doesn't actually execute it.
* @return AlloydbEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], AlloydbEmpty::class);
}
/**
* Gets details of a single User. (users.get)
*
* @param string $name Required. The name of the resource. For the required
* format, see the comment on the User.name field.
* @param array $optParams Optional parameters.
* @return User
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], User::class);
}
/**
* Lists Users in a given project and location.
* (users.listProjectsLocationsClustersUsers)
*
* @param string $parent Required. Parent value for ListUsersRequest
* @param array $optParams Optional parameters.
*
* @opt_param string filter Optional. Filtering results
* @opt_param string orderBy Optional. Hint for how to order the results
* @opt_param int pageSize Optional. Requested page size. Server may return
* fewer items than requested. If unspecified, server will pick an appropriate
* default.
* @opt_param string pageToken Optional. A token identifying a page of results
* the server should return.
* @return ListUsersResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsClustersUsers($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListUsersResponse::class);
}
/**
* Updates the parameters of a single User. (users.patch)
*
* @param string $name Output only. Name of the resource in the form of
* projects/{project}/locations/{location}/cluster/{cluster}/users/{user}.
* @param User $postBody
* @param array $optParams Optional parameters.
*
* @opt_param bool allowMissing Optional. Allow missing fields in the update
* mask.
* @opt_param string requestId Optional. An optional request ID to identify
* requests. Specify a unique request ID so that if you must retry your request,
* the server ignores the request if it has already been completed. The server
* guarantees 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 the original operation with the same request ID was received, and if
* so, ignores 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).
* @opt_param string updateMask Optional. Field mask is used to specify the
* fields to be overwritten in the User resource by the update. The fields
* specified in the update_mask are relative to the resource, not the full
* request. A field will be overwritten if it is in the mask. If the user does
* not provide a mask then all fields will be overwritten.
* @opt_param bool validateOnly Optional. If set, the backend validates the
* request, but doesn't actually execute it.
* @return User
* @throws \Google\Service\Exception
*/
public function patch($name, User $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], User::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsClustersUsers::class, 'Google_Service_CloudAlloyDBAdmin_Resource_ProjectsLocationsClustersUsers');

View File

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

View File

@@ -0,0 +1,61 @@
<?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\CloudAlloyDBAdmin\Resource;
use Google\Service\CloudAlloyDBAdmin\ListSupportedDatabaseFlagsResponse;
/**
* The "supportedDatabaseFlags" collection of methods.
* Typical usage is:
* <code>
* $alloydbService = new Google\Service\CloudAlloyDBAdmin(...);
* $supportedDatabaseFlags = $alloydbService->projects_locations_supportedDatabaseFlags;
* </code>
*/
class ProjectsLocationsSupportedDatabaseFlags extends \Google\Service\Resource
{
/**
* Lists SupportedDatabaseFlags for a given project and location.
* (supportedDatabaseFlags.listProjectsLocationsSupportedDatabaseFlags)
*
* @param string $parent Required. The name of the parent resource. The required
* format is: * projects/{project}/locations/{location} Regardless of the parent
* specified here, as long it is contains a valid project and location, the
* service will return a static list of supported flags resources. Note that we
* do not yet support region-specific flags.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Requested page size. Server may return fewer items
* than requested. If unspecified, server will pick an appropriate default.
* @opt_param string pageToken A token identifying a page of results the server
* should return.
* @opt_param string scope Optional. The scope for which supported flags are
* requested. If not specified, default is DATABASE.
* @return ListSupportedDatabaseFlagsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsSupportedDatabaseFlags($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListSupportedDatabaseFlagsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsSupportedDatabaseFlags::class, 'Google_Service_CloudAlloyDBAdmin_Resource_ProjectsLocationsSupportedDatabaseFlags');

View File

@@ -0,0 +1,119 @@
<?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\CloudAlloyDBAdmin;
class RestartInstanceRequest extends \Google\Collection
{
protected $collection_key = 'nodeIds';
/**
* Optional. Full name of the nodes as obtained from INSTANCE_VIEW_FULL to
* restart upon. Applicable only to read instances.
*
* @var string[]
*/
public $nodeIds;
/**
* Optional. An optional request ID to identify requests. Specify a unique
* request ID so that if you must retry your request, the server ignores the
* request if it has already been completed. The server guarantees 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 the
* original operation with the same request ID was received, and if so,
* ignores 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. If set, performs request validation, for example, permission
* checks and any other type of validation, but does not actually execute the
* create request.
*
* @var bool
*/
public $validateOnly;
/**
* Optional. Full name of the nodes as obtained from INSTANCE_VIEW_FULL to
* restart upon. Applicable only to read instances.
*
* @param string[] $nodeIds
*/
public function setNodeIds($nodeIds)
{
$this->nodeIds = $nodeIds;
}
/**
* @return string[]
*/
public function getNodeIds()
{
return $this->nodeIds;
}
/**
* Optional. An optional request ID to identify requests. Specify a unique
* request ID so that if you must retry your request, the server ignores the
* request if it has already been completed. The server guarantees 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 the
* original operation with the same request ID was received, and if so,
* ignores 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;
}
/**
* Optional. If set, performs request validation, for example, permission
* checks and any other type of validation, but does not actually execute the
* create request.
*
* @param bool $validateOnly
*/
public function setValidateOnly($validateOnly)
{
$this->validateOnly = $validateOnly;
}
/**
* @return bool
*/
public function getValidateOnly()
{
return $this->validateOnly;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RestartInstanceRequest::class, 'Google_Service_CloudAlloyDBAdmin_RestartInstanceRequest');

View File

@@ -0,0 +1,207 @@
<?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\CloudAlloyDBAdmin;
class RestoreClusterRequest extends \Google\Model
{
protected $backupSourceType = BackupSource::class;
protected $backupSourceDataType = '';
protected $backupdrBackupSourceType = BackupDrBackupSource::class;
protected $backupdrBackupSourceDataType = '';
protected $backupdrPitrSourceType = BackupDrPitrSource::class;
protected $backupdrPitrSourceDataType = '';
protected $clusterType = Cluster::class;
protected $clusterDataType = '';
/**
* Required. ID of the requesting object.
*
* @var string
*/
public $clusterId;
protected $continuousBackupSourceType = ContinuousBackupSource::class;
protected $continuousBackupSourceDataType = '';
/**
* Optional. An optional request ID to identify requests. Specify a unique
* request ID so that if you must retry your request, the server ignores the
* request if it has already been completed. The server guarantees 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 the
* original operation with the same request ID was received, and if so,
* ignores 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. If set, performs request validation, for example, permission
* checks and any other type of validation, but does not actually execute the
* create request.
*
* @var bool
*/
public $validateOnly;
/**
* Backup source.
*
* @param BackupSource $backupSource
*/
public function setBackupSource(BackupSource $backupSource)
{
$this->backupSource = $backupSource;
}
/**
* @return BackupSource
*/
public function getBackupSource()
{
return $this->backupSource;
}
/**
* BackupDR backup source.
*
* @param BackupDrBackupSource $backupdrBackupSource
*/
public function setBackupdrBackupSource(BackupDrBackupSource $backupdrBackupSource)
{
$this->backupdrBackupSource = $backupdrBackupSource;
}
/**
* @return BackupDrBackupSource
*/
public function getBackupdrBackupSource()
{
return $this->backupdrBackupSource;
}
/**
* BackupDR source used for point in time recovery.
*
* @param BackupDrPitrSource $backupdrPitrSource
*/
public function setBackupdrPitrSource(BackupDrPitrSource $backupdrPitrSource)
{
$this->backupdrPitrSource = $backupdrPitrSource;
}
/**
* @return BackupDrPitrSource
*/
public function getBackupdrPitrSource()
{
return $this->backupdrPitrSource;
}
/**
* Required. The resource being created
*
* @param Cluster $cluster
*/
public function setCluster(Cluster $cluster)
{
$this->cluster = $cluster;
}
/**
* @return Cluster
*/
public function getCluster()
{
return $this->cluster;
}
/**
* Required. ID of the requesting object.
*
* @param string $clusterId
*/
public function setClusterId($clusterId)
{
$this->clusterId = $clusterId;
}
/**
* @return string
*/
public function getClusterId()
{
return $this->clusterId;
}
/**
* ContinuousBackup source. Continuous backup needs to be enabled in the
* source cluster for this operation to succeed.
*
* @param ContinuousBackupSource $continuousBackupSource
*/
public function setContinuousBackupSource(ContinuousBackupSource $continuousBackupSource)
{
$this->continuousBackupSource = $continuousBackupSource;
}
/**
* @return ContinuousBackupSource
*/
public function getContinuousBackupSource()
{
return $this->continuousBackupSource;
}
/**
* Optional. An optional request ID to identify requests. Specify a unique
* request ID so that if you must retry your request, the server ignores the
* request if it has already been completed. The server guarantees 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 the
* original operation with the same request ID was received, and if so,
* ignores 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;
}
/**
* Optional. If set, performs request validation, for example, permission
* checks and any other type of validation, but does not actually execute the
* create request.
*
* @param bool $validateOnly
*/
public function setValidateOnly($validateOnly)
{
$this->validateOnly = $validateOnly;
}
/**
* @return bool
*/
public function getValidateOnly()
{
return $this->validateOnly;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RestoreClusterRequest::class, 'Google_Service_CloudAlloyDBAdmin_RestoreClusterRequest');

View File

@@ -0,0 +1,84 @@
<?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\CloudAlloyDBAdmin;
class RestoreFromCloudSQLRequest extends \Google\Model
{
protected $cloudsqlBackupRunSourceType = CloudSQLBackupRunSource::class;
protected $cloudsqlBackupRunSourceDataType = '';
protected $clusterType = Cluster::class;
protected $clusterDataType = '';
/**
* Required. ID of the requesting object.
*
* @var string
*/
public $clusterId;
/**
* Cluster created from CloudSQL backup run.
*
* @param CloudSQLBackupRunSource $cloudsqlBackupRunSource
*/
public function setCloudsqlBackupRunSource(CloudSQLBackupRunSource $cloudsqlBackupRunSource)
{
$this->cloudsqlBackupRunSource = $cloudsqlBackupRunSource;
}
/**
* @return CloudSQLBackupRunSource
*/
public function getCloudsqlBackupRunSource()
{
return $this->cloudsqlBackupRunSource;
}
/**
* Required. The resource being created
*
* @param Cluster $cluster
*/
public function setCluster(Cluster $cluster)
{
$this->cluster = $cluster;
}
/**
* @return Cluster
*/
public function getCluster()
{
return $this->cluster;
}
/**
* Required. ID of the requesting object.
*
* @param string $clusterId
*/
public function setClusterId($clusterId)
{
$this->clusterId = $clusterId;
}
/**
* @return string
*/
public function getClusterId()
{
return $this->clusterId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RestoreFromCloudSQLRequest::class, 'Google_Service_CloudAlloyDBAdmin_RestoreFromCloudSQLRequest');

View File

@@ -0,0 +1,152 @@
<?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\CloudAlloyDBAdmin;
class Schedule extends \Google\Model
{
/**
* @var string
*/
public $cronExpression;
/**
* @var string
*/
public $description;
/**
* @var bool
*/
public $disabled;
/**
* @var string
*/
public $durationSec;
/**
* @var string
*/
public $minNodeCount;
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $timeZone;
/**
* @param string
*/
public function setCronExpression($cronExpression)
{
$this->cronExpression = $cronExpression;
}
/**
* @return string
*/
public function getCronExpression()
{
return $this->cronExpression;
}
/**
* @param string
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* @param bool
*/
public function setDisabled($disabled)
{
$this->disabled = $disabled;
}
/**
* @return bool
*/
public function getDisabled()
{
return $this->disabled;
}
/**
* @param string
*/
public function setDurationSec($durationSec)
{
$this->durationSec = $durationSec;
}
/**
* @return string
*/
public function getDurationSec()
{
return $this->durationSec;
}
/**
* @param string
*/
public function setMinNodeCount($minNodeCount)
{
$this->minNodeCount = $minNodeCount;
}
/**
* @return string
*/
public function getMinNodeCount()
{
return $this->minNodeCount;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
public function setTimeZone($timeZone)
{
$this->timeZone = $timeZone;
}
/**
* @return string
*/
public function getTimeZone()
{
return $this->timeZone;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Schedule::class, 'Google_Service_CloudAlloyDBAdmin_Schedule');

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\CloudAlloyDBAdmin;
class SecondaryConfig extends \Google\Model
{
/**
* The name of the primary cluster name with the format: *
* projects/{project}/locations/{region}/clusters/{cluster_id}
*
* @var string
*/
public $primaryClusterName;
/**
* The name of the primary cluster name with the format: *
* projects/{project}/locations/{region}/clusters/{cluster_id}
*
* @param string $primaryClusterName
*/
public function setPrimaryClusterName($primaryClusterName)
{
$this->primaryClusterName = $primaryClusterName;
}
/**
* @return string
*/
public function getPrimaryClusterName()
{
return $this->primaryClusterName;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SecondaryConfig::class, 'Google_Service_CloudAlloyDBAdmin_SecondaryConfig');

View File

@@ -0,0 +1,119 @@
<?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\CloudAlloyDBAdmin;
class SqlExportOptions extends \Google\Collection
{
protected $collection_key = 'tables';
/**
* Optional. If true, output commands to DROP all the dumped database objects
* prior to outputting the commands for creating them.
*
* @var bool
*/
public $cleanTargetObjects;
/**
* Optional. If true, use DROP ... IF EXISTS commands to check for the
* object's existence before dropping it in clean_target_objects mode.
*
* @var bool
*/
public $ifExistTargetObjects;
/**
* Optional. If true, only export the schema.
*
* @var bool
*/
public $schemaOnly;
/**
* Optional. Tables to export from.
*
* @var string[]
*/
public $tables;
/**
* Optional. If true, output commands to DROP all the dumped database objects
* prior to outputting the commands for creating them.
*
* @param bool $cleanTargetObjects
*/
public function setCleanTargetObjects($cleanTargetObjects)
{
$this->cleanTargetObjects = $cleanTargetObjects;
}
/**
* @return bool
*/
public function getCleanTargetObjects()
{
return $this->cleanTargetObjects;
}
/**
* Optional. If true, use DROP ... IF EXISTS commands to check for the
* object's existence before dropping it in clean_target_objects mode.
*
* @param bool $ifExistTargetObjects
*/
public function setIfExistTargetObjects($ifExistTargetObjects)
{
$this->ifExistTargetObjects = $ifExistTargetObjects;
}
/**
* @return bool
*/
public function getIfExistTargetObjects()
{
return $this->ifExistTargetObjects;
}
/**
* Optional. If true, only export the schema.
*
* @param bool $schemaOnly
*/
public function setSchemaOnly($schemaOnly)
{
$this->schemaOnly = $schemaOnly;
}
/**
* @return bool
*/
public function getSchemaOnly()
{
return $this->schemaOnly;
}
/**
* Optional. Tables to export from.
*
* @param string[] $tables
*/
public function setTables($tables)
{
$this->tables = $tables;
}
/**
* @return string[]
*/
public function getTables()
{
return $this->tables;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SqlExportOptions::class, 'Google_Service_CloudAlloyDBAdmin_SqlExportOptions');

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

View File

@@ -0,0 +1,119 @@
<?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\CloudAlloyDBAdmin;
class SslConfig extends \Google\Model
{
/**
* Certificate Authority (CA) source not specified. Defaults to
* CA_SOURCE_MANAGED.
*/
public const CA_SOURCE_CA_SOURCE_UNSPECIFIED = 'CA_SOURCE_UNSPECIFIED';
/**
* Certificate Authority (CA) managed by the AlloyDB Cluster.
*/
public const CA_SOURCE_CA_SOURCE_MANAGED = 'CA_SOURCE_MANAGED';
/**
* SSL mode is not specified. Defaults to ENCRYPTED_ONLY.
*/
public const SSL_MODE_SSL_MODE_UNSPECIFIED = 'SSL_MODE_UNSPECIFIED';
/**
* SSL connections are optional. CA verification not enforced.
*
* @deprecated
*/
public const SSL_MODE_SSL_MODE_ALLOW = 'SSL_MODE_ALLOW';
/**
* SSL connections are required. CA verification not enforced. Clients may use
* locally self-signed certificates (default psql client behavior).
*
* @deprecated
*/
public const SSL_MODE_SSL_MODE_REQUIRE = 'SSL_MODE_REQUIRE';
/**
* SSL connections are required. CA verification enforced. Clients must have
* certificates signed by a Cluster CA, for example, using
* GenerateClientCertificate.
*
* @deprecated
*/
public const SSL_MODE_SSL_MODE_VERIFY_CA = 'SSL_MODE_VERIFY_CA';
/**
* SSL connections are optional. CA verification not enforced.
*/
public const SSL_MODE_ALLOW_UNENCRYPTED_AND_ENCRYPTED = 'ALLOW_UNENCRYPTED_AND_ENCRYPTED';
/**
* SSL connections are required. CA verification not enforced.
*/
public const SSL_MODE_ENCRYPTED_ONLY = 'ENCRYPTED_ONLY';
/**
* Optional. Certificate Authority (CA) source. Only CA_SOURCE_MANAGED is
* supported currently, and is the default value.
*
* @var string
*/
public $caSource;
/**
* Optional. SSL mode. Specifies client-server SSL/TLS connection behavior.
*
* @var string
*/
public $sslMode;
/**
* Optional. Certificate Authority (CA) source. Only CA_SOURCE_MANAGED is
* supported currently, and is the default value.
*
* Accepted values: CA_SOURCE_UNSPECIFIED, CA_SOURCE_MANAGED
*
* @param self::CA_SOURCE_* $caSource
*/
public function setCaSource($caSource)
{
$this->caSource = $caSource;
}
/**
* @return self::CA_SOURCE_*
*/
public function getCaSource()
{
return $this->caSource;
}
/**
* Optional. SSL mode. Specifies client-server SSL/TLS connection behavior.
*
* Accepted values: SSL_MODE_UNSPECIFIED, SSL_MODE_ALLOW, SSL_MODE_REQUIRE,
* SSL_MODE_VERIFY_CA, ALLOW_UNENCRYPTED_AND_ENCRYPTED, ENCRYPTED_ONLY
*
* @param self::SSL_MODE_* $sslMode
*/
public function setSslMode($sslMode)
{
$this->sslMode = $sslMode;
}
/**
* @return self::SSL_MODE_*
*/
public function getSslMode()
{
return $this->sslMode;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SslConfig::class, 'Google_Service_CloudAlloyDBAdmin_SslConfig');

View File

@@ -0,0 +1,167 @@
<?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\CloudAlloyDBAdmin;
class StageInfo extends \Google\Model
{
/**
* Unspecified stage.
*/
public const STAGE_STAGE_UNSPECIFIED = 'STAGE_UNSPECIFIED';
/**
* Pre-upgrade custom checks, not covered by pg_upgrade.
*/
public const STAGE_ALLOYDB_PRECHECK = 'ALLOYDB_PRECHECK';
/**
* Pre-upgrade pg_upgrade checks.
*/
public const STAGE_PG_UPGRADE_CHECK = 'PG_UPGRADE_CHECK';
/**
* Clone the original cluster.
*/
public const STAGE_PREPARE_FOR_UPGRADE = 'PREPARE_FOR_UPGRADE';
/**
* Upgrade the primary instance(downtime).
*/
public const STAGE_PRIMARY_INSTANCE_UPGRADE = 'PRIMARY_INSTANCE_UPGRADE';
/**
* This stage is read pool upgrade.
*/
public const STAGE_READ_POOL_INSTANCES_UPGRADE = 'READ_POOL_INSTANCES_UPGRADE';
/**
* Rollback in case of critical failures.
*/
public const STAGE_ROLLBACK = 'ROLLBACK';
/**
* Cleanup.
*/
public const STAGE_CLEANUP = 'CLEANUP';
/**
* Unspecified status.
*/
public const STATUS_STATUS_UNSPECIFIED = 'STATUS_UNSPECIFIED';
/**
* Not started.
*/
public const STATUS_NOT_STARTED = 'NOT_STARTED';
/**
* In progress.
*/
public const STATUS_IN_PROGRESS = 'IN_PROGRESS';
/**
* Operation succeeded.
*/
public const STATUS_SUCCESS = 'SUCCESS';
/**
* Operation failed.
*/
public const STATUS_FAILED = 'FAILED';
/**
* Operation partially succeeded.
*/
public const STATUS_PARTIAL_SUCCESS = 'PARTIAL_SUCCESS';
/**
* Cancel is in progress.
*/
public const STATUS_CANCEL_IN_PROGRESS = 'CANCEL_IN_PROGRESS';
/**
* Cancellation complete.
*/
public const STATUS_CANCELLED = 'CANCELLED';
/**
* logs_url is the URL for the logs associated with a stage if that stage has
* logs. Right now, only three stages have logs: ALLOYDB_PRECHECK,
* PG_UPGRADE_CHECK, PRIMARY_INSTANCE_UPGRADE.
*
* @var string
*/
public $logsUrl;
/**
* The stage.
*
* @var string
*/
public $stage;
/**
* Status of the stage.
*
* @var string
*/
public $status;
/**
* logs_url is the URL for the logs associated with a stage if that stage has
* logs. Right now, only three stages have logs: ALLOYDB_PRECHECK,
* PG_UPGRADE_CHECK, PRIMARY_INSTANCE_UPGRADE.
*
* @param string $logsUrl
*/
public function setLogsUrl($logsUrl)
{
$this->logsUrl = $logsUrl;
}
/**
* @return string
*/
public function getLogsUrl()
{
return $this->logsUrl;
}
/**
* The stage.
*
* Accepted values: STAGE_UNSPECIFIED, ALLOYDB_PRECHECK, PG_UPGRADE_CHECK,
* PREPARE_FOR_UPGRADE, PRIMARY_INSTANCE_UPGRADE, READ_POOL_INSTANCES_UPGRADE,
* ROLLBACK, CLEANUP
*
* @param self::STAGE_* $stage
*/
public function setStage($stage)
{
$this->stage = $stage;
}
/**
* @return self::STAGE_*
*/
public function getStage()
{
return $this->stage;
}
/**
* Status of the stage.
*
* Accepted values: STATUS_UNSPECIFIED, NOT_STARTED, IN_PROGRESS, SUCCESS,
* FAILED, PARTIAL_SUCCESS, CANCEL_IN_PROGRESS, CANCELLED
*
* @param self::STATUS_* $status
*/
public function setStatus($status)
{
$this->status = $status;
}
/**
* @return self::STATUS_*
*/
public function getStatus()
{
return $this->status;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(StageInfo::class, 'Google_Service_CloudAlloyDBAdmin_StageInfo');

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\CloudAlloyDBAdmin;
class StageSchedule extends \Google\Model
{
/**
* @var string
*/
public $actualEndTime;
/**
* @var string
*/
public $actualStartTime;
/**
* @var string
*/
public $estimatedEndTime;
/**
* @var string
*/
public $estimatedStartTime;
/**
* @param string
*/
public function setActualEndTime($actualEndTime)
{
$this->actualEndTime = $actualEndTime;
}
/**
* @return string
*/
public function getActualEndTime()
{
return $this->actualEndTime;
}
/**
* @param string
*/
public function setActualStartTime($actualStartTime)
{
$this->actualStartTime = $actualStartTime;
}
/**
* @return string
*/
public function getActualStartTime()
{
return $this->actualStartTime;
}
/**
* @param string
*/
public function setEstimatedEndTime($estimatedEndTime)
{
$this->estimatedEndTime = $estimatedEndTime;
}
/**
* @return string
*/
public function getEstimatedEndTime()
{
return $this->estimatedEndTime;
}
/**
* @param string
*/
public function setEstimatedStartTime($estimatedStartTime)
{
$this->estimatedStartTime = $estimatedStartTime;
}
/**
* @return string
*/
public function getEstimatedStartTime()
{
return $this->estimatedStartTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(StageSchedule::class, 'Google_Service_CloudAlloyDBAdmin_StageSchedule');

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\CloudAlloyDBAdmin;
class StageStatus extends \Google\Model
{
/**
* Unspecified stage.
*/
public const STAGE_STAGE_UNSPECIFIED = 'STAGE_UNSPECIFIED';
/**
* Pre-upgrade custom checks, not covered by pg_upgrade.
*/
public const STAGE_ALLOYDB_PRECHECK = 'ALLOYDB_PRECHECK';
/**
* Pre-upgrade pg_upgrade checks.
*/
public const STAGE_PG_UPGRADE_CHECK = 'PG_UPGRADE_CHECK';
/**
* Clone the original cluster.
*/
public const STAGE_PREPARE_FOR_UPGRADE = 'PREPARE_FOR_UPGRADE';
/**
* Upgrade the primary instance(downtime).
*/
public const STAGE_PRIMARY_INSTANCE_UPGRADE = 'PRIMARY_INSTANCE_UPGRADE';
/**
* This stage is read pool upgrade.
*/
public const STAGE_READ_POOL_INSTANCES_UPGRADE = 'READ_POOL_INSTANCES_UPGRADE';
/**
* Rollback in case of critical failures.
*/
public const STAGE_ROLLBACK = 'ROLLBACK';
/**
* Cleanup.
*/
public const STAGE_CLEANUP = 'CLEANUP';
/**
* Unspecified status.
*/
public const STATE_STATUS_UNSPECIFIED = 'STATUS_UNSPECIFIED';
/**
* Not started.
*/
public const STATE_NOT_STARTED = 'NOT_STARTED';
/**
* In progress.
*/
public const STATE_IN_PROGRESS = 'IN_PROGRESS';
/**
* Operation succeeded.
*/
public const STATE_SUCCESS = 'SUCCESS';
/**
* Operation failed.
*/
public const STATE_FAILED = 'FAILED';
/**
* Operation partially succeeded.
*/
public const STATE_PARTIAL_SUCCESS = 'PARTIAL_SUCCESS';
/**
* Cancel is in progress.
*/
public const STATE_CANCEL_IN_PROGRESS = 'CANCEL_IN_PROGRESS';
/**
* Cancellation complete.
*/
public const STATE_CANCELLED = 'CANCELLED';
protected $readPoolInstancesUpgradeType = ReadPoolInstancesUpgradeStageStatus::class;
protected $readPoolInstancesUpgradeDataType = '';
/**
* Upgrade stage.
*
* @var string
*/
public $stage;
/**
* State of this stage.
*
* @var string
*/
public $state;
/**
* Read pool instances upgrade metadata.
*
* @param ReadPoolInstancesUpgradeStageStatus $readPoolInstancesUpgrade
*/
public function setReadPoolInstancesUpgrade(ReadPoolInstancesUpgradeStageStatus $readPoolInstancesUpgrade)
{
$this->readPoolInstancesUpgrade = $readPoolInstancesUpgrade;
}
/**
* @return ReadPoolInstancesUpgradeStageStatus
*/
public function getReadPoolInstancesUpgrade()
{
return $this->readPoolInstancesUpgrade;
}
/**
* Upgrade stage.
*
* Accepted values: STAGE_UNSPECIFIED, ALLOYDB_PRECHECK, PG_UPGRADE_CHECK,
* PREPARE_FOR_UPGRADE, PRIMARY_INSTANCE_UPGRADE, READ_POOL_INSTANCES_UPGRADE,
* ROLLBACK, CLEANUP
*
* @param self::STAGE_* $stage
*/
public function setStage($stage)
{
$this->stage = $stage;
}
/**
* @return self::STAGE_*
*/
public function getStage()
{
return $this->stage;
}
/**
* State of this stage.
*
* Accepted values: STATUS_UNSPECIFIED, NOT_STARTED, IN_PROGRESS, SUCCESS,
* FAILED, PARTIAL_SUCCESS, CANCEL_IN_PROGRESS, CANCELLED
*
* @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(StageStatus::class, 'Google_Service_CloudAlloyDBAdmin_StageStatus');

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\CloudAlloyDBAdmin;
class Stats extends \Google\Model
{
/**
* Number of read pool instances which failed to upgrade.
*
* @var int
*/
public $failed;
/**
* Number of read pool instances for which upgrade has not started.
*
* @var int
*/
public $notStarted;
/**
* Number of read pool instances undergoing upgrade.
*
* @var int
*/
public $ongoing;
/**
* Number of read pool instances successfully upgraded.
*
* @var int
*/
public $success;
/**
* Number of read pool instances which failed to upgrade.
*
* @param int $failed
*/
public function setFailed($failed)
{
$this->failed = $failed;
}
/**
* @return int
*/
public function getFailed()
{
return $this->failed;
}
/**
* Number of read pool instances for which upgrade has not started.
*
* @param int $notStarted
*/
public function setNotStarted($notStarted)
{
$this->notStarted = $notStarted;
}
/**
* @return int
*/
public function getNotStarted()
{
return $this->notStarted;
}
/**
* Number of read pool instances undergoing upgrade.
*
* @param int $ongoing
*/
public function setOngoing($ongoing)
{
$this->ongoing = $ongoing;
}
/**
* @return int
*/
public function getOngoing()
{
return $this->ongoing;
}
/**
* Number of read pool instances successfully upgraded.
*
* @param int $success
*/
public function setSuccess($success)
{
$this->success = $success;
}
/**
* @return int
*/
public function getSuccess()
{
return $this->success;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Stats::class, 'Google_Service_CloudAlloyDBAdmin_Stats');

View File

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

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\CloudAlloyDBAdmin;
class StorageDatabasecenterPartnerapiV1mainAvailabilityConfiguration extends \Google\Model
{
public const AVAILABILITY_TYPE_AVAILABILITY_TYPE_UNSPECIFIED = 'AVAILABILITY_TYPE_UNSPECIFIED';
/**
* Zonal available instance.
*/
public const AVAILABILITY_TYPE_ZONAL = 'ZONAL';
/**
* Regional available instance.
*/
public const AVAILABILITY_TYPE_REGIONAL = 'REGIONAL';
/**
* Multi regional instance
*/
public const AVAILABILITY_TYPE_MULTI_REGIONAL = 'MULTI_REGIONAL';
/**
* For rest of the other category
*/
public const AVAILABILITY_TYPE_AVAILABILITY_TYPE_OTHER = 'AVAILABILITY_TYPE_OTHER';
/**
* Checks for existence of (multi-cluster) routing configuration that allows
* automatic failover to a different zone/region in case of an outage.
* Applicable to Bigtable resources.
*
* @var bool
*/
public $automaticFailoverRoutingConfigured;
/**
* Availability type. Potential values: * `ZONAL`: The instance serves data
* from only one zone. Outages in that zone affect data accessibility. *
* `REGIONAL`: The instance can serve data from more than one zone in a region
* (it is highly available).
*
* @var string
*/
public $availabilityType;
/**
* Checks for resources that are configured to have redundancy, and ongoing
* replication across regions
*
* @var bool
*/
public $crossRegionReplicaConfigured;
/**
* @var bool
*/
public $externalReplicaConfigured;
/**
* @var bool
*/
public $promotableReplicaConfigured;
/**
* Checks for existence of (multi-cluster) routing configuration that allows
* automatic failover to a different zone/region in case of an outage.
* Applicable to Bigtable resources.
*
* @param bool $automaticFailoverRoutingConfigured
*/
public function setAutomaticFailoverRoutingConfigured($automaticFailoverRoutingConfigured)
{
$this->automaticFailoverRoutingConfigured = $automaticFailoverRoutingConfigured;
}
/**
* @return bool
*/
public function getAutomaticFailoverRoutingConfigured()
{
return $this->automaticFailoverRoutingConfigured;
}
/**
* Availability type. Potential values: * `ZONAL`: The instance serves data
* from only one zone. Outages in that zone affect data accessibility. *
* `REGIONAL`: The instance can serve data from more than one zone in a region
* (it is highly available).
*
* Accepted values: AVAILABILITY_TYPE_UNSPECIFIED, ZONAL, REGIONAL,
* MULTI_REGIONAL, AVAILABILITY_TYPE_OTHER
*
* @param self::AVAILABILITY_TYPE_* $availabilityType
*/
public function setAvailabilityType($availabilityType)
{
$this->availabilityType = $availabilityType;
}
/**
* @return self::AVAILABILITY_TYPE_*
*/
public function getAvailabilityType()
{
return $this->availabilityType;
}
/**
* Checks for resources that are configured to have redundancy, and ongoing
* replication across regions
*
* @param bool $crossRegionReplicaConfigured
*/
public function setCrossRegionReplicaConfigured($crossRegionReplicaConfigured)
{
$this->crossRegionReplicaConfigured = $crossRegionReplicaConfigured;
}
/**
* @return bool
*/
public function getCrossRegionReplicaConfigured()
{
return $this->crossRegionReplicaConfigured;
}
/**
* @param bool $externalReplicaConfigured
*/
public function setExternalReplicaConfigured($externalReplicaConfigured)
{
$this->externalReplicaConfigured = $externalReplicaConfigured;
}
/**
* @return bool
*/
public function getExternalReplicaConfigured()
{
return $this->externalReplicaConfigured;
}
/**
* @param bool $promotableReplicaConfigured
*/
public function setPromotableReplicaConfigured($promotableReplicaConfigured)
{
$this->promotableReplicaConfigured = $promotableReplicaConfigured;
}
/**
* @return bool
*/
public function getPromotableReplicaConfigured()
{
return $this->promotableReplicaConfigured;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(StorageDatabasecenterPartnerapiV1mainAvailabilityConfiguration::class, 'Google_Service_CloudAlloyDBAdmin_StorageDatabasecenterPartnerapiV1mainAvailabilityConfiguration');

View File

@@ -0,0 +1,92 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudAlloyDBAdmin;
class StorageDatabasecenterPartnerapiV1mainBackupConfiguration extends \Google\Model
{
/**
* Whether customer visible automated backups are enabled on the instance.
*
* @var bool
*/
public $automatedBackupEnabled;
protected $backupRetentionSettingsType = StorageDatabasecenterPartnerapiV1mainRetentionSettings::class;
protected $backupRetentionSettingsDataType = '';
/**
* Whether point-in-time recovery is enabled. This is optional field, if the
* database service does not have this feature or metadata is not available in
* control plane, this can be omitted.
*
* @var bool
*/
public $pointInTimeRecoveryEnabled;
/**
* Whether customer visible automated backups are enabled on the instance.
*
* @param bool $automatedBackupEnabled
*/
public function setAutomatedBackupEnabled($automatedBackupEnabled)
{
$this->automatedBackupEnabled = $automatedBackupEnabled;
}
/**
* @return bool
*/
public function getAutomatedBackupEnabled()
{
return $this->automatedBackupEnabled;
}
/**
* Backup retention settings.
*
* @param StorageDatabasecenterPartnerapiV1mainRetentionSettings $backupRetentionSettings
*/
public function setBackupRetentionSettings(StorageDatabasecenterPartnerapiV1mainRetentionSettings $backupRetentionSettings)
{
$this->backupRetentionSettings = $backupRetentionSettings;
}
/**
* @return StorageDatabasecenterPartnerapiV1mainRetentionSettings
*/
public function getBackupRetentionSettings()
{
return $this->backupRetentionSettings;
}
/**
* Whether point-in-time recovery is enabled. This is optional field, if the
* database service does not have this feature or metadata is not available in
* control plane, this can be omitted.
*
* @param bool $pointInTimeRecoveryEnabled
*/
public function setPointInTimeRecoveryEnabled($pointInTimeRecoveryEnabled)
{
$this->pointInTimeRecoveryEnabled = $pointInTimeRecoveryEnabled;
}
/**
* @return bool
*/
public function getPointInTimeRecoveryEnabled()
{
return $this->pointInTimeRecoveryEnabled;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(StorageDatabasecenterPartnerapiV1mainBackupConfiguration::class, 'Google_Service_CloudAlloyDBAdmin_StorageDatabasecenterPartnerapiV1mainBackupConfiguration');

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\CloudAlloyDBAdmin;
class StorageDatabasecenterPartnerapiV1mainBackupDRConfiguration extends \Google\Model
{
/**
* Indicates if the resource is managed by BackupDR.
*
* @var bool
*/
public $backupdrManaged;
/**
* Indicates if the resource is managed by BackupDR.
*
* @param bool $backupdrManaged
*/
public function setBackupdrManaged($backupdrManaged)
{
$this->backupdrManaged = $backupdrManaged;
}
/**
* @return bool
*/
public function getBackupdrManaged()
{
return $this->backupdrManaged;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(StorageDatabasecenterPartnerapiV1mainBackupDRConfiguration::class, 'Google_Service_CloudAlloyDBAdmin_StorageDatabasecenterPartnerapiV1mainBackupDRConfiguration');

View File

@@ -0,0 +1,142 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudAlloyDBAdmin;
class StorageDatabasecenterPartnerapiV1mainBackupDRMetadata extends \Google\Model
{
protected $backupConfigurationType = StorageDatabasecenterPartnerapiV1mainBackupConfiguration::class;
protected $backupConfigurationDataType = '';
protected $backupRunType = StorageDatabasecenterPartnerapiV1mainBackupRun::class;
protected $backupRunDataType = '';
protected $backupdrConfigurationType = StorageDatabasecenterPartnerapiV1mainBackupDRConfiguration::class;
protected $backupdrConfigurationDataType = '';
/**
* Required. Full resource name of this instance.
*
* @var string
*/
public $fullResourceName;
/**
* Required. Last time backup configuration was refreshed.
*
* @var string
*/
public $lastRefreshTime;
protected $resourceIdType = StorageDatabasecenterPartnerapiV1mainDatabaseResourceId::class;
protected $resourceIdDataType = '';
/**
* Backup configuration for this instance.
*
* @param StorageDatabasecenterPartnerapiV1mainBackupConfiguration $backupConfiguration
*/
public function setBackupConfiguration(StorageDatabasecenterPartnerapiV1mainBackupConfiguration $backupConfiguration)
{
$this->backupConfiguration = $backupConfiguration;
}
/**
* @return StorageDatabasecenterPartnerapiV1mainBackupConfiguration
*/
public function getBackupConfiguration()
{
return $this->backupConfiguration;
}
/**
* Latest backup run information for this instance.
*
* @param StorageDatabasecenterPartnerapiV1mainBackupRun $backupRun
*/
public function setBackupRun(StorageDatabasecenterPartnerapiV1mainBackupRun $backupRun)
{
$this->backupRun = $backupRun;
}
/**
* @return StorageDatabasecenterPartnerapiV1mainBackupRun
*/
public function getBackupRun()
{
return $this->backupRun;
}
/**
* BackupDR configuration for this instance.
*
* @param StorageDatabasecenterPartnerapiV1mainBackupDRConfiguration $backupdrConfiguration
*/
public function setBackupdrConfiguration(StorageDatabasecenterPartnerapiV1mainBackupDRConfiguration $backupdrConfiguration)
{
$this->backupdrConfiguration = $backupdrConfiguration;
}
/**
* @return StorageDatabasecenterPartnerapiV1mainBackupDRConfiguration
*/
public function getBackupdrConfiguration()
{
return $this->backupdrConfiguration;
}
/**
* Required. Full resource name of this instance.
*
* @param string $fullResourceName
*/
public function setFullResourceName($fullResourceName)
{
$this->fullResourceName = $fullResourceName;
}
/**
* @return string
*/
public function getFullResourceName()
{
return $this->fullResourceName;
}
/**
* Required. Last time backup configuration was refreshed.
*
* @param string $lastRefreshTime
*/
public function setLastRefreshTime($lastRefreshTime)
{
$this->lastRefreshTime = $lastRefreshTime;
}
/**
* @return string
*/
public function getLastRefreshTime()
{
return $this->lastRefreshTime;
}
/**
* Required. Database resource id.
*
* @param StorageDatabasecenterPartnerapiV1mainDatabaseResourceId $resourceId
*/
public function setResourceId(StorageDatabasecenterPartnerapiV1mainDatabaseResourceId $resourceId)
{
$this->resourceId = $resourceId;
}
/**
* @return StorageDatabasecenterPartnerapiV1mainDatabaseResourceId
*/
public function getResourceId()
{
return $this->resourceId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(StorageDatabasecenterPartnerapiV1mainBackupDRMetadata::class, 'Google_Service_CloudAlloyDBAdmin_StorageDatabasecenterPartnerapiV1mainBackupDRMetadata');

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\CloudAlloyDBAdmin;
class StorageDatabasecenterPartnerapiV1mainBackupRun extends \Google\Model
{
public const STATUS_STATUS_UNSPECIFIED = 'STATUS_UNSPECIFIED';
/**
* The backup was successful.
*/
public const STATUS_SUCCESSFUL = 'SUCCESSFUL';
/**
* The backup was unsuccessful.
*/
public const STATUS_FAILED = 'FAILED';
/**
* The time the backup operation completed. REQUIRED
*
* @var string
*/
public $endTime;
protected $errorType = StorageDatabasecenterPartnerapiV1mainOperationError::class;
protected $errorDataType = '';
/**
* The time the backup operation started. REQUIRED
*
* @var string
*/
public $startTime;
/**
* The status of this run. REQUIRED
*
* @var string
*/
public $status;
/**
* The time the backup operation completed. REQUIRED
*
* @param string $endTime
*/
public function setEndTime($endTime)
{
$this->endTime = $endTime;
}
/**
* @return string
*/
public function getEndTime()
{
return $this->endTime;
}
/**
* Information about why the backup operation failed. This is only present if
* the run has the FAILED status. OPTIONAL
*
* @param StorageDatabasecenterPartnerapiV1mainOperationError $error
*/
public function setError(StorageDatabasecenterPartnerapiV1mainOperationError $error)
{
$this->error = $error;
}
/**
* @return StorageDatabasecenterPartnerapiV1mainOperationError
*/
public function getError()
{
return $this->error;
}
/**
* The time the backup operation started. REQUIRED
*
* @param string $startTime
*/
public function setStartTime($startTime)
{
$this->startTime = $startTime;
}
/**
* @return string
*/
public function getStartTime()
{
return $this->startTime;
}
/**
* The status of this run. REQUIRED
*
* Accepted values: STATUS_UNSPECIFIED, SUCCESSFUL, FAILED
*
* @param self::STATUS_* $status
*/
public function setStatus($status)
{
$this->status = $status;
}
/**
* @return self::STATUS_*
*/
public function getStatus()
{
return $this->status;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(StorageDatabasecenterPartnerapiV1mainBackupRun::class, 'Google_Service_CloudAlloyDBAdmin_StorageDatabasecenterPartnerapiV1mainBackupRun');

View File

@@ -0,0 +1,198 @@
<?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\CloudAlloyDBAdmin;
class StorageDatabasecenterPartnerapiV1mainBigQueryResourceMetadata extends \Google\Model
{
/**
* The creation time of the resource, i.e. the time when resource is created
* and recorded in partner service.
*
* @var string
*/
public $createTime;
/**
* Required. Full resource name of this instance.
*
* @var string
*/
public $fullResourceName;
/**
* Required. location of the resource
*
* @var string
*/
public $location;
protected $productType = StorageDatabasecenterProtoCommonProduct::class;
protected $productDataType = '';
/**
* Closest parent Cloud Resource Manager container of this resource. It must
* be resource name of a Cloud Resource Manager project with the format of
* "/", such as "projects/123". For GCP provided resources, number should be
* project number.
*
* @var string
*/
public $resourceContainer;
protected $resourceIdType = StorageDatabasecenterPartnerapiV1mainDatabaseResourceId::class;
protected $resourceIdDataType = '';
/**
* The time at which the resource was updated and recorded at partner service.
*
* @var string
*/
public $updateTime;
protected $userLabelSetType = StorageDatabasecenterPartnerapiV1mainUserLabels::class;
protected $userLabelSetDataType = '';
/**
* The creation time of the resource, i.e. the time when resource is created
* and recorded in partner service.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* Required. Full resource name of this instance.
*
* @param string $fullResourceName
*/
public function setFullResourceName($fullResourceName)
{
$this->fullResourceName = $fullResourceName;
}
/**
* @return string
*/
public function getFullResourceName()
{
return $this->fullResourceName;
}
/**
* Required. location of the resource
*
* @param string $location
*/
public function setLocation($location)
{
$this->location = $location;
}
/**
* @return string
*/
public function getLocation()
{
return $this->location;
}
/**
* The product this resource represents.
*
* @param StorageDatabasecenterProtoCommonProduct $product
*/
public function setProduct(StorageDatabasecenterProtoCommonProduct $product)
{
$this->product = $product;
}
/**
* @return StorageDatabasecenterProtoCommonProduct
*/
public function getProduct()
{
return $this->product;
}
/**
* Closest parent Cloud Resource Manager container of this resource. It must
* be resource name of a Cloud Resource Manager project with the format of
* "/", such as "projects/123". For GCP provided resources, number should be
* project number.
*
* @param string $resourceContainer
*/
public function setResourceContainer($resourceContainer)
{
$this->resourceContainer = $resourceContainer;
}
/**
* @return string
*/
public function getResourceContainer()
{
return $this->resourceContainer;
}
/**
* Required. Database resource id.
*
* @param StorageDatabasecenterPartnerapiV1mainDatabaseResourceId $resourceId
*/
public function setResourceId(StorageDatabasecenterPartnerapiV1mainDatabaseResourceId $resourceId)
{
$this->resourceId = $resourceId;
}
/**
* @return StorageDatabasecenterPartnerapiV1mainDatabaseResourceId
*/
public function getResourceId()
{
return $this->resourceId;
}
/**
* The time at which the resource was updated and recorded at partner service.
*
* @param string $updateTime
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
/**
* User-provided labels associated with the resource
*
* @param StorageDatabasecenterPartnerapiV1mainUserLabels $userLabelSet
*/
public function setUserLabelSet(StorageDatabasecenterPartnerapiV1mainUserLabels $userLabelSet)
{
$this->userLabelSet = $userLabelSet;
}
/**
* @return StorageDatabasecenterPartnerapiV1mainUserLabels
*/
public function getUserLabelSet()
{
return $this->userLabelSet;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(StorageDatabasecenterPartnerapiV1mainBigQueryResourceMetadata::class, 'Google_Service_CloudAlloyDBAdmin_StorageDatabasecenterPartnerapiV1mainBigQueryResourceMetadata');

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