Debian Codegraph @

docs/dyn/storage_v1.anywhereCache.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.anywhereCache.html">anywhereCache</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(ttl and admissionPolicy) 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 partent 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;kind&quot;: &quot;storage#anywhereCache&quot;, # The kind of item this is. For Anywhere Cache, this is always storage#anywhereCache.
128 &quot;pendingUpdate&quot;: True or False, # True if the cache instance has an active Update long-running operation.
129 &quot;selfLink&quot;: &quot;A String&quot;, # The link to this cache instance.
130 &quot;state&quot;: &quot;A String&quot;, # The current state of the cache instance.
131 &quot;ttl&quot;: &quot;A String&quot;, # The TTL of all cache entries in whole seconds. e.g., &quot;7200s&quot;.
132 &quot;updateTime&quot;: &quot;A String&quot;, # The modification time of the cache instance metadata in RFC 3339 format.
133 }</pre>
134 </div>
135
136 <div class="method">
137 <code class="details" id="get">get(bucket, anywhereCacheId)</code>
138 <pre>Returns the metadata of an Anywhere Cache instance.
139
140 Args:
141 bucket: string, Name of the partent bucket (required)
142 anywhereCacheId: string, The ID of requested Anywhere Cache instance. (required)
143
144 Returns:
145 An object of the form:
146
147 { # An Anywhere Cache instance.
148 &quot;admissionPolicy&quot;: &quot;A String&quot;, # The cache-level entry admission policy.
149 &quot;anywhereCacheId&quot;: &quot;A String&quot;, # The ID of the Anywhere cache instance.
150 &quot;bucket&quot;: &quot;A String&quot;, # The name of the bucket containing this cache instance.
151 &quot;createTime&quot;: &quot;A String&quot;, # The creation time of the cache instance in RFC 3339 format.
152 &quot;id&quot;: &quot;A String&quot;, # The ID of the resource, including the project number, bucket name and anywhere cache ID.
153 &quot;kind&quot;: &quot;storage#anywhereCache&quot;, # The kind of item this is. For Anywhere Cache, this is always storage#anywhereCache.
154 &quot;pendingUpdate&quot;: True or False, # True if the cache instance has an active Update long-running operation.
155 &quot;selfLink&quot;: &quot;A String&quot;, # The link to this cache instance.
156 &quot;state&quot;: &quot;A String&quot;, # The current state of the cache instance.
157 &quot;ttl&quot;: &quot;A String&quot;, # The TTL of all cache entries in whole seconds. e.g., &quot;7200s&quot;.
158 &quot;updateTime&quot;: &quot;A String&quot;, # The modification time of the cache instance metadata in RFC 3339 format.
159 }</pre>
160 </div>
161
162 <div class="method">
163 <code class="details" id="insert">insert(bucket, body=None)</code>
164 <pre>Creates an Anywhere Cache instance.
165
166 Args:
167 bucket: string, Name of the partent bucket (required)
168 body: object, The request body.
169 The object takes the form of:
170
171 { # An Anywhere Cache instance.
172 &quot;admissionPolicy&quot;: &quot;A String&quot;, # The cache-level entry admission policy.
173 &quot;anywhereCacheId&quot;: &quot;A String&quot;, # The ID of the Anywhere cache instance.
174 &quot;bucket&quot;: &quot;A String&quot;, # The name of the bucket containing this cache instance.
175 &quot;createTime&quot;: &quot;A String&quot;, # The creation time of the cache instance in RFC 3339 format.
176 &quot;id&quot;: &quot;A String&quot;, # The ID of the resource, including the project number, bucket name and anywhere cache ID.
177 &quot;kind&quot;: &quot;storage#anywhereCache&quot;, # The kind of item this is. For Anywhere Cache, this is always storage#anywhereCache.
178 &quot;pendingUpdate&quot;: True or False, # True if the cache instance has an active Update long-running operation.
179 &quot;selfLink&quot;: &quot;A String&quot;, # The link to this cache instance.
180 &quot;state&quot;: &quot;A String&quot;, # The current state of the cache instance.
181 &quot;ttl&quot;: &quot;A String&quot;, # The TTL of all cache entries in whole seconds. e.g., &quot;7200s&quot;.
182 &quot;updateTime&quot;: &quot;A String&quot;, # The modification time of the cache instance metadata in RFC 3339 format.
183 }
184
185
186 Returns:
187 An object of the form:
188
189 { # This resource represents a long-running operation that is the result of a network API call.
190 &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.
191 &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.
192 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
193 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
194 {
195 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
196 },
197 ],
198 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English.
199 },
200 &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.
201 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
202 },
203 &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;.
204 &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;.
205 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
206 },
207 }</pre>
208 </div>
209
210 <div class="method">
211 <code class="details" id="list">list(bucket, pageSize=None, pageToken=None)</code>
212 <pre>Returns a list of Anywhere Cache instances of the bucket matching the criteria.
213
214 Args:
215 bucket: string, Name of the partent bucket (required)
216 pageSize: integer, Maximum number of items return in a single page of responses. Maximum 1000.
217 pageToken: string, A previously-returned page token representing part of the larger set of results to view.
218
219 Returns:
220 An object of the form:
221
222 { # A list of Anywhere Caches.
223 &quot;items&quot;: [ # The list of items.
224 { # An Anywhere Cache instance.
225 &quot;admissionPolicy&quot;: &quot;A String&quot;, # The cache-level entry admission policy.
226 &quot;anywhereCacheId&quot;: &quot;A String&quot;, # The ID of the Anywhere cache instance.
227 &quot;bucket&quot;: &quot;A String&quot;, # The name of the bucket containing this cache instance.
228 &quot;createTime&quot;: &quot;A String&quot;, # The creation time of the cache instance in RFC 3339 format.
229 &quot;id&quot;: &quot;A String&quot;, # The ID of the resource, including the project number, bucket name and anywhere cache ID.
230 &quot;kind&quot;: &quot;storage#anywhereCache&quot;, # The kind of item this is. For Anywhere Cache, this is always storage#anywhereCache.
231 &quot;pendingUpdate&quot;: True or False, # True if the cache instance has an active Update long-running operation.
232 &quot;selfLink&quot;: &quot;A String&quot;, # The link to this cache instance.
233 &quot;state&quot;: &quot;A String&quot;, # The current state of the cache instance.
234 &quot;ttl&quot;: &quot;A String&quot;, # The TTL of all cache entries in whole seconds. e.g., &quot;7200s&quot;.
235 &quot;updateTime&quot;: &quot;A String&quot;, # The modification time of the cache instance metadata in RFC 3339 format.
236 },
237 ],
238 &quot;kind&quot;: &quot;storage#anywhereCaches&quot;, # The kind of item this is. For lists of Anywhere Caches, this is always storage#anywhereCaches.
239 &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.
240 }</pre>
241 </div>
242
243 <div class="method">
244 <code class="details" id="list_next">list_next()</code>
245 <pre>Retrieves the next page of results.
246
247 Args:
248 previous_request: The request for the previous page. (required)
249 previous_response: The response from the request for the previous page. (required)
250
251 Returns:
252 A request object that you can call &#x27;execute()&#x27; on to request the next
253 page. Returns None if there are no more items in the collection.
254 </pre>
255 </div>
256
257 <div class="method">
258 <code class="details" id="pause">pause(bucket, anywhereCacheId)</code>
259 <pre>Pauses an Anywhere Cache instance.
260
261 Args:
262 bucket: string, Name of the partent bucket (required)
263 anywhereCacheId: string, The ID of requested Anywhere Cache instance. (required)
264
265 Returns:
266 An object of the form:
267
268 { # An Anywhere Cache instance.
269 &quot;admissionPolicy&quot;: &quot;A String&quot;, # The cache-level entry admission policy.
270 &quot;anywhereCacheId&quot;: &quot;A String&quot;, # The ID of the Anywhere cache instance.
271 &quot;bucket&quot;: &quot;A String&quot;, # The name of the bucket containing this cache instance.
272 &quot;createTime&quot;: &quot;A String&quot;, # The creation time of the cache instance in RFC 3339 format.
273 &quot;id&quot;: &quot;A String&quot;, # The ID of the resource, including the project number, bucket name and anywhere cache ID.
274 &quot;kind&quot;: &quot;storage#anywhereCache&quot;, # The kind of item this is. For Anywhere Cache, this is always storage#anywhereCache.
275 &quot;pendingUpdate&quot;: True or False, # True if the cache instance has an active Update long-running operation.
276 &quot;selfLink&quot;: &quot;A String&quot;, # The link to this cache instance.
277 &quot;state&quot;: &quot;A String&quot;, # The current state of the cache instance.
278 &quot;ttl&quot;: &quot;A String&quot;, # The TTL of all cache entries in whole seconds. e.g., &quot;7200s&quot;.
279 &quot;updateTime&quot;: &quot;A String&quot;, # The modification time of the cache instance metadata in RFC 3339 format.
280 }</pre>
281 </div>
282
283 <div class="method">
284 <code class="details" id="resume">resume(bucket, anywhereCacheId)</code>
285 <pre>Resumes a paused or disabled Anywhere Cache instance.
286
287 Args:
288 bucket: string, Name of the partent bucket (required)
289 anywhereCacheId: string, The ID of requested Anywhere Cache instance. (required)
290
291 Returns:
292 An object of the form:
293
294 { # An Anywhere Cache instance.
295 &quot;admissionPolicy&quot;: &quot;A String&quot;, # The cache-level entry admission policy.
296 &quot;anywhereCacheId&quot;: &quot;A String&quot;, # The ID of the Anywhere cache instance.
297 &quot;bucket&quot;: &quot;A String&quot;, # The name of the bucket containing this cache instance.
298 &quot;createTime&quot;: &quot;A String&quot;, # The creation time of the cache instance in RFC 3339 format.
299 &quot;id&quot;: &quot;A String&quot;, # The ID of the resource, including the project number, bucket name and anywhere cache ID.
300 &quot;kind&quot;: &quot;storage#anywhereCache&quot;, # The kind of item this is. For Anywhere Cache, this is always storage#anywhereCache.
301 &quot;pendingUpdate&quot;: True or False, # True if the cache instance has an active Update long-running operation.
302 &quot;selfLink&quot;: &quot;A String&quot;, # The link to this cache instance.
303 &quot;state&quot;: &quot;A String&quot;, # The current state of the cache instance.
304 &quot;ttl&quot;: &quot;A String&quot;, # The TTL of all cache entries in whole seconds. e.g., &quot;7200s&quot;.
305 &quot;updateTime&quot;: &quot;A String&quot;, # The modification time of the cache instance metadata in RFC 3339 format.
306 }</pre>
307 </div>
308
309 <div class="method">
310 <code class="details" id="update">update(bucket, anywhereCacheId, body=None)</code>
311 <pre>Updates the config(ttl and admissionPolicy) of an Anywhere Cache instance.
312
313 Args:
314 bucket: string, Name of the partent bucket (required)
315 anywhereCacheId: string, The ID of requested Anywhere Cache instance. (required)
316 body: object, The request body.
317 The object takes the form of:
318
319 { # An Anywhere Cache instance.
320 &quot;admissionPolicy&quot;: &quot;A String&quot;, # The cache-level entry admission policy.
321 &quot;anywhereCacheId&quot;: &quot;A String&quot;, # The ID of the Anywhere cache instance.
322 &quot;bucket&quot;: &quot;A String&quot;, # The name of the bucket containing this cache instance.
323 &quot;createTime&quot;: &quot;A String&quot;, # The creation time of the cache instance in RFC 3339 format.
324 &quot;id&quot;: &quot;A String&quot;, # The ID of the resource, including the project number, bucket name and anywhere cache ID.
325 &quot;kind&quot;: &quot;storage#anywhereCache&quot;, # The kind of item this is. For Anywhere Cache, this is always storage#anywhereCache.
326 &quot;pendingUpdate&quot;: True or False, # True if the cache instance has an active Update long-running operation.
327 &quot;selfLink&quot;: &quot;A String&quot;, # The link to this cache instance.
328 &quot;state&quot;: &quot;A String&quot;, # The current state of the cache instance.
329 &quot;ttl&quot;: &quot;A String&quot;, # The TTL of all cache entries in whole seconds. e.g., &quot;7200s&quot;.
330 &quot;updateTime&quot;: &quot;A String&quot;, # The modification time of the cache instance metadata in RFC 3339 format.
331 }
332
333
334 Returns:
335 An object of the form:
336
337 { # This resource represents a long-running operation that is the result of a network API call.
338 &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.
339 &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.
340 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
341 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
342 {
343 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
344 },
345 ],
346 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English.
347 },
348 &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.
349 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
350 },
351 &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;.
352 &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;.
353 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
354 },
355 }</pre>
356 </div>
357
358 </body></html>