Debian Codegraph @

docs/dyn/storage_v1.anywhereCaches.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="storage_v1.html">Cloud Storage JSON API</a> . <a href="storage_v1.anywhereCaches.html">anywhereCaches</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="#disable">disable(bucket, anywhereCacheId)</a></code></p>
82 <p class="firstline">Disables an Anywhere Cache instance.</p>
83 <p class="toc_element">
84 <code><a href="#get">get(bucket, anywhereCacheId)</a></code></p>
85 <p class="firstline">Returns the metadata of an Anywhere Cache instance.</p>
86 <p class="toc_element">
87 <code><a href="#insert">insert(bucket, body=None)</a></code></p>
88 <p class="firstline">Creates an Anywhere Cache instance.</p>
89 <p class="toc_element">
90 <code><a href="#list">list(bucket, pageSize=None, pageToken=None)</a></code></p>
91 <p class="firstline">Returns a list of Anywhere Cache instances of the bucket matching the criteria.</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="#pause">pause(bucket, anywhereCacheId)</a></code></p>
97 <p class="firstline">Pauses an Anywhere Cache instance.</p>
98 <p class="toc_element">
99 <code><a href="#resume">resume(bucket, anywhereCacheId)</a></code></p>
100 <p class="firstline">Resumes a paused or disabled Anywhere Cache instance.</p>
101 <p class="toc_element">
102 <code><a href="#update">update(bucket, anywhereCacheId, body=None)</a></code></p>
103 <p class="firstline">Updates the config of an Anywhere Cache instance.</p>
104 <h3>Method Details</h3>
105 <div class="method">
106 <code class="details" id="close">close()</code>
107 <pre>Close httplib2 connections.</pre>
108 </div>
109
110 <div class="method">
111 <code class="details" id="disable">disable(bucket, anywhereCacheId)</code>
112 <pre>Disables an Anywhere Cache instance.
113
114 Args:
115 bucket: string, Name of the parent bucket. (required)
116 anywhereCacheId: string, The ID of requested Anywhere Cache instance. (required)
117
118 Returns:
119 An object of the form:
120
121 { # An Anywhere Cache instance.
122 &quot;admissionPolicy&quot;: &quot;A String&quot;, # The cache-level entry admission policy.
123 &quot;anywhereCacheId&quot;: &quot;A String&quot;, # The ID of the Anywhere cache instance.
124 &quot;bucket&quot;: &quot;A String&quot;, # The name of the bucket containing this cache instance.
125 &quot;createTime&quot;: &quot;A String&quot;, # The creation time of the cache instance in RFC 3339 format.
126 &quot;id&quot;: &quot;A String&quot;, # The ID of the resource, including the project number, bucket name and anywhere cache ID.
127 &quot;ingestOnWrite&quot;: True or False, # Specifies whether objects are ingested into the cache upon write.
128 &quot;kind&quot;: &quot;storage#anywhereCache&quot;, # The kind of item this is. For Anywhere Cache, this is always storage#anywhereCache.
129 &quot;pendingUpdate&quot;: True or False, # True if the cache instance has an active Update long-running operation.
130 &quot;selfLink&quot;: &quot;A String&quot;, # The link to this cache instance.
131 &quot;state&quot;: &quot;A String&quot;, # The current state of the cache instance.
132 &quot;ttl&quot;: &quot;A String&quot;, # The TTL of all cache entries in whole seconds. e.g., &quot;7200s&quot;.
133 &quot;updateTime&quot;: &quot;A String&quot;, # The modification time of the cache instance metadata in RFC 3339 format.
134 &quot;zone&quot;: &quot;A String&quot;, # The zone in which the cache instance is running. For example, us-central1-a.
135 }</pre>
136 </div>
137
138 <div class="method">
139 <code class="details" id="get">get(bucket, anywhereCacheId)</code>
140 <pre>Returns the metadata of an Anywhere Cache instance.
141
142 Args:
143 bucket: string, Name of the parent bucket. (required)
144 anywhereCacheId: string, The ID of requested Anywhere Cache instance. (required)
145
146 Returns:
147 An object of the form:
148
149 { # An Anywhere Cache instance.
150 &quot;admissionPolicy&quot;: &quot;A String&quot;, # The cache-level entry admission policy.
151 &quot;anywhereCacheId&quot;: &quot;A String&quot;, # The ID of the Anywhere cache instance.
152 &quot;bucket&quot;: &quot;A String&quot;, # The name of the bucket containing this cache instance.
153 &quot;createTime&quot;: &quot;A String&quot;, # The creation time of the cache instance in RFC 3339 format.
154 &quot;id&quot;: &quot;A String&quot;, # The ID of the resource, including the project number, bucket name and anywhere cache ID.
155 &quot;ingestOnWrite&quot;: True or False, # Specifies whether objects are ingested into the cache upon write.
156 &quot;kind&quot;: &quot;storage#anywhereCache&quot;, # The kind of item this is. For Anywhere Cache, this is always storage#anywhereCache.
157 &quot;pendingUpdate&quot;: True or False, # True if the cache instance has an active Update long-running operation.
158 &quot;selfLink&quot;: &quot;A String&quot;, # The link to this cache instance.
159 &quot;state&quot;: &quot;A String&quot;, # The current state of the cache instance.
160 &quot;ttl&quot;: &quot;A String&quot;, # The TTL of all cache entries in whole seconds. e.g., &quot;7200s&quot;.
161 &quot;updateTime&quot;: &quot;A String&quot;, # The modification time of the cache instance metadata in RFC 3339 format.
162 &quot;zone&quot;: &quot;A String&quot;, # The zone in which the cache instance is running. For example, us-central1-a.
163 }</pre>
164 </div>
165
166 <div class="method">
167 <code class="details" id="insert">insert(bucket, body=None)</code>
168 <pre>Creates an Anywhere Cache instance.
169
170 Args:
171 bucket: string, Name of the parent bucket. (required)
172 body: object, The request body.
173 The object takes the form of:
174
175 { # An Anywhere Cache instance.
176 &quot;admissionPolicy&quot;: &quot;A String&quot;, # The cache-level entry admission policy.
177 &quot;anywhereCacheId&quot;: &quot;A String&quot;, # The ID of the Anywhere cache instance.
178 &quot;bucket&quot;: &quot;A String&quot;, # The name of the bucket containing this cache instance.
179 &quot;createTime&quot;: &quot;A String&quot;, # The creation time of the cache instance in RFC 3339 format.
180 &quot;id&quot;: &quot;A String&quot;, # The ID of the resource, including the project number, bucket name and anywhere cache ID.
181 &quot;ingestOnWrite&quot;: True or False, # Specifies whether objects are ingested into the cache upon write.
182 &quot;kind&quot;: &quot;storage#anywhereCache&quot;, # The kind of item this is. For Anywhere Cache, this is always storage#anywhereCache.
183 &quot;pendingUpdate&quot;: True or False, # True if the cache instance has an active Update long-running operation.
184 &quot;selfLink&quot;: &quot;A String&quot;, # The link to this cache instance.
185 &quot;state&quot;: &quot;A String&quot;, # The current state of the cache instance.
186 &quot;ttl&quot;: &quot;A String&quot;, # The TTL of all cache entries in whole seconds. e.g., &quot;7200s&quot;.
187 &quot;updateTime&quot;: &quot;A String&quot;, # The modification time of the cache instance metadata in RFC 3339 format.
188 &quot;zone&quot;: &quot;A String&quot;, # The zone in which the cache instance is running. For example, us-central1-a.
189 }
190
191
192 Returns:
193 An object of the form:
194
195 { # This resource represents a long-running operation that is the result of a network API call.
196 &quot;done&quot;: True or False, # If the value is &quot;false&quot;, it means the operation is still in progress. If &quot;true&quot;, the operation is completed, and either &quot;error&quot; or &quot;response&quot; is available.
197 &quot;error&quot;: { # The &quot;Status&quot; 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 &quot;Status&quot; 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.
198 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
199 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
200 {
201 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
202 },
203 ],
204 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English.
205 },
206 &quot;kind&quot;: &quot;storage#operation&quot;, # The kind of item this is. For operations, this is always storage#operation.
207 &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.
208 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
209 },
210 &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 &quot;name&quot; should be a resource name ending with &quot;operations/{operationId}&quot;.
211 &quot;response&quot;: { # The normal response of the operation in case of success. If the original method returns no data on success, such as &quot;Delete&quot;, 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 &quot;XxxResponse&quot;, where &quot;Xxx&quot; is the original method name. For example, if the original method name is &quot;TakeSnapshot()&quot;, the inferred response type is &quot;TakeSnapshotResponse&quot;.
212 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
213 },
214 &quot;selfLink&quot;: &quot;A String&quot;, # The link to this long running operation.
215 }</pre>
216 </div>
217
218 <div class="method">
219 <code class="details" id="list">list(bucket, pageSize=None, pageToken=None)</code>
220 <pre>Returns a list of Anywhere Cache instances of the bucket matching the criteria.
221
222 Args:
223 bucket: string, Name of the parent bucket. (required)
224 pageSize: integer, Maximum number of items to return in a single page of responses. Maximum 1000.
225 pageToken: string, A previously-returned page token representing part of the larger set of results to view.
226
227 Returns:
228 An object of the form:
229
230 { # A list of Anywhere Caches.
231 &quot;items&quot;: [ # The list of items.
232 { # An Anywhere Cache instance.
233 &quot;admissionPolicy&quot;: &quot;A String&quot;, # The cache-level entry admission policy.
234 &quot;anywhereCacheId&quot;: &quot;A String&quot;, # The ID of the Anywhere cache instance.
235 &quot;bucket&quot;: &quot;A String&quot;, # The name of the bucket containing this cache instance.
236 &quot;createTime&quot;: &quot;A String&quot;, # The creation time of the cache instance in RFC 3339 format.
237 &quot;id&quot;: &quot;A String&quot;, # The ID of the resource, including the project number, bucket name and anywhere cache ID.
238 &quot;ingestOnWrite&quot;: True or False, # Specifies whether objects are ingested into the cache upon write.
239 &quot;kind&quot;: &quot;storage#anywhereCache&quot;, # The kind of item this is. For Anywhere Cache, this is always storage#anywhereCache.
240 &quot;pendingUpdate&quot;: True or False, # True if the cache instance has an active Update long-running operation.
241 &quot;selfLink&quot;: &quot;A String&quot;, # The link to this cache instance.
242 &quot;state&quot;: &quot;A String&quot;, # The current state of the cache instance.
243 &quot;ttl&quot;: &quot;A String&quot;, # The TTL of all cache entries in whole seconds. e.g., &quot;7200s&quot;.
244 &quot;updateTime&quot;: &quot;A String&quot;, # The modification time of the cache instance metadata in RFC 3339 format.
245 &quot;zone&quot;: &quot;A String&quot;, # The zone in which the cache instance is running. For example, us-central1-a.
246 },
247 ],
248 &quot;kind&quot;: &quot;storage#anywhereCaches&quot;, # The kind of item this is. For lists of Anywhere Caches, this is always storage#anywhereCaches.
249 &quot;nextPageToken&quot;: &quot;A String&quot;, # The continuation token, used to page through large result sets. Provide this value in a subsequent request to return the next page of results.
250 }</pre>
251 </div>
252
253 <div class="method">
254 <code class="details" id="list_next">list_next()</code>
255 <pre>Retrieves the next page of results.
256
257 Args:
258 previous_request: The request for the previous page. (required)
259 previous_response: The response from the request for the previous page. (required)
260
261 Returns:
262 A request object that you can call &#x27;execute()&#x27; on to request the next
263 page. Returns None if there are no more items in the collection.
264 </pre>
265 </div>
266
267 <div class="method">
268 <code class="details" id="pause">pause(bucket, anywhereCacheId)</code>
269 <pre>Pauses an Anywhere Cache instance.
270
271 Args:
272 bucket: string, Name of the parent bucket. (required)
273 anywhereCacheId: string, The ID of requested Anywhere Cache instance. (required)
274
275 Returns:
276 An object of the form:
277
278 { # An Anywhere Cache instance.
279 &quot;admissionPolicy&quot;: &quot;A String&quot;, # The cache-level entry admission policy.
280 &quot;anywhereCacheId&quot;: &quot;A String&quot;, # The ID of the Anywhere cache instance.
281 &quot;bucket&quot;: &quot;A String&quot;, # The name of the bucket containing this cache instance.
282 &quot;createTime&quot;: &quot;A String&quot;, # The creation time of the cache instance in RFC 3339 format.
283 &quot;id&quot;: &quot;A String&quot;, # The ID of the resource, including the project number, bucket name and anywhere cache ID.
284 &quot;ingestOnWrite&quot;: True or False, # Specifies whether objects are ingested into the cache upon write.
285 &quot;kind&quot;: &quot;storage#anywhereCache&quot;, # The kind of item this is. For Anywhere Cache, this is always storage#anywhereCache.
286 &quot;pendingUpdate&quot;: True or False, # True if the cache instance has an active Update long-running operation.
287 &quot;selfLink&quot;: &quot;A String&quot;, # The link to this cache instance.
288 &quot;state&quot;: &quot;A String&quot;, # The current state of the cache instance.
289 &quot;ttl&quot;: &quot;A String&quot;, # The TTL of all cache entries in whole seconds. e.g., &quot;7200s&quot;.
290 &quot;updateTime&quot;: &quot;A String&quot;, # The modification time of the cache instance metadata in RFC 3339 format.
291 &quot;zone&quot;: &quot;A String&quot;, # The zone in which the cache instance is running. For example, us-central1-a.
292 }</pre>
293 </div>
294
295 <div class="method">
296 <code class="details" id="resume">resume(bucket, anywhereCacheId)</code>
297 <pre>Resumes a paused or disabled Anywhere Cache instance.
298
299 Args:
300 bucket: string, Name of the parent bucket. (required)
301 anywhereCacheId: string, The ID of requested Anywhere Cache instance. (required)
302
303 Returns:
304 An object of the form:
305
306 { # An Anywhere Cache instance.
307 &quot;admissionPolicy&quot;: &quot;A String&quot;, # The cache-level entry admission policy.
308 &quot;anywhereCacheId&quot;: &quot;A String&quot;, # The ID of the Anywhere cache instance.
309 &quot;bucket&quot;: &quot;A String&quot;, # The name of the bucket containing this cache instance.
310 &quot;createTime&quot;: &quot;A String&quot;, # The creation time of the cache instance in RFC 3339 format.
311 &quot;id&quot;: &quot;A String&quot;, # The ID of the resource, including the project number, bucket name and anywhere cache ID.
312 &quot;ingestOnWrite&quot;: True or False, # Specifies whether objects are ingested into the cache upon write.
313 &quot;kind&quot;: &quot;storage#anywhereCache&quot;, # The kind of item this is. For Anywhere Cache, this is always storage#anywhereCache.
314 &quot;pendingUpdate&quot;: True or False, # True if the cache instance has an active Update long-running operation.
315 &quot;selfLink&quot;: &quot;A String&quot;, # The link to this cache instance.
316 &quot;state&quot;: &quot;A String&quot;, # The current state of the cache instance.
317 &quot;ttl&quot;: &quot;A String&quot;, # The TTL of all cache entries in whole seconds. e.g., &quot;7200s&quot;.
318 &quot;updateTime&quot;: &quot;A String&quot;, # The modification time of the cache instance metadata in RFC 3339 format.
319 &quot;zone&quot;: &quot;A String&quot;, # The zone in which the cache instance is running. For example, us-central1-a.
320 }</pre>
321 </div>
322
323 <div class="method">
324 <code class="details" id="update">update(bucket, anywhereCacheId, body=None)</code>
325 <pre>Updates the config of an Anywhere Cache instance.
326
327 Args:
328 bucket: string, Name of the parent bucket. (required)
329 anywhereCacheId: string, The ID of requested Anywhere Cache instance. (required)
330 body: object, The request body.
331 The object takes the form of:
332
333 { # An Anywhere Cache instance.
334 &quot;admissionPolicy&quot;: &quot;A String&quot;, # The cache-level entry admission policy.
335 &quot;anywhereCacheId&quot;: &quot;A String&quot;, # The ID of the Anywhere cache instance.
336 &quot;bucket&quot;: &quot;A String&quot;, # The name of the bucket containing this cache instance.
337 &quot;createTime&quot;: &quot;A String&quot;, # The creation time of the cache instance in RFC 3339 format.
338 &quot;id&quot;: &quot;A String&quot;, # The ID of the resource, including the project number, bucket name and anywhere cache ID.
339 &quot;ingestOnWrite&quot;: True or False, # Specifies whether objects are ingested into the cache upon write.
340 &quot;kind&quot;: &quot;storage#anywhereCache&quot;, # The kind of item this is. For Anywhere Cache, this is always storage#anywhereCache.
341 &quot;pendingUpdate&quot;: True or False, # True if the cache instance has an active Update long-running operation.
342 &quot;selfLink&quot;: &quot;A String&quot;, # The link to this cache instance.
343 &quot;state&quot;: &quot;A String&quot;, # The current state of the cache instance.
344 &quot;ttl&quot;: &quot;A String&quot;, # The TTL of all cache entries in whole seconds. e.g., &quot;7200s&quot;.
345 &quot;updateTime&quot;: &quot;A String&quot;, # The modification time of the cache instance metadata in RFC 3339 format.
346 &quot;zone&quot;: &quot;A String&quot;, # The zone in which the cache instance is running. For example, us-central1-a.
347 }
348
349
350 Returns:
351 An object of the form:
352
353 { # This resource represents a long-running operation that is the result of a network API call.
354 &quot;done&quot;: True or False, # If the value is &quot;false&quot;, it means the operation is still in progress. If &quot;true&quot;, the operation is completed, and either &quot;error&quot; or &quot;response&quot; is available.
355 &quot;error&quot;: { # The &quot;Status&quot; 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 &quot;Status&quot; 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.
356 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
357 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
358 {
359 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
360 },
361 ],
362 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English.
363 },
364 &quot;kind&quot;: &quot;storage#operation&quot;, # The kind of item this is. For operations, this is always storage#operation.
365 &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.
366 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
367 },
368 &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 &quot;name&quot; should be a resource name ending with &quot;operations/{operationId}&quot;.
369 &quot;response&quot;: { # The normal response of the operation in case of success. If the original method returns no data on success, such as &quot;Delete&quot;, 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 &quot;XxxResponse&quot;, where &quot;Xxx&quot; is the original method name. For example, if the original method name is &quot;TakeSnapshot()&quot;, the inferred response type is &quot;TakeSnapshotResponse&quot;.
370 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
371 },
372 &quot;selfLink&quot;: &quot;A String&quot;, # The link to this long running operation.
373 }</pre>
374 </div>
375
376 </body></html>