Debian Codegraph @

docs/dyn/alloydb_v1.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_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.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;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}).
118 &quot;clusterUid&quot;: &quot;A String&quot;, # Output only. The system-generated UID of the cluster which was used to create this resource.
119 &quot;createCompletionTime&quot;: &quot;A String&quot;, # Output only. Timestamp when the resource finished being created.
120 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Create time stamp
121 &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.
122 &quot;deleteTime&quot;: &quot;A String&quot;, # Output only. Delete time stamp
123 &quot;description&quot;: &quot;A String&quot;, # User-provided description of the backup.
124 &quot;displayName&quot;: &quot;A String&quot;, # User-settable and human-readable display name for the Backup.
125 &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.
126 &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]
127 },
128 &quot;encryptionInfo&quot;: { # EncryptionInfo describes the encryption information of a cluster or a backup. # Output only. The encryption information for the backup.
129 &quot;encryptionType&quot;: &quot;A String&quot;, # Output only. Type of encryption.
130 &quot;kmsKeyVersions&quot;: [ # Output only. Cloud KMS key versions that are being used to protect the database or the backup.
131 &quot;A String&quot;,
132 ],
133 },
134 &quot;etag&quot;: &quot;A String&quot;, # For Resource freshness validation (https://google.aip.dev/154)
135 &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.
136 &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).
137 &quot;totalRetentionCount&quot;: 42, # Output only. The length of the quantity-based queue, specified by the backup&#x27;s retention policy.
138 },
139 &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.
140 &quot;labels&quot;: { # Labels as key value pairs
141 &quot;a_key&quot;: &quot;A String&quot;,
142 },
143 &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}
144 &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.
145 &quot;satisfiesPzs&quot;: True or False, # Output only. Reserved for future use.
146 &quot;sizeBytes&quot;: &quot;A String&quot;, # Output only. The size of the backup in bytes.
147 &quot;state&quot;: &quot;A String&quot;, # Output only. The current state of the backup.
148 &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; ```
149 &quot;a_key&quot;: &quot;A String&quot;,
150 },
151 &quot;type&quot;: &quot;A String&quot;, # The backup type, which suggests the trigger for the backup.
152 &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.
153 &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.
154 }
155
156 backupId: string, Required. ID of the requesting object.
157 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).
158 validateOnly: boolean, Optional. If set, the backend validates the request, but doesn&#x27;t actually execute it.
159 x__xgafv: string, V1 error format.
160 Allowed values
161 1 - v1 error format
162 2 - v2 error format
163
164 Returns:
165 An object of the form:
166
167 { # This resource represents a long-running operation that is the result of a network API call.
168 &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.
169 &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.
170 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
171 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
172 {
173 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
174 },
175 ],
176 &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.
177 },
178 &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.
179 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
180 },
181 &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}`.
182 &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`.
183 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
184 },
185 }</pre>
186 </div>
187
188 <div class="method">
189 <code class="details" id="delete">delete(name, etag=None, requestId=None, validateOnly=None, x__xgafv=None)</code>
190 <pre>Deletes a single Backup.
191
192 Args:
193 name: string, Required. Name of the resource. For the required format, see the comment on the Backup.name field. (required)
194 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.
195 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).
196 validateOnly: boolean, Optional. If set, the backend validates the request, but doesn&#x27;t actually execute it.
197 x__xgafv: string, V1 error format.
198 Allowed values
199 1 - v1 error format
200 2 - v2 error format
201
202 Returns:
203 An object of the form:
204
205 { # This resource represents a long-running operation that is the result of a network API call.
206 &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.
207 &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.
208 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
209 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
210 {
211 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
212 },
213 ],
214 &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.
215 },
216 &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.
217 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
218 },
219 &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}`.
220 &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`.
221 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
222 },
223 }</pre>
224 </div>
225
226 <div class="method">
227 <code class="details" id="get">get(name, view=None, x__xgafv=None)</code>
228 <pre>Gets details of a single Backup.
229
230 Args:
231 name: string, Required. Name of the resource (required)
232 view: string, Optional. The view of the backup to return.
233 Allowed values
234 BACKUP_VIEW_UNSPECIFIED - Value unspecified, equivalent to BASIC.
235 BACKUP_VIEW_BASIC - Responses include all fields that aren&#x27;t explicitly gated behind another view.
236 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.
237 x__xgafv: string, V1 error format.
238 Allowed values
239 1 - v1 error format
240 2 - v2 error format
241
242 Returns:
243 An object of the form:
244
245 { # Message describing Backup object
246 &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
247 &quot;a_key&quot;: &quot;A String&quot;,
248 },
249 &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}).
250 &quot;clusterUid&quot;: &quot;A String&quot;, # Output only. The system-generated UID of the cluster which was used to create this resource.
251 &quot;createCompletionTime&quot;: &quot;A String&quot;, # Output only. Timestamp when the resource finished being created.
252 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Create time stamp
253 &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.
254 &quot;deleteTime&quot;: &quot;A String&quot;, # Output only. Delete time stamp
255 &quot;description&quot;: &quot;A String&quot;, # User-provided description of the backup.
256 &quot;displayName&quot;: &quot;A String&quot;, # User-settable and human-readable display name for the Backup.
257 &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.
258 &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]
259 },
260 &quot;encryptionInfo&quot;: { # EncryptionInfo describes the encryption information of a cluster or a backup. # Output only. The encryption information for the backup.
261 &quot;encryptionType&quot;: &quot;A String&quot;, # Output only. Type of encryption.
262 &quot;kmsKeyVersions&quot;: [ # Output only. Cloud KMS key versions that are being used to protect the database or the backup.
263 &quot;A String&quot;,
264 ],
265 },
266 &quot;etag&quot;: &quot;A String&quot;, # For Resource freshness validation (https://google.aip.dev/154)
267 &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.
268 &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).
269 &quot;totalRetentionCount&quot;: 42, # Output only. The length of the quantity-based queue, specified by the backup&#x27;s retention policy.
270 },
271 &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.
272 &quot;labels&quot;: { # Labels as key value pairs
273 &quot;a_key&quot;: &quot;A String&quot;,
274 },
275 &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}
276 &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.
277 &quot;satisfiesPzs&quot;: True or False, # Output only. Reserved for future use.
278 &quot;sizeBytes&quot;: &quot;A String&quot;, # Output only. The size of the backup in bytes.
279 &quot;state&quot;: &quot;A String&quot;, # Output only. The current state of the backup.
280 &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; ```
281 &quot;a_key&quot;: &quot;A String&quot;,
282 },
283 &quot;type&quot;: &quot;A String&quot;, # The backup type, which suggests the trigger for the backup.
284 &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.
285 &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.
286 }</pre>
287 </div>
288
289 <div class="method">
290 <code class="details" id="list">list(parent, filter=None, orderBy=None, pageSize=None, pageToken=None, view=None, x__xgafv=None)</code>
291 <pre>Lists Backups in a given project and location.
292
293 Args:
294 parent: string, Required. Parent value for ListBackupsRequest (required)
295 filter: string, Filtering results
296 orderBy: string, Hint for how to order the results
297 pageSize: integer, Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.
298 pageToken: string, A token identifying a page of results the server should return.
299 view: string, Optional. The view of the backup to return.
300 Allowed values
301 BACKUP_VIEW_UNSPECIFIED - Value unspecified, equivalent to BASIC.
302 BACKUP_VIEW_BASIC - Responses include all fields that aren&#x27;t explicitly gated behind another view.
303 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.
304 x__xgafv: string, V1 error format.
305 Allowed values
306 1 - v1 error format
307 2 - v2 error format
308
309 Returns:
310 An object of the form:
311
312 { # Message for response to listing Backups
313 &quot;backups&quot;: [ # The list of Backup
314 { # Message describing Backup object
315 &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
316 &quot;a_key&quot;: &quot;A String&quot;,
317 },
318 &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}).
319 &quot;clusterUid&quot;: &quot;A String&quot;, # Output only. The system-generated UID of the cluster which was used to create this resource.
320 &quot;createCompletionTime&quot;: &quot;A String&quot;, # Output only. Timestamp when the resource finished being created.
321 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Create time stamp
322 &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.
323 &quot;deleteTime&quot;: &quot;A String&quot;, # Output only. Delete time stamp
324 &quot;description&quot;: &quot;A String&quot;, # User-provided description of the backup.
325 &quot;displayName&quot;: &quot;A String&quot;, # User-settable and human-readable display name for the Backup.
326 &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.
327 &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]
328 },
329 &quot;encryptionInfo&quot;: { # EncryptionInfo describes the encryption information of a cluster or a backup. # Output only. The encryption information for the backup.
330 &quot;encryptionType&quot;: &quot;A String&quot;, # Output only. Type of encryption.
331 &quot;kmsKeyVersions&quot;: [ # Output only. Cloud KMS key versions that are being used to protect the database or the backup.
332 &quot;A String&quot;,
333 ],
334 },
335 &quot;etag&quot;: &quot;A String&quot;, # For Resource freshness validation (https://google.aip.dev/154)
336 &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.
337 &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).
338 &quot;totalRetentionCount&quot;: 42, # Output only. The length of the quantity-based queue, specified by the backup&#x27;s retention policy.
339 },
340 &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.
341 &quot;labels&quot;: { # Labels as key value pairs
342 &quot;a_key&quot;: &quot;A String&quot;,
343 },
344 &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}
345 &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.
346 &quot;satisfiesPzs&quot;: True or False, # Output only. Reserved for future use.
347 &quot;sizeBytes&quot;: &quot;A String&quot;, # Output only. The size of the backup in bytes.
348 &quot;state&quot;: &quot;A String&quot;, # Output only. The current state of the backup.
349 &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; ```
350 &quot;a_key&quot;: &quot;A String&quot;,
351 },
352 &quot;type&quot;: &quot;A String&quot;, # The backup type, which suggests the trigger for the backup.
353 &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.
354 &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.
355 },
356 ],
357 &quot;nextPageToken&quot;: &quot;A String&quot;, # A token identifying a page of results the server should return.
358 &quot;unreachable&quot;: [ # Locations that could not be reached.
359 &quot;A String&quot;,
360 ],
361 }</pre>
362 </div>
363
364 <div class="method">
365 <code class="details" id="list_next">list_next()</code>
366 <pre>Retrieves the next page of results.
367
368 Args:
369 previous_request: The request for the previous page. (required)
370 previous_response: The response from the request for the previous page. (required)
371
372 Returns:
373 A request object that you can call &#x27;execute()&#x27; on to request the next
374 page. Returns None if there are no more items in the collection.
375 </pre>
376 </div>
377
378 <div class="method">
379 <code class="details" id="patch">patch(name, allowMissing=None, body=None, requestId=None, updateMask=None, validateOnly=None, x__xgafv=None)</code>
380 <pre>Updates the parameters of a single Backup.
381
382 Args:
383 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)
384 body: object, The request body.
385 The object takes the form of:
386
387 { # Message describing Backup object
388 &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
389 &quot;a_key&quot;: &quot;A String&quot;,
390 },
391 &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}).
392 &quot;clusterUid&quot;: &quot;A String&quot;, # Output only. The system-generated UID of the cluster which was used to create this resource.
393 &quot;createCompletionTime&quot;: &quot;A String&quot;, # Output only. Timestamp when the resource finished being created.
394 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Create time stamp
395 &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.
396 &quot;deleteTime&quot;: &quot;A String&quot;, # Output only. Delete time stamp
397 &quot;description&quot;: &quot;A String&quot;, # User-provided description of the backup.
398 &quot;displayName&quot;: &quot;A String&quot;, # User-settable and human-readable display name for the Backup.
399 &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.
400 &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]
401 },
402 &quot;encryptionInfo&quot;: { # EncryptionInfo describes the encryption information of a cluster or a backup. # Output only. The encryption information for the backup.
403 &quot;encryptionType&quot;: &quot;A String&quot;, # Output only. Type of encryption.
404 &quot;kmsKeyVersions&quot;: [ # Output only. Cloud KMS key versions that are being used to protect the database or the backup.
405 &quot;A String&quot;,
406 ],
407 },
408 &quot;etag&quot;: &quot;A String&quot;, # For Resource freshness validation (https://google.aip.dev/154)
409 &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.
410 &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).
411 &quot;totalRetentionCount&quot;: 42, # Output only. The length of the quantity-based queue, specified by the backup&#x27;s retention policy.
412 },
413 &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.
414 &quot;labels&quot;: { # Labels as key value pairs
415 &quot;a_key&quot;: &quot;A String&quot;,
416 },
417 &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}
418 &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.
419 &quot;satisfiesPzs&quot;: True or False, # Output only. Reserved for future use.
420 &quot;sizeBytes&quot;: &quot;A String&quot;, # Output only. The size of the backup in bytes.
421 &quot;state&quot;: &quot;A String&quot;, # Output only. The current state of the backup.
422 &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; ```
423 &quot;a_key&quot;: &quot;A String&quot;,
424 },
425 &quot;type&quot;: &quot;A String&quot;, # The backup type, which suggests the trigger for the backup.
426 &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.
427 &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.
428 }
429
430 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.
431 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).
432 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.
433 validateOnly: boolean, Optional. If set, the backend validates the request, but doesn&#x27;t actually execute it.
434 x__xgafv: string, V1 error format.
435 Allowed values
436 1 - v1 error format
437 2 - v2 error format
438
439 Returns:
440 An object of the form:
441
442 { # This resource represents a long-running operation that is the result of a network API call.
443 &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.
444 &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.
445 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
446 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
447 {
448 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
449 },
450 ],
451 &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.
452 },
453 &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.
454 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
455 },
456 &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}`.
457 &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`.
458 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
459 },
460 }</pre>
461 </div>
462
463 </body></html>