Debian Codegraph @

docs/dyn/alloydb_v1alpha.projects.locations.backups.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_v1alpha.html">AlloyDB API</a> . <a href="alloydb_v1alpha.projects.html">projects</a> . <a href="alloydb_v1alpha.projects.locations.html">locations</a> . <a href="alloydb_v1alpha.projects.locations.backups.html">backups</a></h1>
76 <h2>Instance Methods</h2>
77 <p class="toc_element">
78 <code><a href="#close">close()</a></code></p>
79 <p class="firstline">Close httplib2 connections.</p>
80 <p class="toc_element">
81 <code><a href="#create">create(parent, backupId=None, body=None, requestId=None, validateOnly=None, x__xgafv=None)</a></code></p>
82 <p class="firstline">Creates a new Backup in a given project and location.</p>
83 <p class="toc_element">
84 <code><a href="#delete">delete(name, etag=None, requestId=None, validateOnly=None, x__xgafv=None)</a></code></p>
85 <p class="firstline">Deletes a single Backup.</p>
86 <p class="toc_element">
87 <code><a href="#get">get(name, view=None, x__xgafv=None)</a></code></p>
88 <p class="firstline">Gets details of a single Backup.</p>
89 <p class="toc_element">
90 <code><a href="#list">list(parent, filter=None, orderBy=None, pageSize=None, pageToken=None, view=None, x__xgafv=None)</a></code></p>
91 <p class="firstline">Lists Backups in a given project and location.</p>
92 <p class="toc_element">
93 <code><a href="#list_next">list_next()</a></code></p>
94 <p class="firstline">Retrieves the next page of results.</p>
95 <p class="toc_element">
96 <code><a href="#patch">patch(name, allowMissing=None, body=None, requestId=None, updateMask=None, validateOnly=None, x__xgafv=None)</a></code></p>
97 <p class="firstline">Updates the parameters of a single Backup.</p>
98 <h3>Method Details</h3>
99 <div class="method">
100 <code class="details" id="close">close()</code>
101 <pre>Close httplib2 connections.</pre>
102 </div>
103
104 <div class="method">
105 <code class="details" id="create">create(parent, backupId=None, body=None, requestId=None, validateOnly=None, x__xgafv=None)</code>
106 <pre>Creates a new Backup in a given project and location.
107
108 Args:
109 parent: string, Required. Value for parent. (required)
110 body: object, The request body.
111 The object takes the form of:
112
113 { # Message describing Backup object
114 &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
115 &quot;a_key&quot;: &quot;A String&quot;,
116 },
117 &quot;clusterDeleted&quot;: True or False, # Output only. Set to true if the cluster corresponding to this backup is deleted. This field is only populated for when using the BACKUP_VIEW_CLUSTER_DELETED view.
118 &quot;clusterName&quot;: &quot;A String&quot;, # Required. The full resource name of the backup source cluster (e.g., projects/{project}/locations/{region}/clusters/{cluster_id}).
119 &quot;clusterUid&quot;: &quot;A String&quot;, # Output only. The system-generated UID of the cluster which was used to create this resource.
120 &quot;createCompletionTime&quot;: &quot;A String&quot;, # Output only. Timestamp when the resource finished being created.
121 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Create time stamp
122 &quot;databaseVersion&quot;: &quot;A String&quot;, # Output only. The database engine major version of the cluster this backup was created from. Any restored cluster created from this backup will have the same database version.
123 &quot;deleteTime&quot;: &quot;A String&quot;, # Output only. Delete time stamp
124 &quot;description&quot;: &quot;A String&quot;, # User-provided description of the backup.
125 &quot;displayName&quot;: &quot;A String&quot;, # User-settable and human-readable display name for the Backup.
126 &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 backup with a customer-managed encryption key (CMEK). When this field is not specified, the backup will then use default encryption scheme to protect the user data.
127 &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]
128 },
129 &quot;encryptionInfo&quot;: { # EncryptionInfo describes the encryption information of a cluster or a backup. # Output only. The encryption information for the backup.
130 &quot;encryptionType&quot;: &quot;A String&quot;, # Output only. Type of encryption.
131 &quot;kmsKeyVersions&quot;: [ # Output only. Cloud KMS key versions that are being used to protect the database or the backup.
132 &quot;A String&quot;,
133 ],
134 },
135 &quot;etag&quot;: &quot;A String&quot;, # For Resource freshness validation (https://google.aip.dev/154)
136 &quot;expiryQuantity&quot;: { # A backup&#x27;s position in a quantity-based retention queue, of backups with the same source cluster and type, with length, retention, specified by the backup&#x27;s retention policy. Once the position is greater than the retention, the backup is eligible to be garbage collected. Example: 5 backups from the same source cluster and type with a quantity-based retention of 3 and denoted by backup_id (position, retention). Safe: backup_5 (1, 3), backup_4, (2, 3), backup_3 (3, 3). Awaiting garbage collection: backup_2 (4, 3), backup_1 (5, 3) # Output only. The QuantityBasedExpiry of the backup, specified by the backup&#x27;s retention policy. Once the expiry quantity is over retention, the backup is eligible to be garbage collected.
137 &quot;retentionCount&quot;: 42, # Output only. The backup&#x27;s position among its backups with the same source cluster and type, by descending chronological order create time(i.e. newest first).
138 &quot;totalRetentionCount&quot;: 42, # Output only. The length of the quantity-based queue, specified by the backup&#x27;s retention policy.
139 },
140 &quot;expiryTime&quot;: &quot;A String&quot;, # Output only. The time at which after the backup is eligible to be garbage collected. It is the duration specified by the backup&#x27;s retention policy, added to the backup&#x27;s create_time.
141 &quot;labels&quot;: { # Labels as key value pairs
142 &quot;a_key&quot;: &quot;A String&quot;,
143 },
144 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the backup resource with the format: * projects/{project}/locations/{region}/backups/{backup_id} where the cluster and backup ID segments should satisfy the regex expression `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`, e.g. 1-63 characters of lowercase letters, numbers, and dashes, starting with a letter, and ending with a letter or number. For more details see https://google.aip.dev/122. The prefix of the backup resource name is the name of the parent resource: * projects/{project}/locations/{region}
145 &quot;reconciling&quot;: True or False, # Output only. Reconciling (https://google.aip.dev/128#reconciliation), if true, indicates that the service is actively updating the resource. This can happen due to user-triggered updates or system actions like failover or maintenance.
146 &quot;satisfiesPzi&quot;: True or False, # Output only. Reserved for future use.
147 &quot;satisfiesPzs&quot;: True or False, # Output only. Reserved for future use.
148 &quot;sizeBytes&quot;: &quot;A String&quot;, # Output only. The size of the backup in bytes.
149 &quot;state&quot;: &quot;A String&quot;, # Output only. The current state of the backup.
150 &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; ```
151 &quot;a_key&quot;: &quot;A String&quot;,
152 },
153 &quot;type&quot;: &quot;A String&quot;, # The backup type, which suggests the trigger for the backup.
154 &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.
155 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Update time stamp Users should not infer any meaning from this field. Its value is generally unrelated to the timing of the backup creation operation.
156 }
157
158 backupId: string, Required. ID of the requesting object.
159 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).
160 validateOnly: boolean, Optional. If set, the backend validates the request, but doesn&#x27;t actually execute it.
161 x__xgafv: string, V1 error format.
162 Allowed values
163 1 - v1 error format
164 2 - v2 error format
165
166 Returns:
167 An object of the form:
168
169 { # This resource represents a long-running operation that is the result of a network API call.
170 &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.
171 &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.
172 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
173 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
174 {
175 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
176 },
177 ],
178 &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.
179 },
180 &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.
181 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
182 },
183 &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}`.
184 &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`.
185 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
186 },
187 }</pre>
188 </div>
189
190 <div class="method">
191 <code class="details" id="delete">delete(name, etag=None, requestId=None, validateOnly=None, x__xgafv=None)</code>
192 <pre>Deletes a single Backup.
193
194 Args:
195 name: string, Required. Name of the resource. For the required format, see the comment on the Backup.name field. (required)
196 etag: string, Optional. The current etag of the Backup. If an etag is provided and does not match the current etag of the Backup, deletion will be blocked and an ABORTED error will be returned.
197 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).
198 validateOnly: boolean, Optional. If set, the backend validates the request, but doesn&#x27;t actually execute it.
199 x__xgafv: string, V1 error format.
200 Allowed values
201 1 - v1 error format
202 2 - v2 error format
203
204 Returns:
205 An object of the form:
206
207 { # This resource represents a long-running operation that is the result of a network API call.
208 &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.
209 &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.
210 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
211 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
212 {
213 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
214 },
215 ],
216 &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.
217 },
218 &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.
219 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
220 },
221 &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}`.
222 &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`.
223 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
224 },
225 }</pre>
226 </div>
227
228 <div class="method">
229 <code class="details" id="get">get(name, view=None, x__xgafv=None)</code>
230 <pre>Gets details of a single Backup.
231
232 Args:
233 name: string, Required. Name of the resource (required)
234 view: string, Optional. The view of the backup to return.
235 Allowed values
236 BACKUP_VIEW_UNSPECIFIED - Value unspecified, equivalent to BASIC.
237 BACKUP_VIEW_BASIC - Responses include all fields that aren&#x27;t explicitly gated behind another view.
238 BACKUP_VIEW_CLUSTER_DELETED - Response include all the field from BASIC plus the field cluster_deleted, which specifies if the cluster corresponding to this backup is deleted.
239 x__xgafv: string, V1 error format.
240 Allowed values
241 1 - v1 error format
242 2 - v2 error format
243
244 Returns:
245 An object of the form:
246
247 { # Message describing Backup object
248 &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
249 &quot;a_key&quot;: &quot;A String&quot;,
250 },
251 &quot;clusterDeleted&quot;: True or False, # Output only. Set to true if the cluster corresponding to this backup is deleted. This field is only populated for when using the BACKUP_VIEW_CLUSTER_DELETED view.
252 &quot;clusterName&quot;: &quot;A String&quot;, # Required. The full resource name of the backup source cluster (e.g., projects/{project}/locations/{region}/clusters/{cluster_id}).
253 &quot;clusterUid&quot;: &quot;A String&quot;, # Output only. The system-generated UID of the cluster which was used to create this resource.
254 &quot;createCompletionTime&quot;: &quot;A String&quot;, # Output only. Timestamp when the resource finished being created.
255 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Create time stamp
256 &quot;databaseVersion&quot;: &quot;A String&quot;, # Output only. The database engine major version of the cluster this backup was created from. Any restored cluster created from this backup will have the same database version.
257 &quot;deleteTime&quot;: &quot;A String&quot;, # Output only. Delete time stamp
258 &quot;description&quot;: &quot;A String&quot;, # User-provided description of the backup.
259 &quot;displayName&quot;: &quot;A String&quot;, # User-settable and human-readable display name for the Backup.
260 &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 backup with a customer-managed encryption key (CMEK). When this field is not specified, the backup will then use default encryption scheme to protect the user data.
261 &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]
262 },
263 &quot;encryptionInfo&quot;: { # EncryptionInfo describes the encryption information of a cluster or a backup. # Output only. The encryption information for the backup.
264 &quot;encryptionType&quot;: &quot;A String&quot;, # Output only. Type of encryption.
265 &quot;kmsKeyVersions&quot;: [ # Output only. Cloud KMS key versions that are being used to protect the database or the backup.
266 &quot;A String&quot;,
267 ],
268 },
269 &quot;etag&quot;: &quot;A String&quot;, # For Resource freshness validation (https://google.aip.dev/154)
270 &quot;expiryQuantity&quot;: { # A backup&#x27;s position in a quantity-based retention queue, of backups with the same source cluster and type, with length, retention, specified by the backup&#x27;s retention policy. Once the position is greater than the retention, the backup is eligible to be garbage collected. Example: 5 backups from the same source cluster and type with a quantity-based retention of 3 and denoted by backup_id (position, retention). Safe: backup_5 (1, 3), backup_4, (2, 3), backup_3 (3, 3). Awaiting garbage collection: backup_2 (4, 3), backup_1 (5, 3) # Output only. The QuantityBasedExpiry of the backup, specified by the backup&#x27;s retention policy. Once the expiry quantity is over retention, the backup is eligible to be garbage collected.
271 &quot;retentionCount&quot;: 42, # Output only. The backup&#x27;s position among its backups with the same source cluster and type, by descending chronological order create time(i.e. newest first).
272 &quot;totalRetentionCount&quot;: 42, # Output only. The length of the quantity-based queue, specified by the backup&#x27;s retention policy.
273 },
274 &quot;expiryTime&quot;: &quot;A String&quot;, # Output only. The time at which after the backup is eligible to be garbage collected. It is the duration specified by the backup&#x27;s retention policy, added to the backup&#x27;s create_time.
275 &quot;labels&quot;: { # Labels as key value pairs
276 &quot;a_key&quot;: &quot;A String&quot;,
277 },
278 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the backup resource with the format: * projects/{project}/locations/{region}/backups/{backup_id} where the cluster and backup ID segments should satisfy the regex expression `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`, e.g. 1-63 characters of lowercase letters, numbers, and dashes, starting with a letter, and ending with a letter or number. For more details see https://google.aip.dev/122. The prefix of the backup resource name is the name of the parent resource: * projects/{project}/locations/{region}
279 &quot;reconciling&quot;: True or False, # Output only. Reconciling (https://google.aip.dev/128#reconciliation), if true, indicates that the service is actively updating the resource. This can happen due to user-triggered updates or system actions like failover or maintenance.
280 &quot;satisfiesPzi&quot;: True or False, # Output only. Reserved for future use.
281 &quot;satisfiesPzs&quot;: True or False, # Output only. Reserved for future use.
282 &quot;sizeBytes&quot;: &quot;A String&quot;, # Output only. The size of the backup in bytes.
283 &quot;state&quot;: &quot;A String&quot;, # Output only. The current state of the backup.
284 &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; ```
285 &quot;a_key&quot;: &quot;A String&quot;,
286 },
287 &quot;type&quot;: &quot;A String&quot;, # The backup type, which suggests the trigger for the backup.
288 &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.
289 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Update time stamp Users should not infer any meaning from this field. Its value is generally unrelated to the timing of the backup creation operation.
290 }</pre>
291 </div>
292
293 <div class="method">
294 <code class="details" id="list">list(parent, filter=None, orderBy=None, pageSize=None, pageToken=None, view=None, x__xgafv=None)</code>
295 <pre>Lists Backups in a given project and location.
296
297 Args:
298 parent: string, Required. Parent value for ListBackupsRequest (required)
299 filter: string, Filtering results
300 orderBy: string, Hint for how to order the results
301 pageSize: integer, Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.
302 pageToken: string, A token identifying a page of results the server should return.
303 view: string, Optional. The view of the backup to return.
304 Allowed values
305 BACKUP_VIEW_UNSPECIFIED - Value unspecified, equivalent to BASIC.
306 BACKUP_VIEW_BASIC - Responses include all fields that aren&#x27;t explicitly gated behind another view.
307 BACKUP_VIEW_CLUSTER_DELETED - Response include all the field from BASIC plus the field cluster_deleted, which specifies if the cluster corresponding to this backup is deleted.
308 x__xgafv: string, V1 error format.
309 Allowed values
310 1 - v1 error format
311 2 - v2 error format
312
313 Returns:
314 An object of the form:
315
316 { # Message for response to listing Backups
317 &quot;backups&quot;: [ # The list of Backup
318 { # Message describing Backup object
319 &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
320 &quot;a_key&quot;: &quot;A String&quot;,
321 },
322 &quot;clusterDeleted&quot;: True or False, # Output only. Set to true if the cluster corresponding to this backup is deleted. This field is only populated for when using the BACKUP_VIEW_CLUSTER_DELETED view.
323 &quot;clusterName&quot;: &quot;A String&quot;, # Required. The full resource name of the backup source cluster (e.g., projects/{project}/locations/{region}/clusters/{cluster_id}).
324 &quot;clusterUid&quot;: &quot;A String&quot;, # Output only. The system-generated UID of the cluster which was used to create this resource.
325 &quot;createCompletionTime&quot;: &quot;A String&quot;, # Output only. Timestamp when the resource finished being created.
326 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Create time stamp
327 &quot;databaseVersion&quot;: &quot;A String&quot;, # Output only. The database engine major version of the cluster this backup was created from. Any restored cluster created from this backup will have the same database version.
328 &quot;deleteTime&quot;: &quot;A String&quot;, # Output only. Delete time stamp
329 &quot;description&quot;: &quot;A String&quot;, # User-provided description of the backup.
330 &quot;displayName&quot;: &quot;A String&quot;, # User-settable and human-readable display name for the Backup.
331 &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 backup with a customer-managed encryption key (CMEK). When this field is not specified, the backup will then use default encryption scheme to protect the user data.
332 &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]
333 },
334 &quot;encryptionInfo&quot;: { # EncryptionInfo describes the encryption information of a cluster or a backup. # Output only. The encryption information for the backup.
335 &quot;encryptionType&quot;: &quot;A String&quot;, # Output only. Type of encryption.
336 &quot;kmsKeyVersions&quot;: [ # Output only. Cloud KMS key versions that are being used to protect the database or the backup.
337 &quot;A String&quot;,
338 ],
339 },
340 &quot;etag&quot;: &quot;A String&quot;, # For Resource freshness validation (https://google.aip.dev/154)
341 &quot;expiryQuantity&quot;: { # A backup&#x27;s position in a quantity-based retention queue, of backups with the same source cluster and type, with length, retention, specified by the backup&#x27;s retention policy. Once the position is greater than the retention, the backup is eligible to be garbage collected. Example: 5 backups from the same source cluster and type with a quantity-based retention of 3 and denoted by backup_id (position, retention). Safe: backup_5 (1, 3), backup_4, (2, 3), backup_3 (3, 3). Awaiting garbage collection: backup_2 (4, 3), backup_1 (5, 3) # Output only. The QuantityBasedExpiry of the backup, specified by the backup&#x27;s retention policy. Once the expiry quantity is over retention, the backup is eligible to be garbage collected.
342 &quot;retentionCount&quot;: 42, # Output only. The backup&#x27;s position among its backups with the same source cluster and type, by descending chronological order create time(i.e. newest first).
343 &quot;totalRetentionCount&quot;: 42, # Output only. The length of the quantity-based queue, specified by the backup&#x27;s retention policy.
344 },
345 &quot;expiryTime&quot;: &quot;A String&quot;, # Output only. The time at which after the backup is eligible to be garbage collected. It is the duration specified by the backup&#x27;s retention policy, added to the backup&#x27;s create_time.
346 &quot;labels&quot;: { # Labels as key value pairs
347 &quot;a_key&quot;: &quot;A String&quot;,
348 },
349 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the backup resource with the format: * projects/{project}/locations/{region}/backups/{backup_id} where the cluster and backup ID segments should satisfy the regex expression `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`, e.g. 1-63 characters of lowercase letters, numbers, and dashes, starting with a letter, and ending with a letter or number. For more details see https://google.aip.dev/122. The prefix of the backup resource name is the name of the parent resource: * projects/{project}/locations/{region}
350 &quot;reconciling&quot;: True or False, # Output only. Reconciling (https://google.aip.dev/128#reconciliation), if true, indicates that the service is actively updating the resource. This can happen due to user-triggered updates or system actions like failover or maintenance.
351 &quot;satisfiesPzi&quot;: True or False, # Output only. Reserved for future use.
352 &quot;satisfiesPzs&quot;: True or False, # Output only. Reserved for future use.
353 &quot;sizeBytes&quot;: &quot;A String&quot;, # Output only. The size of the backup in bytes.
354 &quot;state&quot;: &quot;A String&quot;, # Output only. The current state of the backup.
355 &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; ```
356 &quot;a_key&quot;: &quot;A String&quot;,
357 },
358 &quot;type&quot;: &quot;A String&quot;, # The backup type, which suggests the trigger for the backup.
359 &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.
360 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Update time stamp Users should not infer any meaning from this field. Its value is generally unrelated to the timing of the backup creation operation.
361 },
362 ],
363 &quot;nextPageToken&quot;: &quot;A String&quot;, # A token identifying a page of results the server should return.
364 &quot;unreachable&quot;: [ # Locations that could not be reached.
365 &quot;A String&quot;,
366 ],
367 }</pre>
368 </div>
369
370 <div class="method">
371 <code class="details" id="list_next">list_next()</code>
372 <pre>Retrieves the next page of results.
373
374 Args:
375 previous_request: The request for the previous page. (required)
376 previous_response: The response from the request for the previous page. (required)
377
378 Returns:
379 A request object that you can call &#x27;execute()&#x27; on to request the next
380 page. Returns None if there are no more items in the collection.
381 </pre>
382 </div>
383
384 <div class="method">
385 <code class="details" id="patch">patch(name, allowMissing=None, body=None, requestId=None, updateMask=None, validateOnly=None, x__xgafv=None)</code>
386 <pre>Updates the parameters of a single Backup.
387
388 Args:
389 name: string, Output only. The name of the backup resource with the format: * projects/{project}/locations/{region}/backups/{backup_id} where the cluster and backup ID segments should satisfy the regex expression `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`, e.g. 1-63 characters of lowercase letters, numbers, and dashes, starting with a letter, and ending with a letter or number. For more details see https://google.aip.dev/122. The prefix of the backup resource name is the name of the parent resource: * projects/{project}/locations/{region} (required)
390 body: object, The request body.
391 The object takes the form of:
392
393 { # Message describing Backup object
394 &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
395 &quot;a_key&quot;: &quot;A String&quot;,
396 },
397 &quot;clusterDeleted&quot;: True or False, # Output only. Set to true if the cluster corresponding to this backup is deleted. This field is only populated for when using the BACKUP_VIEW_CLUSTER_DELETED view.
398 &quot;clusterName&quot;: &quot;A String&quot;, # Required. The full resource name of the backup source cluster (e.g., projects/{project}/locations/{region}/clusters/{cluster_id}).
399 &quot;clusterUid&quot;: &quot;A String&quot;, # Output only. The system-generated UID of the cluster which was used to create this resource.
400 &quot;createCompletionTime&quot;: &quot;A String&quot;, # Output only. Timestamp when the resource finished being created.
401 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Create time stamp
402 &quot;databaseVersion&quot;: &quot;A String&quot;, # Output only. The database engine major version of the cluster this backup was created from. Any restored cluster created from this backup will have the same database version.
403 &quot;deleteTime&quot;: &quot;A String&quot;, # Output only. Delete time stamp
404 &quot;description&quot;: &quot;A String&quot;, # User-provided description of the backup.
405 &quot;displayName&quot;: &quot;A String&quot;, # User-settable and human-readable display name for the Backup.
406 &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 backup with a customer-managed encryption key (CMEK). When this field is not specified, the backup will then use default encryption scheme to protect the user data.
407 &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]
408 },
409 &quot;encryptionInfo&quot;: { # EncryptionInfo describes the encryption information of a cluster or a backup. # Output only. The encryption information for the backup.
410 &quot;encryptionType&quot;: &quot;A String&quot;, # Output only. Type of encryption.
411 &quot;kmsKeyVersions&quot;: [ # Output only. Cloud KMS key versions that are being used to protect the database or the backup.
412 &quot;A String&quot;,
413 ],
414 },
415 &quot;etag&quot;: &quot;A String&quot;, # For Resource freshness validation (https://google.aip.dev/154)
416 &quot;expiryQuantity&quot;: { # A backup&#x27;s position in a quantity-based retention queue, of backups with the same source cluster and type, with length, retention, specified by the backup&#x27;s retention policy. Once the position is greater than the retention, the backup is eligible to be garbage collected. Example: 5 backups from the same source cluster and type with a quantity-based retention of 3 and denoted by backup_id (position, retention). Safe: backup_5 (1, 3), backup_4, (2, 3), backup_3 (3, 3). Awaiting garbage collection: backup_2 (4, 3), backup_1 (5, 3) # Output only. The QuantityBasedExpiry of the backup, specified by the backup&#x27;s retention policy. Once the expiry quantity is over retention, the backup is eligible to be garbage collected.
417 &quot;retentionCount&quot;: 42, # Output only. The backup&#x27;s position among its backups with the same source cluster and type, by descending chronological order create time(i.e. newest first).
418 &quot;totalRetentionCount&quot;: 42, # Output only. The length of the quantity-based queue, specified by the backup&#x27;s retention policy.
419 },
420 &quot;expiryTime&quot;: &quot;A String&quot;, # Output only. The time at which after the backup is eligible to be garbage collected. It is the duration specified by the backup&#x27;s retention policy, added to the backup&#x27;s create_time.
421 &quot;labels&quot;: { # Labels as key value pairs
422 &quot;a_key&quot;: &quot;A String&quot;,
423 },
424 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the backup resource with the format: * projects/{project}/locations/{region}/backups/{backup_id} where the cluster and backup ID segments should satisfy the regex expression `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`, e.g. 1-63 characters of lowercase letters, numbers, and dashes, starting with a letter, and ending with a letter or number. For more details see https://google.aip.dev/122. The prefix of the backup resource name is the name of the parent resource: * projects/{project}/locations/{region}
425 &quot;reconciling&quot;: True or False, # Output only. Reconciling (https://google.aip.dev/128#reconciliation), if true, indicates that the service is actively updating the resource. This can happen due to user-triggered updates or system actions like failover or maintenance.
426 &quot;satisfiesPzi&quot;: True or False, # Output only. Reserved for future use.
427 &quot;satisfiesPzs&quot;: True or False, # Output only. Reserved for future use.
428 &quot;sizeBytes&quot;: &quot;A String&quot;, # Output only. The size of the backup in bytes.
429 &quot;state&quot;: &quot;A String&quot;, # Output only. The current state of the backup.
430 &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; ```
431 &quot;a_key&quot;: &quot;A String&quot;,
432 },
433 &quot;type&quot;: &quot;A String&quot;, # The backup type, which suggests the trigger for the backup.
434 &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.
435 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Update time stamp Users should not infer any meaning from this field. Its value is generally unrelated to the timing of the backup creation operation.
436 }
437
438 allowMissing: boolean, Optional. If set to true, update succeeds even if instance is not found. In that case, a new backup is created and `update_mask` is ignored.
439 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).
440 updateMask: string, Optional. Field mask is used to specify the fields to be overwritten in the Backup resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.
441 validateOnly: boolean, Optional. If set, the backend validates the request, but doesn&#x27;t actually execute it.
442 x__xgafv: string, V1 error format.
443 Allowed values
444 1 - v1 error format
445 2 - v2 error format
446
447 Returns:
448 An object of the form:
449
450 { # This resource represents a long-running operation that is the result of a network API call.
451 &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.
452 &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.
453 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
454 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
455 {
456 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
457 },
458 ],
459 &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.
460 },
461 &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.
462 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
463 },
464 &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}`.
465 &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`.
466 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
467 },
468 }</pre>
469 </div>
470
471 </body></html>