Debian Codegraph @

docs/dyn/alloydb_v1.projects.locations.clusters.html

raw
1 <html><body>
2 <style>
3
4 body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13 }
14
15 body {
16 font-size: 13px;
17 padding: 1em;
18 }
19
20 h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23 }
24
25 h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28 }
29
30 h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34 }
35
36 pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39 }
40
41 pre {
42 margin-top: 0.5em;
43 }
44
45 h1, h2, h3, p {
46 font-family: Arial, sans serif;
47 }
48
49 h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51 }
52
53 .toc_element {
54 margin-top: 0.5em;
55 }
56
57 .firstline {
58 margin-left: 2 em;
59 }
60
61 .method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66 }
67
68 .details {
69 font-weight: bold;
70 font-size: 14px;
71 }
72
73 </style>
74
75 <h1><a href="alloydb_v1.html">AlloyDB API</a> . <a href="alloydb_v1.projects.html">projects</a> . <a href="alloydb_v1.projects.locations.html">locations</a> . <a href="alloydb_v1.projects.locations.clusters.html">clusters</a></h1>
76 <h2>Instance Methods</h2>
77 <p class="toc_element">
78 <code><a href="alloydb_v1.projects.locations.clusters.instances.html">instances()</a></code>
79 </p>
80 <p class="firstline">Returns the instances Resource.</p>
81
82 <p class="toc_element">
83 <code><a href="alloydb_v1.projects.locations.clusters.users.html">users()</a></code>
84 </p>
85 <p class="firstline">Returns the users Resource.</p>
86
87 <p class="toc_element">
88 <code><a href="#close">close()</a></code></p>
89 <p class="firstline">Close httplib2 connections.</p>
90 <p class="toc_element">
91 <code><a href="#create">create(parent, body=None, clusterId=None, requestId=None, validateOnly=None, x__xgafv=None)</a></code></p>
92 <p class="firstline">Creates a new Cluster in a given project and location.</p>
93 <p class="toc_element">
94 <code><a href="#createsecondary">createsecondary(parent, body=None, clusterId=None, requestId=None, validateOnly=None, x__xgafv=None)</a></code></p>
95 <p class="firstline">Creates a cluster of type SECONDARY in the given location using the primary cluster as the source.</p>
96 <p class="toc_element">
97 <code><a href="#delete">delete(name, etag=None, force=None, requestId=None, validateOnly=None, x__xgafv=None)</a></code></p>
98 <p class="firstline">Deletes a single Cluster.</p>
99 <p class="toc_element">
100 <code><a href="#export">export(name, body=None, x__xgafv=None)</a></code></p>
101 <p class="firstline">Exports data from the cluster. Imperative only.</p>
102 <p class="toc_element">
103 <code><a href="#get">get(name, view=None, x__xgafv=None)</a></code></p>
104 <p class="firstline">Gets details of a single Cluster.</p>
105 <p class="toc_element">
106 <code><a href="#import_">import_(name, body=None, x__xgafv=None)</a></code></p>
107 <p class="firstline">Imports data to the cluster. Imperative only.</p>
108 <p class="toc_element">
109 <code><a href="#list">list(parent, filter=None, orderBy=None, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
110 <p class="firstline">Lists Clusters in a given project and location.</p>
111 <p class="toc_element">
112 <code><a href="#list_next">list_next()</a></code></p>
113 <p class="firstline">Retrieves the next page of results.</p>
114 <p class="toc_element">
115 <code><a href="#patch">patch(name, allowMissing=None, body=None, requestId=None, updateMask=None, validateOnly=None, x__xgafv=None)</a></code></p>
116 <p class="firstline">Updates the parameters of a single Cluster.</p>
117 <p class="toc_element">
118 <code><a href="#promote">promote(name, body=None, x__xgafv=None)</a></code></p>
119 <p class="firstline">Promotes a SECONDARY cluster. This turns down replication from the PRIMARY cluster and promotes a secondary cluster into its own standalone cluster. Imperative only.</p>
120 <p class="toc_element">
121 <code><a href="#restore">restore(parent, body=None, x__xgafv=None)</a></code></p>
122 <p class="firstline">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.</p>
123 <p class="toc_element">
124 <code><a href="#restoreFromCloudSQL">restoreFromCloudSQL(parent, body=None, x__xgafv=None)</a></code></p>
125 <p class="firstline">Restores an AlloyDB cluster from a CloudSQL resource.</p>
126 <p class="toc_element">
127 <code><a href="#switchover">switchover(name, body=None, x__xgafv=None)</a></code></p>
128 <p class="firstline">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.</p>
129 <p class="toc_element">
130 <code><a href="#upgrade">upgrade(name, body=None, x__xgafv=None)</a></code></p>
131 <p class="firstline">Upgrades a single Cluster. Imperative only.</p>
132 <h3>Method Details</h3>
133 <div class="method">
134 <code class="details" id="close">close()</code>
135 <pre>Close httplib2 connections.</pre>
136 </div>
137
138 <div class="method">
139 <code class="details" id="create">create(parent, body=None, clusterId=None, requestId=None, validateOnly=None, x__xgafv=None)</code>
140 <pre>Creates a new Cluster in a given project and location.
141
142 Args:
143 parent: string, Required. The location of the new cluster. For the required format, see the comment on the Cluster.name field. (required)
144 body: object, The request body.
145 The object takes the form of:
146
147 { # A cluster is a collection of regional AlloyDB resources. It can include a primary instance and one or more read pool instances. All cluster resources share a storage layer, which scales as needed.
148 &quot;annotations&quot;: { # Annotations to allow client tools to store small amount of arbitrary data. This is distinct from labels. https://google.aip.dev/128
149 &quot;a_key&quot;: &quot;A String&quot;,
150 },
151 &quot;automatedBackupPolicy&quot;: { # Message describing the user-specified automated backup policy. All fields in the automated backup policy are optional. Defaults for each field are provided if they are not set. # 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.
152 &quot;backupWindow&quot;: &quot;A String&quot;, # 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.
153 &quot;enabled&quot;: True or False, # Whether automated automated backups are enabled. If not set, defaults to true.
154 &quot;encryptionConfig&quot;: { # EncryptionConfig describes the encryption config of a cluster or a backup that is encrypted with a CMEK (customer-managed encryption key). # 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&#x27;s encryption config.
155 &quot;kmsKeyName&quot;: &quot;A String&quot;, # 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]
156 },
157 &quot;labels&quot;: { # Labels to apply to backups created using this configuration.
158 &quot;a_key&quot;: &quot;A String&quot;,
159 },
160 &quot;location&quot;: &quot;A String&quot;, # 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.
161 &quot;quantityBasedRetention&quot;: { # A quantity based policy specifies that a certain number of the most recent successful backups should be retained. # Quantity-based Backup retention policy to retain recent backups.
162 &quot;count&quot;: 42, # The number of backups to retain.
163 },
164 &quot;timeBasedRetention&quot;: { # A time based retention policy specifies that all backups within a certain time period should be retained. # Time-based Backup retention policy.
165 &quot;retentionPeriod&quot;: &quot;A String&quot;, # The retention period.
166 },
167 &quot;weeklySchedule&quot;: { # A weekly schedule starts a backup at prescribed start times within a day, for the specified days of the week. The weekly schedule message is flexible and can be used to create many types of schedules. For example, to have a daily backup that starts at 22:00, configure the `start_times` field to have one element &quot;22:00&quot; and the `days_of_week` field to have all seven days of the week. # Weekly schedule for the Backup.
168 &quot;daysOfWeek&quot;: [ # The days of the week to perform a backup. If this field is left empty, the default of every day of the week is used.
169 &quot;A String&quot;,
170 ],
171 &quot;startTimes&quot;: [ # The times during the day to start a backup. The start times are assumed to be in UTC and to be an exact hour (e.g., 04:00:00). If no start times are provided, a single fixed start time is chosen arbitrarily.
172 { # Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date and `google.protobuf.Timestamp`.
173 &quot;hours&quot;: 42, # 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 &quot;24:00:00&quot; for scenarios like business closing time.
174 &quot;minutes&quot;: 42, # Minutes of an hour. Must be greater than or equal to 0 and less than or equal to 59.
175 &quot;nanos&quot;: 42, # Fractions of seconds, in nanoseconds. Must be greater than or equal to 0 and less than or equal to 999,999,999.
176 &quot;seconds&quot;: 42, # 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.
177 },
178 ],
179 },
180 },
181 &quot;backupSource&quot;: { # Message describing a BackupSource. # Output only. Cluster created from backup.
182 &quot;backupName&quot;: &quot;A String&quot;, # Required. The name of the backup resource with the format: * projects/{project}/locations/{region}/backups/{backup_id}
183 &quot;backupUid&quot;: &quot;A String&quot;, # 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.
184 },
185 &quot;backupdrBackupSource&quot;: { # Message describing a BackupDrBackupSource. # Output only. Cluster created from a BackupDR backup.
186 &quot;backup&quot;: &quot;A String&quot;, # Required. The name of the backup resource with the format: * projects/{project}/locations/{location}/backupVaults/{backupvault_id}/dataSources/{datasource_id}/backups/{backup_id}
187 },
188 &quot;backupdrInfo&quot;: { # Information about BackupDR protection for this cluster. # Output only. Output only information about BackupDR protection for this cluster.
189 &quot;currentWindow&quot;: { # Information about a single window when BackupDR was enabled for this cluster. # The current BackupDR configuration for this cluster. If BackupDR protection is not enabled for this cluster, this field will be empty.
190 &quot;automatedBackupPreviouslyEnabled&quot;: True or False, # Whether automated backup was previously enabled prior to enabling BackupDR protection for this cluster.
191 &quot;backupPlanAssociation&quot;: &quot;A String&quot;, # The BackupPlanAssociation resource that was used to enable BackupDR protection for this cluster.
192 &quot;continuousBackupPreviousRecoveryWindowDays&quot;: 42, # The retention set for the continuous backup that was previously enabled prior to enabling BackupDR protection for this cluster.
193 &quot;continuousBackupPreviouslyEnabled&quot;: True or False, # Whether continuous backup was previously enabled prior to enabling BackupDR protection for this cluster.
194 &quot;continuousBackupPreviouslyEnabledTime&quot;: &quot;A String&quot;, # The time when continuous backup was previously enabled prior to enabling BackupDR protection for this cluster.
195 &quot;dataSource&quot;: &quot;A String&quot;, # The DataSource resource that represents the cluster in BackupDR.
196 &quot;disabledTime&quot;: &quot;A String&quot;, # Time when the BackupDR protection for this cluster was disabled. This field will be empty if this BackupDR window is the `current_window`.
197 &quot;enabledTime&quot;: &quot;A String&quot;, # Time when the BackupDR protection for this cluster was enabled.
198 &quot;logRetentionPeriod&quot;: &quot;A String&quot;, # The retention period for logs generated by BackupDR for this cluster.
199 },
200 &quot;previousWindows&quot;: [ # 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.
201 { # Information about a single window when BackupDR was enabled for this cluster.
202 &quot;automatedBackupPreviouslyEnabled&quot;: True or False, # Whether automated backup was previously enabled prior to enabling BackupDR protection for this cluster.
203 &quot;backupPlanAssociation&quot;: &quot;A String&quot;, # The BackupPlanAssociation resource that was used to enable BackupDR protection for this cluster.
204 &quot;continuousBackupPreviousRecoveryWindowDays&quot;: 42, # The retention set for the continuous backup that was previously enabled prior to enabling BackupDR protection for this cluster.
205 &quot;continuousBackupPreviouslyEnabled&quot;: True or False, # Whether continuous backup was previously enabled prior to enabling BackupDR protection for this cluster.
206 &quot;continuousBackupPreviouslyEnabledTime&quot;: &quot;A String&quot;, # The time when continuous backup was previously enabled prior to enabling BackupDR protection for this cluster.
207 &quot;dataSource&quot;: &quot;A String&quot;, # The DataSource resource that represents the cluster in BackupDR.
208 &quot;disabledTime&quot;: &quot;A String&quot;, # Time when the BackupDR protection for this cluster was disabled. This field will be empty if this BackupDR window is the `current_window`.
209 &quot;enabledTime&quot;: &quot;A String&quot;, # Time when the BackupDR protection for this cluster was enabled.
210 &quot;logRetentionPeriod&quot;: &quot;A String&quot;, # The retention period for logs generated by BackupDR for this cluster.
211 },
212 ],
213 },
214 &quot;cloudsqlBackupRunSource&quot;: { # The source CloudSQL backup resource. # Output only. Cluster created from CloudSQL snapshot.
215 &quot;backupRunId&quot;: &quot;A String&quot;, # Required. The CloudSQL backup run ID.
216 &quot;instanceId&quot;: &quot;A String&quot;, # Required. The CloudSQL instance ID.
217 &quot;project&quot;: &quot;A String&quot;, # The project ID of the source CloudSQL instance. This should be the same as the AlloyDB cluster&#x27;s project.
218 },
219 &quot;clusterType&quot;: &quot;A String&quot;, # Output only. The type of the cluster. This is an output-only field and it&#x27;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`
220 &quot;continuousBackupConfig&quot;: { # ContinuousBackupConfig describes the continuous backups recovery configurations of a cluster. # Optional. Continuous backup configuration for this cluster.
221 &quot;enabled&quot;: True or False, # Whether ContinuousBackup is enabled.
222 &quot;encryptionConfig&quot;: { # EncryptionConfig describes the encryption config of a cluster or a backup that is encrypted with a CMEK (customer-managed encryption key). # 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&#x27;s encryption config.
223 &quot;kmsKeyName&quot;: &quot;A String&quot;, # 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]
224 },
225 &quot;recoveryWindowDays&quot;: 42, # 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.
226 },
227 &quot;continuousBackupInfo&quot;: { # ContinuousBackupInfo describes the continuous backup properties of a cluster. # Output only. Continuous backup properties for this cluster.
228 &quot;earliestRestorableTime&quot;: &quot;A String&quot;, # 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&#x27;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 &quot;now minus the recovery window&quot;. 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.
229 &quot;enabledTime&quot;: &quot;A String&quot;, # Output only. When ContinuousBackup was most recently enabled. Set to null if ContinuousBackup is not enabled.
230 &quot;encryptionInfo&quot;: { # EncryptionInfo describes the encryption information of a cluster or a backup. # Output only. The encryption information for the WALs and backups required for ContinuousBackup.
231 &quot;encryptionType&quot;: &quot;A String&quot;, # Output only. Type of encryption.
232 &quot;kmsKeyVersions&quot;: [ # Output only. Cloud KMS key versions that are being used to protect the database or the backup.
233 &quot;A String&quot;,
234 ],
235 },
236 &quot;schedule&quot;: [ # Output only. Days of the week on which a continuous backup is taken.
237 &quot;A String&quot;,
238 ],
239 },
240 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Create time stamp
241 &quot;databaseVersion&quot;: &quot;A String&quot;, # 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.
242 &quot;dataplexConfig&quot;: { # Configuration for Dataplex integration. # Optional. Configuration for Dataplex integration.
243 &quot;enabled&quot;: True or False, # 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.&quot;
244 },
245 &quot;deleteTime&quot;: &quot;A String&quot;, # Output only. Delete time stamp
246 &quot;displayName&quot;: &quot;A String&quot;, # User-settable and human-readable display name for the Cluster.
247 &quot;encryptionConfig&quot;: { # EncryptionConfig describes the encryption config of a cluster or a backup that is encrypted with a CMEK (customer-managed encryption key). # 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.
248 &quot;kmsKeyName&quot;: &quot;A String&quot;, # 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]
249 },
250 &quot;encryptionInfo&quot;: { # EncryptionInfo describes the encryption information of a cluster or a backup. # Output only. The encryption information for the cluster.
251 &quot;encryptionType&quot;: &quot;A String&quot;, # Output only. Type of encryption.
252 &quot;kmsKeyVersions&quot;: [ # Output only. Cloud KMS key versions that are being used to protect the database or the backup.
253 &quot;A String&quot;,
254 ],
255 },
256 &quot;etag&quot;: &quot;A String&quot;, # For Resource freshness validation (https://google.aip.dev/154)
257 &quot;initialUser&quot;: { # The username/password for a database user. Used for specifying initial users at cluster creation time. # Input only. Initial user to setup during cluster creation. Required. If used in `RestoreCluster` this is ignored.
258 &quot;password&quot;: &quot;A String&quot;, # The initial password for the user.
259 &quot;user&quot;: &quot;A String&quot;, # The database username.
260 },
261 &quot;labels&quot;: { # Labels as key value pairs
262 &quot;a_key&quot;: &quot;A String&quot;,
263 },
264 &quot;maintenanceSchedule&quot;: { # MaintenanceSchedule stores the maintenance schedule generated from the MaintenanceUpdatePolicy, once a maintenance rollout is triggered, if MaintenanceWindow is set, and if there is no conflicting DenyPeriod. The schedule is cleared once the update takes place. This field cannot be manually changed; modify the MaintenanceUpdatePolicy instead. # Output only. The maintenance schedule for the cluster, generated for a specific rollout if a maintenance window is set.
265 &quot;startTime&quot;: &quot;A String&quot;, # Output only. The scheduled start time for the maintenance.
266 },
267 &quot;maintenanceUpdatePolicy&quot;: { # MaintenanceUpdatePolicy defines the policy for system updates. # Optional. The maintenance update policy determines when to allow or deny updates.
268 &quot;denyMaintenancePeriods&quot;: [ # Periods to deny maintenance. Currently limited to 1.
269 { # DenyMaintenancePeriod definition. Excepting emergencies, maintenance will not be scheduled to start within this deny period. The start_date must be less than the end_date.
270 &quot;endDate&quot;: { # Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp # 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
271 &quot;day&quot;: 42, # 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&#x27;t significant.
272 &quot;month&quot;: 42, # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
273 &quot;year&quot;: 42, # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
274 },
275 &quot;startDate&quot;: { # Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp # 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
276 &quot;day&quot;: 42, # 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&#x27;t significant.
277 &quot;month&quot;: 42, # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
278 &quot;year&quot;: 42, # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
279 },
280 &quot;time&quot;: { # Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date and `google.protobuf.Timestamp`. # 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
281 &quot;hours&quot;: 42, # 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 &quot;24:00:00&quot; for scenarios like business closing time.
282 &quot;minutes&quot;: 42, # Minutes of an hour. Must be greater than or equal to 0 and less than or equal to 59.
283 &quot;nanos&quot;: 42, # Fractions of seconds, in nanoseconds. Must be greater than or equal to 0 and less than or equal to 999,999,999.
284 &quot;seconds&quot;: 42, # 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.
285 },
286 },
287 ],
288 &quot;maintenanceWindows&quot;: [ # Preferred windows to perform maintenance. Currently limited to 1.
289 { # MaintenanceWindow specifies a preferred day and time for maintenance.
290 &quot;day&quot;: &quot;A String&quot;, # Preferred day of the week for maintenance, e.g. MONDAY, TUESDAY, etc.
291 &quot;startTime&quot;: { # Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date and `google.protobuf.Timestamp`. # Preferred time to start the maintenance operation on the specified day. Maintenance will start within 1 hour of this time.
292 &quot;hours&quot;: 42, # 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 &quot;24:00:00&quot; for scenarios like business closing time.
293 &quot;minutes&quot;: 42, # Minutes of an hour. Must be greater than or equal to 0 and less than or equal to 59.
294 &quot;nanos&quot;: 42, # Fractions of seconds, in nanoseconds. Must be greater than or equal to 0 and less than or equal to 999,999,999.
295 &quot;seconds&quot;: 42, # 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.
296 },
297 },
298 ],
299 },
300 &quot;maintenanceVersionSelectionPolicy&quot;: &quot;A String&quot;, # Input only. Policy to use to automatically select the maintenance version to which to update the cluster&#x27;s instances.
301 &quot;migrationSource&quot;: { # Subset of the source instance configuration that is available when reading the cluster resource. # Output only. Cluster created via DMS migration.
302 &quot;hostPort&quot;: &quot;A String&quot;, # Output only. The host and port of the on-premises instance in host:port format
303 &quot;referenceId&quot;: &quot;A String&quot;, # Output only. Place holder for the external source identifier(e.g DMS job name) that created the cluster.
304 &quot;sourceType&quot;: &quot;A String&quot;, # Output only. Type of migration source.
305 },
306 &quot;name&quot;: &quot;A String&quot;, # 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}
307 &quot;network&quot;: &quot;A String&quot;, # 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.
308 &quot;networkConfig&quot;: { # Metadata related to network configuration.
309 &quot;allocatedIpRange&quot;: &quot;A String&quot;, # Optional. Name of the allocated IP range for the private IP AlloyDB cluster, for example: &quot;google-managed-services-default&quot;. 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.
310 &quot;network&quot;: &quot;A String&quot;, # 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.
311 },
312 &quot;primaryConfig&quot;: { # Configuration for the primary cluster. It has the list of clusters that are replicating from this cluster. This should be set if and only if the cluster is of type PRIMARY. # Output only. Cross Region replication config specific to PRIMARY cluster.
313 &quot;secondaryClusterNames&quot;: [ # Output only. Names of the clusters that are replicating from this cluster.
314 &quot;A String&quot;,
315 ],
316 },
317 &quot;pscConfig&quot;: { # PscConfig contains PSC related configuration at a cluster level. # Optional. The configuration for Private Service Connect (PSC) for the cluster.
318 &quot;pscEnabled&quot;: True or False, # Optional. Create an instance that allows connections from Private Service Connect endpoints to the instance.
319 &quot;serviceOwnedProjectNumber&quot;: &quot;A String&quot;, # Output only. The project number that needs to be allowlisted on the network attachment to enable outbound connectivity.
320 },
321 &quot;reconciling&quot;: True or False, # Output only. Reconciling (https://google.aip.dev/128#reconciliation). Set to true if the current state of Cluster does not match the user&#x27;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.
322 &quot;satisfiesPzs&quot;: True or False, # Output only. Reserved for future use.
323 &quot;secondaryConfig&quot;: { # Configuration information for the secondary cluster. This should be set if and only if the cluster is of type SECONDARY. # Cross Region replication config specific to SECONDARY cluster.
324 &quot;primaryClusterName&quot;: &quot;A String&quot;, # The name of the primary cluster name with the format: * projects/{project}/locations/{region}/clusters/{cluster_id}
325 },
326 &quot;sslConfig&quot;: { # SSL configuration. # SSL configuration for this AlloyDB cluster.
327 &quot;caSource&quot;: &quot;A String&quot;, # Optional. Certificate Authority (CA) source. Only CA_SOURCE_MANAGED is supported currently, and is the default value.
328 &quot;sslMode&quot;: &quot;A String&quot;, # Optional. SSL mode. Specifies client-server SSL/TLS connection behavior.
329 },
330 &quot;state&quot;: &quot;A String&quot;, # Output only. The current serving state of the cluster.
331 &quot;subscriptionType&quot;: &quot;A String&quot;, # Optional. Subscription type of the cluster.
332 &quot;tags&quot;: { # Optional. Input only. Immutable. Tag keys/values directly bound to this resource. For example: ``` &quot;123/environment&quot;: &quot;production&quot;, &quot;123/costCenter&quot;: &quot;marketing&quot; ```
333 &quot;a_key&quot;: &quot;A String&quot;,
334 },
335 &quot;trialMetadata&quot;: { # Contains information and all metadata related to TRIAL clusters. # Output only. Metadata for free trial clusters
336 &quot;endTime&quot;: &quot;A String&quot;, # End time of the trial cluster.
337 &quot;graceEndTime&quot;: &quot;A String&quot;, # grace end time of the cluster.
338 &quot;startTime&quot;: &quot;A String&quot;, # start time of the trial cluster.
339 &quot;upgradeTime&quot;: &quot;A String&quot;, # Upgrade time of trial cluster to Standard cluster.
340 },
341 &quot;uid&quot;: &quot;A String&quot;, # 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.
342 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Update time stamp
343 }
344
345 clusterId: string, Required. ID of the requesting object.
346 requestId: string, 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).
347 validateOnly: boolean, Optional. If set, performs request validation, for example, permission checks and any other type of validation, but does not actually execute the create request.
348 x__xgafv: string, V1 error format.
349 Allowed values
350 1 - v1 error format
351 2 - v2 error format
352
353 Returns:
354 An object of the form:
355
356 { # This resource represents a long-running operation that is the result of a network API call.
357 &quot;done&quot;: True or False, # 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.
358 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
359 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
360 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
361 {
362 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
363 },
364 ],
365 &quot;message&quot;: &quot;A String&quot;, # 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.
366 },
367 &quot;metadata&quot;: { # 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.
368 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
369 },
370 &quot;name&quot;: &quot;A String&quot;, # 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}`.
371 &quot;response&quot;: { # 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`.
372 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
373 },
374 }</pre>
375 </div>
376
377 <div class="method">
378 <code class="details" id="createsecondary">createsecondary(parent, body=None, clusterId=None, requestId=None, validateOnly=None, x__xgafv=None)</code>
379 <pre>Creates a cluster of type SECONDARY in the given location using the primary cluster as the source.
380
381 Args:
382 parent: string, Required. The location of the new cluster. For the required format, see the comment on the Cluster.name field. (required)
383 body: object, The request body.
384 The object takes the form of:
385
386 { # A cluster is a collection of regional AlloyDB resources. It can include a primary instance and one or more read pool instances. All cluster resources share a storage layer, which scales as needed.
387 &quot;annotations&quot;: { # Annotations to allow client tools to store small amount of arbitrary data. This is distinct from labels. https://google.aip.dev/128
388 &quot;a_key&quot;: &quot;A String&quot;,
389 },
390 &quot;automatedBackupPolicy&quot;: { # Message describing the user-specified automated backup policy. All fields in the automated backup policy are optional. Defaults for each field are provided if they are not set. # 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.
391 &quot;backupWindow&quot;: &quot;A String&quot;, # 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.
392 &quot;enabled&quot;: True or False, # Whether automated automated backups are enabled. If not set, defaults to true.
393 &quot;encryptionConfig&quot;: { # EncryptionConfig describes the encryption config of a cluster or a backup that is encrypted with a CMEK (customer-managed encryption key). # 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&#x27;s encryption config.
394 &quot;kmsKeyName&quot;: &quot;A String&quot;, # 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]
395 },
396 &quot;labels&quot;: { # Labels to apply to backups created using this configuration.
397 &quot;a_key&quot;: &quot;A String&quot;,
398 },
399 &quot;location&quot;: &quot;A String&quot;, # 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.
400 &quot;quantityBasedRetention&quot;: { # A quantity based policy specifies that a certain number of the most recent successful backups should be retained. # Quantity-based Backup retention policy to retain recent backups.
401 &quot;count&quot;: 42, # The number of backups to retain.
402 },
403 &quot;timeBasedRetention&quot;: { # A time based retention policy specifies that all backups within a certain time period should be retained. # Time-based Backup retention policy.
404 &quot;retentionPeriod&quot;: &quot;A String&quot;, # The retention period.
405 },
406 &quot;weeklySchedule&quot;: { # A weekly schedule starts a backup at prescribed start times within a day, for the specified days of the week. The weekly schedule message is flexible and can be used to create many types of schedules. For example, to have a daily backup that starts at 22:00, configure the `start_times` field to have one element &quot;22:00&quot; and the `days_of_week` field to have all seven days of the week. # Weekly schedule for the Backup.
407 &quot;daysOfWeek&quot;: [ # The days of the week to perform a backup. If this field is left empty, the default of every day of the week is used.
408 &quot;A String&quot;,
409 ],
410 &quot;startTimes&quot;: [ # The times during the day to start a backup. The start times are assumed to be in UTC and to be an exact hour (e.g., 04:00:00). If no start times are provided, a single fixed start time is chosen arbitrarily.
411 { # Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date and `google.protobuf.Timestamp`.
412 &quot;hours&quot;: 42, # 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 &quot;24:00:00&quot; for scenarios like business closing time.
413 &quot;minutes&quot;: 42, # Minutes of an hour. Must be greater than or equal to 0 and less than or equal to 59.
414 &quot;nanos&quot;: 42, # Fractions of seconds, in nanoseconds. Must be greater than or equal to 0 and less than or equal to 999,999,999.
415 &quot;seconds&quot;: 42, # 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.
416 },
417 ],
418 },
419 },
420 &quot;backupSource&quot;: { # Message describing a BackupSource. # Output only. Cluster created from backup.
421 &quot;backupName&quot;: &quot;A String&quot;, # Required. The name of the backup resource with the format: * projects/{project}/locations/{region}/backups/{backup_id}
422 &quot;backupUid&quot;: &quot;A String&quot;, # 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.
423 },
424 &quot;backupdrBackupSource&quot;: { # Message describing a BackupDrBackupSource. # Output only. Cluster created from a BackupDR backup.
425 &quot;backup&quot;: &quot;A String&quot;, # Required. The name of the backup resource with the format: * projects/{project}/locations/{location}/backupVaults/{backupvault_id}/dataSources/{datasource_id}/backups/{backup_id}
426 },
427 &quot;backupdrInfo&quot;: { # Information about BackupDR protection for this cluster. # Output only. Output only information about BackupDR protection for this cluster.
428 &quot;currentWindow&quot;: { # Information about a single window when BackupDR was enabled for this cluster. # The current BackupDR configuration for this cluster. If BackupDR protection is not enabled for this cluster, this field will be empty.
429 &quot;automatedBackupPreviouslyEnabled&quot;: True or False, # Whether automated backup was previously enabled prior to enabling BackupDR protection for this cluster.
430 &quot;backupPlanAssociation&quot;: &quot;A String&quot;, # The BackupPlanAssociation resource that was used to enable BackupDR protection for this cluster.
431 &quot;continuousBackupPreviousRecoveryWindowDays&quot;: 42, # The retention set for the continuous backup that was previously enabled prior to enabling BackupDR protection for this cluster.
432 &quot;continuousBackupPreviouslyEnabled&quot;: True or False, # Whether continuous backup was previously enabled prior to enabling BackupDR protection for this cluster.
433 &quot;continuousBackupPreviouslyEnabledTime&quot;: &quot;A String&quot;, # The time when continuous backup was previously enabled prior to enabling BackupDR protection for this cluster.
434 &quot;dataSource&quot;: &quot;A String&quot;, # The DataSource resource that represents the cluster in BackupDR.
435 &quot;disabledTime&quot;: &quot;A String&quot;, # Time when the BackupDR protection for this cluster was disabled. This field will be empty if this BackupDR window is the `current_window`.
436 &quot;enabledTime&quot;: &quot;A String&quot;, # Time when the BackupDR protection for this cluster was enabled.
437 &quot;logRetentionPeriod&quot;: &quot;A String&quot;, # The retention period for logs generated by BackupDR for this cluster.
438 },
439 &quot;previousWindows&quot;: [ # 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.
440 { # Information about a single window when BackupDR was enabled for this cluster.
441 &quot;automatedBackupPreviouslyEnabled&quot;: True or False, # Whether automated backup was previously enabled prior to enabling BackupDR protection for this cluster.
442 &quot;backupPlanAssociation&quot;: &quot;A String&quot;, # The BackupPlanAssociation resource that was used to enable BackupDR protection for this cluster.
443 &quot;continuousBackupPreviousRecoveryWindowDays&quot;: 42, # The retention set for the continuous backup that was previously enabled prior to enabling BackupDR protection for this cluster.
444 &quot;continuousBackupPreviouslyEnabled&quot;: True or False, # Whether continuous backup was previously enabled prior to enabling BackupDR protection for this cluster.
445 &quot;continuousBackupPreviouslyEnabledTime&quot;: &quot;A String&quot;, # The time when continuous backup was previously enabled prior to enabling BackupDR protection for this cluster.
446 &quot;dataSource&quot;: &quot;A String&quot;, # The DataSource resource that represents the cluster in BackupDR.
447 &quot;disabledTime&quot;: &quot;A String&quot;, # Time when the BackupDR protection for this cluster was disabled. This field will be empty if this BackupDR window is the `current_window`.
448 &quot;enabledTime&quot;: &quot;A String&quot;, # Time when the BackupDR protection for this cluster was enabled.
449 &quot;logRetentionPeriod&quot;: &quot;A String&quot;, # The retention period for logs generated by BackupDR for this cluster.
450 },
451 ],
452 },
453 &quot;cloudsqlBackupRunSource&quot;: { # The source CloudSQL backup resource. # Output only. Cluster created from CloudSQL snapshot.
454 &quot;backupRunId&quot;: &quot;A String&quot;, # Required. The CloudSQL backup run ID.
455 &quot;instanceId&quot;: &quot;A String&quot;, # Required. The CloudSQL instance ID.
456 &quot;project&quot;: &quot;A String&quot;, # The project ID of the source CloudSQL instance. This should be the same as the AlloyDB cluster&#x27;s project.
457 },
458 &quot;clusterType&quot;: &quot;A String&quot;, # Output only. The type of the cluster. This is an output-only field and it&#x27;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`
459 &quot;continuousBackupConfig&quot;: { # ContinuousBackupConfig describes the continuous backups recovery configurations of a cluster. # Optional. Continuous backup configuration for this cluster.
460 &quot;enabled&quot;: True or False, # Whether ContinuousBackup is enabled.
461 &quot;encryptionConfig&quot;: { # EncryptionConfig describes the encryption config of a cluster or a backup that is encrypted with a CMEK (customer-managed encryption key). # 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&#x27;s encryption config.
462 &quot;kmsKeyName&quot;: &quot;A String&quot;, # 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]
463 },
464 &quot;recoveryWindowDays&quot;: 42, # 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.
465 },
466 &quot;continuousBackupInfo&quot;: { # ContinuousBackupInfo describes the continuous backup properties of a cluster. # Output only. Continuous backup properties for this cluster.
467 &quot;earliestRestorableTime&quot;: &quot;A String&quot;, # 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&#x27;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 &quot;now minus the recovery window&quot;. 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.
468 &quot;enabledTime&quot;: &quot;A String&quot;, # Output only. When ContinuousBackup was most recently enabled. Set to null if ContinuousBackup is not enabled.
469 &quot;encryptionInfo&quot;: { # EncryptionInfo describes the encryption information of a cluster or a backup. # Output only. The encryption information for the WALs and backups required for ContinuousBackup.
470 &quot;encryptionType&quot;: &quot;A String&quot;, # Output only. Type of encryption.
471 &quot;kmsKeyVersions&quot;: [ # Output only. Cloud KMS key versions that are being used to protect the database or the backup.
472 &quot;A String&quot;,
473 ],
474 },
475 &quot;schedule&quot;: [ # Output only. Days of the week on which a continuous backup is taken.
476 &quot;A String&quot;,
477 ],
478 },
479 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Create time stamp
480 &quot;databaseVersion&quot;: &quot;A String&quot;, # 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.
481 &quot;dataplexConfig&quot;: { # Configuration for Dataplex integration. # Optional. Configuration for Dataplex integration.
482 &quot;enabled&quot;: True or False, # 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.&quot;
483 },
484 &quot;deleteTime&quot;: &quot;A String&quot;, # Output only. Delete time stamp
485 &quot;displayName&quot;: &quot;A String&quot;, # User-settable and human-readable display name for the Cluster.
486 &quot;encryptionConfig&quot;: { # EncryptionConfig describes the encryption config of a cluster or a backup that is encrypted with a CMEK (customer-managed encryption key). # 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.
487 &quot;kmsKeyName&quot;: &quot;A String&quot;, # 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]
488 },
489 &quot;encryptionInfo&quot;: { # EncryptionInfo describes the encryption information of a cluster or a backup. # Output only. The encryption information for the cluster.
490 &quot;encryptionType&quot;: &quot;A String&quot;, # Output only. Type of encryption.
491 &quot;kmsKeyVersions&quot;: [ # Output only. Cloud KMS key versions that are being used to protect the database or the backup.
492 &quot;A String&quot;,
493 ],
494 },
495 &quot;etag&quot;: &quot;A String&quot;, # For Resource freshness validation (https://google.aip.dev/154)
496 &quot;initialUser&quot;: { # The username/password for a database user. Used for specifying initial users at cluster creation time. # Input only. Initial user to setup during cluster creation. Required. If used in `RestoreCluster` this is ignored.
497 &quot;password&quot;: &quot;A String&quot;, # The initial password for the user.
498 &quot;user&quot;: &quot;A String&quot;, # The database username.
499 },
500 &quot;labels&quot;: { # Labels as key value pairs
501 &quot;a_key&quot;: &quot;A String&quot;,
502 },
503 &quot;maintenanceSchedule&quot;: { # MaintenanceSchedule stores the maintenance schedule generated from the MaintenanceUpdatePolicy, once a maintenance rollout is triggered, if MaintenanceWindow is set, and if there is no conflicting DenyPeriod. The schedule is cleared once the update takes place. This field cannot be manually changed; modify the MaintenanceUpdatePolicy instead. # Output only. The maintenance schedule for the cluster, generated for a specific rollout if a maintenance window is set.
504 &quot;startTime&quot;: &quot;A String&quot;, # Output only. The scheduled start time for the maintenance.
505 },
506 &quot;maintenanceUpdatePolicy&quot;: { # MaintenanceUpdatePolicy defines the policy for system updates. # Optional. The maintenance update policy determines when to allow or deny updates.
507 &quot;denyMaintenancePeriods&quot;: [ # Periods to deny maintenance. Currently limited to 1.
508 { # DenyMaintenancePeriod definition. Excepting emergencies, maintenance will not be scheduled to start within this deny period. The start_date must be less than the end_date.
509 &quot;endDate&quot;: { # Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp # 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
510 &quot;day&quot;: 42, # 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&#x27;t significant.
511 &quot;month&quot;: 42, # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
512 &quot;year&quot;: 42, # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
513 },
514 &quot;startDate&quot;: { # Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp # 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
515 &quot;day&quot;: 42, # 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&#x27;t significant.
516 &quot;month&quot;: 42, # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
517 &quot;year&quot;: 42, # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
518 },
519 &quot;time&quot;: { # Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date and `google.protobuf.Timestamp`. # 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
520 &quot;hours&quot;: 42, # 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 &quot;24:00:00&quot; for scenarios like business closing time.
521 &quot;minutes&quot;: 42, # Minutes of an hour. Must be greater than or equal to 0 and less than or equal to 59.
522 &quot;nanos&quot;: 42, # Fractions of seconds, in nanoseconds. Must be greater than or equal to 0 and less than or equal to 999,999,999.
523 &quot;seconds&quot;: 42, # 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.
524 },
525 },
526 ],
527 &quot;maintenanceWindows&quot;: [ # Preferred windows to perform maintenance. Currently limited to 1.
528 { # MaintenanceWindow specifies a preferred day and time for maintenance.
529 &quot;day&quot;: &quot;A String&quot;, # Preferred day of the week for maintenance, e.g. MONDAY, TUESDAY, etc.
530 &quot;startTime&quot;: { # Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date and `google.protobuf.Timestamp`. # Preferred time to start the maintenance operation on the specified day. Maintenance will start within 1 hour of this time.
531 &quot;hours&quot;: 42, # 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 &quot;24:00:00&quot; for scenarios like business closing time.
532 &quot;minutes&quot;: 42, # Minutes of an hour. Must be greater than or equal to 0 and less than or equal to 59.
533 &quot;nanos&quot;: 42, # Fractions of seconds, in nanoseconds. Must be greater than or equal to 0 and less than or equal to 999,999,999.
534 &quot;seconds&quot;: 42, # 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.
535 },
536 },
537 ],
538 },
539 &quot;maintenanceVersionSelectionPolicy&quot;: &quot;A String&quot;, # Input only. Policy to use to automatically select the maintenance version to which to update the cluster&#x27;s instances.
540 &quot;migrationSource&quot;: { # Subset of the source instance configuration that is available when reading the cluster resource. # Output only. Cluster created via DMS migration.
541 &quot;hostPort&quot;: &quot;A String&quot;, # Output only. The host and port of the on-premises instance in host:port format
542 &quot;referenceId&quot;: &quot;A String&quot;, # Output only. Place holder for the external source identifier(e.g DMS job name) that created the cluster.
543 &quot;sourceType&quot;: &quot;A String&quot;, # Output only. Type of migration source.
544 },
545 &quot;name&quot;: &quot;A String&quot;, # 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}
546 &quot;network&quot;: &quot;A String&quot;, # 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.
547 &quot;networkConfig&quot;: { # Metadata related to network configuration.
548 &quot;allocatedIpRange&quot;: &quot;A String&quot;, # Optional. Name of the allocated IP range for the private IP AlloyDB cluster, for example: &quot;google-managed-services-default&quot;. 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.
549 &quot;network&quot;: &quot;A String&quot;, # 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.
550 },
551 &quot;primaryConfig&quot;: { # Configuration for the primary cluster. It has the list of clusters that are replicating from this cluster. This should be set if and only if the cluster is of type PRIMARY. # Output only. Cross Region replication config specific to PRIMARY cluster.
552 &quot;secondaryClusterNames&quot;: [ # Output only. Names of the clusters that are replicating from this cluster.
553 &quot;A String&quot;,
554 ],
555 },
556 &quot;pscConfig&quot;: { # PscConfig contains PSC related configuration at a cluster level. # Optional. The configuration for Private Service Connect (PSC) for the cluster.
557 &quot;pscEnabled&quot;: True or False, # Optional. Create an instance that allows connections from Private Service Connect endpoints to the instance.
558 &quot;serviceOwnedProjectNumber&quot;: &quot;A String&quot;, # Output only. The project number that needs to be allowlisted on the network attachment to enable outbound connectivity.
559 },
560 &quot;reconciling&quot;: True or False, # Output only. Reconciling (https://google.aip.dev/128#reconciliation). Set to true if the current state of Cluster does not match the user&#x27;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.
561 &quot;satisfiesPzs&quot;: True or False, # Output only. Reserved for future use.
562 &quot;secondaryConfig&quot;: { # Configuration information for the secondary cluster. This should be set if and only if the cluster is of type SECONDARY. # Cross Region replication config specific to SECONDARY cluster.
563 &quot;primaryClusterName&quot;: &quot;A String&quot;, # The name of the primary cluster name with the format: * projects/{project}/locations/{region}/clusters/{cluster_id}
564 },
565 &quot;sslConfig&quot;: { # SSL configuration. # SSL configuration for this AlloyDB cluster.
566 &quot;caSource&quot;: &quot;A String&quot;, # Optional. Certificate Authority (CA) source. Only CA_SOURCE_MANAGED is supported currently, and is the default value.
567 &quot;sslMode&quot;: &quot;A String&quot;, # Optional. SSL mode. Specifies client-server SSL/TLS connection behavior.
568 },
569 &quot;state&quot;: &quot;A String&quot;, # Output only. The current serving state of the cluster.
570 &quot;subscriptionType&quot;: &quot;A String&quot;, # Optional. Subscription type of the cluster.
571 &quot;tags&quot;: { # Optional. Input only. Immutable. Tag keys/values directly bound to this resource. For example: ``` &quot;123/environment&quot;: &quot;production&quot;, &quot;123/costCenter&quot;: &quot;marketing&quot; ```
572 &quot;a_key&quot;: &quot;A String&quot;,
573 },
574 &quot;trialMetadata&quot;: { # Contains information and all metadata related to TRIAL clusters. # Output only. Metadata for free trial clusters
575 &quot;endTime&quot;: &quot;A String&quot;, # End time of the trial cluster.
576 &quot;graceEndTime&quot;: &quot;A String&quot;, # grace end time of the cluster.
577 &quot;startTime&quot;: &quot;A String&quot;, # start time of the trial cluster.
578 &quot;upgradeTime&quot;: &quot;A String&quot;, # Upgrade time of trial cluster to Standard cluster.
579 },
580 &quot;uid&quot;: &quot;A String&quot;, # 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.
581 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Update time stamp
582 }
583
584 clusterId: string, Required. ID of the requesting object (the secondary cluster).
585 requestId: string, 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).
586 validateOnly: boolean, Optional. If set, performs request validation, for example, permission checks and any other type of validation, but does not actually execute the create request.
587 x__xgafv: string, V1 error format.
588 Allowed values
589 1 - v1 error format
590 2 - v2 error format
591
592 Returns:
593 An object of the form:
594
595 { # This resource represents a long-running operation that is the result of a network API call.
596 &quot;done&quot;: True or False, # 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.
597 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
598 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
599 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
600 {
601 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
602 },
603 ],
604 &quot;message&quot;: &quot;A String&quot;, # 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.
605 },
606 &quot;metadata&quot;: { # 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.
607 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
608 },
609 &quot;name&quot;: &quot;A String&quot;, # 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}`.
610 &quot;response&quot;: { # 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`.
611 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
612 },
613 }</pre>
614 </div>
615
616 <div class="method">
617 <code class="details" id="delete">delete(name, etag=None, force=None, requestId=None, validateOnly=None, x__xgafv=None)</code>
618 <pre>Deletes a single Cluster.
619
620 Args:
621 name: string, Required. The name of the resource. For the required format, see the comment on the Cluster.name field. (required)
622 etag: string, 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.
623 force: boolean, Optional. Whether to cascade delete child instances for given cluster.
624 requestId: string, 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).
625 validateOnly: boolean, Optional. If set, performs request validation, for example, permission checks and any other type of validation, but does not actually execute the create request.
626 x__xgafv: string, V1 error format.
627 Allowed values
628 1 - v1 error format
629 2 - v2 error format
630
631 Returns:
632 An object of the form:
633
634 { # This resource represents a long-running operation that is the result of a network API call.
635 &quot;done&quot;: True or False, # 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.
636 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
637 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
638 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
639 {
640 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
641 },
642 ],
643 &quot;message&quot;: &quot;A String&quot;, # 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.
644 },
645 &quot;metadata&quot;: { # 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.
646 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
647 },
648 &quot;name&quot;: &quot;A String&quot;, # 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}`.
649 &quot;response&quot;: { # 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`.
650 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
651 },
652 }</pre>
653 </div>
654
655 <div class="method">
656 <code class="details" id="export">export(name, body=None, x__xgafv=None)</code>
657 <pre>Exports data from the cluster. Imperative only.
658
659 Args:
660 name: string, Required. The resource name of the cluster. (required)
661 body: object, The request body.
662 The object takes the form of:
663
664 { # Export cluster request.
665 &quot;csvExportOptions&quot;: { # Options for exporting data in CSV format. # Options for exporting data in CSV format. Required field to be set for CSV file type.
666 &quot;escapeCharacter&quot;: &quot;A String&quot;, # 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.
667 &quot;fieldDelimiter&quot;: &quot;A String&quot;, # 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.
668 &quot;quoteCharacter&quot;: &quot;A String&quot;, # 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.
669 &quot;selectQuery&quot;: &quot;A String&quot;, # Required. The SELECT query used to extract the data.
670 },
671 &quot;database&quot;: &quot;A String&quot;, # 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.
672 &quot;gcsDestination&quot;: { # Destination for Export. Export will be done to cloud storage. # Required. Option to export data to cloud storage.
673 &quot;uri&quot;: &quot;A String&quot;, # 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`.
674 },
675 &quot;sqlExportOptions&quot;: { # Options for exporting data in SQL format. # Options for exporting data in SQL format. Required field to be set for SQL file type.
676 &quot;cleanTargetObjects&quot;: True or False, # Optional. If true, output commands to DROP all the dumped database objects prior to outputting the commands for creating them.
677 &quot;ifExistTargetObjects&quot;: True or False, # Optional. If true, use DROP ... IF EXISTS commands to check for the object&#x27;s existence before dropping it in clean_target_objects mode.
678 &quot;schemaOnly&quot;: True or False, # Optional. If true, only export the schema.
679 &quot;tables&quot;: [ # Optional. Tables to export from.
680 &quot;A String&quot;,
681 ],
682 },
683 }
684
685 x__xgafv: string, V1 error format.
686 Allowed values
687 1 - v1 error format
688 2 - v2 error format
689
690 Returns:
691 An object of the form:
692
693 { # This resource represents a long-running operation that is the result of a network API call.
694 &quot;done&quot;: True or False, # 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.
695 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
696 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
697 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
698 {
699 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
700 },
701 ],
702 &quot;message&quot;: &quot;A String&quot;, # 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.
703 },
704 &quot;metadata&quot;: { # 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.
705 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
706 },
707 &quot;name&quot;: &quot;A String&quot;, # 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}`.
708 &quot;response&quot;: { # 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`.
709 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
710 },
711 }</pre>
712 </div>
713
714 <div class="method">
715 <code class="details" id="get">get(name, view=None, x__xgafv=None)</code>
716 <pre>Gets details of a single Cluster.
717
718 Args:
719 name: string, Required. The name of the resource. For the required format, see the comment on the Cluster.name field. (required)
720 view: string, Optional. The view of the cluster to return. Returns all default fields if not set.
721 Allowed values
722 CLUSTER_VIEW_UNSPECIFIED - CLUSTER_VIEW_UNSPECIFIED Not specified, equivalent to BASIC.
723 CLUSTER_VIEW_BASIC - BASIC server responses include all the relevant cluster details, excluding Cluster.ContinuousBackupInfo.EarliestRestorableTime and other view-specific fields. The default value.
724 CLUSTER_VIEW_CONTINUOUS_BACKUP - CONTINUOUS_BACKUP response returns all the fields from BASIC plus the earliest restorable time if continuous backups are enabled. May increase latency.
725 x__xgafv: string, V1 error format.
726 Allowed values
727 1 - v1 error format
728 2 - v2 error format
729
730 Returns:
731 An object of the form:
732
733 { # A cluster is a collection of regional AlloyDB resources. It can include a primary instance and one or more read pool instances. All cluster resources share a storage layer, which scales as needed.
734 &quot;annotations&quot;: { # Annotations to allow client tools to store small amount of arbitrary data. This is distinct from labels. https://google.aip.dev/128
735 &quot;a_key&quot;: &quot;A String&quot;,
736 },
737 &quot;automatedBackupPolicy&quot;: { # Message describing the user-specified automated backup policy. All fields in the automated backup policy are optional. Defaults for each field are provided if they are not set. # 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.
738 &quot;backupWindow&quot;: &quot;A String&quot;, # 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.
739 &quot;enabled&quot;: True or False, # Whether automated automated backups are enabled. If not set, defaults to true.
740 &quot;encryptionConfig&quot;: { # EncryptionConfig describes the encryption config of a cluster or a backup that is encrypted with a CMEK (customer-managed encryption key). # 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&#x27;s encryption config.
741 &quot;kmsKeyName&quot;: &quot;A String&quot;, # 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]
742 },
743 &quot;labels&quot;: { # Labels to apply to backups created using this configuration.
744 &quot;a_key&quot;: &quot;A String&quot;,
745 },
746 &quot;location&quot;: &quot;A String&quot;, # 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.
747 &quot;quantityBasedRetention&quot;: { # A quantity based policy specifies that a certain number of the most recent successful backups should be retained. # Quantity-based Backup retention policy to retain recent backups.
748 &quot;count&quot;: 42, # The number of backups to retain.
749 },
750 &quot;timeBasedRetention&quot;: { # A time based retention policy specifies that all backups within a certain time period should be retained. # Time-based Backup retention policy.
751 &quot;retentionPeriod&quot;: &quot;A String&quot;, # The retention period.
752 },
753 &quot;weeklySchedule&quot;: { # A weekly schedule starts a backup at prescribed start times within a day, for the specified days of the week. The weekly schedule message is flexible and can be used to create many types of schedules. For example, to have a daily backup that starts at 22:00, configure the `start_times` field to have one element &quot;22:00&quot; and the `days_of_week` field to have all seven days of the week. # Weekly schedule for the Backup.
754 &quot;daysOfWeek&quot;: [ # The days of the week to perform a backup. If this field is left empty, the default of every day of the week is used.
755 &quot;A String&quot;,
756 ],
757 &quot;startTimes&quot;: [ # The times during the day to start a backup. The start times are assumed to be in UTC and to be an exact hour (e.g., 04:00:00). If no start times are provided, a single fixed start time is chosen arbitrarily.
758 { # Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date and `google.protobuf.Timestamp`.
759 &quot;hours&quot;: 42, # 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 &quot;24:00:00&quot; for scenarios like business closing time.
760 &quot;minutes&quot;: 42, # Minutes of an hour. Must be greater than or equal to 0 and less than or equal to 59.
761 &quot;nanos&quot;: 42, # Fractions of seconds, in nanoseconds. Must be greater than or equal to 0 and less than or equal to 999,999,999.
762 &quot;seconds&quot;: 42, # 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.
763 },
764 ],
765 },
766 },
767 &quot;backupSource&quot;: { # Message describing a BackupSource. # Output only. Cluster created from backup.
768 &quot;backupName&quot;: &quot;A String&quot;, # Required. The name of the backup resource with the format: * projects/{project}/locations/{region}/backups/{backup_id}
769 &quot;backupUid&quot;: &quot;A String&quot;, # 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.
770 },
771 &quot;backupdrBackupSource&quot;: { # Message describing a BackupDrBackupSource. # Output only. Cluster created from a BackupDR backup.
772 &quot;backup&quot;: &quot;A String&quot;, # Required. The name of the backup resource with the format: * projects/{project}/locations/{location}/backupVaults/{backupvault_id}/dataSources/{datasource_id}/backups/{backup_id}
773 },
774 &quot;backupdrInfo&quot;: { # Information about BackupDR protection for this cluster. # Output only. Output only information about BackupDR protection for this cluster.
775 &quot;currentWindow&quot;: { # Information about a single window when BackupDR was enabled for this cluster. # The current BackupDR configuration for this cluster. If BackupDR protection is not enabled for this cluster, this field will be empty.
776 &quot;automatedBackupPreviouslyEnabled&quot;: True or False, # Whether automated backup was previously enabled prior to enabling BackupDR protection for this cluster.
777 &quot;backupPlanAssociation&quot;: &quot;A String&quot;, # The BackupPlanAssociation resource that was used to enable BackupDR protection for this cluster.
778 &quot;continuousBackupPreviousRecoveryWindowDays&quot;: 42, # The retention set for the continuous backup that was previously enabled prior to enabling BackupDR protection for this cluster.
779 &quot;continuousBackupPreviouslyEnabled&quot;: True or False, # Whether continuous backup was previously enabled prior to enabling BackupDR protection for this cluster.
780 &quot;continuousBackupPreviouslyEnabledTime&quot;: &quot;A String&quot;, # The time when continuous backup was previously enabled prior to enabling BackupDR protection for this cluster.
781 &quot;dataSource&quot;: &quot;A String&quot;, # The DataSource resource that represents the cluster in BackupDR.
782 &quot;disabledTime&quot;: &quot;A String&quot;, # Time when the BackupDR protection for this cluster was disabled. This field will be empty if this BackupDR window is the `current_window`.
783 &quot;enabledTime&quot;: &quot;A String&quot;, # Time when the BackupDR protection for this cluster was enabled.
784 &quot;logRetentionPeriod&quot;: &quot;A String&quot;, # The retention period for logs generated by BackupDR for this cluster.
785 },
786 &quot;previousWindows&quot;: [ # 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.
787 { # Information about a single window when BackupDR was enabled for this cluster.
788 &quot;automatedBackupPreviouslyEnabled&quot;: True or False, # Whether automated backup was previously enabled prior to enabling BackupDR protection for this cluster.
789 &quot;backupPlanAssociation&quot;: &quot;A String&quot;, # The BackupPlanAssociation resource that was used to enable BackupDR protection for this cluster.
790 &quot;continuousBackupPreviousRecoveryWindowDays&quot;: 42, # The retention set for the continuous backup that was previously enabled prior to enabling BackupDR protection for this cluster.
791 &quot;continuousBackupPreviouslyEnabled&quot;: True or False, # Whether continuous backup was previously enabled prior to enabling BackupDR protection for this cluster.
792 &quot;continuousBackupPreviouslyEnabledTime&quot;: &quot;A String&quot;, # The time when continuous backup was previously enabled prior to enabling BackupDR protection for this cluster.
793 &quot;dataSource&quot;: &quot;A String&quot;, # The DataSource resource that represents the cluster in BackupDR.
794 &quot;disabledTime&quot;: &quot;A String&quot;, # Time when the BackupDR protection for this cluster was disabled. This field will be empty if this BackupDR window is the `current_window`.
795 &quot;enabledTime&quot;: &quot;A String&quot;, # Time when the BackupDR protection for this cluster was enabled.
796 &quot;logRetentionPeriod&quot;: &quot;A String&quot;, # The retention period for logs generated by BackupDR for this cluster.
797 },
798 ],
799 },
800 &quot;cloudsqlBackupRunSource&quot;: { # The source CloudSQL backup resource. # Output only. Cluster created from CloudSQL snapshot.
801 &quot;backupRunId&quot;: &quot;A String&quot;, # Required. The CloudSQL backup run ID.
802 &quot;instanceId&quot;: &quot;A String&quot;, # Required. The CloudSQL instance ID.
803 &quot;project&quot;: &quot;A String&quot;, # The project ID of the source CloudSQL instance. This should be the same as the AlloyDB cluster&#x27;s project.
804 },
805 &quot;clusterType&quot;: &quot;A String&quot;, # Output only. The type of the cluster. This is an output-only field and it&#x27;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`
806 &quot;continuousBackupConfig&quot;: { # ContinuousBackupConfig describes the continuous backups recovery configurations of a cluster. # Optional. Continuous backup configuration for this cluster.
807 &quot;enabled&quot;: True or False, # Whether ContinuousBackup is enabled.
808 &quot;encryptionConfig&quot;: { # EncryptionConfig describes the encryption config of a cluster or a backup that is encrypted with a CMEK (customer-managed encryption key). # 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&#x27;s encryption config.
809 &quot;kmsKeyName&quot;: &quot;A String&quot;, # 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]
810 },
811 &quot;recoveryWindowDays&quot;: 42, # 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.
812 },
813 &quot;continuousBackupInfo&quot;: { # ContinuousBackupInfo describes the continuous backup properties of a cluster. # Output only. Continuous backup properties for this cluster.
814 &quot;earliestRestorableTime&quot;: &quot;A String&quot;, # 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&#x27;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 &quot;now minus the recovery window&quot;. 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.
815 &quot;enabledTime&quot;: &quot;A String&quot;, # Output only. When ContinuousBackup was most recently enabled. Set to null if ContinuousBackup is not enabled.
816 &quot;encryptionInfo&quot;: { # EncryptionInfo describes the encryption information of a cluster or a backup. # Output only. The encryption information for the WALs and backups required for ContinuousBackup.
817 &quot;encryptionType&quot;: &quot;A String&quot;, # Output only. Type of encryption.
818 &quot;kmsKeyVersions&quot;: [ # Output only. Cloud KMS key versions that are being used to protect the database or the backup.
819 &quot;A String&quot;,
820 ],
821 },
822 &quot;schedule&quot;: [ # Output only. Days of the week on which a continuous backup is taken.
823 &quot;A String&quot;,
824 ],
825 },
826 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Create time stamp
827 &quot;databaseVersion&quot;: &quot;A String&quot;, # 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.
828 &quot;dataplexConfig&quot;: { # Configuration for Dataplex integration. # Optional. Configuration for Dataplex integration.
829 &quot;enabled&quot;: True or False, # 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.&quot;
830 },
831 &quot;deleteTime&quot;: &quot;A String&quot;, # Output only. Delete time stamp
832 &quot;displayName&quot;: &quot;A String&quot;, # User-settable and human-readable display name for the Cluster.
833 &quot;encryptionConfig&quot;: { # EncryptionConfig describes the encryption config of a cluster or a backup that is encrypted with a CMEK (customer-managed encryption key). # 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.
834 &quot;kmsKeyName&quot;: &quot;A String&quot;, # 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]
835 },
836 &quot;encryptionInfo&quot;: { # EncryptionInfo describes the encryption information of a cluster or a backup. # Output only. The encryption information for the cluster.
837 &quot;encryptionType&quot;: &quot;A String&quot;, # Output only. Type of encryption.
838 &quot;kmsKeyVersions&quot;: [ # Output only. Cloud KMS key versions that are being used to protect the database or the backup.
839 &quot;A String&quot;,
840 ],
841 },
842 &quot;etag&quot;: &quot;A String&quot;, # For Resource freshness validation (https://google.aip.dev/154)
843 &quot;initialUser&quot;: { # The username/password for a database user. Used for specifying initial users at cluster creation time. # Input only. Initial user to setup during cluster creation. Required. If used in `RestoreCluster` this is ignored.
844 &quot;password&quot;: &quot;A String&quot;, # The initial password for the user.
845 &quot;user&quot;: &quot;A String&quot;, # The database username.
846 },
847 &quot;labels&quot;: { # Labels as key value pairs
848 &quot;a_key&quot;: &quot;A String&quot;,
849 },
850 &quot;maintenanceSchedule&quot;: { # MaintenanceSchedule stores the maintenance schedule generated from the MaintenanceUpdatePolicy, once a maintenance rollout is triggered, if MaintenanceWindow is set, and if there is no conflicting DenyPeriod. The schedule is cleared once the update takes place. This field cannot be manually changed; modify the MaintenanceUpdatePolicy instead. # Output only. The maintenance schedule for the cluster, generated for a specific rollout if a maintenance window is set.
851 &quot;startTime&quot;: &quot;A String&quot;, # Output only. The scheduled start time for the maintenance.
852 },
853 &quot;maintenanceUpdatePolicy&quot;: { # MaintenanceUpdatePolicy defines the policy for system updates. # Optional. The maintenance update policy determines when to allow or deny updates.
854 &quot;denyMaintenancePeriods&quot;: [ # Periods to deny maintenance. Currently limited to 1.
855 { # DenyMaintenancePeriod definition. Excepting emergencies, maintenance will not be scheduled to start within this deny period. The start_date must be less than the end_date.
856 &quot;endDate&quot;: { # Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp # 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
857 &quot;day&quot;: 42, # 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&#x27;t significant.
858 &quot;month&quot;: 42, # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
859 &quot;year&quot;: 42, # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
860 },
861 &quot;startDate&quot;: { # Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp # 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
862 &quot;day&quot;: 42, # 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&#x27;t significant.
863 &quot;month&quot;: 42, # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
864 &quot;year&quot;: 42, # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
865 },
866 &quot;time&quot;: { # Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date and `google.protobuf.Timestamp`. # 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
867 &quot;hours&quot;: 42, # 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 &quot;24:00:00&quot; for scenarios like business closing time.
868 &quot;minutes&quot;: 42, # Minutes of an hour. Must be greater than or equal to 0 and less than or equal to 59.
869 &quot;nanos&quot;: 42, # Fractions of seconds, in nanoseconds. Must be greater than or equal to 0 and less than or equal to 999,999,999.
870 &quot;seconds&quot;: 42, # 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.
871 },
872 },
873 ],
874 &quot;maintenanceWindows&quot;: [ # Preferred windows to perform maintenance. Currently limited to 1.
875 { # MaintenanceWindow specifies a preferred day and time for maintenance.
876 &quot;day&quot;: &quot;A String&quot;, # Preferred day of the week for maintenance, e.g. MONDAY, TUESDAY, etc.
877 &quot;startTime&quot;: { # Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date and `google.protobuf.Timestamp`. # Preferred time to start the maintenance operation on the specified day. Maintenance will start within 1 hour of this time.
878 &quot;hours&quot;: 42, # 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 &quot;24:00:00&quot; for scenarios like business closing time.
879 &quot;minutes&quot;: 42, # Minutes of an hour. Must be greater than or equal to 0 and less than or equal to 59.
880 &quot;nanos&quot;: 42, # Fractions of seconds, in nanoseconds. Must be greater than or equal to 0 and less than or equal to 999,999,999.
881 &quot;seconds&quot;: 42, # 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.
882 },
883 },
884 ],
885 },
886 &quot;maintenanceVersionSelectionPolicy&quot;: &quot;A String&quot;, # Input only. Policy to use to automatically select the maintenance version to which to update the cluster&#x27;s instances.
887 &quot;migrationSource&quot;: { # Subset of the source instance configuration that is available when reading the cluster resource. # Output only. Cluster created via DMS migration.
888 &quot;hostPort&quot;: &quot;A String&quot;, # Output only. The host and port of the on-premises instance in host:port format
889 &quot;referenceId&quot;: &quot;A String&quot;, # Output only. Place holder for the external source identifier(e.g DMS job name) that created the cluster.
890 &quot;sourceType&quot;: &quot;A String&quot;, # Output only. Type of migration source.
891 },
892 &quot;name&quot;: &quot;A String&quot;, # 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}
893 &quot;network&quot;: &quot;A String&quot;, # 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.
894 &quot;networkConfig&quot;: { # Metadata related to network configuration.
895 &quot;allocatedIpRange&quot;: &quot;A String&quot;, # Optional. Name of the allocated IP range for the private IP AlloyDB cluster, for example: &quot;google-managed-services-default&quot;. 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.
896 &quot;network&quot;: &quot;A String&quot;, # 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.
897 },
898 &quot;primaryConfig&quot;: { # Configuration for the primary cluster. It has the list of clusters that are replicating from this cluster. This should be set if and only if the cluster is of type PRIMARY. # Output only. Cross Region replication config specific to PRIMARY cluster.
899 &quot;secondaryClusterNames&quot;: [ # Output only. Names of the clusters that are replicating from this cluster.
900 &quot;A String&quot;,
901 ],
902 },
903 &quot;pscConfig&quot;: { # PscConfig contains PSC related configuration at a cluster level. # Optional. The configuration for Private Service Connect (PSC) for the cluster.
904 &quot;pscEnabled&quot;: True or False, # Optional. Create an instance that allows connections from Private Service Connect endpoints to the instance.
905 &quot;serviceOwnedProjectNumber&quot;: &quot;A String&quot;, # Output only. The project number that needs to be allowlisted on the network attachment to enable outbound connectivity.
906 },
907 &quot;reconciling&quot;: True or False, # Output only. Reconciling (https://google.aip.dev/128#reconciliation). Set to true if the current state of Cluster does not match the user&#x27;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.
908 &quot;satisfiesPzs&quot;: True or False, # Output only. Reserved for future use.
909 &quot;secondaryConfig&quot;: { # Configuration information for the secondary cluster. This should be set if and only if the cluster is of type SECONDARY. # Cross Region replication config specific to SECONDARY cluster.
910 &quot;primaryClusterName&quot;: &quot;A String&quot;, # The name of the primary cluster name with the format: * projects/{project}/locations/{region}/clusters/{cluster_id}
911 },
912 &quot;sslConfig&quot;: { # SSL configuration. # SSL configuration for this AlloyDB cluster.
913 &quot;caSource&quot;: &quot;A String&quot;, # Optional. Certificate Authority (CA) source. Only CA_SOURCE_MANAGED is supported currently, and is the default value.
914 &quot;sslMode&quot;: &quot;A String&quot;, # Optional. SSL mode. Specifies client-server SSL/TLS connection behavior.
915 },
916 &quot;state&quot;: &quot;A String&quot;, # Output only. The current serving state of the cluster.
917 &quot;subscriptionType&quot;: &quot;A String&quot;, # Optional. Subscription type of the cluster.
918 &quot;tags&quot;: { # Optional. Input only. Immutable. Tag keys/values directly bound to this resource. For example: ``` &quot;123/environment&quot;: &quot;production&quot;, &quot;123/costCenter&quot;: &quot;marketing&quot; ```
919 &quot;a_key&quot;: &quot;A String&quot;,
920 },
921 &quot;trialMetadata&quot;: { # Contains information and all metadata related to TRIAL clusters. # Output only. Metadata for free trial clusters
922 &quot;endTime&quot;: &quot;A String&quot;, # End time of the trial cluster.
923 &quot;graceEndTime&quot;: &quot;A String&quot;, # grace end time of the cluster.
924 &quot;startTime&quot;: &quot;A String&quot;, # start time of the trial cluster.
925 &quot;upgradeTime&quot;: &quot;A String&quot;, # Upgrade time of trial cluster to Standard cluster.
926 },
927 &quot;uid&quot;: &quot;A String&quot;, # 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.
928 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Update time stamp
929 }</pre>
930 </div>
931
932 <div class="method">
933 <code class="details" id="import_">import_(name, body=None, x__xgafv=None)</code>
934 <pre>Imports data to the cluster. Imperative only.
935
936 Args:
937 name: string, Required. The resource name of the cluster. (required)
938 body: object, The request body.
939 The object takes the form of:
940
941 { # Import cluster request.
942 &quot;csvImportOptions&quot;: { # Options for importing data in CSV format. # Options for importing data in CSV format.
943 &quot;columns&quot;: [ # Optional. The columns to which CSV data is imported. If not specified, all columns of the database table are loaded with CSV data.
944 &quot;A String&quot;,
945 ],
946 &quot;escapeCharacter&quot;: &quot;A String&quot;, # 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.
947 &quot;fieldDelimiter&quot;: &quot;A String&quot;, # 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.
948 &quot;quoteCharacter&quot;: &quot;A String&quot;, # 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.
949 &quot;table&quot;: &quot;A String&quot;, # Required. The database table to import CSV file into.
950 },
951 &quot;database&quot;: &quot;A String&quot;, # 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.
952 &quot;gcsUri&quot;: &quot;A String&quot;, # 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`.
953 &quot;sqlImportOptions&quot;: { # Options for importing data in SQL format. # Options for importing data in SQL format.
954 },
955 &quot;user&quot;: &quot;A String&quot;, # 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.
956 }
957
958 x__xgafv: string, V1 error format.
959 Allowed values
960 1 - v1 error format
961 2 - v2 error format
962
963 Returns:
964 An object of the form:
965
966 { # This resource represents a long-running operation that is the result of a network API call.
967 &quot;done&quot;: True or False, # 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.
968 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
969 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
970 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
971 {
972 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
973 },
974 ],
975 &quot;message&quot;: &quot;A String&quot;, # 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.
976 },
977 &quot;metadata&quot;: { # 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.
978 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
979 },
980 &quot;name&quot;: &quot;A String&quot;, # 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}`.
981 &quot;response&quot;: { # 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`.
982 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
983 },
984 }</pre>
985 </div>
986
987 <div class="method">
988 <code class="details" id="list">list(parent, filter=None, orderBy=None, pageSize=None, pageToken=None, x__xgafv=None)</code>
989 <pre>Lists Clusters in a given project and location.
990
991 Args:
992 parent: string, 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/- (required)
993 filter: string, Optional. Filtering results
994 orderBy: string, Optional. Hint for how to order the results
995 pageSize: integer, Optional. Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.
996 pageToken: string, A token identifying a page of results the server should return.
997 x__xgafv: string, V1 error format.
998 Allowed values
999 1 - v1 error format
1000 2 - v2 error format
1001
1002 Returns:
1003 An object of the form:
1004
1005 { # Message for response to listing Clusters
1006 &quot;clusters&quot;: [ # The list of Cluster
1007 { # A cluster is a collection of regional AlloyDB resources. It can include a primary instance and one or more read pool instances. All cluster resources share a storage layer, which scales as needed.
1008 &quot;annotations&quot;: { # Annotations to allow client tools to store small amount of arbitrary data. This is distinct from labels. https://google.aip.dev/128
1009 &quot;a_key&quot;: &quot;A String&quot;,
1010 },
1011 &quot;automatedBackupPolicy&quot;: { # Message describing the user-specified automated backup policy. All fields in the automated backup policy are optional. Defaults for each field are provided if they are not set. # 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.
1012 &quot;backupWindow&quot;: &quot;A String&quot;, # 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.
1013 &quot;enabled&quot;: True or False, # Whether automated automated backups are enabled. If not set, defaults to true.
1014 &quot;encryptionConfig&quot;: { # EncryptionConfig describes the encryption config of a cluster or a backup that is encrypted with a CMEK (customer-managed encryption key). # 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&#x27;s encryption config.
1015 &quot;kmsKeyName&quot;: &quot;A String&quot;, # 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]
1016 },
1017 &quot;labels&quot;: { # Labels to apply to backups created using this configuration.
1018 &quot;a_key&quot;: &quot;A String&quot;,
1019 },
1020 &quot;location&quot;: &quot;A String&quot;, # 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.
1021 &quot;quantityBasedRetention&quot;: { # A quantity based policy specifies that a certain number of the most recent successful backups should be retained. # Quantity-based Backup retention policy to retain recent backups.
1022 &quot;count&quot;: 42, # The number of backups to retain.
1023 },
1024 &quot;timeBasedRetention&quot;: { # A time based retention policy specifies that all backups within a certain time period should be retained. # Time-based Backup retention policy.
1025 &quot;retentionPeriod&quot;: &quot;A String&quot;, # The retention period.
1026 },
1027 &quot;weeklySchedule&quot;: { # A weekly schedule starts a backup at prescribed start times within a day, for the specified days of the week. The weekly schedule message is flexible and can be used to create many types of schedules. For example, to have a daily backup that starts at 22:00, configure the `start_times` field to have one element &quot;22:00&quot; and the `days_of_week` field to have all seven days of the week. # Weekly schedule for the Backup.
1028 &quot;daysOfWeek&quot;: [ # The days of the week to perform a backup. If this field is left empty, the default of every day of the week is used.
1029 &quot;A String&quot;,
1030 ],
1031 &quot;startTimes&quot;: [ # The times during the day to start a backup. The start times are assumed to be in UTC and to be an exact hour (e.g., 04:00:00). If no start times are provided, a single fixed start time is chosen arbitrarily.
1032 { # Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date and `google.protobuf.Timestamp`.
1033 &quot;hours&quot;: 42, # 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 &quot;24:00:00&quot; for scenarios like business closing time.
1034 &quot;minutes&quot;: 42, # Minutes of an hour. Must be greater than or equal to 0 and less than or equal to 59.
1035 &quot;nanos&quot;: 42, # Fractions of seconds, in nanoseconds. Must be greater than or equal to 0 and less than or equal to 999,999,999.
1036 &quot;seconds&quot;: 42, # 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.
1037 },
1038 ],
1039 },
1040 },
1041 &quot;backupSource&quot;: { # Message describing a BackupSource. # Output only. Cluster created from backup.
1042 &quot;backupName&quot;: &quot;A String&quot;, # Required. The name of the backup resource with the format: * projects/{project}/locations/{region}/backups/{backup_id}
1043 &quot;backupUid&quot;: &quot;A String&quot;, # 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.
1044 },
1045 &quot;backupdrBackupSource&quot;: { # Message describing a BackupDrBackupSource. # Output only. Cluster created from a BackupDR backup.
1046 &quot;backup&quot;: &quot;A String&quot;, # Required. The name of the backup resource with the format: * projects/{project}/locations/{location}/backupVaults/{backupvault_id}/dataSources/{datasource_id}/backups/{backup_id}
1047 },
1048 &quot;backupdrInfo&quot;: { # Information about BackupDR protection for this cluster. # Output only. Output only information about BackupDR protection for this cluster.
1049 &quot;currentWindow&quot;: { # Information about a single window when BackupDR was enabled for this cluster. # The current BackupDR configuration for this cluster. If BackupDR protection is not enabled for this cluster, this field will be empty.
1050 &quot;automatedBackupPreviouslyEnabled&quot;: True or False, # Whether automated backup was previously enabled prior to enabling BackupDR protection for this cluster.
1051 &quot;backupPlanAssociation&quot;: &quot;A String&quot;, # The BackupPlanAssociation resource that was used to enable BackupDR protection for this cluster.
1052 &quot;continuousBackupPreviousRecoveryWindowDays&quot;: 42, # The retention set for the continuous backup that was previously enabled prior to enabling BackupDR protection for this cluster.
1053 &quot;continuousBackupPreviouslyEnabled&quot;: True or False, # Whether continuous backup was previously enabled prior to enabling BackupDR protection for this cluster.
1054 &quot;continuousBackupPreviouslyEnabledTime&quot;: &quot;A String&quot;, # The time when continuous backup was previously enabled prior to enabling BackupDR protection for this cluster.
1055 &quot;dataSource&quot;: &quot;A String&quot;, # The DataSource resource that represents the cluster in BackupDR.
1056 &quot;disabledTime&quot;: &quot;A String&quot;, # Time when the BackupDR protection for this cluster was disabled. This field will be empty if this BackupDR window is the `current_window`.
1057 &quot;enabledTime&quot;: &quot;A String&quot;, # Time when the BackupDR protection for this cluster was enabled.
1058 &quot;logRetentionPeriod&quot;: &quot;A String&quot;, # The retention period for logs generated by BackupDR for this cluster.
1059 },
1060 &quot;previousWindows&quot;: [ # 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.
1061 { # Information about a single window when BackupDR was enabled for this cluster.
1062 &quot;automatedBackupPreviouslyEnabled&quot;: True or False, # Whether automated backup was previously enabled prior to enabling BackupDR protection for this cluster.
1063 &quot;backupPlanAssociation&quot;: &quot;A String&quot;, # The BackupPlanAssociation resource that was used to enable BackupDR protection for this cluster.
1064 &quot;continuousBackupPreviousRecoveryWindowDays&quot;: 42, # The retention set for the continuous backup that was previously enabled prior to enabling BackupDR protection for this cluster.
1065 &quot;continuousBackupPreviouslyEnabled&quot;: True or False, # Whether continuous backup was previously enabled prior to enabling BackupDR protection for this cluster.
1066 &quot;continuousBackupPreviouslyEnabledTime&quot;: &quot;A String&quot;, # The time when continuous backup was previously enabled prior to enabling BackupDR protection for this cluster.
1067 &quot;dataSource&quot;: &quot;A String&quot;, # The DataSource resource that represents the cluster in BackupDR.
1068 &quot;disabledTime&quot;: &quot;A String&quot;, # Time when the BackupDR protection for this cluster was disabled. This field will be empty if this BackupDR window is the `current_window`.
1069 &quot;enabledTime&quot;: &quot;A String&quot;, # Time when the BackupDR protection for this cluster was enabled.
1070 &quot;logRetentionPeriod&quot;: &quot;A String&quot;, # The retention period for logs generated by BackupDR for this cluster.
1071 },
1072 ],
1073 },
1074 &quot;cloudsqlBackupRunSource&quot;: { # The source CloudSQL backup resource. # Output only. Cluster created from CloudSQL snapshot.
1075 &quot;backupRunId&quot;: &quot;A String&quot;, # Required. The CloudSQL backup run ID.
1076 &quot;instanceId&quot;: &quot;A String&quot;, # Required. The CloudSQL instance ID.
1077 &quot;project&quot;: &quot;A String&quot;, # The project ID of the source CloudSQL instance. This should be the same as the AlloyDB cluster&#x27;s project.
1078 },
1079 &quot;clusterType&quot;: &quot;A String&quot;, # Output only. The type of the cluster. This is an output-only field and it&#x27;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`
1080 &quot;continuousBackupConfig&quot;: { # ContinuousBackupConfig describes the continuous backups recovery configurations of a cluster. # Optional. Continuous backup configuration for this cluster.
1081 &quot;enabled&quot;: True or False, # Whether ContinuousBackup is enabled.
1082 &quot;encryptionConfig&quot;: { # EncryptionConfig describes the encryption config of a cluster or a backup that is encrypted with a CMEK (customer-managed encryption key). # 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&#x27;s encryption config.
1083 &quot;kmsKeyName&quot;: &quot;A String&quot;, # 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]
1084 },
1085 &quot;recoveryWindowDays&quot;: 42, # 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.
1086 },
1087 &quot;continuousBackupInfo&quot;: { # ContinuousBackupInfo describes the continuous backup properties of a cluster. # Output only. Continuous backup properties for this cluster.
1088 &quot;earliestRestorableTime&quot;: &quot;A String&quot;, # 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&#x27;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 &quot;now minus the recovery window&quot;. 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.
1089 &quot;enabledTime&quot;: &quot;A String&quot;, # Output only. When ContinuousBackup was most recently enabled. Set to null if ContinuousBackup is not enabled.
1090 &quot;encryptionInfo&quot;: { # EncryptionInfo describes the encryption information of a cluster or a backup. # Output only. The encryption information for the WALs and backups required for ContinuousBackup.
1091 &quot;encryptionType&quot;: &quot;A String&quot;, # Output only. Type of encryption.
1092 &quot;kmsKeyVersions&quot;: [ # Output only. Cloud KMS key versions that are being used to protect the database or the backup.
1093 &quot;A String&quot;,
1094 ],
1095 },
1096 &quot;schedule&quot;: [ # Output only. Days of the week on which a continuous backup is taken.
1097 &quot;A String&quot;,
1098 ],
1099 },
1100 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Create time stamp
1101 &quot;databaseVersion&quot;: &quot;A String&quot;, # 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.
1102 &quot;dataplexConfig&quot;: { # Configuration for Dataplex integration. # Optional. Configuration for Dataplex integration.
1103 &quot;enabled&quot;: True or False, # 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.&quot;
1104 },
1105 &quot;deleteTime&quot;: &quot;A String&quot;, # Output only. Delete time stamp
1106 &quot;displayName&quot;: &quot;A String&quot;, # User-settable and human-readable display name for the Cluster.
1107 &quot;encryptionConfig&quot;: { # EncryptionConfig describes the encryption config of a cluster or a backup that is encrypted with a CMEK (customer-managed encryption key). # 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.
1108 &quot;kmsKeyName&quot;: &quot;A String&quot;, # 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]
1109 },
1110 &quot;encryptionInfo&quot;: { # EncryptionInfo describes the encryption information of a cluster or a backup. # Output only. The encryption information for the cluster.
1111 &quot;encryptionType&quot;: &quot;A String&quot;, # Output only. Type of encryption.
1112 &quot;kmsKeyVersions&quot;: [ # Output only. Cloud KMS key versions that are being used to protect the database or the backup.
1113 &quot;A String&quot;,
1114 ],
1115 },
1116 &quot;etag&quot;: &quot;A String&quot;, # For Resource freshness validation (https://google.aip.dev/154)
1117 &quot;initialUser&quot;: { # The username/password for a database user. Used for specifying initial users at cluster creation time. # Input only. Initial user to setup during cluster creation. Required. If used in `RestoreCluster` this is ignored.
1118 &quot;password&quot;: &quot;A String&quot;, # The initial password for the user.
1119 &quot;user&quot;: &quot;A String&quot;, # The database username.
1120 },
1121 &quot;labels&quot;: { # Labels as key value pairs
1122 &quot;a_key&quot;: &quot;A String&quot;,
1123 },
1124 &quot;maintenanceSchedule&quot;: { # MaintenanceSchedule stores the maintenance schedule generated from the MaintenanceUpdatePolicy, once a maintenance rollout is triggered, if MaintenanceWindow is set, and if there is no conflicting DenyPeriod. The schedule is cleared once the update takes place. This field cannot be manually changed; modify the MaintenanceUpdatePolicy instead. # Output only. The maintenance schedule for the cluster, generated for a specific rollout if a maintenance window is set.
1125 &quot;startTime&quot;: &quot;A String&quot;, # Output only. The scheduled start time for the maintenance.
1126 },
1127 &quot;maintenanceUpdatePolicy&quot;: { # MaintenanceUpdatePolicy defines the policy for system updates. # Optional. The maintenance update policy determines when to allow or deny updates.
1128 &quot;denyMaintenancePeriods&quot;: [ # Periods to deny maintenance. Currently limited to 1.
1129 { # DenyMaintenancePeriod definition. Excepting emergencies, maintenance will not be scheduled to start within this deny period. The start_date must be less than the end_date.
1130 &quot;endDate&quot;: { # Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp # 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
1131 &quot;day&quot;: 42, # 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&#x27;t significant.
1132 &quot;month&quot;: 42, # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
1133 &quot;year&quot;: 42, # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
1134 },
1135 &quot;startDate&quot;: { # Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp # 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
1136 &quot;day&quot;: 42, # 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&#x27;t significant.
1137 &quot;month&quot;: 42, # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
1138 &quot;year&quot;: 42, # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
1139 },
1140 &quot;time&quot;: { # Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date and `google.protobuf.Timestamp`. # 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
1141 &quot;hours&quot;: 42, # 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 &quot;24:00:00&quot; for scenarios like business closing time.
1142 &quot;minutes&quot;: 42, # Minutes of an hour. Must be greater than or equal to 0 and less than or equal to 59.
1143 &quot;nanos&quot;: 42, # Fractions of seconds, in nanoseconds. Must be greater than or equal to 0 and less than or equal to 999,999,999.
1144 &quot;seconds&quot;: 42, # 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.
1145 },
1146 },
1147 ],
1148 &quot;maintenanceWindows&quot;: [ # Preferred windows to perform maintenance. Currently limited to 1.
1149 { # MaintenanceWindow specifies a preferred day and time for maintenance.
1150 &quot;day&quot;: &quot;A String&quot;, # Preferred day of the week for maintenance, e.g. MONDAY, TUESDAY, etc.
1151 &quot;startTime&quot;: { # Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date and `google.protobuf.Timestamp`. # Preferred time to start the maintenance operation on the specified day. Maintenance will start within 1 hour of this time.
1152 &quot;hours&quot;: 42, # 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 &quot;24:00:00&quot; for scenarios like business closing time.
1153 &quot;minutes&quot;: 42, # Minutes of an hour. Must be greater than or equal to 0 and less than or equal to 59.
1154 &quot;nanos&quot;: 42, # Fractions of seconds, in nanoseconds. Must be greater than or equal to 0 and less than or equal to 999,999,999.
1155 &quot;seconds&quot;: 42, # 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.
1156 },
1157 },
1158 ],
1159 },
1160 &quot;maintenanceVersionSelectionPolicy&quot;: &quot;A String&quot;, # Input only. Policy to use to automatically select the maintenance version to which to update the cluster&#x27;s instances.
1161 &quot;migrationSource&quot;: { # Subset of the source instance configuration that is available when reading the cluster resource. # Output only. Cluster created via DMS migration.
1162 &quot;hostPort&quot;: &quot;A String&quot;, # Output only. The host and port of the on-premises instance in host:port format
1163 &quot;referenceId&quot;: &quot;A String&quot;, # Output only. Place holder for the external source identifier(e.g DMS job name) that created the cluster.
1164 &quot;sourceType&quot;: &quot;A String&quot;, # Output only. Type of migration source.
1165 },
1166 &quot;name&quot;: &quot;A String&quot;, # 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}
1167 &quot;network&quot;: &quot;A String&quot;, # 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.
1168 &quot;networkConfig&quot;: { # Metadata related to network configuration.
1169 &quot;allocatedIpRange&quot;: &quot;A String&quot;, # Optional. Name of the allocated IP range for the private IP AlloyDB cluster, for example: &quot;google-managed-services-default&quot;. 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.
1170 &quot;network&quot;: &quot;A String&quot;, # 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.
1171 },
1172 &quot;primaryConfig&quot;: { # Configuration for the primary cluster. It has the list of clusters that are replicating from this cluster. This should be set if and only if the cluster is of type PRIMARY. # Output only. Cross Region replication config specific to PRIMARY cluster.
1173 &quot;secondaryClusterNames&quot;: [ # Output only. Names of the clusters that are replicating from this cluster.
1174 &quot;A String&quot;,
1175 ],
1176 },
1177 &quot;pscConfig&quot;: { # PscConfig contains PSC related configuration at a cluster level. # Optional. The configuration for Private Service Connect (PSC) for the cluster.
1178 &quot;pscEnabled&quot;: True or False, # Optional. Create an instance that allows connections from Private Service Connect endpoints to the instance.
1179 &quot;serviceOwnedProjectNumber&quot;: &quot;A String&quot;, # Output only. The project number that needs to be allowlisted on the network attachment to enable outbound connectivity.
1180 },
1181 &quot;reconciling&quot;: True or False, # Output only. Reconciling (https://google.aip.dev/128#reconciliation). Set to true if the current state of Cluster does not match the user&#x27;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.
1182 &quot;satisfiesPzs&quot;: True or False, # Output only. Reserved for future use.
1183 &quot;secondaryConfig&quot;: { # Configuration information for the secondary cluster. This should be set if and only if the cluster is of type SECONDARY. # Cross Region replication config specific to SECONDARY cluster.
1184 &quot;primaryClusterName&quot;: &quot;A String&quot;, # The name of the primary cluster name with the format: * projects/{project}/locations/{region}/clusters/{cluster_id}
1185 },
1186 &quot;sslConfig&quot;: { # SSL configuration. # SSL configuration for this AlloyDB cluster.
1187 &quot;caSource&quot;: &quot;A String&quot;, # Optional. Certificate Authority (CA) source. Only CA_SOURCE_MANAGED is supported currently, and is the default value.
1188 &quot;sslMode&quot;: &quot;A String&quot;, # Optional. SSL mode. Specifies client-server SSL/TLS connection behavior.
1189 },
1190 &quot;state&quot;: &quot;A String&quot;, # Output only. The current serving state of the cluster.
1191 &quot;subscriptionType&quot;: &quot;A String&quot;, # Optional. Subscription type of the cluster.
1192 &quot;tags&quot;: { # Optional. Input only. Immutable. Tag keys/values directly bound to this resource. For example: ``` &quot;123/environment&quot;: &quot;production&quot;, &quot;123/costCenter&quot;: &quot;marketing&quot; ```
1193 &quot;a_key&quot;: &quot;A String&quot;,
1194 },
1195 &quot;trialMetadata&quot;: { # Contains information and all metadata related to TRIAL clusters. # Output only. Metadata for free trial clusters
1196 &quot;endTime&quot;: &quot;A String&quot;, # End time of the trial cluster.
1197 &quot;graceEndTime&quot;: &quot;A String&quot;, # grace end time of the cluster.
1198 &quot;startTime&quot;: &quot;A String&quot;, # start time of the trial cluster.
1199 &quot;upgradeTime&quot;: &quot;A String&quot;, # Upgrade time of trial cluster to Standard cluster.
1200 },
1201 &quot;uid&quot;: &quot;A String&quot;, # 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.
1202 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Update time stamp
1203 },
1204 ],
1205 &quot;nextPageToken&quot;: &quot;A String&quot;, # A token identifying a page of results the server should return.
1206 &quot;unreachable&quot;: [ # Locations that could not be reached.
1207 &quot;A String&quot;,
1208 ],
1209 }</pre>
1210 </div>
1211
1212 <div class="method">
1213 <code class="details" id="list_next">list_next()</code>
1214 <pre>Retrieves the next page of results.
1215
1216 Args:
1217 previous_request: The request for the previous page. (required)
1218 previous_response: The response from the request for the previous page. (required)
1219
1220 Returns:
1221 A request object that you can call &#x27;execute()&#x27; on to request the next
1222 page. Returns None if there are no more items in the collection.
1223 </pre>
1224 </div>
1225
1226 <div class="method">
1227 <code class="details" id="patch">patch(name, allowMissing=None, body=None, requestId=None, updateMask=None, validateOnly=None, x__xgafv=None)</code>
1228 <pre>Updates the parameters of a single Cluster.
1229
1230 Args:
1231 name: string, 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} (required)
1232 body: object, The request body.
1233 The object takes the form of:
1234
1235 { # A cluster is a collection of regional AlloyDB resources. It can include a primary instance and one or more read pool instances. All cluster resources share a storage layer, which scales as needed.
1236 &quot;annotations&quot;: { # Annotations to allow client tools to store small amount of arbitrary data. This is distinct from labels. https://google.aip.dev/128
1237 &quot;a_key&quot;: &quot;A String&quot;,
1238 },
1239 &quot;automatedBackupPolicy&quot;: { # Message describing the user-specified automated backup policy. All fields in the automated backup policy are optional. Defaults for each field are provided if they are not set. # 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.
1240 &quot;backupWindow&quot;: &quot;A String&quot;, # 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.
1241 &quot;enabled&quot;: True or False, # Whether automated automated backups are enabled. If not set, defaults to true.
1242 &quot;encryptionConfig&quot;: { # EncryptionConfig describes the encryption config of a cluster or a backup that is encrypted with a CMEK (customer-managed encryption key). # 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&#x27;s encryption config.
1243 &quot;kmsKeyName&quot;: &quot;A String&quot;, # 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]
1244 },
1245 &quot;labels&quot;: { # Labels to apply to backups created using this configuration.
1246 &quot;a_key&quot;: &quot;A String&quot;,
1247 },
1248 &quot;location&quot;: &quot;A String&quot;, # 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.
1249 &quot;quantityBasedRetention&quot;: { # A quantity based policy specifies that a certain number of the most recent successful backups should be retained. # Quantity-based Backup retention policy to retain recent backups.
1250 &quot;count&quot;: 42, # The number of backups to retain.
1251 },
1252 &quot;timeBasedRetention&quot;: { # A time based retention policy specifies that all backups within a certain time period should be retained. # Time-based Backup retention policy.
1253 &quot;retentionPeriod&quot;: &quot;A String&quot;, # The retention period.
1254 },
1255 &quot;weeklySchedule&quot;: { # A weekly schedule starts a backup at prescribed start times within a day, for the specified days of the week. The weekly schedule message is flexible and can be used to create many types of schedules. For example, to have a daily backup that starts at 22:00, configure the `start_times` field to have one element &quot;22:00&quot; and the `days_of_week` field to have all seven days of the week. # Weekly schedule for the Backup.
1256 &quot;daysOfWeek&quot;: [ # The days of the week to perform a backup. If this field is left empty, the default of every day of the week is used.
1257 &quot;A String&quot;,
1258 ],
1259 &quot;startTimes&quot;: [ # The times during the day to start a backup. The start times are assumed to be in UTC and to be an exact hour (e.g., 04:00:00). If no start times are provided, a single fixed start time is chosen arbitrarily.
1260 { # Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date and `google.protobuf.Timestamp`.
1261 &quot;hours&quot;: 42, # 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 &quot;24:00:00&quot; for scenarios like business closing time.
1262 &quot;minutes&quot;: 42, # Minutes of an hour. Must be greater than or equal to 0 and less than or equal to 59.
1263 &quot;nanos&quot;: 42, # Fractions of seconds, in nanoseconds. Must be greater than or equal to 0 and less than or equal to 999,999,999.
1264 &quot;seconds&quot;: 42, # 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.
1265 },
1266 ],
1267 },
1268 },
1269 &quot;backupSource&quot;: { # Message describing a BackupSource. # Output only. Cluster created from backup.
1270 &quot;backupName&quot;: &quot;A String&quot;, # Required. The name of the backup resource with the format: * projects/{project}/locations/{region}/backups/{backup_id}
1271 &quot;backupUid&quot;: &quot;A String&quot;, # 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.
1272 },
1273 &quot;backupdrBackupSource&quot;: { # Message describing a BackupDrBackupSource. # Output only. Cluster created from a BackupDR backup.
1274 &quot;backup&quot;: &quot;A String&quot;, # Required. The name of the backup resource with the format: * projects/{project}/locations/{location}/backupVaults/{backupvault_id}/dataSources/{datasource_id}/backups/{backup_id}
1275 },
1276 &quot;backupdrInfo&quot;: { # Information about BackupDR protection for this cluster. # Output only. Output only information about BackupDR protection for this cluster.
1277 &quot;currentWindow&quot;: { # Information about a single window when BackupDR was enabled for this cluster. # The current BackupDR configuration for this cluster. If BackupDR protection is not enabled for this cluster, this field will be empty.
1278 &quot;automatedBackupPreviouslyEnabled&quot;: True or False, # Whether automated backup was previously enabled prior to enabling BackupDR protection for this cluster.
1279 &quot;backupPlanAssociation&quot;: &quot;A String&quot;, # The BackupPlanAssociation resource that was used to enable BackupDR protection for this cluster.
1280 &quot;continuousBackupPreviousRecoveryWindowDays&quot;: 42, # The retention set for the continuous backup that was previously enabled prior to enabling BackupDR protection for this cluster.
1281 &quot;continuousBackupPreviouslyEnabled&quot;: True or False, # Whether continuous backup was previously enabled prior to enabling BackupDR protection for this cluster.
1282 &quot;continuousBackupPreviouslyEnabledTime&quot;: &quot;A String&quot;, # The time when continuous backup was previously enabled prior to enabling BackupDR protection for this cluster.
1283 &quot;dataSource&quot;: &quot;A String&quot;, # The DataSource resource that represents the cluster in BackupDR.
1284 &quot;disabledTime&quot;: &quot;A String&quot;, # Time when the BackupDR protection for this cluster was disabled. This field will be empty if this BackupDR window is the `current_window`.
1285 &quot;enabledTime&quot;: &quot;A String&quot;, # Time when the BackupDR protection for this cluster was enabled.
1286 &quot;logRetentionPeriod&quot;: &quot;A String&quot;, # The retention period for logs generated by BackupDR for this cluster.
1287 },
1288 &quot;previousWindows&quot;: [ # 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.
1289 { # Information about a single window when BackupDR was enabled for this cluster.
1290 &quot;automatedBackupPreviouslyEnabled&quot;: True or False, # Whether automated backup was previously enabled prior to enabling BackupDR protection for this cluster.
1291 &quot;backupPlanAssociation&quot;: &quot;A String&quot;, # The BackupPlanAssociation resource that was used to enable BackupDR protection for this cluster.
1292 &quot;continuousBackupPreviousRecoveryWindowDays&quot;: 42, # The retention set for the continuous backup that was previously enabled prior to enabling BackupDR protection for this cluster.
1293 &quot;continuousBackupPreviouslyEnabled&quot;: True or False, # Whether continuous backup was previously enabled prior to enabling BackupDR protection for this cluster.
1294 &quot;continuousBackupPreviouslyEnabledTime&quot;: &quot;A String&quot;, # The time when continuous backup was previously enabled prior to enabling BackupDR protection for this cluster.
1295 &quot;dataSource&quot;: &quot;A String&quot;, # The DataSource resource that represents the cluster in BackupDR.
1296 &quot;disabledTime&quot;: &quot;A String&quot;, # Time when the BackupDR protection for this cluster was disabled. This field will be empty if this BackupDR window is the `current_window`.
1297 &quot;enabledTime&quot;: &quot;A String&quot;, # Time when the BackupDR protection for this cluster was enabled.
1298 &quot;logRetentionPeriod&quot;: &quot;A String&quot;, # The retention period for logs generated by BackupDR for this cluster.
1299 },
1300 ],
1301 },
1302 &quot;cloudsqlBackupRunSource&quot;: { # The source CloudSQL backup resource. # Output only. Cluster created from CloudSQL snapshot.
1303 &quot;backupRunId&quot;: &quot;A String&quot;, # Required. The CloudSQL backup run ID.
1304 &quot;instanceId&quot;: &quot;A String&quot;, # Required. The CloudSQL instance ID.
1305 &quot;project&quot;: &quot;A String&quot;, # The project ID of the source CloudSQL instance. This should be the same as the AlloyDB cluster&#x27;s project.
1306 },
1307 &quot;clusterType&quot;: &quot;A String&quot;, # Output only. The type of the cluster. This is an output-only field and it&#x27;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`
1308 &quot;continuousBackupConfig&quot;: { # ContinuousBackupConfig describes the continuous backups recovery configurations of a cluster. # Optional. Continuous backup configuration for this cluster.
1309 &quot;enabled&quot;: True or False, # Whether ContinuousBackup is enabled.
1310 &quot;encryptionConfig&quot;: { # EncryptionConfig describes the encryption config of a cluster or a backup that is encrypted with a CMEK (customer-managed encryption key). # 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&#x27;s encryption config.
1311 &quot;kmsKeyName&quot;: &quot;A String&quot;, # 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]
1312 },
1313 &quot;recoveryWindowDays&quot;: 42, # 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.
1314 },
1315 &quot;continuousBackupInfo&quot;: { # ContinuousBackupInfo describes the continuous backup properties of a cluster. # Output only. Continuous backup properties for this cluster.
1316 &quot;earliestRestorableTime&quot;: &quot;A String&quot;, # 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&#x27;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 &quot;now minus the recovery window&quot;. 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.
1317 &quot;enabledTime&quot;: &quot;A String&quot;, # Output only. When ContinuousBackup was most recently enabled. Set to null if ContinuousBackup is not enabled.
1318 &quot;encryptionInfo&quot;: { # EncryptionInfo describes the encryption information of a cluster or a backup. # Output only. The encryption information for the WALs and backups required for ContinuousBackup.
1319 &quot;encryptionType&quot;: &quot;A String&quot;, # Output only. Type of encryption.
1320 &quot;kmsKeyVersions&quot;: [ # Output only. Cloud KMS key versions that are being used to protect the database or the backup.
1321 &quot;A String&quot;,
1322 ],
1323 },
1324 &quot;schedule&quot;: [ # Output only. Days of the week on which a continuous backup is taken.
1325 &quot;A String&quot;,
1326 ],
1327 },
1328 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Create time stamp
1329 &quot;databaseVersion&quot;: &quot;A String&quot;, # 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.
1330 &quot;dataplexConfig&quot;: { # Configuration for Dataplex integration. # Optional. Configuration for Dataplex integration.
1331 &quot;enabled&quot;: True or False, # 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.&quot;
1332 },
1333 &quot;deleteTime&quot;: &quot;A String&quot;, # Output only. Delete time stamp
1334 &quot;displayName&quot;: &quot;A String&quot;, # User-settable and human-readable display name for the Cluster.
1335 &quot;encryptionConfig&quot;: { # EncryptionConfig describes the encryption config of a cluster or a backup that is encrypted with a CMEK (customer-managed encryption key). # 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.
1336 &quot;kmsKeyName&quot;: &quot;A String&quot;, # 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]
1337 },
1338 &quot;encryptionInfo&quot;: { # EncryptionInfo describes the encryption information of a cluster or a backup. # Output only. The encryption information for the cluster.
1339 &quot;encryptionType&quot;: &quot;A String&quot;, # Output only. Type of encryption.
1340 &quot;kmsKeyVersions&quot;: [ # Output only. Cloud KMS key versions that are being used to protect the database or the backup.
1341 &quot;A String&quot;,
1342 ],
1343 },
1344 &quot;etag&quot;: &quot;A String&quot;, # For Resource freshness validation (https://google.aip.dev/154)
1345 &quot;initialUser&quot;: { # The username/password for a database user. Used for specifying initial users at cluster creation time. # Input only. Initial user to setup during cluster creation. Required. If used in `RestoreCluster` this is ignored.
1346 &quot;password&quot;: &quot;A String&quot;, # The initial password for the user.
1347 &quot;user&quot;: &quot;A String&quot;, # The database username.
1348 },
1349 &quot;labels&quot;: { # Labels as key value pairs
1350 &quot;a_key&quot;: &quot;A String&quot;,
1351 },
1352 &quot;maintenanceSchedule&quot;: { # MaintenanceSchedule stores the maintenance schedule generated from the MaintenanceUpdatePolicy, once a maintenance rollout is triggered, if MaintenanceWindow is set, and if there is no conflicting DenyPeriod. The schedule is cleared once the update takes place. This field cannot be manually changed; modify the MaintenanceUpdatePolicy instead. # Output only. The maintenance schedule for the cluster, generated for a specific rollout if a maintenance window is set.
1353 &quot;startTime&quot;: &quot;A String&quot;, # Output only. The scheduled start time for the maintenance.
1354 },
1355 &quot;maintenanceUpdatePolicy&quot;: { # MaintenanceUpdatePolicy defines the policy for system updates. # Optional. The maintenance update policy determines when to allow or deny updates.
1356 &quot;denyMaintenancePeriods&quot;: [ # Periods to deny maintenance. Currently limited to 1.
1357 { # DenyMaintenancePeriod definition. Excepting emergencies, maintenance will not be scheduled to start within this deny period. The start_date must be less than the end_date.
1358 &quot;endDate&quot;: { # Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp # 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
1359 &quot;day&quot;: 42, # 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&#x27;t significant.
1360 &quot;month&quot;: 42, # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
1361 &quot;year&quot;: 42, # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
1362 },
1363 &quot;startDate&quot;: { # Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp # 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
1364 &quot;day&quot;: 42, # 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&#x27;t significant.
1365 &quot;month&quot;: 42, # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
1366 &quot;year&quot;: 42, # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
1367 },
1368 &quot;time&quot;: { # Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date and `google.protobuf.Timestamp`. # 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
1369 &quot;hours&quot;: 42, # 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 &quot;24:00:00&quot; for scenarios like business closing time.
1370 &quot;minutes&quot;: 42, # Minutes of an hour. Must be greater than or equal to 0 and less than or equal to 59.
1371 &quot;nanos&quot;: 42, # Fractions of seconds, in nanoseconds. Must be greater than or equal to 0 and less than or equal to 999,999,999.
1372 &quot;seconds&quot;: 42, # 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.
1373 },
1374 },
1375 ],
1376 &quot;maintenanceWindows&quot;: [ # Preferred windows to perform maintenance. Currently limited to 1.
1377 { # MaintenanceWindow specifies a preferred day and time for maintenance.
1378 &quot;day&quot;: &quot;A String&quot;, # Preferred day of the week for maintenance, e.g. MONDAY, TUESDAY, etc.
1379 &quot;startTime&quot;: { # Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date and `google.protobuf.Timestamp`. # Preferred time to start the maintenance operation on the specified day. Maintenance will start within 1 hour of this time.
1380 &quot;hours&quot;: 42, # 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 &quot;24:00:00&quot; for scenarios like business closing time.
1381 &quot;minutes&quot;: 42, # Minutes of an hour. Must be greater than or equal to 0 and less than or equal to 59.
1382 &quot;nanos&quot;: 42, # Fractions of seconds, in nanoseconds. Must be greater than or equal to 0 and less than or equal to 999,999,999.
1383 &quot;seconds&quot;: 42, # 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.
1384 },
1385 },
1386 ],
1387 },
1388 &quot;maintenanceVersionSelectionPolicy&quot;: &quot;A String&quot;, # Input only. Policy to use to automatically select the maintenance version to which to update the cluster&#x27;s instances.
1389 &quot;migrationSource&quot;: { # Subset of the source instance configuration that is available when reading the cluster resource. # Output only. Cluster created via DMS migration.
1390 &quot;hostPort&quot;: &quot;A String&quot;, # Output only. The host and port of the on-premises instance in host:port format
1391 &quot;referenceId&quot;: &quot;A String&quot;, # Output only. Place holder for the external source identifier(e.g DMS job name) that created the cluster.
1392 &quot;sourceType&quot;: &quot;A String&quot;, # Output only. Type of migration source.
1393 },
1394 &quot;name&quot;: &quot;A String&quot;, # 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}
1395 &quot;network&quot;: &quot;A String&quot;, # 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.
1396 &quot;networkConfig&quot;: { # Metadata related to network configuration.
1397 &quot;allocatedIpRange&quot;: &quot;A String&quot;, # Optional. Name of the allocated IP range for the private IP AlloyDB cluster, for example: &quot;google-managed-services-default&quot;. 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.
1398 &quot;network&quot;: &quot;A String&quot;, # 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.
1399 },
1400 &quot;primaryConfig&quot;: { # Configuration for the primary cluster. It has the list of clusters that are replicating from this cluster. This should be set if and only if the cluster is of type PRIMARY. # Output only. Cross Region replication config specific to PRIMARY cluster.
1401 &quot;secondaryClusterNames&quot;: [ # Output only. Names of the clusters that are replicating from this cluster.
1402 &quot;A String&quot;,
1403 ],
1404 },
1405 &quot;pscConfig&quot;: { # PscConfig contains PSC related configuration at a cluster level. # Optional. The configuration for Private Service Connect (PSC) for the cluster.
1406 &quot;pscEnabled&quot;: True or False, # Optional. Create an instance that allows connections from Private Service Connect endpoints to the instance.
1407 &quot;serviceOwnedProjectNumber&quot;: &quot;A String&quot;, # Output only. The project number that needs to be allowlisted on the network attachment to enable outbound connectivity.
1408 },
1409 &quot;reconciling&quot;: True or False, # Output only. Reconciling (https://google.aip.dev/128#reconciliation). Set to true if the current state of Cluster does not match the user&#x27;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.
1410 &quot;satisfiesPzs&quot;: True or False, # Output only. Reserved for future use.
1411 &quot;secondaryConfig&quot;: { # Configuration information for the secondary cluster. This should be set if and only if the cluster is of type SECONDARY. # Cross Region replication config specific to SECONDARY cluster.
1412 &quot;primaryClusterName&quot;: &quot;A String&quot;, # The name of the primary cluster name with the format: * projects/{project}/locations/{region}/clusters/{cluster_id}
1413 },
1414 &quot;sslConfig&quot;: { # SSL configuration. # SSL configuration for this AlloyDB cluster.
1415 &quot;caSource&quot;: &quot;A String&quot;, # Optional. Certificate Authority (CA) source. Only CA_SOURCE_MANAGED is supported currently, and is the default value.
1416 &quot;sslMode&quot;: &quot;A String&quot;, # Optional. SSL mode. Specifies client-server SSL/TLS connection behavior.
1417 },
1418 &quot;state&quot;: &quot;A String&quot;, # Output only. The current serving state of the cluster.
1419 &quot;subscriptionType&quot;: &quot;A String&quot;, # Optional. Subscription type of the cluster.
1420 &quot;tags&quot;: { # Optional. Input only. Immutable. Tag keys/values directly bound to this resource. For example: ``` &quot;123/environment&quot;: &quot;production&quot;, &quot;123/costCenter&quot;: &quot;marketing&quot; ```
1421 &quot;a_key&quot;: &quot;A String&quot;,
1422 },
1423 &quot;trialMetadata&quot;: { # Contains information and all metadata related to TRIAL clusters. # Output only. Metadata for free trial clusters
1424 &quot;endTime&quot;: &quot;A String&quot;, # End time of the trial cluster.
1425 &quot;graceEndTime&quot;: &quot;A String&quot;, # grace end time of the cluster.
1426 &quot;startTime&quot;: &quot;A String&quot;, # start time of the trial cluster.
1427 &quot;upgradeTime&quot;: &quot;A String&quot;, # Upgrade time of trial cluster to Standard cluster.
1428 },
1429 &quot;uid&quot;: &quot;A String&quot;, # 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.
1430 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Update time stamp
1431 }
1432
1433 allowMissing: boolean, 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.
1434 requestId: string, 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).
1435 updateMask: string, 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.
1436 validateOnly: boolean, Optional. If set, performs request validation, for example, permission checks and any other type of validation, but does not actually execute the create request.
1437 x__xgafv: string, V1 error format.
1438 Allowed values
1439 1 - v1 error format
1440 2 - v2 error format
1441
1442 Returns:
1443 An object of the form:
1444
1445 { # This resource represents a long-running operation that is the result of a network API call.
1446 &quot;done&quot;: True or False, # 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.
1447 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
1448 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
1449 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
1450 {
1451 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1452 },
1453 ],
1454 &quot;message&quot;: &quot;A String&quot;, # 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.
1455 },
1456 &quot;metadata&quot;: { # 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.
1457 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1458 },
1459 &quot;name&quot;: &quot;A String&quot;, # 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}`.
1460 &quot;response&quot;: { # 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`.
1461 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1462 },
1463 }</pre>
1464 </div>
1465
1466 <div class="method">
1467 <code class="details" id="promote">promote(name, body=None, x__xgafv=None)</code>
1468 <pre>Promotes a SECONDARY cluster. This turns down replication from the PRIMARY cluster and promotes a secondary cluster into its own standalone cluster. Imperative only.
1469
1470 Args:
1471 name: string, Required. The name of the resource. For the required format, see the comment on the Cluster.name field (required)
1472 body: object, The request body.
1473 The object takes the form of:
1474
1475 { # Message for promoting a Cluster
1476 &quot;etag&quot;: &quot;A String&quot;, # 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.
1477 &quot;requestId&quot;: &quot;A String&quot;, # 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).
1478 &quot;validateOnly&quot;: True or False, # Optional. If set, performs request validation, for example, permission checks and any other type of validation, but does not actually execute the create request.
1479 }
1480
1481 x__xgafv: string, V1 error format.
1482 Allowed values
1483 1 - v1 error format
1484 2 - v2 error format
1485
1486 Returns:
1487 An object of the form:
1488
1489 { # This resource represents a long-running operation that is the result of a network API call.
1490 &quot;done&quot;: True or False, # 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.
1491 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
1492 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
1493 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
1494 {
1495 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1496 },
1497 ],
1498 &quot;message&quot;: &quot;A String&quot;, # 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.
1499 },
1500 &quot;metadata&quot;: { # 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.
1501 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1502 },
1503 &quot;name&quot;: &quot;A String&quot;, # 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}`.
1504 &quot;response&quot;: { # 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`.
1505 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1506 },
1507 }</pre>
1508 </div>
1509
1510 <div class="method">
1511 <code class="details" id="restore">restore(parent, body=None, x__xgafv=None)</code>
1512 <pre>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.
1513
1514 Args:
1515 parent: string, Required. The name of the parent resource. For the required format, see the comment on the Cluster.name field. (required)
1516 body: object, The request body.
1517 The object takes the form of:
1518
1519 { # Message for restoring a Cluster from a backup or another cluster at a given point in time. NEXT_ID: 11
1520 &quot;backupSource&quot;: { # Message describing a BackupSource. # Backup source.
1521 &quot;backupName&quot;: &quot;A String&quot;, # Required. The name of the backup resource with the format: * projects/{project}/locations/{region}/backups/{backup_id}
1522 &quot;backupUid&quot;: &quot;A String&quot;, # 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.
1523 },
1524 &quot;backupdrBackupSource&quot;: { # Message describing a BackupDrBackupSource. # BackupDR backup source.
1525 &quot;backup&quot;: &quot;A String&quot;, # Required. The name of the backup resource with the format: * projects/{project}/locations/{location}/backupVaults/{backupvault_id}/dataSources/{datasource_id}/backups/{backup_id}
1526 },
1527 &quot;backupdrPitrSource&quot;: { # Message describing a BackupDrPitrSource. # BackupDR source used for point in time recovery.
1528 &quot;dataSource&quot;: &quot;A String&quot;, # Required. The name of the backup resource with the format: * projects/{project}/locations/{location}/backupVaults/{backupvault_id}/dataSources/{datasource_id}
1529 &quot;pointInTime&quot;: &quot;A String&quot;, # Required. The point in time to restore to.
1530 },
1531 &quot;cluster&quot;: { # A cluster is a collection of regional AlloyDB resources. It can include a primary instance and one or more read pool instances. All cluster resources share a storage layer, which scales as needed. # Required. The resource being created
1532 &quot;annotations&quot;: { # Annotations to allow client tools to store small amount of arbitrary data. This is distinct from labels. https://google.aip.dev/128
1533 &quot;a_key&quot;: &quot;A String&quot;,
1534 },
1535 &quot;automatedBackupPolicy&quot;: { # Message describing the user-specified automated backup policy. All fields in the automated backup policy are optional. Defaults for each field are provided if they are not set. # 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.
1536 &quot;backupWindow&quot;: &quot;A String&quot;, # 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.
1537 &quot;enabled&quot;: True or False, # Whether automated automated backups are enabled. If not set, defaults to true.
1538 &quot;encryptionConfig&quot;: { # EncryptionConfig describes the encryption config of a cluster or a backup that is encrypted with a CMEK (customer-managed encryption key). # 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&#x27;s encryption config.
1539 &quot;kmsKeyName&quot;: &quot;A String&quot;, # 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]
1540 },
1541 &quot;labels&quot;: { # Labels to apply to backups created using this configuration.
1542 &quot;a_key&quot;: &quot;A String&quot;,
1543 },
1544 &quot;location&quot;: &quot;A String&quot;, # 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.
1545 &quot;quantityBasedRetention&quot;: { # A quantity based policy specifies that a certain number of the most recent successful backups should be retained. # Quantity-based Backup retention policy to retain recent backups.
1546 &quot;count&quot;: 42, # The number of backups to retain.
1547 },
1548 &quot;timeBasedRetention&quot;: { # A time based retention policy specifies that all backups within a certain time period should be retained. # Time-based Backup retention policy.
1549 &quot;retentionPeriod&quot;: &quot;A String&quot;, # The retention period.
1550 },
1551 &quot;weeklySchedule&quot;: { # A weekly schedule starts a backup at prescribed start times within a day, for the specified days of the week. The weekly schedule message is flexible and can be used to create many types of schedules. For example, to have a daily backup that starts at 22:00, configure the `start_times` field to have one element &quot;22:00&quot; and the `days_of_week` field to have all seven days of the week. # Weekly schedule for the Backup.
1552 &quot;daysOfWeek&quot;: [ # The days of the week to perform a backup. If this field is left empty, the default of every day of the week is used.
1553 &quot;A String&quot;,
1554 ],
1555 &quot;startTimes&quot;: [ # The times during the day to start a backup. The start times are assumed to be in UTC and to be an exact hour (e.g., 04:00:00). If no start times are provided, a single fixed start time is chosen arbitrarily.
1556 { # Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date and `google.protobuf.Timestamp`.
1557 &quot;hours&quot;: 42, # 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 &quot;24:00:00&quot; for scenarios like business closing time.
1558 &quot;minutes&quot;: 42, # Minutes of an hour. Must be greater than or equal to 0 and less than or equal to 59.
1559 &quot;nanos&quot;: 42, # Fractions of seconds, in nanoseconds. Must be greater than or equal to 0 and less than or equal to 999,999,999.
1560 &quot;seconds&quot;: 42, # 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.
1561 },
1562 ],
1563 },
1564 },
1565 &quot;backupSource&quot;: { # Message describing a BackupSource. # Output only. Cluster created from backup.
1566 &quot;backupName&quot;: &quot;A String&quot;, # Required. The name of the backup resource with the format: * projects/{project}/locations/{region}/backups/{backup_id}
1567 &quot;backupUid&quot;: &quot;A String&quot;, # 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.
1568 },
1569 &quot;backupdrBackupSource&quot;: { # Message describing a BackupDrBackupSource. # Output only. Cluster created from a BackupDR backup.
1570 &quot;backup&quot;: &quot;A String&quot;, # Required. The name of the backup resource with the format: * projects/{project}/locations/{location}/backupVaults/{backupvault_id}/dataSources/{datasource_id}/backups/{backup_id}
1571 },
1572 &quot;backupdrInfo&quot;: { # Information about BackupDR protection for this cluster. # Output only. Output only information about BackupDR protection for this cluster.
1573 &quot;currentWindow&quot;: { # Information about a single window when BackupDR was enabled for this cluster. # The current BackupDR configuration for this cluster. If BackupDR protection is not enabled for this cluster, this field will be empty.
1574 &quot;automatedBackupPreviouslyEnabled&quot;: True or False, # Whether automated backup was previously enabled prior to enabling BackupDR protection for this cluster.
1575 &quot;backupPlanAssociation&quot;: &quot;A String&quot;, # The BackupPlanAssociation resource that was used to enable BackupDR protection for this cluster.
1576 &quot;continuousBackupPreviousRecoveryWindowDays&quot;: 42, # The retention set for the continuous backup that was previously enabled prior to enabling BackupDR protection for this cluster.
1577 &quot;continuousBackupPreviouslyEnabled&quot;: True or False, # Whether continuous backup was previously enabled prior to enabling BackupDR protection for this cluster.
1578 &quot;continuousBackupPreviouslyEnabledTime&quot;: &quot;A String&quot;, # The time when continuous backup was previously enabled prior to enabling BackupDR protection for this cluster.
1579 &quot;dataSource&quot;: &quot;A String&quot;, # The DataSource resource that represents the cluster in BackupDR.
1580 &quot;disabledTime&quot;: &quot;A String&quot;, # Time when the BackupDR protection for this cluster was disabled. This field will be empty if this BackupDR window is the `current_window`.
1581 &quot;enabledTime&quot;: &quot;A String&quot;, # Time when the BackupDR protection for this cluster was enabled.
1582 &quot;logRetentionPeriod&quot;: &quot;A String&quot;, # The retention period for logs generated by BackupDR for this cluster.
1583 },
1584 &quot;previousWindows&quot;: [ # 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.
1585 { # Information about a single window when BackupDR was enabled for this cluster.
1586 &quot;automatedBackupPreviouslyEnabled&quot;: True or False, # Whether automated backup was previously enabled prior to enabling BackupDR protection for this cluster.
1587 &quot;backupPlanAssociation&quot;: &quot;A String&quot;, # The BackupPlanAssociation resource that was used to enable BackupDR protection for this cluster.
1588 &quot;continuousBackupPreviousRecoveryWindowDays&quot;: 42, # The retention set for the continuous backup that was previously enabled prior to enabling BackupDR protection for this cluster.
1589 &quot;continuousBackupPreviouslyEnabled&quot;: True or False, # Whether continuous backup was previously enabled prior to enabling BackupDR protection for this cluster.
1590 &quot;continuousBackupPreviouslyEnabledTime&quot;: &quot;A String&quot;, # The time when continuous backup was previously enabled prior to enabling BackupDR protection for this cluster.
1591 &quot;dataSource&quot;: &quot;A String&quot;, # The DataSource resource that represents the cluster in BackupDR.
1592 &quot;disabledTime&quot;: &quot;A String&quot;, # Time when the BackupDR protection for this cluster was disabled. This field will be empty if this BackupDR window is the `current_window`.
1593 &quot;enabledTime&quot;: &quot;A String&quot;, # Time when the BackupDR protection for this cluster was enabled.
1594 &quot;logRetentionPeriod&quot;: &quot;A String&quot;, # The retention period for logs generated by BackupDR for this cluster.
1595 },
1596 ],
1597 },
1598 &quot;cloudsqlBackupRunSource&quot;: { # The source CloudSQL backup resource. # Output only. Cluster created from CloudSQL snapshot.
1599 &quot;backupRunId&quot;: &quot;A String&quot;, # Required. The CloudSQL backup run ID.
1600 &quot;instanceId&quot;: &quot;A String&quot;, # Required. The CloudSQL instance ID.
1601 &quot;project&quot;: &quot;A String&quot;, # The project ID of the source CloudSQL instance. This should be the same as the AlloyDB cluster&#x27;s project.
1602 },
1603 &quot;clusterType&quot;: &quot;A String&quot;, # Output only. The type of the cluster. This is an output-only field and it&#x27;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`
1604 &quot;continuousBackupConfig&quot;: { # ContinuousBackupConfig describes the continuous backups recovery configurations of a cluster. # Optional. Continuous backup configuration for this cluster.
1605 &quot;enabled&quot;: True or False, # Whether ContinuousBackup is enabled.
1606 &quot;encryptionConfig&quot;: { # EncryptionConfig describes the encryption config of a cluster or a backup that is encrypted with a CMEK (customer-managed encryption key). # 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&#x27;s encryption config.
1607 &quot;kmsKeyName&quot;: &quot;A String&quot;, # 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]
1608 },
1609 &quot;recoveryWindowDays&quot;: 42, # 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.
1610 },
1611 &quot;continuousBackupInfo&quot;: { # ContinuousBackupInfo describes the continuous backup properties of a cluster. # Output only. Continuous backup properties for this cluster.
1612 &quot;earliestRestorableTime&quot;: &quot;A String&quot;, # 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&#x27;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 &quot;now minus the recovery window&quot;. 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.
1613 &quot;enabledTime&quot;: &quot;A String&quot;, # Output only. When ContinuousBackup was most recently enabled. Set to null if ContinuousBackup is not enabled.
1614 &quot;encryptionInfo&quot;: { # EncryptionInfo describes the encryption information of a cluster or a backup. # Output only. The encryption information for the WALs and backups required for ContinuousBackup.
1615 &quot;encryptionType&quot;: &quot;A String&quot;, # Output only. Type of encryption.
1616 &quot;kmsKeyVersions&quot;: [ # Output only. Cloud KMS key versions that are being used to protect the database or the backup.
1617 &quot;A String&quot;,
1618 ],
1619 },
1620 &quot;schedule&quot;: [ # Output only. Days of the week on which a continuous backup is taken.
1621 &quot;A String&quot;,
1622 ],
1623 },
1624 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Create time stamp
1625 &quot;databaseVersion&quot;: &quot;A String&quot;, # 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.
1626 &quot;dataplexConfig&quot;: { # Configuration for Dataplex integration. # Optional. Configuration for Dataplex integration.
1627 &quot;enabled&quot;: True or False, # 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.&quot;
1628 },
1629 &quot;deleteTime&quot;: &quot;A String&quot;, # Output only. Delete time stamp
1630 &quot;displayName&quot;: &quot;A String&quot;, # User-settable and human-readable display name for the Cluster.
1631 &quot;encryptionConfig&quot;: { # EncryptionConfig describes the encryption config of a cluster or a backup that is encrypted with a CMEK (customer-managed encryption key). # 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.
1632 &quot;kmsKeyName&quot;: &quot;A String&quot;, # 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]
1633 },
1634 &quot;encryptionInfo&quot;: { # EncryptionInfo describes the encryption information of a cluster or a backup. # Output only. The encryption information for the cluster.
1635 &quot;encryptionType&quot;: &quot;A String&quot;, # Output only. Type of encryption.
1636 &quot;kmsKeyVersions&quot;: [ # Output only. Cloud KMS key versions that are being used to protect the database or the backup.
1637 &quot;A String&quot;,
1638 ],
1639 },
1640 &quot;etag&quot;: &quot;A String&quot;, # For Resource freshness validation (https://google.aip.dev/154)
1641 &quot;initialUser&quot;: { # The username/password for a database user. Used for specifying initial users at cluster creation time. # Input only. Initial user to setup during cluster creation. Required. If used in `RestoreCluster` this is ignored.
1642 &quot;password&quot;: &quot;A String&quot;, # The initial password for the user.
1643 &quot;user&quot;: &quot;A String&quot;, # The database username.
1644 },
1645 &quot;labels&quot;: { # Labels as key value pairs
1646 &quot;a_key&quot;: &quot;A String&quot;,
1647 },
1648 &quot;maintenanceSchedule&quot;: { # MaintenanceSchedule stores the maintenance schedule generated from the MaintenanceUpdatePolicy, once a maintenance rollout is triggered, if MaintenanceWindow is set, and if there is no conflicting DenyPeriod. The schedule is cleared once the update takes place. This field cannot be manually changed; modify the MaintenanceUpdatePolicy instead. # Output only. The maintenance schedule for the cluster, generated for a specific rollout if a maintenance window is set.
1649 &quot;startTime&quot;: &quot;A String&quot;, # Output only. The scheduled start time for the maintenance.
1650 },
1651 &quot;maintenanceUpdatePolicy&quot;: { # MaintenanceUpdatePolicy defines the policy for system updates. # Optional. The maintenance update policy determines when to allow or deny updates.
1652 &quot;denyMaintenancePeriods&quot;: [ # Periods to deny maintenance. Currently limited to 1.
1653 { # DenyMaintenancePeriod definition. Excepting emergencies, maintenance will not be scheduled to start within this deny period. The start_date must be less than the end_date.
1654 &quot;endDate&quot;: { # Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp # 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
1655 &quot;day&quot;: 42, # 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&#x27;t significant.
1656 &quot;month&quot;: 42, # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
1657 &quot;year&quot;: 42, # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
1658 },
1659 &quot;startDate&quot;: { # Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp # 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
1660 &quot;day&quot;: 42, # 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&#x27;t significant.
1661 &quot;month&quot;: 42, # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
1662 &quot;year&quot;: 42, # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
1663 },
1664 &quot;time&quot;: { # Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date and `google.protobuf.Timestamp`. # 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
1665 &quot;hours&quot;: 42, # 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 &quot;24:00:00&quot; for scenarios like business closing time.
1666 &quot;minutes&quot;: 42, # Minutes of an hour. Must be greater than or equal to 0 and less than or equal to 59.
1667 &quot;nanos&quot;: 42, # Fractions of seconds, in nanoseconds. Must be greater than or equal to 0 and less than or equal to 999,999,999.
1668 &quot;seconds&quot;: 42, # 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.
1669 },
1670 },
1671 ],
1672 &quot;maintenanceWindows&quot;: [ # Preferred windows to perform maintenance. Currently limited to 1.
1673 { # MaintenanceWindow specifies a preferred day and time for maintenance.
1674 &quot;day&quot;: &quot;A String&quot;, # Preferred day of the week for maintenance, e.g. MONDAY, TUESDAY, etc.
1675 &quot;startTime&quot;: { # Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date and `google.protobuf.Timestamp`. # Preferred time to start the maintenance operation on the specified day. Maintenance will start within 1 hour of this time.
1676 &quot;hours&quot;: 42, # 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 &quot;24:00:00&quot; for scenarios like business closing time.
1677 &quot;minutes&quot;: 42, # Minutes of an hour. Must be greater than or equal to 0 and less than or equal to 59.
1678 &quot;nanos&quot;: 42, # Fractions of seconds, in nanoseconds. Must be greater than or equal to 0 and less than or equal to 999,999,999.
1679 &quot;seconds&quot;: 42, # 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.
1680 },
1681 },
1682 ],
1683 },
1684 &quot;maintenanceVersionSelectionPolicy&quot;: &quot;A String&quot;, # Input only. Policy to use to automatically select the maintenance version to which to update the cluster&#x27;s instances.
1685 &quot;migrationSource&quot;: { # Subset of the source instance configuration that is available when reading the cluster resource. # Output only. Cluster created via DMS migration.
1686 &quot;hostPort&quot;: &quot;A String&quot;, # Output only. The host and port of the on-premises instance in host:port format
1687 &quot;referenceId&quot;: &quot;A String&quot;, # Output only. Place holder for the external source identifier(e.g DMS job name) that created the cluster.
1688 &quot;sourceType&quot;: &quot;A String&quot;, # Output only. Type of migration source.
1689 },
1690 &quot;name&quot;: &quot;A String&quot;, # 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}
1691 &quot;network&quot;: &quot;A String&quot;, # 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.
1692 &quot;networkConfig&quot;: { # Metadata related to network configuration.
1693 &quot;allocatedIpRange&quot;: &quot;A String&quot;, # Optional. Name of the allocated IP range for the private IP AlloyDB cluster, for example: &quot;google-managed-services-default&quot;. 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.
1694 &quot;network&quot;: &quot;A String&quot;, # 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.
1695 },
1696 &quot;primaryConfig&quot;: { # Configuration for the primary cluster. It has the list of clusters that are replicating from this cluster. This should be set if and only if the cluster is of type PRIMARY. # Output only. Cross Region replication config specific to PRIMARY cluster.
1697 &quot;secondaryClusterNames&quot;: [ # Output only. Names of the clusters that are replicating from this cluster.
1698 &quot;A String&quot;,
1699 ],
1700 },
1701 &quot;pscConfig&quot;: { # PscConfig contains PSC related configuration at a cluster level. # Optional. The configuration for Private Service Connect (PSC) for the cluster.
1702 &quot;pscEnabled&quot;: True or False, # Optional. Create an instance that allows connections from Private Service Connect endpoints to the instance.
1703 &quot;serviceOwnedProjectNumber&quot;: &quot;A String&quot;, # Output only. The project number that needs to be allowlisted on the network attachment to enable outbound connectivity.
1704 },
1705 &quot;reconciling&quot;: True or False, # Output only. Reconciling (https://google.aip.dev/128#reconciliation). Set to true if the current state of Cluster does not match the user&#x27;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.
1706 &quot;satisfiesPzs&quot;: True or False, # Output only. Reserved for future use.
1707 &quot;secondaryConfig&quot;: { # Configuration information for the secondary cluster. This should be set if and only if the cluster is of type SECONDARY. # Cross Region replication config specific to SECONDARY cluster.
1708 &quot;primaryClusterName&quot;: &quot;A String&quot;, # The name of the primary cluster name with the format: * projects/{project}/locations/{region}/clusters/{cluster_id}
1709 },
1710 &quot;sslConfig&quot;: { # SSL configuration. # SSL configuration for this AlloyDB cluster.
1711 &quot;caSource&quot;: &quot;A String&quot;, # Optional. Certificate Authority (CA) source. Only CA_SOURCE_MANAGED is supported currently, and is the default value.
1712 &quot;sslMode&quot;: &quot;A String&quot;, # Optional. SSL mode. Specifies client-server SSL/TLS connection behavior.
1713 },
1714 &quot;state&quot;: &quot;A String&quot;, # Output only. The current serving state of the cluster.
1715 &quot;subscriptionType&quot;: &quot;A String&quot;, # Optional. Subscription type of the cluster.
1716 &quot;tags&quot;: { # Optional. Input only. Immutable. Tag keys/values directly bound to this resource. For example: ``` &quot;123/environment&quot;: &quot;production&quot;, &quot;123/costCenter&quot;: &quot;marketing&quot; ```
1717 &quot;a_key&quot;: &quot;A String&quot;,
1718 },
1719 &quot;trialMetadata&quot;: { # Contains information and all metadata related to TRIAL clusters. # Output only. Metadata for free trial clusters
1720 &quot;endTime&quot;: &quot;A String&quot;, # End time of the trial cluster.
1721 &quot;graceEndTime&quot;: &quot;A String&quot;, # grace end time of the cluster.
1722 &quot;startTime&quot;: &quot;A String&quot;, # start time of the trial cluster.
1723 &quot;upgradeTime&quot;: &quot;A String&quot;, # Upgrade time of trial cluster to Standard cluster.
1724 },
1725 &quot;uid&quot;: &quot;A String&quot;, # 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.
1726 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Update time stamp
1727 },
1728 &quot;clusterId&quot;: &quot;A String&quot;, # Required. ID of the requesting object.
1729 &quot;continuousBackupSource&quot;: { # Message describing a ContinuousBackupSource. # ContinuousBackup source. Continuous backup needs to be enabled in the source cluster for this operation to succeed.
1730 &quot;cluster&quot;: &quot;A String&quot;, # 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.
1731 &quot;pointInTime&quot;: &quot;A String&quot;, # Required. The point in time to restore to.
1732 },
1733 &quot;requestId&quot;: &quot;A String&quot;, # 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).
1734 &quot;validateOnly&quot;: True or False, # Optional. If set, performs request validation, for example, permission checks and any other type of validation, but does not actually execute the create request.
1735 }
1736
1737 x__xgafv: string, V1 error format.
1738 Allowed values
1739 1 - v1 error format
1740 2 - v2 error format
1741
1742 Returns:
1743 An object of the form:
1744
1745 { # This resource represents a long-running operation that is the result of a network API call.
1746 &quot;done&quot;: True or False, # 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.
1747 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
1748 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
1749 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
1750 {
1751 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1752 },
1753 ],
1754 &quot;message&quot;: &quot;A String&quot;, # 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.
1755 },
1756 &quot;metadata&quot;: { # 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.
1757 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1758 },
1759 &quot;name&quot;: &quot;A String&quot;, # 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}`.
1760 &quot;response&quot;: { # 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`.
1761 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1762 },
1763 }</pre>
1764 </div>
1765
1766 <div class="method">
1767 <code class="details" id="restoreFromCloudSQL">restoreFromCloudSQL(parent, body=None, x__xgafv=None)</code>
1768 <pre>Restores an AlloyDB cluster from a CloudSQL resource.
1769
1770 Args:
1771 parent: string, Required. The location of the new cluster. For the required format, see the comment on Cluster.name field. (required)
1772 body: object, The request body.
1773 The object takes the form of:
1774
1775 { # Message for registering Restoring from CloudSQL resource.
1776 &quot;cloudsqlBackupRunSource&quot;: { # The source CloudSQL backup resource. # Cluster created from CloudSQL backup run.
1777 &quot;backupRunId&quot;: &quot;A String&quot;, # Required. The CloudSQL backup run ID.
1778 &quot;instanceId&quot;: &quot;A String&quot;, # Required. The CloudSQL instance ID.
1779 &quot;project&quot;: &quot;A String&quot;, # The project ID of the source CloudSQL instance. This should be the same as the AlloyDB cluster&#x27;s project.
1780 },
1781 &quot;cluster&quot;: { # A cluster is a collection of regional AlloyDB resources. It can include a primary instance and one or more read pool instances. All cluster resources share a storage layer, which scales as needed. # Required. The resource being created
1782 &quot;annotations&quot;: { # Annotations to allow client tools to store small amount of arbitrary data. This is distinct from labels. https://google.aip.dev/128
1783 &quot;a_key&quot;: &quot;A String&quot;,
1784 },
1785 &quot;automatedBackupPolicy&quot;: { # Message describing the user-specified automated backup policy. All fields in the automated backup policy are optional. Defaults for each field are provided if they are not set. # 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.
1786 &quot;backupWindow&quot;: &quot;A String&quot;, # 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.
1787 &quot;enabled&quot;: True or False, # Whether automated automated backups are enabled. If not set, defaults to true.
1788 &quot;encryptionConfig&quot;: { # EncryptionConfig describes the encryption config of a cluster or a backup that is encrypted with a CMEK (customer-managed encryption key). # 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&#x27;s encryption config.
1789 &quot;kmsKeyName&quot;: &quot;A String&quot;, # 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]
1790 },
1791 &quot;labels&quot;: { # Labels to apply to backups created using this configuration.
1792 &quot;a_key&quot;: &quot;A String&quot;,
1793 },
1794 &quot;location&quot;: &quot;A String&quot;, # 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.
1795 &quot;quantityBasedRetention&quot;: { # A quantity based policy specifies that a certain number of the most recent successful backups should be retained. # Quantity-based Backup retention policy to retain recent backups.
1796 &quot;count&quot;: 42, # The number of backups to retain.
1797 },
1798 &quot;timeBasedRetention&quot;: { # A time based retention policy specifies that all backups within a certain time period should be retained. # Time-based Backup retention policy.
1799 &quot;retentionPeriod&quot;: &quot;A String&quot;, # The retention period.
1800 },
1801 &quot;weeklySchedule&quot;: { # A weekly schedule starts a backup at prescribed start times within a day, for the specified days of the week. The weekly schedule message is flexible and can be used to create many types of schedules. For example, to have a daily backup that starts at 22:00, configure the `start_times` field to have one element &quot;22:00&quot; and the `days_of_week` field to have all seven days of the week. # Weekly schedule for the Backup.
1802 &quot;daysOfWeek&quot;: [ # The days of the week to perform a backup. If this field is left empty, the default of every day of the week is used.
1803 &quot;A String&quot;,
1804 ],
1805 &quot;startTimes&quot;: [ # The times during the day to start a backup. The start times are assumed to be in UTC and to be an exact hour (e.g., 04:00:00). If no start times are provided, a single fixed start time is chosen arbitrarily.
1806 { # Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date and `google.protobuf.Timestamp`.
1807 &quot;hours&quot;: 42, # 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 &quot;24:00:00&quot; for scenarios like business closing time.
1808 &quot;minutes&quot;: 42, # Minutes of an hour. Must be greater than or equal to 0 and less than or equal to 59.
1809 &quot;nanos&quot;: 42, # Fractions of seconds, in nanoseconds. Must be greater than or equal to 0 and less than or equal to 999,999,999.
1810 &quot;seconds&quot;: 42, # 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.
1811 },
1812 ],
1813 },
1814 },
1815 &quot;backupSource&quot;: { # Message describing a BackupSource. # Output only. Cluster created from backup.
1816 &quot;backupName&quot;: &quot;A String&quot;, # Required. The name of the backup resource with the format: * projects/{project}/locations/{region}/backups/{backup_id}
1817 &quot;backupUid&quot;: &quot;A String&quot;, # 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.
1818 },
1819 &quot;backupdrBackupSource&quot;: { # Message describing a BackupDrBackupSource. # Output only. Cluster created from a BackupDR backup.
1820 &quot;backup&quot;: &quot;A String&quot;, # Required. The name of the backup resource with the format: * projects/{project}/locations/{location}/backupVaults/{backupvault_id}/dataSources/{datasource_id}/backups/{backup_id}
1821 },
1822 &quot;backupdrInfo&quot;: { # Information about BackupDR protection for this cluster. # Output only. Output only information about BackupDR protection for this cluster.
1823 &quot;currentWindow&quot;: { # Information about a single window when BackupDR was enabled for this cluster. # The current BackupDR configuration for this cluster. If BackupDR protection is not enabled for this cluster, this field will be empty.
1824 &quot;automatedBackupPreviouslyEnabled&quot;: True or False, # Whether automated backup was previously enabled prior to enabling BackupDR protection for this cluster.
1825 &quot;backupPlanAssociation&quot;: &quot;A String&quot;, # The BackupPlanAssociation resource that was used to enable BackupDR protection for this cluster.
1826 &quot;continuousBackupPreviousRecoveryWindowDays&quot;: 42, # The retention set for the continuous backup that was previously enabled prior to enabling BackupDR protection for this cluster.
1827 &quot;continuousBackupPreviouslyEnabled&quot;: True or False, # Whether continuous backup was previously enabled prior to enabling BackupDR protection for this cluster.
1828 &quot;continuousBackupPreviouslyEnabledTime&quot;: &quot;A String&quot;, # The time when continuous backup was previously enabled prior to enabling BackupDR protection for this cluster.
1829 &quot;dataSource&quot;: &quot;A String&quot;, # The DataSource resource that represents the cluster in BackupDR.
1830 &quot;disabledTime&quot;: &quot;A String&quot;, # Time when the BackupDR protection for this cluster was disabled. This field will be empty if this BackupDR window is the `current_window`.
1831 &quot;enabledTime&quot;: &quot;A String&quot;, # Time when the BackupDR protection for this cluster was enabled.
1832 &quot;logRetentionPeriod&quot;: &quot;A String&quot;, # The retention period for logs generated by BackupDR for this cluster.
1833 },
1834 &quot;previousWindows&quot;: [ # 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.
1835 { # Information about a single window when BackupDR was enabled for this cluster.
1836 &quot;automatedBackupPreviouslyEnabled&quot;: True or False, # Whether automated backup was previously enabled prior to enabling BackupDR protection for this cluster.
1837 &quot;backupPlanAssociation&quot;: &quot;A String&quot;, # The BackupPlanAssociation resource that was used to enable BackupDR protection for this cluster.
1838 &quot;continuousBackupPreviousRecoveryWindowDays&quot;: 42, # The retention set for the continuous backup that was previously enabled prior to enabling BackupDR protection for this cluster.
1839 &quot;continuousBackupPreviouslyEnabled&quot;: True or False, # Whether continuous backup was previously enabled prior to enabling BackupDR protection for this cluster.
1840 &quot;continuousBackupPreviouslyEnabledTime&quot;: &quot;A String&quot;, # The time when continuous backup was previously enabled prior to enabling BackupDR protection for this cluster.
1841 &quot;dataSource&quot;: &quot;A String&quot;, # The DataSource resource that represents the cluster in BackupDR.
1842 &quot;disabledTime&quot;: &quot;A String&quot;, # Time when the BackupDR protection for this cluster was disabled. This field will be empty if this BackupDR window is the `current_window`.
1843 &quot;enabledTime&quot;: &quot;A String&quot;, # Time when the BackupDR protection for this cluster was enabled.
1844 &quot;logRetentionPeriod&quot;: &quot;A String&quot;, # The retention period for logs generated by BackupDR for this cluster.
1845 },
1846 ],
1847 },
1848 &quot;cloudsqlBackupRunSource&quot;: { # The source CloudSQL backup resource. # Output only. Cluster created from CloudSQL snapshot.
1849 &quot;backupRunId&quot;: &quot;A String&quot;, # Required. The CloudSQL backup run ID.
1850 &quot;instanceId&quot;: &quot;A String&quot;, # Required. The CloudSQL instance ID.
1851 &quot;project&quot;: &quot;A String&quot;, # The project ID of the source CloudSQL instance. This should be the same as the AlloyDB cluster&#x27;s project.
1852 },
1853 &quot;clusterType&quot;: &quot;A String&quot;, # Output only. The type of the cluster. This is an output-only field and it&#x27;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`
1854 &quot;continuousBackupConfig&quot;: { # ContinuousBackupConfig describes the continuous backups recovery configurations of a cluster. # Optional. Continuous backup configuration for this cluster.
1855 &quot;enabled&quot;: True or False, # Whether ContinuousBackup is enabled.
1856 &quot;encryptionConfig&quot;: { # EncryptionConfig describes the encryption config of a cluster or a backup that is encrypted with a CMEK (customer-managed encryption key). # 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&#x27;s encryption config.
1857 &quot;kmsKeyName&quot;: &quot;A String&quot;, # 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]
1858 },
1859 &quot;recoveryWindowDays&quot;: 42, # 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.
1860 },
1861 &quot;continuousBackupInfo&quot;: { # ContinuousBackupInfo describes the continuous backup properties of a cluster. # Output only. Continuous backup properties for this cluster.
1862 &quot;earliestRestorableTime&quot;: &quot;A String&quot;, # 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&#x27;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 &quot;now minus the recovery window&quot;. 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.
1863 &quot;enabledTime&quot;: &quot;A String&quot;, # Output only. When ContinuousBackup was most recently enabled. Set to null if ContinuousBackup is not enabled.
1864 &quot;encryptionInfo&quot;: { # EncryptionInfo describes the encryption information of a cluster or a backup. # Output only. The encryption information for the WALs and backups required for ContinuousBackup.
1865 &quot;encryptionType&quot;: &quot;A String&quot;, # Output only. Type of encryption.
1866 &quot;kmsKeyVersions&quot;: [ # Output only. Cloud KMS key versions that are being used to protect the database or the backup.
1867 &quot;A String&quot;,
1868 ],
1869 },
1870 &quot;schedule&quot;: [ # Output only. Days of the week on which a continuous backup is taken.
1871 &quot;A String&quot;,
1872 ],
1873 },
1874 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Create time stamp
1875 &quot;databaseVersion&quot;: &quot;A String&quot;, # 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.
1876 &quot;dataplexConfig&quot;: { # Configuration for Dataplex integration. # Optional. Configuration for Dataplex integration.
1877 &quot;enabled&quot;: True or False, # 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.&quot;
1878 },
1879 &quot;deleteTime&quot;: &quot;A String&quot;, # Output only. Delete time stamp
1880 &quot;displayName&quot;: &quot;A String&quot;, # User-settable and human-readable display name for the Cluster.
1881 &quot;encryptionConfig&quot;: { # EncryptionConfig describes the encryption config of a cluster or a backup that is encrypted with a CMEK (customer-managed encryption key). # 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.
1882 &quot;kmsKeyName&quot;: &quot;A String&quot;, # 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]
1883 },
1884 &quot;encryptionInfo&quot;: { # EncryptionInfo describes the encryption information of a cluster or a backup. # Output only. The encryption information for the cluster.
1885 &quot;encryptionType&quot;: &quot;A String&quot;, # Output only. Type of encryption.
1886 &quot;kmsKeyVersions&quot;: [ # Output only. Cloud KMS key versions that are being used to protect the database or the backup.
1887 &quot;A String&quot;,
1888 ],
1889 },
1890 &quot;etag&quot;: &quot;A String&quot;, # For Resource freshness validation (https://google.aip.dev/154)
1891 &quot;initialUser&quot;: { # The username/password for a database user. Used for specifying initial users at cluster creation time. # Input only. Initial user to setup during cluster creation. Required. If used in `RestoreCluster` this is ignored.
1892 &quot;password&quot;: &quot;A String&quot;, # The initial password for the user.
1893 &quot;user&quot;: &quot;A String&quot;, # The database username.
1894 },
1895 &quot;labels&quot;: { # Labels as key value pairs
1896 &quot;a_key&quot;: &quot;A String&quot;,
1897 },
1898 &quot;maintenanceSchedule&quot;: { # MaintenanceSchedule stores the maintenance schedule generated from the MaintenanceUpdatePolicy, once a maintenance rollout is triggered, if MaintenanceWindow is set, and if there is no conflicting DenyPeriod. The schedule is cleared once the update takes place. This field cannot be manually changed; modify the MaintenanceUpdatePolicy instead. # Output only. The maintenance schedule for the cluster, generated for a specific rollout if a maintenance window is set.
1899 &quot;startTime&quot;: &quot;A String&quot;, # Output only. The scheduled start time for the maintenance.
1900 },
1901 &quot;maintenanceUpdatePolicy&quot;: { # MaintenanceUpdatePolicy defines the policy for system updates. # Optional. The maintenance update policy determines when to allow or deny updates.
1902 &quot;denyMaintenancePeriods&quot;: [ # Periods to deny maintenance. Currently limited to 1.
1903 { # DenyMaintenancePeriod definition. Excepting emergencies, maintenance will not be scheduled to start within this deny period. The start_date must be less than the end_date.
1904 &quot;endDate&quot;: { # Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp # 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
1905 &quot;day&quot;: 42, # 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&#x27;t significant.
1906 &quot;month&quot;: 42, # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
1907 &quot;year&quot;: 42, # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
1908 },
1909 &quot;startDate&quot;: { # Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp # 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
1910 &quot;day&quot;: 42, # 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&#x27;t significant.
1911 &quot;month&quot;: 42, # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
1912 &quot;year&quot;: 42, # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
1913 },
1914 &quot;time&quot;: { # Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date and `google.protobuf.Timestamp`. # 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
1915 &quot;hours&quot;: 42, # 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 &quot;24:00:00&quot; for scenarios like business closing time.
1916 &quot;minutes&quot;: 42, # Minutes of an hour. Must be greater than or equal to 0 and less than or equal to 59.
1917 &quot;nanos&quot;: 42, # Fractions of seconds, in nanoseconds. Must be greater than or equal to 0 and less than or equal to 999,999,999.
1918 &quot;seconds&quot;: 42, # 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.
1919 },
1920 },
1921 ],
1922 &quot;maintenanceWindows&quot;: [ # Preferred windows to perform maintenance. Currently limited to 1.
1923 { # MaintenanceWindow specifies a preferred day and time for maintenance.
1924 &quot;day&quot;: &quot;A String&quot;, # Preferred day of the week for maintenance, e.g. MONDAY, TUESDAY, etc.
1925 &quot;startTime&quot;: { # Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date and `google.protobuf.Timestamp`. # Preferred time to start the maintenance operation on the specified day. Maintenance will start within 1 hour of this time.
1926 &quot;hours&quot;: 42, # 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 &quot;24:00:00&quot; for scenarios like business closing time.
1927 &quot;minutes&quot;: 42, # Minutes of an hour. Must be greater than or equal to 0 and less than or equal to 59.
1928 &quot;nanos&quot;: 42, # Fractions of seconds, in nanoseconds. Must be greater than or equal to 0 and less than or equal to 999,999,999.
1929 &quot;seconds&quot;: 42, # 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.
1930 },
1931 },
1932 ],
1933 },
1934 &quot;maintenanceVersionSelectionPolicy&quot;: &quot;A String&quot;, # Input only. Policy to use to automatically select the maintenance version to which to update the cluster&#x27;s instances.
1935 &quot;migrationSource&quot;: { # Subset of the source instance configuration that is available when reading the cluster resource. # Output only. Cluster created via DMS migration.
1936 &quot;hostPort&quot;: &quot;A String&quot;, # Output only. The host and port of the on-premises instance in host:port format
1937 &quot;referenceId&quot;: &quot;A String&quot;, # Output only. Place holder for the external source identifier(e.g DMS job name) that created the cluster.
1938 &quot;sourceType&quot;: &quot;A String&quot;, # Output only. Type of migration source.
1939 },
1940 &quot;name&quot;: &quot;A String&quot;, # 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}
1941 &quot;network&quot;: &quot;A String&quot;, # 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.
1942 &quot;networkConfig&quot;: { # Metadata related to network configuration.
1943 &quot;allocatedIpRange&quot;: &quot;A String&quot;, # Optional. Name of the allocated IP range for the private IP AlloyDB cluster, for example: &quot;google-managed-services-default&quot;. 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.
1944 &quot;network&quot;: &quot;A String&quot;, # 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.
1945 },
1946 &quot;primaryConfig&quot;: { # Configuration for the primary cluster. It has the list of clusters that are replicating from this cluster. This should be set if and only if the cluster is of type PRIMARY. # Output only. Cross Region replication config specific to PRIMARY cluster.
1947 &quot;secondaryClusterNames&quot;: [ # Output only. Names of the clusters that are replicating from this cluster.
1948 &quot;A String&quot;,
1949 ],
1950 },
1951 &quot;pscConfig&quot;: { # PscConfig contains PSC related configuration at a cluster level. # Optional. The configuration for Private Service Connect (PSC) for the cluster.
1952 &quot;pscEnabled&quot;: True or False, # Optional. Create an instance that allows connections from Private Service Connect endpoints to the instance.
1953 &quot;serviceOwnedProjectNumber&quot;: &quot;A String&quot;, # Output only. The project number that needs to be allowlisted on the network attachment to enable outbound connectivity.
1954 },
1955 &quot;reconciling&quot;: True or False, # Output only. Reconciling (https://google.aip.dev/128#reconciliation). Set to true if the current state of Cluster does not match the user&#x27;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.
1956 &quot;satisfiesPzs&quot;: True or False, # Output only. Reserved for future use.
1957 &quot;secondaryConfig&quot;: { # Configuration information for the secondary cluster. This should be set if and only if the cluster is of type SECONDARY. # Cross Region replication config specific to SECONDARY cluster.
1958 &quot;primaryClusterName&quot;: &quot;A String&quot;, # The name of the primary cluster name with the format: * projects/{project}/locations/{region}/clusters/{cluster_id}
1959 },
1960 &quot;sslConfig&quot;: { # SSL configuration. # SSL configuration for this AlloyDB cluster.
1961 &quot;caSource&quot;: &quot;A String&quot;, # Optional. Certificate Authority (CA) source. Only CA_SOURCE_MANAGED is supported currently, and is the default value.
1962 &quot;sslMode&quot;: &quot;A String&quot;, # Optional. SSL mode. Specifies client-server SSL/TLS connection behavior.
1963 },
1964 &quot;state&quot;: &quot;A String&quot;, # Output only. The current serving state of the cluster.
1965 &quot;subscriptionType&quot;: &quot;A String&quot;, # Optional. Subscription type of the cluster.
1966 &quot;tags&quot;: { # Optional. Input only. Immutable. Tag keys/values directly bound to this resource. For example: ``` &quot;123/environment&quot;: &quot;production&quot;, &quot;123/costCenter&quot;: &quot;marketing&quot; ```
1967 &quot;a_key&quot;: &quot;A String&quot;,
1968 },
1969 &quot;trialMetadata&quot;: { # Contains information and all metadata related to TRIAL clusters. # Output only. Metadata for free trial clusters
1970 &quot;endTime&quot;: &quot;A String&quot;, # End time of the trial cluster.
1971 &quot;graceEndTime&quot;: &quot;A String&quot;, # grace end time of the cluster.
1972 &quot;startTime&quot;: &quot;A String&quot;, # start time of the trial cluster.
1973 &quot;upgradeTime&quot;: &quot;A String&quot;, # Upgrade time of trial cluster to Standard cluster.
1974 },
1975 &quot;uid&quot;: &quot;A String&quot;, # 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.
1976 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Update time stamp
1977 },
1978 &quot;clusterId&quot;: &quot;A String&quot;, # Required. ID of the requesting object.
1979 }
1980
1981 x__xgafv: string, V1 error format.
1982 Allowed values
1983 1 - v1 error format
1984 2 - v2 error format
1985
1986 Returns:
1987 An object of the form:
1988
1989 { # This resource represents a long-running operation that is the result of a network API call.
1990 &quot;done&quot;: True or False, # 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.
1991 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
1992 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
1993 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
1994 {
1995 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1996 },
1997 ],
1998 &quot;message&quot;: &quot;A String&quot;, # 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.
1999 },
2000 &quot;metadata&quot;: { # 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.
2001 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
2002 },
2003 &quot;name&quot;: &quot;A String&quot;, # 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}`.
2004 &quot;response&quot;: { # 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`.
2005 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
2006 },
2007 }</pre>
2008 </div>
2009
2010 <div class="method">
2011 <code class="details" id="switchover">switchover(name, body=None, x__xgafv=None)</code>
2012 <pre>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.
2013
2014 Args:
2015 name: string, Required. The name of the resource. For the required format, see the comment on the Cluster.name field (required)
2016 body: object, The request body.
2017 The object takes the form of:
2018
2019 { # Message for switching over to a cluster
2020 &quot;requestId&quot;: &quot;A String&quot;, # 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).
2021 &quot;validateOnly&quot;: True or False, # Optional. If set, performs request validation, for example, permission checks and any other type of validation, but does not actually execute the create request.
2022 }
2023
2024 x__xgafv: string, V1 error format.
2025 Allowed values
2026 1 - v1 error format
2027 2 - v2 error format
2028
2029 Returns:
2030 An object of the form:
2031
2032 { # This resource represents a long-running operation that is the result of a network API call.
2033 &quot;done&quot;: True or False, # 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.
2034 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
2035 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
2036 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
2037 {
2038 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
2039 },
2040 ],
2041 &quot;message&quot;: &quot;A String&quot;, # 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.
2042 },
2043 &quot;metadata&quot;: { # 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.
2044 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
2045 },
2046 &quot;name&quot;: &quot;A String&quot;, # 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}`.
2047 &quot;response&quot;: { # 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`.
2048 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
2049 },
2050 }</pre>
2051 </div>
2052
2053 <div class="method">
2054 <code class="details" id="upgrade">upgrade(name, body=None, x__xgafv=None)</code>
2055 <pre>Upgrades a single Cluster. Imperative only.
2056
2057 Args:
2058 name: string, Required. The resource name of the cluster. (required)
2059 body: object, The request body.
2060 The object takes the form of:
2061
2062 { # Upgrades a cluster.
2063 &quot;etag&quot;: &quot;A String&quot;, # Optional. The current etag of the Cluster. If an etag is provided and does not match the current etag of the Cluster, upgrade will be blocked and an ABORTED error will be returned.
2064 &quot;requestId&quot;: &quot;A String&quot;, # 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).
2065 &quot;validateOnly&quot;: True or False, # Optional. If set, performs request validation, for example, permission checks and any other type of validation, but does not actually execute the create request.
2066 &quot;version&quot;: &quot;A String&quot;, # Required. The version the cluster is going to be upgraded to.
2067 }
2068
2069 x__xgafv: string, V1 error format.
2070 Allowed values
2071 1 - v1 error format
2072 2 - v2 error format
2073
2074 Returns:
2075 An object of the form:
2076
2077 { # This resource represents a long-running operation that is the result of a network API call.
2078 &quot;done&quot;: True or False, # 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.
2079 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
2080 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
2081 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
2082 {
2083 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
2084 },
2085 ],
2086 &quot;message&quot;: &quot;A String&quot;, # 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.
2087 },
2088 &quot;metadata&quot;: { # 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.
2089 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
2090 },
2091 &quot;name&quot;: &quot;A String&quot;, # 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}`.
2092 &quot;response&quot;: { # 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`.
2093 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
2094 },
2095 }</pre>
2096 </div>
2097
2098 </body></html>