Debian Codegraph @

docs/dyn/backupdr_v1.projects.locations.backupVaults.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="backupdr_v1.html">Backup and DR Service API</a> . <a href="backupdr_v1.projects.html">projects</a> . <a href="backupdr_v1.projects.locations.html">locations</a> . <a href="backupdr_v1.projects.locations.backupVaults.html">backupVaults</a></h1>
76 <h2>Instance Methods</h2>
77 <p class="toc_element">
78 <code><a href="backupdr_v1.projects.locations.backupVaults.dataSources.html">dataSources()</a></code>
79 </p>
80 <p class="firstline">Returns the dataSources Resource.</p>
81
82 <p class="toc_element">
83 <code><a href="#close">close()</a></code></p>
84 <p class="firstline">Close httplib2 connections.</p>
85 <p class="toc_element">
86 <code><a href="#create">create(parent, backupVaultId=None, body=None, requestId=None, validateOnly=None, x__xgafv=None)</a></code></p>
87 <p class="firstline">Creates a new BackupVault in a given project and location.</p>
88 <p class="toc_element">
89 <code><a href="#delete">delete(name, allowMissing=None, etag=None, force=None, ignoreBackupPlanReferences=None, requestId=None, validateOnly=None, x__xgafv=None)</a></code></p>
90 <p class="firstline">Deletes a BackupVault.</p>
91 <p class="toc_element">
92 <code><a href="#fetchUsable">fetchUsable(parent, filter=None, orderBy=None, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
93 <p class="firstline">FetchUsableBackupVaults lists usable BackupVaults in a given project and location. Usable BackupVault are the ones that user has backupdr.backupVaults.get permission.</p>
94 <p class="toc_element">
95 <code><a href="#fetchUsable_next">fetchUsable_next()</a></code></p>
96 <p class="firstline">Retrieves the next page of results.</p>
97 <p class="toc_element">
98 <code><a href="#get">get(name, view=None, x__xgafv=None)</a></code></p>
99 <p class="firstline">Gets details of a BackupVault.</p>
100 <p class="toc_element">
101 <code><a href="#list">list(parent, filter=None, orderBy=None, pageSize=None, pageToken=None, view=None, x__xgafv=None)</a></code></p>
102 <p class="firstline">Lists BackupVaults in a given project and location.</p>
103 <p class="toc_element">
104 <code><a href="#list_next">list_next()</a></code></p>
105 <p class="firstline">Retrieves the next page of results.</p>
106 <p class="toc_element">
107 <code><a href="#patch">patch(name, body=None, force=None, forceUpdateAccessRestriction=None, requestId=None, updateMask=None, validateOnly=None, x__xgafv=None)</a></code></p>
108 <p class="firstline">Updates the settings of a BackupVault.</p>
109 <p class="toc_element">
110 <code><a href="#testIamPermissions">testIamPermissions(resource, body=None, x__xgafv=None)</a></code></p>
111 <p class="firstline">Returns the caller's permissions on a BackupVault resource. A caller is not required to have Google IAM permission to make this request.</p>
112 <h3>Method Details</h3>
113 <div class="method">
114 <code class="details" id="close">close()</code>
115 <pre>Close httplib2 connections.</pre>
116 </div>
117
118 <div class="method">
119 <code class="details" id="create">create(parent, backupVaultId=None, body=None, requestId=None, validateOnly=None, x__xgafv=None)</code>
120 <pre>Creates a new BackupVault in a given project and location.
121
122 Args:
123 parent: string, Required. Value for parent. (required)
124 body: object, The request body.
125 The object takes the form of:
126
127 { # Message describing a BackupVault object.
128 &quot;accessRestriction&quot;: &quot;A String&quot;, # Optional. Note: This field is added for future use case and will not be supported in the current release. Access restriction for the backup vault. Default value is WITHIN_ORGANIZATION if not provided during creation.
129 &quot;annotations&quot;: { # Optional. User annotations. See https://google.aip.dev/128#annotations Stores small amounts of arbitrary data.
130 &quot;a_key&quot;: &quot;A String&quot;,
131 },
132 &quot;backupCount&quot;: &quot;A String&quot;, # Output only. The number of backups in this backup vault.
133 &quot;backupMinimumEnforcedRetentionDuration&quot;: &quot;A String&quot;, # Required. The default and minimum enforced retention for each backup within the backup vault. The enforced retention for each backup can be extended. Note: Longer minimum enforced retention period impacts potential storage costs post introductory trial. We recommend starting with a short duration of 3 days or less.
134 &quot;backupRetentionInheritance&quot;: &quot;A String&quot;, # Optional. Setting for how a backup&#x27;s enforced retention end time is inherited.
135 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time when the instance was created.
136 &quot;deletable&quot;: True or False, # Output only. Set to true when there are no backups nested under this resource.
137 &quot;description&quot;: &quot;A String&quot;, # Optional. The description of the BackupVault instance (2048 characters or less).
138 &quot;effectiveTime&quot;: &quot;A String&quot;, # Optional. Time after which the BackupVault resource is locked.
139 &quot;encryptionConfig&quot;: { # Message describing the EncryptionConfig of backup vault. This determines how data within the vault is encrypted at rest. # Optional. The encryption config of the backup vault.
140 &quot;kmsKeyName&quot;: &quot;A String&quot;, # Optional. The Cloud KMS key name to encrypt backups in this backup vault. Must be in the same region as the vault. Some workload backups like compute disk backups may use their inherited source key instead. Format: projects/{project}/locations/{location}/keyRings/{ring}/cryptoKeys/{key}
141 },
142 &quot;etag&quot;: &quot;A String&quot;, # Optional. Server specified ETag for the backup vault resource to prevent simultaneous updates from overwiting each other.
143 &quot;labels&quot;: { # Optional. Resource labels to represent user provided metadata. No labels currently defined:
144 &quot;a_key&quot;: &quot;A String&quot;,
145 },
146 &quot;name&quot;: &quot;A String&quot;, # Output only. Identifier. Name of the backup vault to create. It must have the format`&quot;projects/{project}/locations/{location}/backupVaults/{backupvault}&quot;`. `{backupvault}` cannot be changed after creation. It must be between 3-63 characters long and must be unique within the project and location.
147 &quot;serviceAccount&quot;: &quot;A String&quot;, # Output only. Service account used by the BackupVault Service for this BackupVault. The user should grant this account permissions in their workload project to enable the service to run backups and restores there.
148 &quot;state&quot;: &quot;A String&quot;, # Output only. The BackupVault resource instance state.
149 &quot;totalStoredBytes&quot;: &quot;A String&quot;, # Output only. Total size of the storage used by all backup resources.
150 &quot;uid&quot;: &quot;A String&quot;, # Output only. Immutable after resource creation until resource deletion.
151 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time when the instance was updated.
152 }
153
154 backupVaultId: string, Required. ID of the requesting object If auto-generating ID server-side, remove this field and backup_vault_id from the method_signature of Create RPC
155 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 will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
156 validateOnly: boolean, Optional. Only validate the request, but do not perform mutations. The default is &#x27;false&#x27;.
157 x__xgafv: string, V1 error format.
158 Allowed values
159 1 - v1 error format
160 2 - v2 error format
161
162 Returns:
163 An object of the form:
164
165 { # This resource represents a long-running operation that is the result of a network API call.
166 &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.
167 &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.
168 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
169 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
170 {
171 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
172 },
173 ],
174 &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.
175 },
176 &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.
177 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
178 },
179 &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}`.
180 &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`.
181 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
182 },
183 }</pre>
184 </div>
185
186 <div class="method">
187 <code class="details" id="delete">delete(name, allowMissing=None, etag=None, force=None, ignoreBackupPlanReferences=None, requestId=None, validateOnly=None, x__xgafv=None)</code>
188 <pre>Deletes a BackupVault.
189
190 Args:
191 name: string, Required. Name of the resource. (required)
192 allowMissing: boolean, Optional. If true and the BackupVault is not found, the request will succeed but no action will be taken.
193 etag: string, The current etag of the backup vault. If an etag is provided and does not match the current etag of the connection, deletion will be blocked.
194 force: boolean, Optional. If set to true, any data source from this backup vault will also be deleted.
195 ignoreBackupPlanReferences: boolean, Optional. If set to true, backupvault deletion will proceed even if there are backup plans referencing the backupvault. The default is &#x27;false&#x27;.
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 will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes after the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
197 validateOnly: boolean, Optional. Only validate the request, but do not perform mutations. The default is &#x27;false&#x27;.
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="fetchUsable">fetchUsable(parent, filter=None, orderBy=None, pageSize=None, pageToken=None, x__xgafv=None)</code>
229 <pre>FetchUsableBackupVaults lists usable BackupVaults in a given project and location. Usable BackupVault are the ones that user has backupdr.backupVaults.get permission.
230
231 Args:
232 parent: string, Required. The project and location for which to retrieve backupvault stores information, in the format &#x27;projects/{project_id}/locations/{location}&#x27;. In Cloud Backup and DR, locations map to Google Cloud regions, for example **us-central1**. To retrieve backupvault stores for all locations, use &quot;-&quot; for the &#x27;{location}&#x27; value. (required)
233 filter: string, Optional. Filtering results.
234 orderBy: string, Optional. Hint for how to order the results.
235 pageSize: integer, Optional. Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.
236 pageToken: string, Optional. A token identifying a page of results the server should return.
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 { # Response message for fetching usable BackupVaults.
246 &quot;backupVaults&quot;: [ # The list of BackupVault instances in the project for the specified location. If the &#x27;{location}&#x27; value in the request is &quot;-&quot;, the response contains a list of instances from all locations. In case any location is unreachable, the response will only return backup vaults in reachable locations and the &#x27;unreachable&#x27; field will be populated with a list of unreachable locations.
247 { # Message describing a BackupVault object.
248 &quot;accessRestriction&quot;: &quot;A String&quot;, # Optional. Note: This field is added for future use case and will not be supported in the current release. Access restriction for the backup vault. Default value is WITHIN_ORGANIZATION if not provided during creation.
249 &quot;annotations&quot;: { # Optional. User annotations. See https://google.aip.dev/128#annotations Stores small amounts of arbitrary data.
250 &quot;a_key&quot;: &quot;A String&quot;,
251 },
252 &quot;backupCount&quot;: &quot;A String&quot;, # Output only. The number of backups in this backup vault.
253 &quot;backupMinimumEnforcedRetentionDuration&quot;: &quot;A String&quot;, # Required. The default and minimum enforced retention for each backup within the backup vault. The enforced retention for each backup can be extended. Note: Longer minimum enforced retention period impacts potential storage costs post introductory trial. We recommend starting with a short duration of 3 days or less.
254 &quot;backupRetentionInheritance&quot;: &quot;A String&quot;, # Optional. Setting for how a backup&#x27;s enforced retention end time is inherited.
255 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time when the instance was created.
256 &quot;deletable&quot;: True or False, # Output only. Set to true when there are no backups nested under this resource.
257 &quot;description&quot;: &quot;A String&quot;, # Optional. The description of the BackupVault instance (2048 characters or less).
258 &quot;effectiveTime&quot;: &quot;A String&quot;, # Optional. Time after which the BackupVault resource is locked.
259 &quot;encryptionConfig&quot;: { # Message describing the EncryptionConfig of backup vault. This determines how data within the vault is encrypted at rest. # Optional. The encryption config of the backup vault.
260 &quot;kmsKeyName&quot;: &quot;A String&quot;, # Optional. The Cloud KMS key name to encrypt backups in this backup vault. Must be in the same region as the vault. Some workload backups like compute disk backups may use their inherited source key instead. Format: projects/{project}/locations/{location}/keyRings/{ring}/cryptoKeys/{key}
261 },
262 &quot;etag&quot;: &quot;A String&quot;, # Optional. Server specified ETag for the backup vault resource to prevent simultaneous updates from overwiting each other.
263 &quot;labels&quot;: { # Optional. Resource labels to represent user provided metadata. No labels currently defined:
264 &quot;a_key&quot;: &quot;A String&quot;,
265 },
266 &quot;name&quot;: &quot;A String&quot;, # Output only. Identifier. Name of the backup vault to create. It must have the format`&quot;projects/{project}/locations/{location}/backupVaults/{backupvault}&quot;`. `{backupvault}` cannot be changed after creation. It must be between 3-63 characters long and must be unique within the project and location.
267 &quot;serviceAccount&quot;: &quot;A String&quot;, # Output only. Service account used by the BackupVault Service for this BackupVault. The user should grant this account permissions in their workload project to enable the service to run backups and restores there.
268 &quot;state&quot;: &quot;A String&quot;, # Output only. The BackupVault resource instance state.
269 &quot;totalStoredBytes&quot;: &quot;A String&quot;, # Output only. Total size of the storage used by all backup resources.
270 &quot;uid&quot;: &quot;A String&quot;, # Output only. Immutable after resource creation until resource deletion.
271 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time when the instance was updated.
272 },
273 ],
274 &quot;nextPageToken&quot;: &quot;A String&quot;, # A token identifying a page of results the server should return.
275 &quot;unreachable&quot;: [ # Locations that could not be reached.
276 &quot;A String&quot;,
277 ],
278 }</pre>
279 </div>
280
281 <div class="method">
282 <code class="details" id="fetchUsable_next">fetchUsable_next()</code>
283 <pre>Retrieves the next page of results.
284
285 Args:
286 previous_request: The request for the previous page. (required)
287 previous_response: The response from the request for the previous page. (required)
288
289 Returns:
290 A request object that you can call &#x27;execute()&#x27; on to request the next
291 page. Returns None if there are no more items in the collection.
292 </pre>
293 </div>
294
295 <div class="method">
296 <code class="details" id="get">get(name, view=None, x__xgafv=None)</code>
297 <pre>Gets details of a BackupVault.
298
299 Args:
300 name: string, Required. Name of the backupvault store resource name, in the format &#x27;projects/{project_id}/locations/{location}/backupVaults/{resource_name}&#x27; (required)
301 view: string, Optional. Reserved for future use to provide a BASIC &amp; FULL view of Backup Vault
302 Allowed values
303 BACKUP_VAULT_VIEW_UNSPECIFIED - If the value is not set, the default &#x27;FULL&#x27; view is used.
304 BACKUP_VAULT_VIEW_BASIC - Includes basic data about the Backup Vault, but not the full contents.
305 BACKUP_VAULT_VIEW_FULL - Includes all data about the Backup Vault. This is the default value (for both ListBackupVaults and GetBackupVault).
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 describing a BackupVault object.
315 &quot;accessRestriction&quot;: &quot;A String&quot;, # Optional. Note: This field is added for future use case and will not be supported in the current release. Access restriction for the backup vault. Default value is WITHIN_ORGANIZATION if not provided during creation.
316 &quot;annotations&quot;: { # Optional. User annotations. See https://google.aip.dev/128#annotations Stores small amounts of arbitrary data.
317 &quot;a_key&quot;: &quot;A String&quot;,
318 },
319 &quot;backupCount&quot;: &quot;A String&quot;, # Output only. The number of backups in this backup vault.
320 &quot;backupMinimumEnforcedRetentionDuration&quot;: &quot;A String&quot;, # Required. The default and minimum enforced retention for each backup within the backup vault. The enforced retention for each backup can be extended. Note: Longer minimum enforced retention period impacts potential storage costs post introductory trial. We recommend starting with a short duration of 3 days or less.
321 &quot;backupRetentionInheritance&quot;: &quot;A String&quot;, # Optional. Setting for how a backup&#x27;s enforced retention end time is inherited.
322 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time when the instance was created.
323 &quot;deletable&quot;: True or False, # Output only. Set to true when there are no backups nested under this resource.
324 &quot;description&quot;: &quot;A String&quot;, # Optional. The description of the BackupVault instance (2048 characters or less).
325 &quot;effectiveTime&quot;: &quot;A String&quot;, # Optional. Time after which the BackupVault resource is locked.
326 &quot;encryptionConfig&quot;: { # Message describing the EncryptionConfig of backup vault. This determines how data within the vault is encrypted at rest. # Optional. The encryption config of the backup vault.
327 &quot;kmsKeyName&quot;: &quot;A String&quot;, # Optional. The Cloud KMS key name to encrypt backups in this backup vault. Must be in the same region as the vault. Some workload backups like compute disk backups may use their inherited source key instead. Format: projects/{project}/locations/{location}/keyRings/{ring}/cryptoKeys/{key}
328 },
329 &quot;etag&quot;: &quot;A String&quot;, # Optional. Server specified ETag for the backup vault resource to prevent simultaneous updates from overwiting each other.
330 &quot;labels&quot;: { # Optional. Resource labels to represent user provided metadata. No labels currently defined:
331 &quot;a_key&quot;: &quot;A String&quot;,
332 },
333 &quot;name&quot;: &quot;A String&quot;, # Output only. Identifier. Name of the backup vault to create. It must have the format`&quot;projects/{project}/locations/{location}/backupVaults/{backupvault}&quot;`. `{backupvault}` cannot be changed after creation. It must be between 3-63 characters long and must be unique within the project and location.
334 &quot;serviceAccount&quot;: &quot;A String&quot;, # Output only. Service account used by the BackupVault Service for this BackupVault. The user should grant this account permissions in their workload project to enable the service to run backups and restores there.
335 &quot;state&quot;: &quot;A String&quot;, # Output only. The BackupVault resource instance state.
336 &quot;totalStoredBytes&quot;: &quot;A String&quot;, # Output only. Total size of the storage used by all backup resources.
337 &quot;uid&quot;: &quot;A String&quot;, # Output only. Immutable after resource creation until resource deletion.
338 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time when the instance was updated.
339 }</pre>
340 </div>
341
342 <div class="method">
343 <code class="details" id="list">list(parent, filter=None, orderBy=None, pageSize=None, pageToken=None, view=None, x__xgafv=None)</code>
344 <pre>Lists BackupVaults in a given project and location.
345
346 Args:
347 parent: string, Required. The project and location for which to retrieve backupvault stores information, in the format &#x27;projects/{project_id}/locations/{location}&#x27;. In Cloud Backup and DR, locations map to Google Cloud regions, for example **us-central1**. To retrieve backupvault stores for all locations, use &quot;-&quot; for the &#x27;{location}&#x27; value. (required)
348 filter: string, Optional. Filtering results.
349 orderBy: string, Optional. Hint for how to order the results.
350 pageSize: integer, Optional. Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.
351 pageToken: string, Optional. A token identifying a page of results the server should return.
352 view: string, Optional. Reserved for future use to provide a BASIC &amp; FULL view of Backup Vault.
353 Allowed values
354 BACKUP_VAULT_VIEW_UNSPECIFIED - If the value is not set, the default &#x27;FULL&#x27; view is used.
355 BACKUP_VAULT_VIEW_BASIC - Includes basic data about the Backup Vault, but not the full contents.
356 BACKUP_VAULT_VIEW_FULL - Includes all data about the Backup Vault. This is the default value (for both ListBackupVaults and GetBackupVault).
357 x__xgafv: string, V1 error format.
358 Allowed values
359 1 - v1 error format
360 2 - v2 error format
361
362 Returns:
363 An object of the form:
364
365 { # Response message for listing BackupVaults.
366 &quot;backupVaults&quot;: [ # The list of BackupVault instances in the project for the specified location. If the &#x27;{location}&#x27; value in the request is &quot;-&quot;, the response contains a list of instances from all locations. In case any location is unreachable, the response will only return backup vaults in reachable locations and the &#x27;unreachable&#x27; field will be populated with a list of unreachable locations.
367 { # Message describing a BackupVault object.
368 &quot;accessRestriction&quot;: &quot;A String&quot;, # Optional. Note: This field is added for future use case and will not be supported in the current release. Access restriction for the backup vault. Default value is WITHIN_ORGANIZATION if not provided during creation.
369 &quot;annotations&quot;: { # Optional. User annotations. See https://google.aip.dev/128#annotations Stores small amounts of arbitrary data.
370 &quot;a_key&quot;: &quot;A String&quot;,
371 },
372 &quot;backupCount&quot;: &quot;A String&quot;, # Output only. The number of backups in this backup vault.
373 &quot;backupMinimumEnforcedRetentionDuration&quot;: &quot;A String&quot;, # Required. The default and minimum enforced retention for each backup within the backup vault. The enforced retention for each backup can be extended. Note: Longer minimum enforced retention period impacts potential storage costs post introductory trial. We recommend starting with a short duration of 3 days or less.
374 &quot;backupRetentionInheritance&quot;: &quot;A String&quot;, # Optional. Setting for how a backup&#x27;s enforced retention end time is inherited.
375 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time when the instance was created.
376 &quot;deletable&quot;: True or False, # Output only. Set to true when there are no backups nested under this resource.
377 &quot;description&quot;: &quot;A String&quot;, # Optional. The description of the BackupVault instance (2048 characters or less).
378 &quot;effectiveTime&quot;: &quot;A String&quot;, # Optional. Time after which the BackupVault resource is locked.
379 &quot;encryptionConfig&quot;: { # Message describing the EncryptionConfig of backup vault. This determines how data within the vault is encrypted at rest. # Optional. The encryption config of the backup vault.
380 &quot;kmsKeyName&quot;: &quot;A String&quot;, # Optional. The Cloud KMS key name to encrypt backups in this backup vault. Must be in the same region as the vault. Some workload backups like compute disk backups may use their inherited source key instead. Format: projects/{project}/locations/{location}/keyRings/{ring}/cryptoKeys/{key}
381 },
382 &quot;etag&quot;: &quot;A String&quot;, # Optional. Server specified ETag for the backup vault resource to prevent simultaneous updates from overwiting each other.
383 &quot;labels&quot;: { # Optional. Resource labels to represent user provided metadata. No labels currently defined:
384 &quot;a_key&quot;: &quot;A String&quot;,
385 },
386 &quot;name&quot;: &quot;A String&quot;, # Output only. Identifier. Name of the backup vault to create. It must have the format`&quot;projects/{project}/locations/{location}/backupVaults/{backupvault}&quot;`. `{backupvault}` cannot be changed after creation. It must be between 3-63 characters long and must be unique within the project and location.
387 &quot;serviceAccount&quot;: &quot;A String&quot;, # Output only. Service account used by the BackupVault Service for this BackupVault. The user should grant this account permissions in their workload project to enable the service to run backups and restores there.
388 &quot;state&quot;: &quot;A String&quot;, # Output only. The BackupVault resource instance state.
389 &quot;totalStoredBytes&quot;: &quot;A String&quot;, # Output only. Total size of the storage used by all backup resources.
390 &quot;uid&quot;: &quot;A String&quot;, # Output only. Immutable after resource creation until resource deletion.
391 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time when the instance was updated.
392 },
393 ],
394 &quot;nextPageToken&quot;: &quot;A String&quot;, # A token identifying a page of results the server should return.
395 &quot;unreachable&quot;: [ # Locations that could not be reached.
396 &quot;A String&quot;,
397 ],
398 }</pre>
399 </div>
400
401 <div class="method">
402 <code class="details" id="list_next">list_next()</code>
403 <pre>Retrieves the next page of results.
404
405 Args:
406 previous_request: The request for the previous page. (required)
407 previous_response: The response from the request for the previous page. (required)
408
409 Returns:
410 A request object that you can call &#x27;execute()&#x27; on to request the next
411 page. Returns None if there are no more items in the collection.
412 </pre>
413 </div>
414
415 <div class="method">
416 <code class="details" id="patch">patch(name, body=None, force=None, forceUpdateAccessRestriction=None, requestId=None, updateMask=None, validateOnly=None, x__xgafv=None)</code>
417 <pre>Updates the settings of a BackupVault.
418
419 Args:
420 name: string, Output only. Identifier. Name of the backup vault to create. It must have the format`&quot;projects/{project}/locations/{location}/backupVaults/{backupvault}&quot;`. `{backupvault}` cannot be changed after creation. It must be between 3-63 characters long and must be unique within the project and location. (required)
421 body: object, The request body.
422 The object takes the form of:
423
424 { # Message describing a BackupVault object.
425 &quot;accessRestriction&quot;: &quot;A String&quot;, # Optional. Note: This field is added for future use case and will not be supported in the current release. Access restriction for the backup vault. Default value is WITHIN_ORGANIZATION if not provided during creation.
426 &quot;annotations&quot;: { # Optional. User annotations. See https://google.aip.dev/128#annotations Stores small amounts of arbitrary data.
427 &quot;a_key&quot;: &quot;A String&quot;,
428 },
429 &quot;backupCount&quot;: &quot;A String&quot;, # Output only. The number of backups in this backup vault.
430 &quot;backupMinimumEnforcedRetentionDuration&quot;: &quot;A String&quot;, # Required. The default and minimum enforced retention for each backup within the backup vault. The enforced retention for each backup can be extended. Note: Longer minimum enforced retention period impacts potential storage costs post introductory trial. We recommend starting with a short duration of 3 days or less.
431 &quot;backupRetentionInheritance&quot;: &quot;A String&quot;, # Optional. Setting for how a backup&#x27;s enforced retention end time is inherited.
432 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time when the instance was created.
433 &quot;deletable&quot;: True or False, # Output only. Set to true when there are no backups nested under this resource.
434 &quot;description&quot;: &quot;A String&quot;, # Optional. The description of the BackupVault instance (2048 characters or less).
435 &quot;effectiveTime&quot;: &quot;A String&quot;, # Optional. Time after which the BackupVault resource is locked.
436 &quot;encryptionConfig&quot;: { # Message describing the EncryptionConfig of backup vault. This determines how data within the vault is encrypted at rest. # Optional. The encryption config of the backup vault.
437 &quot;kmsKeyName&quot;: &quot;A String&quot;, # Optional. The Cloud KMS key name to encrypt backups in this backup vault. Must be in the same region as the vault. Some workload backups like compute disk backups may use their inherited source key instead. Format: projects/{project}/locations/{location}/keyRings/{ring}/cryptoKeys/{key}
438 },
439 &quot;etag&quot;: &quot;A String&quot;, # Optional. Server specified ETag for the backup vault resource to prevent simultaneous updates from overwiting each other.
440 &quot;labels&quot;: { # Optional. Resource labels to represent user provided metadata. No labels currently defined:
441 &quot;a_key&quot;: &quot;A String&quot;,
442 },
443 &quot;name&quot;: &quot;A String&quot;, # Output only. Identifier. Name of the backup vault to create. It must have the format`&quot;projects/{project}/locations/{location}/backupVaults/{backupvault}&quot;`. `{backupvault}` cannot be changed after creation. It must be between 3-63 characters long and must be unique within the project and location.
444 &quot;serviceAccount&quot;: &quot;A String&quot;, # Output only. Service account used by the BackupVault Service for this BackupVault. The user should grant this account permissions in their workload project to enable the service to run backups and restores there.
445 &quot;state&quot;: &quot;A String&quot;, # Output only. The BackupVault resource instance state.
446 &quot;totalStoredBytes&quot;: &quot;A String&quot;, # Output only. Total size of the storage used by all backup resources.
447 &quot;uid&quot;: &quot;A String&quot;, # Output only. Immutable after resource creation until resource deletion.
448 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time when the instance was updated.
449 }
450
451 force: boolean, Optional. If set to true, will not check plan duration against backup vault enforcement duration.
452 forceUpdateAccessRestriction: boolean, Optional. If set to true, we will force update access restriction even if some non compliant data sources are present. The default is &#x27;false&#x27;.
453 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 will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
454 updateMask: string, Required. Field mask is used to specify the fields to be overwritten in the BackupVault 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 the request will fail.
455 validateOnly: boolean, Optional. Only validate the request, but do not perform mutations. The default is &#x27;false&#x27;.
456 x__xgafv: string, V1 error format.
457 Allowed values
458 1 - v1 error format
459 2 - v2 error format
460
461 Returns:
462 An object of the form:
463
464 { # This resource represents a long-running operation that is the result of a network API call.
465 &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.
466 &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.
467 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
468 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
469 {
470 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
471 },
472 ],
473 &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.
474 },
475 &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.
476 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
477 },
478 &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}`.
479 &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`.
480 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
481 },
482 }</pre>
483 </div>
484
485 <div class="method">
486 <code class="details" id="testIamPermissions">testIamPermissions(resource, body=None, x__xgafv=None)</code>
487 <pre>Returns the caller&#x27;s permissions on a BackupVault resource. A caller is not required to have Google IAM permission to make this request.
488
489 Args:
490 resource: string, REQUIRED: The resource for which the policy detail is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field. (required)
491 body: object, The request body.
492 The object takes the form of:
493
494 { # Request message for `TestIamPermissions` method.
495 &quot;permissions&quot;: [ # The set of permissions to check for the `resource`. Permissions with wildcards (such as `*` or `storage.*`) are not allowed. For more information see [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
496 &quot;A String&quot;,
497 ],
498 }
499
500 x__xgafv: string, V1 error format.
501 Allowed values
502 1 - v1 error format
503 2 - v2 error format
504
505 Returns:
506 An object of the form:
507
508 { # Response message for `TestIamPermissions` method.
509 &quot;permissions&quot;: [ # A subset of `TestPermissionsRequest.permissions` that the caller is allowed.
510 &quot;A String&quot;,
511 ],
512 }</pre>
513 </div>
514
515 </body></html>