Skip to content

Commit 6e133e4

Browse files
feat: enable "rest" transport in Python for services supporting numeric enums (#224)
* 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 --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 7a0fa4e commit 6e133e4

33 files changed

Lines changed: 12452 additions & 32 deletions

File tree

packages/google-cloud-appengine-admin/google/cloud/appengine_admin_v1/gapic_metadata.json

Lines changed: 210 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,31 @@
5656
]
5757
}
5858
}
59+
},
60+
"rest": {
61+
"libraryClient": "ApplicationsClient",
62+
"rpcs": {
63+
"CreateApplication": {
64+
"methods": [
65+
"create_application"
66+
]
67+
},
68+
"GetApplication": {
69+
"methods": [
70+
"get_application"
71+
]
72+
},
73+
"RepairApplication": {
74+
"methods": [
75+
"repair_application"
76+
]
77+
},
78+
"UpdateApplication": {
79+
"methods": [
80+
"update_application"
81+
]
82+
}
83+
}
5984
}
6085
}
6186
},
@@ -120,6 +145,36 @@
120145
]
121146
}
122147
}
148+
},
149+
"rest": {
150+
"libraryClient": "AuthorizedCertificatesClient",
151+
"rpcs": {
152+
"CreateAuthorizedCertificate": {
153+
"methods": [
154+
"create_authorized_certificate"
155+
]
156+
},
157+
"DeleteAuthorizedCertificate": {
158+
"methods": [
159+
"delete_authorized_certificate"
160+
]
161+
},
162+
"GetAuthorizedCertificate": {
163+
"methods": [
164+
"get_authorized_certificate"
165+
]
166+
},
167+
"ListAuthorizedCertificates": {
168+
"methods": [
169+
"list_authorized_certificates"
170+
]
171+
},
172+
"UpdateAuthorizedCertificate": {
173+
"methods": [
174+
"update_authorized_certificate"
175+
]
176+
}
177+
}
123178
}
124179
}
125180
},
@@ -144,6 +199,16 @@
144199
]
145200
}
146201
}
202+
},
203+
"rest": {
204+
"libraryClient": "AuthorizedDomainsClient",
205+
"rpcs": {
206+
"ListAuthorizedDomains": {
207+
"methods": [
208+
"list_authorized_domains"
209+
]
210+
}
211+
}
147212
}
148213
}
149214
},
@@ -208,6 +273,36 @@
208273
]
209274
}
210275
}
276+
},
277+
"rest": {
278+
"libraryClient": "DomainMappingsClient",
279+
"rpcs": {
280+
"CreateDomainMapping": {
281+
"methods": [
282+
"create_domain_mapping"
283+
]
284+
},
285+
"DeleteDomainMapping": {
286+
"methods": [
287+
"delete_domain_mapping"
288+
]
289+
},
290+
"GetDomainMapping": {
291+
"methods": [
292+
"get_domain_mapping"
293+
]
294+
},
295+
"ListDomainMappings": {
296+
"methods": [
297+
"list_domain_mappings"
298+
]
299+
},
300+
"UpdateDomainMapping": {
301+
"methods": [
302+
"update_domain_mapping"
303+
]
304+
}
305+
}
211306
}
212307
}
213308
},
@@ -282,6 +377,41 @@
282377
]
283378
}
284379
}
380+
},
381+
"rest": {
382+
"libraryClient": "FirewallClient",
383+
"rpcs": {
384+
"BatchUpdateIngressRules": {
385+
"methods": [
386+
"batch_update_ingress_rules"
387+
]
388+
},
389+
"CreateIngressRule": {
390+
"methods": [
391+
"create_ingress_rule"
392+
]
393+
},
394+
"DeleteIngressRule": {
395+
"methods": [
396+
"delete_ingress_rule"
397+
]
398+
},
399+
"GetIngressRule": {
400+
"methods": [
401+
"get_ingress_rule"
402+
]
403+
},
404+
"ListIngressRules": {
405+
"methods": [
406+
"list_ingress_rules"
407+
]
408+
},
409+
"UpdateIngressRule": {
410+
"methods": [
411+
"update_ingress_rule"
412+
]
413+
}
414+
}
285415
}
286416
}
287417
},
@@ -336,6 +466,31 @@
336466
]
337467
}
338468
}
469+
},
470+
"rest": {
471+
"libraryClient": "InstancesClient",
472+
"rpcs": {
473+
"DebugInstance": {
474+
"methods": [
475+
"debug_instance"
476+
]
477+
},
478+
"DeleteInstance": {
479+
"methods": [
480+
"delete_instance"
481+
]
482+
},
483+
"GetInstance": {
484+
"methods": [
485+
"get_instance"
486+
]
487+
},
488+
"ListInstances": {
489+
"methods": [
490+
"list_instances"
491+
]
492+
}
493+
}
339494
}
340495
}
341496
},
@@ -390,6 +545,31 @@
390545
]
391546
}
392547
}
548+
},
549+
"rest": {
550+
"libraryClient": "ServicesClient",
551+
"rpcs": {
552+
"DeleteService": {
553+
"methods": [
554+
"delete_service"
555+
]
556+
},
557+
"GetService": {
558+
"methods": [
559+
"get_service"
560+
]
561+
},
562+
"ListServices": {
563+
"methods": [
564+
"list_services"
565+
]
566+
},
567+
"UpdateService": {
568+
"methods": [
569+
"update_service"
570+
]
571+
}
572+
}
393573
}
394574
}
395575
},
@@ -454,6 +634,36 @@
454634
]
455635
}
456636
}
637+
},
638+
"rest": {
639+
"libraryClient": "VersionsClient",
640+
"rpcs": {
641+
"CreateVersion": {
642+
"methods": [
643+
"create_version"
644+
]
645+
},
646+
"DeleteVersion": {
647+
"methods": [
648+
"delete_version"
649+
]
650+
},
651+
"GetVersion": {
652+
"methods": [
653+
"get_version"
654+
]
655+
},
656+
"ListVersions": {
657+
"methods": [
658+
"list_versions"
659+
]
660+
},
661+
"UpdateVersion": {
662+
"methods": [
663+
"update_version"
664+
]
665+
}
666+
}
457667
}
458668
}
459669
}

packages/google-cloud-appengine-admin/google/cloud/appengine_admin_v1/services/applications/client.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@
5656
from .transports.base import DEFAULT_CLIENT_INFO, ApplicationsTransport
5757
from .transports.grpc import ApplicationsGrpcTransport
5858
from .transports.grpc_asyncio import ApplicationsGrpcAsyncIOTransport
59+
from .transports.rest import ApplicationsRestTransport
5960

6061

6162
class ApplicationsClientMeta(type):
@@ -69,6 +70,7 @@ class ApplicationsClientMeta(type):
6970
_transport_registry = OrderedDict() # type: Dict[str, Type[ApplicationsTransport]]
7071
_transport_registry["grpc"] = ApplicationsGrpcTransport
7172
_transport_registry["grpc_asyncio"] = ApplicationsGrpcAsyncIOTransport
73+
_transport_registry["rest"] = ApplicationsRestTransport
7274

7375
def get_transport_class(
7476
cls,

packages/google-cloud-appengine-admin/google/cloud/appengine_admin_v1/services/applications/transports/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,18 @@
1919
from .base import ApplicationsTransport
2020
from .grpc import ApplicationsGrpcTransport
2121
from .grpc_asyncio import ApplicationsGrpcAsyncIOTransport
22+
from .rest import ApplicationsRestInterceptor, ApplicationsRestTransport
2223

2324
# Compile a registry of transports.
2425
_transport_registry = OrderedDict() # type: Dict[str, Type[ApplicationsTransport]]
2526
_transport_registry["grpc"] = ApplicationsGrpcTransport
2627
_transport_registry["grpc_asyncio"] = ApplicationsGrpcAsyncIOTransport
28+
_transport_registry["rest"] = ApplicationsRestTransport
2729

2830
__all__ = (
2931
"ApplicationsTransport",
3032
"ApplicationsGrpcTransport",
3133
"ApplicationsGrpcAsyncIOTransport",
34+
"ApplicationsRestTransport",
35+
"ApplicationsRestInterceptor",
3236
)

0 commit comments

Comments
 (0)