Skip to content

Commit c5116e0

Browse files
fix: Add service_yaml_parameters to py_gapic_library BUILD.bazel targets (#734)
* feat: enable "rest" transport in Python for services supporting numeric enums PiperOrigin-RevId: 508143576 Source-Link: googleapis/googleapis@7a702a9 Source-Link: googleapis/googleapis-gen@6ad1279 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNmFkMTI3OWMwZTdhYTc4N2FjNmI2NmM5ZmQ0YTIxMDY5MmVkZmZjZCJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * feat: publish the Cloud Bigtable Change Streams PiperOrigin-RevId: 508465928 Source-Link: googleapis/googleapis@3770af2 Source-Link: googleapis/googleapis-gen@0280f1f Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMDI4MGYxZjViOTkwZDkwMTNhMWM0YzU1NWRlZjI0MWEzMTI0MjM3NiJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * fix(deps): require google-api-core>=1.34.0,>=2.11.0 * fix: Add service_yaml_parameters to py_gapic_library BUILD.bazel targets PiperOrigin-RevId: 510187992 Source-Link: googleapis/googleapis@5edc235 Source-Link: googleapis/googleapis-gen@b0bedb7 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYjBiZWRiNzJlNDc2NWEzZTBiNjc0YTI4YzUwZWEwZjlhOWIyNmE4OSJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * run generator at main; fix mypy errors * remove obsolete replacements in owlbot.py * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 🦉 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 <[email protected]>
1 parent a6cfb02 commit c5116e0

File tree

27 files changed

+26340
-458
lines changed

27 files changed

+26340
-458
lines changed

google/cloud/bigtable_admin_v2/gapic_metadata.json

+235
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,116 @@
226226
]
227227
}
228228
}
229+
},
230+
"rest": {
231+
"libraryClient": "BigtableInstanceAdminClient",
232+
"rpcs": {
233+
"CreateAppProfile": {
234+
"methods": [
235+
"create_app_profile"
236+
]
237+
},
238+
"CreateCluster": {
239+
"methods": [
240+
"create_cluster"
241+
]
242+
},
243+
"CreateInstance": {
244+
"methods": [
245+
"create_instance"
246+
]
247+
},
248+
"DeleteAppProfile": {
249+
"methods": [
250+
"delete_app_profile"
251+
]
252+
},
253+
"DeleteCluster": {
254+
"methods": [
255+
"delete_cluster"
256+
]
257+
},
258+
"DeleteInstance": {
259+
"methods": [
260+
"delete_instance"
261+
]
262+
},
263+
"GetAppProfile": {
264+
"methods": [
265+
"get_app_profile"
266+
]
267+
},
268+
"GetCluster": {
269+
"methods": [
270+
"get_cluster"
271+
]
272+
},
273+
"GetIamPolicy": {
274+
"methods": [
275+
"get_iam_policy"
276+
]
277+
},
278+
"GetInstance": {
279+
"methods": [
280+
"get_instance"
281+
]
282+
},
283+
"ListAppProfiles": {
284+
"methods": [
285+
"list_app_profiles"
286+
]
287+
},
288+
"ListClusters": {
289+
"methods": [
290+
"list_clusters"
291+
]
292+
},
293+
"ListHotTablets": {
294+
"methods": [
295+
"list_hot_tablets"
296+
]
297+
},
298+
"ListInstances": {
299+
"methods": [
300+
"list_instances"
301+
]
302+
},
303+
"PartialUpdateCluster": {
304+
"methods": [
305+
"partial_update_cluster"
306+
]
307+
},
308+
"PartialUpdateInstance": {
309+
"methods": [
310+
"partial_update_instance"
311+
]
312+
},
313+
"SetIamPolicy": {
314+
"methods": [
315+
"set_iam_policy"
316+
]
317+
},
318+
"TestIamPermissions": {
319+
"methods": [
320+
"test_iam_permissions"
321+
]
322+
},
323+
"UpdateAppProfile": {
324+
"methods": [
325+
"update_app_profile"
326+
]
327+
},
328+
"UpdateCluster": {
329+
"methods": [
330+
"update_cluster"
331+
]
332+
},
333+
"UpdateInstance": {
334+
"methods": [
335+
"update_instance"
336+
]
337+
}
338+
}
229339
}
230340
}
231341
},
@@ -480,6 +590,131 @@
480590
]
481591
}
482592
}
593+
},
594+
"rest": {
595+
"libraryClient": "BigtableTableAdminClient",
596+
"rpcs": {
597+
"CheckConsistency": {
598+
"methods": [
599+
"check_consistency"
600+
]
601+
},
602+
"CreateBackup": {
603+
"methods": [
604+
"create_backup"
605+
]
606+
},
607+
"CreateTable": {
608+
"methods": [
609+
"create_table"
610+
]
611+
},
612+
"CreateTableFromSnapshot": {
613+
"methods": [
614+
"create_table_from_snapshot"
615+
]
616+
},
617+
"DeleteBackup": {
618+
"methods": [
619+
"delete_backup"
620+
]
621+
},
622+
"DeleteSnapshot": {
623+
"methods": [
624+
"delete_snapshot"
625+
]
626+
},
627+
"DeleteTable": {
628+
"methods": [
629+
"delete_table"
630+
]
631+
},
632+
"DropRowRange": {
633+
"methods": [
634+
"drop_row_range"
635+
]
636+
},
637+
"GenerateConsistencyToken": {
638+
"methods": [
639+
"generate_consistency_token"
640+
]
641+
},
642+
"GetBackup": {
643+
"methods": [
644+
"get_backup"
645+
]
646+
},
647+
"GetIamPolicy": {
648+
"methods": [
649+
"get_iam_policy"
650+
]
651+
},
652+
"GetSnapshot": {
653+
"methods": [
654+
"get_snapshot"
655+
]
656+
},
657+
"GetTable": {
658+
"methods": [
659+
"get_table"
660+
]
661+
},
662+
"ListBackups": {
663+
"methods": [
664+
"list_backups"
665+
]
666+
},
667+
"ListSnapshots": {
668+
"methods": [
669+
"list_snapshots"
670+
]
671+
},
672+
"ListTables": {
673+
"methods": [
674+
"list_tables"
675+
]
676+
},
677+
"ModifyColumnFamilies": {
678+
"methods": [
679+
"modify_column_families"
680+
]
681+
},
682+
"RestoreTable": {
683+
"methods": [
684+
"restore_table"
685+
]
686+
},
687+
"SetIamPolicy": {
688+
"methods": [
689+
"set_iam_policy"
690+
]
691+
},
692+
"SnapshotTable": {
693+
"methods": [
694+
"snapshot_table"
695+
]
696+
},
697+
"TestIamPermissions": {
698+
"methods": [
699+
"test_iam_permissions"
700+
]
701+
},
702+
"UndeleteTable": {
703+
"methods": [
704+
"undelete_table"
705+
]
706+
},
707+
"UpdateBackup": {
708+
"methods": [
709+
"update_backup"
710+
]
711+
},
712+
"UpdateTable": {
713+
"methods": [
714+
"update_table"
715+
]
716+
}
717+
}
483718
}
484719
}
485720
}

google/cloud/bigtable_admin_v2/services/bigtable_instance_admin/client.py

+2
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@
6060
from .transports.base import BigtableInstanceAdminTransport, DEFAULT_CLIENT_INFO
6161
from .transports.grpc import BigtableInstanceAdminGrpcTransport
6262
from .transports.grpc_asyncio import BigtableInstanceAdminGrpcAsyncIOTransport
63+
from .transports.rest import BigtableInstanceAdminRestTransport
6364

6465

6566
class BigtableInstanceAdminClientMeta(type):
@@ -75,6 +76,7 @@ class BigtableInstanceAdminClientMeta(type):
7576
) # type: Dict[str, Type[BigtableInstanceAdminTransport]]
7677
_transport_registry["grpc"] = BigtableInstanceAdminGrpcTransport
7778
_transport_registry["grpc_asyncio"] = BigtableInstanceAdminGrpcAsyncIOTransport
79+
_transport_registry["rest"] = BigtableInstanceAdminRestTransport
7880

7981
def get_transport_class(
8082
cls,

google/cloud/bigtable_admin_v2/services/bigtable_instance_admin/transports/__init__.py

+5
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
from .base import BigtableInstanceAdminTransport
2020
from .grpc import BigtableInstanceAdminGrpcTransport
2121
from .grpc_asyncio import BigtableInstanceAdminGrpcAsyncIOTransport
22+
from .rest import BigtableInstanceAdminRestTransport
23+
from .rest import BigtableInstanceAdminRestInterceptor
2224

2325

2426
# Compile a registry of transports.
@@ -27,9 +29,12 @@
2729
) # type: Dict[str, Type[BigtableInstanceAdminTransport]]
2830
_transport_registry["grpc"] = BigtableInstanceAdminGrpcTransport
2931
_transport_registry["grpc_asyncio"] = BigtableInstanceAdminGrpcAsyncIOTransport
32+
_transport_registry["rest"] = BigtableInstanceAdminRestTransport
3033

3134
__all__ = (
3235
"BigtableInstanceAdminTransport",
3336
"BigtableInstanceAdminGrpcTransport",
3437
"BigtableInstanceAdminGrpcAsyncIOTransport",
38+
"BigtableInstanceAdminRestTransport",
39+
"BigtableInstanceAdminRestInterceptor",
3540
)

0 commit comments

Comments
 (0)