Skip to content

Commit 63c00f6

Browse files
feat(bigqueryreservation): update the api
#### bigqueryreservation:v1beta1 The following keys were added: - resources.projects.resources.locations.resources.reservations.resources.assignments.methods.patch (Total Keys: 15)
1 parent 96d58c1 commit 63c00f6

File tree

3 files changed

+73
-2
lines changed

3 files changed

+73
-2
lines changed

docs/dyn/bigqueryreservation_v1beta1.projects.locations.reservations.assignments.html

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,9 @@ <h2>Instance Methods</h2>
9292
<p class="toc_element">
9393
<code><a href="#move">move(name, body=None, x__xgafv=None)</a></code></p>
9494
<p class="firstline">Moves an assignment under a new reservation. This differs from removing an existing assignment and recreating a new one by providing a transactional change that ensures an assignee always has an associated reservation.</p>
95+
<p class="toc_element">
96+
<code><a href="#patch">patch(name, body=None, updateMask=None, x__xgafv=None)</a></code></p>
97+
<p class="firstline">Updates an existing assignment. Only the `priority` field can be updated.</p>
9598
<h3>Method Details</h3>
9699
<div class="method">
97100
<code class="details" id="close">close()</code>
@@ -221,4 +224,37 @@ <h3>Method Details</h3>
221224
}</pre>
222225
</div>
223226

227+
<div class="method">
228+
<code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code>
229+
<pre>Updates an existing assignment. Only the `priority` field can be updated.
230+
231+
Args:
232+
name: string, Output only. Name of the resource. E.g.: `projects/myproject/locations/US/reservations/team1-prod/assignments/123`. (required)
233+
body: object, The request body.
234+
The object takes the form of:
235+
236+
{ # A Assignment allows a project to submit jobs of a certain type using slots from the specified reservation.
237+
&quot;assignee&quot;: &quot;A String&quot;, # The resource which will use the reservation. E.g. `projects/myproject`, `folders/123`, or `organizations/456`.
238+
&quot;jobType&quot;: &quot;A String&quot;, # Which type of jobs will use the reservation.
239+
&quot;name&quot;: &quot;A String&quot;, # Output only. Name of the resource. E.g.: `projects/myproject/locations/US/reservations/team1-prod/assignments/123`.
240+
&quot;state&quot;: &quot;A String&quot;, # Output only. State of the assignment.
241+
}
242+
243+
updateMask: string, Standard field mask for the set of fields to be updated.
244+
x__xgafv: string, V1 error format.
245+
Allowed values
246+
1 - v1 error format
247+
2 - v2 error format
248+
249+
Returns:
250+
An object of the form:
251+
252+
{ # A Assignment allows a project to submit jobs of a certain type using slots from the specified reservation.
253+
&quot;assignee&quot;: &quot;A String&quot;, # The resource which will use the reservation. E.g. `projects/myproject`, `folders/123`, or `organizations/456`.
254+
&quot;jobType&quot;: &quot;A String&quot;, # Which type of jobs will use the reservation.
255+
&quot;name&quot;: &quot;A String&quot;, # Output only. Name of the resource. E.g.: `projects/myproject/locations/US/reservations/team1-prod/assignments/123`.
256+
&quot;state&quot;: &quot;A String&quot;, # Output only. State of the assignment.
257+
}</pre>
258+
</div>
259+
224260
</body></html>

googleapiclient/discovery_cache/documents/bigqueryreservation.v1.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -783,7 +783,7 @@
783783
}
784784
}
785785
},
786-
"revision": "20210528",
786+
"revision": "20210607",
787787
"rootUrl": "https://bigqueryreservation.googleapis.com/",
788788
"schemas": {
789789
"Assignment": {

googleapiclient/discovery_cache/documents/bigqueryreservation.v1beta1.json

Lines changed: 36 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -736,6 +736,41 @@
736736
"https://www.googleapis.com/auth/bigquery",
737737
"https://www.googleapis.com/auth/cloud-platform"
738738
]
739+
},
740+
"patch": {
741+
"description": "Updates an existing assignment. Only the `priority` field can be updated.",
742+
"flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/reservations/{reservationsId}/assignments/{assignmentsId}",
743+
"httpMethod": "PATCH",
744+
"id": "bigqueryreservation.projects.locations.reservations.assignments.patch",
745+
"parameterOrder": [
746+
"name"
747+
],
748+
"parameters": {
749+
"name": {
750+
"description": "Output only. Name of the resource. E.g.: `projects/myproject/locations/US/reservations/team1-prod/assignments/123`.",
751+
"location": "path",
752+
"pattern": "^projects/[^/]+/locations/[^/]+/reservations/[^/]+/assignments/[^/]+$",
753+
"required": true,
754+
"type": "string"
755+
},
756+
"updateMask": {
757+
"description": "Standard field mask for the set of fields to be updated.",
758+
"format": "google-fieldmask",
759+
"location": "query",
760+
"type": "string"
761+
}
762+
},
763+
"path": "v1beta1/{+name}",
764+
"request": {
765+
"$ref": "Assignment"
766+
},
767+
"response": {
768+
"$ref": "Assignment"
769+
},
770+
"scopes": [
771+
"https://www.googleapis.com/auth/bigquery",
772+
"https://www.googleapis.com/auth/cloud-platform"
773+
]
739774
}
740775
}
741776
}
@@ -746,7 +781,7 @@
746781
}
747782
}
748783
},
749-
"revision": "20210528",
784+
"revision": "20210607",
750785
"rootUrl": "https://bigqueryreservation.googleapis.com/",
751786
"schemas": {
752787
"Assignment": {

0 commit comments

Comments
 (0)