Skip to content
Permalink
Browse files
chore: upgrade gapic-generator-python to 0.46.3 (#110)
PiperOrigin-RevId: 373649163

Source-Link: googleapis/googleapis@7e1b14e

Source-Link: https://github.com/googleapis/googleapis-gen/commit/0a3c7d272d697796db75857bac73905c68e498c3

fix: add async client to %name_%version/init.py
chore: add autogenerated snippets
chore: remove auth, policy, and options from the reserved names list
feat: support self-signed JWT flow for service accounts
chore: enable GAPIC metadata generation
chore: sort subpackages in %namespace/%name/init.py
  • Loading branch information
gcf-owl-bot[bot] committed May 21, 2021
1 parent 7bca7a9 commit 4d52ed91ae9eaa7ec6091138c134e682c9434853
Showing with 1,219 additions and 1,025 deletions.
  1. +0 −1 docs/bigquery_reservation_v1/reservation_service.rst
  2. +6 −6 google/cloud/bigquery_reservation/__init__.py
  3. +4 −3 google/cloud/bigquery_reservation_v1/__init__.py
  4. +213 −0 google/cloud/bigquery_reservation_v1/gapic_metadata.json
  5. +0 −1 google/cloud/bigquery_reservation_v1/services/__init__.py
  6. +0 −2 google/cloud/bigquery_reservation_v1/services/reservation_service/__init__.py
  7. +34 −71 google/cloud/bigquery_reservation_v1/services/reservation_service/async_client.py
  8. +44 −98 google/cloud/bigquery_reservation_v1/services/reservation_service/client.py
  9. +4 −6 google/cloud/bigquery_reservation_v1/services/reservation_service/pagers.py
  10. +0 −2 google/cloud/bigquery_reservation_v1/services/reservation_service/transports/__init__.py
  11. +147 −91 google/cloud/bigquery_reservation_v1/services/reservation_service/transports/base.py
  12. +18 −18 google/cloud/bigquery_reservation_v1/services/reservation_service/transports/grpc.py
  13. +18 −19 google/cloud/bigquery_reservation_v1/services/reservation_service/transports/grpc_asyncio.py
  14. +0 −2 google/cloud/bigquery_reservation_v1/types/__init__.py
  15. +58 −96 google/cloud/bigquery_reservation_v1/types/reservation.py
  16. +1 −1 noxfile.py
  17. +1 −1 owlbot.py
  18. +20 −23 scripts/fixup_bigquery_reservation_v1_keywords.py
  19. +1 −0 setup.py
  20. +2 −0 testing/constraints-3.6.txt
  21. +0 −8 tests/{unit/test_bigquery_reservation.py → __init__.py}
  22. +15 −0 tests/unit/__init__.py
  23. +15 −0 tests/unit/gapic/__init__.py
  24. +0 −1 tests/unit/gapic/bigquery_reservation_v1/__init__.py
  25. +618 −575 tests/unit/gapic/bigquery_reservation_v1/test_reservation_service.py
@@ -5,7 +5,6 @@ ReservationService
:members:
:inherited-members:


.. automodule:: google.cloud.bigquery_reservation_v1.services.reservation_service.pagers
:members:
:inherited-members:
@@ -1,5 +1,4 @@
# -*- coding: utf-8 -*-

# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -15,12 +14,13 @@
# limitations under the License.
#

from google.cloud.bigquery_reservation_v1.services.reservation_service.async_client import (
ReservationServiceAsyncClient,
)
from google.cloud.bigquery_reservation_v1.services.reservation_service.client import (
ReservationServiceClient,
)
from google.cloud.bigquery_reservation_v1.services.reservation_service.async_client import (
ReservationServiceAsyncClient,
)

from google.cloud.bigquery_reservation_v1.types.reservation import Assignment
from google.cloud.bigquery_reservation_v1.types.reservation import BiReservation
from google.cloud.bigquery_reservation_v1.types.reservation import CapacityCommitment
@@ -95,6 +95,8 @@
)

__all__ = (
"ReservationServiceClient",
"ReservationServiceAsyncClient",
"Assignment",
"BiReservation",
"CapacityCommitment",
@@ -116,8 +118,6 @@
"MergeCapacityCommitmentsRequest",
"MoveAssignmentRequest",
"Reservation",
"ReservationServiceAsyncClient",
"ReservationServiceClient",
"SearchAssignmentsRequest",
"SearchAssignmentsResponse",
"SplitCapacityCommitmentRequest",
@@ -1,5 +1,4 @@
# -*- coding: utf-8 -*-

# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -16,6 +15,8 @@
#

from .services.reservation_service import ReservationServiceClient
from .services.reservation_service import ReservationServiceAsyncClient

from .types.reservation import Assignment
from .types.reservation import BiReservation
from .types.reservation import CapacityCommitment
@@ -45,8 +46,8 @@
from .types.reservation import UpdateCapacityCommitmentRequest
from .types.reservation import UpdateReservationRequest


__all__ = (
"ReservationServiceAsyncClient",
"Assignment",
"BiReservation",
"CapacityCommitment",
@@ -68,12 +69,12 @@
"MergeCapacityCommitmentsRequest",
"MoveAssignmentRequest",
"Reservation",
"ReservationServiceClient",
"SearchAssignmentsRequest",
"SearchAssignmentsResponse",
"SplitCapacityCommitmentRequest",
"SplitCapacityCommitmentResponse",
"UpdateBiReservationRequest",
"UpdateCapacityCommitmentRequest",
"UpdateReservationRequest",
"ReservationServiceClient",
)
@@ -0,0 +1,213 @@
{
"comment": "This file maps proto services/RPCs to the corresponding library clients/methods",
"language": "python",
"libraryPackage": "google.cloud.bigquery_reservation_v1",
"protoPackage": "google.cloud.bigquery.reservation.v1",
"schema": "1.0",
"services": {
"ReservationService": {
"clients": {
"grpc": {
"libraryClient": "ReservationServiceClient",
"rpcs": {
"CreateAssignment": {
"methods": [
"create_assignment"
]
},
"CreateCapacityCommitment": {
"methods": [
"create_capacity_commitment"
]
},
"CreateReservation": {
"methods": [
"create_reservation"
]
},
"DeleteAssignment": {
"methods": [
"delete_assignment"
]
},
"DeleteCapacityCommitment": {
"methods": [
"delete_capacity_commitment"
]
},
"DeleteReservation": {
"methods": [
"delete_reservation"
]
},
"GetBiReservation": {
"methods": [
"get_bi_reservation"
]
},
"GetCapacityCommitment": {
"methods": [
"get_capacity_commitment"
]
},
"GetReservation": {
"methods": [
"get_reservation"
]
},
"ListAssignments": {
"methods": [
"list_assignments"
]
},
"ListCapacityCommitments": {
"methods": [
"list_capacity_commitments"
]
},
"ListReservations": {
"methods": [
"list_reservations"
]
},
"MergeCapacityCommitments": {
"methods": [
"merge_capacity_commitments"
]
},
"MoveAssignment": {
"methods": [
"move_assignment"
]
},
"SearchAssignments": {
"methods": [
"search_assignments"
]
},
"SplitCapacityCommitment": {
"methods": [
"split_capacity_commitment"
]
},
"UpdateBiReservation": {
"methods": [
"update_bi_reservation"
]
},
"UpdateCapacityCommitment": {
"methods": [
"update_capacity_commitment"
]
},
"UpdateReservation": {
"methods": [
"update_reservation"
]
}
}
},
"grpc-async": {
"libraryClient": "ReservationServiceAsyncClient",
"rpcs": {
"CreateAssignment": {
"methods": [
"create_assignment"
]
},
"CreateCapacityCommitment": {
"methods": [
"create_capacity_commitment"
]
},
"CreateReservation": {
"methods": [
"create_reservation"
]
},
"DeleteAssignment": {
"methods": [
"delete_assignment"
]
},
"DeleteCapacityCommitment": {
"methods": [
"delete_capacity_commitment"
]
},
"DeleteReservation": {
"methods": [
"delete_reservation"
]
},
"GetBiReservation": {
"methods": [
"get_bi_reservation"
]
},
"GetCapacityCommitment": {
"methods": [
"get_capacity_commitment"
]
},
"GetReservation": {
"methods": [
"get_reservation"
]
},
"ListAssignments": {
"methods": [
"list_assignments"
]
},
"ListCapacityCommitments": {
"methods": [
"list_capacity_commitments"
]
},
"ListReservations": {
"methods": [
"list_reservations"
]
},
"MergeCapacityCommitments": {
"methods": [
"merge_capacity_commitments"
]
},
"MoveAssignment": {
"methods": [
"move_assignment"
]
},
"SearchAssignments": {
"methods": [
"search_assignments"
]
},
"SplitCapacityCommitment": {
"methods": [
"split_capacity_commitment"
]
},
"UpdateBiReservation": {
"methods": [
"update_bi_reservation"
]
},
"UpdateCapacityCommitment": {
"methods": [
"update_capacity_commitment"
]
},
"UpdateReservation": {
"methods": [
"update_reservation"
]
}
}
}
}
}
}
}
@@ -1,5 +1,4 @@
# -*- coding: utf-8 -*-

# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,5 +1,4 @@
# -*- coding: utf-8 -*-

# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -14,7 +13,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#

from .client import ReservationServiceClient
from .async_client import ReservationServiceAsyncClient

0 comments on commit 4d52ed9

Please sign in to comment.