Skip to content

Commit

Permalink
chore: use gapic-generator-python 0.65.1 (#256)
Browse files Browse the repository at this point in the history
* chore: use gapic-generator-python 0.65.1

PiperOrigin-RevId: 441524537

Source-Link: googleapis/googleapis@2a27391

Source-Link: googleapis/googleapis-gen@ab6756a
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYWI2NzU2YTQ4Yzg5YjViY2I5ZmI3MzQ0M2NiOGU1NWQ1NzRmNDY0MyJ9

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
  • Loading branch information
gcf-owl-bot[bot] and gcf-owl-bot[bot] authored Apr 14, 2022
1 parent 691a63a commit cf15d65
Show file tree
Hide file tree
Showing 4 changed files with 1,765 additions and 155 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,6 @@ async def list_reservations(
r"""Lists all the reservations for the project in the
specified location.
.. code-block:: python
from google.cloud import bigquery_reservation_v1
Expand Down Expand Up @@ -442,7 +441,8 @@ def sample_list_reservations():
maximum=60.0,
multiplier=1.3,
predicate=retries.if_exception_type(
core_exceptions.GoogleAPICallError,
core_exceptions.DeadlineExceeded,
core_exceptions.ServiceUnavailable,
),
deadline=300.0,
),
Expand Down Expand Up @@ -556,7 +556,8 @@ def sample_get_reservation():
maximum=60.0,
multiplier=1.3,
predicate=retries.if_exception_type(
core_exceptions.GoogleAPICallError,
core_exceptions.DeadlineExceeded,
core_exceptions.ServiceUnavailable,
),
deadline=300.0,
),
Expand Down Expand Up @@ -594,7 +595,6 @@ async def delete_reservation(
``google.rpc.Code.FAILED_PRECONDITION`` when reservation has
assignments.
.. code-block:: python
from google.cloud import bigquery_reservation_v1
Expand Down Expand Up @@ -655,7 +655,8 @@ def sample_delete_reservation():
maximum=60.0,
multiplier=1.3,
predicate=retries.if_exception_type(
core_exceptions.GoogleAPICallError,
core_exceptions.DeadlineExceeded,
core_exceptions.ServiceUnavailable,
),
deadline=300.0,
),
Expand Down Expand Up @@ -910,7 +911,6 @@ async def list_capacity_commitments(
r"""Lists all the capacity commitments for the admin
project.
.. code-block:: python
from google.cloud import bigquery_reservation_v1
Expand Down Expand Up @@ -983,7 +983,8 @@ def sample_list_capacity_commitments():
maximum=60.0,
multiplier=1.3,
predicate=retries.if_exception_type(
core_exceptions.GoogleAPICallError,
core_exceptions.DeadlineExceeded,
core_exceptions.ServiceUnavailable,
),
deadline=300.0,
),
Expand Down Expand Up @@ -1109,7 +1110,8 @@ def sample_get_capacity_commitment():
maximum=60.0,
multiplier=1.3,
predicate=retries.if_exception_type(
core_exceptions.GoogleAPICallError,
core_exceptions.DeadlineExceeded,
core_exceptions.ServiceUnavailable,
),
deadline=300.0,
),
Expand Down Expand Up @@ -1147,7 +1149,6 @@ async def delete_capacity_commitment(
commitment before its commitment_end_time will fail with the
error code ``google.rpc.Code.FAILED_PRECONDITION``.
.. code-block:: python
from google.cloud import bigquery_reservation_v1
Expand Down Expand Up @@ -1208,7 +1209,8 @@ def sample_delete_capacity_commitment():
maximum=60.0,
multiplier=1.3,
predicate=retries.if_exception_type(
core_exceptions.GoogleAPICallError,
core_exceptions.DeadlineExceeded,
core_exceptions.ServiceUnavailable,
),
deadline=300.0,
),
Expand Down Expand Up @@ -1249,7 +1251,6 @@ async def update_capacity_commitment(
period will fail with the error code
``google.rpc.Code.FAILED_PRECONDITION``.
.. code-block:: python
from google.cloud import bigquery_reservation_v1
Expand Down Expand Up @@ -1376,7 +1377,6 @@ async def split_capacity_commitment(
and 8000. Then, you delete the first one after the commitment
end time passes.
.. code-block:: python
from google.cloud import bigquery_reservation_v1
Expand Down Expand Up @@ -1491,7 +1491,6 @@ async def merge_capacity_commitments(
fail with the error code
``google.rpc.Code.FAILED_PRECONDITION``.
.. code-block:: python
from google.cloud import bigquery_reservation_v1
Expand Down Expand Up @@ -1650,7 +1649,6 @@ async def create_assignment(
Returns ``google.rpc.Code.INVALID_ARGUMENT`` when location of
the assignment does not match location of the reservation.
.. code-block:: python
from google.cloud import bigquery_reservation_v1
Expand Down Expand Up @@ -1778,7 +1776,6 @@ async def list_assignments(
**Note** "-" cannot be used for projects nor locations.
.. code-block:: python
from google.cloud import bigquery_reservation_v1
Expand Down Expand Up @@ -1856,7 +1853,8 @@ def sample_list_assignments():
maximum=60.0,
multiplier=1.3,
predicate=retries.if_exception_type(
core_exceptions.GoogleAPICallError,
core_exceptions.DeadlineExceeded,
core_exceptions.ServiceUnavailable,
),
deadline=300.0,
),
Expand Down Expand Up @@ -1916,7 +1914,6 @@ async def delete_assignment(
``project1`` will still use ``res1`` while queries from
``project2`` will switch to use on-demand mode.
.. code-block:: python
from google.cloud import bigquery_reservation_v1
Expand Down Expand Up @@ -1978,7 +1975,8 @@ def sample_delete_assignment():
maximum=60.0,
multiplier=1.3,
predicate=retries.if_exception_type(
core_exceptions.GoogleAPICallError,
core_exceptions.DeadlineExceeded,
core_exceptions.ServiceUnavailable,
),
deadline=300.0,
),
Expand Down Expand Up @@ -2036,7 +2034,6 @@ async def search_assignments(
**Note** "-" cannot be used for projects nor locations.
.. code-block:: python
from google.cloud import bigquery_reservation_v1
Expand Down Expand Up @@ -2131,7 +2128,8 @@ def sample_search_assignments():
maximum=60.0,
multiplier=1.3,
predicate=retries.if_exception_type(
core_exceptions.GoogleAPICallError,
core_exceptions.DeadlineExceeded,
core_exceptions.ServiceUnavailable,
),
deadline=300.0,
),
Expand Down Expand Up @@ -2199,7 +2197,6 @@ async def search_all_assignments(
3. Parent here is ``projects/*/locations/*``, instead of
``projects/*/locations/*reservations/*``.
.. code-block:: python
from google.cloud import bigquery_reservation_v1
Expand Down Expand Up @@ -2330,7 +2327,6 @@ async def move_assignment(
that ensures an assignee always has an associated
reservation.
.. code-block:: python
from google.cloud import bigquery_reservation_v1
Expand Down Expand Up @@ -2445,7 +2441,6 @@ async def update_assignment(
Only the ``priority`` field can be updated.
.. code-block:: python
from google.cloud import bigquery_reservation_v1
Expand Down Expand Up @@ -2617,7 +2612,8 @@ def sample_get_bi_reservation():
maximum=60.0,
multiplier=1.3,
predicate=retries.if_exception_type(
core_exceptions.GoogleAPICallError,
core_exceptions.DeadlineExceeded,
core_exceptions.ServiceUnavailable,
),
deadline=300.0,
),
Expand Down Expand Up @@ -2661,7 +2657,6 @@ async def update_bi_reservation(
greater than 0. In order to release BI capacity reservation size
must be set to 0.
.. code-block:: python
from google.cloud import bigquery_reservation_v1
Expand Down
Loading

0 comments on commit cf15d65

Please sign in to comment.