blob: e308b56fb27c6d6b9c8094d98bd63853d70ab8cb [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_v1alpha2.html">BigQuery Reservation API</a> . <a href="bigqueryreservation_v1alpha2.projects.html">projects</a> . <a href="bigqueryreservation_v1alpha2.projects.locations.html">locations</a> . <a href="bigqueryreservation_v1alpha2.projects.locations.reservationGrants.html">reservationGrants</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78 <code><a href="#create">create(parent, body=None, x__xgafv=None)</a></code></p>
79<p class="firstline">Returns `google.rpc.Code.PERMISSION_DENIED` if user does not have</p>
80<p class="toc_element">
81 <code><a href="#delete">delete(name, x__xgafv=None)</a></code></p>
82<p class="firstline">Deletes a reservation grant. No expansion will happen.</p>
83<p class="toc_element">
84 <code><a href="#list">list(parent, pageToken=None, pageSize=None, x__xgafv=None)</a></code></p>
85<p class="firstline">Lists reservation grants.</p>
86<p class="toc_element">
87 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
88<p class="firstline">Retrieves the next page of results.</p>
89<h3>Method Details</h3>
90<div class="method">
91 <code class="details" id="create">create(parent, body=None, x__xgafv=None)</code>
92 <pre>Returns `google.rpc.Code.PERMISSION_DENIED` if user does not have
93&#x27;bigquery.admin&#x27; permissions on the project using the reservation
94and the project that owns this reservation.
95Returns `google.rpc.Code.INVALID_ARGUMENT` when location of the grant
96does not match location of the reservation.
97
98Args:
99 parent: string, The parent resource name of the reservation grant
100E.g.: projects/myproject/location/eu. (required)
101 body: object, The request body.
102 The object takes the form of:
103
104{ # A ReservationGrant allows a project to submit jobs
105 # of a certain type using slots from the specified reservation.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700106 &quot;grantee&quot;: &quot;A String&quot;, # The resource which will use the reservation. E.g.
107 # projects/myproject, folders/123, organizations/456.
Bu Sun Kim65020912020-05-20 12:08:20 -0700108 &quot;state&quot;: &quot;A String&quot;, # Output only. State of the ReservationGrant.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700109 &quot;jobType&quot;: &quot;A String&quot;, # Which type of jobs will use the reservation.
Bu Sun Kim65020912020-05-20 12:08:20 -0700110 &quot;reservation&quot;: &quot;A String&quot;, # Resource name of the reservation.
111 # E.g., projects/myproject/locations/eu/reservations/my_reservation.
112 # This reservation must be in the same location as the grant.
113 # This reservation should belong to the same parent project.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700114 &quot;name&quot;: &quot;A String&quot;, # Output only. Name of the resource. E.g.:
115 # projects/myproject/locations/eu/reservationGrants/123.
Bu Sun Kim65020912020-05-20 12:08:20 -0700116}
117
118 x__xgafv: string, V1 error format.
119 Allowed values
120 1 - v1 error format
121 2 - v2 error format
122
123Returns:
124 An object of the form:
125
126 { # A ReservationGrant allows a project to submit jobs
127 # of a certain type using slots from the specified reservation.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700128 &quot;grantee&quot;: &quot;A String&quot;, # The resource which will use the reservation. E.g.
129 # projects/myproject, folders/123, organizations/456.
Bu Sun Kim65020912020-05-20 12:08:20 -0700130 &quot;state&quot;: &quot;A String&quot;, # Output only. State of the ReservationGrant.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700131 &quot;jobType&quot;: &quot;A String&quot;, # Which type of jobs will use the reservation.
Bu Sun Kim65020912020-05-20 12:08:20 -0700132 &quot;reservation&quot;: &quot;A String&quot;, # Resource name of the reservation.
133 # E.g., projects/myproject/locations/eu/reservations/my_reservation.
134 # This reservation must be in the same location as the grant.
135 # This reservation should belong to the same parent project.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700136 &quot;name&quot;: &quot;A String&quot;, # Output only. Name of the resource. E.g.:
137 # projects/myproject/locations/eu/reservationGrants/123.
Bu Sun Kim65020912020-05-20 12:08:20 -0700138 }</pre>
139</div>
140
141<div class="method">
142 <code class="details" id="delete">delete(name, x__xgafv=None)</code>
143 <pre>Deletes a reservation grant. No expansion will happen.
144E.g:
145organizationA contains project1 and project2. Reservation res1 exists.
146CreateReservationGrant was invoked previously and following grants were
147created explicitly:
148 &lt;organizationA, res1&gt;
149 &lt;project1, res1&gt;
150Then deletion of &lt;organizationA, res1&gt; won&#x27;t affect &lt;project1, res1&gt;. After
151deletion of &lt;organizationA, res1&gt;, queries from project1 will still use
152res1, while queries from project2 will use on-demand mode.
153
154Args:
155 name: string, Name of the resource, e.g.:
156 projects/myproject/locations/eu/reservationGrants/123 (required)
157 x__xgafv: string, V1 error format.
158 Allowed values
159 1 - v1 error format
160 2 - v2 error format
161
162Returns:
163 An object of the form:
164
165 { # A generic empty message that you can re-use to avoid defining duplicated
166 # empty messages in your APIs. A typical example is to use it as the request
167 # or the response type of an API method. For instance:
168 #
169 # service Foo {
170 # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
171 # }
172 #
173 # The JSON representation for `Empty` is empty JSON object `{}`.
174 }</pre>
175</div>
176
177<div class="method">
178 <code class="details" id="list">list(parent, pageToken=None, pageSize=None, x__xgafv=None)</code>
179 <pre>Lists reservation grants.
180Only explicitly created grants will be returned. E.g:
181organizationA contains project1 and project2. Reservation res1 exists.
182CreateReservationGrant was invoked previously and following grants were
183created explicitly:
184 &lt;organizationA, res1&gt;
185 &lt;project1, res1&gt;
186Then this API will just return the above two grants for reservation res1,
187and no expansion/merge will happen.
188
189Args:
190 parent: string, The parent resource name e.g.: projects/myproject/location/eu. (required)
191 pageToken: string, The next_page_token value returned from a previous List request, if any.
192 pageSize: integer, The maximum number of items to return.
193 x__xgafv: string, V1 error format.
194 Allowed values
195 1 - v1 error format
196 2 - v2 error format
197
198Returns:
199 An object of the form:
200
201 { # The response for ReservationService.ListReservationGrants.
202 &quot;reservationGrants&quot;: [ # List of reservation grants visible to the user.
203 { # A ReservationGrant allows a project to submit jobs
204 # of a certain type using slots from the specified reservation.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700205 &quot;grantee&quot;: &quot;A String&quot;, # The resource which will use the reservation. E.g.
206 # projects/myproject, folders/123, organizations/456.
Bu Sun Kim65020912020-05-20 12:08:20 -0700207 &quot;state&quot;: &quot;A String&quot;, # Output only. State of the ReservationGrant.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700208 &quot;jobType&quot;: &quot;A String&quot;, # Which type of jobs will use the reservation.
Bu Sun Kim65020912020-05-20 12:08:20 -0700209 &quot;reservation&quot;: &quot;A String&quot;, # Resource name of the reservation.
210 # E.g., projects/myproject/locations/eu/reservations/my_reservation.
211 # This reservation must be in the same location as the grant.
212 # This reservation should belong to the same parent project.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700213 &quot;name&quot;: &quot;A String&quot;, # Output only. Name of the resource. E.g.:
214 # projects/myproject/locations/eu/reservationGrants/123.
Bu Sun Kim65020912020-05-20 12:08:20 -0700215 },
216 ],
217 &quot;nextPageToken&quot;: &quot;A String&quot;, # Token to retrieve the next page of results, or empty if there are no
218 # more results in the list.
219 }</pre>
220</div>
221
222<div class="method">
223 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
224 <pre>Retrieves the next page of results.
225
226Args:
227 previous_request: The request for the previous page. (required)
228 previous_response: The response from the request for the previous page. (required)
229
230Returns:
231 A request object that you can call &#x27;execute()&#x27; on to request the next
232 page. Returns None if there are no more items in the collection.
233 </pre>
234</div>
235
236</body></html>