Debian Codegraph @

docs/dyn/storage_v1.operations.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.operations.html">operations</a></h1>
76 <h2>Instance Methods</h2>
77 <p class="toc_element">
78 <code><a href="#advanceRelocateBucket">advanceRelocateBucket(bucket, operationId, body=None)</a></code></p>
79 <p class="firstline">Starts asynchronous advancement of the relocate bucket operation in the case of required write downtime, to allow it to lock the bucket at the source location, and proceed with the bucket location swap. The server makes a best effort to advance the relocate bucket operation, but success is not guaranteed.</p>
80 <p class="toc_element">
81 <code><a href="#cancel">cancel(bucket, operationId)</a></code></p>
82 <p class="firstline">Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed.</p>
83 <p class="toc_element">
84 <code><a href="#close">close()</a></code></p>
85 <p class="firstline">Close httplib2 connections.</p>
86 <p class="toc_element">
87 <code><a href="#get">get(bucket, operationId)</a></code></p>
88 <p class="firstline">Gets the latest state of a long-running operation.</p>
89 <p class="toc_element">
90 <code><a href="#list">list(bucket, filter=None, pageSize=None, pageToken=None)</a></code></p>
91 <p class="firstline">Lists operations that match the specified filter in the request.</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 <h3>Method Details</h3>
96 <div class="method">
97 <code class="details" id="advanceRelocateBucket">advanceRelocateBucket(bucket, operationId, body=None)</code>
98 <pre>Starts asynchronous advancement of the relocate bucket operation in the case of required write downtime, to allow it to lock the bucket at the source location, and proceed with the bucket location swap. The server makes a best effort to advance the relocate bucket operation, but success is not guaranteed.
99
100 Args:
101 bucket: string, Name of the bucket to advance the relocate for. (required)
102 operationId: string, ID of the operation resource. (required)
103 body: object, The request body.
104 The object takes the form of:
105
106 { # An AdvanceRelocateBucketOperation request.
107 &quot;expireTime&quot;: &quot;A String&quot;, # Specifies the time when the relocation will revert to the sync stage if the relocation hasn&#x27;t succeeded.
108 &quot;ttl&quot;: &quot;A String&quot;, # Specifies the duration after which the relocation will revert to the sync stage if the relocation hasn&#x27;t succeeded. Optional, if not supplied, a default value of 12h will be used.
109 }
110
111 </pre>
112 </div>
113
114 <div class="method">
115 <code class="details" id="cancel">cancel(bucket, operationId)</code>
116 <pre>Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed.
117
118 Args:
119 bucket: string, The parent bucket of the operation resource. (required)
120 operationId: string, The ID of the operation resource. (required)
121 </pre>
122 </div>
123
124 <div class="method">
125 <code class="details" id="close">close()</code>
126 <pre>Close httplib2 connections.</pre>
127 </div>
128
129 <div class="method">
130 <code class="details" id="get">get(bucket, operationId)</code>
131 <pre>Gets the latest state of a long-running operation.
132
133 Args:
134 bucket: string, The parent bucket of the operation resource. (required)
135 operationId: string, The ID of the operation resource. (required)
136
137 Returns:
138 An object of the form:
139
140 { # This resource represents a long-running operation that is the result of a network API call.
141 &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.
142 &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.
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.
150 },
151 &quot;kind&quot;: &quot;storage#operation&quot;, # The kind of item this is. For operations, this is always storage#operation.
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 &quot;name&quot; should be a resource name ending with &quot;operations/{operationId}&quot;.
156 &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;.
157 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
158 },
159 &quot;selfLink&quot;: &quot;A String&quot;, # The link to this long running operation.
160 }</pre>
161 </div>
162
163 <div class="method">
164 <code class="details" id="list">list(bucket, filter=None, pageSize=None, pageToken=None)</code>
165 <pre>Lists operations that match the specified filter in the request.
166
167 Args:
168 bucket: string, Name of the bucket in which to look for operations. (required)
169 filter: string, A filter to narrow down results to a preferred subset. The filtering language is documented in more detail in [AIP-160](https://google.aip.dev/160).
170 pageSize: integer, Maximum number of items to return in a single page of responses. Fewer total results may be returned than requested. The service uses this parameter or 100 items, whichever is smaller.
171 pageToken: string, A previously-returned page token representing part of the larger set of results to view.
172
173 Returns:
174 An object of the form:
175
176 { # The response message for storage.buckets.operations.list.
177 &quot;kind&quot;: &quot;storage#operations&quot;, # The kind of item this is. For lists of operations, this is always storage#operations.
178 &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.
179 &quot;operations&quot;: [ # A list of operations that matches the specified filter in the request.
180 { # This resource represents a long-running operation that is the result of a network API call.
181 &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.
182 &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.
183 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
184 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
185 {
186 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
187 },
188 ],
189 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English.
190 },
191 &quot;kind&quot;: &quot;storage#operation&quot;, # The kind of item this is. For operations, this is always storage#operation.
192 &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.
193 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
194 },
195 &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;.
196 &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;.
197 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
198 },
199 &quot;selfLink&quot;: &quot;A String&quot;, # The link to this long running operation.
200 },
201 ],
202 }</pre>
203 </div>
204
205 <div class="method">
206 <code class="details" id="list_next">list_next()</code>
207 <pre>Retrieves the next page of results.
208
209 Args:
210 previous_request: The request for the previous page. (required)
211 previous_response: The response from the request for the previous page. (required)
212
213 Returns:
214 A request object that you can call &#x27;execute()&#x27; on to request the next
215 page. Returns None if there are no more items in the collection.
216 </pre>
217 </div>
218
219 </body></html>