Debian Codegraph @

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