Debian Codegraph @

docs/dyn/file_v1.projects.locations.instances.snapshots.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="file_v1.html">Cloud Filestore API</a> . <a href="file_v1.projects.html">projects</a> . <a href="file_v1.projects.locations.html">locations</a> . <a href="file_v1.projects.locations.instances.html">instances</a> . <a href="file_v1.projects.locations.instances.snapshots.html">snapshots</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, body=None, snapshotId=None, x__xgafv=None)</a></code></p>
82 <p class="firstline">Creates a snapshot.</p>
83 <p class="toc_element">
84 <code><a href="#delete">delete(name, x__xgafv=None)</a></code></p>
85 <p class="firstline">Deletes a snapshot.</p>
86 <p class="toc_element">
87 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
88 <p class="firstline">Gets the details of a specific snapshot.</p>
89 <p class="toc_element">
90 <code><a href="#list">list(parent, filter=None, orderBy=None, pageSize=None, pageToken=None, returnPartialSuccess=None, x__xgafv=None)</a></code></p>
91 <p class="firstline">Lists all snapshots in a project for either a specified location or for all locations.</p>
92 <p class="toc_element">
93 <code><a href="#list_next">list_next()</a></code></p>
94 <p class="firstline">Retrieves the next page of results.</p>
95 <p class="toc_element">
96 <code><a href="#patch">patch(name, body=None, updateMask=None, x__xgafv=None)</a></code></p>
97 <p class="firstline">Updates the settings of a specific snapshot.</p>
98 <h3>Method Details</h3>
99 <div class="method">
100 <code class="details" id="close">close()</code>
101 <pre>Close httplib2 connections.</pre>
102 </div>
103
104 <div class="method">
105 <code class="details" id="create">create(parent, body=None, snapshotId=None, x__xgafv=None)</code>
106 <pre>Creates a snapshot.
107
108 Args:
109 parent: string, Required. The Filestore Instance to create the snapshots of, in the format `projects/{project_id}/locations/{location}/instances/{instance_id}` (required)
110 body: object, The request body.
111 The object takes the form of:
112
113 { # A Filestore snapshot.
114 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time when the snapshot was created.
115 &quot;description&quot;: &quot;A String&quot;, # A description of the snapshot with 2048 characters or less. Requests with longer descriptions will be rejected.
116 &quot;filesystemUsedBytes&quot;: &quot;A String&quot;, # Output only. The amount of bytes needed to allocate a full copy of the snapshot content
117 &quot;labels&quot;: { # Resource labels to represent user provided metadata.
118 &quot;a_key&quot;: &quot;A String&quot;,
119 },
120 &quot;name&quot;: &quot;A String&quot;, # Output only. The resource name of the snapshot, in the format `projects/{project_id}/locations/{location_id}/instances/{instance_id}/snapshots/{snapshot_id}`.
121 &quot;state&quot;: &quot;A String&quot;, # Output only. The snapshot state.
122 &quot;tags&quot;: { # Optional. Input only. Immutable. Tag key-value pairs bound to this resource. Each key must be a namespaced name and each value a short name. Example: &quot;123456789012/environment&quot; : &quot;production&quot;, &quot;123456789013/costCenter&quot; : &quot;marketing&quot; See the documentation for more information: - Namespaced name: https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing#retrieving_tag_key - Short name: https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing#retrieving_tag_value
123 &quot;a_key&quot;: &quot;A String&quot;,
124 },
125 }
126
127 snapshotId: string, Required. The ID to use for the snapshot. The ID must be unique within the specified instance. This value must start with a lowercase letter followed by up to 62 lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
128 x__xgafv: string, V1 error format.
129 Allowed values
130 1 - v1 error format
131 2 - v2 error format
132
133 Returns:
134 An object of the form:
135
136 { # This resource represents a long-running operation that is the result of a network API call.
137 &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.
138 &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.
139 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
140 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
141 {
142 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
143 },
144 ],
145 &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.
146 },
147 &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.
148 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
149 },
150 &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}`.
151 &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`.
152 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
153 },
154 }</pre>
155 </div>
156
157 <div class="method">
158 <code class="details" id="delete">delete(name, x__xgafv=None)</code>
159 <pre>Deletes a snapshot.
160
161 Args:
162 name: string, Required. The snapshot resource name, in the format `projects/{project_id}/locations/{location}/instances/{instance_id}/snapshots/{snapshot_id}` (required)
163 x__xgafv: string, V1 error format.
164 Allowed values
165 1 - v1 error format
166 2 - v2 error format
167
168 Returns:
169 An object of the form:
170
171 { # This resource represents a long-running operation that is the result of a network API call.
172 &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.
173 &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.
174 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
175 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
176 {
177 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
178 },
179 ],
180 &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.
181 },
182 &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.
183 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
184 },
185 &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}`.
186 &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`.
187 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
188 },
189 }</pre>
190 </div>
191
192 <div class="method">
193 <code class="details" id="get">get(name, x__xgafv=None)</code>
194 <pre>Gets the details of a specific snapshot.
195
196 Args:
197 name: string, Required. The snapshot resource name, in the format `projects/{project_id}/locations/{location}/instances/{instance_id}/snapshots/{snapshot_id}` (required)
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 { # A Filestore snapshot.
207 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time when the snapshot was created.
208 &quot;description&quot;: &quot;A String&quot;, # A description of the snapshot with 2048 characters or less. Requests with longer descriptions will be rejected.
209 &quot;filesystemUsedBytes&quot;: &quot;A String&quot;, # Output only. The amount of bytes needed to allocate a full copy of the snapshot content
210 &quot;labels&quot;: { # Resource labels to represent user provided metadata.
211 &quot;a_key&quot;: &quot;A String&quot;,
212 },
213 &quot;name&quot;: &quot;A String&quot;, # Output only. The resource name of the snapshot, in the format `projects/{project_id}/locations/{location_id}/instances/{instance_id}/snapshots/{snapshot_id}`.
214 &quot;state&quot;: &quot;A String&quot;, # Output only. The snapshot state.
215 &quot;tags&quot;: { # Optional. Input only. Immutable. Tag key-value pairs bound to this resource. Each key must be a namespaced name and each value a short name. Example: &quot;123456789012/environment&quot; : &quot;production&quot;, &quot;123456789013/costCenter&quot; : &quot;marketing&quot; See the documentation for more information: - Namespaced name: https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing#retrieving_tag_key - Short name: https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing#retrieving_tag_value
216 &quot;a_key&quot;: &quot;A String&quot;,
217 },
218 }</pre>
219 </div>
220
221 <div class="method">
222 <code class="details" id="list">list(parent, filter=None, orderBy=None, pageSize=None, pageToken=None, returnPartialSuccess=None, x__xgafv=None)</code>
223 <pre>Lists all snapshots in a project for either a specified location or for all locations.
224
225 Args:
226 parent: string, Required. The instance for which to retrieve snapshot information, in the format `projects/{project_id}/locations/{location}/instances/{instance_id}`. (required)
227 filter: string, List filter.
228 orderBy: string, Sort results. Supported values are &quot;name&quot;, &quot;name desc&quot; or &quot;&quot; (unsorted).
229 pageSize: integer, The maximum number of items to return.
230 pageToken: string, The next_page_token value to use if there are additional results to retrieve for this list request.
231 returnPartialSuccess: boolean, Optional. If true, allow partial responses for multi-regional Aggregated List requests.
232 x__xgafv: string, V1 error format.
233 Allowed values
234 1 - v1 error format
235 2 - v2 error format
236
237 Returns:
238 An object of the form:
239
240 { # ListSnapshotsResponse is the result of ListSnapshotsRequest.
241 &quot;nextPageToken&quot;: &quot;A String&quot;, # The token you can use to retrieve the next page of results. Not returned if there are no more results in the list.
242 &quot;snapshots&quot;: [ # A list of snapshots in the project for the specified instance.
243 { # A Filestore snapshot.
244 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time when the snapshot was created.
245 &quot;description&quot;: &quot;A String&quot;, # A description of the snapshot with 2048 characters or less. Requests with longer descriptions will be rejected.
246 &quot;filesystemUsedBytes&quot;: &quot;A String&quot;, # Output only. The amount of bytes needed to allocate a full copy of the snapshot content
247 &quot;labels&quot;: { # Resource labels to represent user provided metadata.
248 &quot;a_key&quot;: &quot;A String&quot;,
249 },
250 &quot;name&quot;: &quot;A String&quot;, # Output only. The resource name of the snapshot, in the format `projects/{project_id}/locations/{location_id}/instances/{instance_id}/snapshots/{snapshot_id}`.
251 &quot;state&quot;: &quot;A String&quot;, # Output only. The snapshot state.
252 &quot;tags&quot;: { # Optional. Input only. Immutable. Tag key-value pairs bound to this resource. Each key must be a namespaced name and each value a short name. Example: &quot;123456789012/environment&quot; : &quot;production&quot;, &quot;123456789013/costCenter&quot; : &quot;marketing&quot; See the documentation for more information: - Namespaced name: https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing#retrieving_tag_key - Short name: https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing#retrieving_tag_value
253 &quot;a_key&quot;: &quot;A String&quot;,
254 },
255 },
256 ],
257 &quot;unreachable&quot;: [ # Unordered list. Locations that could not be reached.
258 &quot;A String&quot;,
259 ],
260 }</pre>
261 </div>
262
263 <div class="method">
264 <code class="details" id="list_next">list_next()</code>
265 <pre>Retrieves the next page of results.
266
267 Args:
268 previous_request: The request for the previous page. (required)
269 previous_response: The response from the request for the previous page. (required)
270
271 Returns:
272 A request object that you can call &#x27;execute()&#x27; on to request the next
273 page. Returns None if there are no more items in the collection.
274 </pre>
275 </div>
276
277 <div class="method">
278 <code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code>
279 <pre>Updates the settings of a specific snapshot.
280
281 Args:
282 name: string, Output only. The resource name of the snapshot, in the format `projects/{project_id}/locations/{location_id}/instances/{instance_id}/snapshots/{snapshot_id}`. (required)
283 body: object, The request body.
284 The object takes the form of:
285
286 { # A Filestore snapshot.
287 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time when the snapshot was created.
288 &quot;description&quot;: &quot;A String&quot;, # A description of the snapshot with 2048 characters or less. Requests with longer descriptions will be rejected.
289 &quot;filesystemUsedBytes&quot;: &quot;A String&quot;, # Output only. The amount of bytes needed to allocate a full copy of the snapshot content
290 &quot;labels&quot;: { # Resource labels to represent user provided metadata.
291 &quot;a_key&quot;: &quot;A String&quot;,
292 },
293 &quot;name&quot;: &quot;A String&quot;, # Output only. The resource name of the snapshot, in the format `projects/{project_id}/locations/{location_id}/instances/{instance_id}/snapshots/{snapshot_id}`.
294 &quot;state&quot;: &quot;A String&quot;, # Output only. The snapshot state.
295 &quot;tags&quot;: { # Optional. Input only. Immutable. Tag key-value pairs bound to this resource. Each key must be a namespaced name and each value a short name. Example: &quot;123456789012/environment&quot; : &quot;production&quot;, &quot;123456789013/costCenter&quot; : &quot;marketing&quot; See the documentation for more information: - Namespaced name: https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing#retrieving_tag_key - Short name: https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing#retrieving_tag_value
296 &quot;a_key&quot;: &quot;A String&quot;,
297 },
298 }
299
300 updateMask: string, Required. Mask of fields to update. At least one path must be supplied in this field.
301 x__xgafv: string, V1 error format.
302 Allowed values
303 1 - v1 error format
304 2 - v2 error format
305
306 Returns:
307 An object of the form:
308
309 { # This resource represents a long-running operation that is the result of a network API call.
310 &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.
311 &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.
312 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
313 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
314 {
315 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
316 },
317 ],
318 &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.
319 },
320 &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.
321 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
322 },
323 &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}`.
324 &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`.
325 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
326 },
327 }</pre>
328 </div>
329
330 </body></html>