From 8d6039bcdad67526b2801efdca4636d56763d7bd Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Fri, 11 Feb 2022 14:23:27 -0700 Subject: [PATCH] chore: use gapic-generator-python 0.63.2 (#131) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore: use gapic-generator-python 0.63.2 docs: add generated snippets PiperOrigin-RevId: 427792504 Source-Link: https://github.com/googleapis/googleapis/commit/55b9e1e0b3106c850d13958352bc0751147b6b15 Source-Link: https://github.com/googleapis/googleapis-gen/commit/bf4e86b753f42cb0edb1fd51fbe840d7da0a1cde Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYmY0ZTg2Yjc1M2Y0MmNiMGVkYjFmZDUxZmJlODQwZDdkYTBhMWNkZSJ9 * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- .../contact_center_insights/async_client.py | 672 ++++ .../contact_center_insights/client.py | 706 ++++ ...ights_calculate_issue_model_stats_async.py | 45 + ...sights_calculate_issue_model_stats_sync.py | 45 + ...t_center_insights_calculate_stats_async.py | 45 + ...ct_center_insights_calculate_stats_sync.py | 45 + ...t_center_insights_create_analysis_async.py | 49 + ...ct_center_insights_create_analysis_sync.py | 49 + ...nter_insights_create_conversation_async.py | 45 + ...enter_insights_create_conversation_sync.py | 45 + ...enter_insights_create_issue_model_async.py | 49 + ...center_insights_create_issue_model_sync.py | 49 + ...er_insights_create_phrase_matcher_async.py | 49 + ...ter_insights_create_phrase_matcher_sync.py | 49 + ...ntact_center_insights_create_view_async.py | 45 + ...ontact_center_insights_create_view_sync.py | 45 + ...t_center_insights_delete_analysis_async.py | 43 + ...ct_center_insights_delete_analysis_sync.py | 43 + ...nter_insights_delete_conversation_async.py | 43 + ...enter_insights_delete_conversation_sync.py | 43 + ...enter_insights_delete_issue_model_async.py | 49 + ...center_insights_delete_issue_model_sync.py | 49 + ...er_insights_delete_phrase_matcher_async.py | 43 + ...ter_insights_delete_phrase_matcher_sync.py | 43 + ...ntact_center_insights_delete_view_async.py | 43 + ...ontact_center_insights_delete_view_sync.py | 43 + ...enter_insights_deploy_issue_model_async.py | 49 + ...center_insights_deploy_issue_model_sync.py | 49 + ...ter_insights_export_insights_data_async.py | 53 + ...nter_insights_export_insights_data_sync.py | 53 + ...tact_center_insights_get_analysis_async.py | 45 + ...ntact_center_insights_get_analysis_sync.py | 45 + ..._center_insights_get_conversation_async.py | 45 + ...t_center_insights_get_conversation_sync.py | 45 + ...contact_center_insights_get_issue_async.py | 45 + ...t_center_insights_get_issue_model_async.py | 45 + ...ct_center_insights_get_issue_model_sync.py | 45 + ..._contact_center_insights_get_issue_sync.py | 45 + ...enter_insights_get_phrase_matcher_async.py | 45 + ...center_insights_get_phrase_matcher_sync.py | 45 + ...tact_center_insights_get_settings_async.py | 45 + ...ntact_center_insights_get_settings_sync.py | 45 + ..._contact_center_insights_get_view_async.py | 45 + ...1_contact_center_insights_get_view_sync.py | 45 + ...act_center_insights_list_analyses_async.py | 46 + ...tact_center_insights_list_analyses_sync.py | 46 + ...enter_insights_list_conversations_async.py | 46 + ...center_insights_list_conversations_sync.py | 46 + ...center_insights_list_issue_models_async.py | 45 + ..._center_insights_list_issue_models_sync.py | 45 + ...ntact_center_insights_list_issues_async.py | 45 + ...ontact_center_insights_list_issues_sync.py | 45 + ...ter_insights_list_phrase_matchers_async.py | 46 + ...nter_insights_list_phrase_matchers_sync.py | 46 + ...ontact_center_insights_list_views_async.py | 46 + ...contact_center_insights_list_views_sync.py | 46 + ...ter_insights_undeploy_issue_model_async.py | 49 + ...nter_insights_undeploy_issue_model_sync.py | 49 + ...nter_insights_update_conversation_async.py | 44 + ...enter_insights_update_conversation_sync.py | 44 + ...tact_center_insights_update_issue_async.py | 44 + ...enter_insights_update_issue_model_async.py | 44 + ...center_insights_update_issue_model_sync.py | 44 + ...ntact_center_insights_update_issue_sync.py | 44 + ...er_insights_update_phrase_matcher_async.py | 48 + ...ter_insights_update_phrase_matcher_sync.py | 48 + ...t_center_insights_update_settings_async.py | 44 + ...ct_center_insights_update_settings_sync.py | 44 + ...ntact_center_insights_update_view_async.py | 44 + ...ontact_center_insights_update_view_sync.py | 44 + ...t_metadata_contact center insights_v1.json | 3014 +++++++++++++++++ 71 files changed, 7504 insertions(+) create mode 100644 packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_calculate_issue_model_stats_async.py create mode 100644 packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_calculate_issue_model_stats_sync.py create mode 100644 packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_calculate_stats_async.py create mode 100644 packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_calculate_stats_sync.py create mode 100644 packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_create_analysis_async.py create mode 100644 packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_create_analysis_sync.py create mode 100644 packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_create_conversation_async.py create mode 100644 packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_create_conversation_sync.py create mode 100644 packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_create_issue_model_async.py create mode 100644 packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_create_issue_model_sync.py create mode 100644 packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_create_phrase_matcher_async.py create mode 100644 packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_create_phrase_matcher_sync.py create mode 100644 packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_create_view_async.py create mode 100644 packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_create_view_sync.py create mode 100644 packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_delete_analysis_async.py create mode 100644 packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_delete_analysis_sync.py create mode 100644 packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_delete_conversation_async.py create mode 100644 packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_delete_conversation_sync.py create mode 100644 packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_delete_issue_model_async.py create mode 100644 packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_delete_issue_model_sync.py create mode 100644 packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_delete_phrase_matcher_async.py create mode 100644 packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_delete_phrase_matcher_sync.py create mode 100644 packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_delete_view_async.py create mode 100644 packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_delete_view_sync.py create mode 100644 packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_deploy_issue_model_async.py create mode 100644 packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_deploy_issue_model_sync.py create mode 100644 packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_export_insights_data_async.py create mode 100644 packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_export_insights_data_sync.py create mode 100644 packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_get_analysis_async.py create mode 100644 packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_get_analysis_sync.py create mode 100644 packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_get_conversation_async.py create mode 100644 packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_get_conversation_sync.py create mode 100644 packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_get_issue_async.py create mode 100644 packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_get_issue_model_async.py create mode 100644 packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_get_issue_model_sync.py create mode 100644 packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_get_issue_sync.py create mode 100644 packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_get_phrase_matcher_async.py create mode 100644 packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_get_phrase_matcher_sync.py create mode 100644 packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_get_settings_async.py create mode 100644 packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_get_settings_sync.py create mode 100644 packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_get_view_async.py create mode 100644 packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_get_view_sync.py create mode 100644 packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_list_analyses_async.py create mode 100644 packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_list_analyses_sync.py create mode 100644 packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_list_conversations_async.py create mode 100644 packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_list_conversations_sync.py create mode 100644 packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_list_issue_models_async.py create mode 100644 packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_list_issue_models_sync.py create mode 100644 packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_list_issues_async.py create mode 100644 packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_list_issues_sync.py create mode 100644 packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_list_phrase_matchers_async.py create mode 100644 packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_list_phrase_matchers_sync.py create mode 100644 packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_list_views_async.py create mode 100644 packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_list_views_sync.py create mode 100644 packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_undeploy_issue_model_async.py create mode 100644 packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_undeploy_issue_model_sync.py create mode 100644 packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_update_conversation_async.py create mode 100644 packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_update_conversation_sync.py create mode 100644 packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_update_issue_async.py create mode 100644 packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_update_issue_model_async.py create mode 100644 packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_update_issue_model_sync.py create mode 100644 packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_update_issue_sync.py create mode 100644 packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_update_phrase_matcher_async.py create mode 100644 packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_update_phrase_matcher_sync.py create mode 100644 packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_update_settings_async.py create mode 100644 packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_update_settings_sync.py create mode 100644 packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_update_view_async.py create mode 100644 packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_update_view_sync.py create mode 100644 packages/google-cloud-contact-center-insights/samples/generated_samples/snippet_metadata_contact center insights_v1.json diff --git a/packages/google-cloud-contact-center-insights/google/cloud/contact_center_insights_v1/services/contact_center_insights/async_client.py b/packages/google-cloud-contact-center-insights/google/cloud/contact_center_insights_v1/services/contact_center_insights/async_client.py index 4212368ab56f..cf48466f7933 100644 --- a/packages/google-cloud-contact-center-insights/google/cloud/contact_center_insights_v1/services/contact_center_insights/async_client.py +++ b/packages/google-cloud-contact-center-insights/google/cloud/contact_center_insights_v1/services/contact_center_insights/async_client.py @@ -251,6 +251,25 @@ async def create_conversation( ) -> resources.Conversation: r"""Creates a conversation. + .. code-block:: + + from google.cloud import contact_center_insights_v1 + + def sample_create_conversation(): + # Create a client + client = contact_center_insights_v1.ContactCenterInsightsClient() + + # Initialize request argument(s) + request = contact_center_insights_v1.CreateConversationRequest( + parent="parent_value", + ) + + # Make the request + response = client.create_conversation(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.contact_center_insights_v1.types.CreateConversationRequest, dict]): The request object. Request to create a conversation. @@ -344,6 +363,24 @@ async def update_conversation( ) -> resources.Conversation: r"""Updates a conversation. + .. code-block:: + + from google.cloud import contact_center_insights_v1 + + def sample_update_conversation(): + # Create a client + client = contact_center_insights_v1.ContactCenterInsightsClient() + + # Initialize request argument(s) + request = contact_center_insights_v1.UpdateConversationRequest( + ) + + # Make the request + response = client.update_conversation(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.contact_center_insights_v1.types.UpdateConversationRequest, dict]): The request object. The request to update a @@ -422,6 +459,25 @@ async def get_conversation( ) -> resources.Conversation: r"""Gets a conversation. + .. code-block:: + + from google.cloud import contact_center_insights_v1 + + def sample_get_conversation(): + # Create a client + client = contact_center_insights_v1.ContactCenterInsightsClient() + + # Initialize request argument(s) + request = contact_center_insights_v1.GetConversationRequest( + name="name_value", + ) + + # Make the request + response = client.get_conversation(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.contact_center_insights_v1.types.GetConversationRequest, dict]): The request object. The request to get a conversation. @@ -490,6 +546,26 @@ async def list_conversations( ) -> pagers.ListConversationsAsyncPager: r"""Lists conversations. + .. code-block:: + + from google.cloud import contact_center_insights_v1 + + def sample_list_conversations(): + # Create a client + client = contact_center_insights_v1.ContactCenterInsightsClient() + + # Initialize request argument(s) + request = contact_center_insights_v1.ListConversationsRequest( + parent="parent_value", + ) + + # Make the request + page_result = client.list_conversations(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.contact_center_insights_v1.types.ListConversationsRequest, dict]): The request object. Request to list conversations. @@ -569,6 +645,22 @@ async def delete_conversation( ) -> None: r"""Deletes a conversation. + .. code-block:: + + from google.cloud import contact_center_insights_v1 + + def sample_delete_conversation(): + # Create a client + client = contact_center_insights_v1.ContactCenterInsightsClient() + + # Initialize request argument(s) + request = contact_center_insights_v1.DeleteConversationRequest( + name="name_value", + ) + + # Make the request + client.delete_conversation(request=request) + Args: request (Union[google.cloud.contact_center_insights_v1.types.DeleteConversationRequest, dict]): The request object. The request to delete a @@ -635,6 +727,30 @@ async def create_analysis( r"""Creates an analysis. The long running operation is done when the analysis has completed. + + .. code-block:: + + from google.cloud import contact_center_insights_v1 + + def sample_create_analysis(): + # Create a client + client = contact_center_insights_v1.ContactCenterInsightsClient() + + # Initialize request argument(s) + request = contact_center_insights_v1.CreateAnalysisRequest( + parent="parent_value", + ) + + # Make the request + operation = client.create_analysis(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + Args: request (Union[google.cloud.contact_center_insights_v1.types.CreateAnalysisRequest, dict]): The request object. The request to create an analysis. @@ -723,6 +839,25 @@ async def get_analysis( ) -> resources.Analysis: r"""Gets an analysis. + .. code-block:: + + from google.cloud import contact_center_insights_v1 + + def sample_get_analysis(): + # Create a client + client = contact_center_insights_v1.ContactCenterInsightsClient() + + # Initialize request argument(s) + request = contact_center_insights_v1.GetAnalysisRequest( + name="name_value", + ) + + # Make the request + response = client.get_analysis(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.contact_center_insights_v1.types.GetAnalysisRequest, dict]): The request object. The request to get an analysis. @@ -791,6 +926,26 @@ async def list_analyses( ) -> pagers.ListAnalysesAsyncPager: r"""Lists analyses. + .. code-block:: + + from google.cloud import contact_center_insights_v1 + + def sample_list_analyses(): + # Create a client + client = contact_center_insights_v1.ContactCenterInsightsClient() + + # Initialize request argument(s) + request = contact_center_insights_v1.ListAnalysesRequest( + parent="parent_value", + ) + + # Make the request + page_result = client.list_analyses(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.contact_center_insights_v1.types.ListAnalysesRequest, dict]): The request object. The request to list analyses. @@ -869,6 +1024,22 @@ async def delete_analysis( ) -> None: r"""Deletes an analysis. + .. code-block:: + + from google.cloud import contact_center_insights_v1 + + def sample_delete_analysis(): + # Create a client + client = contact_center_insights_v1.ContactCenterInsightsClient() + + # Initialize request argument(s) + request = contact_center_insights_v1.DeleteAnalysisRequest( + name="name_value", + ) + + # Make the request + client.delete_analysis(request=request) + Args: request (Union[google.cloud.contact_center_insights_v1.types.DeleteAnalysisRequest, dict]): The request object. The request to delete an analysis. @@ -933,6 +1104,34 @@ async def export_insights_data( r"""Export insights data to a destination defined in the request body. + + .. code-block:: + + from google.cloud import contact_center_insights_v1 + + def sample_export_insights_data(): + # Create a client + client = contact_center_insights_v1.ContactCenterInsightsClient() + + # Initialize request argument(s) + big_query_destination = contact_center_insights_v1.BigQueryDestination() + big_query_destination.dataset = "dataset_value" + + request = contact_center_insights_v1.ExportInsightsDataRequest( + big_query_destination=big_query_destination, + parent="parent_value", + ) + + # Make the request + operation = client.export_insights_data(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + Args: request (Union[google.cloud.contact_center_insights_v1.types.ExportInsightsDataRequest, dict]): The request object. The request to export insights. @@ -1015,6 +1214,29 @@ async def create_issue_model( ) -> operation_async.AsyncOperation: r"""Creates an issue model. + .. code-block:: + + from google.cloud import contact_center_insights_v1 + + def sample_create_issue_model(): + # Create a client + client = contact_center_insights_v1.ContactCenterInsightsClient() + + # Initialize request argument(s) + request = contact_center_insights_v1.CreateIssueModelRequest( + parent="parent_value", + ) + + # Make the request + operation = client.create_issue_model(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + Args: request (Union[google.cloud.contact_center_insights_v1.types.CreateIssueModelRequest, dict]): The request object. The request to create an issue @@ -1105,6 +1327,24 @@ async def update_issue_model( ) -> resources.IssueModel: r"""Updates an issue model. + .. code-block:: + + from google.cloud import contact_center_insights_v1 + + def sample_update_issue_model(): + # Create a client + client = contact_center_insights_v1.ContactCenterInsightsClient() + + # Initialize request argument(s) + request = contact_center_insights_v1.UpdateIssueModelRequest( + ) + + # Make the request + response = client.update_issue_model(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.contact_center_insights_v1.types.UpdateIssueModelRequest, dict]): The request object. The request to update an issue @@ -1183,6 +1423,25 @@ async def get_issue_model( ) -> resources.IssueModel: r"""Gets an issue model. + .. code-block:: + + from google.cloud import contact_center_insights_v1 + + def sample_get_issue_model(): + # Create a client + client = contact_center_insights_v1.ContactCenterInsightsClient() + + # Initialize request argument(s) + request = contact_center_insights_v1.GetIssueModelRequest( + name="name_value", + ) + + # Make the request + response = client.get_issue_model(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.contact_center_insights_v1.types.GetIssueModelRequest, dict]): The request object. The request to get an issue model. @@ -1251,6 +1510,25 @@ async def list_issue_models( ) -> contact_center_insights.ListIssueModelsResponse: r"""Lists issue models. + .. code-block:: + + from google.cloud import contact_center_insights_v1 + + def sample_list_issue_models(): + # Create a client + client = contact_center_insights_v1.ContactCenterInsightsClient() + + # Initialize request argument(s) + request = contact_center_insights_v1.ListIssueModelsRequest( + parent="parent_value", + ) + + # Make the request + response = client.list_issue_models(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.contact_center_insights_v1.types.ListIssueModelsRequest, dict]): The request object. Request to list issue models. @@ -1319,6 +1597,29 @@ async def delete_issue_model( ) -> operation_async.AsyncOperation: r"""Deletes an issue model. + .. code-block:: + + from google.cloud import contact_center_insights_v1 + + def sample_delete_issue_model(): + # Create a client + client = contact_center_insights_v1.ContactCenterInsightsClient() + + # Initialize request argument(s) + request = contact_center_insights_v1.DeleteIssueModelRequest( + name="name_value", + ) + + # Make the request + operation = client.delete_issue_model(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + Args: request (Union[google.cloud.contact_center_insights_v1.types.DeleteIssueModelRequest, dict]): The request object. The request to delete an issue @@ -1413,6 +1714,30 @@ async def deploy_issue_model( is already deployed. An issue model can only be used in analysis after it has been deployed. + + .. code-block:: + + from google.cloud import contact_center_insights_v1 + + def sample_deploy_issue_model(): + # Create a client + client = contact_center_insights_v1.ContactCenterInsightsClient() + + # Initialize request argument(s) + request = contact_center_insights_v1.DeployIssueModelRequest( + name="name_value", + ) + + # Make the request + operation = client.deploy_issue_model(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + Args: request (Union[google.cloud.contact_center_insights_v1.types.DeployIssueModelRequest, dict]): The request object. The request to deploy an issue @@ -1495,6 +1820,30 @@ async def undeploy_issue_model( An issue model can not be used in analysis after it has been undeployed. + + .. code-block:: + + from google.cloud import contact_center_insights_v1 + + def sample_undeploy_issue_model(): + # Create a client + client = contact_center_insights_v1.ContactCenterInsightsClient() + + # Initialize request argument(s) + request = contact_center_insights_v1.UndeployIssueModelRequest( + name="name_value", + ) + + # Make the request + operation = client.undeploy_issue_model(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + Args: request (Union[google.cloud.contact_center_insights_v1.types.UndeployIssueModelRequest, dict]): The request object. The request to undeploy an issue @@ -1577,6 +1926,25 @@ async def get_issue( ) -> resources.Issue: r"""Gets an issue. + .. code-block:: + + from google.cloud import contact_center_insights_v1 + + def sample_get_issue(): + # Create a client + client = contact_center_insights_v1.ContactCenterInsightsClient() + + # Initialize request argument(s) + request = contact_center_insights_v1.GetIssueRequest( + name="name_value", + ) + + # Make the request + response = client.get_issue(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.contact_center_insights_v1.types.GetIssueRequest, dict]): The request object. The request to get an issue. @@ -1645,6 +2013,25 @@ async def list_issues( ) -> contact_center_insights.ListIssuesResponse: r"""Lists issues. + .. code-block:: + + from google.cloud import contact_center_insights_v1 + + def sample_list_issues(): + # Create a client + client = contact_center_insights_v1.ContactCenterInsightsClient() + + # Initialize request argument(s) + request = contact_center_insights_v1.ListIssuesRequest( + parent="parent_value", + ) + + # Make the request + response = client.list_issues(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.contact_center_insights_v1.types.ListIssuesRequest, dict]): The request object. Request to list issues. @@ -1714,6 +2101,24 @@ async def update_issue( ) -> resources.Issue: r"""Updates an issue. + .. code-block:: + + from google.cloud import contact_center_insights_v1 + + def sample_update_issue(): + # Create a client + client = contact_center_insights_v1.ContactCenterInsightsClient() + + # Initialize request argument(s) + request = contact_center_insights_v1.UpdateIssueRequest( + ) + + # Make the request + response = client.update_issue(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.contact_center_insights_v1.types.UpdateIssueRequest, dict]): The request object. The request to update an issue. @@ -1793,6 +2198,25 @@ async def calculate_issue_model_stats( ) -> contact_center_insights.CalculateIssueModelStatsResponse: r"""Gets an issue model's statistics. + .. code-block:: + + from google.cloud import contact_center_insights_v1 + + def sample_calculate_issue_model_stats(): + # Create a client + client = contact_center_insights_v1.ContactCenterInsightsClient() + + # Initialize request argument(s) + request = contact_center_insights_v1.CalculateIssueModelStatsRequest( + issue_model="issue_model_value", + ) + + # Make the request + response = client.calculate_issue_model_stats(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.contact_center_insights_v1.types.CalculateIssueModelStatsRequest, dict]): The request object. Request to get statistics of an @@ -1867,6 +2291,29 @@ async def create_phrase_matcher( ) -> resources.PhraseMatcher: r"""Creates a phrase matcher. + .. code-block:: + + from google.cloud import contact_center_insights_v1 + + def sample_create_phrase_matcher(): + # Create a client + client = contact_center_insights_v1.ContactCenterInsightsClient() + + # Initialize request argument(s) + phrase_matcher = contact_center_insights_v1.PhraseMatcher() + phrase_matcher.type_ = "ANY_OF" + + request = contact_center_insights_v1.CreatePhraseMatcherRequest( + parent="parent_value", + phrase_matcher=phrase_matcher, + ) + + # Make the request + response = client.create_phrase_matcher(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.contact_center_insights_v1.types.CreatePhraseMatcherRequest, dict]): The request object. Request to create a phrase matcher. @@ -1947,6 +2394,25 @@ async def get_phrase_matcher( ) -> resources.PhraseMatcher: r"""Gets a phrase matcher. + .. code-block:: + + from google.cloud import contact_center_insights_v1 + + def sample_get_phrase_matcher(): + # Create a client + client = contact_center_insights_v1.ContactCenterInsightsClient() + + # Initialize request argument(s) + request = contact_center_insights_v1.GetPhraseMatcherRequest( + name="name_value", + ) + + # Make the request + response = client.get_phrase_matcher(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.contact_center_insights_v1.types.GetPhraseMatcherRequest, dict]): The request object. The request to get a a phrase @@ -2016,6 +2482,26 @@ async def list_phrase_matchers( ) -> pagers.ListPhraseMatchersAsyncPager: r"""Lists phrase matchers. + .. code-block:: + + from google.cloud import contact_center_insights_v1 + + def sample_list_phrase_matchers(): + # Create a client + client = contact_center_insights_v1.ContactCenterInsightsClient() + + # Initialize request argument(s) + request = contact_center_insights_v1.ListPhraseMatchersRequest( + parent="parent_value", + ) + + # Make the request + page_result = client.list_phrase_matchers(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.contact_center_insights_v1.types.ListPhraseMatchersRequest, dict]): The request object. Request to list phrase matchers. @@ -2095,6 +2581,22 @@ async def delete_phrase_matcher( ) -> None: r"""Deletes a phrase matcher. + .. code-block:: + + from google.cloud import contact_center_insights_v1 + + def sample_delete_phrase_matcher(): + # Create a client + client = contact_center_insights_v1.ContactCenterInsightsClient() + + # Initialize request argument(s) + request = contact_center_insights_v1.DeletePhraseMatcherRequest( + name="name_value", + ) + + # Make the request + client.delete_phrase_matcher(request=request) + Args: request (Union[google.cloud.contact_center_insights_v1.types.DeletePhraseMatcherRequest, dict]): The request object. The request to delete a phrase @@ -2160,6 +2662,28 @@ async def update_phrase_matcher( ) -> resources.PhraseMatcher: r"""Updates a phrase matcher. + .. code-block:: + + from google.cloud import contact_center_insights_v1 + + def sample_update_phrase_matcher(): + # Create a client + client = contact_center_insights_v1.ContactCenterInsightsClient() + + # Initialize request argument(s) + phrase_matcher = contact_center_insights_v1.PhraseMatcher() + phrase_matcher.type_ = "ANY_OF" + + request = contact_center_insights_v1.UpdatePhraseMatcherRequest( + phrase_matcher=phrase_matcher, + ) + + # Make the request + response = client.update_phrase_matcher(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.contact_center_insights_v1.types.UpdatePhraseMatcherRequest, dict]): The request object. The request to update a phrase @@ -2238,6 +2762,25 @@ async def calculate_stats( ) -> contact_center_insights.CalculateStatsResponse: r"""Gets conversation statistics. + .. code-block:: + + from google.cloud import contact_center_insights_v1 + + def sample_calculate_stats(): + # Create a client + client = contact_center_insights_v1.ContactCenterInsightsClient() + + # Initialize request argument(s) + request = contact_center_insights_v1.CalculateStatsRequest( + location="location_value", + ) + + # Make the request + response = client.calculate_stats(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.contact_center_insights_v1.types.CalculateStatsRequest, dict]): The request object. The request for calculating @@ -2309,6 +2852,25 @@ async def get_settings( ) -> resources.Settings: r"""Gets project-level settings. + .. code-block:: + + from google.cloud import contact_center_insights_v1 + + def sample_get_settings(): + # Create a client + client = contact_center_insights_v1.ContactCenterInsightsClient() + + # Initialize request argument(s) + request = contact_center_insights_v1.GetSettingsRequest( + name="name_value", + ) + + # Make the request + response = client.get_settings(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.contact_center_insights_v1.types.GetSettingsRequest, dict]): The request object. The request to get project-level @@ -2379,6 +2941,24 @@ async def update_settings( ) -> resources.Settings: r"""Updates project-level settings. + .. code-block:: + + from google.cloud import contact_center_insights_v1 + + def sample_update_settings(): + # Create a client + client = contact_center_insights_v1.ContactCenterInsightsClient() + + # Initialize request argument(s) + request = contact_center_insights_v1.UpdateSettingsRequest( + ) + + # Make the request + response = client.update_settings(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.contact_center_insights_v1.types.UpdateSettingsRequest, dict]): The request object. The request to update project-level @@ -2458,6 +3038,25 @@ async def create_view( ) -> resources.View: r"""Creates a view. + .. code-block:: + + from google.cloud import contact_center_insights_v1 + + def sample_create_view(): + # Create a client + client = contact_center_insights_v1.ContactCenterInsightsClient() + + # Initialize request argument(s) + request = contact_center_insights_v1.CreateViewRequest( + parent="parent_value", + ) + + # Make the request + response = client.create_view(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.contact_center_insights_v1.types.CreateViewRequest, dict]): The request object. The request to create a view. @@ -2537,6 +3136,25 @@ async def get_view( ) -> resources.View: r"""Gets a view. + .. code-block:: + + from google.cloud import contact_center_insights_v1 + + def sample_get_view(): + # Create a client + client = contact_center_insights_v1.ContactCenterInsightsClient() + + # Initialize request argument(s) + request = contact_center_insights_v1.GetViewRequest( + name="name_value", + ) + + # Make the request + response = client.get_view(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.contact_center_insights_v1.types.GetViewRequest, dict]): The request object. The request to get a view. @@ -2605,6 +3223,26 @@ async def list_views( ) -> pagers.ListViewsAsyncPager: r"""Lists views. + .. code-block:: + + from google.cloud import contact_center_insights_v1 + + def sample_list_views(): + # Create a client + client = contact_center_insights_v1.ContactCenterInsightsClient() + + # Initialize request argument(s) + request = contact_center_insights_v1.ListViewsRequest( + parent="parent_value", + ) + + # Make the request + page_result = client.list_views(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.contact_center_insights_v1.types.ListViewsRequest, dict]): The request object. The request to list views. @@ -2684,6 +3322,24 @@ async def update_view( ) -> resources.View: r"""Updates a view. + .. code-block:: + + from google.cloud import contact_center_insights_v1 + + def sample_update_view(): + # Create a client + client = contact_center_insights_v1.ContactCenterInsightsClient() + + # Initialize request argument(s) + request = contact_center_insights_v1.UpdateViewRequest( + ) + + # Make the request + response = client.update_view(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.contact_center_insights_v1.types.UpdateViewRequest, dict]): The request object. The request to update a view. @@ -2759,6 +3415,22 @@ async def delete_view( ) -> None: r"""Deletes a view. + .. code-block:: + + from google.cloud import contact_center_insights_v1 + + def sample_delete_view(): + # Create a client + client = contact_center_insights_v1.ContactCenterInsightsClient() + + # Initialize request argument(s) + request = contact_center_insights_v1.DeleteViewRequest( + name="name_value", + ) + + # Make the request + client.delete_view(request=request) + Args: request (Union[google.cloud.contact_center_insights_v1.types.DeleteViewRequest, dict]): The request object. The request to delete a view. diff --git a/packages/google-cloud-contact-center-insights/google/cloud/contact_center_insights_v1/services/contact_center_insights/client.py b/packages/google-cloud-contact-center-insights/google/cloud/contact_center_insights_v1/services/contact_center_insights/client.py index 03396898f424..0267d639ecee 100644 --- a/packages/google-cloud-contact-center-insights/google/cloud/contact_center_insights_v1/services/contact_center_insights/client.py +++ b/packages/google-cloud-contact-center-insights/google/cloud/contact_center_insights_v1/services/contact_center_insights/client.py @@ -541,6 +541,26 @@ def create_conversation( ) -> resources.Conversation: r"""Creates a conversation. + + .. code-block:: + + from google.cloud import contact_center_insights_v1 + + def sample_create_conversation(): + # Create a client + client = contact_center_insights_v1.ContactCenterInsightsClient() + + # Initialize request argument(s) + request = contact_center_insights_v1.CreateConversationRequest( + parent="parent_value", + ) + + # Make the request + response = client.create_conversation(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.contact_center_insights_v1.types.CreateConversationRequest, dict]): The request object. Request to create a conversation. @@ -634,6 +654,25 @@ def update_conversation( ) -> resources.Conversation: r"""Updates a conversation. + + .. code-block:: + + from google.cloud import contact_center_insights_v1 + + def sample_update_conversation(): + # Create a client + client = contact_center_insights_v1.ContactCenterInsightsClient() + + # Initialize request argument(s) + request = contact_center_insights_v1.UpdateConversationRequest( + ) + + # Make the request + response = client.update_conversation(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.contact_center_insights_v1.types.UpdateConversationRequest, dict]): The request object. The request to update a @@ -712,6 +751,26 @@ def get_conversation( ) -> resources.Conversation: r"""Gets a conversation. + + .. code-block:: + + from google.cloud import contact_center_insights_v1 + + def sample_get_conversation(): + # Create a client + client = contact_center_insights_v1.ContactCenterInsightsClient() + + # Initialize request argument(s) + request = contact_center_insights_v1.GetConversationRequest( + name="name_value", + ) + + # Make the request + response = client.get_conversation(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.contact_center_insights_v1.types.GetConversationRequest, dict]): The request object. The request to get a conversation. @@ -780,6 +839,27 @@ def list_conversations( ) -> pagers.ListConversationsPager: r"""Lists conversations. + + .. code-block:: + + from google.cloud import contact_center_insights_v1 + + def sample_list_conversations(): + # Create a client + client = contact_center_insights_v1.ContactCenterInsightsClient() + + # Initialize request argument(s) + request = contact_center_insights_v1.ListConversationsRequest( + parent="parent_value", + ) + + # Make the request + page_result = client.list_conversations(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.contact_center_insights_v1.types.ListConversationsRequest, dict]): The request object. Request to list conversations. @@ -859,6 +939,23 @@ def delete_conversation( ) -> None: r"""Deletes a conversation. + + .. code-block:: + + from google.cloud import contact_center_insights_v1 + + def sample_delete_conversation(): + # Create a client + client = contact_center_insights_v1.ContactCenterInsightsClient() + + # Initialize request argument(s) + request = contact_center_insights_v1.DeleteConversationRequest( + name="name_value", + ) + + # Make the request + client.delete_conversation(request=request) + Args: request (Union[google.cloud.contact_center_insights_v1.types.DeleteConversationRequest, dict]): The request object. The request to delete a @@ -925,6 +1022,31 @@ def create_analysis( r"""Creates an analysis. The long running operation is done when the analysis has completed. + + + .. code-block:: + + from google.cloud import contact_center_insights_v1 + + def sample_create_analysis(): + # Create a client + client = contact_center_insights_v1.ContactCenterInsightsClient() + + # Initialize request argument(s) + request = contact_center_insights_v1.CreateAnalysisRequest( + parent="parent_value", + ) + + # Make the request + operation = client.create_analysis(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + Args: request (Union[google.cloud.contact_center_insights_v1.types.CreateAnalysisRequest, dict]): The request object. The request to create an analysis. @@ -1013,6 +1135,26 @@ def get_analysis( ) -> resources.Analysis: r"""Gets an analysis. + + .. code-block:: + + from google.cloud import contact_center_insights_v1 + + def sample_get_analysis(): + # Create a client + client = contact_center_insights_v1.ContactCenterInsightsClient() + + # Initialize request argument(s) + request = contact_center_insights_v1.GetAnalysisRequest( + name="name_value", + ) + + # Make the request + response = client.get_analysis(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.contact_center_insights_v1.types.GetAnalysisRequest, dict]): The request object. The request to get an analysis. @@ -1081,6 +1223,27 @@ def list_analyses( ) -> pagers.ListAnalysesPager: r"""Lists analyses. + + .. code-block:: + + from google.cloud import contact_center_insights_v1 + + def sample_list_analyses(): + # Create a client + client = contact_center_insights_v1.ContactCenterInsightsClient() + + # Initialize request argument(s) + request = contact_center_insights_v1.ListAnalysesRequest( + parent="parent_value", + ) + + # Make the request + page_result = client.list_analyses(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.contact_center_insights_v1.types.ListAnalysesRequest, dict]): The request object. The request to list analyses. @@ -1159,6 +1322,23 @@ def delete_analysis( ) -> None: r"""Deletes an analysis. + + .. code-block:: + + from google.cloud import contact_center_insights_v1 + + def sample_delete_analysis(): + # Create a client + client = contact_center_insights_v1.ContactCenterInsightsClient() + + # Initialize request argument(s) + request = contact_center_insights_v1.DeleteAnalysisRequest( + name="name_value", + ) + + # Make the request + client.delete_analysis(request=request) + Args: request (Union[google.cloud.contact_center_insights_v1.types.DeleteAnalysisRequest, dict]): The request object. The request to delete an analysis. @@ -1223,6 +1403,35 @@ def export_insights_data( r"""Export insights data to a destination defined in the request body. + + + .. code-block:: + + from google.cloud import contact_center_insights_v1 + + def sample_export_insights_data(): + # Create a client + client = contact_center_insights_v1.ContactCenterInsightsClient() + + # Initialize request argument(s) + big_query_destination = contact_center_insights_v1.BigQueryDestination() + big_query_destination.dataset = "dataset_value" + + request = contact_center_insights_v1.ExportInsightsDataRequest( + big_query_destination=big_query_destination, + parent="parent_value", + ) + + # Make the request + operation = client.export_insights_data(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + Args: request (Union[google.cloud.contact_center_insights_v1.types.ExportInsightsDataRequest, dict]): The request object. The request to export insights. @@ -1305,6 +1514,30 @@ def create_issue_model( ) -> operation.Operation: r"""Creates an issue model. + + .. code-block:: + + from google.cloud import contact_center_insights_v1 + + def sample_create_issue_model(): + # Create a client + client = contact_center_insights_v1.ContactCenterInsightsClient() + + # Initialize request argument(s) + request = contact_center_insights_v1.CreateIssueModelRequest( + parent="parent_value", + ) + + # Make the request + operation = client.create_issue_model(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + Args: request (Union[google.cloud.contact_center_insights_v1.types.CreateIssueModelRequest, dict]): The request object. The request to create an issue @@ -1395,6 +1628,25 @@ def update_issue_model( ) -> resources.IssueModel: r"""Updates an issue model. + + .. code-block:: + + from google.cloud import contact_center_insights_v1 + + def sample_update_issue_model(): + # Create a client + client = contact_center_insights_v1.ContactCenterInsightsClient() + + # Initialize request argument(s) + request = contact_center_insights_v1.UpdateIssueModelRequest( + ) + + # Make the request + response = client.update_issue_model(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.contact_center_insights_v1.types.UpdateIssueModelRequest, dict]): The request object. The request to update an issue @@ -1473,6 +1725,26 @@ def get_issue_model( ) -> resources.IssueModel: r"""Gets an issue model. + + .. code-block:: + + from google.cloud import contact_center_insights_v1 + + def sample_get_issue_model(): + # Create a client + client = contact_center_insights_v1.ContactCenterInsightsClient() + + # Initialize request argument(s) + request = contact_center_insights_v1.GetIssueModelRequest( + name="name_value", + ) + + # Make the request + response = client.get_issue_model(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.contact_center_insights_v1.types.GetIssueModelRequest, dict]): The request object. The request to get an issue model. @@ -1541,6 +1813,26 @@ def list_issue_models( ) -> contact_center_insights.ListIssueModelsResponse: r"""Lists issue models. + + .. code-block:: + + from google.cloud import contact_center_insights_v1 + + def sample_list_issue_models(): + # Create a client + client = contact_center_insights_v1.ContactCenterInsightsClient() + + # Initialize request argument(s) + request = contact_center_insights_v1.ListIssueModelsRequest( + parent="parent_value", + ) + + # Make the request + response = client.list_issue_models(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.contact_center_insights_v1.types.ListIssueModelsRequest, dict]): The request object. Request to list issue models. @@ -1609,6 +1901,30 @@ def delete_issue_model( ) -> operation.Operation: r"""Deletes an issue model. + + .. code-block:: + + from google.cloud import contact_center_insights_v1 + + def sample_delete_issue_model(): + # Create a client + client = contact_center_insights_v1.ContactCenterInsightsClient() + + # Initialize request argument(s) + request = contact_center_insights_v1.DeleteIssueModelRequest( + name="name_value", + ) + + # Make the request + operation = client.delete_issue_model(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + Args: request (Union[google.cloud.contact_center_insights_v1.types.DeleteIssueModelRequest, dict]): The request object. The request to delete an issue @@ -1703,6 +2019,31 @@ def deploy_issue_model( is already deployed. An issue model can only be used in analysis after it has been deployed. + + + .. code-block:: + + from google.cloud import contact_center_insights_v1 + + def sample_deploy_issue_model(): + # Create a client + client = contact_center_insights_v1.ContactCenterInsightsClient() + + # Initialize request argument(s) + request = contact_center_insights_v1.DeployIssueModelRequest( + name="name_value", + ) + + # Make the request + operation = client.deploy_issue_model(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + Args: request (Union[google.cloud.contact_center_insights_v1.types.DeployIssueModelRequest, dict]): The request object. The request to deploy an issue @@ -1785,6 +2126,31 @@ def undeploy_issue_model( An issue model can not be used in analysis after it has been undeployed. + + + .. code-block:: + + from google.cloud import contact_center_insights_v1 + + def sample_undeploy_issue_model(): + # Create a client + client = contact_center_insights_v1.ContactCenterInsightsClient() + + # Initialize request argument(s) + request = contact_center_insights_v1.UndeployIssueModelRequest( + name="name_value", + ) + + # Make the request + operation = client.undeploy_issue_model(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + Args: request (Union[google.cloud.contact_center_insights_v1.types.UndeployIssueModelRequest, dict]): The request object. The request to undeploy an issue @@ -1867,6 +2233,26 @@ def get_issue( ) -> resources.Issue: r"""Gets an issue. + + .. code-block:: + + from google.cloud import contact_center_insights_v1 + + def sample_get_issue(): + # Create a client + client = contact_center_insights_v1.ContactCenterInsightsClient() + + # Initialize request argument(s) + request = contact_center_insights_v1.GetIssueRequest( + name="name_value", + ) + + # Make the request + response = client.get_issue(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.contact_center_insights_v1.types.GetIssueRequest, dict]): The request object. The request to get an issue. @@ -1935,6 +2321,26 @@ def list_issues( ) -> contact_center_insights.ListIssuesResponse: r"""Lists issues. + + .. code-block:: + + from google.cloud import contact_center_insights_v1 + + def sample_list_issues(): + # Create a client + client = contact_center_insights_v1.ContactCenterInsightsClient() + + # Initialize request argument(s) + request = contact_center_insights_v1.ListIssuesRequest( + parent="parent_value", + ) + + # Make the request + response = client.list_issues(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.contact_center_insights_v1.types.ListIssuesRequest, dict]): The request object. Request to list issues. @@ -2004,6 +2410,25 @@ def update_issue( ) -> resources.Issue: r"""Updates an issue. + + .. code-block:: + + from google.cloud import contact_center_insights_v1 + + def sample_update_issue(): + # Create a client + client = contact_center_insights_v1.ContactCenterInsightsClient() + + # Initialize request argument(s) + request = contact_center_insights_v1.UpdateIssueRequest( + ) + + # Make the request + response = client.update_issue(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.contact_center_insights_v1.types.UpdateIssueRequest, dict]): The request object. The request to update an issue. @@ -2083,6 +2508,26 @@ def calculate_issue_model_stats( ) -> contact_center_insights.CalculateIssueModelStatsResponse: r"""Gets an issue model's statistics. + + .. code-block:: + + from google.cloud import contact_center_insights_v1 + + def sample_calculate_issue_model_stats(): + # Create a client + client = contact_center_insights_v1.ContactCenterInsightsClient() + + # Initialize request argument(s) + request = contact_center_insights_v1.CalculateIssueModelStatsRequest( + issue_model="issue_model_value", + ) + + # Make the request + response = client.calculate_issue_model_stats(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.contact_center_insights_v1.types.CalculateIssueModelStatsRequest, dict]): The request object. Request to get statistics of an @@ -2161,6 +2606,30 @@ def create_phrase_matcher( ) -> resources.PhraseMatcher: r"""Creates a phrase matcher. + + .. code-block:: + + from google.cloud import contact_center_insights_v1 + + def sample_create_phrase_matcher(): + # Create a client + client = contact_center_insights_v1.ContactCenterInsightsClient() + + # Initialize request argument(s) + phrase_matcher = contact_center_insights_v1.PhraseMatcher() + phrase_matcher.type_ = "ANY_OF" + + request = contact_center_insights_v1.CreatePhraseMatcherRequest( + parent="parent_value", + phrase_matcher=phrase_matcher, + ) + + # Make the request + response = client.create_phrase_matcher(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.contact_center_insights_v1.types.CreatePhraseMatcherRequest, dict]): The request object. Request to create a phrase matcher. @@ -2241,6 +2710,26 @@ def get_phrase_matcher( ) -> resources.PhraseMatcher: r"""Gets a phrase matcher. + + .. code-block:: + + from google.cloud import contact_center_insights_v1 + + def sample_get_phrase_matcher(): + # Create a client + client = contact_center_insights_v1.ContactCenterInsightsClient() + + # Initialize request argument(s) + request = contact_center_insights_v1.GetPhraseMatcherRequest( + name="name_value", + ) + + # Make the request + response = client.get_phrase_matcher(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.contact_center_insights_v1.types.GetPhraseMatcherRequest, dict]): The request object. The request to get a a phrase @@ -2310,6 +2799,27 @@ def list_phrase_matchers( ) -> pagers.ListPhraseMatchersPager: r"""Lists phrase matchers. + + .. code-block:: + + from google.cloud import contact_center_insights_v1 + + def sample_list_phrase_matchers(): + # Create a client + client = contact_center_insights_v1.ContactCenterInsightsClient() + + # Initialize request argument(s) + request = contact_center_insights_v1.ListPhraseMatchersRequest( + parent="parent_value", + ) + + # Make the request + page_result = client.list_phrase_matchers(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.contact_center_insights_v1.types.ListPhraseMatchersRequest, dict]): The request object. Request to list phrase matchers. @@ -2389,6 +2899,23 @@ def delete_phrase_matcher( ) -> None: r"""Deletes a phrase matcher. + + .. code-block:: + + from google.cloud import contact_center_insights_v1 + + def sample_delete_phrase_matcher(): + # Create a client + client = contact_center_insights_v1.ContactCenterInsightsClient() + + # Initialize request argument(s) + request = contact_center_insights_v1.DeletePhraseMatcherRequest( + name="name_value", + ) + + # Make the request + client.delete_phrase_matcher(request=request) + Args: request (Union[google.cloud.contact_center_insights_v1.types.DeletePhraseMatcherRequest, dict]): The request object. The request to delete a phrase @@ -2454,6 +2981,29 @@ def update_phrase_matcher( ) -> resources.PhraseMatcher: r"""Updates a phrase matcher. + + .. code-block:: + + from google.cloud import contact_center_insights_v1 + + def sample_update_phrase_matcher(): + # Create a client + client = contact_center_insights_v1.ContactCenterInsightsClient() + + # Initialize request argument(s) + phrase_matcher = contact_center_insights_v1.PhraseMatcher() + phrase_matcher.type_ = "ANY_OF" + + request = contact_center_insights_v1.UpdatePhraseMatcherRequest( + phrase_matcher=phrase_matcher, + ) + + # Make the request + response = client.update_phrase_matcher(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.contact_center_insights_v1.types.UpdatePhraseMatcherRequest, dict]): The request object. The request to update a phrase @@ -2532,6 +3082,26 @@ def calculate_stats( ) -> contact_center_insights.CalculateStatsResponse: r"""Gets conversation statistics. + + .. code-block:: + + from google.cloud import contact_center_insights_v1 + + def sample_calculate_stats(): + # Create a client + client = contact_center_insights_v1.ContactCenterInsightsClient() + + # Initialize request argument(s) + request = contact_center_insights_v1.CalculateStatsRequest( + location="location_value", + ) + + # Make the request + response = client.calculate_stats(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.contact_center_insights_v1.types.CalculateStatsRequest, dict]): The request object. The request for calculating @@ -2603,6 +3173,26 @@ def get_settings( ) -> resources.Settings: r"""Gets project-level settings. + + .. code-block:: + + from google.cloud import contact_center_insights_v1 + + def sample_get_settings(): + # Create a client + client = contact_center_insights_v1.ContactCenterInsightsClient() + + # Initialize request argument(s) + request = contact_center_insights_v1.GetSettingsRequest( + name="name_value", + ) + + # Make the request + response = client.get_settings(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.contact_center_insights_v1.types.GetSettingsRequest, dict]): The request object. The request to get project-level @@ -2673,6 +3263,25 @@ def update_settings( ) -> resources.Settings: r"""Updates project-level settings. + + .. code-block:: + + from google.cloud import contact_center_insights_v1 + + def sample_update_settings(): + # Create a client + client = contact_center_insights_v1.ContactCenterInsightsClient() + + # Initialize request argument(s) + request = contact_center_insights_v1.UpdateSettingsRequest( + ) + + # Make the request + response = client.update_settings(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.contact_center_insights_v1.types.UpdateSettingsRequest, dict]): The request object. The request to update project-level @@ -2752,6 +3361,26 @@ def create_view( ) -> resources.View: r"""Creates a view. + + .. code-block:: + + from google.cloud import contact_center_insights_v1 + + def sample_create_view(): + # Create a client + client = contact_center_insights_v1.ContactCenterInsightsClient() + + # Initialize request argument(s) + request = contact_center_insights_v1.CreateViewRequest( + parent="parent_value", + ) + + # Make the request + response = client.create_view(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.contact_center_insights_v1.types.CreateViewRequest, dict]): The request object. The request to create a view. @@ -2831,6 +3460,26 @@ def get_view( ) -> resources.View: r"""Gets a view. + + .. code-block:: + + from google.cloud import contact_center_insights_v1 + + def sample_get_view(): + # Create a client + client = contact_center_insights_v1.ContactCenterInsightsClient() + + # Initialize request argument(s) + request = contact_center_insights_v1.GetViewRequest( + name="name_value", + ) + + # Make the request + response = client.get_view(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.contact_center_insights_v1.types.GetViewRequest, dict]): The request object. The request to get a view. @@ -2899,6 +3548,27 @@ def list_views( ) -> pagers.ListViewsPager: r"""Lists views. + + .. code-block:: + + from google.cloud import contact_center_insights_v1 + + def sample_list_views(): + # Create a client + client = contact_center_insights_v1.ContactCenterInsightsClient() + + # Initialize request argument(s) + request = contact_center_insights_v1.ListViewsRequest( + parent="parent_value", + ) + + # Make the request + page_result = client.list_views(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.contact_center_insights_v1.types.ListViewsRequest, dict]): The request object. The request to list views. @@ -2978,6 +3648,25 @@ def update_view( ) -> resources.View: r"""Updates a view. + + .. code-block:: + + from google.cloud import contact_center_insights_v1 + + def sample_update_view(): + # Create a client + client = contact_center_insights_v1.ContactCenterInsightsClient() + + # Initialize request argument(s) + request = contact_center_insights_v1.UpdateViewRequest( + ) + + # Make the request + response = client.update_view(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.contact_center_insights_v1.types.UpdateViewRequest, dict]): The request object. The request to update a view. @@ -3053,6 +3742,23 @@ def delete_view( ) -> None: r"""Deletes a view. + + .. code-block:: + + from google.cloud import contact_center_insights_v1 + + def sample_delete_view(): + # Create a client + client = contact_center_insights_v1.ContactCenterInsightsClient() + + # Initialize request argument(s) + request = contact_center_insights_v1.DeleteViewRequest( + name="name_value", + ) + + # Make the request + client.delete_view(request=request) + Args: request (Union[google.cloud.contact_center_insights_v1.types.DeleteViewRequest, dict]): The request object. The request to delete a view. diff --git a/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_calculate_issue_model_stats_async.py b/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_calculate_issue_model_stats_async.py new file mode 100644 index 000000000000..f32a406f9a6e --- /dev/null +++ b/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_calculate_issue_model_stats_async.py @@ -0,0 +1,45 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for CalculateIssueModelStats +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-contact-center-insights + + +# [START contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_CalculateIssueModelStats_async] +from google.cloud import contact_center_insights_v1 + + +async def sample_calculate_issue_model_stats(): + # Create a client + client = contact_center_insights_v1.ContactCenterInsightsAsyncClient() + + # Initialize request argument(s) + request = contact_center_insights_v1.CalculateIssueModelStatsRequest( + issue_model="issue_model_value", + ) + + # Make the request + response = await client.calculate_issue_model_stats(request=request) + + # Handle the response + print(response) + +# [END contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_CalculateIssueModelStats_async] diff --git a/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_calculate_issue_model_stats_sync.py b/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_calculate_issue_model_stats_sync.py new file mode 100644 index 000000000000..3e8c4952242a --- /dev/null +++ b/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_calculate_issue_model_stats_sync.py @@ -0,0 +1,45 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for CalculateIssueModelStats +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-contact-center-insights + + +# [START contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_CalculateIssueModelStats_sync] +from google.cloud import contact_center_insights_v1 + + +def sample_calculate_issue_model_stats(): + # Create a client + client = contact_center_insights_v1.ContactCenterInsightsClient() + + # Initialize request argument(s) + request = contact_center_insights_v1.CalculateIssueModelStatsRequest( + issue_model="issue_model_value", + ) + + # Make the request + response = client.calculate_issue_model_stats(request=request) + + # Handle the response + print(response) + +# [END contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_CalculateIssueModelStats_sync] diff --git a/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_calculate_stats_async.py b/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_calculate_stats_async.py new file mode 100644 index 000000000000..bbb5c35cd3f7 --- /dev/null +++ b/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_calculate_stats_async.py @@ -0,0 +1,45 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for CalculateStats +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-contact-center-insights + + +# [START contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_CalculateStats_async] +from google.cloud import contact_center_insights_v1 + + +async def sample_calculate_stats(): + # Create a client + client = contact_center_insights_v1.ContactCenterInsightsAsyncClient() + + # Initialize request argument(s) + request = contact_center_insights_v1.CalculateStatsRequest( + location="location_value", + ) + + # Make the request + response = await client.calculate_stats(request=request) + + # Handle the response + print(response) + +# [END contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_CalculateStats_async] diff --git a/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_calculate_stats_sync.py b/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_calculate_stats_sync.py new file mode 100644 index 000000000000..09deac2b9422 --- /dev/null +++ b/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_calculate_stats_sync.py @@ -0,0 +1,45 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for CalculateStats +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-contact-center-insights + + +# [START contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_CalculateStats_sync] +from google.cloud import contact_center_insights_v1 + + +def sample_calculate_stats(): + # Create a client + client = contact_center_insights_v1.ContactCenterInsightsClient() + + # Initialize request argument(s) + request = contact_center_insights_v1.CalculateStatsRequest( + location="location_value", + ) + + # Make the request + response = client.calculate_stats(request=request) + + # Handle the response + print(response) + +# [END contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_CalculateStats_sync] diff --git a/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_create_analysis_async.py b/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_create_analysis_async.py new file mode 100644 index 000000000000..16051f567077 --- /dev/null +++ b/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_create_analysis_async.py @@ -0,0 +1,49 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for CreateAnalysis +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-contact-center-insights + + +# [START contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_CreateAnalysis_async] +from google.cloud import contact_center_insights_v1 + + +async def sample_create_analysis(): + # Create a client + client = contact_center_insights_v1.ContactCenterInsightsAsyncClient() + + # Initialize request argument(s) + request = contact_center_insights_v1.CreateAnalysisRequest( + parent="parent_value", + ) + + # Make the request + operation = client.create_analysis(request=request) + + print("Waiting for operation to complete...") + + response = await operation.result() + + # Handle the response + print(response) + +# [END contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_CreateAnalysis_async] diff --git a/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_create_analysis_sync.py b/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_create_analysis_sync.py new file mode 100644 index 000000000000..0935d2c92db6 --- /dev/null +++ b/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_create_analysis_sync.py @@ -0,0 +1,49 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for CreateAnalysis +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-contact-center-insights + + +# [START contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_CreateAnalysis_sync] +from google.cloud import contact_center_insights_v1 + + +def sample_create_analysis(): + # Create a client + client = contact_center_insights_v1.ContactCenterInsightsClient() + + # Initialize request argument(s) + request = contact_center_insights_v1.CreateAnalysisRequest( + parent="parent_value", + ) + + # Make the request + operation = client.create_analysis(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + +# [END contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_CreateAnalysis_sync] diff --git a/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_create_conversation_async.py b/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_create_conversation_async.py new file mode 100644 index 000000000000..8a198c1bb343 --- /dev/null +++ b/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_create_conversation_async.py @@ -0,0 +1,45 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for CreateConversation +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-contact-center-insights + + +# [START contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_CreateConversation_async] +from google.cloud import contact_center_insights_v1 + + +async def sample_create_conversation(): + # Create a client + client = contact_center_insights_v1.ContactCenterInsightsAsyncClient() + + # Initialize request argument(s) + request = contact_center_insights_v1.CreateConversationRequest( + parent="parent_value", + ) + + # Make the request + response = await client.create_conversation(request=request) + + # Handle the response + print(response) + +# [END contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_CreateConversation_async] diff --git a/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_create_conversation_sync.py b/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_create_conversation_sync.py new file mode 100644 index 000000000000..bdb1587ce16c --- /dev/null +++ b/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_create_conversation_sync.py @@ -0,0 +1,45 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for CreateConversation +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-contact-center-insights + + +# [START contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_CreateConversation_sync] +from google.cloud import contact_center_insights_v1 + + +def sample_create_conversation(): + # Create a client + client = contact_center_insights_v1.ContactCenterInsightsClient() + + # Initialize request argument(s) + request = contact_center_insights_v1.CreateConversationRequest( + parent="parent_value", + ) + + # Make the request + response = client.create_conversation(request=request) + + # Handle the response + print(response) + +# [END contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_CreateConversation_sync] diff --git a/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_create_issue_model_async.py b/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_create_issue_model_async.py new file mode 100644 index 000000000000..47058b965ae3 --- /dev/null +++ b/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_create_issue_model_async.py @@ -0,0 +1,49 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for CreateIssueModel +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-contact-center-insights + + +# [START contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_CreateIssueModel_async] +from google.cloud import contact_center_insights_v1 + + +async def sample_create_issue_model(): + # Create a client + client = contact_center_insights_v1.ContactCenterInsightsAsyncClient() + + # Initialize request argument(s) + request = contact_center_insights_v1.CreateIssueModelRequest( + parent="parent_value", + ) + + # Make the request + operation = client.create_issue_model(request=request) + + print("Waiting for operation to complete...") + + response = await operation.result() + + # Handle the response + print(response) + +# [END contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_CreateIssueModel_async] diff --git a/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_create_issue_model_sync.py b/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_create_issue_model_sync.py new file mode 100644 index 000000000000..cec0ead5617d --- /dev/null +++ b/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_create_issue_model_sync.py @@ -0,0 +1,49 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for CreateIssueModel +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-contact-center-insights + + +# [START contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_CreateIssueModel_sync] +from google.cloud import contact_center_insights_v1 + + +def sample_create_issue_model(): + # Create a client + client = contact_center_insights_v1.ContactCenterInsightsClient() + + # Initialize request argument(s) + request = contact_center_insights_v1.CreateIssueModelRequest( + parent="parent_value", + ) + + # Make the request + operation = client.create_issue_model(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + +# [END contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_CreateIssueModel_sync] diff --git a/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_create_phrase_matcher_async.py b/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_create_phrase_matcher_async.py new file mode 100644 index 000000000000..6771ad3c82dc --- /dev/null +++ b/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_create_phrase_matcher_async.py @@ -0,0 +1,49 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for CreatePhraseMatcher +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-contact-center-insights + + +# [START contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_CreatePhraseMatcher_async] +from google.cloud import contact_center_insights_v1 + + +async def sample_create_phrase_matcher(): + # Create a client + client = contact_center_insights_v1.ContactCenterInsightsAsyncClient() + + # Initialize request argument(s) + phrase_matcher = contact_center_insights_v1.PhraseMatcher() + phrase_matcher.type_ = "ANY_OF" + + request = contact_center_insights_v1.CreatePhraseMatcherRequest( + parent="parent_value", + phrase_matcher=phrase_matcher, + ) + + # Make the request + response = await client.create_phrase_matcher(request=request) + + # Handle the response + print(response) + +# [END contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_CreatePhraseMatcher_async] diff --git a/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_create_phrase_matcher_sync.py b/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_create_phrase_matcher_sync.py new file mode 100644 index 000000000000..aa4dc20047b8 --- /dev/null +++ b/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_create_phrase_matcher_sync.py @@ -0,0 +1,49 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for CreatePhraseMatcher +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-contact-center-insights + + +# [START contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_CreatePhraseMatcher_sync] +from google.cloud import contact_center_insights_v1 + + +def sample_create_phrase_matcher(): + # Create a client + client = contact_center_insights_v1.ContactCenterInsightsClient() + + # Initialize request argument(s) + phrase_matcher = contact_center_insights_v1.PhraseMatcher() + phrase_matcher.type_ = "ANY_OF" + + request = contact_center_insights_v1.CreatePhraseMatcherRequest( + parent="parent_value", + phrase_matcher=phrase_matcher, + ) + + # Make the request + response = client.create_phrase_matcher(request=request) + + # Handle the response + print(response) + +# [END contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_CreatePhraseMatcher_sync] diff --git a/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_create_view_async.py b/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_create_view_async.py new file mode 100644 index 000000000000..5ea2cd367467 --- /dev/null +++ b/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_create_view_async.py @@ -0,0 +1,45 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for CreateView +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-contact-center-insights + + +# [START contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_CreateView_async] +from google.cloud import contact_center_insights_v1 + + +async def sample_create_view(): + # Create a client + client = contact_center_insights_v1.ContactCenterInsightsAsyncClient() + + # Initialize request argument(s) + request = contact_center_insights_v1.CreateViewRequest( + parent="parent_value", + ) + + # Make the request + response = await client.create_view(request=request) + + # Handle the response + print(response) + +# [END contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_CreateView_async] diff --git a/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_create_view_sync.py b/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_create_view_sync.py new file mode 100644 index 000000000000..b32de59b0787 --- /dev/null +++ b/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_create_view_sync.py @@ -0,0 +1,45 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for CreateView +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-contact-center-insights + + +# [START contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_CreateView_sync] +from google.cloud import contact_center_insights_v1 + + +def sample_create_view(): + # Create a client + client = contact_center_insights_v1.ContactCenterInsightsClient() + + # Initialize request argument(s) + request = contact_center_insights_v1.CreateViewRequest( + parent="parent_value", + ) + + # Make the request + response = client.create_view(request=request) + + # Handle the response + print(response) + +# [END contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_CreateView_sync] diff --git a/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_delete_analysis_async.py b/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_delete_analysis_async.py new file mode 100644 index 000000000000..0005432c3793 --- /dev/null +++ b/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_delete_analysis_async.py @@ -0,0 +1,43 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for DeleteAnalysis +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-contact-center-insights + + +# [START contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_DeleteAnalysis_async] +from google.cloud import contact_center_insights_v1 + + +async def sample_delete_analysis(): + # Create a client + client = contact_center_insights_v1.ContactCenterInsightsAsyncClient() + + # Initialize request argument(s) + request = contact_center_insights_v1.DeleteAnalysisRequest( + name="name_value", + ) + + # Make the request + await client.delete_analysis(request=request) + + +# [END contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_DeleteAnalysis_async] diff --git a/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_delete_analysis_sync.py b/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_delete_analysis_sync.py new file mode 100644 index 000000000000..066d7ffe0258 --- /dev/null +++ b/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_delete_analysis_sync.py @@ -0,0 +1,43 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for DeleteAnalysis +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-contact-center-insights + + +# [START contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_DeleteAnalysis_sync] +from google.cloud import contact_center_insights_v1 + + +def sample_delete_analysis(): + # Create a client + client = contact_center_insights_v1.ContactCenterInsightsClient() + + # Initialize request argument(s) + request = contact_center_insights_v1.DeleteAnalysisRequest( + name="name_value", + ) + + # Make the request + client.delete_analysis(request=request) + + +# [END contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_DeleteAnalysis_sync] diff --git a/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_delete_conversation_async.py b/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_delete_conversation_async.py new file mode 100644 index 000000000000..30d6a1f02462 --- /dev/null +++ b/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_delete_conversation_async.py @@ -0,0 +1,43 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for DeleteConversation +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-contact-center-insights + + +# [START contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_DeleteConversation_async] +from google.cloud import contact_center_insights_v1 + + +async def sample_delete_conversation(): + # Create a client + client = contact_center_insights_v1.ContactCenterInsightsAsyncClient() + + # Initialize request argument(s) + request = contact_center_insights_v1.DeleteConversationRequest( + name="name_value", + ) + + # Make the request + await client.delete_conversation(request=request) + + +# [END contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_DeleteConversation_async] diff --git a/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_delete_conversation_sync.py b/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_delete_conversation_sync.py new file mode 100644 index 000000000000..07cf0fdcdc84 --- /dev/null +++ b/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_delete_conversation_sync.py @@ -0,0 +1,43 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for DeleteConversation +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-contact-center-insights + + +# [START contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_DeleteConversation_sync] +from google.cloud import contact_center_insights_v1 + + +def sample_delete_conversation(): + # Create a client + client = contact_center_insights_v1.ContactCenterInsightsClient() + + # Initialize request argument(s) + request = contact_center_insights_v1.DeleteConversationRequest( + name="name_value", + ) + + # Make the request + client.delete_conversation(request=request) + + +# [END contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_DeleteConversation_sync] diff --git a/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_delete_issue_model_async.py b/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_delete_issue_model_async.py new file mode 100644 index 000000000000..2d45e087fa75 --- /dev/null +++ b/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_delete_issue_model_async.py @@ -0,0 +1,49 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for DeleteIssueModel +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-contact-center-insights + + +# [START contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_DeleteIssueModel_async] +from google.cloud import contact_center_insights_v1 + + +async def sample_delete_issue_model(): + # Create a client + client = contact_center_insights_v1.ContactCenterInsightsAsyncClient() + + # Initialize request argument(s) + request = contact_center_insights_v1.DeleteIssueModelRequest( + name="name_value", + ) + + # Make the request + operation = client.delete_issue_model(request=request) + + print("Waiting for operation to complete...") + + response = await operation.result() + + # Handle the response + print(response) + +# [END contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_DeleteIssueModel_async] diff --git a/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_delete_issue_model_sync.py b/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_delete_issue_model_sync.py new file mode 100644 index 000000000000..ec833f3f4227 --- /dev/null +++ b/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_delete_issue_model_sync.py @@ -0,0 +1,49 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for DeleteIssueModel +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-contact-center-insights + + +# [START contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_DeleteIssueModel_sync] +from google.cloud import contact_center_insights_v1 + + +def sample_delete_issue_model(): + # Create a client + client = contact_center_insights_v1.ContactCenterInsightsClient() + + # Initialize request argument(s) + request = contact_center_insights_v1.DeleteIssueModelRequest( + name="name_value", + ) + + # Make the request + operation = client.delete_issue_model(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + +# [END contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_DeleteIssueModel_sync] diff --git a/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_delete_phrase_matcher_async.py b/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_delete_phrase_matcher_async.py new file mode 100644 index 000000000000..4fdd6d971839 --- /dev/null +++ b/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_delete_phrase_matcher_async.py @@ -0,0 +1,43 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for DeletePhraseMatcher +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-contact-center-insights + + +# [START contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_DeletePhraseMatcher_async] +from google.cloud import contact_center_insights_v1 + + +async def sample_delete_phrase_matcher(): + # Create a client + client = contact_center_insights_v1.ContactCenterInsightsAsyncClient() + + # Initialize request argument(s) + request = contact_center_insights_v1.DeletePhraseMatcherRequest( + name="name_value", + ) + + # Make the request + await client.delete_phrase_matcher(request=request) + + +# [END contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_DeletePhraseMatcher_async] diff --git a/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_delete_phrase_matcher_sync.py b/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_delete_phrase_matcher_sync.py new file mode 100644 index 000000000000..8f690154dc57 --- /dev/null +++ b/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_delete_phrase_matcher_sync.py @@ -0,0 +1,43 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for DeletePhraseMatcher +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-contact-center-insights + + +# [START contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_DeletePhraseMatcher_sync] +from google.cloud import contact_center_insights_v1 + + +def sample_delete_phrase_matcher(): + # Create a client + client = contact_center_insights_v1.ContactCenterInsightsClient() + + # Initialize request argument(s) + request = contact_center_insights_v1.DeletePhraseMatcherRequest( + name="name_value", + ) + + # Make the request + client.delete_phrase_matcher(request=request) + + +# [END contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_DeletePhraseMatcher_sync] diff --git a/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_delete_view_async.py b/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_delete_view_async.py new file mode 100644 index 000000000000..c07c14c9ac67 --- /dev/null +++ b/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_delete_view_async.py @@ -0,0 +1,43 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for DeleteView +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-contact-center-insights + + +# [START contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_DeleteView_async] +from google.cloud import contact_center_insights_v1 + + +async def sample_delete_view(): + # Create a client + client = contact_center_insights_v1.ContactCenterInsightsAsyncClient() + + # Initialize request argument(s) + request = contact_center_insights_v1.DeleteViewRequest( + name="name_value", + ) + + # Make the request + await client.delete_view(request=request) + + +# [END contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_DeleteView_async] diff --git a/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_delete_view_sync.py b/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_delete_view_sync.py new file mode 100644 index 000000000000..09db8a99fa94 --- /dev/null +++ b/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_delete_view_sync.py @@ -0,0 +1,43 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for DeleteView +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-contact-center-insights + + +# [START contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_DeleteView_sync] +from google.cloud import contact_center_insights_v1 + + +def sample_delete_view(): + # Create a client + client = contact_center_insights_v1.ContactCenterInsightsClient() + + # Initialize request argument(s) + request = contact_center_insights_v1.DeleteViewRequest( + name="name_value", + ) + + # Make the request + client.delete_view(request=request) + + +# [END contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_DeleteView_sync] diff --git a/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_deploy_issue_model_async.py b/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_deploy_issue_model_async.py new file mode 100644 index 000000000000..b9f28473d46d --- /dev/null +++ b/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_deploy_issue_model_async.py @@ -0,0 +1,49 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for DeployIssueModel +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-contact-center-insights + + +# [START contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_DeployIssueModel_async] +from google.cloud import contact_center_insights_v1 + + +async def sample_deploy_issue_model(): + # Create a client + client = contact_center_insights_v1.ContactCenterInsightsAsyncClient() + + # Initialize request argument(s) + request = contact_center_insights_v1.DeployIssueModelRequest( + name="name_value", + ) + + # Make the request + operation = client.deploy_issue_model(request=request) + + print("Waiting for operation to complete...") + + response = await operation.result() + + # Handle the response + print(response) + +# [END contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_DeployIssueModel_async] diff --git a/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_deploy_issue_model_sync.py b/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_deploy_issue_model_sync.py new file mode 100644 index 000000000000..099df198f54d --- /dev/null +++ b/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_deploy_issue_model_sync.py @@ -0,0 +1,49 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for DeployIssueModel +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-contact-center-insights + + +# [START contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_DeployIssueModel_sync] +from google.cloud import contact_center_insights_v1 + + +def sample_deploy_issue_model(): + # Create a client + client = contact_center_insights_v1.ContactCenterInsightsClient() + + # Initialize request argument(s) + request = contact_center_insights_v1.DeployIssueModelRequest( + name="name_value", + ) + + # Make the request + operation = client.deploy_issue_model(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + +# [END contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_DeployIssueModel_sync] diff --git a/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_export_insights_data_async.py b/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_export_insights_data_async.py new file mode 100644 index 000000000000..82901d2d9002 --- /dev/null +++ b/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_export_insights_data_async.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for ExportInsightsData +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-contact-center-insights + + +# [START contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_ExportInsightsData_async] +from google.cloud import contact_center_insights_v1 + + +async def sample_export_insights_data(): + # Create a client + client = contact_center_insights_v1.ContactCenterInsightsAsyncClient() + + # Initialize request argument(s) + big_query_destination = contact_center_insights_v1.BigQueryDestination() + big_query_destination.dataset = "dataset_value" + + request = contact_center_insights_v1.ExportInsightsDataRequest( + big_query_destination=big_query_destination, + parent="parent_value", + ) + + # Make the request + operation = client.export_insights_data(request=request) + + print("Waiting for operation to complete...") + + response = await operation.result() + + # Handle the response + print(response) + +# [END contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_ExportInsightsData_async] diff --git a/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_export_insights_data_sync.py b/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_export_insights_data_sync.py new file mode 100644 index 000000000000..92d062127dbe --- /dev/null +++ b/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_export_insights_data_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for ExportInsightsData +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-contact-center-insights + + +# [START contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_ExportInsightsData_sync] +from google.cloud import contact_center_insights_v1 + + +def sample_export_insights_data(): + # Create a client + client = contact_center_insights_v1.ContactCenterInsightsClient() + + # Initialize request argument(s) + big_query_destination = contact_center_insights_v1.BigQueryDestination() + big_query_destination.dataset = "dataset_value" + + request = contact_center_insights_v1.ExportInsightsDataRequest( + big_query_destination=big_query_destination, + parent="parent_value", + ) + + # Make the request + operation = client.export_insights_data(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + +# [END contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_ExportInsightsData_sync] diff --git a/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_get_analysis_async.py b/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_get_analysis_async.py new file mode 100644 index 000000000000..b39226323087 --- /dev/null +++ b/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_get_analysis_async.py @@ -0,0 +1,45 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for GetAnalysis +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-contact-center-insights + + +# [START contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_GetAnalysis_async] +from google.cloud import contact_center_insights_v1 + + +async def sample_get_analysis(): + # Create a client + client = contact_center_insights_v1.ContactCenterInsightsAsyncClient() + + # Initialize request argument(s) + request = contact_center_insights_v1.GetAnalysisRequest( + name="name_value", + ) + + # Make the request + response = await client.get_analysis(request=request) + + # Handle the response + print(response) + +# [END contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_GetAnalysis_async] diff --git a/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_get_analysis_sync.py b/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_get_analysis_sync.py new file mode 100644 index 000000000000..b55cb1a9b2b4 --- /dev/null +++ b/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_get_analysis_sync.py @@ -0,0 +1,45 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for GetAnalysis +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-contact-center-insights + + +# [START contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_GetAnalysis_sync] +from google.cloud import contact_center_insights_v1 + + +def sample_get_analysis(): + # Create a client + client = contact_center_insights_v1.ContactCenterInsightsClient() + + # Initialize request argument(s) + request = contact_center_insights_v1.GetAnalysisRequest( + name="name_value", + ) + + # Make the request + response = client.get_analysis(request=request) + + # Handle the response + print(response) + +# [END contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_GetAnalysis_sync] diff --git a/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_get_conversation_async.py b/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_get_conversation_async.py new file mode 100644 index 000000000000..65ea7831e645 --- /dev/null +++ b/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_get_conversation_async.py @@ -0,0 +1,45 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for GetConversation +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-contact-center-insights + + +# [START contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_GetConversation_async] +from google.cloud import contact_center_insights_v1 + + +async def sample_get_conversation(): + # Create a client + client = contact_center_insights_v1.ContactCenterInsightsAsyncClient() + + # Initialize request argument(s) + request = contact_center_insights_v1.GetConversationRequest( + name="name_value", + ) + + # Make the request + response = await client.get_conversation(request=request) + + # Handle the response + print(response) + +# [END contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_GetConversation_async] diff --git a/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_get_conversation_sync.py b/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_get_conversation_sync.py new file mode 100644 index 000000000000..2434a374f1b1 --- /dev/null +++ b/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_get_conversation_sync.py @@ -0,0 +1,45 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for GetConversation +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-contact-center-insights + + +# [START contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_GetConversation_sync] +from google.cloud import contact_center_insights_v1 + + +def sample_get_conversation(): + # Create a client + client = contact_center_insights_v1.ContactCenterInsightsClient() + + # Initialize request argument(s) + request = contact_center_insights_v1.GetConversationRequest( + name="name_value", + ) + + # Make the request + response = client.get_conversation(request=request) + + # Handle the response + print(response) + +# [END contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_GetConversation_sync] diff --git a/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_get_issue_async.py b/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_get_issue_async.py new file mode 100644 index 000000000000..8b23aa08a1b4 --- /dev/null +++ b/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_get_issue_async.py @@ -0,0 +1,45 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for GetIssue +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-contact-center-insights + + +# [START contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_GetIssue_async] +from google.cloud import contact_center_insights_v1 + + +async def sample_get_issue(): + # Create a client + client = contact_center_insights_v1.ContactCenterInsightsAsyncClient() + + # Initialize request argument(s) + request = contact_center_insights_v1.GetIssueRequest( + name="name_value", + ) + + # Make the request + response = await client.get_issue(request=request) + + # Handle the response + print(response) + +# [END contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_GetIssue_async] diff --git a/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_get_issue_model_async.py b/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_get_issue_model_async.py new file mode 100644 index 000000000000..75d2f2491bc9 --- /dev/null +++ b/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_get_issue_model_async.py @@ -0,0 +1,45 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for GetIssueModel +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-contact-center-insights + + +# [START contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_GetIssueModel_async] +from google.cloud import contact_center_insights_v1 + + +async def sample_get_issue_model(): + # Create a client + client = contact_center_insights_v1.ContactCenterInsightsAsyncClient() + + # Initialize request argument(s) + request = contact_center_insights_v1.GetIssueModelRequest( + name="name_value", + ) + + # Make the request + response = await client.get_issue_model(request=request) + + # Handle the response + print(response) + +# [END contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_GetIssueModel_async] diff --git a/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_get_issue_model_sync.py b/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_get_issue_model_sync.py new file mode 100644 index 000000000000..21750490cfac --- /dev/null +++ b/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_get_issue_model_sync.py @@ -0,0 +1,45 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for GetIssueModel +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-contact-center-insights + + +# [START contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_GetIssueModel_sync] +from google.cloud import contact_center_insights_v1 + + +def sample_get_issue_model(): + # Create a client + client = contact_center_insights_v1.ContactCenterInsightsClient() + + # Initialize request argument(s) + request = contact_center_insights_v1.GetIssueModelRequest( + name="name_value", + ) + + # Make the request + response = client.get_issue_model(request=request) + + # Handle the response + print(response) + +# [END contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_GetIssueModel_sync] diff --git a/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_get_issue_sync.py b/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_get_issue_sync.py new file mode 100644 index 000000000000..b088213b20ad --- /dev/null +++ b/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_get_issue_sync.py @@ -0,0 +1,45 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for GetIssue +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-contact-center-insights + + +# [START contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_GetIssue_sync] +from google.cloud import contact_center_insights_v1 + + +def sample_get_issue(): + # Create a client + client = contact_center_insights_v1.ContactCenterInsightsClient() + + # Initialize request argument(s) + request = contact_center_insights_v1.GetIssueRequest( + name="name_value", + ) + + # Make the request + response = client.get_issue(request=request) + + # Handle the response + print(response) + +# [END contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_GetIssue_sync] diff --git a/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_get_phrase_matcher_async.py b/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_get_phrase_matcher_async.py new file mode 100644 index 000000000000..a038c078bc33 --- /dev/null +++ b/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_get_phrase_matcher_async.py @@ -0,0 +1,45 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for GetPhraseMatcher +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-contact-center-insights + + +# [START contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_GetPhraseMatcher_async] +from google.cloud import contact_center_insights_v1 + + +async def sample_get_phrase_matcher(): + # Create a client + client = contact_center_insights_v1.ContactCenterInsightsAsyncClient() + + # Initialize request argument(s) + request = contact_center_insights_v1.GetPhraseMatcherRequest( + name="name_value", + ) + + # Make the request + response = await client.get_phrase_matcher(request=request) + + # Handle the response + print(response) + +# [END contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_GetPhraseMatcher_async] diff --git a/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_get_phrase_matcher_sync.py b/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_get_phrase_matcher_sync.py new file mode 100644 index 000000000000..6fa10ddff13f --- /dev/null +++ b/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_get_phrase_matcher_sync.py @@ -0,0 +1,45 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for GetPhraseMatcher +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-contact-center-insights + + +# [START contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_GetPhraseMatcher_sync] +from google.cloud import contact_center_insights_v1 + + +def sample_get_phrase_matcher(): + # Create a client + client = contact_center_insights_v1.ContactCenterInsightsClient() + + # Initialize request argument(s) + request = contact_center_insights_v1.GetPhraseMatcherRequest( + name="name_value", + ) + + # Make the request + response = client.get_phrase_matcher(request=request) + + # Handle the response + print(response) + +# [END contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_GetPhraseMatcher_sync] diff --git a/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_get_settings_async.py b/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_get_settings_async.py new file mode 100644 index 000000000000..4798130773b3 --- /dev/null +++ b/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_get_settings_async.py @@ -0,0 +1,45 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for GetSettings +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-contact-center-insights + + +# [START contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_GetSettings_async] +from google.cloud import contact_center_insights_v1 + + +async def sample_get_settings(): + # Create a client + client = contact_center_insights_v1.ContactCenterInsightsAsyncClient() + + # Initialize request argument(s) + request = contact_center_insights_v1.GetSettingsRequest( + name="name_value", + ) + + # Make the request + response = await client.get_settings(request=request) + + # Handle the response + print(response) + +# [END contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_GetSettings_async] diff --git a/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_get_settings_sync.py b/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_get_settings_sync.py new file mode 100644 index 000000000000..94f3b1b90ee1 --- /dev/null +++ b/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_get_settings_sync.py @@ -0,0 +1,45 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for GetSettings +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-contact-center-insights + + +# [START contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_GetSettings_sync] +from google.cloud import contact_center_insights_v1 + + +def sample_get_settings(): + # Create a client + client = contact_center_insights_v1.ContactCenterInsightsClient() + + # Initialize request argument(s) + request = contact_center_insights_v1.GetSettingsRequest( + name="name_value", + ) + + # Make the request + response = client.get_settings(request=request) + + # Handle the response + print(response) + +# [END contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_GetSettings_sync] diff --git a/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_get_view_async.py b/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_get_view_async.py new file mode 100644 index 000000000000..23bdc5f38e46 --- /dev/null +++ b/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_get_view_async.py @@ -0,0 +1,45 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for GetView +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-contact-center-insights + + +# [START contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_GetView_async] +from google.cloud import contact_center_insights_v1 + + +async def sample_get_view(): + # Create a client + client = contact_center_insights_v1.ContactCenterInsightsAsyncClient() + + # Initialize request argument(s) + request = contact_center_insights_v1.GetViewRequest( + name="name_value", + ) + + # Make the request + response = await client.get_view(request=request) + + # Handle the response + print(response) + +# [END contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_GetView_async] diff --git a/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_get_view_sync.py b/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_get_view_sync.py new file mode 100644 index 000000000000..cd7157a08aff --- /dev/null +++ b/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_get_view_sync.py @@ -0,0 +1,45 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for GetView +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-contact-center-insights + + +# [START contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_GetView_sync] +from google.cloud import contact_center_insights_v1 + + +def sample_get_view(): + # Create a client + client = contact_center_insights_v1.ContactCenterInsightsClient() + + # Initialize request argument(s) + request = contact_center_insights_v1.GetViewRequest( + name="name_value", + ) + + # Make the request + response = client.get_view(request=request) + + # Handle the response + print(response) + +# [END contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_GetView_sync] diff --git a/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_list_analyses_async.py b/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_list_analyses_async.py new file mode 100644 index 000000000000..48d16f146b4b --- /dev/null +++ b/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_list_analyses_async.py @@ -0,0 +1,46 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for ListAnalyses +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-contact-center-insights + + +# [START contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_ListAnalyses_async] +from google.cloud import contact_center_insights_v1 + + +async def sample_list_analyses(): + # Create a client + client = contact_center_insights_v1.ContactCenterInsightsAsyncClient() + + # Initialize request argument(s) + request = contact_center_insights_v1.ListAnalysesRequest( + parent="parent_value", + ) + + # Make the request + page_result = client.list_analyses(request=request) + + # Handle the response + async for response in page_result: + print(response) + +# [END contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_ListAnalyses_async] diff --git a/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_list_analyses_sync.py b/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_list_analyses_sync.py new file mode 100644 index 000000000000..3d4d237285f7 --- /dev/null +++ b/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_list_analyses_sync.py @@ -0,0 +1,46 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for ListAnalyses +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-contact-center-insights + + +# [START contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_ListAnalyses_sync] +from google.cloud import contact_center_insights_v1 + + +def sample_list_analyses(): + # Create a client + client = contact_center_insights_v1.ContactCenterInsightsClient() + + # Initialize request argument(s) + request = contact_center_insights_v1.ListAnalysesRequest( + parent="parent_value", + ) + + # Make the request + page_result = client.list_analyses(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_ListAnalyses_sync] diff --git a/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_list_conversations_async.py b/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_list_conversations_async.py new file mode 100644 index 000000000000..31a7ea93531f --- /dev/null +++ b/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_list_conversations_async.py @@ -0,0 +1,46 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for ListConversations +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-contact-center-insights + + +# [START contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_ListConversations_async] +from google.cloud import contact_center_insights_v1 + + +async def sample_list_conversations(): + # Create a client + client = contact_center_insights_v1.ContactCenterInsightsAsyncClient() + + # Initialize request argument(s) + request = contact_center_insights_v1.ListConversationsRequest( + parent="parent_value", + ) + + # Make the request + page_result = client.list_conversations(request=request) + + # Handle the response + async for response in page_result: + print(response) + +# [END contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_ListConversations_async] diff --git a/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_list_conversations_sync.py b/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_list_conversations_sync.py new file mode 100644 index 000000000000..a33ee108266c --- /dev/null +++ b/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_list_conversations_sync.py @@ -0,0 +1,46 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for ListConversations +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-contact-center-insights + + +# [START contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_ListConversations_sync] +from google.cloud import contact_center_insights_v1 + + +def sample_list_conversations(): + # Create a client + client = contact_center_insights_v1.ContactCenterInsightsClient() + + # Initialize request argument(s) + request = contact_center_insights_v1.ListConversationsRequest( + parent="parent_value", + ) + + # Make the request + page_result = client.list_conversations(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_ListConversations_sync] diff --git a/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_list_issue_models_async.py b/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_list_issue_models_async.py new file mode 100644 index 000000000000..21f82fe9b5ea --- /dev/null +++ b/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_list_issue_models_async.py @@ -0,0 +1,45 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for ListIssueModels +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-contact-center-insights + + +# [START contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_ListIssueModels_async] +from google.cloud import contact_center_insights_v1 + + +async def sample_list_issue_models(): + # Create a client + client = contact_center_insights_v1.ContactCenterInsightsAsyncClient() + + # Initialize request argument(s) + request = contact_center_insights_v1.ListIssueModelsRequest( + parent="parent_value", + ) + + # Make the request + response = await client.list_issue_models(request=request) + + # Handle the response + print(response) + +# [END contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_ListIssueModels_async] diff --git a/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_list_issue_models_sync.py b/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_list_issue_models_sync.py new file mode 100644 index 000000000000..0c498ecab241 --- /dev/null +++ b/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_list_issue_models_sync.py @@ -0,0 +1,45 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for ListIssueModels +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-contact-center-insights + + +# [START contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_ListIssueModels_sync] +from google.cloud import contact_center_insights_v1 + + +def sample_list_issue_models(): + # Create a client + client = contact_center_insights_v1.ContactCenterInsightsClient() + + # Initialize request argument(s) + request = contact_center_insights_v1.ListIssueModelsRequest( + parent="parent_value", + ) + + # Make the request + response = client.list_issue_models(request=request) + + # Handle the response + print(response) + +# [END contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_ListIssueModels_sync] diff --git a/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_list_issues_async.py b/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_list_issues_async.py new file mode 100644 index 000000000000..61331d53cb28 --- /dev/null +++ b/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_list_issues_async.py @@ -0,0 +1,45 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for ListIssues +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-contact-center-insights + + +# [START contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_ListIssues_async] +from google.cloud import contact_center_insights_v1 + + +async def sample_list_issues(): + # Create a client + client = contact_center_insights_v1.ContactCenterInsightsAsyncClient() + + # Initialize request argument(s) + request = contact_center_insights_v1.ListIssuesRequest( + parent="parent_value", + ) + + # Make the request + response = await client.list_issues(request=request) + + # Handle the response + print(response) + +# [END contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_ListIssues_async] diff --git a/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_list_issues_sync.py b/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_list_issues_sync.py new file mode 100644 index 000000000000..06661d936fa4 --- /dev/null +++ b/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_list_issues_sync.py @@ -0,0 +1,45 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for ListIssues +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-contact-center-insights + + +# [START contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_ListIssues_sync] +from google.cloud import contact_center_insights_v1 + + +def sample_list_issues(): + # Create a client + client = contact_center_insights_v1.ContactCenterInsightsClient() + + # Initialize request argument(s) + request = contact_center_insights_v1.ListIssuesRequest( + parent="parent_value", + ) + + # Make the request + response = client.list_issues(request=request) + + # Handle the response + print(response) + +# [END contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_ListIssues_sync] diff --git a/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_list_phrase_matchers_async.py b/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_list_phrase_matchers_async.py new file mode 100644 index 000000000000..a2e34d4a42f5 --- /dev/null +++ b/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_list_phrase_matchers_async.py @@ -0,0 +1,46 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for ListPhraseMatchers +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-contact-center-insights + + +# [START contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_ListPhraseMatchers_async] +from google.cloud import contact_center_insights_v1 + + +async def sample_list_phrase_matchers(): + # Create a client + client = contact_center_insights_v1.ContactCenterInsightsAsyncClient() + + # Initialize request argument(s) + request = contact_center_insights_v1.ListPhraseMatchersRequest( + parent="parent_value", + ) + + # Make the request + page_result = client.list_phrase_matchers(request=request) + + # Handle the response + async for response in page_result: + print(response) + +# [END contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_ListPhraseMatchers_async] diff --git a/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_list_phrase_matchers_sync.py b/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_list_phrase_matchers_sync.py new file mode 100644 index 000000000000..7ac739ca9c0c --- /dev/null +++ b/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_list_phrase_matchers_sync.py @@ -0,0 +1,46 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for ListPhraseMatchers +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-contact-center-insights + + +# [START contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_ListPhraseMatchers_sync] +from google.cloud import contact_center_insights_v1 + + +def sample_list_phrase_matchers(): + # Create a client + client = contact_center_insights_v1.ContactCenterInsightsClient() + + # Initialize request argument(s) + request = contact_center_insights_v1.ListPhraseMatchersRequest( + parent="parent_value", + ) + + # Make the request + page_result = client.list_phrase_matchers(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_ListPhraseMatchers_sync] diff --git a/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_list_views_async.py b/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_list_views_async.py new file mode 100644 index 000000000000..c79f0e22b04f --- /dev/null +++ b/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_list_views_async.py @@ -0,0 +1,46 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for ListViews +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-contact-center-insights + + +# [START contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_ListViews_async] +from google.cloud import contact_center_insights_v1 + + +async def sample_list_views(): + # Create a client + client = contact_center_insights_v1.ContactCenterInsightsAsyncClient() + + # Initialize request argument(s) + request = contact_center_insights_v1.ListViewsRequest( + parent="parent_value", + ) + + # Make the request + page_result = client.list_views(request=request) + + # Handle the response + async for response in page_result: + print(response) + +# [END contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_ListViews_async] diff --git a/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_list_views_sync.py b/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_list_views_sync.py new file mode 100644 index 000000000000..c153f2938f5a --- /dev/null +++ b/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_list_views_sync.py @@ -0,0 +1,46 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for ListViews +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-contact-center-insights + + +# [START contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_ListViews_sync] +from google.cloud import contact_center_insights_v1 + + +def sample_list_views(): + # Create a client + client = contact_center_insights_v1.ContactCenterInsightsClient() + + # Initialize request argument(s) + request = contact_center_insights_v1.ListViewsRequest( + parent="parent_value", + ) + + # Make the request + page_result = client.list_views(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_ListViews_sync] diff --git a/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_undeploy_issue_model_async.py b/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_undeploy_issue_model_async.py new file mode 100644 index 000000000000..ce3f15787cdc --- /dev/null +++ b/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_undeploy_issue_model_async.py @@ -0,0 +1,49 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for UndeployIssueModel +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-contact-center-insights + + +# [START contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_UndeployIssueModel_async] +from google.cloud import contact_center_insights_v1 + + +async def sample_undeploy_issue_model(): + # Create a client + client = contact_center_insights_v1.ContactCenterInsightsAsyncClient() + + # Initialize request argument(s) + request = contact_center_insights_v1.UndeployIssueModelRequest( + name="name_value", + ) + + # Make the request + operation = client.undeploy_issue_model(request=request) + + print("Waiting for operation to complete...") + + response = await operation.result() + + # Handle the response + print(response) + +# [END contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_UndeployIssueModel_async] diff --git a/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_undeploy_issue_model_sync.py b/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_undeploy_issue_model_sync.py new file mode 100644 index 000000000000..8fcd2327bf4a --- /dev/null +++ b/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_undeploy_issue_model_sync.py @@ -0,0 +1,49 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for UndeployIssueModel +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-contact-center-insights + + +# [START contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_UndeployIssueModel_sync] +from google.cloud import contact_center_insights_v1 + + +def sample_undeploy_issue_model(): + # Create a client + client = contact_center_insights_v1.ContactCenterInsightsClient() + + # Initialize request argument(s) + request = contact_center_insights_v1.UndeployIssueModelRequest( + name="name_value", + ) + + # Make the request + operation = client.undeploy_issue_model(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + +# [END contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_UndeployIssueModel_sync] diff --git a/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_update_conversation_async.py b/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_update_conversation_async.py new file mode 100644 index 000000000000..48543db812d8 --- /dev/null +++ b/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_update_conversation_async.py @@ -0,0 +1,44 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for UpdateConversation +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-contact-center-insights + + +# [START contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_UpdateConversation_async] +from google.cloud import contact_center_insights_v1 + + +async def sample_update_conversation(): + # Create a client + client = contact_center_insights_v1.ContactCenterInsightsAsyncClient() + + # Initialize request argument(s) + request = contact_center_insights_v1.UpdateConversationRequest( + ) + + # Make the request + response = await client.update_conversation(request=request) + + # Handle the response + print(response) + +# [END contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_UpdateConversation_async] diff --git a/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_update_conversation_sync.py b/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_update_conversation_sync.py new file mode 100644 index 000000000000..0eb345f5e395 --- /dev/null +++ b/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_update_conversation_sync.py @@ -0,0 +1,44 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for UpdateConversation +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-contact-center-insights + + +# [START contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_UpdateConversation_sync] +from google.cloud import contact_center_insights_v1 + + +def sample_update_conversation(): + # Create a client + client = contact_center_insights_v1.ContactCenterInsightsClient() + + # Initialize request argument(s) + request = contact_center_insights_v1.UpdateConversationRequest( + ) + + # Make the request + response = client.update_conversation(request=request) + + # Handle the response + print(response) + +# [END contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_UpdateConversation_sync] diff --git a/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_update_issue_async.py b/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_update_issue_async.py new file mode 100644 index 000000000000..e8ffbbb06c76 --- /dev/null +++ b/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_update_issue_async.py @@ -0,0 +1,44 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for UpdateIssue +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-contact-center-insights + + +# [START contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_UpdateIssue_async] +from google.cloud import contact_center_insights_v1 + + +async def sample_update_issue(): + # Create a client + client = contact_center_insights_v1.ContactCenterInsightsAsyncClient() + + # Initialize request argument(s) + request = contact_center_insights_v1.UpdateIssueRequest( + ) + + # Make the request + response = await client.update_issue(request=request) + + # Handle the response + print(response) + +# [END contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_UpdateIssue_async] diff --git a/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_update_issue_model_async.py b/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_update_issue_model_async.py new file mode 100644 index 000000000000..2dc3f8054739 --- /dev/null +++ b/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_update_issue_model_async.py @@ -0,0 +1,44 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for UpdateIssueModel +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-contact-center-insights + + +# [START contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_UpdateIssueModel_async] +from google.cloud import contact_center_insights_v1 + + +async def sample_update_issue_model(): + # Create a client + client = contact_center_insights_v1.ContactCenterInsightsAsyncClient() + + # Initialize request argument(s) + request = contact_center_insights_v1.UpdateIssueModelRequest( + ) + + # Make the request + response = await client.update_issue_model(request=request) + + # Handle the response + print(response) + +# [END contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_UpdateIssueModel_async] diff --git a/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_update_issue_model_sync.py b/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_update_issue_model_sync.py new file mode 100644 index 000000000000..bd78acb19cfc --- /dev/null +++ b/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_update_issue_model_sync.py @@ -0,0 +1,44 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for UpdateIssueModel +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-contact-center-insights + + +# [START contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_UpdateIssueModel_sync] +from google.cloud import contact_center_insights_v1 + + +def sample_update_issue_model(): + # Create a client + client = contact_center_insights_v1.ContactCenterInsightsClient() + + # Initialize request argument(s) + request = contact_center_insights_v1.UpdateIssueModelRequest( + ) + + # Make the request + response = client.update_issue_model(request=request) + + # Handle the response + print(response) + +# [END contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_UpdateIssueModel_sync] diff --git a/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_update_issue_sync.py b/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_update_issue_sync.py new file mode 100644 index 000000000000..c63f41b1ccd1 --- /dev/null +++ b/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_update_issue_sync.py @@ -0,0 +1,44 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for UpdateIssue +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-contact-center-insights + + +# [START contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_UpdateIssue_sync] +from google.cloud import contact_center_insights_v1 + + +def sample_update_issue(): + # Create a client + client = contact_center_insights_v1.ContactCenterInsightsClient() + + # Initialize request argument(s) + request = contact_center_insights_v1.UpdateIssueRequest( + ) + + # Make the request + response = client.update_issue(request=request) + + # Handle the response + print(response) + +# [END contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_UpdateIssue_sync] diff --git a/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_update_phrase_matcher_async.py b/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_update_phrase_matcher_async.py new file mode 100644 index 000000000000..76fe15c8a5aa --- /dev/null +++ b/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_update_phrase_matcher_async.py @@ -0,0 +1,48 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for UpdatePhraseMatcher +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-contact-center-insights + + +# [START contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_UpdatePhraseMatcher_async] +from google.cloud import contact_center_insights_v1 + + +async def sample_update_phrase_matcher(): + # Create a client + client = contact_center_insights_v1.ContactCenterInsightsAsyncClient() + + # Initialize request argument(s) + phrase_matcher = contact_center_insights_v1.PhraseMatcher() + phrase_matcher.type_ = "ANY_OF" + + request = contact_center_insights_v1.UpdatePhraseMatcherRequest( + phrase_matcher=phrase_matcher, + ) + + # Make the request + response = await client.update_phrase_matcher(request=request) + + # Handle the response + print(response) + +# [END contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_UpdatePhraseMatcher_async] diff --git a/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_update_phrase_matcher_sync.py b/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_update_phrase_matcher_sync.py new file mode 100644 index 000000000000..4c7b27edda46 --- /dev/null +++ b/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_update_phrase_matcher_sync.py @@ -0,0 +1,48 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for UpdatePhraseMatcher +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-contact-center-insights + + +# [START contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_UpdatePhraseMatcher_sync] +from google.cloud import contact_center_insights_v1 + + +def sample_update_phrase_matcher(): + # Create a client + client = contact_center_insights_v1.ContactCenterInsightsClient() + + # Initialize request argument(s) + phrase_matcher = contact_center_insights_v1.PhraseMatcher() + phrase_matcher.type_ = "ANY_OF" + + request = contact_center_insights_v1.UpdatePhraseMatcherRequest( + phrase_matcher=phrase_matcher, + ) + + # Make the request + response = client.update_phrase_matcher(request=request) + + # Handle the response + print(response) + +# [END contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_UpdatePhraseMatcher_sync] diff --git a/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_update_settings_async.py b/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_update_settings_async.py new file mode 100644 index 000000000000..70d0cc5e7df5 --- /dev/null +++ b/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_update_settings_async.py @@ -0,0 +1,44 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for UpdateSettings +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-contact-center-insights + + +# [START contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_UpdateSettings_async] +from google.cloud import contact_center_insights_v1 + + +async def sample_update_settings(): + # Create a client + client = contact_center_insights_v1.ContactCenterInsightsAsyncClient() + + # Initialize request argument(s) + request = contact_center_insights_v1.UpdateSettingsRequest( + ) + + # Make the request + response = await client.update_settings(request=request) + + # Handle the response + print(response) + +# [END contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_UpdateSettings_async] diff --git a/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_update_settings_sync.py b/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_update_settings_sync.py new file mode 100644 index 000000000000..bb51d0652b2d --- /dev/null +++ b/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_update_settings_sync.py @@ -0,0 +1,44 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for UpdateSettings +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-contact-center-insights + + +# [START contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_UpdateSettings_sync] +from google.cloud import contact_center_insights_v1 + + +def sample_update_settings(): + # Create a client + client = contact_center_insights_v1.ContactCenterInsightsClient() + + # Initialize request argument(s) + request = contact_center_insights_v1.UpdateSettingsRequest( + ) + + # Make the request + response = client.update_settings(request=request) + + # Handle the response + print(response) + +# [END contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_UpdateSettings_sync] diff --git a/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_update_view_async.py b/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_update_view_async.py new file mode 100644 index 000000000000..b996f6d275e2 --- /dev/null +++ b/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_update_view_async.py @@ -0,0 +1,44 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for UpdateView +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-contact-center-insights + + +# [START contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_UpdateView_async] +from google.cloud import contact_center_insights_v1 + + +async def sample_update_view(): + # Create a client + client = contact_center_insights_v1.ContactCenterInsightsAsyncClient() + + # Initialize request argument(s) + request = contact_center_insights_v1.UpdateViewRequest( + ) + + # Make the request + response = await client.update_view(request=request) + + # Handle the response + print(response) + +# [END contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_UpdateView_async] diff --git a/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_update_view_sync.py b/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_update_view_sync.py new file mode 100644 index 000000000000..423c220a02c9 --- /dev/null +++ b/packages/google-cloud-contact-center-insights/samples/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_update_view_sync.py @@ -0,0 +1,44 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for UpdateView +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-contact-center-insights + + +# [START contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_UpdateView_sync] +from google.cloud import contact_center_insights_v1 + + +def sample_update_view(): + # Create a client + client = contact_center_insights_v1.ContactCenterInsightsClient() + + # Initialize request argument(s) + request = contact_center_insights_v1.UpdateViewRequest( + ) + + # Make the request + response = client.update_view(request=request) + + # Handle the response + print(response) + +# [END contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_UpdateView_sync] diff --git a/packages/google-cloud-contact-center-insights/samples/generated_samples/snippet_metadata_contact center insights_v1.json b/packages/google-cloud-contact-center-insights/samples/generated_samples/snippet_metadata_contact center insights_v1.json new file mode 100644 index 000000000000..1207f7bc7a23 --- /dev/null +++ b/packages/google-cloud-contact-center-insights/samples/generated_samples/snippet_metadata_contact center insights_v1.json @@ -0,0 +1,3014 @@ +{ + "snippets": [ + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "ContactCenterInsights" + }, + "shortName": "CalculateIssueModelStats" + } + }, + "file": "contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_calculate_issue_model_stats_async.py", + "regionTag": "contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_CalculateIssueModelStats_async", + "segments": [ + { + "end": 44, + "start": 27, + "type": "FULL" + }, + { + "end": 44, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 45, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "ContactCenterInsights" + }, + "shortName": "CalculateIssueModelStats" + } + }, + "file": "contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_calculate_issue_model_stats_sync.py", + "regionTag": "contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_CalculateIssueModelStats_sync", + "segments": [ + { + "end": 44, + "start": 27, + "type": "FULL" + }, + { + "end": 44, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 45, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "ContactCenterInsights" + }, + "shortName": "CalculateStats" + } + }, + "file": "contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_calculate_stats_async.py", + "regionTag": "contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_CalculateStats_async", + "segments": [ + { + "end": 44, + "start": 27, + "type": "FULL" + }, + { + "end": 44, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 45, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "ContactCenterInsights" + }, + "shortName": "CalculateStats" + } + }, + "file": "contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_calculate_stats_sync.py", + "regionTag": "contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_CalculateStats_sync", + "segments": [ + { + "end": 44, + "start": 27, + "type": "FULL" + }, + { + "end": 44, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 45, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "ContactCenterInsights" + }, + "shortName": "CreateAnalysis" + } + }, + "file": "contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_create_analysis_async.py", + "regionTag": "contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_CreateAnalysis_async", + "segments": [ + { + "end": 48, + "start": 27, + "type": "FULL" + }, + { + "end": 48, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 45, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 49, + "start": 46, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "ContactCenterInsights" + }, + "shortName": "CreateAnalysis" + } + }, + "file": "contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_create_analysis_sync.py", + "regionTag": "contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_CreateAnalysis_sync", + "segments": [ + { + "end": 48, + "start": 27, + "type": "FULL" + }, + { + "end": 48, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 45, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 49, + "start": 46, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "ContactCenterInsights" + }, + "shortName": "CreateConversation" + } + }, + "file": "contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_create_conversation_async.py", + "regionTag": "contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_CreateConversation_async", + "segments": [ + { + "end": 44, + "start": 27, + "type": "FULL" + }, + { + "end": 44, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 45, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "ContactCenterInsights" + }, + "shortName": "CreateConversation" + } + }, + "file": "contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_create_conversation_sync.py", + "regionTag": "contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_CreateConversation_sync", + "segments": [ + { + "end": 44, + "start": 27, + "type": "FULL" + }, + { + "end": 44, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 45, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "ContactCenterInsights" + }, + "shortName": "CreateIssueModel" + } + }, + "file": "contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_create_issue_model_async.py", + "regionTag": "contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_CreateIssueModel_async", + "segments": [ + { + "end": 48, + "start": 27, + "type": "FULL" + }, + { + "end": 48, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 45, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 49, + "start": 46, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "ContactCenterInsights" + }, + "shortName": "CreateIssueModel" + } + }, + "file": "contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_create_issue_model_sync.py", + "regionTag": "contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_CreateIssueModel_sync", + "segments": [ + { + "end": 48, + "start": 27, + "type": "FULL" + }, + { + "end": 48, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 45, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 49, + "start": 46, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "ContactCenterInsights" + }, + "shortName": "CreatePhraseMatcher" + } + }, + "file": "contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_create_phrase_matcher_async.py", + "regionTag": "contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_CreatePhraseMatcher_async", + "segments": [ + { + "end": 48, + "start": 27, + "type": "FULL" + }, + { + "end": 48, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 42, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 45, + "start": 43, + "type": "REQUEST_EXECUTION" + }, + { + "end": 49, + "start": 46, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "ContactCenterInsights" + }, + "shortName": "CreatePhraseMatcher" + } + }, + "file": "contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_create_phrase_matcher_sync.py", + "regionTag": "contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_CreatePhraseMatcher_sync", + "segments": [ + { + "end": 48, + "start": 27, + "type": "FULL" + }, + { + "end": 48, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 42, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 45, + "start": 43, + "type": "REQUEST_EXECUTION" + }, + { + "end": 49, + "start": 46, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "ContactCenterInsights" + }, + "shortName": "CreateView" + } + }, + "file": "contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_create_view_async.py", + "regionTag": "contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_CreateView_async", + "segments": [ + { + "end": 44, + "start": 27, + "type": "FULL" + }, + { + "end": 44, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 45, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "ContactCenterInsights" + }, + "shortName": "CreateView" + } + }, + "file": "contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_create_view_sync.py", + "regionTag": "contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_CreateView_sync", + "segments": [ + { + "end": 44, + "start": 27, + "type": "FULL" + }, + { + "end": 44, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 45, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "ContactCenterInsights" + }, + "shortName": "DeleteAnalysis" + } + }, + "file": "contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_delete_analysis_async.py", + "regionTag": "contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_DeleteAnalysis_async", + "segments": [ + { + "end": 42, + "start": 27, + "type": "FULL" + }, + { + "end": 42, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 43, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "ContactCenterInsights" + }, + "shortName": "DeleteAnalysis" + } + }, + "file": "contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_delete_analysis_sync.py", + "regionTag": "contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_DeleteAnalysis_sync", + "segments": [ + { + "end": 42, + "start": 27, + "type": "FULL" + }, + { + "end": 42, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 43, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "ContactCenterInsights" + }, + "shortName": "DeleteConversation" + } + }, + "file": "contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_delete_conversation_async.py", + "regionTag": "contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_DeleteConversation_async", + "segments": [ + { + "end": 42, + "start": 27, + "type": "FULL" + }, + { + "end": 42, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 43, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "ContactCenterInsights" + }, + "shortName": "DeleteConversation" + } + }, + "file": "contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_delete_conversation_sync.py", + "regionTag": "contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_DeleteConversation_sync", + "segments": [ + { + "end": 42, + "start": 27, + "type": "FULL" + }, + { + "end": 42, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 43, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "ContactCenterInsights" + }, + "shortName": "DeleteIssueModel" + } + }, + "file": "contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_delete_issue_model_async.py", + "regionTag": "contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_DeleteIssueModel_async", + "segments": [ + { + "end": 48, + "start": 27, + "type": "FULL" + }, + { + "end": 48, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 45, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 49, + "start": 46, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "ContactCenterInsights" + }, + "shortName": "DeleteIssueModel" + } + }, + "file": "contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_delete_issue_model_sync.py", + "regionTag": "contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_DeleteIssueModel_sync", + "segments": [ + { + "end": 48, + "start": 27, + "type": "FULL" + }, + { + "end": 48, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 45, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 49, + "start": 46, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "ContactCenterInsights" + }, + "shortName": "DeletePhraseMatcher" + } + }, + "file": "contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_delete_phrase_matcher_async.py", + "regionTag": "contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_DeletePhraseMatcher_async", + "segments": [ + { + "end": 42, + "start": 27, + "type": "FULL" + }, + { + "end": 42, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 43, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "ContactCenterInsights" + }, + "shortName": "DeletePhraseMatcher" + } + }, + "file": "contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_delete_phrase_matcher_sync.py", + "regionTag": "contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_DeletePhraseMatcher_sync", + "segments": [ + { + "end": 42, + "start": 27, + "type": "FULL" + }, + { + "end": 42, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 43, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "ContactCenterInsights" + }, + "shortName": "DeleteView" + } + }, + "file": "contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_delete_view_async.py", + "regionTag": "contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_DeleteView_async", + "segments": [ + { + "end": 42, + "start": 27, + "type": "FULL" + }, + { + "end": 42, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 43, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "ContactCenterInsights" + }, + "shortName": "DeleteView" + } + }, + "file": "contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_delete_view_sync.py", + "regionTag": "contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_DeleteView_sync", + "segments": [ + { + "end": 42, + "start": 27, + "type": "FULL" + }, + { + "end": 42, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 43, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "ContactCenterInsights" + }, + "shortName": "DeployIssueModel" + } + }, + "file": "contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_deploy_issue_model_async.py", + "regionTag": "contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_DeployIssueModel_async", + "segments": [ + { + "end": 48, + "start": 27, + "type": "FULL" + }, + { + "end": 48, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 45, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 49, + "start": 46, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "ContactCenterInsights" + }, + "shortName": "DeployIssueModel" + } + }, + "file": "contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_deploy_issue_model_sync.py", + "regionTag": "contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_DeployIssueModel_sync", + "segments": [ + { + "end": 48, + "start": 27, + "type": "FULL" + }, + { + "end": 48, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 45, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 49, + "start": 46, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "ContactCenterInsights" + }, + "shortName": "ExportInsightsData" + } + }, + "file": "contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_export_insights_data_async.py", + "regionTag": "contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_ExportInsightsData_async", + "segments": [ + { + "end": 52, + "start": 27, + "type": "FULL" + }, + { + "end": 52, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 42, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 49, + "start": 43, + "type": "REQUEST_EXECUTION" + }, + { + "end": 53, + "start": 50, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "ContactCenterInsights" + }, + "shortName": "ExportInsightsData" + } + }, + "file": "contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_export_insights_data_sync.py", + "regionTag": "contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_ExportInsightsData_sync", + "segments": [ + { + "end": 52, + "start": 27, + "type": "FULL" + }, + { + "end": 52, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 42, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 49, + "start": 43, + "type": "REQUEST_EXECUTION" + }, + { + "end": 53, + "start": 50, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "ContactCenterInsights" + }, + "shortName": "GetAnalysis" + } + }, + "file": "contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_get_analysis_async.py", + "regionTag": "contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_GetAnalysis_async", + "segments": [ + { + "end": 44, + "start": 27, + "type": "FULL" + }, + { + "end": 44, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 45, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "ContactCenterInsights" + }, + "shortName": "GetAnalysis" + } + }, + "file": "contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_get_analysis_sync.py", + "regionTag": "contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_GetAnalysis_sync", + "segments": [ + { + "end": 44, + "start": 27, + "type": "FULL" + }, + { + "end": 44, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 45, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "ContactCenterInsights" + }, + "shortName": "GetConversation" + } + }, + "file": "contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_get_conversation_async.py", + "regionTag": "contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_GetConversation_async", + "segments": [ + { + "end": 44, + "start": 27, + "type": "FULL" + }, + { + "end": 44, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 45, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "ContactCenterInsights" + }, + "shortName": "GetConversation" + } + }, + "file": "contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_get_conversation_sync.py", + "regionTag": "contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_GetConversation_sync", + "segments": [ + { + "end": 44, + "start": 27, + "type": "FULL" + }, + { + "end": 44, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 45, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "ContactCenterInsights" + }, + "shortName": "GetIssueModel" + } + }, + "file": "contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_get_issue_model_async.py", + "regionTag": "contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_GetIssueModel_async", + "segments": [ + { + "end": 44, + "start": 27, + "type": "FULL" + }, + { + "end": 44, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 45, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "ContactCenterInsights" + }, + "shortName": "GetIssueModel" + } + }, + "file": "contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_get_issue_model_sync.py", + "regionTag": "contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_GetIssueModel_sync", + "segments": [ + { + "end": 44, + "start": 27, + "type": "FULL" + }, + { + "end": 44, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 45, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "ContactCenterInsights" + }, + "shortName": "GetIssue" + } + }, + "file": "contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_get_issue_async.py", + "regionTag": "contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_GetIssue_async", + "segments": [ + { + "end": 44, + "start": 27, + "type": "FULL" + }, + { + "end": 44, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 45, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "ContactCenterInsights" + }, + "shortName": "GetIssue" + } + }, + "file": "contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_get_issue_sync.py", + "regionTag": "contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_GetIssue_sync", + "segments": [ + { + "end": 44, + "start": 27, + "type": "FULL" + }, + { + "end": 44, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 45, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "ContactCenterInsights" + }, + "shortName": "GetPhraseMatcher" + } + }, + "file": "contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_get_phrase_matcher_async.py", + "regionTag": "contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_GetPhraseMatcher_async", + "segments": [ + { + "end": 44, + "start": 27, + "type": "FULL" + }, + { + "end": 44, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 45, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "ContactCenterInsights" + }, + "shortName": "GetPhraseMatcher" + } + }, + "file": "contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_get_phrase_matcher_sync.py", + "regionTag": "contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_GetPhraseMatcher_sync", + "segments": [ + { + "end": 44, + "start": 27, + "type": "FULL" + }, + { + "end": 44, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 45, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "ContactCenterInsights" + }, + "shortName": "GetSettings" + } + }, + "file": "contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_get_settings_async.py", + "regionTag": "contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_GetSettings_async", + "segments": [ + { + "end": 44, + "start": 27, + "type": "FULL" + }, + { + "end": 44, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 45, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "ContactCenterInsights" + }, + "shortName": "GetSettings" + } + }, + "file": "contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_get_settings_sync.py", + "regionTag": "contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_GetSettings_sync", + "segments": [ + { + "end": 44, + "start": 27, + "type": "FULL" + }, + { + "end": 44, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 45, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "ContactCenterInsights" + }, + "shortName": "GetView" + } + }, + "file": "contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_get_view_async.py", + "regionTag": "contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_GetView_async", + "segments": [ + { + "end": 44, + "start": 27, + "type": "FULL" + }, + { + "end": 44, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 45, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "ContactCenterInsights" + }, + "shortName": "GetView" + } + }, + "file": "contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_get_view_sync.py", + "regionTag": "contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_GetView_sync", + "segments": [ + { + "end": 44, + "start": 27, + "type": "FULL" + }, + { + "end": 44, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 45, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "ContactCenterInsights" + }, + "shortName": "ListAnalyses" + } + }, + "file": "contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_list_analyses_async.py", + "regionTag": "contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_ListAnalyses_async", + "segments": [ + { + "end": 45, + "start": 27, + "type": "FULL" + }, + { + "end": 45, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 46, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "ContactCenterInsights" + }, + "shortName": "ListAnalyses" + } + }, + "file": "contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_list_analyses_sync.py", + "regionTag": "contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_ListAnalyses_sync", + "segments": [ + { + "end": 45, + "start": 27, + "type": "FULL" + }, + { + "end": 45, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 46, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "ContactCenterInsights" + }, + "shortName": "ListConversations" + } + }, + "file": "contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_list_conversations_async.py", + "regionTag": "contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_ListConversations_async", + "segments": [ + { + "end": 45, + "start": 27, + "type": "FULL" + }, + { + "end": 45, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 46, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "ContactCenterInsights" + }, + "shortName": "ListConversations" + } + }, + "file": "contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_list_conversations_sync.py", + "regionTag": "contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_ListConversations_sync", + "segments": [ + { + "end": 45, + "start": 27, + "type": "FULL" + }, + { + "end": 45, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 46, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "ContactCenterInsights" + }, + "shortName": "ListIssueModels" + } + }, + "file": "contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_list_issue_models_async.py", + "regionTag": "contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_ListIssueModels_async", + "segments": [ + { + "end": 44, + "start": 27, + "type": "FULL" + }, + { + "end": 44, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 45, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "ContactCenterInsights" + }, + "shortName": "ListIssueModels" + } + }, + "file": "contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_list_issue_models_sync.py", + "regionTag": "contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_ListIssueModels_sync", + "segments": [ + { + "end": 44, + "start": 27, + "type": "FULL" + }, + { + "end": 44, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 45, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "ContactCenterInsights" + }, + "shortName": "ListIssues" + } + }, + "file": "contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_list_issues_async.py", + "regionTag": "contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_ListIssues_async", + "segments": [ + { + "end": 44, + "start": 27, + "type": "FULL" + }, + { + "end": 44, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 45, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "ContactCenterInsights" + }, + "shortName": "ListIssues" + } + }, + "file": "contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_list_issues_sync.py", + "regionTag": "contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_ListIssues_sync", + "segments": [ + { + "end": 44, + "start": 27, + "type": "FULL" + }, + { + "end": 44, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 45, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "ContactCenterInsights" + }, + "shortName": "ListPhraseMatchers" + } + }, + "file": "contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_list_phrase_matchers_async.py", + "regionTag": "contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_ListPhraseMatchers_async", + "segments": [ + { + "end": 45, + "start": 27, + "type": "FULL" + }, + { + "end": 45, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 46, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "ContactCenterInsights" + }, + "shortName": "ListPhraseMatchers" + } + }, + "file": "contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_list_phrase_matchers_sync.py", + "regionTag": "contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_ListPhraseMatchers_sync", + "segments": [ + { + "end": 45, + "start": 27, + "type": "FULL" + }, + { + "end": 45, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 46, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "ContactCenterInsights" + }, + "shortName": "ListViews" + } + }, + "file": "contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_list_views_async.py", + "regionTag": "contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_ListViews_async", + "segments": [ + { + "end": 45, + "start": 27, + "type": "FULL" + }, + { + "end": 45, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 46, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "ContactCenterInsights" + }, + "shortName": "ListViews" + } + }, + "file": "contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_list_views_sync.py", + "regionTag": "contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_ListViews_sync", + "segments": [ + { + "end": 45, + "start": 27, + "type": "FULL" + }, + { + "end": 45, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 46, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "ContactCenterInsights" + }, + "shortName": "UndeployIssueModel" + } + }, + "file": "contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_undeploy_issue_model_async.py", + "regionTag": "contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_UndeployIssueModel_async", + "segments": [ + { + "end": 48, + "start": 27, + "type": "FULL" + }, + { + "end": 48, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 45, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 49, + "start": 46, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "ContactCenterInsights" + }, + "shortName": "UndeployIssueModel" + } + }, + "file": "contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_undeploy_issue_model_sync.py", + "regionTag": "contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_UndeployIssueModel_sync", + "segments": [ + { + "end": 48, + "start": 27, + "type": "FULL" + }, + { + "end": 48, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 45, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 49, + "start": 46, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "ContactCenterInsights" + }, + "shortName": "UpdateConversation" + } + }, + "file": "contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_update_conversation_async.py", + "regionTag": "contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_UpdateConversation_async", + "segments": [ + { + "end": 43, + "start": 27, + "type": "FULL" + }, + { + "end": 43, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 37, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 40, + "start": 38, + "type": "REQUEST_EXECUTION" + }, + { + "end": 44, + "start": 41, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "ContactCenterInsights" + }, + "shortName": "UpdateConversation" + } + }, + "file": "contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_update_conversation_sync.py", + "regionTag": "contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_UpdateConversation_sync", + "segments": [ + { + "end": 43, + "start": 27, + "type": "FULL" + }, + { + "end": 43, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 37, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 40, + "start": 38, + "type": "REQUEST_EXECUTION" + }, + { + "end": 44, + "start": 41, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "ContactCenterInsights" + }, + "shortName": "UpdateIssueModel" + } + }, + "file": "contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_update_issue_model_async.py", + "regionTag": "contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_UpdateIssueModel_async", + "segments": [ + { + "end": 43, + "start": 27, + "type": "FULL" + }, + { + "end": 43, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 37, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 40, + "start": 38, + "type": "REQUEST_EXECUTION" + }, + { + "end": 44, + "start": 41, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "ContactCenterInsights" + }, + "shortName": "UpdateIssueModel" + } + }, + "file": "contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_update_issue_model_sync.py", + "regionTag": "contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_UpdateIssueModel_sync", + "segments": [ + { + "end": 43, + "start": 27, + "type": "FULL" + }, + { + "end": 43, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 37, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 40, + "start": 38, + "type": "REQUEST_EXECUTION" + }, + { + "end": 44, + "start": 41, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "ContactCenterInsights" + }, + "shortName": "UpdateIssue" + } + }, + "file": "contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_update_issue_async.py", + "regionTag": "contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_UpdateIssue_async", + "segments": [ + { + "end": 43, + "start": 27, + "type": "FULL" + }, + { + "end": 43, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 37, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 40, + "start": 38, + "type": "REQUEST_EXECUTION" + }, + { + "end": 44, + "start": 41, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "ContactCenterInsights" + }, + "shortName": "UpdateIssue" + } + }, + "file": "contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_update_issue_sync.py", + "regionTag": "contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_UpdateIssue_sync", + "segments": [ + { + "end": 43, + "start": 27, + "type": "FULL" + }, + { + "end": 43, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 37, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 40, + "start": 38, + "type": "REQUEST_EXECUTION" + }, + { + "end": 44, + "start": 41, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "ContactCenterInsights" + }, + "shortName": "UpdatePhraseMatcher" + } + }, + "file": "contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_update_phrase_matcher_async.py", + "regionTag": "contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_UpdatePhraseMatcher_async", + "segments": [ + { + "end": 47, + "start": 27, + "type": "FULL" + }, + { + "end": 47, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 41, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 44, + "start": 42, + "type": "REQUEST_EXECUTION" + }, + { + "end": 48, + "start": 45, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "ContactCenterInsights" + }, + "shortName": "UpdatePhraseMatcher" + } + }, + "file": "contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_update_phrase_matcher_sync.py", + "regionTag": "contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_UpdatePhraseMatcher_sync", + "segments": [ + { + "end": 47, + "start": 27, + "type": "FULL" + }, + { + "end": 47, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 41, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 44, + "start": 42, + "type": "REQUEST_EXECUTION" + }, + { + "end": 48, + "start": 45, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "ContactCenterInsights" + }, + "shortName": "UpdateSettings" + } + }, + "file": "contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_update_settings_async.py", + "regionTag": "contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_UpdateSettings_async", + "segments": [ + { + "end": 43, + "start": 27, + "type": "FULL" + }, + { + "end": 43, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 37, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 40, + "start": 38, + "type": "REQUEST_EXECUTION" + }, + { + "end": 44, + "start": 41, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "ContactCenterInsights" + }, + "shortName": "UpdateSettings" + } + }, + "file": "contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_update_settings_sync.py", + "regionTag": "contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_UpdateSettings_sync", + "segments": [ + { + "end": 43, + "start": 27, + "type": "FULL" + }, + { + "end": 43, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 37, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 40, + "start": 38, + "type": "REQUEST_EXECUTION" + }, + { + "end": 44, + "start": 41, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "ContactCenterInsights" + }, + "shortName": "UpdateView" + } + }, + "file": "contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_update_view_async.py", + "regionTag": "contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_UpdateView_async", + "segments": [ + { + "end": 43, + "start": 27, + "type": "FULL" + }, + { + "end": 43, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 37, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 40, + "start": 38, + "type": "REQUEST_EXECUTION" + }, + { + "end": 44, + "start": 41, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "ContactCenterInsights" + }, + "shortName": "UpdateView" + } + }, + "file": "contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_update_view_sync.py", + "regionTag": "contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_UpdateView_sync", + "segments": [ + { + "end": 43, + "start": 27, + "type": "FULL" + }, + { + "end": 43, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 37, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 40, + "start": 38, + "type": "REQUEST_EXECUTION" + }, + { + "end": 44, + "start": 41, + "type": "RESPONSE_HANDLING" + } + ] + } + ] +}