Skip to content

Commit c934825

Browse files
feat: enable "rest" transport in Python for services supporting numeric enums (#291)
* 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 53fc0ba commit c934825

File tree

5 files changed

+17045
-92
lines changed

5 files changed

+17045
-92
lines changed

packages/google-cloud-contact-center-insights/google/cloud/contact_center_insights_v1/gapic_metadata.json

Lines changed: 190 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -386,6 +386,196 @@
386386
]
387387
}
388388
}
389+
},
390+
"rest": {
391+
"libraryClient": "ContactCenterInsightsClient",
392+
"rpcs": {
393+
"BulkAnalyzeConversations": {
394+
"methods": [
395+
"bulk_analyze_conversations"
396+
]
397+
},
398+
"CalculateIssueModelStats": {
399+
"methods": [
400+
"calculate_issue_model_stats"
401+
]
402+
},
403+
"CalculateStats": {
404+
"methods": [
405+
"calculate_stats"
406+
]
407+
},
408+
"CreateAnalysis": {
409+
"methods": [
410+
"create_analysis"
411+
]
412+
},
413+
"CreateConversation": {
414+
"methods": [
415+
"create_conversation"
416+
]
417+
},
418+
"CreateIssueModel": {
419+
"methods": [
420+
"create_issue_model"
421+
]
422+
},
423+
"CreatePhraseMatcher": {
424+
"methods": [
425+
"create_phrase_matcher"
426+
]
427+
},
428+
"CreateView": {
429+
"methods": [
430+
"create_view"
431+
]
432+
},
433+
"DeleteAnalysis": {
434+
"methods": [
435+
"delete_analysis"
436+
]
437+
},
438+
"DeleteConversation": {
439+
"methods": [
440+
"delete_conversation"
441+
]
442+
},
443+
"DeleteIssue": {
444+
"methods": [
445+
"delete_issue"
446+
]
447+
},
448+
"DeleteIssueModel": {
449+
"methods": [
450+
"delete_issue_model"
451+
]
452+
},
453+
"DeletePhraseMatcher": {
454+
"methods": [
455+
"delete_phrase_matcher"
456+
]
457+
},
458+
"DeleteView": {
459+
"methods": [
460+
"delete_view"
461+
]
462+
},
463+
"DeployIssueModel": {
464+
"methods": [
465+
"deploy_issue_model"
466+
]
467+
},
468+
"ExportInsightsData": {
469+
"methods": [
470+
"export_insights_data"
471+
]
472+
},
473+
"GetAnalysis": {
474+
"methods": [
475+
"get_analysis"
476+
]
477+
},
478+
"GetConversation": {
479+
"methods": [
480+
"get_conversation"
481+
]
482+
},
483+
"GetIssue": {
484+
"methods": [
485+
"get_issue"
486+
]
487+
},
488+
"GetIssueModel": {
489+
"methods": [
490+
"get_issue_model"
491+
]
492+
},
493+
"GetPhraseMatcher": {
494+
"methods": [
495+
"get_phrase_matcher"
496+
]
497+
},
498+
"GetSettings": {
499+
"methods": [
500+
"get_settings"
501+
]
502+
},
503+
"GetView": {
504+
"methods": [
505+
"get_view"
506+
]
507+
},
508+
"IngestConversations": {
509+
"methods": [
510+
"ingest_conversations"
511+
]
512+
},
513+
"ListAnalyses": {
514+
"methods": [
515+
"list_analyses"
516+
]
517+
},
518+
"ListConversations": {
519+
"methods": [
520+
"list_conversations"
521+
]
522+
},
523+
"ListIssueModels": {
524+
"methods": [
525+
"list_issue_models"
526+
]
527+
},
528+
"ListIssues": {
529+
"methods": [
530+
"list_issues"
531+
]
532+
},
533+
"ListPhraseMatchers": {
534+
"methods": [
535+
"list_phrase_matchers"
536+
]
537+
},
538+
"ListViews": {
539+
"methods": [
540+
"list_views"
541+
]
542+
},
543+
"UndeployIssueModel": {
544+
"methods": [
545+
"undeploy_issue_model"
546+
]
547+
},
548+
"UpdateConversation": {
549+
"methods": [
550+
"update_conversation"
551+
]
552+
},
553+
"UpdateIssue": {
554+
"methods": [
555+
"update_issue"
556+
]
557+
},
558+
"UpdateIssueModel": {
559+
"methods": [
560+
"update_issue_model"
561+
]
562+
},
563+
"UpdatePhraseMatcher": {
564+
"methods": [
565+
"update_phrase_matcher"
566+
]
567+
},
568+
"UpdateSettings": {
569+
"methods": [
570+
"update_settings"
571+
]
572+
},
573+
"UpdateView": {
574+
"methods": [
575+
"update_view"
576+
]
577+
}
578+
}
389579
}
390580
}
391581
}

packages/google-cloud-contact-center-insights/google/cloud/contact_center_insights_v1/services/contact_center_insights/client.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@
6464
from .transports.base import DEFAULT_CLIENT_INFO, ContactCenterInsightsTransport
6565
from .transports.grpc import ContactCenterInsightsGrpcTransport
6666
from .transports.grpc_asyncio import ContactCenterInsightsGrpcAsyncIOTransport
67+
from .transports.rest import ContactCenterInsightsRestTransport
6768

6869

6970
class ContactCenterInsightsClientMeta(type):
@@ -79,6 +80,7 @@ class ContactCenterInsightsClientMeta(type):
7980
) # type: Dict[str, Type[ContactCenterInsightsTransport]]
8081
_transport_registry["grpc"] = ContactCenterInsightsGrpcTransport
8182
_transport_registry["grpc_asyncio"] = ContactCenterInsightsGrpcAsyncIOTransport
83+
_transport_registry["rest"] = ContactCenterInsightsRestTransport
8284

8385
def get_transport_class(
8486
cls,

packages/google-cloud-contact-center-insights/google/cloud/contact_center_insights_v1/services/contact_center_insights/transports/__init__.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,23 @@
1919
from .base import ContactCenterInsightsTransport
2020
from .grpc import ContactCenterInsightsGrpcTransport
2121
from .grpc_asyncio import ContactCenterInsightsGrpcAsyncIOTransport
22+
from .rest import (
23+
ContactCenterInsightsRestInterceptor,
24+
ContactCenterInsightsRestTransport,
25+
)
2226

2327
# Compile a registry of transports.
2428
_transport_registry = (
2529
OrderedDict()
2630
) # type: Dict[str, Type[ContactCenterInsightsTransport]]
2731
_transport_registry["grpc"] = ContactCenterInsightsGrpcTransport
2832
_transport_registry["grpc_asyncio"] = ContactCenterInsightsGrpcAsyncIOTransport
33+
_transport_registry["rest"] = ContactCenterInsightsRestTransport
2934

3035
__all__ = (
3136
"ContactCenterInsightsTransport",
3237
"ContactCenterInsightsGrpcTransport",
3338
"ContactCenterInsightsGrpcAsyncIOTransport",
39+
"ContactCenterInsightsRestTransport",
40+
"ContactCenterInsightsRestInterceptor",
3441
)

0 commit comments

Comments
 (0)