Skip to content

Commit

Permalink
feat(bigqueryreservation): update the api
Browse files Browse the repository at this point in the history
#### bigqueryreservation:v1beta1

The following keys were added:
- resources.projects.resources.locations.resources.reservations.resources.assignments.methods.patch (Total Keys: 15)
  • Loading branch information
yoshi-automation committed Jun 16, 2021
1 parent 96d58c1 commit 63c00f6
Show file tree
Hide file tree
Showing 3 changed files with 73 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,9 @@ <h2>Instance Methods</h2>
<p class="toc_element">
<code><a href="#move">move(name, body=None, x__xgafv=None)</a></code></p>
<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>
<p class="toc_element">
<code><a href="#patch">patch(name, body=None, updateMask=None, x__xgafv=None)</a></code></p>
<p class="firstline">Updates an existing assignment. Only the `priority` field can be updated.</p>
<h3>Method Details</h3>
<div class="method">
<code class="details" id="close">close()</code>
Expand Down Expand Up @@ -221,4 +224,37 @@ <h3>Method Details</h3>
}</pre>
</div>

<div class="method">
<code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code>
<pre>Updates an existing assignment. Only the `priority` field can be updated.

Args:
name: string, Output only. Name of the resource. E.g.: `projects/myproject/locations/US/reservations/team1-prod/assignments/123`. (required)
body: object, The request body.
The object takes the form of:

{ # A Assignment allows a project to submit jobs of a certain type using slots from the specified reservation.
&quot;assignee&quot;: &quot;A String&quot;, # The resource which will use the reservation. E.g. `projects/myproject`, `folders/123`, or `organizations/456`.
&quot;jobType&quot;: &quot;A String&quot;, # Which type of jobs will use the reservation.
&quot;name&quot;: &quot;A String&quot;, # Output only. Name of the resource. E.g.: `projects/myproject/locations/US/reservations/team1-prod/assignments/123`.
&quot;state&quot;: &quot;A String&quot;, # Output only. State of the assignment.
}

updateMask: string, Standard field mask for the set of fields to be updated.
x__xgafv: string, V1 error format.
Allowed values
1 - v1 error format
2 - v2 error format

Returns:
An object of the form:

{ # A Assignment allows a project to submit jobs of a certain type using slots from the specified reservation.
&quot;assignee&quot;: &quot;A String&quot;, # The resource which will use the reservation. E.g. `projects/myproject`, `folders/123`, or `organizations/456`.
&quot;jobType&quot;: &quot;A String&quot;, # Which type of jobs will use the reservation.
&quot;name&quot;: &quot;A String&quot;, # Output only. Name of the resource. E.g.: `projects/myproject/locations/US/reservations/team1-prod/assignments/123`.
&quot;state&quot;: &quot;A String&quot;, # Output only. State of the assignment.
}</pre>
</div>

</body></html>
Original file line number Diff line number Diff line change
Expand Up @@ -783,7 +783,7 @@
}
}
},
"revision": "20210528",
"revision": "20210607",
"rootUrl": "https://bigqueryreservation.googleapis.com/",
"schemas": {
"Assignment": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -736,6 +736,41 @@
"https://www.googleapis.com/auth/bigquery",
"https://www.googleapis.com/auth/cloud-platform"
]
},
"patch": {
"description": "Updates an existing assignment. Only the `priority` field can be updated.",
"flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/reservations/{reservationsId}/assignments/{assignmentsId}",
"httpMethod": "PATCH",
"id": "bigqueryreservation.projects.locations.reservations.assignments.patch",
"parameterOrder": [
"name"
],
"parameters": {
"name": {
"description": "Output only. Name of the resource. E.g.: `projects/myproject/locations/US/reservations/team1-prod/assignments/123`.",
"location": "path",
"pattern": "^projects/[^/]+/locations/[^/]+/reservations/[^/]+/assignments/[^/]+$",
"required": true,
"type": "string"
},
"updateMask": {
"description": "Standard field mask for the set of fields to be updated.",
"format": "google-fieldmask",
"location": "query",
"type": "string"
}
},
"path": "v1beta1/{+name}",
"request": {
"$ref": "Assignment"
},
"response": {
"$ref": "Assignment"
},
"scopes": [
"https://www.googleapis.com/auth/bigquery",
"https://www.googleapis.com/auth/cloud-platform"
]
}
}
}
Expand All @@ -746,7 +781,7 @@
}
}
},
"revision": "20210528",
"revision": "20210607",
"rootUrl": "https://bigqueryreservation.googleapis.com/",
"schemas": {
"Assignment": {
Expand Down

0 comments on commit 63c00f6

Please sign in to comment.