Debian Codegraph @

docs/dyn/backupdr_v1.projects.locations.backupPlanAssociations.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.backupPlanAssociations.html">backupPlanAssociations</a></h1>
76 <h2>Instance Methods</h2>
77 <p class="toc_element">
78 <code><a href="#close">close()</a></code></p>
79 <p class="firstline">Close httplib2 connections.</p>
80 <p class="toc_element">
81 <code><a href="#create">create(parent, backupPlanAssociationId=None, body=None, requestId=None, x__xgafv=None)</a></code></p>
82 <p class="firstline">Create a BackupPlanAssociation</p>
83 <p class="toc_element">
84 <code><a href="#delete">delete(name, requestId=None, x__xgafv=None)</a></code></p>
85 <p class="firstline">Deletes a single BackupPlanAssociation.</p>
86 <p class="toc_element">
87 <code><a href="#fetchForResourceType">fetchForResourceType(parent, filter=None, orderBy=None, pageSize=None, pageToken=None, resourceType=None, x__xgafv=None)</a></code></p>
88 <p class="firstline">List BackupPlanAssociations for a given resource type.</p>
89 <p class="toc_element">
90 <code><a href="#fetchForResourceType_next">fetchForResourceType_next()</a></code></p>
91 <p class="firstline">Retrieves the next page of results.</p>
92 <p class="toc_element">
93 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
94 <p class="firstline">Gets details of a single BackupPlanAssociation.</p>
95 <p class="toc_element">
96 <code><a href="#list">list(parent, filter=None, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
97 <p class="firstline">Lists BackupPlanAssociations in a given project and location.</p>
98 <p class="toc_element">
99 <code><a href="#list_next">list_next()</a></code></p>
100 <p class="firstline">Retrieves the next page of results.</p>
101 <p class="toc_element">
102 <code><a href="#patch">patch(name, body=None, requestId=None, updateMask=None, x__xgafv=None)</a></code></p>
103 <p class="firstline">Update a BackupPlanAssociation.</p>
104 <p class="toc_element">
105 <code><a href="#triggerBackup">triggerBackup(name, body=None, x__xgafv=None)</a></code></p>
106 <p class="firstline">Triggers a new Backup.</p>
107 <h3>Method Details</h3>
108 <div class="method">
109 <code class="details" id="close">close()</code>
110 <pre>Close httplib2 connections.</pre>
111 </div>
112
113 <div class="method">
114 <code class="details" id="create">create(parent, backupPlanAssociationId=None, body=None, requestId=None, x__xgafv=None)</code>
115 <pre>Create a BackupPlanAssociation
116
117 Args:
118 parent: string, Required. The backup plan association project and location in the format `projects/{project_id}/locations/{location}`. In Backup and DR locations map to Google Cloud regions, for example **us-central1**. (required)
119 body: object, The request body.
120 The object takes the form of:
121
122 { # A BackupPlanAssociation represents a single BackupPlanAssociation which contains details like workload, backup plan etc
123 &quot;alloydbClusterBackupPlanAssociationProperties&quot;: { # Properties for an AlloyDB cluster backup plan association. # Output only. AlloyDB cluster&#x27;s backup plan association properties.
124 &quot;clusterUid&quot;: &quot;A String&quot;, # Output only. The cluster UID of the AlloyDB cluster.
125 },
126 &quot;backupPlan&quot;: &quot;A String&quot;, # Required. Resource name of backup plan which needs to be applied on workload. Format: projects/{project}/locations/{location}/backupPlans/{backupPlanId}
127 &quot;backupPlanRevisionId&quot;: &quot;A String&quot;, # Output only. The user friendly revision ID of the `BackupPlanRevision`. Example: v0, v1, v2, etc.
128 &quot;backupPlanRevisionName&quot;: &quot;A String&quot;, # Output only. The resource id of the `BackupPlanRevision`. Format: `projects/{project}/locations/{location}/backupPlans/{backup_plan}/revisions/{revision_id}`
129 &quot;cloudSqlInstanceBackupPlanAssociationProperties&quot;: { # Cloud SQL instance&#x27;s BPA properties. # Output only. Cloud SQL instance&#x27;s backup plan association properties.
130 &quot;instanceCreateTime&quot;: &quot;A String&quot;, # Output only. The time when the instance was created.
131 },
132 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time when the instance was created.
133 &quot;dataSource&quot;: &quot;A String&quot;, # Output only. Resource name of data source which will be used as storage location for backups taken. Format : projects/{project}/locations/{location}/backupVaults/{backupvault}/dataSources/{datasource}
134 &quot;filestoreInstanceBackupPlanAssociationProperties&quot;: { # Filestore instance&#x27;s BPA properties. # Output only. Filestore instance&#x27;s backup plan association properties.
135 &quot;instanceCreateTime&quot;: &quot;A String&quot;, # Output only. The time when the instance was created.
136 },
137 &quot;name&quot;: &quot;A String&quot;, # Output only. Identifier. The resource name of BackupPlanAssociation in below format Format : projects/{project}/locations/{location}/backupPlanAssociations/{backupPlanAssociationId}
138 &quot;resource&quot;: &quot;A String&quot;, # Required. Immutable. Resource name of workload on which the backup plan is applied. The format can either be the resource name (e.g., &quot;projects/my-project/zones/us-central1-a/instances/my-instance&quot;) or the full resource URI (e.g., &quot;https://www.googleapis.com/compute/v1/projects/my-project/zones/us-central1-a/instances/my-instance&quot;).
139 &quot;resourceType&quot;: &quot;A String&quot;, # Required. Immutable. Resource type of workload on which backupplan is applied
140 &quot;rulesConfigInfo&quot;: [ # Output only. The config info related to backup rules.
141 { # Message for rules config info.
142 &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. google.rpc.Status object to store the last backup error.
143 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
144 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
145 {
146 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
147 },
148 ],
149 &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.
150 },
151 &quot;lastBackupState&quot;: &quot;A String&quot;, # Output only. The last backup state for rule.
152 &quot;lastSuccessfulBackupConsistencyTime&quot;: &quot;A String&quot;, # Output only. The point in time when the last successful backup was captured from the source.
153 &quot;ruleId&quot;: &quot;A String&quot;, # Output only. Backup Rule id fetched from backup plan.
154 },
155 ],
156 &quot;state&quot;: &quot;A String&quot;, # Output only. The BackupPlanAssociation resource state.
157 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time when the instance was updated.
158 }
159
160 backupPlanAssociationId: string, Required. The name of the backup plan association to create. The name must be unique for the specified project and location.
161 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 t he 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).
162 x__xgafv: string, V1 error format.
163 Allowed values
164 1 - v1 error format
165 2 - v2 error format
166
167 Returns:
168 An object of the form:
169
170 { # This resource represents a long-running operation that is the result of a network API call.
171 &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.
172 &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.
173 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
174 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
175 {
176 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
177 },
178 ],
179 &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.
180 },
181 &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.
182 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
183 },
184 &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}`.
185 &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`.
186 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
187 },
188 }</pre>
189 </div>
190
191 <div class="method">
192 <code class="details" id="delete">delete(name, requestId=None, x__xgafv=None)</code>
193 <pre>Deletes a single BackupPlanAssociation.
194
195 Args:
196 name: string, Required. Name of the backup plan association resource, in the format `projects/{project}/locations/{location}/backupPlanAssociations/{backupPlanAssociationId}` (required)
197 requestId: string, Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server 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).
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="fetchForResourceType">fetchForResourceType(parent, filter=None, orderBy=None, pageSize=None, pageToken=None, resourceType=None, x__xgafv=None)</code>
229 <pre>List BackupPlanAssociations for a given resource type.
230
231 Args:
232 parent: string, Required. The parent resource name. Format: projects/{project}/locations/{location} (required)
233 filter: string, Optional. A filter expression that filters the results fetched in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. Supported fields: * resource * backup_plan * state * data_source * cloud_sql_instance_backup_plan_association_properties.instance_create_time
234 orderBy: string, Optional. A comma-separated list of fields to order by, sorted in ascending order. Use &quot;desc&quot; after a field name for descending. Supported fields: * name
235 pageSize: integer, Optional. The maximum number of BackupPlanAssociations to return. The service may return fewer than this value. If unspecified, at most 50 BackupPlanAssociations will be returned. The maximum value is 100; values above 100 will be coerced to 100.
236 pageToken: string, Optional. A page token, received from a previous call of `FetchBackupPlanAssociationsForResourceType`. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `FetchBackupPlanAssociationsForResourceType` must match the call that provided the page token.
237 resourceType: string, Required. The type of the Google Cloud resource. Ex: sql.googleapis.com/Instance
238 x__xgafv: string, V1 error format.
239 Allowed values
240 1 - v1 error format
241 2 - v2 error format
242
243 Returns:
244 An object of the form:
245
246 { # Response for the FetchBackupPlanAssociationsForResourceType method.
247 &quot;backupPlanAssociations&quot;: [ # Output only. The BackupPlanAssociations from the specified parent.
248 { # A BackupPlanAssociation represents a single BackupPlanAssociation which contains details like workload, backup plan etc
249 &quot;alloydbClusterBackupPlanAssociationProperties&quot;: { # Properties for an AlloyDB cluster backup plan association. # Output only. AlloyDB cluster&#x27;s backup plan association properties.
250 &quot;clusterUid&quot;: &quot;A String&quot;, # Output only. The cluster UID of the AlloyDB cluster.
251 },
252 &quot;backupPlan&quot;: &quot;A String&quot;, # Required. Resource name of backup plan which needs to be applied on workload. Format: projects/{project}/locations/{location}/backupPlans/{backupPlanId}
253 &quot;backupPlanRevisionId&quot;: &quot;A String&quot;, # Output only. The user friendly revision ID of the `BackupPlanRevision`. Example: v0, v1, v2, etc.
254 &quot;backupPlanRevisionName&quot;: &quot;A String&quot;, # Output only. The resource id of the `BackupPlanRevision`. Format: `projects/{project}/locations/{location}/backupPlans/{backup_plan}/revisions/{revision_id}`
255 &quot;cloudSqlInstanceBackupPlanAssociationProperties&quot;: { # Cloud SQL instance&#x27;s BPA properties. # Output only. Cloud SQL instance&#x27;s backup plan association properties.
256 &quot;instanceCreateTime&quot;: &quot;A String&quot;, # Output only. The time when the instance was created.
257 },
258 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time when the instance was created.
259 &quot;dataSource&quot;: &quot;A String&quot;, # Output only. Resource name of data source which will be used as storage location for backups taken. Format : projects/{project}/locations/{location}/backupVaults/{backupvault}/dataSources/{datasource}
260 &quot;filestoreInstanceBackupPlanAssociationProperties&quot;: { # Filestore instance&#x27;s BPA properties. # Output only. Filestore instance&#x27;s backup plan association properties.
261 &quot;instanceCreateTime&quot;: &quot;A String&quot;, # Output only. The time when the instance was created.
262 },
263 &quot;name&quot;: &quot;A String&quot;, # Output only. Identifier. The resource name of BackupPlanAssociation in below format Format : projects/{project}/locations/{location}/backupPlanAssociations/{backupPlanAssociationId}
264 &quot;resource&quot;: &quot;A String&quot;, # Required. Immutable. Resource name of workload on which the backup plan is applied. The format can either be the resource name (e.g., &quot;projects/my-project/zones/us-central1-a/instances/my-instance&quot;) or the full resource URI (e.g., &quot;https://www.googleapis.com/compute/v1/projects/my-project/zones/us-central1-a/instances/my-instance&quot;).
265 &quot;resourceType&quot;: &quot;A String&quot;, # Required. Immutable. Resource type of workload on which backupplan is applied
266 &quot;rulesConfigInfo&quot;: [ # Output only. The config info related to backup rules.
267 { # Message for rules config info.
268 &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. google.rpc.Status object to store the last backup error.
269 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
270 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
271 {
272 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
273 },
274 ],
275 &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.
276 },
277 &quot;lastBackupState&quot;: &quot;A String&quot;, # Output only. The last backup state for rule.
278 &quot;lastSuccessfulBackupConsistencyTime&quot;: &quot;A String&quot;, # Output only. The point in time when the last successful backup was captured from the source.
279 &quot;ruleId&quot;: &quot;A String&quot;, # Output only. Backup Rule id fetched from backup plan.
280 },
281 ],
282 &quot;state&quot;: &quot;A String&quot;, # Output only. The BackupPlanAssociation resource state.
283 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time when the instance was updated.
284 },
285 ],
286 &quot;nextPageToken&quot;: &quot;A String&quot;, # Output only. A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.
287 }</pre>
288 </div>
289
290 <div class="method">
291 <code class="details" id="fetchForResourceType_next">fetchForResourceType_next()</code>
292 <pre>Retrieves the next page of results.
293
294 Args:
295 previous_request: The request for the previous page. (required)
296 previous_response: The response from the request for the previous page. (required)
297
298 Returns:
299 A request object that you can call &#x27;execute()&#x27; on to request the next
300 page. Returns None if there are no more items in the collection.
301 </pre>
302 </div>
303
304 <div class="method">
305 <code class="details" id="get">get(name, x__xgafv=None)</code>
306 <pre>Gets details of a single BackupPlanAssociation.
307
308 Args:
309 name: string, Required. Name of the backup plan association resource, in the format `projects/{project}/locations/{location}/backupPlanAssociations/{backupPlanAssociationId}` (required)
310 x__xgafv: string, V1 error format.
311 Allowed values
312 1 - v1 error format
313 2 - v2 error format
314
315 Returns:
316 An object of the form:
317
318 { # A BackupPlanAssociation represents a single BackupPlanAssociation which contains details like workload, backup plan etc
319 &quot;alloydbClusterBackupPlanAssociationProperties&quot;: { # Properties for an AlloyDB cluster backup plan association. # Output only. AlloyDB cluster&#x27;s backup plan association properties.
320 &quot;clusterUid&quot;: &quot;A String&quot;, # Output only. The cluster UID of the AlloyDB cluster.
321 },
322 &quot;backupPlan&quot;: &quot;A String&quot;, # Required. Resource name of backup plan which needs to be applied on workload. Format: projects/{project}/locations/{location}/backupPlans/{backupPlanId}
323 &quot;backupPlanRevisionId&quot;: &quot;A String&quot;, # Output only. The user friendly revision ID of the `BackupPlanRevision`. Example: v0, v1, v2, etc.
324 &quot;backupPlanRevisionName&quot;: &quot;A String&quot;, # Output only. The resource id of the `BackupPlanRevision`. Format: `projects/{project}/locations/{location}/backupPlans/{backup_plan}/revisions/{revision_id}`
325 &quot;cloudSqlInstanceBackupPlanAssociationProperties&quot;: { # Cloud SQL instance&#x27;s BPA properties. # Output only. Cloud SQL instance&#x27;s backup plan association properties.
326 &quot;instanceCreateTime&quot;: &quot;A String&quot;, # Output only. The time when the instance was created.
327 },
328 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time when the instance was created.
329 &quot;dataSource&quot;: &quot;A String&quot;, # Output only. Resource name of data source which will be used as storage location for backups taken. Format : projects/{project}/locations/{location}/backupVaults/{backupvault}/dataSources/{datasource}
330 &quot;filestoreInstanceBackupPlanAssociationProperties&quot;: { # Filestore instance&#x27;s BPA properties. # Output only. Filestore instance&#x27;s backup plan association properties.
331 &quot;instanceCreateTime&quot;: &quot;A String&quot;, # Output only. The time when the instance was created.
332 },
333 &quot;name&quot;: &quot;A String&quot;, # Output only. Identifier. The resource name of BackupPlanAssociation in below format Format : projects/{project}/locations/{location}/backupPlanAssociations/{backupPlanAssociationId}
334 &quot;resource&quot;: &quot;A String&quot;, # Required. Immutable. Resource name of workload on which the backup plan is applied. The format can either be the resource name (e.g., &quot;projects/my-project/zones/us-central1-a/instances/my-instance&quot;) or the full resource URI (e.g., &quot;https://www.googleapis.com/compute/v1/projects/my-project/zones/us-central1-a/instances/my-instance&quot;).
335 &quot;resourceType&quot;: &quot;A String&quot;, # Required. Immutable. Resource type of workload on which backupplan is applied
336 &quot;rulesConfigInfo&quot;: [ # Output only. The config info related to backup rules.
337 { # Message for rules config info.
338 &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. google.rpc.Status object to store the last backup error.
339 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
340 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
341 {
342 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
343 },
344 ],
345 &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.
346 },
347 &quot;lastBackupState&quot;: &quot;A String&quot;, # Output only. The last backup state for rule.
348 &quot;lastSuccessfulBackupConsistencyTime&quot;: &quot;A String&quot;, # Output only. The point in time when the last successful backup was captured from the source.
349 &quot;ruleId&quot;: &quot;A String&quot;, # Output only. Backup Rule id fetched from backup plan.
350 },
351 ],
352 &quot;state&quot;: &quot;A String&quot;, # Output only. The BackupPlanAssociation resource state.
353 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time when the instance was updated.
354 }</pre>
355 </div>
356
357 <div class="method">
358 <code class="details" id="list">list(parent, filter=None, pageSize=None, pageToken=None, x__xgafv=None)</code>
359 <pre>Lists BackupPlanAssociations in a given project and location.
360
361 Args:
362 parent: string, Required. The project and location for which to retrieve backup Plan Associations information, in the format `projects/{project_id}/locations/{location}`. In Backup and DR, locations map to Google Cloud regions, for example **us-central1**. To retrieve backup plan associations for all locations, use &quot;-&quot; for the `{location}` value. (required)
363 filter: string, Optional. Filtering results
364 pageSize: integer, Optional. Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.
365 pageToken: string, Optional. A token identifying a page of results the server should return.
366 x__xgafv: string, V1 error format.
367 Allowed values
368 1 - v1 error format
369 2 - v2 error format
370
371 Returns:
372 An object of the form:
373
374 { # Response message for List BackupPlanAssociation
375 &quot;backupPlanAssociations&quot;: [ # The list of Backup Plan Associations in the project for the specified location. If the `{location}` 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 plan associations in reachable locations and the &#x27;unreachable&#x27; field will be populated with a list of unreachable locations.
376 { # A BackupPlanAssociation represents a single BackupPlanAssociation which contains details like workload, backup plan etc
377 &quot;alloydbClusterBackupPlanAssociationProperties&quot;: { # Properties for an AlloyDB cluster backup plan association. # Output only. AlloyDB cluster&#x27;s backup plan association properties.
378 &quot;clusterUid&quot;: &quot;A String&quot;, # Output only. The cluster UID of the AlloyDB cluster.
379 },
380 &quot;backupPlan&quot;: &quot;A String&quot;, # Required. Resource name of backup plan which needs to be applied on workload. Format: projects/{project}/locations/{location}/backupPlans/{backupPlanId}
381 &quot;backupPlanRevisionId&quot;: &quot;A String&quot;, # Output only. The user friendly revision ID of the `BackupPlanRevision`. Example: v0, v1, v2, etc.
382 &quot;backupPlanRevisionName&quot;: &quot;A String&quot;, # Output only. The resource id of the `BackupPlanRevision`. Format: `projects/{project}/locations/{location}/backupPlans/{backup_plan}/revisions/{revision_id}`
383 &quot;cloudSqlInstanceBackupPlanAssociationProperties&quot;: { # Cloud SQL instance&#x27;s BPA properties. # Output only. Cloud SQL instance&#x27;s backup plan association properties.
384 &quot;instanceCreateTime&quot;: &quot;A String&quot;, # Output only. The time when the instance was created.
385 },
386 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time when the instance was created.
387 &quot;dataSource&quot;: &quot;A String&quot;, # Output only. Resource name of data source which will be used as storage location for backups taken. Format : projects/{project}/locations/{location}/backupVaults/{backupvault}/dataSources/{datasource}
388 &quot;filestoreInstanceBackupPlanAssociationProperties&quot;: { # Filestore instance&#x27;s BPA properties. # Output only. Filestore instance&#x27;s backup plan association properties.
389 &quot;instanceCreateTime&quot;: &quot;A String&quot;, # Output only. The time when the instance was created.
390 },
391 &quot;name&quot;: &quot;A String&quot;, # Output only. Identifier. The resource name of BackupPlanAssociation in below format Format : projects/{project}/locations/{location}/backupPlanAssociations/{backupPlanAssociationId}
392 &quot;resource&quot;: &quot;A String&quot;, # Required. Immutable. Resource name of workload on which the backup plan is applied. The format can either be the resource name (e.g., &quot;projects/my-project/zones/us-central1-a/instances/my-instance&quot;) or the full resource URI (e.g., &quot;https://www.googleapis.com/compute/v1/projects/my-project/zones/us-central1-a/instances/my-instance&quot;).
393 &quot;resourceType&quot;: &quot;A String&quot;, # Required. Immutable. Resource type of workload on which backupplan is applied
394 &quot;rulesConfigInfo&quot;: [ # Output only. The config info related to backup rules.
395 { # Message for rules config info.
396 &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. google.rpc.Status object to store the last backup error.
397 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
398 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
399 {
400 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
401 },
402 ],
403 &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.
404 },
405 &quot;lastBackupState&quot;: &quot;A String&quot;, # Output only. The last backup state for rule.
406 &quot;lastSuccessfulBackupConsistencyTime&quot;: &quot;A String&quot;, # Output only. The point in time when the last successful backup was captured from the source.
407 &quot;ruleId&quot;: &quot;A String&quot;, # Output only. Backup Rule id fetched from backup plan.
408 },
409 ],
410 &quot;state&quot;: &quot;A String&quot;, # Output only. The BackupPlanAssociation resource state.
411 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time when the instance was updated.
412 },
413 ],
414 &quot;nextPageToken&quot;: &quot;A String&quot;, # A token identifying a page of results the server should return.
415 &quot;unreachable&quot;: [ # Locations that could not be reached.
416 &quot;A String&quot;,
417 ],
418 }</pre>
419 </div>
420
421 <div class="method">
422 <code class="details" id="list_next">list_next()</code>
423 <pre>Retrieves the next page of results.
424
425 Args:
426 previous_request: The request for the previous page. (required)
427 previous_response: The response from the request for the previous page. (required)
428
429 Returns:
430 A request object that you can call &#x27;execute()&#x27; on to request the next
431 page. Returns None if there are no more items in the collection.
432 </pre>
433 </div>
434
435 <div class="method">
436 <code class="details" id="patch">patch(name, body=None, requestId=None, updateMask=None, x__xgafv=None)</code>
437 <pre>Update a BackupPlanAssociation.
438
439 Args:
440 name: string, Output only. Identifier. The resource name of BackupPlanAssociation in below format Format : projects/{project}/locations/{location}/backupPlanAssociations/{backupPlanAssociationId} (required)
441 body: object, The request body.
442 The object takes the form of:
443
444 { # A BackupPlanAssociation represents a single BackupPlanAssociation which contains details like workload, backup plan etc
445 &quot;alloydbClusterBackupPlanAssociationProperties&quot;: { # Properties for an AlloyDB cluster backup plan association. # Output only. AlloyDB cluster&#x27;s backup plan association properties.
446 &quot;clusterUid&quot;: &quot;A String&quot;, # Output only. The cluster UID of the AlloyDB cluster.
447 },
448 &quot;backupPlan&quot;: &quot;A String&quot;, # Required. Resource name of backup plan which needs to be applied on workload. Format: projects/{project}/locations/{location}/backupPlans/{backupPlanId}
449 &quot;backupPlanRevisionId&quot;: &quot;A String&quot;, # Output only. The user friendly revision ID of the `BackupPlanRevision`. Example: v0, v1, v2, etc.
450 &quot;backupPlanRevisionName&quot;: &quot;A String&quot;, # Output only. The resource id of the `BackupPlanRevision`. Format: `projects/{project}/locations/{location}/backupPlans/{backup_plan}/revisions/{revision_id}`
451 &quot;cloudSqlInstanceBackupPlanAssociationProperties&quot;: { # Cloud SQL instance&#x27;s BPA properties. # Output only. Cloud SQL instance&#x27;s backup plan association properties.
452 &quot;instanceCreateTime&quot;: &quot;A String&quot;, # Output only. The time when the instance was created.
453 },
454 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time when the instance was created.
455 &quot;dataSource&quot;: &quot;A String&quot;, # Output only. Resource name of data source which will be used as storage location for backups taken. Format : projects/{project}/locations/{location}/backupVaults/{backupvault}/dataSources/{datasource}
456 &quot;filestoreInstanceBackupPlanAssociationProperties&quot;: { # Filestore instance&#x27;s BPA properties. # Output only. Filestore instance&#x27;s backup plan association properties.
457 &quot;instanceCreateTime&quot;: &quot;A String&quot;, # Output only. The time when the instance was created.
458 },
459 &quot;name&quot;: &quot;A String&quot;, # Output only. Identifier. The resource name of BackupPlanAssociation in below format Format : projects/{project}/locations/{location}/backupPlanAssociations/{backupPlanAssociationId}
460 &quot;resource&quot;: &quot;A String&quot;, # Required. Immutable. Resource name of workload on which the backup plan is applied. The format can either be the resource name (e.g., &quot;projects/my-project/zones/us-central1-a/instances/my-instance&quot;) or the full resource URI (e.g., &quot;https://www.googleapis.com/compute/v1/projects/my-project/zones/us-central1-a/instances/my-instance&quot;).
461 &quot;resourceType&quot;: &quot;A String&quot;, # Required. Immutable. Resource type of workload on which backupplan is applied
462 &quot;rulesConfigInfo&quot;: [ # Output only. The config info related to backup rules.
463 { # Message for rules config info.
464 &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. google.rpc.Status object to store the last backup error.
465 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
466 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
467 {
468 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
469 },
470 ],
471 &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.
472 },
473 &quot;lastBackupState&quot;: &quot;A String&quot;, # Output only. The last backup state for rule.
474 &quot;lastSuccessfulBackupConsistencyTime&quot;: &quot;A String&quot;, # Output only. The point in time when the last successful backup was captured from the source.
475 &quot;ruleId&quot;: &quot;A String&quot;, # Output only. Backup Rule id fetched from backup plan.
476 },
477 ],
478 &quot;state&quot;: &quot;A String&quot;, # Output only. The BackupPlanAssociation resource state.
479 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time when the instance was updated.
480 }
481
482 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 t he 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).
483 updateMask: string, Required. The list of fields to update. Field mask is used to specify the fields to be overwritten in the BackupPlanAssociation 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. Currently backup_plan_association.backup_plan is the only supported field.
484 x__xgafv: string, V1 error format.
485 Allowed values
486 1 - v1 error format
487 2 - v2 error format
488
489 Returns:
490 An object of the form:
491
492 { # This resource represents a long-running operation that is the result of a network API call.
493 &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.
494 &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.
495 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
496 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
497 {
498 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
499 },
500 ],
501 &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.
502 },
503 &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.
504 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
505 },
506 &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}`.
507 &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`.
508 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
509 },
510 }</pre>
511 </div>
512
513 <div class="method">
514 <code class="details" id="triggerBackup">triggerBackup(name, body=None, x__xgafv=None)</code>
515 <pre>Triggers a new Backup.
516
517 Args:
518 name: string, Required. Name of the backup plan association resource, in the format `projects/{project}/locations/{location}/backupPlanAssociations/{backupPlanAssociationId}` (required)
519 body: object, The request body.
520 The object takes the form of:
521
522 { # Request message for triggering a backup.
523 &quot;customRetentionDays&quot;: 42, # Optional. The duration for which backup data will be kept, while taking an on-demand backup with custom retention. It is defined in &quot;days&quot;. It is mutually exclusive with rule_id. This field is required if rule_id is not provided.
524 &quot;labels&quot;: { # Optional. Labels to be applied on the backup.
525 &quot;a_key&quot;: &quot;A String&quot;,
526 },
527 &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).
528 &quot;ruleId&quot;: &quot;A String&quot;, # Optional. backup rule_id for which a backup needs to be triggered. If not specified, on-demand backup with custom retention will be triggered.
529 }
530
531 x__xgafv: string, V1 error format.
532 Allowed values
533 1 - v1 error format
534 2 - v2 error format
535
536 Returns:
537 An object of the form:
538
539 { # This resource represents a long-running operation that is the result of a network API call.
540 &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.
541 &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.
542 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
543 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
544 {
545 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
546 },
547 ],
548 &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.
549 },
550 &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.
551 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
552 },
553 &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}`.
554 &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`.
555 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
556 },
557 }</pre>
558 </div>
559
560 </body></html>