Debian Codegraph @

docs/dyn/backupdr_v1.projects.locations.backupVaults.dataSources.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> . <a href="backupdr_v1.projects.locations.backupVaults.dataSources.html">dataSources</a></h1>
76 <h2>Instance Methods</h2>
77 <p class="toc_element">
78 <code><a href="backupdr_v1.projects.locations.backupVaults.dataSources.backups.html">backups()</a></code>
79 </p>
80 <p class="firstline">Returns the backups Resource.</p>
81
82 <p class="toc_element">
83 <code><a href="#abandonBackup">abandonBackup(dataSource, body=None, x__xgafv=None)</a></code></p>
84 <p class="firstline">Internal only. Abandons a backup.</p>
85 <p class="toc_element">
86 <code><a href="#close">close()</a></code></p>
87 <p class="firstline">Close httplib2 connections.</p>
88 <p class="toc_element">
89 <code><a href="#fetchAccessToken">fetchAccessToken(name, body=None, x__xgafv=None)</a></code></p>
90 <p class="firstline">Internal only. Fetch access token for a given data source.</p>
91 <p class="toc_element">
92 <code><a href="#finalizeBackup">finalizeBackup(dataSource, body=None, x__xgafv=None)</a></code></p>
93 <p class="firstline">Internal only. Finalize a backup that was started by a call to InitiateBackup.</p>
94 <p class="toc_element">
95 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
96 <p class="firstline">Gets details of a DataSource.</p>
97 <p class="toc_element">
98 <code><a href="#initiateBackup">initiateBackup(dataSource, body=None, x__xgafv=None)</a></code></p>
99 <p class="firstline">Internal only. Initiates a backup.</p>
100 <p class="toc_element">
101 <code><a href="#list">list(parent, filter=None, orderBy=None, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
102 <p class="firstline">Lists DataSources 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, allowMissing=None, body=None, requestId=None, updateMask=None, x__xgafv=None)</a></code></p>
108 <p class="firstline">Updates the settings of a DataSource.</p>
109 <p class="toc_element">
110 <code><a href="#remove">remove(name, body=None, x__xgafv=None)</a></code></p>
111 <p class="firstline">Deletes a DataSource. This is a custom method instead of a standard delete method because external clients will not delete DataSources except for BackupDR backup appliances.</p>
112 <p class="toc_element">
113 <code><a href="#setInternalStatus">setInternalStatus(dataSource, body=None, x__xgafv=None)</a></code></p>
114 <p class="firstline">Sets the internal status of a DataSource.</p>
115 <h3>Method Details</h3>
116 <div class="method">
117 <code class="details" id="abandonBackup">abandonBackup(dataSource, body=None, x__xgafv=None)</code>
118 <pre>Internal only. Abandons a backup.
119
120 Args:
121 dataSource: string, Required. The resource name of the instance, in the format &#x27;projects/*/locations/*/backupVaults/*/dataSources/&#x27;. (required)
122 body: object, The request body.
123 The object takes the form of:
124
125 { # request message for AbandonBackup.
126 &quot;requestId&quot;: &quot;A String&quot;, # Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server 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).
127 }
128
129 x__xgafv: string, V1 error format.
130 Allowed values
131 1 - v1 error format
132 2 - v2 error format
133
134 Returns:
135 An object of the form:
136
137 { # This resource represents a long-running operation that is the result of a network API call.
138 &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.
139 &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.
140 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
141 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
142 {
143 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
144 },
145 ],
146 &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.
147 },
148 &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.
149 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
150 },
151 &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}`.
152 &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`.
153 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
154 },
155 }</pre>
156 </div>
157
158 <div class="method">
159 <code class="details" id="close">close()</code>
160 <pre>Close httplib2 connections.</pre>
161 </div>
162
163 <div class="method">
164 <code class="details" id="fetchAccessToken">fetchAccessToken(name, body=None, x__xgafv=None)</code>
165 <pre>Internal only. Fetch access token for a given data source.
166
167 Args:
168 name: string, Required. The resource name for the location for which static IPs should be returned. Must be in the format &#x27;projects/*/locations/*/backupVaults/*/dataSources&#x27;. (required)
169 body: object, The request body.
170 The object takes the form of:
171
172 { # Request message for FetchAccessToken.
173 &quot;generationId&quot;: 42, # Required. The generation of the backup to update.
174 }
175
176 x__xgafv: string, V1 error format.
177 Allowed values
178 1 - v1 error format
179 2 - v2 error format
180
181 Returns:
182 An object of the form:
183
184 { # Response message for FetchAccessToken.
185 &quot;expireTime&quot;: &quot;A String&quot;, # The token is valid until this time.
186 &quot;readLocation&quot;: &quot;A String&quot;, # The location in bucket that can be used for reading.
187 &quot;token&quot;: &quot;A String&quot;, # The downscoped token that was created.
188 &quot;writeLocation&quot;: &quot;A String&quot;, # The location in bucket that can be used for writing.
189 }</pre>
190 </div>
191
192 <div class="method">
193 <code class="details" id="finalizeBackup">finalizeBackup(dataSource, body=None, x__xgafv=None)</code>
194 <pre>Internal only. Finalize a backup that was started by a call to InitiateBackup.
195
196 Args:
197 dataSource: string, Required. The resource name of the instance, in the format &#x27;projects/*/locations/*/backupVaults/*/dataSources/&#x27;. (required)
198 body: object, The request body.
199 The object takes the form of:
200
201 { # Message for finalizing a Backup.
202 &quot;backupId&quot;: &quot;A String&quot;, # Required. Resource ID of the Backup resource to be finalized. This must be the same backup_id that was used in the InitiateBackupRequest.
203 &quot;consistencyTime&quot;: &quot;A String&quot;, # The point in time when this backup was captured from the source. This will be assigned to the consistency_time field of the newly created Backup.
204 &quot;description&quot;: &quot;A String&quot;, # This will be assigned to the description field of the newly created Backup.
205 &quot;recoveryRangeEndTime&quot;: &quot;A String&quot;, # The latest timestamp of data available in this Backup. This will be set on the newly created Backup.
206 &quot;recoveryRangeStartTime&quot;: &quot;A String&quot;, # The earliest timestamp of data available in this Backup. This will set on the newly created Backup.
207 &quot;requestId&quot;: &quot;A String&quot;, # Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server 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).
208 &quot;retentionDuration&quot;: &quot;A String&quot;, # The ExpireTime on the backup will be set to FinalizeTime plus this duration. If the resulting ExpireTime is less than EnforcedRetentionEndTime, then ExpireTime is set to EnforcedRetentionEndTime.
209 }
210
211 x__xgafv: string, V1 error format.
212 Allowed values
213 1 - v1 error format
214 2 - v2 error format
215
216 Returns:
217 An object of the form:
218
219 { # This resource represents a long-running operation that is the result of a network API call.
220 &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.
221 &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.
222 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
223 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
224 {
225 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
226 },
227 ],
228 &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.
229 },
230 &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.
231 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
232 },
233 &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}`.
234 &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`.
235 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
236 },
237 }</pre>
238 </div>
239
240 <div class="method">
241 <code class="details" id="get">get(name, x__xgafv=None)</code>
242 <pre>Gets details of a DataSource.
243
244 Args:
245 name: string, Required. Name of the data source resource name, in the format &#x27;projects/{project_id}/locations/{location}/backupVaults/{resource_name}/dataSource/{resource_name}&#x27; (required)
246 x__xgafv: string, V1 error format.
247 Allowed values
248 1 - v1 error format
249 2 - v2 error format
250
251 Returns:
252 An object of the form:
253
254 { # Message describing a DataSource object. Datasource object used to represent Datasource details for both admin and basic view.
255 &quot;backupBlockedByVaultAccessRestriction&quot;: True or False, # Output only. This field is set to true if the backup is blocked by vault access restriction.
256 &quot;backupConfigInfo&quot;: { # BackupConfigInfo has information about how the resource is configured for Backup and about the most recent backup to this vault. # Output only. Details of how the resource is configured for backup.
257 &quot;backupApplianceBackupConfig&quot;: { # BackupApplianceBackupConfig captures the backup configuration for applications that are protected by Backup Appliances. # Configuration for an application backed up by a Backup Appliance.
258 &quot;applicationName&quot;: &quot;A String&quot;, # The name of the application.
259 &quot;backupApplianceId&quot;: &quot;A String&quot;, # The ID of the backup appliance.
260 &quot;backupApplianceName&quot;: &quot;A String&quot;, # The name of the backup appliance.
261 &quot;hostName&quot;: &quot;A String&quot;, # The name of the host where the application is running.
262 &quot;slaId&quot;: &quot;A String&quot;, # The ID of the SLA of this application.
263 &quot;slpName&quot;: &quot;A String&quot;, # The name of the SLP associated with the application.
264 &quot;sltName&quot;: &quot;A String&quot;, # The name of the SLT associated with the application.
265 },
266 &quot;gcpBackupConfig&quot;: { # GcpBackupConfig captures the Backup configuration details for Google Cloud resources. All Google Cloud resources regardless of type are protected with backup plan associations. # Configuration for a Google Cloud resource.
267 &quot;backupPlan&quot;: &quot;A String&quot;, # The name of the backup plan.
268 &quot;backupPlanAssociation&quot;: &quot;A String&quot;, # The name of the backup plan association.
269 &quot;backupPlanDescription&quot;: &quot;A String&quot;, # The description of the backup plan.
270 &quot;backupPlanRevisionId&quot;: &quot;A String&quot;, # The user friendly id of the backup plan revision. E.g. v0, v1 etc.
271 &quot;backupPlanRevisionName&quot;: &quot;A String&quot;, # The name of the backup plan revision.
272 &quot;backupPlanRules&quot;: [ # The names of the backup plan rules which point to this backupvault
273 &quot;A String&quot;,
274 ],
275 },
276 &quot;lastBackupError&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). # Output only. If the last backup failed, this field has the error message.
277 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
278 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
279 {
280 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
281 },
282 ],
283 &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.
284 },
285 &quot;lastBackupState&quot;: &quot;A String&quot;, # Output only. The status of the last backup to this BackupVault
286 &quot;lastSuccessfulBackupConsistencyTime&quot;: &quot;A String&quot;, # Output only. If the last backup were successful, this field has the consistency date.
287 },
288 &quot;backupCount&quot;: &quot;A String&quot;, # Number of backups in the data source.
289 &quot;configState&quot;: &quot;A String&quot;, # Output only. The backup configuration state.
290 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time when the instance was created.
291 &quot;dataSourceBackupApplianceApplication&quot;: { # BackupApplianceApplication describes a Source Resource when it is an application backed up by a BackupAppliance. # The backed up resource is a backup appliance application.
292 &quot;applianceId&quot;: &quot;A String&quot;, # Appliance Id of the Backup Appliance.
293 &quot;applicationId&quot;: &quot;A String&quot;, # The appid field of the application within the Backup Appliance.
294 &quot;applicationName&quot;: &quot;A String&quot;, # The name of the Application as known to the Backup Appliance.
295 &quot;backupAppliance&quot;: &quot;A String&quot;, # Appliance name.
296 &quot;hostId&quot;: &quot;A String&quot;, # Hostid of the application host.
297 &quot;hostname&quot;: &quot;A String&quot;, # Hostname of the host where the application is running.
298 &quot;type&quot;: &quot;A String&quot;, # The type of the application. e.g. VMBackup
299 },
300 &quot;dataSourceGcpResource&quot;: { # DataSourceGcpResource is used for protected resources that are Google Cloud Resources. This name is easeier to understand than GcpResourceDataSource or GcpDataSourceResource # The backed up resource is a Google Cloud resource. The word &#x27;DataSource&#x27; was included in the names to indicate that this is the representation of the Google Cloud resource used within the DataSource object.
301 &quot;alloyDbClusterDatasourceProperties&quot;: { # AlloyDBClusterDataSourceProperties represents the properties of a AlloyDB cluster resource that are stored in the DataSource. . # Output only. AlloyDBClusterDataSourceProperties has a subset of AlloyDB cluster properties that are useful at the Datasource level. Currently none of its child properties are auditable. If new auditable properties are added, the AUDIT annotation should be added.
302 &quot;clusterUid&quot;: &quot;A String&quot;, # Output only. The cluster UID of the AlloyDB cluster backed up by the datasource.
303 &quot;name&quot;: &quot;A String&quot;, # Output only. Name of the AlloyDB cluster backed up by the datasource.
304 &quot;pitrWindows&quot;: [ # Output only. Point in time recovery windows. The order is guaranteed to be ascending by start time.
305 { # Point in time recovery window for an AlloyDB cluster.
306 &quot;endTime&quot;: &quot;A String&quot;, # Output only. The end time of the PITR window. It is not set if the corresponding Backup Plan Association is active.
307 &quot;logRetentionDays&quot;: &quot;A String&quot;, # Output only. Log retention days for the PITR window.
308 &quot;startTime&quot;: &quot;A String&quot;, # Output only. The start time of the PITR window.
309 },
310 ],
311 },
312 &quot;cloudSqlInstanceDatasourceProperties&quot;: { # CloudSqlInstanceDataSourceProperties represents the properties of a Cloud SQL resource that are stored in the DataSource. # Output only. CloudSqlInstanceDataSourceProperties has a subset of Cloud SQL Instance properties that are useful at the Datasource level.
313 &quot;databaseInstalledVersion&quot;: &quot;A String&quot;, # Output only. The installed database version of the Cloud SQL instance.
314 &quot;instanceCreateTime&quot;: &quot;A String&quot;, # Output only. The instance creation timestamp.
315 &quot;instanceTier&quot;: &quot;A String&quot;, # Output only. The tier (or machine type) for this instance. Example: `db-custom-1-3840`
316 &quot;name&quot;: &quot;A String&quot;, # Output only. Name of the Cloud SQL instance backed up by the datasource. Format: projects/{project}/instances/{instance}
317 },
318 &quot;computeInstanceDatasourceProperties&quot;: { # ComputeInstanceDataSourceProperties represents the properties of a ComputeEngine resource that are stored in the DataSource. # ComputeInstanceDataSourceProperties has a subset of Compute Instance properties that are useful at the Datasource level.
319 &quot;description&quot;: &quot;A String&quot;, # The description of the Compute Engine instance.
320 &quot;machineType&quot;: &quot;A String&quot;, # The machine type of the instance.
321 &quot;name&quot;: &quot;A String&quot;, # Name of the compute instance backed up by the datasource.
322 &quot;totalDiskCount&quot;: &quot;A String&quot;, # The total number of disks attached to the Instance.
323 &quot;totalDiskSizeGb&quot;: &quot;A String&quot;, # The sum of all the disk sizes.
324 },
325 &quot;diskDatasourceProperties&quot;: { # DiskDataSourceProperties represents the properties of a Disk resource that are stored in the DataSource. . # DiskDataSourceProperties has a subset of Disk properties that are useful at the Datasource level.
326 &quot;description&quot;: &quot;A String&quot;, # The description of the disk.
327 &quot;name&quot;: &quot;A String&quot;, # Name of the disk backed up by the datasource.
328 &quot;sizeGb&quot;: &quot;A String&quot;, # The size of the disk in GB.
329 &quot;type&quot;: &quot;A String&quot;, # The type of the disk.
330 },
331 &quot;filestoreInstanceDatasourceProperties&quot;: { # FilestoreInstanceDataSourceProperties represents the properties of a Filestore resource that are stored in the DataSource. . # Output only. FilestoreInstanceDataSourceProperties has a subset of FileStore instance properties that are useful at the Datasource level.
332 &quot;instanceCreateTime&quot;: &quot;A String&quot;, # Output only. The instance creation timestamp.
333 &quot;name&quot;: &quot;A String&quot;, # Output only. Name of the Filestore instance backed up by the datasource.
334 },
335 &quot;gcpResourcename&quot;: &quot;A String&quot;, # Output only. Full resource pathname URL of the source Google Cloud resource.
336 &quot;location&quot;: &quot;A String&quot;, # Location of the resource: //&quot;global&quot;/&quot;unspecified&quot;.
337 &quot;type&quot;: &quot;A String&quot;, # The type of the Google Cloud resource. Use the Unified Resource Type, eg. compute.googleapis.com/Instance.
338 },
339 &quot;etag&quot;: &quot;A String&quot;, # Server specified ETag for the ManagementServer resource to prevent simultaneous updates from overwiting each other.
340 &quot;labels&quot;: { # Optional. Resource labels to represent user provided metadata. No labels currently defined:
341 &quot;a_key&quot;: &quot;A String&quot;,
342 },
343 &quot;name&quot;: &quot;A String&quot;, # Output only. Identifier. Name of the datasource to create. It must have the format`&quot;projects/{project}/locations/{location}/backupVaults/{backupvault}/dataSources/{datasource}&quot;`. `{datasource}` cannot be changed after creation. It must be between 3-63 characters long and must be unique within the backup vault.
344 &quot;state&quot;: &quot;A String&quot;, # Output only. The DataSource resource instance state.
345 &quot;totalStoredBytes&quot;: &quot;A String&quot;, # The number of bytes (metadata and data) stored in this datasource.
346 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time when the instance was updated.
347 }</pre>
348 </div>
349
350 <div class="method">
351 <code class="details" id="initiateBackup">initiateBackup(dataSource, body=None, x__xgafv=None)</code>
352 <pre>Internal only. Initiates a backup.
353
354 Args:
355 dataSource: string, Required. The resource name of the instance, in the format &#x27;projects/*/locations/*/backupVaults/*/dataSources/&#x27;. (required)
356 body: object, The request body.
357 The object takes the form of:
358
359 { # request message for InitiateBackup.
360 &quot;backupId&quot;: &quot;A String&quot;, # Required. Resource ID of the Backup resource.
361 &quot;requestId&quot;: &quot;A String&quot;, # Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server 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).
362 }
363
364 x__xgafv: string, V1 error format.
365 Allowed values
366 1 - v1 error format
367 2 - v2 error format
368
369 Returns:
370 An object of the form:
371
372 { # Response message for InitiateBackup.
373 &quot;backup&quot;: &quot;A String&quot;, # The name of the backup that was created.
374 &quot;baseBackupGenerationId&quot;: 42, # The generation id of the base backup. It is needed for the incremental backups.
375 &quot;newBackupGenerationId&quot;: 42, # The generation id of the new backup.
376 }</pre>
377 </div>
378
379 <div class="method">
380 <code class="details" id="list">list(parent, filter=None, orderBy=None, pageSize=None, pageToken=None, x__xgafv=None)</code>
381 <pre>Lists DataSources in a given project and location.
382
383 Args:
384 parent: string, Required. The project and location for which to retrieve data sources 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 data sources for all locations, use &quot;-&quot; for the &#x27;{location}&#x27; value. (required)
385 filter: string, Optional. Filtering results.
386 orderBy: string, Optional. Hint for how to order the results.
387 pageSize: integer, Optional. Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.
388 pageToken: string, Optional. A token identifying a page of results the server should return.
389 x__xgafv: string, V1 error format.
390 Allowed values
391 1 - v1 error format
392 2 - v2 error format
393
394 Returns:
395 An object of the form:
396
397 { # Response message for listing DataSources.
398 &quot;dataSources&quot;: [ # The list of DataSource 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 data sources in reachable locations and the &#x27;unreachable&#x27; field will be populated with a list of unreachable locations.
399 { # Message describing a DataSource object. Datasource object used to represent Datasource details for both admin and basic view.
400 &quot;backupBlockedByVaultAccessRestriction&quot;: True or False, # Output only. This field is set to true if the backup is blocked by vault access restriction.
401 &quot;backupConfigInfo&quot;: { # BackupConfigInfo has information about how the resource is configured for Backup and about the most recent backup to this vault. # Output only. Details of how the resource is configured for backup.
402 &quot;backupApplianceBackupConfig&quot;: { # BackupApplianceBackupConfig captures the backup configuration for applications that are protected by Backup Appliances. # Configuration for an application backed up by a Backup Appliance.
403 &quot;applicationName&quot;: &quot;A String&quot;, # The name of the application.
404 &quot;backupApplianceId&quot;: &quot;A String&quot;, # The ID of the backup appliance.
405 &quot;backupApplianceName&quot;: &quot;A String&quot;, # The name of the backup appliance.
406 &quot;hostName&quot;: &quot;A String&quot;, # The name of the host where the application is running.
407 &quot;slaId&quot;: &quot;A String&quot;, # The ID of the SLA of this application.
408 &quot;slpName&quot;: &quot;A String&quot;, # The name of the SLP associated with the application.
409 &quot;sltName&quot;: &quot;A String&quot;, # The name of the SLT associated with the application.
410 },
411 &quot;gcpBackupConfig&quot;: { # GcpBackupConfig captures the Backup configuration details for Google Cloud resources. All Google Cloud resources regardless of type are protected with backup plan associations. # Configuration for a Google Cloud resource.
412 &quot;backupPlan&quot;: &quot;A String&quot;, # The name of the backup plan.
413 &quot;backupPlanAssociation&quot;: &quot;A String&quot;, # The name of the backup plan association.
414 &quot;backupPlanDescription&quot;: &quot;A String&quot;, # The description of the backup plan.
415 &quot;backupPlanRevisionId&quot;: &quot;A String&quot;, # The user friendly id of the backup plan revision. E.g. v0, v1 etc.
416 &quot;backupPlanRevisionName&quot;: &quot;A String&quot;, # The name of the backup plan revision.
417 &quot;backupPlanRules&quot;: [ # The names of the backup plan rules which point to this backupvault
418 &quot;A String&quot;,
419 ],
420 },
421 &quot;lastBackupError&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). # Output only. If the last backup failed, this field has the error message.
422 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
423 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
424 {
425 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
426 },
427 ],
428 &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.
429 },
430 &quot;lastBackupState&quot;: &quot;A String&quot;, # Output only. The status of the last backup to this BackupVault
431 &quot;lastSuccessfulBackupConsistencyTime&quot;: &quot;A String&quot;, # Output only. If the last backup were successful, this field has the consistency date.
432 },
433 &quot;backupCount&quot;: &quot;A String&quot;, # Number of backups in the data source.
434 &quot;configState&quot;: &quot;A String&quot;, # Output only. The backup configuration state.
435 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time when the instance was created.
436 &quot;dataSourceBackupApplianceApplication&quot;: { # BackupApplianceApplication describes a Source Resource when it is an application backed up by a BackupAppliance. # The backed up resource is a backup appliance application.
437 &quot;applianceId&quot;: &quot;A String&quot;, # Appliance Id of the Backup Appliance.
438 &quot;applicationId&quot;: &quot;A String&quot;, # The appid field of the application within the Backup Appliance.
439 &quot;applicationName&quot;: &quot;A String&quot;, # The name of the Application as known to the Backup Appliance.
440 &quot;backupAppliance&quot;: &quot;A String&quot;, # Appliance name.
441 &quot;hostId&quot;: &quot;A String&quot;, # Hostid of the application host.
442 &quot;hostname&quot;: &quot;A String&quot;, # Hostname of the host where the application is running.
443 &quot;type&quot;: &quot;A String&quot;, # The type of the application. e.g. VMBackup
444 },
445 &quot;dataSourceGcpResource&quot;: { # DataSourceGcpResource is used for protected resources that are Google Cloud Resources. This name is easeier to understand than GcpResourceDataSource or GcpDataSourceResource # The backed up resource is a Google Cloud resource. The word &#x27;DataSource&#x27; was included in the names to indicate that this is the representation of the Google Cloud resource used within the DataSource object.
446 &quot;alloyDbClusterDatasourceProperties&quot;: { # AlloyDBClusterDataSourceProperties represents the properties of a AlloyDB cluster resource that are stored in the DataSource. . # Output only. AlloyDBClusterDataSourceProperties has a subset of AlloyDB cluster properties that are useful at the Datasource level. Currently none of its child properties are auditable. If new auditable properties are added, the AUDIT annotation should be added.
447 &quot;clusterUid&quot;: &quot;A String&quot;, # Output only. The cluster UID of the AlloyDB cluster backed up by the datasource.
448 &quot;name&quot;: &quot;A String&quot;, # Output only. Name of the AlloyDB cluster backed up by the datasource.
449 &quot;pitrWindows&quot;: [ # Output only. Point in time recovery windows. The order is guaranteed to be ascending by start time.
450 { # Point in time recovery window for an AlloyDB cluster.
451 &quot;endTime&quot;: &quot;A String&quot;, # Output only. The end time of the PITR window. It is not set if the corresponding Backup Plan Association is active.
452 &quot;logRetentionDays&quot;: &quot;A String&quot;, # Output only. Log retention days for the PITR window.
453 &quot;startTime&quot;: &quot;A String&quot;, # Output only. The start time of the PITR window.
454 },
455 ],
456 },
457 &quot;cloudSqlInstanceDatasourceProperties&quot;: { # CloudSqlInstanceDataSourceProperties represents the properties of a Cloud SQL resource that are stored in the DataSource. # Output only. CloudSqlInstanceDataSourceProperties has a subset of Cloud SQL Instance properties that are useful at the Datasource level.
458 &quot;databaseInstalledVersion&quot;: &quot;A String&quot;, # Output only. The installed database version of the Cloud SQL instance.
459 &quot;instanceCreateTime&quot;: &quot;A String&quot;, # Output only. The instance creation timestamp.
460 &quot;instanceTier&quot;: &quot;A String&quot;, # Output only. The tier (or machine type) for this instance. Example: `db-custom-1-3840`
461 &quot;name&quot;: &quot;A String&quot;, # Output only. Name of the Cloud SQL instance backed up by the datasource. Format: projects/{project}/instances/{instance}
462 },
463 &quot;computeInstanceDatasourceProperties&quot;: { # ComputeInstanceDataSourceProperties represents the properties of a ComputeEngine resource that are stored in the DataSource. # ComputeInstanceDataSourceProperties has a subset of Compute Instance properties that are useful at the Datasource level.
464 &quot;description&quot;: &quot;A String&quot;, # The description of the Compute Engine instance.
465 &quot;machineType&quot;: &quot;A String&quot;, # The machine type of the instance.
466 &quot;name&quot;: &quot;A String&quot;, # Name of the compute instance backed up by the datasource.
467 &quot;totalDiskCount&quot;: &quot;A String&quot;, # The total number of disks attached to the Instance.
468 &quot;totalDiskSizeGb&quot;: &quot;A String&quot;, # The sum of all the disk sizes.
469 },
470 &quot;diskDatasourceProperties&quot;: { # DiskDataSourceProperties represents the properties of a Disk resource that are stored in the DataSource. . # DiskDataSourceProperties has a subset of Disk properties that are useful at the Datasource level.
471 &quot;description&quot;: &quot;A String&quot;, # The description of the disk.
472 &quot;name&quot;: &quot;A String&quot;, # Name of the disk backed up by the datasource.
473 &quot;sizeGb&quot;: &quot;A String&quot;, # The size of the disk in GB.
474 &quot;type&quot;: &quot;A String&quot;, # The type of the disk.
475 },
476 &quot;filestoreInstanceDatasourceProperties&quot;: { # FilestoreInstanceDataSourceProperties represents the properties of a Filestore resource that are stored in the DataSource. . # Output only. FilestoreInstanceDataSourceProperties has a subset of FileStore instance properties that are useful at the Datasource level.
477 &quot;instanceCreateTime&quot;: &quot;A String&quot;, # Output only. The instance creation timestamp.
478 &quot;name&quot;: &quot;A String&quot;, # Output only. Name of the Filestore instance backed up by the datasource.
479 },
480 &quot;gcpResourcename&quot;: &quot;A String&quot;, # Output only. Full resource pathname URL of the source Google Cloud resource.
481 &quot;location&quot;: &quot;A String&quot;, # Location of the resource: //&quot;global&quot;/&quot;unspecified&quot;.
482 &quot;type&quot;: &quot;A String&quot;, # The type of the Google Cloud resource. Use the Unified Resource Type, eg. compute.googleapis.com/Instance.
483 },
484 &quot;etag&quot;: &quot;A String&quot;, # Server specified ETag for the ManagementServer resource to prevent simultaneous updates from overwiting each other.
485 &quot;labels&quot;: { # Optional. Resource labels to represent user provided metadata. No labels currently defined:
486 &quot;a_key&quot;: &quot;A String&quot;,
487 },
488 &quot;name&quot;: &quot;A String&quot;, # Output only. Identifier. Name of the datasource to create. It must have the format`&quot;projects/{project}/locations/{location}/backupVaults/{backupvault}/dataSources/{datasource}&quot;`. `{datasource}` cannot be changed after creation. It must be between 3-63 characters long and must be unique within the backup vault.
489 &quot;state&quot;: &quot;A String&quot;, # Output only. The DataSource resource instance state.
490 &quot;totalStoredBytes&quot;: &quot;A String&quot;, # The number of bytes (metadata and data) stored in this datasource.
491 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time when the instance was updated.
492 },
493 ],
494 &quot;nextPageToken&quot;: &quot;A String&quot;, # A token identifying a page of results the server should return.
495 &quot;unreachable&quot;: [ # Locations that could not be reached.
496 &quot;A String&quot;,
497 ],
498 }</pre>
499 </div>
500
501 <div class="method">
502 <code class="details" id="list_next">list_next()</code>
503 <pre>Retrieves the next page of results.
504
505 Args:
506 previous_request: The request for the previous page. (required)
507 previous_response: The response from the request for the previous page. (required)
508
509 Returns:
510 A request object that you can call &#x27;execute()&#x27; on to request the next
511 page. Returns None if there are no more items in the collection.
512 </pre>
513 </div>
514
515 <div class="method">
516 <code class="details" id="patch">patch(name, allowMissing=None, body=None, requestId=None, updateMask=None, x__xgafv=None)</code>
517 <pre>Updates the settings of a DataSource.
518
519 Args:
520 name: string, Output only. Identifier. Name of the datasource to create. It must have the format`&quot;projects/{project}/locations/{location}/backupVaults/{backupvault}/dataSources/{datasource}&quot;`. `{datasource}` cannot be changed after creation. It must be between 3-63 characters long and must be unique within the backup vault. (required)
521 body: object, The request body.
522 The object takes the form of:
523
524 { # Message describing a DataSource object. Datasource object used to represent Datasource details for both admin and basic view.
525 &quot;backupBlockedByVaultAccessRestriction&quot;: True or False, # Output only. This field is set to true if the backup is blocked by vault access restriction.
526 &quot;backupConfigInfo&quot;: { # BackupConfigInfo has information about how the resource is configured for Backup and about the most recent backup to this vault. # Output only. Details of how the resource is configured for backup.
527 &quot;backupApplianceBackupConfig&quot;: { # BackupApplianceBackupConfig captures the backup configuration for applications that are protected by Backup Appliances. # Configuration for an application backed up by a Backup Appliance.
528 &quot;applicationName&quot;: &quot;A String&quot;, # The name of the application.
529 &quot;backupApplianceId&quot;: &quot;A String&quot;, # The ID of the backup appliance.
530 &quot;backupApplianceName&quot;: &quot;A String&quot;, # The name of the backup appliance.
531 &quot;hostName&quot;: &quot;A String&quot;, # The name of the host where the application is running.
532 &quot;slaId&quot;: &quot;A String&quot;, # The ID of the SLA of this application.
533 &quot;slpName&quot;: &quot;A String&quot;, # The name of the SLP associated with the application.
534 &quot;sltName&quot;: &quot;A String&quot;, # The name of the SLT associated with the application.
535 },
536 &quot;gcpBackupConfig&quot;: { # GcpBackupConfig captures the Backup configuration details for Google Cloud resources. All Google Cloud resources regardless of type are protected with backup plan associations. # Configuration for a Google Cloud resource.
537 &quot;backupPlan&quot;: &quot;A String&quot;, # The name of the backup plan.
538 &quot;backupPlanAssociation&quot;: &quot;A String&quot;, # The name of the backup plan association.
539 &quot;backupPlanDescription&quot;: &quot;A String&quot;, # The description of the backup plan.
540 &quot;backupPlanRevisionId&quot;: &quot;A String&quot;, # The user friendly id of the backup plan revision. E.g. v0, v1 etc.
541 &quot;backupPlanRevisionName&quot;: &quot;A String&quot;, # The name of the backup plan revision.
542 &quot;backupPlanRules&quot;: [ # The names of the backup plan rules which point to this backupvault
543 &quot;A String&quot;,
544 ],
545 },
546 &quot;lastBackupError&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). # Output only. If the last backup failed, this field has the error message.
547 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
548 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
549 {
550 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
551 },
552 ],
553 &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.
554 },
555 &quot;lastBackupState&quot;: &quot;A String&quot;, # Output only. The status of the last backup to this BackupVault
556 &quot;lastSuccessfulBackupConsistencyTime&quot;: &quot;A String&quot;, # Output only. If the last backup were successful, this field has the consistency date.
557 },
558 &quot;backupCount&quot;: &quot;A String&quot;, # Number of backups in the data source.
559 &quot;configState&quot;: &quot;A String&quot;, # Output only. The backup configuration state.
560 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time when the instance was created.
561 &quot;dataSourceBackupApplianceApplication&quot;: { # BackupApplianceApplication describes a Source Resource when it is an application backed up by a BackupAppliance. # The backed up resource is a backup appliance application.
562 &quot;applianceId&quot;: &quot;A String&quot;, # Appliance Id of the Backup Appliance.
563 &quot;applicationId&quot;: &quot;A String&quot;, # The appid field of the application within the Backup Appliance.
564 &quot;applicationName&quot;: &quot;A String&quot;, # The name of the Application as known to the Backup Appliance.
565 &quot;backupAppliance&quot;: &quot;A String&quot;, # Appliance name.
566 &quot;hostId&quot;: &quot;A String&quot;, # Hostid of the application host.
567 &quot;hostname&quot;: &quot;A String&quot;, # Hostname of the host where the application is running.
568 &quot;type&quot;: &quot;A String&quot;, # The type of the application. e.g. VMBackup
569 },
570 &quot;dataSourceGcpResource&quot;: { # DataSourceGcpResource is used for protected resources that are Google Cloud Resources. This name is easeier to understand than GcpResourceDataSource or GcpDataSourceResource # The backed up resource is a Google Cloud resource. The word &#x27;DataSource&#x27; was included in the names to indicate that this is the representation of the Google Cloud resource used within the DataSource object.
571 &quot;alloyDbClusterDatasourceProperties&quot;: { # AlloyDBClusterDataSourceProperties represents the properties of a AlloyDB cluster resource that are stored in the DataSource. . # Output only. AlloyDBClusterDataSourceProperties has a subset of AlloyDB cluster properties that are useful at the Datasource level. Currently none of its child properties are auditable. If new auditable properties are added, the AUDIT annotation should be added.
572 &quot;clusterUid&quot;: &quot;A String&quot;, # Output only. The cluster UID of the AlloyDB cluster backed up by the datasource.
573 &quot;name&quot;: &quot;A String&quot;, # Output only. Name of the AlloyDB cluster backed up by the datasource.
574 &quot;pitrWindows&quot;: [ # Output only. Point in time recovery windows. The order is guaranteed to be ascending by start time.
575 { # Point in time recovery window for an AlloyDB cluster.
576 &quot;endTime&quot;: &quot;A String&quot;, # Output only. The end time of the PITR window. It is not set if the corresponding Backup Plan Association is active.
577 &quot;logRetentionDays&quot;: &quot;A String&quot;, # Output only. Log retention days for the PITR window.
578 &quot;startTime&quot;: &quot;A String&quot;, # Output only. The start time of the PITR window.
579 },
580 ],
581 },
582 &quot;cloudSqlInstanceDatasourceProperties&quot;: { # CloudSqlInstanceDataSourceProperties represents the properties of a Cloud SQL resource that are stored in the DataSource. # Output only. CloudSqlInstanceDataSourceProperties has a subset of Cloud SQL Instance properties that are useful at the Datasource level.
583 &quot;databaseInstalledVersion&quot;: &quot;A String&quot;, # Output only. The installed database version of the Cloud SQL instance.
584 &quot;instanceCreateTime&quot;: &quot;A String&quot;, # Output only. The instance creation timestamp.
585 &quot;instanceTier&quot;: &quot;A String&quot;, # Output only. The tier (or machine type) for this instance. Example: `db-custom-1-3840`
586 &quot;name&quot;: &quot;A String&quot;, # Output only. Name of the Cloud SQL instance backed up by the datasource. Format: projects/{project}/instances/{instance}
587 },
588 &quot;computeInstanceDatasourceProperties&quot;: { # ComputeInstanceDataSourceProperties represents the properties of a ComputeEngine resource that are stored in the DataSource. # ComputeInstanceDataSourceProperties has a subset of Compute Instance properties that are useful at the Datasource level.
589 &quot;description&quot;: &quot;A String&quot;, # The description of the Compute Engine instance.
590 &quot;machineType&quot;: &quot;A String&quot;, # The machine type of the instance.
591 &quot;name&quot;: &quot;A String&quot;, # Name of the compute instance backed up by the datasource.
592 &quot;totalDiskCount&quot;: &quot;A String&quot;, # The total number of disks attached to the Instance.
593 &quot;totalDiskSizeGb&quot;: &quot;A String&quot;, # The sum of all the disk sizes.
594 },
595 &quot;diskDatasourceProperties&quot;: { # DiskDataSourceProperties represents the properties of a Disk resource that are stored in the DataSource. . # DiskDataSourceProperties has a subset of Disk properties that are useful at the Datasource level.
596 &quot;description&quot;: &quot;A String&quot;, # The description of the disk.
597 &quot;name&quot;: &quot;A String&quot;, # Name of the disk backed up by the datasource.
598 &quot;sizeGb&quot;: &quot;A String&quot;, # The size of the disk in GB.
599 &quot;type&quot;: &quot;A String&quot;, # The type of the disk.
600 },
601 &quot;filestoreInstanceDatasourceProperties&quot;: { # FilestoreInstanceDataSourceProperties represents the properties of a Filestore resource that are stored in the DataSource. . # Output only. FilestoreInstanceDataSourceProperties has a subset of FileStore instance properties that are useful at the Datasource level.
602 &quot;instanceCreateTime&quot;: &quot;A String&quot;, # Output only. The instance creation timestamp.
603 &quot;name&quot;: &quot;A String&quot;, # Output only. Name of the Filestore instance backed up by the datasource.
604 },
605 &quot;gcpResourcename&quot;: &quot;A String&quot;, # Output only. Full resource pathname URL of the source Google Cloud resource.
606 &quot;location&quot;: &quot;A String&quot;, # Location of the resource: //&quot;global&quot;/&quot;unspecified&quot;.
607 &quot;type&quot;: &quot;A String&quot;, # The type of the Google Cloud resource. Use the Unified Resource Type, eg. compute.googleapis.com/Instance.
608 },
609 &quot;etag&quot;: &quot;A String&quot;, # Server specified ETag for the ManagementServer resource to prevent simultaneous updates from overwiting each other.
610 &quot;labels&quot;: { # Optional. Resource labels to represent user provided metadata. No labels currently defined:
611 &quot;a_key&quot;: &quot;A String&quot;,
612 },
613 &quot;name&quot;: &quot;A String&quot;, # Output only. Identifier. Name of the datasource to create. It must have the format`&quot;projects/{project}/locations/{location}/backupVaults/{backupvault}/dataSources/{datasource}&quot;`. `{datasource}` cannot be changed after creation. It must be between 3-63 characters long and must be unique within the backup vault.
614 &quot;state&quot;: &quot;A String&quot;, # Output only. The DataSource resource instance state.
615 &quot;totalStoredBytes&quot;: &quot;A String&quot;, # The number of bytes (metadata and data) stored in this datasource.
616 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time when the instance was updated.
617 }
618
619 allowMissing: boolean, Optional. Enable upsert.
620 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).
621 updateMask: string, Required. Field mask is used to specify the fields to be overwritten in the DataSource 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.
622 x__xgafv: string, V1 error format.
623 Allowed values
624 1 - v1 error format
625 2 - v2 error format
626
627 Returns:
628 An object of the form:
629
630 { # This resource represents a long-running operation that is the result of a network API call.
631 &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.
632 &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.
633 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
634 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
635 {
636 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
637 },
638 ],
639 &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.
640 },
641 &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.
642 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
643 },
644 &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}`.
645 &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`.
646 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
647 },
648 }</pre>
649 </div>
650
651 <div class="method">
652 <code class="details" id="remove">remove(name, body=None, x__xgafv=None)</code>
653 <pre>Deletes a DataSource. This is a custom method instead of a standard delete method because external clients will not delete DataSources except for BackupDR backup appliances.
654
655 Args:
656 name: string, Required. Name of the resource. (required)
657 body: object, The request body.
658 The object takes the form of:
659
660 { # Message for deleting a DataSource.
661 &quot;requestId&quot;: &quot;A String&quot;, # Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server 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).
662 }
663
664 x__xgafv: string, V1 error format.
665 Allowed values
666 1 - v1 error format
667 2 - v2 error format
668
669 Returns:
670 An object of the form:
671
672 { # This resource represents a long-running operation that is the result of a network API call.
673 &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.
674 &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.
675 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
676 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
677 {
678 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
679 },
680 ],
681 &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.
682 },
683 &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.
684 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
685 },
686 &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}`.
687 &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`.
688 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
689 },
690 }</pre>
691 </div>
692
693 <div class="method">
694 <code class="details" id="setInternalStatus">setInternalStatus(dataSource, body=None, x__xgafv=None)</code>
695 <pre>Sets the internal status of a DataSource.
696
697 Args:
698 dataSource: string, Required. The resource name of the instance, in the format &#x27;projects/*/locations/*/backupVaults/*/dataSources/&#x27;. (required)
699 body: object, The request body.
700 The object takes the form of:
701
702 { # Request message for SetStatusInternal method.
703 &quot;backupConfigState&quot;: &quot;A String&quot;, # Required. Output only. The new BackupConfigState to set for the DataSource.
704 &quot;requestId&quot;: &quot;A String&quot;, # Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server 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. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
705 &quot;value&quot;: &quot;A String&quot;, # Required. The value required for this method to work. This field must be the 32-byte SHA256 hash of the DataSourceID. The DataSourceID used here is only the final piece of the fully qualified resource path for this DataSource (i.e. the part after &#x27;.../dataSources/&#x27;). This field exists to make this method difficult to call since it is intended for use only by Backup Appliances.
706 }
707
708 x__xgafv: string, V1 error format.
709 Allowed values
710 1 - v1 error format
711 2 - v2 error format
712
713 Returns:
714 An object of the form:
715
716 { # This resource represents a long-running operation that is the result of a network API call.
717 &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.
718 &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.
719 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
720 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
721 {
722 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
723 },
724 ],
725 &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.
726 },
727 &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.
728 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
729 },
730 &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}`.
731 &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`.
732 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
733 },
734 }</pre>
735 </div>
736
737 </body></html>