blob: a2229e293b94e63171a881dd97840bfbc38178dd [file] [log] [blame]
Bu Sun Kim65020912020-05-20 12:08:20 -07001<html><body>
2<style>
3
4body, 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
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, 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="bigqueryreservation_v1beta1.html">BigQuery Reservation API</a> . <a href="bigqueryreservation_v1beta1.projects.html">projects</a> . <a href="bigqueryreservation_v1beta1.projects.locations.html">locations</a> . <a href="bigqueryreservation_v1beta1.projects.locations.reservations.html">reservations</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78 <code><a href="bigqueryreservation_v1beta1.projects.locations.reservations.assignments.html">assignments()</a></code>
79</p>
80<p class="firstline">Returns the assignments Resource.</p>
81
82<p class="toc_element">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070083 <code><a href="#close">close()</a></code></p>
84<p class="firstline">Close httplib2 connections.</p>
85<p class="toc_element">
Bu Sun Kim65020912020-05-20 12:08:20 -070086 <code><a href="#create">create(parent, body=None, reservationId=None, x__xgafv=None)</a></code></p>
87<p class="firstline">Creates a new reservation resource.</p>
88<p class="toc_element">
89 <code><a href="#delete">delete(name, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070090<p class="firstline">Deletes a reservation. Returns `google.rpc.Code.FAILED_PRECONDITION` when reservation has assignments.</p>
Bu Sun Kim65020912020-05-20 12:08:20 -070091<p class="toc_element">
92 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
93<p class="firstline">Returns information about the reservation.</p>
94<p class="toc_element">
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -080095 <code><a href="#list">list(parent, filter=None, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
Bu Sun Kim65020912020-05-20 12:08:20 -070096<p class="firstline">Lists all the reservations for the project in the specified location.</p>
97<p class="toc_element">
98 <code><a href="#list_next">list_next(previous_request, previous_response)</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">Updates an existing reservation resource.</p>
103<h3>Method Details</h3>
104<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700105 <code class="details" id="close">close()</code>
106 <pre>Close httplib2 connections.</pre>
107</div>
108
109<div class="method">
Bu Sun Kim65020912020-05-20 12:08:20 -0700110 <code class="details" id="create">create(parent, body=None, reservationId=None, x__xgafv=None)</code>
111 <pre>Creates a new reservation resource.
112
113Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700114 parent: string, Required. Project, location. E.g., `projects/myproject/locations/US` (required)
Bu Sun Kim65020912020-05-20 12:08:20 -0700115 body: object, The request body.
116 The object takes the form of:
117
118{ # A reservation is a mechanism used to guarantee slots to users.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800119 &quot;creationTime&quot;: &quot;A String&quot;, # Output only. Creation time of the reservation.
120 &quot;ignoreIdleSlots&quot;: True or False, # If false, any query using this reservation will use idle slots from other reservations within the same admin project. If true, a query using this reservation will execute with the slot capacity specified above at most.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800121 &quot;maxConcurrency&quot;: &quot;A String&quot;, # Maximum number of queries that are allowed to run concurrently in this reservation. Default value is 0 which means that maximum concurrency will be automatically set based on the reservation size.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800122 &quot;name&quot;: &quot;A String&quot;, # The resource name of the reservation, e.g., `projects/*/locations/*/reservations/team1-prod`.
123 &quot;slotCapacity&quot;: &quot;A String&quot;, # Minimum slots available to this reservation. A slot is a unit of computational power in BigQuery, and serves as the unit of parallelism. Queries using this reservation might use more slots during runtime if ignore_idle_slots is set to false. If the new reservation&#x27;s slot capacity exceed the parent&#x27;s slot capacity or if total slot capacity of the new reservation and its siblings exceeds the parent&#x27;s slot capacity, the request will fail with `google.rpc.Code.RESOURCE_EXHAUSTED`.
124 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Last update time of the reservation.
125}
Bu Sun Kim65020912020-05-20 12:08:20 -0700126
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700127 reservationId: string, The reservation ID. This field must only contain lower case alphanumeric characters or dash. Max length is 64 characters.
Bu Sun Kim65020912020-05-20 12:08:20 -0700128 x__xgafv: string, V1 error format.
129 Allowed values
130 1 - v1 error format
131 2 - v2 error format
132
133Returns:
134 An object of the form:
135
136 { # A reservation is a mechanism used to guarantee slots to users.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800137 &quot;creationTime&quot;: &quot;A String&quot;, # Output only. Creation time of the reservation.
138 &quot;ignoreIdleSlots&quot;: True or False, # If false, any query using this reservation will use idle slots from other reservations within the same admin project. If true, a query using this reservation will execute with the slot capacity specified above at most.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800139 &quot;maxConcurrency&quot;: &quot;A String&quot;, # Maximum number of queries that are allowed to run concurrently in this reservation. Default value is 0 which means that maximum concurrency will be automatically set based on the reservation size.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800140 &quot;name&quot;: &quot;A String&quot;, # The resource name of the reservation, e.g., `projects/*/locations/*/reservations/team1-prod`.
141 &quot;slotCapacity&quot;: &quot;A String&quot;, # Minimum slots available to this reservation. A slot is a unit of computational power in BigQuery, and serves as the unit of parallelism. Queries using this reservation might use more slots during runtime if ignore_idle_slots is set to false. If the new reservation&#x27;s slot capacity exceed the parent&#x27;s slot capacity or if total slot capacity of the new reservation and its siblings exceeds the parent&#x27;s slot capacity, the request will fail with `google.rpc.Code.RESOURCE_EXHAUSTED`.
142 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Last update time of the reservation.
143}</pre>
Bu Sun Kim65020912020-05-20 12:08:20 -0700144</div>
145
146<div class="method">
147 <code class="details" id="delete">delete(name, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700148 <pre>Deletes a reservation. Returns `google.rpc.Code.FAILED_PRECONDITION` when reservation has assignments.
Bu Sun Kim65020912020-05-20 12:08:20 -0700149
150Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700151 name: string, Required. Resource name of the reservation to retrieve. E.g., `projects/myproject/locations/US/reservations/team1-prod` (required)
Bu Sun Kim65020912020-05-20 12:08:20 -0700152 x__xgafv: string, V1 error format.
153 Allowed values
154 1 - v1 error format
155 2 - v2 error format
156
157Returns:
158 An object of the form:
159
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700160 { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800161}</pre>
Bu Sun Kim65020912020-05-20 12:08:20 -0700162</div>
163
164<div class="method">
165 <code class="details" id="get">get(name, x__xgafv=None)</code>
166 <pre>Returns information about the reservation.
167
168Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700169 name: string, Required. Resource name of the reservation to retrieve. E.g., `projects/myproject/locations/US/reservations/team1-prod` (required)
Bu Sun Kim65020912020-05-20 12:08:20 -0700170 x__xgafv: string, V1 error format.
171 Allowed values
172 1 - v1 error format
173 2 - v2 error format
174
175Returns:
176 An object of the form:
177
178 { # A reservation is a mechanism used to guarantee slots to users.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800179 &quot;creationTime&quot;: &quot;A String&quot;, # Output only. Creation time of the reservation.
180 &quot;ignoreIdleSlots&quot;: True or False, # If false, any query using this reservation will use idle slots from other reservations within the same admin project. If true, a query using this reservation will execute with the slot capacity specified above at most.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800181 &quot;maxConcurrency&quot;: &quot;A String&quot;, # Maximum number of queries that are allowed to run concurrently in this reservation. Default value is 0 which means that maximum concurrency will be automatically set based on the reservation size.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800182 &quot;name&quot;: &quot;A String&quot;, # The resource name of the reservation, e.g., `projects/*/locations/*/reservations/team1-prod`.
183 &quot;slotCapacity&quot;: &quot;A String&quot;, # Minimum slots available to this reservation. A slot is a unit of computational power in BigQuery, and serves as the unit of parallelism. Queries using this reservation might use more slots during runtime if ignore_idle_slots is set to false. If the new reservation&#x27;s slot capacity exceed the parent&#x27;s slot capacity or if total slot capacity of the new reservation and its siblings exceeds the parent&#x27;s slot capacity, the request will fail with `google.rpc.Code.RESOURCE_EXHAUSTED`.
184 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Last update time of the reservation.
185}</pre>
Bu Sun Kim65020912020-05-20 12:08:20 -0700186</div>
187
188<div class="method">
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800189 <code class="details" id="list">list(parent, filter=None, pageSize=None, pageToken=None, x__xgafv=None)</code>
Bu Sun Kim65020912020-05-20 12:08:20 -0700190 <pre>Lists all the reservations for the project in the specified location.
191
192Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700193 parent: string, Required. The parent resource name containing project and location, e.g.: `projects/myproject/locations/US` (required)
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800194 filter: string, Can be used to filter out reservations based on names, capacity, etc, e.g.: filter=&quot;reservation.slot_capacity &gt; 200&quot; filter=&quot;reservation.name = \&quot;*dev/*\&quot;&quot; Advanced filtering syntax can be [here](https://cloud.google.com/logging/docs/view/advanced-filters).
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700195 pageSize: integer, The maximum number of items to return.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800196 pageToken: string, The next_page_token value returned from a previous List request, if any.
Bu Sun Kim65020912020-05-20 12:08:20 -0700197 x__xgafv: string, V1 error format.
198 Allowed values
199 1 - v1 error format
200 2 - v2 error format
201
202Returns:
203 An object of the form:
204
205 { # The response for ReservationService.ListReservations.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800206 &quot;nextPageToken&quot;: &quot;A String&quot;, # Token to retrieve the next page of results, or empty if there are no more results in the list.
207 &quot;reservations&quot;: [ # List of reservations visible to the user.
208 { # A reservation is a mechanism used to guarantee slots to users.
209 &quot;creationTime&quot;: &quot;A String&quot;, # Output only. Creation time of the reservation.
210 &quot;ignoreIdleSlots&quot;: True or False, # If false, any query using this reservation will use idle slots from other reservations within the same admin project. If true, a query using this reservation will execute with the slot capacity specified above at most.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800211 &quot;maxConcurrency&quot;: &quot;A String&quot;, # Maximum number of queries that are allowed to run concurrently in this reservation. Default value is 0 which means that maximum concurrency will be automatically set based on the reservation size.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800212 &quot;name&quot;: &quot;A String&quot;, # The resource name of the reservation, e.g., `projects/*/locations/*/reservations/team1-prod`.
213 &quot;slotCapacity&quot;: &quot;A String&quot;, # Minimum slots available to this reservation. A slot is a unit of computational power in BigQuery, and serves as the unit of parallelism. Queries using this reservation might use more slots during runtime if ignore_idle_slots is set to false. If the new reservation&#x27;s slot capacity exceed the parent&#x27;s slot capacity or if total slot capacity of the new reservation and its siblings exceeds the parent&#x27;s slot capacity, the request will fail with `google.rpc.Code.RESOURCE_EXHAUSTED`.
214 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Last update time of the reservation.
215 },
216 ],
217}</pre>
Bu Sun Kim65020912020-05-20 12:08:20 -0700218</div>
219
220<div class="method">
221 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
222 <pre>Retrieves the next page of results.
223
224Args:
225 previous_request: The request for the previous page. (required)
226 previous_response: The response from the request for the previous page. (required)
227
228Returns:
229 A request object that you can call &#x27;execute()&#x27; on to request the next
230 page. Returns None if there are no more items in the collection.
231 </pre>
232</div>
233
234<div class="method">
235 <code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code>
236 <pre>Updates an existing reservation resource.
237
238Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700239 name: string, The resource name of the reservation, e.g., `projects/*/locations/*/reservations/team1-prod`. (required)
Bu Sun Kim65020912020-05-20 12:08:20 -0700240 body: object, The request body.
241 The object takes the form of:
242
243{ # A reservation is a mechanism used to guarantee slots to users.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800244 &quot;creationTime&quot;: &quot;A String&quot;, # Output only. Creation time of the reservation.
245 &quot;ignoreIdleSlots&quot;: True or False, # If false, any query using this reservation will use idle slots from other reservations within the same admin project. If true, a query using this reservation will execute with the slot capacity specified above at most.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800246 &quot;maxConcurrency&quot;: &quot;A String&quot;, # Maximum number of queries that are allowed to run concurrently in this reservation. Default value is 0 which means that maximum concurrency will be automatically set based on the reservation size.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800247 &quot;name&quot;: &quot;A String&quot;, # The resource name of the reservation, e.g., `projects/*/locations/*/reservations/team1-prod`.
248 &quot;slotCapacity&quot;: &quot;A String&quot;, # Minimum slots available to this reservation. A slot is a unit of computational power in BigQuery, and serves as the unit of parallelism. Queries using this reservation might use more slots during runtime if ignore_idle_slots is set to false. If the new reservation&#x27;s slot capacity exceed the parent&#x27;s slot capacity or if total slot capacity of the new reservation and its siblings exceeds the parent&#x27;s slot capacity, the request will fail with `google.rpc.Code.RESOURCE_EXHAUSTED`.
249 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Last update time of the reservation.
250}
Bu Sun Kim65020912020-05-20 12:08:20 -0700251
252 updateMask: string, Standard field mask for the set of fields to be updated.
253 x__xgafv: string, V1 error format.
254 Allowed values
255 1 - v1 error format
256 2 - v2 error format
257
258Returns:
259 An object of the form:
260
261 { # A reservation is a mechanism used to guarantee slots to users.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800262 &quot;creationTime&quot;: &quot;A String&quot;, # Output only. Creation time of the reservation.
263 &quot;ignoreIdleSlots&quot;: True or False, # If false, any query using this reservation will use idle slots from other reservations within the same admin project. If true, a query using this reservation will execute with the slot capacity specified above at most.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800264 &quot;maxConcurrency&quot;: &quot;A String&quot;, # Maximum number of queries that are allowed to run concurrently in this reservation. Default value is 0 which means that maximum concurrency will be automatically set based on the reservation size.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800265 &quot;name&quot;: &quot;A String&quot;, # The resource name of the reservation, e.g., `projects/*/locations/*/reservations/team1-prod`.
266 &quot;slotCapacity&quot;: &quot;A String&quot;, # Minimum slots available to this reservation. A slot is a unit of computational power in BigQuery, and serves as the unit of parallelism. Queries using this reservation might use more slots during runtime if ignore_idle_slots is set to false. If the new reservation&#x27;s slot capacity exceed the parent&#x27;s slot capacity or if total slot capacity of the new reservation and its siblings exceeds the parent&#x27;s slot capacity, the request will fail with `google.rpc.Code.RESOURCE_EXHAUSTED`.
267 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Last update time of the reservation.
268}</pre>
Bu Sun Kim65020912020-05-20 12:08:20 -0700269</div>
270
271</body></html>