Skip to content
This repository was archived by the owner on Nov 29, 2023. It is now read-only.

Commit 50de8ca

Browse files
feat: enable "rest" transport in Python for services supporting numeric enums (#339)
* feat: enable "rest" transport in Python for services supporting numeric enums PiperOrigin-RevId: 508143576 Source-Link: googleapis/googleapis@7a702a9 Source-Link: https://github.com/googleapis/googleapis-gen/commit/6ad1279c0e7aa787ac6b66c9fd4a210692edffcd Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNmFkMTI3OWMwZTdhYTc4N2FjNmI2NmM5ZmQ0YTIxMDY5MmVkZmZjZCJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * feat: enable "rest" transport in Python for services supporting numeric enums PiperOrigin-RevId: 508143576 Source-Link: googleapis/googleapis@7a702a9 Source-Link: https://github.com/googleapis/googleapis-gen/commit/6ad1279c0e7aa787ac6b66c9fd4a210692edffcd Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNmFkMTI3OWMwZTdhYTc4N2FjNmI2NmM5ZmQ0YTIxMDY5MmVkZmZjZCJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * update samples and system test to use REST * 🦉 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> Co-authored-by: Anthonios Partheniou <partheniou@google.com>
1 parent c2ed049 commit 50de8ca

File tree

13 files changed

+9315
-122
lines changed

13 files changed

+9315
-122
lines changed

google/cloud/bigquery_reservation_v1/gapic_metadata.json

Lines changed: 110 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,116 @@
226226
]
227227
}
228228
}
229+
},
230+
"rest": {
231+
"libraryClient": "ReservationServiceClient",
232+
"rpcs": {
233+
"CreateAssignment": {
234+
"methods": [
235+
"create_assignment"
236+
]
237+
},
238+
"CreateCapacityCommitment": {
239+
"methods": [
240+
"create_capacity_commitment"
241+
]
242+
},
243+
"CreateReservation": {
244+
"methods": [
245+
"create_reservation"
246+
]
247+
},
248+
"DeleteAssignment": {
249+
"methods": [
250+
"delete_assignment"
251+
]
252+
},
253+
"DeleteCapacityCommitment": {
254+
"methods": [
255+
"delete_capacity_commitment"
256+
]
257+
},
258+
"DeleteReservation": {
259+
"methods": [
260+
"delete_reservation"
261+
]
262+
},
263+
"GetBiReservation": {
264+
"methods": [
265+
"get_bi_reservation"
266+
]
267+
},
268+
"GetCapacityCommitment": {
269+
"methods": [
270+
"get_capacity_commitment"
271+
]
272+
},
273+
"GetReservation": {
274+
"methods": [
275+
"get_reservation"
276+
]
277+
},
278+
"ListAssignments": {
279+
"methods": [
280+
"list_assignments"
281+
]
282+
},
283+
"ListCapacityCommitments": {
284+
"methods": [
285+
"list_capacity_commitments"
286+
]
287+
},
288+
"ListReservations": {
289+
"methods": [
290+
"list_reservations"
291+
]
292+
},
293+
"MergeCapacityCommitments": {
294+
"methods": [
295+
"merge_capacity_commitments"
296+
]
297+
},
298+
"MoveAssignment": {
299+
"methods": [
300+
"move_assignment"
301+
]
302+
},
303+
"SearchAllAssignments": {
304+
"methods": [
305+
"search_all_assignments"
306+
]
307+
},
308+
"SearchAssignments": {
309+
"methods": [
310+
"search_assignments"
311+
]
312+
},
313+
"SplitCapacityCommitment": {
314+
"methods": [
315+
"split_capacity_commitment"
316+
]
317+
},
318+
"UpdateAssignment": {
319+
"methods": [
320+
"update_assignment"
321+
]
322+
},
323+
"UpdateBiReservation": {
324+
"methods": [
325+
"update_bi_reservation"
326+
]
327+
},
328+
"UpdateCapacityCommitment": {
329+
"methods": [
330+
"update_capacity_commitment"
331+
]
332+
},
333+
"UpdateReservation": {
334+
"methods": [
335+
"update_reservation"
336+
]
337+
}
338+
}
229339
}
230340
}
231341
}

google/cloud/bigquery_reservation_v1/services/reservation_service/client.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@
5858
from .transports.base import DEFAULT_CLIENT_INFO, ReservationServiceTransport
5959
from .transports.grpc import ReservationServiceGrpcTransport
6060
from .transports.grpc_asyncio import ReservationServiceGrpcAsyncIOTransport
61+
from .transports.rest import ReservationServiceRestTransport
6162

6263

6364
class ReservationServiceClientMeta(type):
@@ -73,6 +74,7 @@ class ReservationServiceClientMeta(type):
7374
) # type: Dict[str, Type[ReservationServiceTransport]]
7475
_transport_registry["grpc"] = ReservationServiceGrpcTransport
7576
_transport_registry["grpc_asyncio"] = ReservationServiceGrpcAsyncIOTransport
77+
_transport_registry["rest"] = ReservationServiceRestTransport
7678

7779
def get_transport_class(
7880
cls,

google/cloud/bigquery_reservation_v1/services/reservation_service/transports/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,20 @@
1919
from .base import ReservationServiceTransport
2020
from .grpc import ReservationServiceGrpcTransport
2121
from .grpc_asyncio import ReservationServiceGrpcAsyncIOTransport
22+
from .rest import ReservationServiceRestInterceptor, ReservationServiceRestTransport
2223

2324
# Compile a registry of transports.
2425
_transport_registry = (
2526
OrderedDict()
2627
) # type: Dict[str, Type[ReservationServiceTransport]]
2728
_transport_registry["grpc"] = ReservationServiceGrpcTransport
2829
_transport_registry["grpc_asyncio"] = ReservationServiceGrpcAsyncIOTransport
30+
_transport_registry["rest"] = ReservationServiceRestTransport
2931

3032
__all__ = (
3133
"ReservationServiceTransport",
3234
"ReservationServiceGrpcTransport",
3335
"ReservationServiceGrpcAsyncIOTransport",
36+
"ReservationServiceRestTransport",
37+
"ReservationServiceRestInterceptor",
3438
)

0 commit comments

Comments
 (0)