Debian Codegraph @

docs/dyn/gkebackup_v1.projects.locations.backupChannels.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="gkebackup_v1.html">Backup for GKE API</a> . <a href="gkebackup_v1.projects.html">projects</a> . <a href="gkebackup_v1.projects.locations.html">locations</a> . <a href="gkebackup_v1.projects.locations.backupChannels.html">backupChannels</a></h1>
76 <h2>Instance Methods</h2>
77 <p class="toc_element">
78 <code><a href="gkebackup_v1.projects.locations.backupChannels.backupPlanBindings.html">backupPlanBindings()</a></code>
79 </p>
80 <p class="firstline">Returns the backupPlanBindings Resource.</p>
81
82 <p class="toc_element">
83 <code><a href="#close">close()</a></code></p>
84 <p class="firstline">Close httplib2 connections.</p>
85 <p class="toc_element">
86 <code><a href="#create">create(parent, backupChannelId=None, body=None, x__xgafv=None)</a></code></p>
87 <p class="firstline">Creates a new BackupChannel in a given location.</p>
88 <p class="toc_element">
89 <code><a href="#delete">delete(name, etag=None, force=None, x__xgafv=None)</a></code></p>
90 <p class="firstline">Deletes an existing BackupChannel.</p>
91 <p class="toc_element">
92 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
93 <p class="firstline">Retrieve the details of a single BackupChannel.</p>
94 <p class="toc_element">
95 <code><a href="#list">list(parent, filter=None, orderBy=None, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
96 <p class="firstline">Lists BackupChannels in a given location.</p>
97 <p class="toc_element">
98 <code><a href="#list_next">list_next()</a></code></p>
99 <p class="firstline">Retrieves the next page of results.</p>
100 <p class="toc_element">
101 <code><a href="#patch">patch(name, body=None, updateMask=None, x__xgafv=None)</a></code></p>
102 <p class="firstline">Update a BackupChannel.</p>
103 <h3>Method Details</h3>
104 <div class="method">
105 <code class="details" id="close">close()</code>
106 <pre>Close httplib2 connections.</pre>
107 </div>
108
109 <div class="method">
110 <code class="details" id="create">create(parent, backupChannelId=None, body=None, x__xgafv=None)</code>
111 <pre>Creates a new BackupChannel in a given location.
112
113 Args:
114 parent: string, Required. The location within which to create the BackupChannel. Format: `projects/*/locations/*` (required)
115 body: object, The request body.
116 The object takes the form of:
117
118 { # A BackupChannel imposes constraints on where clusters can be backed up. The BackupChannel should be in the same project and region as the cluster being backed up. The backup can be created only in destination_project.
119 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The timestamp when this BackupChannel resource was created.
120 &quot;description&quot;: &quot;A String&quot;, # Optional. User specified descriptive string for this BackupChannel.
121 &quot;destinationProject&quot;: &quot;A String&quot;, # Required. Immutable. The project where Backups are allowed to be stored. The format is `projects/{projectId}` or `projects/{projectNumber}`.
122 &quot;destinationProjectId&quot;: &quot;A String&quot;, # Output only. The project_id where Backups are allowed to be stored. Example Project ID: &quot;my-project-id&quot;. This will be an OUTPUT_ONLY field to return the project_id of the destination project.
123 &quot;etag&quot;: &quot;A String&quot;, # Output only. `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a BackupChannel from overwriting each other. It is strongly suggested that systems make use of the &#x27;etag&#x27; in the read-modify-write cycle to perform BackupChannel updates in order to avoid race conditions: An `etag` is returned in the response to `GetBackupChannel`, and systems are expected to put that etag in the request to `UpdateBackupChannel` or `DeleteBackupChannel` to ensure that their change will be applied to the same version of the resource.
124 &quot;labels&quot;: { # Optional. A set of custom labels supplied by user.
125 &quot;a_key&quot;: &quot;A String&quot;,
126 },
127 &quot;name&quot;: &quot;A String&quot;, # Identifier. The fully qualified name of the BackupChannel. `projects/*/locations/*/backupChannels/*`
128 &quot;uid&quot;: &quot;A String&quot;, # Output only. Server generated global unique identifier of [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
129 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The timestamp when this BackupChannel resource was last updated.
130 }
131
132 backupChannelId: string, Optional. The client-provided short name for the BackupChannel resource. This name must: - be between 1 and 63 characters long (inclusive) - consist of only lower-case ASCII letters, numbers, and dashes - start with a lower-case letter - end with a lower-case letter or number - be unique within the set of BackupChannels in this location If the user does not provide a name, a uuid will be used as the name.
133 x__xgafv: string, V1 error format.
134 Allowed values
135 1 - v1 error format
136 2 - v2 error format
137
138 Returns:
139 An object of the form:
140
141 { # This resource represents a long-running operation that is the result of a network API call.
142 &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.
143 &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.
144 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
145 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
146 {
147 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
148 },
149 ],
150 &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.
151 },
152 &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.
153 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
154 },
155 &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}`.
156 &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`.
157 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
158 },
159 }</pre>
160 </div>
161
162 <div class="method">
163 <code class="details" id="delete">delete(name, etag=None, force=None, x__xgafv=None)</code>
164 <pre>Deletes an existing BackupChannel.
165
166 Args:
167 name: string, Required. Fully qualified BackupChannel name. Format: `projects/*/locations/*/backupChannels/*` (required)
168 etag: string, Optional. If provided, this value must match the current value of the target BackupChannel&#x27;s etag field or the request is rejected.
169 force: boolean, Optional. If set to true, any BackupPlanAssociations below this BackupChannel will also be deleted. Otherwise, the request will only succeed if the BackupChannel has no BackupPlanAssociations.
170 x__xgafv: string, V1 error format.
171 Allowed values
172 1 - v1 error format
173 2 - v2 error format
174
175 Returns:
176 An object of the form:
177
178 { # This resource represents a long-running operation that is the result of a network API call.
179 &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.
180 &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.
181 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
182 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
183 {
184 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
185 },
186 ],
187 &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.
188 },
189 &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.
190 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
191 },
192 &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}`.
193 &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`.
194 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
195 },
196 }</pre>
197 </div>
198
199 <div class="method">
200 <code class="details" id="get">get(name, x__xgafv=None)</code>
201 <pre>Retrieve the details of a single BackupChannel.
202
203 Args:
204 name: string, Required. Fully qualified BackupChannel name. Format: `projects/*/locations/*/backupChannels/*` (required)
205 x__xgafv: string, V1 error format.
206 Allowed values
207 1 - v1 error format
208 2 - v2 error format
209
210 Returns:
211 An object of the form:
212
213 { # A BackupChannel imposes constraints on where clusters can be backed up. The BackupChannel should be in the same project and region as the cluster being backed up. The backup can be created only in destination_project.
214 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The timestamp when this BackupChannel resource was created.
215 &quot;description&quot;: &quot;A String&quot;, # Optional. User specified descriptive string for this BackupChannel.
216 &quot;destinationProject&quot;: &quot;A String&quot;, # Required. Immutable. The project where Backups are allowed to be stored. The format is `projects/{projectId}` or `projects/{projectNumber}`.
217 &quot;destinationProjectId&quot;: &quot;A String&quot;, # Output only. The project_id where Backups are allowed to be stored. Example Project ID: &quot;my-project-id&quot;. This will be an OUTPUT_ONLY field to return the project_id of the destination project.
218 &quot;etag&quot;: &quot;A String&quot;, # Output only. `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a BackupChannel from overwriting each other. It is strongly suggested that systems make use of the &#x27;etag&#x27; in the read-modify-write cycle to perform BackupChannel updates in order to avoid race conditions: An `etag` is returned in the response to `GetBackupChannel`, and systems are expected to put that etag in the request to `UpdateBackupChannel` or `DeleteBackupChannel` to ensure that their change will be applied to the same version of the resource.
219 &quot;labels&quot;: { # Optional. A set of custom labels supplied by user.
220 &quot;a_key&quot;: &quot;A String&quot;,
221 },
222 &quot;name&quot;: &quot;A String&quot;, # Identifier. The fully qualified name of the BackupChannel. `projects/*/locations/*/backupChannels/*`
223 &quot;uid&quot;: &quot;A String&quot;, # Output only. Server generated global unique identifier of [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
224 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The timestamp when this BackupChannel resource was last updated.
225 }</pre>
226 </div>
227
228 <div class="method">
229 <code class="details" id="list">list(parent, filter=None, orderBy=None, pageSize=None, pageToken=None, x__xgafv=None)</code>
230 <pre>Lists BackupChannels in a given location.
231
232 Args:
233 parent: string, Required. The location that contains the BackupChannels to list. Format: `projects/*/locations/*` (required)
234 filter: string, Optional. Field match expression used to filter the results.
235 orderBy: string, Optional. Field by which to sort the results.
236 pageSize: integer, Optional. The target number of results to return in a single response. If not specified, a default value will be chosen by the service. Note that the response may include a partial list and a caller should only rely on the response&#x27;s next_page_token to determine if there are more instances left to be queried.
237 pageToken: string, Optional. The value of next_page_token received from a previous `ListBackupChannels` call. Provide this to retrieve the subsequent page in a multi-page list of results. When paginating, all other parameters provided to `ListBackupChannels` must match the call that provided the page token.
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 message for ListBackupChannels.
247 &quot;backupChannels&quot;: [ # The list of BackupChannels matching the given criteria.
248 { # A BackupChannel imposes constraints on where clusters can be backed up. The BackupChannel should be in the same project and region as the cluster being backed up. The backup can be created only in destination_project.
249 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The timestamp when this BackupChannel resource was created.
250 &quot;description&quot;: &quot;A String&quot;, # Optional. User specified descriptive string for this BackupChannel.
251 &quot;destinationProject&quot;: &quot;A String&quot;, # Required. Immutable. The project where Backups are allowed to be stored. The format is `projects/{projectId}` or `projects/{projectNumber}`.
252 &quot;destinationProjectId&quot;: &quot;A String&quot;, # Output only. The project_id where Backups are allowed to be stored. Example Project ID: &quot;my-project-id&quot;. This will be an OUTPUT_ONLY field to return the project_id of the destination project.
253 &quot;etag&quot;: &quot;A String&quot;, # Output only. `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a BackupChannel from overwriting each other. It is strongly suggested that systems make use of the &#x27;etag&#x27; in the read-modify-write cycle to perform BackupChannel updates in order to avoid race conditions: An `etag` is returned in the response to `GetBackupChannel`, and systems are expected to put that etag in the request to `UpdateBackupChannel` or `DeleteBackupChannel` to ensure that their change will be applied to the same version of the resource.
254 &quot;labels&quot;: { # Optional. A set of custom labels supplied by user.
255 &quot;a_key&quot;: &quot;A String&quot;,
256 },
257 &quot;name&quot;: &quot;A String&quot;, # Identifier. The fully qualified name of the BackupChannel. `projects/*/locations/*/backupChannels/*`
258 &quot;uid&quot;: &quot;A String&quot;, # Output only. Server generated global unique identifier of [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
259 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The timestamp when this BackupChannel resource was last updated.
260 },
261 ],
262 &quot;nextPageToken&quot;: &quot;A String&quot;, # A token which may be sent as page_token in a subsequent `ListBackupChannels` call to retrieve the next page of results. If this field is omitted or empty, then there are no more results to return.
263 &quot;unreachable&quot;: [ # Locations that could not be reached.
264 &quot;A String&quot;,
265 ],
266 }</pre>
267 </div>
268
269 <div class="method">
270 <code class="details" id="list_next">list_next()</code>
271 <pre>Retrieves the next page of results.
272
273 Args:
274 previous_request: The request for the previous page. (required)
275 previous_response: The response from the request for the previous page. (required)
276
277 Returns:
278 A request object that you can call &#x27;execute()&#x27; on to request the next
279 page. Returns None if there are no more items in the collection.
280 </pre>
281 </div>
282
283 <div class="method">
284 <code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code>
285 <pre>Update a BackupChannel.
286
287 Args:
288 name: string, Identifier. The fully qualified name of the BackupChannel. `projects/*/locations/*/backupChannels/*` (required)
289 body: object, The request body.
290 The object takes the form of:
291
292 { # A BackupChannel imposes constraints on where clusters can be backed up. The BackupChannel should be in the same project and region as the cluster being backed up. The backup can be created only in destination_project.
293 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The timestamp when this BackupChannel resource was created.
294 &quot;description&quot;: &quot;A String&quot;, # Optional. User specified descriptive string for this BackupChannel.
295 &quot;destinationProject&quot;: &quot;A String&quot;, # Required. Immutable. The project where Backups are allowed to be stored. The format is `projects/{projectId}` or `projects/{projectNumber}`.
296 &quot;destinationProjectId&quot;: &quot;A String&quot;, # Output only. The project_id where Backups are allowed to be stored. Example Project ID: &quot;my-project-id&quot;. This will be an OUTPUT_ONLY field to return the project_id of the destination project.
297 &quot;etag&quot;: &quot;A String&quot;, # Output only. `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a BackupChannel from overwriting each other. It is strongly suggested that systems make use of the &#x27;etag&#x27; in the read-modify-write cycle to perform BackupChannel updates in order to avoid race conditions: An `etag` is returned in the response to `GetBackupChannel`, and systems are expected to put that etag in the request to `UpdateBackupChannel` or `DeleteBackupChannel` to ensure that their change will be applied to the same version of the resource.
298 &quot;labels&quot;: { # Optional. A set of custom labels supplied by user.
299 &quot;a_key&quot;: &quot;A String&quot;,
300 },
301 &quot;name&quot;: &quot;A String&quot;, # Identifier. The fully qualified name of the BackupChannel. `projects/*/locations/*/backupChannels/*`
302 &quot;uid&quot;: &quot;A String&quot;, # Output only. Server generated global unique identifier of [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
303 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The timestamp when this BackupChannel resource was last updated.
304 }
305
306 updateMask: string, Optional. This is used to specify the fields to be overwritten in the BackupChannel targeted for update. The values for each of these updated fields will be taken from the `backup_channel` provided with this request. Field names are relative to the root of the resource (e.g., `description`, `labels`, etc.) If no `update_mask` is provided, all fields in `backup_channel` will be written to the target BackupChannel resource. Note that OUTPUT_ONLY and IMMUTABLE fields in `backup_channel` are ignored and are not used to update the target BackupChannel.
307 x__xgafv: string, V1 error format.
308 Allowed values
309 1 - v1 error format
310 2 - v2 error format
311
312 Returns:
313 An object of the form:
314
315 { # This resource represents a long-running operation that is the result of a network API call.
316 &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.
317 &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.
318 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
319 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
320 {
321 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
322 },
323 ],
324 &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.
325 },
326 &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.
327 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
328 },
329 &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}`.
330 &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`.
331 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
332 },
333 }</pre>
334 </div>
335
336 </body></html>