From 93d5be8b17fb0130680be1902b556f5d8ce10081 Mon Sep 17 00:00:00 2001 From: Bamboo Le <8941262+TrucHLe@users.noreply.github.com> Date: Wed, 1 Sep 2021 15:29:30 -0400 Subject: [PATCH 001/112] samples: enable pubsub notifications (#13) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * samples: initial update pubsub notifications samples * Make the sample closely resemble the public Curl snippet * Rearrange tech writer tags * Clean up tests * move region tags * use fstring * use built-in settings path builder * remove region tag from helper function * Fix code samples according to review * add pytest to requirements-test.txt * Use double quotes for consistency * Assert message in test * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * reorder import groups * lint * Use pytest fixture and autoformat with Nox * disable pubsub notifications when tearing down test Co-authored-by: Owl Bot Co-authored-by: Eric Schmidt --- .../snippets/enable_pubsub_notifications.py | 41 +++ contact-center-insights/snippets/noxfile.py | 266 ++++++++++++++++++ .../snippets/requirements-test.txt | 4 + .../snippets/requirements.txt | 2 + .../test_enable_pubsub_notifications.py | 81 ++++++ 5 files changed, 394 insertions(+) create mode 100644 contact-center-insights/snippets/enable_pubsub_notifications.py create mode 100644 contact-center-insights/snippets/noxfile.py create mode 100644 contact-center-insights/snippets/requirements-test.txt create mode 100644 contact-center-insights/snippets/requirements.txt create mode 100644 contact-center-insights/snippets/test_enable_pubsub_notifications.py diff --git a/contact-center-insights/snippets/enable_pubsub_notifications.py b/contact-center-insights/snippets/enable_pubsub_notifications.py new file mode 100644 index 000000000000..0c7e8d976855 --- /dev/null +++ b/contact-center-insights/snippets/enable_pubsub_notifications.py @@ -0,0 +1,41 @@ +# Copyright 2021 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. +# +# [START contactcenterinsights_enable_pubsub_notifications] +from google.api_core import protobuf_helpers +from google.cloud import contact_center_insights_v1 + + +def enable_pubsub_notifications( + project_id: str, topic_create_conversation: str, topic_create_analysis: str +) -> None: + # Construct a settings resource. + settings = contact_center_insights_v1.Settings() + settings.name = contact_center_insights_v1.ContactCenterInsightsClient.settings_path( + project_id, "us-central1" + ) + settings.pubsub_notification_settings = { + "create-conversation": topic_create_conversation, + "create-analysis": topic_create_analysis, + } + + update_mask = protobuf_helpers.field_mask(None, type(settings).pb(settings)) + + # Call the Insights client to enable Pub/Sub notifications. + insights_client = contact_center_insights_v1.ContactCenterInsightsClient() + insights_client.update_settings(settings=settings, update_mask=update_mask) + print("Enabled Pub/Sub notifications") + + +# [END contactcenterinsights_enable_pubsub_notifications] diff --git a/contact-center-insights/snippets/noxfile.py b/contact-center-insights/snippets/noxfile.py new file mode 100644 index 000000000000..b008613f03ff --- /dev/null +++ b/contact-center-insights/snippets/noxfile.py @@ -0,0 +1,266 @@ +# Copyright 2019 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. + +from __future__ import print_function + +import os +from pathlib import Path +import sys +from typing import Callable, Dict, List, Optional + +import nox + + +# WARNING - WARNING - WARNING - WARNING - WARNING +# WARNING - WARNING - WARNING - WARNING - WARNING +# DO NOT EDIT THIS FILE EVER! +# WARNING - WARNING - WARNING - WARNING - WARNING +# WARNING - WARNING - WARNING - WARNING - WARNING + +BLACK_VERSION = "black==19.10b0" + +# Copy `noxfile_config.py` to your directory and modify it instead. + +# `TEST_CONFIG` dict is a configuration hook that allows users to +# modify the test configurations. The values here should be in sync +# with `noxfile_config.py`. Users will copy `noxfile_config.py` into +# their directory and modify it. + +TEST_CONFIG = { + # You can opt out from the test for specific Python versions. + "ignored_versions": [], + # Old samples are opted out of enforcing Python type hints + # All new samples should feature them + "enforce_type_hints": False, + # An envvar key for determining the project id to use. Change it + # to 'BUILD_SPECIFIC_GCLOUD_PROJECT' if you want to opt in using a + # build specific Cloud project. You can also use your own string + # to use your own Cloud project. + "gcloud_project_env": "GOOGLE_CLOUD_PROJECT", + # 'gcloud_project_env': 'BUILD_SPECIFIC_GCLOUD_PROJECT', + # If you need to use a specific version of pip, + # change pip_version_override to the string representation + # of the version number, for example, "20.2.4" + "pip_version_override": None, + # A dictionary you want to inject into your test. Don't put any + # secrets here. These values will override predefined values. + "envs": {}, +} + + +try: + # Ensure we can import noxfile_config in the project's directory. + sys.path.append(".") + from noxfile_config import TEST_CONFIG_OVERRIDE +except ImportError as e: + print("No user noxfile_config found: detail: {}".format(e)) + TEST_CONFIG_OVERRIDE = {} + +# Update the TEST_CONFIG with the user supplied values. +TEST_CONFIG.update(TEST_CONFIG_OVERRIDE) + + +def get_pytest_env_vars() -> Dict[str, str]: + """Returns a dict for pytest invocation.""" + ret = {} + + # Override the GCLOUD_PROJECT and the alias. + env_key = TEST_CONFIG["gcloud_project_env"] + # This should error out if not set. + ret["GOOGLE_CLOUD_PROJECT"] = os.environ[env_key] + + # Apply user supplied envs. + ret.update(TEST_CONFIG["envs"]) + return ret + + +# DO NOT EDIT - automatically generated. +# All versions used to test samples. +ALL_VERSIONS = ["3.6", "3.7", "3.8", "3.9"] + +# Any default versions that should be ignored. +IGNORED_VERSIONS = TEST_CONFIG["ignored_versions"] + +TESTED_VERSIONS = sorted([v for v in ALL_VERSIONS if v not in IGNORED_VERSIONS]) + +INSTALL_LIBRARY_FROM_SOURCE = os.environ.get("INSTALL_LIBRARY_FROM_SOURCE", False) in ( + "True", + "true", +) +# +# Style Checks +# + + +def _determine_local_import_names(start_dir: str) -> List[str]: + """Determines all import names that should be considered "local". + + This is used when running the linter to insure that import order is + properly checked. + """ + file_ext_pairs = [os.path.splitext(path) for path in os.listdir(start_dir)] + return [ + basename + for basename, extension in file_ext_pairs + if extension == ".py" + or os.path.isdir(os.path.join(start_dir, basename)) + and basename not in ("__pycache__") + ] + + +# Linting with flake8. +# +# We ignore the following rules: +# E203: whitespace before ‘:’ +# E266: too many leading ‘#’ for block comment +# E501: line too long +# I202: Additional newline in a section of imports +# +# We also need to specify the rules which are ignored by default: +# ['E226', 'W504', 'E126', 'E123', 'W503', 'E24', 'E704', 'E121'] +FLAKE8_COMMON_ARGS = [ + "--show-source", + "--builtin=gettext", + "--max-complexity=20", + "--import-order-style=google", + "--exclude=.nox,.cache,env,lib,generated_pb2,*_pb2.py,*_pb2_grpc.py", + "--ignore=E121,E123,E126,E203,E226,E24,E266,E501,E704,W503,W504,I202", + "--max-line-length=88", +] + + +@nox.session +def lint(session: nox.sessions.Session) -> None: + if not TEST_CONFIG["enforce_type_hints"]: + session.install("flake8", "flake8-import-order") + else: + session.install("flake8", "flake8-import-order", "flake8-annotations") + + local_names = _determine_local_import_names(".") + args = FLAKE8_COMMON_ARGS + [ + "--application-import-names", + ",".join(local_names), + ".", + ] + session.run("flake8", *args) + + +# +# Black +# + + +@nox.session +def blacken(session: nox.sessions.Session) -> None: + session.install(BLACK_VERSION) + python_files = [path for path in os.listdir(".") if path.endswith(".py")] + + session.run("black", *python_files) + + +# +# Sample Tests +# + + +PYTEST_COMMON_ARGS = ["--junitxml=sponge_log.xml"] + + +def _session_tests( + session: nox.sessions.Session, post_install: Callable = None +) -> None: + if TEST_CONFIG["pip_version_override"]: + pip_version = TEST_CONFIG["pip_version_override"] + session.install(f"pip=={pip_version}") + """Runs py.test for a particular project.""" + if os.path.exists("requirements.txt"): + if os.path.exists("constraints.txt"): + session.install("-r", "requirements.txt", "-c", "constraints.txt") + else: + session.install("-r", "requirements.txt") + + if os.path.exists("requirements-test.txt"): + if os.path.exists("constraints-test.txt"): + session.install("-r", "requirements-test.txt", "-c", "constraints-test.txt") + else: + session.install("-r", "requirements-test.txt") + + if INSTALL_LIBRARY_FROM_SOURCE: + session.install("-e", _get_repo_root()) + + if post_install: + post_install(session) + + session.run( + "pytest", + *(PYTEST_COMMON_ARGS + session.posargs), + # Pytest will return 5 when no tests are collected. This can happen + # on travis where slow and flaky tests are excluded. + # See http://doc.pytest.org/en/latest/_modules/_pytest/main.html + success_codes=[0, 5], + env=get_pytest_env_vars(), + ) + + +@nox.session(python=ALL_VERSIONS) +def py(session: nox.sessions.Session) -> None: + """Runs py.test for a sample using the specified version of Python.""" + if session.python in TESTED_VERSIONS: + _session_tests(session) + else: + session.skip( + "SKIPPED: {} tests are disabled for this sample.".format(session.python) + ) + + +# +# Readmegen +# + + +def _get_repo_root() -> Optional[str]: + """ Returns the root folder of the project. """ + # Get root of this repository. Assume we don't have directories nested deeper than 10 items. + p = Path(os.getcwd()) + for i in range(10): + if p is None: + break + if Path(p / ".git").exists(): + return str(p) + # .git is not available in repos cloned via Cloud Build + # setup.py is always in the library's root, so use that instead + # https://github.com/googleapis/synthtool/issues/792 + if Path(p / "setup.py").exists(): + return str(p) + p = p.parent + raise Exception("Unable to detect repository root.") + + +GENERATED_READMES = sorted([x for x in Path(".").rglob("*.rst.in")]) + + +@nox.session +@nox.parametrize("path", GENERATED_READMES) +def readmegen(session: nox.sessions.Session, path: str) -> None: + """(Re-)generates the readme for a sample.""" + session.install("jinja2", "pyyaml") + dir_ = os.path.dirname(path) + + if os.path.exists(os.path.join(dir_, "requirements.txt")): + session.install("-r", os.path.join(dir_, "requirements.txt")) + + in_file = os.path.join(dir_, "README.rst.in") + session.run( + "python", _get_repo_root() + "/scripts/readme-gen/readme_gen.py", in_file + ) diff --git a/contact-center-insights/snippets/requirements-test.txt b/contact-center-insights/snippets/requirements-test.txt new file mode 100644 index 000000000000..06fff6575040 --- /dev/null +++ b/contact-center-insights/snippets/requirements-test.txt @@ -0,0 +1,4 @@ +google-auth==1.34.0 +google-cloud-pubsub==2.7.0 +protobuf==3.17.3 +pytest==6.2.4 diff --git a/contact-center-insights/snippets/requirements.txt b/contact-center-insights/snippets/requirements.txt new file mode 100644 index 000000000000..b44e13aa8625 --- /dev/null +++ b/contact-center-insights/snippets/requirements.txt @@ -0,0 +1,2 @@ +google-api-core==1.31.1 +google-cloud-contact-center-insights==0.2.0 diff --git a/contact-center-insights/snippets/test_enable_pubsub_notifications.py b/contact-center-insights/snippets/test_enable_pubsub_notifications.py new file mode 100644 index 000000000000..2ab1e79ac27b --- /dev/null +++ b/contact-center-insights/snippets/test_enable_pubsub_notifications.py @@ -0,0 +1,81 @@ +# Copyright 2021 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. +# +import uuid + +import google.auth + +from google.cloud import contact_center_insights_v1 +from google.cloud import pubsub_v1 +from google.protobuf import field_mask_pb2 + +import pytest + +import enable_pubsub_notifications + +UUID = uuid.uuid4().hex[:8] +CONVERSATION_TOPIC_ID = "create-conversation-" + UUID +ANALYSIS_TOPIC_ID = "create-analysis-" + UUID + + +@pytest.fixture +def project_id(): + _, project_id = google.auth.default() + return project_id + + +@pytest.fixture +def pubsub_topics(project_id): + # Create Pub/Sub topics. + pubsub_client = pubsub_v1.PublisherClient() + conversation_topic_path = pubsub_client.topic_path( + project_id, CONVERSATION_TOPIC_ID + ) + conversation_topic = pubsub_client.create_topic( + request={"name": conversation_topic_path} + ) + analysis_topic_path = pubsub_client.topic_path(project_id, ANALYSIS_TOPIC_ID) + analysis_topic = pubsub_client.create_topic(request={"name": analysis_topic_path}) + yield conversation_topic.name, analysis_topic.name + + # Delete Pub/Sub topics. + pubsub_client.delete_topic(request={"topic": conversation_topic.name}) + pubsub_client.delete_topic(request={"topic": analysis_topic.name}) + + +@pytest.fixture +def disable_pubsub_notifications(project_id): + yield + settings = contact_center_insights_v1.Settings() + settings.name = contact_center_insights_v1.ContactCenterInsightsClient.settings_path( + project_id, "us-central1" + ) + settings.pubsub_notification_settings = {} + update_mask = field_mask_pb2.FieldMask() + update_mask.paths.append("pubsub_notification_settings") + + insights_client = contact_center_insights_v1.ContactCenterInsightsClient() + insights_client.update_settings(settings=settings, update_mask=update_mask) + + +def test_enable_pubsub_notifications( + capsys, project_id, pubsub_topics, disable_pubsub_notifications +): + conversation_topic, analysis_topic = pubsub_topics + + enable_pubsub_notifications.enable_pubsub_notifications( + project_id, conversation_topic, analysis_topic + ) + out, err = capsys.readouterr() + assert "Enabled Pub/Sub notifications" in out From b64c6a1d7bfa886e8d4f0d234e362e2b80e8dbcb Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 1 Sep 2021 23:48:44 +0200 Subject: [PATCH 002/112] chore(deps): update all dependencies (#39) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update all dependencies * 🦉 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/snippets/noxfile.py | 44 ++++++++----------- .../snippets/requirements-test.txt | 6 +-- .../snippets/requirements.txt | 2 +- 3 files changed, 23 insertions(+), 29 deletions(-) diff --git a/contact-center-insights/snippets/noxfile.py b/contact-center-insights/snippets/noxfile.py index b008613f03ff..e73436a15626 100644 --- a/contact-center-insights/snippets/noxfile.py +++ b/contact-center-insights/snippets/noxfile.py @@ -39,15 +39,17 @@ TEST_CONFIG = { # You can opt out from the test for specific Python versions. - "ignored_versions": [], + 'ignored_versions': [], + # Old samples are opted out of enforcing Python type hints # All new samples should feature them - "enforce_type_hints": False, + 'enforce_type_hints': False, + # An envvar key for determining the project id to use. Change it # to 'BUILD_SPECIFIC_GCLOUD_PROJECT' if you want to opt in using a # build specific Cloud project. You can also use your own string # to use your own Cloud project. - "gcloud_project_env": "GOOGLE_CLOUD_PROJECT", + 'gcloud_project_env': 'GOOGLE_CLOUD_PROJECT', # 'gcloud_project_env': 'BUILD_SPECIFIC_GCLOUD_PROJECT', # If you need to use a specific version of pip, # change pip_version_override to the string representation @@ -55,13 +57,13 @@ "pip_version_override": None, # A dictionary you want to inject into your test. Don't put any # secrets here. These values will override predefined values. - "envs": {}, + 'envs': {}, } try: # Ensure we can import noxfile_config in the project's directory. - sys.path.append(".") + sys.path.append('.') from noxfile_config import TEST_CONFIG_OVERRIDE except ImportError as e: print("No user noxfile_config found: detail: {}".format(e)) @@ -76,12 +78,12 @@ def get_pytest_env_vars() -> Dict[str, str]: ret = {} # Override the GCLOUD_PROJECT and the alias. - env_key = TEST_CONFIG["gcloud_project_env"] + env_key = TEST_CONFIG['gcloud_project_env'] # This should error out if not set. - ret["GOOGLE_CLOUD_PROJECT"] = os.environ[env_key] + ret['GOOGLE_CLOUD_PROJECT'] = os.environ[env_key] # Apply user supplied envs. - ret.update(TEST_CONFIG["envs"]) + ret.update(TEST_CONFIG['envs']) return ret @@ -90,14 +92,11 @@ def get_pytest_env_vars() -> Dict[str, str]: ALL_VERSIONS = ["3.6", "3.7", "3.8", "3.9"] # Any default versions that should be ignored. -IGNORED_VERSIONS = TEST_CONFIG["ignored_versions"] +IGNORED_VERSIONS = TEST_CONFIG['ignored_versions'] TESTED_VERSIONS = sorted([v for v in ALL_VERSIONS if v not in IGNORED_VERSIONS]) -INSTALL_LIBRARY_FROM_SOURCE = os.environ.get("INSTALL_LIBRARY_FROM_SOURCE", False) in ( - "True", - "true", -) +INSTALL_LIBRARY_FROM_SOURCE = os.environ.get("INSTALL_LIBRARY_FROM_SOURCE", False) in ("True", "true") # # Style Checks # @@ -142,7 +141,7 @@ def _determine_local_import_names(start_dir: str) -> List[str]: @nox.session def lint(session: nox.sessions.Session) -> None: - if not TEST_CONFIG["enforce_type_hints"]: + if not TEST_CONFIG['enforce_type_hints']: session.install("flake8", "flake8-import-order") else: session.install("flake8", "flake8-import-order", "flake8-annotations") @@ -151,11 +150,9 @@ def lint(session: nox.sessions.Session) -> None: args = FLAKE8_COMMON_ARGS + [ "--application-import-names", ",".join(local_names), - ".", + "." ] session.run("flake8", *args) - - # # Black # @@ -168,7 +165,6 @@ def blacken(session: nox.sessions.Session) -> None: session.run("black", *python_files) - # # Sample Tests # @@ -177,9 +173,7 @@ def blacken(session: nox.sessions.Session) -> None: PYTEST_COMMON_ARGS = ["--junitxml=sponge_log.xml"] -def _session_tests( - session: nox.sessions.Session, post_install: Callable = None -) -> None: +def _session_tests(session: nox.sessions.Session, post_install: Callable = None) -> None: if TEST_CONFIG["pip_version_override"]: pip_version = TEST_CONFIG["pip_version_override"] session.install(f"pip=={pip_version}") @@ -209,7 +203,7 @@ def _session_tests( # on travis where slow and flaky tests are excluded. # See http://doc.pytest.org/en/latest/_modules/_pytest/main.html success_codes=[0, 5], - env=get_pytest_env_vars(), + env=get_pytest_env_vars() ) @@ -219,9 +213,9 @@ def py(session: nox.sessions.Session) -> None: if session.python in TESTED_VERSIONS: _session_tests(session) else: - session.skip( - "SKIPPED: {} tests are disabled for this sample.".format(session.python) - ) + session.skip("SKIPPED: {} tests are disabled for this sample.".format( + session.python + )) # diff --git a/contact-center-insights/snippets/requirements-test.txt b/contact-center-insights/snippets/requirements-test.txt index 06fff6575040..7441eba936fd 100644 --- a/contact-center-insights/snippets/requirements-test.txt +++ b/contact-center-insights/snippets/requirements-test.txt @@ -1,4 +1,4 @@ -google-auth==1.34.0 -google-cloud-pubsub==2.7.0 +google-auth==2.0.2 +google-cloud-pubsub==2.7.1 protobuf==3.17.3 -pytest==6.2.4 +pytest==6.2.5 diff --git a/contact-center-insights/snippets/requirements.txt b/contact-center-insights/snippets/requirements.txt index b44e13aa8625..d8de57c1ba2f 100644 --- a/contact-center-insights/snippets/requirements.txt +++ b/contact-center-insights/snippets/requirements.txt @@ -1,2 +1,2 @@ -google-api-core==1.31.1 +google-api-core==2.0.1 google-cloud-contact-center-insights==0.2.0 From c62e2ddd27e3c634ced0ea515129c91d620e7c82 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 7 Sep 2021 17:39:46 +0200 Subject: [PATCH 003/112] chore(deps): update dependency google-cloud-pubsub to v2.8.0 (#40) --- contact-center-insights/snippets/requirements-test.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contact-center-insights/snippets/requirements-test.txt b/contact-center-insights/snippets/requirements-test.txt index 7441eba936fd..50c73585a6bf 100644 --- a/contact-center-insights/snippets/requirements-test.txt +++ b/contact-center-insights/snippets/requirements-test.txt @@ -1,4 +1,4 @@ google-auth==2.0.2 -google-cloud-pubsub==2.7.1 +google-cloud-pubsub==2.8.0 protobuf==3.17.3 pytest==6.2.5 From 32e66b5cdb275e7a4075a594c690017abc1edc97 Mon Sep 17 00:00:00 2001 From: Bamboo Le <8941262+TrucHLe@users.noreply.github.com> Date: Mon, 13 Sep 2021 11:29:04 -0400 Subject: [PATCH 004/112] samples: export data to BigQuery (#45) --- .../snippets/export_to_bigquery.py | 42 ++++++++++++ contact-center-insights/snippets/noxfile.py | 44 +++++++------ .../snippets/requirements.txt | 1 + .../test_enable_pubsub_notifications.py | 2 +- .../snippets/test_export_to_bigquery.py | 65 +++++++++++++++++++ 5 files changed, 134 insertions(+), 20 deletions(-) create mode 100644 contact-center-insights/snippets/export_to_bigquery.py create mode 100644 contact-center-insights/snippets/test_export_to_bigquery.py diff --git a/contact-center-insights/snippets/export_to_bigquery.py b/contact-center-insights/snippets/export_to_bigquery.py new file mode 100644 index 000000000000..06e2e41bda8a --- /dev/null +++ b/contact-center-insights/snippets/export_to_bigquery.py @@ -0,0 +1,42 @@ +# Copyright 2021 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. +# +# [START contactcenterinsights_export_to_bigquery] +from google.cloud import contact_center_insights_v1 + + +def export_to_bigquery( + project_id: str, + bigquery_project_id: str, + bigquery_dataset_id: str, + bigquery_table_id: str, +) -> None: + # Construct an export request. + request = contact_center_insights_v1.ExportInsightsDataRequest() + request.parent = contact_center_insights_v1.ContactCenterInsightsClient.common_location_path( + project_id, "us-central1" + ) + request.big_query_destination.project_id = bigquery_project_id + request.big_query_destination.dataset = bigquery_dataset_id + request.big_query_destination.table = bigquery_table_id + request.filter = 'agent_id="007"' + + # Call the Insights client to export data to BigQuery. + insights_client = contact_center_insights_v1.ContactCenterInsightsClient() + export_operation = insights_client.export_insights_data(request=request) + export_operation.result(timeout=600000) + print("Exported data to BigQuery") + + +# [END contactcenterinsights_export_to_bigquery] diff --git a/contact-center-insights/snippets/noxfile.py b/contact-center-insights/snippets/noxfile.py index e73436a15626..b008613f03ff 100644 --- a/contact-center-insights/snippets/noxfile.py +++ b/contact-center-insights/snippets/noxfile.py @@ -39,17 +39,15 @@ TEST_CONFIG = { # You can opt out from the test for specific Python versions. - 'ignored_versions': [], - + "ignored_versions": [], # Old samples are opted out of enforcing Python type hints # All new samples should feature them - 'enforce_type_hints': False, - + "enforce_type_hints": False, # An envvar key for determining the project id to use. Change it # to 'BUILD_SPECIFIC_GCLOUD_PROJECT' if you want to opt in using a # build specific Cloud project. You can also use your own string # to use your own Cloud project. - 'gcloud_project_env': 'GOOGLE_CLOUD_PROJECT', + "gcloud_project_env": "GOOGLE_CLOUD_PROJECT", # 'gcloud_project_env': 'BUILD_SPECIFIC_GCLOUD_PROJECT', # If you need to use a specific version of pip, # change pip_version_override to the string representation @@ -57,13 +55,13 @@ "pip_version_override": None, # A dictionary you want to inject into your test. Don't put any # secrets here. These values will override predefined values. - 'envs': {}, + "envs": {}, } try: # Ensure we can import noxfile_config in the project's directory. - sys.path.append('.') + sys.path.append(".") from noxfile_config import TEST_CONFIG_OVERRIDE except ImportError as e: print("No user noxfile_config found: detail: {}".format(e)) @@ -78,12 +76,12 @@ def get_pytest_env_vars() -> Dict[str, str]: ret = {} # Override the GCLOUD_PROJECT and the alias. - env_key = TEST_CONFIG['gcloud_project_env'] + env_key = TEST_CONFIG["gcloud_project_env"] # This should error out if not set. - ret['GOOGLE_CLOUD_PROJECT'] = os.environ[env_key] + ret["GOOGLE_CLOUD_PROJECT"] = os.environ[env_key] # Apply user supplied envs. - ret.update(TEST_CONFIG['envs']) + ret.update(TEST_CONFIG["envs"]) return ret @@ -92,11 +90,14 @@ def get_pytest_env_vars() -> Dict[str, str]: ALL_VERSIONS = ["3.6", "3.7", "3.8", "3.9"] # Any default versions that should be ignored. -IGNORED_VERSIONS = TEST_CONFIG['ignored_versions'] +IGNORED_VERSIONS = TEST_CONFIG["ignored_versions"] TESTED_VERSIONS = sorted([v for v in ALL_VERSIONS if v not in IGNORED_VERSIONS]) -INSTALL_LIBRARY_FROM_SOURCE = os.environ.get("INSTALL_LIBRARY_FROM_SOURCE", False) in ("True", "true") +INSTALL_LIBRARY_FROM_SOURCE = os.environ.get("INSTALL_LIBRARY_FROM_SOURCE", False) in ( + "True", + "true", +) # # Style Checks # @@ -141,7 +142,7 @@ def _determine_local_import_names(start_dir: str) -> List[str]: @nox.session def lint(session: nox.sessions.Session) -> None: - if not TEST_CONFIG['enforce_type_hints']: + if not TEST_CONFIG["enforce_type_hints"]: session.install("flake8", "flake8-import-order") else: session.install("flake8", "flake8-import-order", "flake8-annotations") @@ -150,9 +151,11 @@ def lint(session: nox.sessions.Session) -> None: args = FLAKE8_COMMON_ARGS + [ "--application-import-names", ",".join(local_names), - "." + ".", ] session.run("flake8", *args) + + # # Black # @@ -165,6 +168,7 @@ def blacken(session: nox.sessions.Session) -> None: session.run("black", *python_files) + # # Sample Tests # @@ -173,7 +177,9 @@ def blacken(session: nox.sessions.Session) -> None: PYTEST_COMMON_ARGS = ["--junitxml=sponge_log.xml"] -def _session_tests(session: nox.sessions.Session, post_install: Callable = None) -> None: +def _session_tests( + session: nox.sessions.Session, post_install: Callable = None +) -> None: if TEST_CONFIG["pip_version_override"]: pip_version = TEST_CONFIG["pip_version_override"] session.install(f"pip=={pip_version}") @@ -203,7 +209,7 @@ def _session_tests(session: nox.sessions.Session, post_install: Callable = None) # on travis where slow and flaky tests are excluded. # See http://doc.pytest.org/en/latest/_modules/_pytest/main.html success_codes=[0, 5], - env=get_pytest_env_vars() + env=get_pytest_env_vars(), ) @@ -213,9 +219,9 @@ def py(session: nox.sessions.Session) -> None: if session.python in TESTED_VERSIONS: _session_tests(session) else: - session.skip("SKIPPED: {} tests are disabled for this sample.".format( - session.python - )) + session.skip( + "SKIPPED: {} tests are disabled for this sample.".format(session.python) + ) # diff --git a/contact-center-insights/snippets/requirements.txt b/contact-center-insights/snippets/requirements.txt index d8de57c1ba2f..b9e610596a8b 100644 --- a/contact-center-insights/snippets/requirements.txt +++ b/contact-center-insights/snippets/requirements.txt @@ -1,2 +1,3 @@ google-api-core==2.0.1 +google-cloud-bigquery==2.26.0 google-cloud-contact-center-insights==0.2.0 diff --git a/contact-center-insights/snippets/test_enable_pubsub_notifications.py b/contact-center-insights/snippets/test_enable_pubsub_notifications.py index 2ab1e79ac27b..42eb87d9ab6a 100644 --- a/contact-center-insights/snippets/test_enable_pubsub_notifications.py +++ b/contact-center-insights/snippets/test_enable_pubsub_notifications.py @@ -70,7 +70,7 @@ def disable_pubsub_notifications(project_id): def test_enable_pubsub_notifications( - capsys, project_id, pubsub_topics, disable_pubsub_notifications + capsys, project_id, pubsub_topics, disable_pubsub_notifications ): conversation_topic, analysis_topic = pubsub_topics diff --git a/contact-center-insights/snippets/test_export_to_bigquery.py b/contact-center-insights/snippets/test_export_to_bigquery.py new file mode 100644 index 000000000000..6f628605ce1d --- /dev/null +++ b/contact-center-insights/snippets/test_export_to_bigquery.py @@ -0,0 +1,65 @@ +# Copyright 2021 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. +# +import uuid + +import google.auth + +from google.cloud import bigquery + +import pytest + +import export_to_bigquery + +GCLOUD_TESTS_PREFIX = "python_samples_tests" + + +@pytest.fixture +def project_id(): + _, project_id = google.auth.default() + return project_id + + +@pytest.fixture +def unique_id(): + uuid_hex = uuid.uuid4().hex[:8] + return f"{GCLOUD_TESTS_PREFIX}_{uuid_hex}" + + +@pytest.fixture +def bigquery_resources(project_id, unique_id): + # Create a BigQuery dataset. + bigquery_client = bigquery.Client() + dataset_id = unique_id + table_id = unique_id + + dataset = bigquery.Dataset(f"{project_id}.{dataset_id}") + dataset.location = "US" + bigquery_client.create_dataset(dataset, timeout=30) + + # Create a BigQuery table under the created dataset. + table = bigquery.Table(f"{project_id}.{dataset_id}.{table_id}") + bigquery_client.create_table(table) + + yield dataset_id, table_id + + # Delete the BigQuery dataset and table. + bigquery_client.delete_dataset(dataset_id, delete_contents=True) + + +def test_export_data_to_bigquery(capsys, project_id, bigquery_resources): + dataset_id, table_id = bigquery_resources + export_to_bigquery.export_to_bigquery(project_id, project_id, dataset_id, table_id) + out, err = capsys.readouterr() + assert "Exported data to BigQuery" in out From 61ad84743c3a342bb068030c30495c201d3be0f4 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Mon, 20 Sep 2021 11:10:29 -0400 Subject: [PATCH 005/112] feat: filter is used to filter conversations used for issue model training feat: update_time is used to indicate when the phrase matcher was updated (#48) --- contact-center-insights/snippets/noxfile.py | 44 +++++++++------------ 1 file changed, 19 insertions(+), 25 deletions(-) diff --git a/contact-center-insights/snippets/noxfile.py b/contact-center-insights/snippets/noxfile.py index b008613f03ff..e73436a15626 100644 --- a/contact-center-insights/snippets/noxfile.py +++ b/contact-center-insights/snippets/noxfile.py @@ -39,15 +39,17 @@ TEST_CONFIG = { # You can opt out from the test for specific Python versions. - "ignored_versions": [], + 'ignored_versions': [], + # Old samples are opted out of enforcing Python type hints # All new samples should feature them - "enforce_type_hints": False, + 'enforce_type_hints': False, + # An envvar key for determining the project id to use. Change it # to 'BUILD_SPECIFIC_GCLOUD_PROJECT' if you want to opt in using a # build specific Cloud project. You can also use your own string # to use your own Cloud project. - "gcloud_project_env": "GOOGLE_CLOUD_PROJECT", + 'gcloud_project_env': 'GOOGLE_CLOUD_PROJECT', # 'gcloud_project_env': 'BUILD_SPECIFIC_GCLOUD_PROJECT', # If you need to use a specific version of pip, # change pip_version_override to the string representation @@ -55,13 +57,13 @@ "pip_version_override": None, # A dictionary you want to inject into your test. Don't put any # secrets here. These values will override predefined values. - "envs": {}, + 'envs': {}, } try: # Ensure we can import noxfile_config in the project's directory. - sys.path.append(".") + sys.path.append('.') from noxfile_config import TEST_CONFIG_OVERRIDE except ImportError as e: print("No user noxfile_config found: detail: {}".format(e)) @@ -76,12 +78,12 @@ def get_pytest_env_vars() -> Dict[str, str]: ret = {} # Override the GCLOUD_PROJECT and the alias. - env_key = TEST_CONFIG["gcloud_project_env"] + env_key = TEST_CONFIG['gcloud_project_env'] # This should error out if not set. - ret["GOOGLE_CLOUD_PROJECT"] = os.environ[env_key] + ret['GOOGLE_CLOUD_PROJECT'] = os.environ[env_key] # Apply user supplied envs. - ret.update(TEST_CONFIG["envs"]) + ret.update(TEST_CONFIG['envs']) return ret @@ -90,14 +92,11 @@ def get_pytest_env_vars() -> Dict[str, str]: ALL_VERSIONS = ["3.6", "3.7", "3.8", "3.9"] # Any default versions that should be ignored. -IGNORED_VERSIONS = TEST_CONFIG["ignored_versions"] +IGNORED_VERSIONS = TEST_CONFIG['ignored_versions'] TESTED_VERSIONS = sorted([v for v in ALL_VERSIONS if v not in IGNORED_VERSIONS]) -INSTALL_LIBRARY_FROM_SOURCE = os.environ.get("INSTALL_LIBRARY_FROM_SOURCE", False) in ( - "True", - "true", -) +INSTALL_LIBRARY_FROM_SOURCE = os.environ.get("INSTALL_LIBRARY_FROM_SOURCE", False) in ("True", "true") # # Style Checks # @@ -142,7 +141,7 @@ def _determine_local_import_names(start_dir: str) -> List[str]: @nox.session def lint(session: nox.sessions.Session) -> None: - if not TEST_CONFIG["enforce_type_hints"]: + if not TEST_CONFIG['enforce_type_hints']: session.install("flake8", "flake8-import-order") else: session.install("flake8", "flake8-import-order", "flake8-annotations") @@ -151,11 +150,9 @@ def lint(session: nox.sessions.Session) -> None: args = FLAKE8_COMMON_ARGS + [ "--application-import-names", ",".join(local_names), - ".", + "." ] session.run("flake8", *args) - - # # Black # @@ -168,7 +165,6 @@ def blacken(session: nox.sessions.Session) -> None: session.run("black", *python_files) - # # Sample Tests # @@ -177,9 +173,7 @@ def blacken(session: nox.sessions.Session) -> None: PYTEST_COMMON_ARGS = ["--junitxml=sponge_log.xml"] -def _session_tests( - session: nox.sessions.Session, post_install: Callable = None -) -> None: +def _session_tests(session: nox.sessions.Session, post_install: Callable = None) -> None: if TEST_CONFIG["pip_version_override"]: pip_version = TEST_CONFIG["pip_version_override"] session.install(f"pip=={pip_version}") @@ -209,7 +203,7 @@ def _session_tests( # on travis where slow and flaky tests are excluded. # See http://doc.pytest.org/en/latest/_modules/_pytest/main.html success_codes=[0, 5], - env=get_pytest_env_vars(), + env=get_pytest_env_vars() ) @@ -219,9 +213,9 @@ def py(session: nox.sessions.Session) -> None: if session.python in TESTED_VERSIONS: _session_tests(session) else: - session.skip( - "SKIPPED: {} tests are disabled for this sample.".format(session.python) - ) + session.skip("SKIPPED: {} tests are disabled for this sample.".format( + session.python + )) # From fbe592f05c9afdd9b05b23cfe556b6c48ec9b23d Mon Sep 17 00:00:00 2001 From: Bamboo Le <8941262+TrucHLe@users.noreply.github.com> Date: Mon, 20 Sep 2021 19:31:40 -0400 Subject: [PATCH 006/112] samples: create custom highlights (#15) --- .../snippets/create_phrase_matcher_all_of.py | 74 +++++++++++++++++++ .../snippets/create_phrase_matcher_any_of.py | 58 +++++++++++++++ contact-center-insights/snippets/noxfile.py | 44 ++++++----- .../snippets/requirements-test.txt | 2 +- .../snippets/requirements.txt | 2 +- .../test_create_phrase_matcher_all_of.py | 50 +++++++++++++ .../test_create_phrase_matcher_any_of.py | 50 +++++++++++++ 7 files changed, 259 insertions(+), 21 deletions(-) create mode 100644 contact-center-insights/snippets/create_phrase_matcher_all_of.py create mode 100644 contact-center-insights/snippets/create_phrase_matcher_any_of.py create mode 100644 contact-center-insights/snippets/test_create_phrase_matcher_all_of.py create mode 100644 contact-center-insights/snippets/test_create_phrase_matcher_any_of.py diff --git a/contact-center-insights/snippets/create_phrase_matcher_all_of.py b/contact-center-insights/snippets/create_phrase_matcher_all_of.py new file mode 100644 index 000000000000..0824bc8a02e3 --- /dev/null +++ b/contact-center-insights/snippets/create_phrase_matcher_all_of.py @@ -0,0 +1,74 @@ +# Copyright 2021 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. +# +# [START contactcenterinsights_create_phrase_matcher_all_of] +from google.cloud import contact_center_insights_v1 + + +def create_phrase_matcher_all_of( + project_id: str, +) -> contact_center_insights_v1.PhraseMatcher: + # Construct a parent resource. + parent = contact_center_insights_v1.ContactCenterInsightsClient.common_location_path( + project_id, "us-central1" + ) + + # Construct a phrase matcher that matches all of its rule groups. + phrase_matcher = contact_center_insights_v1.PhraseMatcher() + phrase_matcher.display_name = "NON_SHIPPING_PHONE_SERVICE" + phrase_matcher.type_ = ( + contact_center_insights_v1.PhraseMatcher.PhraseMatcherType.ALL_OF + ) + phrase_matcher.active = True + + # Construct a rule group to match the word "PHONE" or "CELLPHONE", ignoring case sensitivity. + rule_group_phone_or_cellphone = contact_center_insights_v1.PhraseMatchRuleGroup() + rule_group_phone_or_cellphone.type_ = ( + contact_center_insights_v1.PhraseMatchRuleGroup.PhraseMatchRuleGroupType.ANY_OF + ) + + for word in ["PHONE", "CELLPHONE"]: + rule = contact_center_insights_v1.PhraseMatchRule() + rule.query = word + rule.config.exact_match_config = contact_center_insights_v1.ExactMatchConfig() + rule_group_phone_or_cellphone.phrase_match_rules.append(rule) + phrase_matcher.phrase_match_rule_groups.append(rule_group_phone_or_cellphone) + + # Construct another rule group to not match the word "SHIPPING" or "DELIVERY", ignoring case sensitivity. + rule_group_not_shipping_or_delivery = ( + contact_center_insights_v1.PhraseMatchRuleGroup() + ) + rule_group_not_shipping_or_delivery.type_ = ( + contact_center_insights_v1.PhraseMatchRuleGroup.PhraseMatchRuleGroupType.ALL_OF + ) + + for word in ["SHIPPING", "DELIVERY"]: + rule = contact_center_insights_v1.PhraseMatchRule() + rule.query = word + rule.negated = True + rule.config.exact_match_config = contact_center_insights_v1.ExactMatchConfig() + rule_group_not_shipping_or_delivery.phrase_match_rules.append(rule) + phrase_matcher.phrase_match_rule_groups.append(rule_group_not_shipping_or_delivery) + + # Call the Insights client to create a phrase matcher. + insights_client = contact_center_insights_v1.ContactCenterInsightsClient() + phrase_matcher = insights_client.create_phrase_matcher( + parent=parent, phrase_matcher=phrase_matcher + ) + + print(f"Created {phrase_matcher.name}") + return phrase_matcher + + +# [END contactcenterinsights_create_phrase_matcher_all_of] diff --git a/contact-center-insights/snippets/create_phrase_matcher_any_of.py b/contact-center-insights/snippets/create_phrase_matcher_any_of.py new file mode 100644 index 000000000000..33de08b26608 --- /dev/null +++ b/contact-center-insights/snippets/create_phrase_matcher_any_of.py @@ -0,0 +1,58 @@ +# Copyright 2021 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. +# +# [START contactcenterinsights_create_phrase_matcher_any_of] +from google.cloud import contact_center_insights_v1 + + +def create_phrase_matcher_any_of( + project_id: str, +) -> contact_center_insights_v1.PhraseMatcher: + # Construct a parent resource. + parent = contact_center_insights_v1.ContactCenterInsightsClient.common_location_path( + project_id, "us-central1" + ) + + # Construct a phrase matcher that matches any of its rule groups. + phrase_matcher = contact_center_insights_v1.PhraseMatcher() + phrase_matcher.display_name = "PHONE_SERVICE" + phrase_matcher.type_ = ( + contact_center_insights_v1.PhraseMatcher.PhraseMatcherType.ANY_OF + ) + phrase_matcher.active = True + + # Construct a rule group to match the word "PHONE" or "CELLPHONE", ignoring case sensitivity. + rule_group = contact_center_insights_v1.PhraseMatchRuleGroup() + rule_group.type_ = ( + contact_center_insights_v1.PhraseMatchRuleGroup.PhraseMatchRuleGroupType.ANY_OF + ) + + for word in ["PHONE", "CELLPHONE"]: + rule = contact_center_insights_v1.PhraseMatchRule() + rule.query = word + rule.config.exact_match_config = contact_center_insights_v1.ExactMatchConfig() + rule_group.phrase_match_rules.append(rule) + phrase_matcher.phrase_match_rule_groups.append(rule_group) + + # Call the Insights client to create a phrase matcher. + insights_client = contact_center_insights_v1.ContactCenterInsightsClient() + phrase_matcher = insights_client.create_phrase_matcher( + parent=parent, phrase_matcher=phrase_matcher + ) + + print(f"Created {phrase_matcher.name}") + return phrase_matcher + + +# [END contactcenterinsights_create_phrase_matcher_any_of] diff --git a/contact-center-insights/snippets/noxfile.py b/contact-center-insights/snippets/noxfile.py index e73436a15626..b008613f03ff 100644 --- a/contact-center-insights/snippets/noxfile.py +++ b/contact-center-insights/snippets/noxfile.py @@ -39,17 +39,15 @@ TEST_CONFIG = { # You can opt out from the test for specific Python versions. - 'ignored_versions': [], - + "ignored_versions": [], # Old samples are opted out of enforcing Python type hints # All new samples should feature them - 'enforce_type_hints': False, - + "enforce_type_hints": False, # An envvar key for determining the project id to use. Change it # to 'BUILD_SPECIFIC_GCLOUD_PROJECT' if you want to opt in using a # build specific Cloud project. You can also use your own string # to use your own Cloud project. - 'gcloud_project_env': 'GOOGLE_CLOUD_PROJECT', + "gcloud_project_env": "GOOGLE_CLOUD_PROJECT", # 'gcloud_project_env': 'BUILD_SPECIFIC_GCLOUD_PROJECT', # If you need to use a specific version of pip, # change pip_version_override to the string representation @@ -57,13 +55,13 @@ "pip_version_override": None, # A dictionary you want to inject into your test. Don't put any # secrets here. These values will override predefined values. - 'envs': {}, + "envs": {}, } try: # Ensure we can import noxfile_config in the project's directory. - sys.path.append('.') + sys.path.append(".") from noxfile_config import TEST_CONFIG_OVERRIDE except ImportError as e: print("No user noxfile_config found: detail: {}".format(e)) @@ -78,12 +76,12 @@ def get_pytest_env_vars() -> Dict[str, str]: ret = {} # Override the GCLOUD_PROJECT and the alias. - env_key = TEST_CONFIG['gcloud_project_env'] + env_key = TEST_CONFIG["gcloud_project_env"] # This should error out if not set. - ret['GOOGLE_CLOUD_PROJECT'] = os.environ[env_key] + ret["GOOGLE_CLOUD_PROJECT"] = os.environ[env_key] # Apply user supplied envs. - ret.update(TEST_CONFIG['envs']) + ret.update(TEST_CONFIG["envs"]) return ret @@ -92,11 +90,14 @@ def get_pytest_env_vars() -> Dict[str, str]: ALL_VERSIONS = ["3.6", "3.7", "3.8", "3.9"] # Any default versions that should be ignored. -IGNORED_VERSIONS = TEST_CONFIG['ignored_versions'] +IGNORED_VERSIONS = TEST_CONFIG["ignored_versions"] TESTED_VERSIONS = sorted([v for v in ALL_VERSIONS if v not in IGNORED_VERSIONS]) -INSTALL_LIBRARY_FROM_SOURCE = os.environ.get("INSTALL_LIBRARY_FROM_SOURCE", False) in ("True", "true") +INSTALL_LIBRARY_FROM_SOURCE = os.environ.get("INSTALL_LIBRARY_FROM_SOURCE", False) in ( + "True", + "true", +) # # Style Checks # @@ -141,7 +142,7 @@ def _determine_local_import_names(start_dir: str) -> List[str]: @nox.session def lint(session: nox.sessions.Session) -> None: - if not TEST_CONFIG['enforce_type_hints']: + if not TEST_CONFIG["enforce_type_hints"]: session.install("flake8", "flake8-import-order") else: session.install("flake8", "flake8-import-order", "flake8-annotations") @@ -150,9 +151,11 @@ def lint(session: nox.sessions.Session) -> None: args = FLAKE8_COMMON_ARGS + [ "--application-import-names", ",".join(local_names), - "." + ".", ] session.run("flake8", *args) + + # # Black # @@ -165,6 +168,7 @@ def blacken(session: nox.sessions.Session) -> None: session.run("black", *python_files) + # # Sample Tests # @@ -173,7 +177,9 @@ def blacken(session: nox.sessions.Session) -> None: PYTEST_COMMON_ARGS = ["--junitxml=sponge_log.xml"] -def _session_tests(session: nox.sessions.Session, post_install: Callable = None) -> None: +def _session_tests( + session: nox.sessions.Session, post_install: Callable = None +) -> None: if TEST_CONFIG["pip_version_override"]: pip_version = TEST_CONFIG["pip_version_override"] session.install(f"pip=={pip_version}") @@ -203,7 +209,7 @@ def _session_tests(session: nox.sessions.Session, post_install: Callable = None) # on travis where slow and flaky tests are excluded. # See http://doc.pytest.org/en/latest/_modules/_pytest/main.html success_codes=[0, 5], - env=get_pytest_env_vars() + env=get_pytest_env_vars(), ) @@ -213,9 +219,9 @@ def py(session: nox.sessions.Session) -> None: if session.python in TESTED_VERSIONS: _session_tests(session) else: - session.skip("SKIPPED: {} tests are disabled for this sample.".format( - session.python - )) + session.skip( + "SKIPPED: {} tests are disabled for this sample.".format(session.python) + ) # diff --git a/contact-center-insights/snippets/requirements-test.txt b/contact-center-insights/snippets/requirements-test.txt index 50c73585a6bf..63777eca8bcc 100644 --- a/contact-center-insights/snippets/requirements-test.txt +++ b/contact-center-insights/snippets/requirements-test.txt @@ -1,4 +1,4 @@ google-auth==2.0.2 google-cloud-pubsub==2.8.0 protobuf==3.17.3 -pytest==6.2.5 +pytest==6.2.5 \ No newline at end of file diff --git a/contact-center-insights/snippets/requirements.txt b/contact-center-insights/snippets/requirements.txt index b9e610596a8b..9eaeba8fae72 100644 --- a/contact-center-insights/snippets/requirements.txt +++ b/contact-center-insights/snippets/requirements.txt @@ -1,3 +1,3 @@ google-api-core==2.0.1 google-cloud-bigquery==2.26.0 -google-cloud-contact-center-insights==0.2.0 +google-cloud-contact-center-insights==0.2.0 \ No newline at end of file diff --git a/contact-center-insights/snippets/test_create_phrase_matcher_all_of.py b/contact-center-insights/snippets/test_create_phrase_matcher_all_of.py new file mode 100644 index 000000000000..888d959d42d2 --- /dev/null +++ b/contact-center-insights/snippets/test_create_phrase_matcher_all_of.py @@ -0,0 +1,50 @@ +# Copyright 2021 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. +# +import google.auth + +from google.cloud import contact_center_insights_v1 + +import pytest + +import create_phrase_matcher_all_of + + +@pytest.fixture +def project_id(): + _, project_id = google.auth.default() + return project_id + + +@pytest.fixture +def insights_client(): + return contact_center_insights_v1.ContactCenterInsightsClient() + + +@pytest.fixture +def phrase_matcher_all_of(project_id, insights_client): + # Create a phrase matcher. + phrase_matcher = create_phrase_matcher_all_of.create_phrase_matcher_all_of( + project_id + ) + yield phrase_matcher + + # Delete the phrase matcher. + insights_client.delete_phrase_matcher(name=phrase_matcher.name) + + +def test_create_phrase_matcher_all_of(capsys, phrase_matcher_all_of): + phrase_matcher = phrase_matcher_all_of + out, err = capsys.readouterr() + assert f"Created {phrase_matcher.name}" in out diff --git a/contact-center-insights/snippets/test_create_phrase_matcher_any_of.py b/contact-center-insights/snippets/test_create_phrase_matcher_any_of.py new file mode 100644 index 000000000000..0e0f199be5a8 --- /dev/null +++ b/contact-center-insights/snippets/test_create_phrase_matcher_any_of.py @@ -0,0 +1,50 @@ +# Copyright 2021 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. +# +import google.auth + +from google.cloud import contact_center_insights_v1 + +import pytest + +import create_phrase_matcher_any_of + + +@pytest.fixture +def project_id(): + _, project_id = google.auth.default() + return project_id + + +@pytest.fixture +def insights_client(): + return contact_center_insights_v1.ContactCenterInsightsClient() + + +@pytest.fixture +def phrase_matcher_any_of(project_id, insights_client): + # Create a phrase matcher. + phrase_matcher = create_phrase_matcher_any_of.create_phrase_matcher_any_of( + project_id + ) + yield phrase_matcher + + # Delete the phrase matcher. + insights_client.delete_phrase_matcher(name=phrase_matcher.name) + + +def test_create_phrase_matcher_any_of(capsys, phrase_matcher_any_of): + phrase_matcher = phrase_matcher_any_of + out, err = capsys.readouterr() + assert f"Created {phrase_matcher.name}" in out From 50fb4e9b0cd3af2efec5bfb6129d65ef0a045138 Mon Sep 17 00:00:00 2001 From: Bamboo Le <8941262+TrucHLe@users.noreply.github.com> Date: Tue, 21 Sep 2021 19:02:54 -0400 Subject: [PATCH 007/112] samples: set project-level TTL (#23) --- .../snippets/requirements.txt | 3 +- .../snippets/set_project_ttl.py | 53 +++++++++++++++++++ .../snippets/test_set_project_ttl.py | 49 +++++++++++++++++ 3 files changed, 104 insertions(+), 1 deletion(-) create mode 100644 contact-center-insights/snippets/set_project_ttl.py create mode 100644 contact-center-insights/snippets/test_set_project_ttl.py diff --git a/contact-center-insights/snippets/requirements.txt b/contact-center-insights/snippets/requirements.txt index 9eaeba8fae72..e3aa4be05933 100644 --- a/contact-center-insights/snippets/requirements.txt +++ b/contact-center-insights/snippets/requirements.txt @@ -1,3 +1,4 @@ google-api-core==2.0.1 google-cloud-bigquery==2.26.0 -google-cloud-contact-center-insights==0.2.0 \ No newline at end of file +google-cloud-contact-center-insights==0.2.0 +protobuf==3.17.3 \ No newline at end of file diff --git a/contact-center-insights/snippets/set_project_ttl.py b/contact-center-insights/snippets/set_project_ttl.py new file mode 100644 index 000000000000..f3a98fe0ccb7 --- /dev/null +++ b/contact-center-insights/snippets/set_project_ttl.py @@ -0,0 +1,53 @@ +# Copyright 2021 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. +# +# Set a project-level TTL for all incoming conversations. +# [START contactcenterinsights_set_project_ttl] +from google.api_core import protobuf_helpers +from google.cloud import contact_center_insights_v1 +from google.protobuf import duration_pb2 + + +def set_project_ttl(project_id: str) -> None: + # Construct a settings resource. + settings = contact_center_insights_v1.Settings() + settings.name = contact_center_insights_v1.ContactCenterInsightsClient.settings_path( + project_id, "us-central1" + ) + + conversation_ttl = duration_pb2.Duration() + conversation_ttl.seconds = 86400 + settings.conversation_ttl = conversation_ttl + + # Construct an update mask to only update the fields that are set on the settings resource. + update_mask = protobuf_helpers.field_mask(None, type(settings).pb(settings)) + + # Construct an Insights client that will authenticate via Application Default Credentials. + # See authentication details at https://cloud.google.com/docs/authentication/production. + insights_client = contact_center_insights_v1.ContactCenterInsightsClient() + + # Call the Insights client to set a project-level TTL. + insights_client.update_settings(settings=settings, update_mask=update_mask) + + # Call the Insights client to get the project-level TTL to confirm that it was set. + new_conversation_ttl = insights_client.get_settings( + name=settings.name + ).conversation_ttl + print( + "Set TTL for all incoming conversations to {} day".format( + new_conversation_ttl.days + ) + ) + +# [END contactcenterinsights_set_project_ttl] diff --git a/contact-center-insights/snippets/test_set_project_ttl.py b/contact-center-insights/snippets/test_set_project_ttl.py new file mode 100644 index 000000000000..50605b5da8dc --- /dev/null +++ b/contact-center-insights/snippets/test_set_project_ttl.py @@ -0,0 +1,49 @@ +# Copyright 2021 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. +# +import google.auth + +from google.cloud import contact_center_insights_v1 +from google.protobuf import field_mask_pb2 + +import pytest + +import set_project_ttl + + +@pytest.fixture +def project_id(): + _, project_id = google.auth.default() + return project_id + + +@pytest.fixture +def clear_project_ttl(project_id): + yield + settings = contact_center_insights_v1.Settings() + settings.name = contact_center_insights_v1.ContactCenterInsightsClient.settings_path( + project_id, "us-central1" + ) + settings.conversation_ttl = None + update_mask = field_mask_pb2.FieldMask() + update_mask.paths.append("conversation_ttl") + + insights_client = contact_center_insights_v1.ContactCenterInsightsClient() + insights_client.update_settings(settings=settings, update_mask=update_mask) + + +def test_set_project_ttl(capsys, project_id, clear_project_ttl): + set_project_ttl.set_project_ttl(project_id) + out, err = capsys.readouterr() + assert "Set TTL for all incoming conversations to 1 day" in out From 26edca8e8ed88ec5d252b15d94cf3dcec43ef383 Mon Sep 17 00:00:00 2001 From: Bamboo Le <8941262+TrucHLe@users.noreply.github.com> Date: Tue, 21 Sep 2021 19:14:36 -0400 Subject: [PATCH 008/112] samples: create topic model (#28) --- .../snippets/create_issue_model.py | 41 +++++++++++ .../snippets/test_create_issue_model.py | 70 +++++++++++++++++++ 2 files changed, 111 insertions(+) create mode 100644 contact-center-insights/snippets/create_issue_model.py create mode 100644 contact-center-insights/snippets/test_create_issue_model.py diff --git a/contact-center-insights/snippets/create_issue_model.py b/contact-center-insights/snippets/create_issue_model.py new file mode 100644 index 000000000000..4568cc43e583 --- /dev/null +++ b/contact-center-insights/snippets/create_issue_model.py @@ -0,0 +1,41 @@ +# Copyright 2021 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. +# +# [START contactcenterinsights_create_issue_model] +from google.cloud import contact_center_insights_v1 + + +def create_issue_model(project_id: str) -> contact_center_insights_v1.IssueModel: + # Construct a parent resource. + parent = contact_center_insights_v1.ContactCenterInsightsClient.common_location_path( + project_id, "us-central1" + ) + + # Construct an issue model. + issue_model = contact_center_insights_v1.IssueModel() + issue_model.display_name = "my-model" + issue_model.input_data_config.filter = "medium=\"CHAT\"" + + # Call the Insights client to create an issue model. + insights_client = contact_center_insights_v1.ContactCenterInsightsClient() + issue_model_operation = insights_client.create_issue_model( + parent=parent, issue_model=issue_model + ) + + issue_model = issue_model_operation.result(timeout=86400) + print(f"Created an issue model named {issue_model.name}") + return issue_model + + +# [END contactcenterinsights_create_issue_model] diff --git a/contact-center-insights/snippets/test_create_issue_model.py b/contact-center-insights/snippets/test_create_issue_model.py new file mode 100644 index 000000000000..ffa60e4f3b72 --- /dev/null +++ b/contact-center-insights/snippets/test_create_issue_model.py @@ -0,0 +1,70 @@ +# Copyright 2021 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. +# +import google.auth + +from google.cloud import contact_center_insights_v1 + +import pytest + +import create_issue_model + +MIN_CONVERSATION_COUNT = 10000 + + +@pytest.fixture +def project_id(): + _, project_id = google.auth.default() + return project_id + + +@pytest.fixture +def insights_client(): + return contact_center_insights_v1.ContactCenterInsightsClient() + + +@pytest.fixture +def count_conversations(project_id, insights_client): + # Check if the project has the minimum number of conversations required to create an issue model. + # See https://cloud.google.com/contact-center/insights/docs/topic-model. + list_request = contact_center_insights_v1.ListConversationsRequest() + list_request.page_size = 1000 + list_request.parent = contact_center_insights_v1.ContactCenterInsightsClient.common_location_path( + project_id, "us-central1" + ) + conversations = insights_client.list_conversations(request=list_request) + conversation_count = len(list(conversations)) + + yield conversation_count + + +@pytest.fixture +def issue_model_resource(project_id, insights_client, count_conversations): + conversation_count = count_conversations + if conversation_count >= MIN_CONVERSATION_COUNT: + # Create an issue model. + issue_model = create_issue_model.create_issue_model(project_id) + yield issue_model + + # Delete the issue model. + insights_client.delete_issue_model(name=issue_model.name) + else: + yield None + + +def test_create_issue_model(capsys, issue_model_resource): + issue_model = issue_model_resource + if issue_model: + out, err = capsys.readouterr() + assert "Created {}".format(issue_model.name) in out From 40d1263f2cde43ffa6c61e592e84569ccfee815d Mon Sep 17 00:00:00 2001 From: Bamboo Le <8941262+TrucHLe@users.noreply.github.com> Date: Thu, 23 Sep 2021 14:46:20 -0400 Subject: [PATCH 009/112] samples: create conversation (#42) --- .../snippets/create_conversation.py | 45 +++++++++++++++++++ .../snippets/test_create_conversation.py | 44 ++++++++++++++++++ 2 files changed, 89 insertions(+) create mode 100644 contact-center-insights/snippets/create_conversation.py create mode 100644 contact-center-insights/snippets/test_create_conversation.py diff --git a/contact-center-insights/snippets/create_conversation.py b/contact-center-insights/snippets/create_conversation.py new file mode 100644 index 000000000000..d7fa5a06ebb8 --- /dev/null +++ b/contact-center-insights/snippets/create_conversation.py @@ -0,0 +1,45 @@ +# Copyright 2021 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. +# +# [START contactcenterinsights_create_conversation] +from google.cloud import contact_center_insights_v1 + + +def create_conversation( + project_id: str, + transcript_uri: str = "gs://cloud-samples-data/ccai/chat_sample.json", + audio_uri: str = "gs://cloud-samples-data/ccai/voice_6912.txt", +) -> contact_center_insights_v1.Conversation: + # Construct a parent resource. + parent = contact_center_insights_v1.ContactCenterInsightsClient.common_location_path( + project_id, "us-central1" + ) + + # Construct a conversation. + conversation = contact_center_insights_v1.Conversation() + conversation.data_source.gcs_source.transcript_uri = transcript_uri + conversation.data_source.gcs_source.audio_uri = audio_uri + conversation.medium = contact_center_insights_v1.Conversation.Medium.CHAT + + # Call the Insights client to create a conversation. + insights_client = contact_center_insights_v1.ContactCenterInsightsClient() + conversation = insights_client.create_conversation( + parent=parent, conversation=conversation + ) + + print(f"Created {conversation.name}") + return conversation + + +# [END contactcenterinsights_create_conversation] diff --git a/contact-center-insights/snippets/test_create_conversation.py b/contact-center-insights/snippets/test_create_conversation.py new file mode 100644 index 000000000000..1553ff894bac --- /dev/null +++ b/contact-center-insights/snippets/test_create_conversation.py @@ -0,0 +1,44 @@ +# Copyright 2021 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. +# +import google.auth + +from google.cloud import contact_center_insights_v1 + +import pytest + +import create_conversation + + +@pytest.fixture +def project_id(): + _, project_id = google.auth.default() + return project_id + + +@pytest.fixture +def conversation_resource(project_id): + # Create a conversation + conversation = create_conversation.create_conversation(project_id) + yield conversation + + # Delete the conversation. + insights_client = contact_center_insights_v1.ContactCenterInsightsClient() + insights_client.delete_conversation(name=conversation.name) + + +def test_create_conversation(capsys, conversation_resource): + conversation = conversation_resource + out, err = capsys.readouterr() + assert "Created {}".format(conversation.name) in out From b0c37c4e4dc20865a9495ca77a46b2905c02330f Mon Sep 17 00:00:00 2001 From: Bamboo Le <8941262+TrucHLe@users.noreply.github.com> Date: Thu, 23 Sep 2021 15:06:49 -0400 Subject: [PATCH 010/112] samples: create analysis (#44) --- .../snippets/create_analysis.py | 33 +++++++++ .../snippets/test_create_analysis.py | 68 +++++++++++++++++++ 2 files changed, 101 insertions(+) create mode 100644 contact-center-insights/snippets/create_analysis.py create mode 100644 contact-center-insights/snippets/test_create_analysis.py diff --git a/contact-center-insights/snippets/create_analysis.py b/contact-center-insights/snippets/create_analysis.py new file mode 100644 index 000000000000..c3347373a871 --- /dev/null +++ b/contact-center-insights/snippets/create_analysis.py @@ -0,0 +1,33 @@ +# Copyright 2021 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. +# +# [START contactcenterinsights_create_analysis] +from google.cloud import contact_center_insights_v1 + + +def create_analysis(conversation_name: str) -> contact_center_insights_v1.Analysis: + # Construct an analysis. + analysis = contact_center_insights_v1.Analysis() + + # Call the Insights client to create an analysis. + insights_client = contact_center_insights_v1.ContactCenterInsightsClient() + analysis_operation = insights_client.create_analysis( + parent=conversation_name, analysis=analysis + ) + analysis = analysis_operation.result(timeout=86400) + print(f"Created {analysis.name}") + return analysis + + +# [END contactcenterinsights_create_analysis] diff --git a/contact-center-insights/snippets/test_create_analysis.py b/contact-center-insights/snippets/test_create_analysis.py new file mode 100644 index 000000000000..df41dbd8f5a8 --- /dev/null +++ b/contact-center-insights/snippets/test_create_analysis.py @@ -0,0 +1,68 @@ +# Copyright 2021 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. +# +import google.auth + +from google.cloud import contact_center_insights_v1 + +import pytest + +import create_analysis + +TRANSCRIPT_URI = "gs://cloud-samples-data/ccai/chat_sample.json" +AUDIO_URI = "gs://cloud-samples-data/ccai/voice_6912.txt" + + +@pytest.fixture +def project_id(): + _, project_id = google.auth.default() + return project_id + + +@pytest.fixture +def conversation_resource(project_id): + # Create a conversation. + insights_client = contact_center_insights_v1.ContactCenterInsightsClient() + + parent = contact_center_insights_v1.ContactCenterInsightsClient.common_location_path( + project_id, "us-central1" + ) + + conversation = contact_center_insights_v1.Conversation() + conversation.data_source.gcs_source.transcript_uri = TRANSCRIPT_URI + conversation.data_source.gcs_source.audio_uri = AUDIO_URI + conversation.medium = contact_center_insights_v1.Conversation.Medium.CHAT + + conversation = insights_client.create_conversation( + parent=parent, conversation=conversation + ) + yield conversation + + # Delete the conversation. + delete_request = contact_center_insights_v1.DeleteConversationRequest() + delete_request.name = conversation.name + delete_request.force = True + insights_client.delete_conversation(request=delete_request) + + +@pytest.fixture +def analysis_resource(conversation_resource): + conversation_name = conversation_resource.name + yield create_analysis.create_analysis(conversation_name) + + +def test_create_analysis(capsys, analysis_resource): + analysis = analysis_resource + out, err = capsys.readouterr() + assert "Created {}".format(analysis.name) in out From f90d2d96b0642fce992971e146d80c4f17100b7b Mon Sep 17 00:00:00 2001 From: Bamboo Le <8941262+TrucHLe@users.noreply.github.com> Date: Fri, 24 Sep 2021 14:02:16 -0400 Subject: [PATCH 011/112] samples: create conversation with TTL (#43) --- .../snippets/create_conversation_with_ttl.py | 52 +++++++++++++++++++ .../snippets/create_issue_model.py | 2 +- contact-center-insights/snippets/noxfile.py | 2 +- .../snippets/set_project_ttl.py | 1 + .../test_create_conversation_with_ttl.py | 44 ++++++++++++++++ 5 files changed, 99 insertions(+), 2 deletions(-) create mode 100644 contact-center-insights/snippets/create_conversation_with_ttl.py create mode 100644 contact-center-insights/snippets/test_create_conversation_with_ttl.py diff --git a/contact-center-insights/snippets/create_conversation_with_ttl.py b/contact-center-insights/snippets/create_conversation_with_ttl.py new file mode 100644 index 000000000000..267c71d4d65a --- /dev/null +++ b/contact-center-insights/snippets/create_conversation_with_ttl.py @@ -0,0 +1,52 @@ +# Copyright 2021 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. +# +# Create a conversation with a TTL. +# [START contactcenterinsights_create_conversation_with_ttl] +from google.cloud import contact_center_insights_v1 +from google.protobuf import duration_pb2 + + +def create_conversation_with_ttl( + project_id: str, + transcript_uri: str = "gs://cloud-samples-data/ccai/chat_sample.json", + audio_uri: str = "gs://cloud-samples-data/ccai/voice_6912.txt", +) -> contact_center_insights_v1.Conversation: + # Construct a parent resource. + parent = contact_center_insights_v1.ContactCenterInsightsClient.common_location_path( + project_id, "us-central1" + ) + + # Construct a conversation. + conversation = contact_center_insights_v1.Conversation() + conversation.data_source.gcs_source.transcript_uri = transcript_uri + conversation.data_source.gcs_source.audio_uri = audio_uri + conversation.medium = contact_center_insights_v1.Conversation.Medium.CHAT + + # Construct a TTL. + ttl = duration_pb2.Duration() + ttl.seconds = 86400 + conversation.ttl = ttl + + # Call the Insights client to create a conversation. + insights_client = contact_center_insights_v1.ContactCenterInsightsClient() + conversation = insights_client.create_conversation( + parent=parent, conversation=conversation + ) + + print(f"Created {conversation.name}") + return conversation + + +# [END contactcenterinsights_create_conversation_with_ttl] diff --git a/contact-center-insights/snippets/create_issue_model.py b/contact-center-insights/snippets/create_issue_model.py index 4568cc43e583..b34033593e77 100644 --- a/contact-center-insights/snippets/create_issue_model.py +++ b/contact-center-insights/snippets/create_issue_model.py @@ -25,7 +25,7 @@ def create_issue_model(project_id: str) -> contact_center_insights_v1.IssueModel # Construct an issue model. issue_model = contact_center_insights_v1.IssueModel() issue_model.display_name = "my-model" - issue_model.input_data_config.filter = "medium=\"CHAT\"" + issue_model.input_data_config.filter = 'medium="CHAT"' # Call the Insights client to create an issue model. insights_client = contact_center_insights_v1.ContactCenterInsightsClient() diff --git a/contact-center-insights/snippets/noxfile.py b/contact-center-insights/snippets/noxfile.py index b008613f03ff..0e13f5f15f27 100644 --- a/contact-center-insights/snippets/noxfile.py +++ b/contact-center-insights/snippets/noxfile.py @@ -1,4 +1,4 @@ -# Copyright 2019 Google LLC +# Copyright 2021 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contact-center-insights/snippets/set_project_ttl.py b/contact-center-insights/snippets/set_project_ttl.py index f3a98fe0ccb7..b5aa02107875 100644 --- a/contact-center-insights/snippets/set_project_ttl.py +++ b/contact-center-insights/snippets/set_project_ttl.py @@ -50,4 +50,5 @@ def set_project_ttl(project_id: str) -> None: ) ) + # [END contactcenterinsights_set_project_ttl] diff --git a/contact-center-insights/snippets/test_create_conversation_with_ttl.py b/contact-center-insights/snippets/test_create_conversation_with_ttl.py new file mode 100644 index 000000000000..ee493d4e3dc3 --- /dev/null +++ b/contact-center-insights/snippets/test_create_conversation_with_ttl.py @@ -0,0 +1,44 @@ +# Copyright 2021 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. +# +import google.auth + +from google.cloud import contact_center_insights_v1 + +import pytest + +import create_conversation_with_ttl + + +@pytest.fixture +def project_id(): + _, project_id = google.auth.default() + return project_id + + +@pytest.fixture +def conversation_resource(project_id): + # Create a conversation + conversation = create_conversation_with_ttl.create_conversation_with_ttl(project_id) + yield conversation + + # Delete the conversation. + insights_client = contact_center_insights_v1.ContactCenterInsightsClient() + insights_client.delete_conversation(name=conversation.name) + + +def test_create_conversation_with_ttl(capsys, conversation_resource): + conversation = conversation_resource + out, err = capsys.readouterr() + assert "Created {}".format(conversation.name) in out From b34509dfee377e6b11b0284a9759ebd6e6edad9b Mon Sep 17 00:00:00 2001 From: Bamboo Le <8941262+TrucHLe@users.noreply.github.com> Date: Fri, 24 Sep 2021 14:16:41 -0400 Subject: [PATCH 012/112] samples: get operation (#24) --- .../snippets/get_operation.py | 36 +++++++++ .../snippets/test_get_operation.py | 80 +++++++++++++++++++ 2 files changed, 116 insertions(+) create mode 100644 contact-center-insights/snippets/get_operation.py create mode 100644 contact-center-insights/snippets/test_get_operation.py diff --git a/contact-center-insights/snippets/get_operation.py b/contact-center-insights/snippets/get_operation.py new file mode 100644 index 000000000000..195b373de9c3 --- /dev/null +++ b/contact-center-insights/snippets/get_operation.py @@ -0,0 +1,36 @@ +# Copyright 2021 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. +# +# Get a long-running operation. +# [START contactcenterinsights_get_operation] +from google.cloud import contact_center_insights_v1 +from google.longrunning import operations_pb2 + + +def get_operation(operation_name: str) -> operations_pb2.Operation: + # Construct an Insights client that will authenticate via Application Default Credentials. + # See authentication details at https://cloud.google.com/docs/authentication/production. + insights_client = contact_center_insights_v1.ContactCenterInsightsClient() + + # Call the Insights client to get the operation. + operation = insights_client.transport.operations_client.get_operation( + operation_name + ) + if operation.done: + print("Operation is done") + else: + print("Operation is in progress") + + +# [END contactcenterinsights_get_operation] diff --git a/contact-center-insights/snippets/test_get_operation.py b/contact-center-insights/snippets/test_get_operation.py new file mode 100644 index 000000000000..f7e859ed7777 --- /dev/null +++ b/contact-center-insights/snippets/test_get_operation.py @@ -0,0 +1,80 @@ +# Copyright 2021 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. +# +import google.auth + +from google.cloud import contact_center_insights_v1 + +import pytest + +import get_operation + +TRANSCRIPT_URI = "gs://cloud-samples-data/ccai/chat_sample.json" +AUDIO_URI = "gs://cloud-samples-data/ccai/voice_6912.txt" + + +@pytest.fixture +def project_id(): + _, project_id = google.auth.default() + return project_id + + +@pytest.fixture +def insights_client(): + return contact_center_insights_v1.ContactCenterInsightsClient() + + +@pytest.fixture +def conversation_resource(project_id, insights_client): + # Create a conversation. + parent = contact_center_insights_v1.ContactCenterInsightsClient.common_location_path( + project_id, "us-central1" + ) + + conversation = contact_center_insights_v1.Conversation() + conversation.data_source.gcs_source.transcript_uri = TRANSCRIPT_URI + conversation.data_source.gcs_source.audio_uri = AUDIO_URI + conversation.medium = contact_center_insights_v1.Conversation.Medium.CHAT + + conversation = insights_client.create_conversation( + parent=parent, conversation=conversation + ) + yield conversation + + # Delete the conversation. + delete_request = contact_center_insights_v1.DeleteConversationRequest() + delete_request.name = conversation.name + delete_request.force = True + insights_client.delete_conversation(request=delete_request) + + +@pytest.fixture +def analysis_operation(conversation_resource, insights_client): + # Create an analysis. + conversation_name = conversation_resource.name + analysis = contact_center_insights_v1.Analysis() + analysis_operation = insights_client.create_analysis( + parent=conversation_name, analysis=analysis + ) + + # Wait until the analysis operation is done and return the operation. + analysis_operation.result(timeout=600) + yield analysis_operation + + +def test_get_operation(capsys, analysis_operation): + operation_name = analysis_operation.operation.name + get_operation.get_operation(operation_name) + out, err = capsys.readouterr() + assert "Operation is done" in out From a2f9134a2a11c20ba278140e90c6149183d1f557 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 27 Sep 2021 14:38:10 +0000 Subject: [PATCH 013/112] chore: release 0.3.1 (#52) :robot: I have created a release \*beep\* \*boop\* --- ### [0.3.1](https://www.github.com/googleapis/python-contact-center-insights/compare/v0.3.0...v0.3.1) (2021-09-24) ### Bug Fixes * add 'dict' annotation type to 'request' ([94e64ac](https://www.github.com/googleapis/python-contact-center-insights/commit/94e64acc866eeed789768c2e216dad3f561c81e3)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- contact-center-insights/snippets/noxfile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contact-center-insights/snippets/noxfile.py b/contact-center-insights/snippets/noxfile.py index 0e13f5f15f27..b008613f03ff 100644 --- a/contact-center-insights/snippets/noxfile.py +++ b/contact-center-insights/snippets/noxfile.py @@ -1,4 +1,4 @@ -# Copyright 2021 Google LLC +# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. From 6bd5fb1b52673b86792f608196a1fd1925e6257d Mon Sep 17 00:00:00 2001 From: nicain Date: Tue, 28 Sep 2021 11:08:12 -0700 Subject: [PATCH 014/112] chore: Update owlbot.py (#53) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Update owlbot.py Update copyright year to unblock https://github.com/googleapis/python-contact-center-insights/pull/46 https://github.com/googleapis/python-contact-center-insights/pull/46/files#r717178756 * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * chore: edit owlbot.py copyright yeat chore: Update copyright year to unblock #46 https://github.com/googleapis/python-contact-center-insights/pull/46/files#r717178756 Co-authored-by: Owl Bot --- contact-center-insights/snippets/noxfile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contact-center-insights/snippets/noxfile.py b/contact-center-insights/snippets/noxfile.py index b008613f03ff..0e13f5f15f27 100644 --- a/contact-center-insights/snippets/noxfile.py +++ b/contact-center-insights/snippets/noxfile.py @@ -1,4 +1,4 @@ -# Copyright 2019 Google LLC +# Copyright 2021 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. From b904a400a48b71a54f9f657a123c54081538f0c8 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 28 Sep 2021 20:19:13 +0200 Subject: [PATCH 015/112] chore(deps): update all dependencies (#46) --- contact-center-insights/snippets/requirements-test.txt | 4 ++-- contact-center-insights/snippets/requirements.txt | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/contact-center-insights/snippets/requirements-test.txt b/contact-center-insights/snippets/requirements-test.txt index 63777eca8bcc..14f9f9da5e56 100644 --- a/contact-center-insights/snippets/requirements-test.txt +++ b/contact-center-insights/snippets/requirements-test.txt @@ -1,4 +1,4 @@ -google-auth==2.0.2 +google-auth==2.2.0 google-cloud-pubsub==2.8.0 -protobuf==3.17.3 +protobuf==3.18.0 pytest==6.2.5 \ No newline at end of file diff --git a/contact-center-insights/snippets/requirements.txt b/contact-center-insights/snippets/requirements.txt index e3aa4be05933..45f99ab4794a 100644 --- a/contact-center-insights/snippets/requirements.txt +++ b/contact-center-insights/snippets/requirements.txt @@ -1,4 +1,4 @@ google-api-core==2.0.1 -google-cloud-bigquery==2.26.0 -google-cloud-contact-center-insights==0.2.0 -protobuf==3.17.3 \ No newline at end of file +google-cloud-bigquery==2.27.1 +google-cloud-contact-center-insights==0.3.1 +protobuf==3.18.0 \ No newline at end of file From 6642fc5c8108c05443b99a27c6c583863b64f880 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 29 Sep 2021 16:58:13 +0200 Subject: [PATCH 016/112] chore(deps): update dependency google-auth to v2.2.1 (#55) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [google-auth](https://togithub.com/googleapis/google-auth-library-python) | `==2.2.0` -> `==2.2.1` | [![age](https://badges.renovateapi.com/packages/pypi/google-auth/2.2.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/pypi/google-auth/2.2.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/pypi/google-auth/2.2.1/compatibility-slim/2.2.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/pypi/google-auth/2.2.1/confidence-slim/2.2.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/google-auth-library-python ### [`v2.2.1`](https://togithub.com/googleapis/google-auth-library-python/blob/master/CHANGELOG.md#​221-httpswwwgithubcomgoogleapisgoogle-auth-library-pythoncomparev220v221-2021-09-28) [Compare Source](https://togithub.com/googleapis/google-auth-library-python/compare/v2.2.0...v2.2.1)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/python-contact-center-insights). --- contact-center-insights/snippets/requirements-test.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contact-center-insights/snippets/requirements-test.txt b/contact-center-insights/snippets/requirements-test.txt index 14f9f9da5e56..f06c6963c2ed 100644 --- a/contact-center-insights/snippets/requirements-test.txt +++ b/contact-center-insights/snippets/requirements-test.txt @@ -1,4 +1,4 @@ -google-auth==2.2.0 +google-auth==2.2.1 google-cloud-pubsub==2.8.0 protobuf==3.18.0 pytest==6.2.5 \ No newline at end of file From 5483271c5999e6a5303874e9f3126a616d6125b7 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 30 Sep 2021 17:14:10 +0200 Subject: [PATCH 017/112] chore(deps): update dependency google-cloud-contact-center-insights to v0.4.0 (#57) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [google-cloud-contact-center-insights](https://togithub.com/googleapis/python-contact-center-insights) | `==0.3.1` -> `==0.4.0` | [![age](https://badges.renovateapi.com/packages/pypi/google-cloud-contact-center-insights/0.4.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/pypi/google-cloud-contact-center-insights/0.4.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/pypi/google-cloud-contact-center-insights/0.4.0/compatibility-slim/0.3.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/pypi/google-cloud-contact-center-insights/0.4.0/confidence-slim/0.3.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/python-contact-center-insights ### [`v0.4.0`](https://togithub.com/googleapis/python-contact-center-insights/blob/master/CHANGELOG.md#​040-httpswwwgithubcomgoogleapispython-contact-center-insightscomparev031v040-2021-09-29) [Compare Source](https://togithub.com/googleapis/python-contact-center-insights/compare/v0.3.1...v0.4.0) ##### Features - add metadata from dialogflow related to transcript segment ([#​54](https://www.togithub.com/googleapis/python-contact-center-insights/issues/54)) ([ef575cf](https://www.github.com/googleapis/python-contact-center-insights/commit/ef575cf076376261c784b9c3332ef2befa1a11d9)) - add obfuscated if from dialogflow ([ef575cf](https://www.github.com/googleapis/python-contact-center-insights/commit/ef575cf076376261c784b9c3332ef2befa1a11d9)) - add sentiment data for transcript segment ([ef575cf](https://www.github.com/googleapis/python-contact-center-insights/commit/ef575cf076376261c784b9c3332ef2befa1a11d9)) ##### [0.3.1](https://www.github.com/googleapis/python-contact-center-insights/compare/v0.3.0...v0.3.1) (2021-09-24) ##### Bug Fixes - add 'dict' annotation type to 'request' ([94e64ac](https://www.github.com/googleapis/python-contact-center-insights/commit/94e64acc866eeed789768c2e216dad3f561c81e3))
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/python-contact-center-insights). --- contact-center-insights/snippets/requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contact-center-insights/snippets/requirements.txt b/contact-center-insights/snippets/requirements.txt index 45f99ab4794a..1b9c73a2b131 100644 --- a/contact-center-insights/snippets/requirements.txt +++ b/contact-center-insights/snippets/requirements.txt @@ -1,4 +1,4 @@ google-api-core==2.0.1 google-cloud-bigquery==2.27.1 -google-cloud-contact-center-insights==0.3.1 +google-cloud-contact-center-insights==0.4.0 protobuf==3.18.0 \ No newline at end of file From 7e284a3b5a633f787073a2c69e23640fcbe25c57 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Thu, 30 Sep 2021 15:44:45 +0000 Subject: [PATCH 018/112] chore: fail samples nox session if python version is missing (#60) --- contact-center-insights/snippets/noxfile.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/contact-center-insights/snippets/noxfile.py b/contact-center-insights/snippets/noxfile.py index 0e13f5f15f27..bcce5b6a2854 100644 --- a/contact-center-insights/snippets/noxfile.py +++ b/contact-center-insights/snippets/noxfile.py @@ -98,6 +98,10 @@ def get_pytest_env_vars() -> Dict[str, str]: "True", "true", ) + +# Error if a python version is missing +nox.options.error_on_missing_interpreters = True + # # Style Checks # From b3e1dc0fb2998106b8e2589dca68707508f24975 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 1 Oct 2021 01:30:18 +0200 Subject: [PATCH 019/112] chore(deps): update dependency google-cloud-bigquery to v2.28.0 (#61) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [google-cloud-bigquery](https://togithub.com/googleapis/python-bigquery) | `==2.27.1` -> `==2.28.0` | [![age](https://badges.renovateapi.com/packages/pypi/google-cloud-bigquery/2.28.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/pypi/google-cloud-bigquery/2.28.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/pypi/google-cloud-bigquery/2.28.0/compatibility-slim/2.27.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/pypi/google-cloud-bigquery/2.28.0/confidence-slim/2.27.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/python-bigquery ### [`v2.28.0`](https://togithub.com/googleapis/python-bigquery/blob/master/CHANGELOG.md#​2280-httpswwwgithubcomgoogleapispython-bigquerycomparev2271v2280-2021-09-30) [Compare Source](https://togithub.com/googleapis/python-bigquery/compare/v2.27.1...v2.28.0) ##### Features - add `AvroOptions` to configure AVRO external data ([#​994](https://www.togithub.com/googleapis/python-bigquery/issues/994)) ([1a9431d](https://www.github.com/googleapis/python-bigquery/commit/1a9431d9e02eeb99e4712b61c623f9cca80134a6)) ##### Documentation - link to stable pandas docs ([#​990](https://www.togithub.com/googleapis/python-bigquery/issues/990)) ([ea50e80](https://www.github.com/googleapis/python-bigquery/commit/ea50e8031fc035b3772a338bc00982de263cefad)) ##### [2.27.1](https://www.github.com/googleapis/python-bigquery/compare/v2.27.0...v2.27.1) (2021-09-27) ##### Bug Fixes - remove py.typed since package fails mypy check ([#​988](https://www.togithub.com/googleapis/python-bigquery/issues/988)) ([39030f2](https://www.github.com/googleapis/python-bigquery/commit/39030f26ce081cfacd456b84694c68e3f04ed48d))
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/python-contact-center-insights). --- contact-center-insights/snippets/requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contact-center-insights/snippets/requirements.txt b/contact-center-insights/snippets/requirements.txt index 1b9c73a2b131..e2b54556efba 100644 --- a/contact-center-insights/snippets/requirements.txt +++ b/contact-center-insights/snippets/requirements.txt @@ -1,4 +1,4 @@ google-api-core==2.0.1 -google-cloud-bigquery==2.27.1 +google-cloud-bigquery==2.28.0 google-cloud-contact-center-insights==0.4.0 protobuf==3.18.0 \ No newline at end of file From 12303a5fd3832601c010b355ae6548527896ec70 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 5 Oct 2021 23:01:51 +0200 Subject: [PATCH 020/112] chore(deps): update dependency google-cloud-contact-center-insights to v0.5.0 (#65) Co-authored-by: nicain --- contact-center-insights/snippets/requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contact-center-insights/snippets/requirements.txt b/contact-center-insights/snippets/requirements.txt index e2b54556efba..20ad2f751c6b 100644 --- a/contact-center-insights/snippets/requirements.txt +++ b/contact-center-insights/snippets/requirements.txt @@ -1,4 +1,4 @@ google-api-core==2.0.1 google-cloud-bigquery==2.28.0 -google-cloud-contact-center-insights==0.4.0 +google-cloud-contact-center-insights==0.5.0 protobuf==3.18.0 \ No newline at end of file From 3c73a8554fccf1308e343237e9f90fd5526cd4ec Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 7 Oct 2021 12:28:45 +0200 Subject: [PATCH 021/112] chore(deps): update all dependencies (#67) --- contact-center-insights/snippets/requirements-test.txt | 2 +- contact-center-insights/snippets/requirements.txt | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/contact-center-insights/snippets/requirements-test.txt b/contact-center-insights/snippets/requirements-test.txt index f06c6963c2ed..24ed57291f34 100644 --- a/contact-center-insights/snippets/requirements-test.txt +++ b/contact-center-insights/snippets/requirements-test.txt @@ -1,4 +1,4 @@ google-auth==2.2.1 google-cloud-pubsub==2.8.0 -protobuf==3.18.0 +protobuf==3.18.1 pytest==6.2.5 \ No newline at end of file diff --git a/contact-center-insights/snippets/requirements.txt b/contact-center-insights/snippets/requirements.txt index 20ad2f751c6b..f2fe5871ba31 100644 --- a/contact-center-insights/snippets/requirements.txt +++ b/contact-center-insights/snippets/requirements.txt @@ -1,4 +1,4 @@ -google-api-core==2.0.1 +google-api-core==2.1.0 google-cloud-bigquery==2.28.0 google-cloud-contact-center-insights==0.5.0 -protobuf==3.18.0 \ No newline at end of file +protobuf==3.18.1 \ No newline at end of file From 705246301c0d5993453123a8def9465d097125b9 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Fri, 8 Oct 2021 17:20:36 +0000 Subject: [PATCH 022/112] chore(python): Add kokoro configs for python 3.10 samples testing (#71) --- contact-center-insights/snippets/noxfile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contact-center-insights/snippets/noxfile.py b/contact-center-insights/snippets/noxfile.py index bcce5b6a2854..6c2af6741b6d 100644 --- a/contact-center-insights/snippets/noxfile.py +++ b/contact-center-insights/snippets/noxfile.py @@ -87,7 +87,7 @@ def get_pytest_env_vars() -> Dict[str, str]: # DO NOT EDIT - automatically generated. # All versions used to test samples. -ALL_VERSIONS = ["3.6", "3.7", "3.8", "3.9"] +ALL_VERSIONS = ["3.6", "3.7", "3.8", "3.9", "3.10"] # Any default versions that should be ignored. IGNORED_VERSIONS = TEST_CONFIG["ignored_versions"] From 69937850fda68aecb349f5246b4598a972b15a59 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 11 Oct 2021 20:45:13 +0200 Subject: [PATCH 023/112] chore(deps): update all dependencies (#69) Co-authored-by: Anthonios Partheniou --- contact-center-insights/snippets/requirements-test.txt | 2 +- contact-center-insights/snippets/requirements.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/contact-center-insights/snippets/requirements-test.txt b/contact-center-insights/snippets/requirements-test.txt index 24ed57291f34..a4f7e46df7cc 100644 --- a/contact-center-insights/snippets/requirements-test.txt +++ b/contact-center-insights/snippets/requirements-test.txt @@ -1,4 +1,4 @@ -google-auth==2.2.1 +google-auth==2.3.0 google-cloud-pubsub==2.8.0 protobuf==3.18.1 pytest==6.2.5 \ No newline at end of file diff --git a/contact-center-insights/snippets/requirements.txt b/contact-center-insights/snippets/requirements.txt index f2fe5871ba31..fc56587623b0 100644 --- a/contact-center-insights/snippets/requirements.txt +++ b/contact-center-insights/snippets/requirements.txt @@ -1,4 +1,4 @@ google-api-core==2.1.0 -google-cloud-bigquery==2.28.0 +google-cloud-bigquery==2.28.1 google-cloud-contact-center-insights==0.5.0 protobuf==3.18.1 \ No newline at end of file From 0c50f939f529b1274746b60be570491a2b2a306f Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 14 Oct 2021 00:41:59 +0200 Subject: [PATCH 024/112] chore(deps): update all dependencies (#74) --- contact-center-insights/snippets/requirements.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contact-center-insights/snippets/requirements.txt b/contact-center-insights/snippets/requirements.txt index fc56587623b0..7320e7460d2f 100644 --- a/contact-center-insights/snippets/requirements.txt +++ b/contact-center-insights/snippets/requirements.txt @@ -1,4 +1,4 @@ -google-api-core==2.1.0 +google-api-core==2.1.1 google-cloud-bigquery==2.28.1 -google-cloud-contact-center-insights==0.5.0 +google-cloud-contact-center-insights==0.6.0 protobuf==3.18.1 \ No newline at end of file From 2cb459dd1189b459e0f6482c407a7cfcf75628a9 Mon Sep 17 00:00:00 2001 From: Anthonios Partheniou Date: Mon, 18 Oct 2021 11:09:04 -0400 Subject: [PATCH 025/112] chore: delete owlbot.py (#75) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore: delete owlbot.py * 🦉 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/snippets/noxfile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contact-center-insights/snippets/noxfile.py b/contact-center-insights/snippets/noxfile.py index 6c2af6741b6d..93a9122cc457 100644 --- a/contact-center-insights/snippets/noxfile.py +++ b/contact-center-insights/snippets/noxfile.py @@ -1,4 +1,4 @@ -# Copyright 2021 Google LLC +# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. From d7f81ddb6f5c7008b1d268ca52fb7bc9620495b9 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 25 Oct 2021 12:56:44 +0200 Subject: [PATCH 026/112] chore(deps): update dependency protobuf to v3.19.0 (#77) --- contact-center-insights/snippets/requirements-test.txt | 2 +- contact-center-insights/snippets/requirements.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/contact-center-insights/snippets/requirements-test.txt b/contact-center-insights/snippets/requirements-test.txt index a4f7e46df7cc..a640c53b8cf0 100644 --- a/contact-center-insights/snippets/requirements-test.txt +++ b/contact-center-insights/snippets/requirements-test.txt @@ -1,4 +1,4 @@ google-auth==2.3.0 google-cloud-pubsub==2.8.0 -protobuf==3.18.1 +protobuf==3.19.0 pytest==6.2.5 \ No newline at end of file diff --git a/contact-center-insights/snippets/requirements.txt b/contact-center-insights/snippets/requirements.txt index 7320e7460d2f..0d2e4c3fbde8 100644 --- a/contact-center-insights/snippets/requirements.txt +++ b/contact-center-insights/snippets/requirements.txt @@ -1,4 +1,4 @@ google-api-core==2.1.1 google-cloud-bigquery==2.28.1 google-cloud-contact-center-insights==0.6.0 -protobuf==3.18.1 \ No newline at end of file +protobuf==3.19.0 \ No newline at end of file From 5baab89a98d040a0cef68d6b9c8ae0a082ff7ebc Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 25 Oct 2021 23:45:24 +0200 Subject: [PATCH 027/112] chore(deps): update dependency google-auth to v2.3.1 (#78) --- contact-center-insights/snippets/requirements-test.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contact-center-insights/snippets/requirements-test.txt b/contact-center-insights/snippets/requirements-test.txt index a640c53b8cf0..9d9f1088a5a0 100644 --- a/contact-center-insights/snippets/requirements-test.txt +++ b/contact-center-insights/snippets/requirements-test.txt @@ -1,4 +1,4 @@ -google-auth==2.3.0 +google-auth==2.3.1 google-cloud-pubsub==2.8.0 protobuf==3.19.0 pytest==6.2.5 \ No newline at end of file From f6047470a939675f1771d836df8ed2452f8cbae8 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 26 Oct 2021 20:41:28 +0200 Subject: [PATCH 028/112] chore(deps): update dependency google-api-core to v2.2.0 (#81) --- contact-center-insights/snippets/requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contact-center-insights/snippets/requirements.txt b/contact-center-insights/snippets/requirements.txt index 0d2e4c3fbde8..cefd0c4846bf 100644 --- a/contact-center-insights/snippets/requirements.txt +++ b/contact-center-insights/snippets/requirements.txt @@ -1,4 +1,4 @@ -google-api-core==2.1.1 +google-api-core==2.2.0 google-cloud-bigquery==2.28.1 google-cloud-contact-center-insights==0.6.0 protobuf==3.19.0 \ No newline at end of file From afb68aca266ef97fe4b408e2a054f4f34d153a5d Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 27 Oct 2021 11:50:14 +0200 Subject: [PATCH 029/112] chore(deps): update dependency google-auth to v2.3.2 (#82) --- contact-center-insights/snippets/requirements-test.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contact-center-insights/snippets/requirements-test.txt b/contact-center-insights/snippets/requirements-test.txt index 9d9f1088a5a0..b4b48cd933a7 100644 --- a/contact-center-insights/snippets/requirements-test.txt +++ b/contact-center-insights/snippets/requirements-test.txt @@ -1,4 +1,4 @@ -google-auth==2.3.1 +google-auth==2.3.2 google-cloud-pubsub==2.8.0 protobuf==3.19.0 pytest==6.2.5 \ No newline at end of file From 4b55e8cb3432ef05fa25e2dfcaccfd84eb60be18 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 28 Oct 2021 16:56:36 +0200 Subject: [PATCH 030/112] chore(deps): update dependency google-cloud-bigquery to v2.29.0 (#83) --- contact-center-insights/snippets/requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contact-center-insights/snippets/requirements.txt b/contact-center-insights/snippets/requirements.txt index cefd0c4846bf..bb2eab418657 100644 --- a/contact-center-insights/snippets/requirements.txt +++ b/contact-center-insights/snippets/requirements.txt @@ -1,4 +1,4 @@ google-api-core==2.2.0 -google-cloud-bigquery==2.28.1 +google-cloud-bigquery==2.29.0 google-cloud-contact-center-insights==0.6.0 protobuf==3.19.0 \ No newline at end of file From f2fa4ecd9cd202509f8a4bc22ab3cb8cdaad3e04 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 29 Oct 2021 08:44:28 +0200 Subject: [PATCH 031/112] chore(deps): update all dependencies (#84) --- contact-center-insights/snippets/requirements-test.txt | 2 +- contact-center-insights/snippets/requirements.txt | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/contact-center-insights/snippets/requirements-test.txt b/contact-center-insights/snippets/requirements-test.txt index b4b48cd933a7..db28bdfd03b2 100644 --- a/contact-center-insights/snippets/requirements-test.txt +++ b/contact-center-insights/snippets/requirements-test.txt @@ -1,4 +1,4 @@ google-auth==2.3.2 google-cloud-pubsub==2.8.0 -protobuf==3.19.0 +protobuf==3.19.1 pytest==6.2.5 \ No newline at end of file diff --git a/contact-center-insights/snippets/requirements.txt b/contact-center-insights/snippets/requirements.txt index bb2eab418657..a0ccb090dc7e 100644 --- a/contact-center-insights/snippets/requirements.txt +++ b/contact-center-insights/snippets/requirements.txt @@ -1,4 +1,4 @@ -google-api-core==2.2.0 +google-api-core==2.2.1 google-cloud-bigquery==2.29.0 google-cloud-contact-center-insights==0.6.0 -protobuf==3.19.0 \ No newline at end of file +protobuf==3.19.1 \ No newline at end of file From 8ed94d6c1a36916a4e21b41c73c0bf42aceb94e8 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 2 Nov 2021 15:38:15 +0100 Subject: [PATCH 032/112] chore(deps): update dependency google-auth to v2.3.3 (#87) --- contact-center-insights/snippets/requirements-test.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contact-center-insights/snippets/requirements-test.txt b/contact-center-insights/snippets/requirements-test.txt index db28bdfd03b2..4735cd004675 100644 --- a/contact-center-insights/snippets/requirements-test.txt +++ b/contact-center-insights/snippets/requirements-test.txt @@ -1,4 +1,4 @@ -google-auth==2.3.2 +google-auth==2.3.3 google-cloud-pubsub==2.8.0 protobuf==3.19.1 pytest==6.2.5 \ No newline at end of file From cdc7a5b2f59e861fda6c1b74e7b949603fa69eb1 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 2 Nov 2021 20:22:57 +0100 Subject: [PATCH 033/112] chore(deps): update dependency google-cloud-contact-center-insights to v0.6.1 (#88) --- contact-center-insights/snippets/requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contact-center-insights/snippets/requirements.txt b/contact-center-insights/snippets/requirements.txt index a0ccb090dc7e..162724b10f73 100644 --- a/contact-center-insights/snippets/requirements.txt +++ b/contact-center-insights/snippets/requirements.txt @@ -1,4 +1,4 @@ google-api-core==2.2.1 google-cloud-bigquery==2.29.0 -google-cloud-contact-center-insights==0.6.0 +google-cloud-contact-center-insights==0.6.1 protobuf==3.19.1 \ No newline at end of file From 761bf831714206a64f8a59d03fc6338972c9e816 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 3 Nov 2021 08:36:44 +0100 Subject: [PATCH 034/112] chore(deps): update dependency google-api-core to v2.2.2 (#90) Co-authored-by: Anthonios Partheniou --- contact-center-insights/snippets/requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contact-center-insights/snippets/requirements.txt b/contact-center-insights/snippets/requirements.txt index 162724b10f73..61eca6b6b6c2 100644 --- a/contact-center-insights/snippets/requirements.txt +++ b/contact-center-insights/snippets/requirements.txt @@ -1,4 +1,4 @@ -google-api-core==2.2.1 +google-api-core==2.2.2 google-cloud-bigquery==2.29.0 google-cloud-contact-center-insights==0.6.1 protobuf==3.19.1 \ No newline at end of file From d972cc6b510c227d2683736053916528f2e2911f Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 4 Nov 2021 10:18:12 +0100 Subject: [PATCH 035/112] chore(deps): update all dependencies (#92) --- contact-center-insights/snippets/requirements.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contact-center-insights/snippets/requirements.txt b/contact-center-insights/snippets/requirements.txt index 61eca6b6b6c2..44d40bac2a8d 100644 --- a/contact-center-insights/snippets/requirements.txt +++ b/contact-center-insights/snippets/requirements.txt @@ -1,4 +1,4 @@ google-api-core==2.2.2 -google-cloud-bigquery==2.29.0 -google-cloud-contact-center-insights==0.6.1 +google-cloud-bigquery==2.30.0 +google-cloud-contact-center-insights==1.0.0 protobuf==3.19.1 \ No newline at end of file From 8f1a8e1f88bc51fea707d7870093adf0ccfbbfac Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 5 Nov 2021 20:25:39 +0100 Subject: [PATCH 036/112] chore(deps): update all dependencies (#94) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update all dependencies * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot Co-authored-by: Anthonios Partheniou --- contact-center-insights/snippets/requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contact-center-insights/snippets/requirements.txt b/contact-center-insights/snippets/requirements.txt index 44d40bac2a8d..ab59312b22b7 100644 --- a/contact-center-insights/snippets/requirements.txt +++ b/contact-center-insights/snippets/requirements.txt @@ -1,4 +1,4 @@ google-api-core==2.2.2 -google-cloud-bigquery==2.30.0 +google-cloud-bigquery==2.30.1 google-cloud-contact-center-insights==1.0.0 protobuf==3.19.1 \ No newline at end of file From fafeed47229d51688ff573ab3874f1fda1763b31 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 9 Nov 2021 17:44:18 +0100 Subject: [PATCH 037/112] chore(deps): update dependency google-cloud-contact-center-insights to v1.1.0 (#98) --- contact-center-insights/snippets/requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contact-center-insights/snippets/requirements.txt b/contact-center-insights/snippets/requirements.txt index ab59312b22b7..5137bd149f96 100644 --- a/contact-center-insights/snippets/requirements.txt +++ b/contact-center-insights/snippets/requirements.txt @@ -1,4 +1,4 @@ google-api-core==2.2.2 google-cloud-bigquery==2.30.1 -google-cloud-contact-center-insights==1.0.0 +google-cloud-contact-center-insights==1.1.0 protobuf==3.19.1 \ No newline at end of file From 544d447bd7afd6e74a26259b8fbe1d5c0cd00652 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 11 Nov 2021 02:08:38 +0100 Subject: [PATCH 038/112] chore(deps): update dependency google-cloud-pubsub to v2.9.0 (#100) --- contact-center-insights/snippets/requirements-test.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contact-center-insights/snippets/requirements-test.txt b/contact-center-insights/snippets/requirements-test.txt index 4735cd004675..8a4d3633fde7 100644 --- a/contact-center-insights/snippets/requirements-test.txt +++ b/contact-center-insights/snippets/requirements-test.txt @@ -1,4 +1,4 @@ google-auth==2.3.3 -google-cloud-pubsub==2.8.0 +google-cloud-pubsub==2.9.0 protobuf==3.19.1 pytest==6.2.5 \ No newline at end of file From 498c2b33f9e85f9a10b37fb6bb96ae24eb3e8da7 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 3 Dec 2021 11:54:12 +0100 Subject: [PATCH 039/112] chore(deps): update dependency google-cloud-bigquery to v2.31.0 (#106) --- contact-center-insights/snippets/requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contact-center-insights/snippets/requirements.txt b/contact-center-insights/snippets/requirements.txt index 5137bd149f96..db1a5fc54450 100644 --- a/contact-center-insights/snippets/requirements.txt +++ b/contact-center-insights/snippets/requirements.txt @@ -1,4 +1,4 @@ google-api-core==2.2.2 -google-cloud-bigquery==2.30.1 +google-cloud-bigquery==2.31.0 google-cloud-contact-center-insights==1.1.0 protobuf==3.19.1 \ No newline at end of file From c066edb25d8b5b55f9d6119fea61059ae67c5aab Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 8 Dec 2021 16:33:00 +0100 Subject: [PATCH 040/112] chore(deps): update dependency google-api-core to v2.3.0 (#108) --- contact-center-insights/snippets/requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contact-center-insights/snippets/requirements.txt b/contact-center-insights/snippets/requirements.txt index db1a5fc54450..4e88f2627edb 100644 --- a/contact-center-insights/snippets/requirements.txt +++ b/contact-center-insights/snippets/requirements.txt @@ -1,4 +1,4 @@ -google-api-core==2.2.2 +google-api-core==2.3.0 google-cloud-bigquery==2.31.0 google-cloud-contact-center-insights==1.1.0 protobuf==3.19.1 \ No newline at end of file From df30f53668c3cd7503d5ffa6455b9dfecf92beff Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Tue, 11 Jan 2022 10:09:29 -0500 Subject: [PATCH 041/112] chore(python): fix undefined name 'glob' in samples noxfile (#116) Source-Link: https://github.com/googleapis/synthtool/commit/52aef91f8d25223d9dbdb4aebd94ba8eea2101f3 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:36a95b8f494e4674dc9eee9af98961293b51b86b3649942aac800ae6c1f796d4 Co-authored-by: Owl Bot --- contact-center-insights/snippets/noxfile.py | 70 ++++++++++++--------- 1 file changed, 39 insertions(+), 31 deletions(-) diff --git a/contact-center-insights/snippets/noxfile.py b/contact-center-insights/snippets/noxfile.py index 93a9122cc457..3bbef5d54f44 100644 --- a/contact-center-insights/snippets/noxfile.py +++ b/contact-center-insights/snippets/noxfile.py @@ -14,6 +14,7 @@ from __future__ import print_function +import glob import os from pathlib import Path import sys @@ -184,37 +185,44 @@ def blacken(session: nox.sessions.Session) -> None: def _session_tests( session: nox.sessions.Session, post_install: Callable = None ) -> None: - if TEST_CONFIG["pip_version_override"]: - pip_version = TEST_CONFIG["pip_version_override"] - session.install(f"pip=={pip_version}") - """Runs py.test for a particular project.""" - if os.path.exists("requirements.txt"): - if os.path.exists("constraints.txt"): - session.install("-r", "requirements.txt", "-c", "constraints.txt") - else: - session.install("-r", "requirements.txt") - - if os.path.exists("requirements-test.txt"): - if os.path.exists("constraints-test.txt"): - session.install("-r", "requirements-test.txt", "-c", "constraints-test.txt") - else: - session.install("-r", "requirements-test.txt") - - if INSTALL_LIBRARY_FROM_SOURCE: - session.install("-e", _get_repo_root()) - - if post_install: - post_install(session) - - session.run( - "pytest", - *(PYTEST_COMMON_ARGS + session.posargs), - # Pytest will return 5 when no tests are collected. This can happen - # on travis where slow and flaky tests are excluded. - # See http://doc.pytest.org/en/latest/_modules/_pytest/main.html - success_codes=[0, 5], - env=get_pytest_env_vars(), - ) + # check for presence of tests + test_list = glob.glob("*_test.py") + glob.glob("test_*.py") + if len(test_list) == 0: + print("No tests found, skipping directory.") + else: + if TEST_CONFIG["pip_version_override"]: + pip_version = TEST_CONFIG["pip_version_override"] + session.install(f"pip=={pip_version}") + """Runs py.test for a particular project.""" + if os.path.exists("requirements.txt"): + if os.path.exists("constraints.txt"): + session.install("-r", "requirements.txt", "-c", "constraints.txt") + else: + session.install("-r", "requirements.txt") + + if os.path.exists("requirements-test.txt"): + if os.path.exists("constraints-test.txt"): + session.install( + "-r", "requirements-test.txt", "-c", "constraints-test.txt" + ) + else: + session.install("-r", "requirements-test.txt") + + if INSTALL_LIBRARY_FROM_SOURCE: + session.install("-e", _get_repo_root()) + + if post_install: + post_install(session) + + session.run( + "pytest", + *(PYTEST_COMMON_ARGS + session.posargs), + # Pytest will return 5 when no tests are collected. This can happen + # on travis where slow and flaky tests are excluded. + # See http://doc.pytest.org/en/latest/_modules/_pytest/main.html + success_codes=[0, 5], + env=get_pytest_env_vars(), + ) @nox.session(python=ALL_VERSIONS) From 9cc487d32435373b45c238aedce77b5187aaacea Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Tue, 18 Jan 2022 19:54:33 -0500 Subject: [PATCH 042/112] chore(python): Noxfile recognizes that tests can live in a folder (#122) Source-Link: https://github.com/googleapis/synthtool/commit/4760d8dce1351d93658cb11d02a1b7ceb23ae5d7 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:f0e4b51deef56bed74d3e2359c583fc104a8d6367da3984fc5c66938db738828 Co-authored-by: Owl Bot --- contact-center-insights/snippets/noxfile.py | 1 + 1 file changed, 1 insertion(+) diff --git a/contact-center-insights/snippets/noxfile.py b/contact-center-insights/snippets/noxfile.py index 3bbef5d54f44..20cdfc620138 100644 --- a/contact-center-insights/snippets/noxfile.py +++ b/contact-center-insights/snippets/noxfile.py @@ -187,6 +187,7 @@ def _session_tests( ) -> None: # check for presence of tests test_list = glob.glob("*_test.py") + glob.glob("test_*.py") + test_list.extend(glob.glob("tests")) if len(test_list) == 0: print("No tests found, skipping directory.") else: From 46be4d9fbbe51a6f4e346dad81f606eed7706862 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 043/112] 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 --- ...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 +++++++++++++++++ 69 files changed, 6126 insertions(+) create mode 100644 contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_calculate_issue_model_stats_async.py create mode 100644 contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_calculate_issue_model_stats_sync.py create mode 100644 contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_calculate_stats_async.py create mode 100644 contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_calculate_stats_sync.py create mode 100644 contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_create_analysis_async.py create mode 100644 contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_create_analysis_sync.py create mode 100644 contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_create_conversation_async.py create mode 100644 contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_create_conversation_sync.py create mode 100644 contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_create_issue_model_async.py create mode 100644 contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_create_issue_model_sync.py create mode 100644 contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_create_phrase_matcher_async.py create mode 100644 contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_create_phrase_matcher_sync.py create mode 100644 contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_create_view_async.py create mode 100644 contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_create_view_sync.py create mode 100644 contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_delete_analysis_async.py create mode 100644 contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_delete_analysis_sync.py create mode 100644 contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_delete_conversation_async.py create mode 100644 contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_delete_conversation_sync.py create mode 100644 contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_delete_issue_model_async.py create mode 100644 contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_delete_issue_model_sync.py create mode 100644 contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_delete_phrase_matcher_async.py create mode 100644 contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_delete_phrase_matcher_sync.py create mode 100644 contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_delete_view_async.py create mode 100644 contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_delete_view_sync.py create mode 100644 contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_deploy_issue_model_async.py create mode 100644 contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_deploy_issue_model_sync.py create mode 100644 contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_export_insights_data_async.py create mode 100644 contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_export_insights_data_sync.py create mode 100644 contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_get_analysis_async.py create mode 100644 contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_get_analysis_sync.py create mode 100644 contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_get_conversation_async.py create mode 100644 contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_get_conversation_sync.py create mode 100644 contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_get_issue_async.py create mode 100644 contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_get_issue_model_async.py create mode 100644 contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_get_issue_model_sync.py create mode 100644 contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_get_issue_sync.py create mode 100644 contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_get_phrase_matcher_async.py create mode 100644 contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_get_phrase_matcher_sync.py create mode 100644 contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_get_settings_async.py create mode 100644 contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_get_settings_sync.py create mode 100644 contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_get_view_async.py create mode 100644 contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_get_view_sync.py create mode 100644 contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_list_analyses_async.py create mode 100644 contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_list_analyses_sync.py create mode 100644 contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_list_conversations_async.py create mode 100644 contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_list_conversations_sync.py create mode 100644 contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_list_issue_models_async.py create mode 100644 contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_list_issue_models_sync.py create mode 100644 contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_list_issues_async.py create mode 100644 contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_list_issues_sync.py create mode 100644 contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_list_phrase_matchers_async.py create mode 100644 contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_list_phrase_matchers_sync.py create mode 100644 contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_list_views_async.py create mode 100644 contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_list_views_sync.py create mode 100644 contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_undeploy_issue_model_async.py create mode 100644 contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_undeploy_issue_model_sync.py create mode 100644 contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_update_conversation_async.py create mode 100644 contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_update_conversation_sync.py create mode 100644 contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_update_issue_async.py create mode 100644 contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_update_issue_model_async.py create mode 100644 contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_update_issue_model_sync.py create mode 100644 contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_update_issue_sync.py create mode 100644 contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_update_phrase_matcher_async.py create mode 100644 contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_update_phrase_matcher_sync.py create mode 100644 contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_update_settings_async.py create mode 100644 contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_update_settings_sync.py create mode 100644 contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_update_view_async.py create mode 100644 contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_update_view_sync.py create mode 100644 contact-center-insights/generated_samples/snippet_metadata_contact center insights_v1.json diff --git a/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_calculate_issue_model_stats_async.py b/contact-center-insights/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/contact-center-insights/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/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_calculate_issue_model_stats_sync.py b/contact-center-insights/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/contact-center-insights/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/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_calculate_stats_async.py b/contact-center-insights/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/contact-center-insights/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/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_calculate_stats_sync.py b/contact-center-insights/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/contact-center-insights/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/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_create_analysis_async.py b/contact-center-insights/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/contact-center-insights/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/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_create_analysis_sync.py b/contact-center-insights/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/contact-center-insights/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/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_create_conversation_async.py b/contact-center-insights/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/contact-center-insights/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/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_create_conversation_sync.py b/contact-center-insights/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/contact-center-insights/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/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_create_issue_model_async.py b/contact-center-insights/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/contact-center-insights/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/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_create_issue_model_sync.py b/contact-center-insights/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/contact-center-insights/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/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_create_phrase_matcher_async.py b/contact-center-insights/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/contact-center-insights/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/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_create_phrase_matcher_sync.py b/contact-center-insights/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/contact-center-insights/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/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_create_view_async.py b/contact-center-insights/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/contact-center-insights/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/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_create_view_sync.py b/contact-center-insights/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/contact-center-insights/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/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_delete_analysis_async.py b/contact-center-insights/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/contact-center-insights/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/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_delete_analysis_sync.py b/contact-center-insights/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/contact-center-insights/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/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_delete_conversation_async.py b/contact-center-insights/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/contact-center-insights/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/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_delete_conversation_sync.py b/contact-center-insights/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/contact-center-insights/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/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_delete_issue_model_async.py b/contact-center-insights/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/contact-center-insights/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/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_delete_issue_model_sync.py b/contact-center-insights/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/contact-center-insights/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/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_delete_phrase_matcher_async.py b/contact-center-insights/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/contact-center-insights/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/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_delete_phrase_matcher_sync.py b/contact-center-insights/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/contact-center-insights/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/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_delete_view_async.py b/contact-center-insights/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/contact-center-insights/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/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_delete_view_sync.py b/contact-center-insights/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/contact-center-insights/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/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_deploy_issue_model_async.py b/contact-center-insights/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/contact-center-insights/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/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_deploy_issue_model_sync.py b/contact-center-insights/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/contact-center-insights/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/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_export_insights_data_async.py b/contact-center-insights/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/contact-center-insights/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/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_export_insights_data_sync.py b/contact-center-insights/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/contact-center-insights/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/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_get_analysis_async.py b/contact-center-insights/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/contact-center-insights/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/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_get_analysis_sync.py b/contact-center-insights/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/contact-center-insights/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/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_get_conversation_async.py b/contact-center-insights/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/contact-center-insights/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/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_get_conversation_sync.py b/contact-center-insights/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/contact-center-insights/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/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_get_issue_async.py b/contact-center-insights/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/contact-center-insights/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/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_get_issue_model_async.py b/contact-center-insights/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/contact-center-insights/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/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_get_issue_model_sync.py b/contact-center-insights/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/contact-center-insights/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/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_get_issue_sync.py b/contact-center-insights/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/contact-center-insights/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/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_get_phrase_matcher_async.py b/contact-center-insights/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/contact-center-insights/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/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_get_phrase_matcher_sync.py b/contact-center-insights/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/contact-center-insights/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/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_get_settings_async.py b/contact-center-insights/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/contact-center-insights/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/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_get_settings_sync.py b/contact-center-insights/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/contact-center-insights/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/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_get_view_async.py b/contact-center-insights/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/contact-center-insights/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/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_get_view_sync.py b/contact-center-insights/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/contact-center-insights/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/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_list_analyses_async.py b/contact-center-insights/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/contact-center-insights/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/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_list_analyses_sync.py b/contact-center-insights/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/contact-center-insights/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/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_list_conversations_async.py b/contact-center-insights/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/contact-center-insights/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/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_list_conversations_sync.py b/contact-center-insights/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/contact-center-insights/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/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_list_issue_models_async.py b/contact-center-insights/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/contact-center-insights/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/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_list_issue_models_sync.py b/contact-center-insights/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/contact-center-insights/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/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_list_issues_async.py b/contact-center-insights/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/contact-center-insights/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/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_list_issues_sync.py b/contact-center-insights/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/contact-center-insights/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/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_list_phrase_matchers_async.py b/contact-center-insights/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/contact-center-insights/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/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_list_phrase_matchers_sync.py b/contact-center-insights/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/contact-center-insights/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/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_list_views_async.py b/contact-center-insights/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/contact-center-insights/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/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_list_views_sync.py b/contact-center-insights/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/contact-center-insights/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/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_undeploy_issue_model_async.py b/contact-center-insights/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/contact-center-insights/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/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_undeploy_issue_model_sync.py b/contact-center-insights/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/contact-center-insights/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/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_update_conversation_async.py b/contact-center-insights/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/contact-center-insights/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/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_update_conversation_sync.py b/contact-center-insights/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/contact-center-insights/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/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_update_issue_async.py b/contact-center-insights/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/contact-center-insights/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/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_update_issue_model_async.py b/contact-center-insights/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/contact-center-insights/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/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_update_issue_model_sync.py b/contact-center-insights/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/contact-center-insights/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/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_update_issue_sync.py b/contact-center-insights/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/contact-center-insights/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/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_update_phrase_matcher_async.py b/contact-center-insights/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/contact-center-insights/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/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_update_phrase_matcher_sync.py b/contact-center-insights/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/contact-center-insights/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/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_update_settings_async.py b/contact-center-insights/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/contact-center-insights/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/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_update_settings_sync.py b/contact-center-insights/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/contact-center-insights/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/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_update_view_async.py b/contact-center-insights/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/contact-center-insights/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/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_update_view_sync.py b/contact-center-insights/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/contact-center-insights/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/contact-center-insights/generated_samples/snippet_metadata_contact center insights_v1.json b/contact-center-insights/generated_samples/snippet_metadata_contact center insights_v1.json new file mode 100644 index 000000000000..1207f7bc7a23 --- /dev/null +++ b/contact-center-insights/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" + } + ] + } + ] +} From 836b4be84af23d9f5527d81ae9003e55a3ce296e Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Fri, 25 Feb 2022 09:42:47 -0700 Subject: [PATCH 044/112] chore: use gapic-generator-python 0.63.4 (#132) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore: use gapic-generator-python 0.63.4 chore: fix snippet region tag format chore: fix docstring code block formatting PiperOrigin-RevId: 430730865 Source-Link: https://github.com/googleapis/googleapis/commit/ea5800229f73f94fd7204915a86ed09dcddf429a Source-Link: https://github.com/googleapis/googleapis-gen/commit/ca893ff8af25fc7fe001de1405a517d80446ecca Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiY2E4OTNmZjhhZjI1ZmM3ZmUwMDFkZTE0MDVhNTE3ZDgwNDQ2ZWNjYSJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * chore: delete duplicates Co-authored-by: Owl Bot Co-authored-by: Bu Sun Kim <8822365+busunkim96@users.noreply.github.com> --- ...ghts_calculate_issue_model_stats_async.py} | 4 +- ...ights_calculate_issue_model_stats_sync.py} | 4 +- ..._center_insights_calculate_stats_async.py} | 4 +- ...t_center_insights_calculate_stats_sync.py} | 4 +- ..._center_insights_create_analysis_async.py} | 4 +- ...t_center_insights_create_analysis_sync.py} | 4 +- ...ter_insights_create_conversation_async.py} | 4 +- ...nter_insights_create_conversation_sync.py} | 4 +- ...nter_insights_create_issue_model_async.py} | 4 +- ...enter_insights_create_issue_model_sync.py} | 4 +- ...r_insights_create_phrase_matcher_async.py} | 4 +- ...er_insights_create_phrase_matcher_sync.py} | 4 +- ...tact_center_insights_create_view_async.py} | 4 +- ...ntact_center_insights_create_view_sync.py} | 4 +- ..._center_insights_delete_analysis_async.py} | 4 +- ...t_center_insights_delete_analysis_sync.py} | 4 +- ...ter_insights_delete_conversation_async.py} | 4 +- ...nter_insights_delete_conversation_sync.py} | 4 +- ...nter_insights_delete_issue_model_async.py} | 4 +- ...enter_insights_delete_issue_model_sync.py} | 4 +- ...r_insights_delete_phrase_matcher_async.py} | 4 +- ...er_insights_delete_phrase_matcher_sync.py} | 4 +- ...tact_center_insights_delete_view_async.py} | 4 +- ...ntact_center_insights_delete_view_sync.py} | 4 +- ...nter_insights_deploy_issue_model_async.py} | 4 +- ...enter_insights_deploy_issue_model_sync.py} | 4 +- ...er_insights_export_insights_data_async.py} | 4 +- ...ter_insights_export_insights_data_sync.py} | 4 +- ...act_center_insights_get_analysis_async.py} | 4 +- ...tact_center_insights_get_analysis_sync.py} | 4 +- ...center_insights_get_conversation_async.py} | 4 +- ..._center_insights_get_conversation_sync.py} | 4 +- ...ontact_center_insights_get_issue_async.py} | 4 +- ..._center_insights_get_issue_model_async.py} | 4 +- ...t_center_insights_get_issue_model_sync.py} | 4 +- ...contact_center_insights_get_issue_sync.py} | 4 +- ...nter_insights_get_phrase_matcher_async.py} | 4 +- ...enter_insights_get_phrase_matcher_sync.py} | 4 +- ...act_center_insights_get_settings_async.py} | 4 +- ...tact_center_insights_get_settings_sync.py} | 4 +- ...contact_center_insights_get_view_async.py} | 4 +- ..._contact_center_insights_get_view_sync.py} | 4 +- ...ct_center_insights_list_analyses_async.py} | 4 +- ...act_center_insights_list_analyses_sync.py} | 4 +- ...nter_insights_list_conversations_async.py} | 4 +- ...enter_insights_list_conversations_sync.py} | 4 +- ...enter_insights_list_issue_models_async.py} | 4 +- ...center_insights_list_issue_models_sync.py} | 4 +- ...tact_center_insights_list_issues_async.py} | 4 +- ...ntact_center_insights_list_issues_sync.py} | 4 +- ...er_insights_list_phrase_matchers_async.py} | 4 +- ...ter_insights_list_phrase_matchers_sync.py} | 4 +- ...ntact_center_insights_list_views_async.py} | 4 +- ...ontact_center_insights_list_views_sync.py} | 4 +- ...er_insights_undeploy_issue_model_async.py} | 4 +- ...ter_insights_undeploy_issue_model_sync.py} | 4 +- ...ter_insights_update_conversation_async.py} | 4 +- ...nter_insights_update_conversation_sync.py} | 4 +- ...act_center_insights_update_issue_async.py} | 4 +- ...nter_insights_update_issue_model_async.py} | 4 +- ...enter_insights_update_issue_model_sync.py} | 4 +- ...tact_center_insights_update_issue_sync.py} | 4 +- ...r_insights_update_phrase_matcher_async.py} | 4 +- ...er_insights_update_phrase_matcher_sync.py} | 4 +- ..._center_insights_update_settings_async.py} | 4 +- ...t_center_insights_update_settings_sync.py} | 4 +- ...tact_center_insights_update_view_async.py} | 4 +- ...ntact_center_insights_update_view_sync.py} | 4 +- ...t_metadata_contact center insights_v1.json | 272 +++++++++--------- 69 files changed, 272 insertions(+), 272 deletions(-) rename contact-center-insights/generated_samples/{contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_calculate_issue_model_stats_async.py => contactcenterinsights_v1_generated_contact_center_insights_calculate_issue_model_stats_async.py} (85%) rename contact-center-insights/generated_samples/{contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_calculate_issue_model_stats_sync.py => contactcenterinsights_v1_generated_contact_center_insights_calculate_issue_model_stats_sync.py} (85%) rename contact-center-insights/generated_samples/{contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_calculate_stats_async.py => contactcenterinsights_v1_generated_contact_center_insights_calculate_stats_async.py} (86%) rename contact-center-insights/generated_samples/{contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_calculate_stats_sync.py => contactcenterinsights_v1_generated_contact_center_insights_calculate_stats_sync.py} (86%) rename contact-center-insights/generated_samples/{contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_create_analysis_async.py => contactcenterinsights_v1_generated_contact_center_insights_create_analysis_async.py} (87%) rename contact-center-insights/generated_samples/{contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_create_analysis_sync.py => contactcenterinsights_v1_generated_contact_center_insights_create_analysis_sync.py} (87%) rename contact-center-insights/generated_samples/{contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_create_conversation_async.py => contactcenterinsights_v1_generated_contact_center_insights_create_conversation_async.py} (86%) rename contact-center-insights/generated_samples/{contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_create_conversation_sync.py => contactcenterinsights_v1_generated_contact_center_insights_create_conversation_sync.py} (86%) rename contact-center-insights/generated_samples/{contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_create_issue_model_async.py => contactcenterinsights_v1_generated_contact_center_insights_create_issue_model_async.py} (86%) rename contact-center-insights/generated_samples/{contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_create_issue_model_sync.py => contactcenterinsights_v1_generated_contact_center_insights_create_issue_model_sync.py} (86%) rename contact-center-insights/generated_samples/{contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_create_phrase_matcher_async.py => contactcenterinsights_v1_generated_contact_center_insights_create_phrase_matcher_async.py} (87%) rename contact-center-insights/generated_samples/{contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_create_phrase_matcher_sync.py => contactcenterinsights_v1_generated_contact_center_insights_create_phrase_matcher_sync.py} (87%) rename contact-center-insights/generated_samples/{contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_create_view_async.py => contactcenterinsights_v1_generated_contact_center_insights_create_view_async.py} (86%) rename contact-center-insights/generated_samples/{contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_create_view_sync.py => contactcenterinsights_v1_generated_contact_center_insights_create_view_sync.py} (86%) rename contact-center-insights/generated_samples/{contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_delete_analysis_async.py => contactcenterinsights_v1_generated_contact_center_insights_delete_analysis_async.py} (85%) rename contact-center-insights/generated_samples/{contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_delete_analysis_sync.py => contactcenterinsights_v1_generated_contact_center_insights_delete_analysis_sync.py} (85%) rename contact-center-insights/generated_samples/{contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_delete_conversation_async.py => contactcenterinsights_v1_generated_contact_center_insights_delete_conversation_async.py} (85%) rename contact-center-insights/generated_samples/{contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_delete_conversation_sync.py => contactcenterinsights_v1_generated_contact_center_insights_delete_conversation_sync.py} (85%) rename contact-center-insights/generated_samples/{contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_delete_issue_model_async.py => contactcenterinsights_v1_generated_contact_center_insights_delete_issue_model_async.py} (86%) rename contact-center-insights/generated_samples/{contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_delete_issue_model_sync.py => contactcenterinsights_v1_generated_contact_center_insights_delete_issue_model_sync.py} (86%) rename contact-center-insights/generated_samples/{contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_delete_phrase_matcher_async.py => contactcenterinsights_v1_generated_contact_center_insights_delete_phrase_matcher_async.py} (85%) rename contact-center-insights/generated_samples/{contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_delete_phrase_matcher_sync.py => contactcenterinsights_v1_generated_contact_center_insights_delete_phrase_matcher_sync.py} (85%) rename contact-center-insights/generated_samples/{contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_delete_view_async.py => contactcenterinsights_v1_generated_contact_center_insights_delete_view_async.py} (86%) rename contact-center-insights/generated_samples/{contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_delete_view_sync.py => contactcenterinsights_v1_generated_contact_center_insights_delete_view_sync.py} (86%) rename contact-center-insights/generated_samples/{contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_deploy_issue_model_async.py => contactcenterinsights_v1_generated_contact_center_insights_deploy_issue_model_async.py} (86%) rename contact-center-insights/generated_samples/{contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_deploy_issue_model_sync.py => contactcenterinsights_v1_generated_contact_center_insights_deploy_issue_model_sync.py} (86%) rename contact-center-insights/generated_samples/{contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_export_insights_data_async.py => contactcenterinsights_v1_generated_contact_center_insights_export_insights_data_async.py} (88%) rename contact-center-insights/generated_samples/{contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_export_insights_data_sync.py => contactcenterinsights_v1_generated_contact_center_insights_export_insights_data_sync.py} (88%) rename contact-center-insights/generated_samples/{contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_get_analysis_async.py => contactcenterinsights_v1_generated_contact_center_insights_get_analysis_async.py} (86%) rename contact-center-insights/generated_samples/{contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_get_analysis_sync.py => contactcenterinsights_v1_generated_contact_center_insights_get_analysis_sync.py} (86%) rename contact-center-insights/generated_samples/{contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_get_conversation_async.py => contactcenterinsights_v1_generated_contact_center_insights_get_conversation_async.py} (86%) rename contact-center-insights/generated_samples/{contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_get_conversation_sync.py => contactcenterinsights_v1_generated_contact_center_insights_get_conversation_sync.py} (86%) rename contact-center-insights/generated_samples/{contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_get_issue_async.py => contactcenterinsights_v1_generated_contact_center_insights_get_issue_async.py} (86%) rename contact-center-insights/generated_samples/{contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_get_issue_model_async.py => contactcenterinsights_v1_generated_contact_center_insights_get_issue_model_async.py} (86%) rename contact-center-insights/generated_samples/{contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_get_issue_model_sync.py => contactcenterinsights_v1_generated_contact_center_insights_get_issue_model_sync.py} (86%) rename contact-center-insights/generated_samples/{contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_get_issue_sync.py => contactcenterinsights_v1_generated_contact_center_insights_get_issue_sync.py} (86%) rename contact-center-insights/generated_samples/{contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_get_phrase_matcher_async.py => contactcenterinsights_v1_generated_contact_center_insights_get_phrase_matcher_async.py} (86%) rename contact-center-insights/generated_samples/{contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_get_phrase_matcher_sync.py => contactcenterinsights_v1_generated_contact_center_insights_get_phrase_matcher_sync.py} (86%) rename contact-center-insights/generated_samples/{contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_get_settings_async.py => contactcenterinsights_v1_generated_contact_center_insights_get_settings_async.py} (86%) rename contact-center-insights/generated_samples/{contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_get_settings_sync.py => contactcenterinsights_v1_generated_contact_center_insights_get_settings_sync.py} (86%) rename contact-center-insights/generated_samples/{contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_get_view_async.py => contactcenterinsights_v1_generated_contact_center_insights_get_view_async.py} (86%) rename contact-center-insights/generated_samples/{contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_get_view_sync.py => contactcenterinsights_v1_generated_contact_center_insights_get_view_sync.py} (86%) rename contact-center-insights/generated_samples/{contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_list_analyses_async.py => contactcenterinsights_v1_generated_contact_center_insights_list_analyses_async.py} (86%) rename contact-center-insights/generated_samples/{contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_list_analyses_sync.py => contactcenterinsights_v1_generated_contact_center_insights_list_analyses_sync.py} (86%) rename contact-center-insights/generated_samples/{contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_list_conversations_async.py => contactcenterinsights_v1_generated_contact_center_insights_list_conversations_async.py} (86%) rename contact-center-insights/generated_samples/{contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_list_conversations_sync.py => contactcenterinsights_v1_generated_contact_center_insights_list_conversations_sync.py} (86%) rename contact-center-insights/generated_samples/{contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_list_issue_models_async.py => contactcenterinsights_v1_generated_contact_center_insights_list_issue_models_async.py} (86%) rename contact-center-insights/generated_samples/{contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_list_issue_models_sync.py => contactcenterinsights_v1_generated_contact_center_insights_list_issue_models_sync.py} (86%) rename contact-center-insights/generated_samples/{contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_list_issues_async.py => contactcenterinsights_v1_generated_contact_center_insights_list_issues_async.py} (86%) rename contact-center-insights/generated_samples/{contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_list_issues_sync.py => contactcenterinsights_v1_generated_contact_center_insights_list_issues_sync.py} (86%) rename contact-center-insights/generated_samples/{contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_list_phrase_matchers_async.py => contactcenterinsights_v1_generated_contact_center_insights_list_phrase_matchers_async.py} (86%) rename contact-center-insights/generated_samples/{contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_list_phrase_matchers_sync.py => contactcenterinsights_v1_generated_contact_center_insights_list_phrase_matchers_sync.py} (86%) rename contact-center-insights/generated_samples/{contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_list_views_async.py => contactcenterinsights_v1_generated_contact_center_insights_list_views_async.py} (87%) rename contact-center-insights/generated_samples/{contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_list_views_sync.py => contactcenterinsights_v1_generated_contact_center_insights_list_views_sync.py} (87%) rename contact-center-insights/generated_samples/{contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_undeploy_issue_model_async.py => contactcenterinsights_v1_generated_contact_center_insights_undeploy_issue_model_async.py} (86%) rename contact-center-insights/generated_samples/{contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_undeploy_issue_model_sync.py => contactcenterinsights_v1_generated_contact_center_insights_undeploy_issue_model_sync.py} (86%) rename contact-center-insights/generated_samples/{contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_update_conversation_async.py => contactcenterinsights_v1_generated_contact_center_insights_update_conversation_async.py} (85%) rename contact-center-insights/generated_samples/{contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_update_conversation_sync.py => contactcenterinsights_v1_generated_contact_center_insights_update_conversation_sync.py} (85%) rename contact-center-insights/generated_samples/{contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_update_issue_async.py => contactcenterinsights_v1_generated_contact_center_insights_update_issue_async.py} (86%) rename contact-center-insights/generated_samples/{contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_update_issue_model_async.py => contactcenterinsights_v1_generated_contact_center_insights_update_issue_model_async.py} (86%) rename contact-center-insights/generated_samples/{contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_update_issue_model_sync.py => contactcenterinsights_v1_generated_contact_center_insights_update_issue_model_sync.py} (85%) rename contact-center-insights/generated_samples/{contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_update_issue_sync.py => contactcenterinsights_v1_generated_contact_center_insights_update_issue_sync.py} (86%) rename contact-center-insights/generated_samples/{contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_update_phrase_matcher_async.py => contactcenterinsights_v1_generated_contact_center_insights_update_phrase_matcher_async.py} (86%) rename contact-center-insights/generated_samples/{contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_update_phrase_matcher_sync.py => contactcenterinsights_v1_generated_contact_center_insights_update_phrase_matcher_sync.py} (86%) rename contact-center-insights/generated_samples/{contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_update_settings_async.py => contactcenterinsights_v1_generated_contact_center_insights_update_settings_async.py} (86%) rename contact-center-insights/generated_samples/{contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_update_settings_sync.py => contactcenterinsights_v1_generated_contact_center_insights_update_settings_sync.py} (86%) rename contact-center-insights/generated_samples/{contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_update_view_async.py => contactcenterinsights_v1_generated_contact_center_insights_update_view_async.py} (86%) rename contact-center-insights/generated_samples/{contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_update_view_sync.py => contactcenterinsights_v1_generated_contact_center_insights_update_view_sync.py} (86%) diff --git a/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_calculate_issue_model_stats_async.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_calculate_issue_model_stats_async.py similarity index 85% rename from contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_calculate_issue_model_stats_async.py rename to contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_calculate_issue_model_stats_async.py index f32a406f9a6e..1acf9cca5751 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_calculate_issue_model_stats_async.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_calculate_issue_model_stats_async.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-contact-center-insights -# [START contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_CalculateIssueModelStats_async] +# [START contactcenterinsights_v1_generated_ContactCenterInsights_CalculateIssueModelStats_async] from google.cloud import contact_center_insights_v1 @@ -42,4 +42,4 @@ async def sample_calculate_issue_model_stats(): # Handle the response print(response) -# [END contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_CalculateIssueModelStats_async] +# [END contactcenterinsights_v1_generated_ContactCenterInsights_CalculateIssueModelStats_async] diff --git a/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_calculate_issue_model_stats_sync.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_calculate_issue_model_stats_sync.py similarity index 85% rename from contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_calculate_issue_model_stats_sync.py rename to contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_calculate_issue_model_stats_sync.py index 3e8c4952242a..305f06e01d97 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_calculate_issue_model_stats_sync.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_calculate_issue_model_stats_sync.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-contact-center-insights -# [START contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_CalculateIssueModelStats_sync] +# [START contactcenterinsights_v1_generated_ContactCenterInsights_CalculateIssueModelStats_sync] from google.cloud import contact_center_insights_v1 @@ -42,4 +42,4 @@ def sample_calculate_issue_model_stats(): # Handle the response print(response) -# [END contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_CalculateIssueModelStats_sync] +# [END contactcenterinsights_v1_generated_ContactCenterInsights_CalculateIssueModelStats_sync] diff --git a/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_calculate_stats_async.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_calculate_stats_async.py similarity index 86% rename from contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_calculate_stats_async.py rename to contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_calculate_stats_async.py index bbb5c35cd3f7..33233dd24c15 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_calculate_stats_async.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_calculate_stats_async.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-contact-center-insights -# [START contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_CalculateStats_async] +# [START contactcenterinsights_v1_generated_ContactCenterInsights_CalculateStats_async] from google.cloud import contact_center_insights_v1 @@ -42,4 +42,4 @@ async def sample_calculate_stats(): # Handle the response print(response) -# [END contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_CalculateStats_async] +# [END contactcenterinsights_v1_generated_ContactCenterInsights_CalculateStats_async] diff --git a/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_calculate_stats_sync.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_calculate_stats_sync.py similarity index 86% rename from contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_calculate_stats_sync.py rename to contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_calculate_stats_sync.py index 09deac2b9422..4b99f3d6e06a 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_calculate_stats_sync.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_calculate_stats_sync.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-contact-center-insights -# [START contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_CalculateStats_sync] +# [START contactcenterinsights_v1_generated_ContactCenterInsights_CalculateStats_sync] from google.cloud import contact_center_insights_v1 @@ -42,4 +42,4 @@ def sample_calculate_stats(): # Handle the response print(response) -# [END contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_CalculateStats_sync] +# [END contactcenterinsights_v1_generated_ContactCenterInsights_CalculateStats_sync] diff --git a/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_create_analysis_async.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_create_analysis_async.py similarity index 87% rename from contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_create_analysis_async.py rename to contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_create_analysis_async.py index 16051f567077..86ff29042a3d 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_create_analysis_async.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_create_analysis_async.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-contact-center-insights -# [START contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_CreateAnalysis_async] +# [START contactcenterinsights_v1_generated_ContactCenterInsights_CreateAnalysis_async] from google.cloud import contact_center_insights_v1 @@ -46,4 +46,4 @@ async def sample_create_analysis(): # Handle the response print(response) -# [END contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_CreateAnalysis_async] +# [END contactcenterinsights_v1_generated_ContactCenterInsights_CreateAnalysis_async] diff --git a/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_create_analysis_sync.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_create_analysis_sync.py similarity index 87% rename from contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_create_analysis_sync.py rename to contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_create_analysis_sync.py index 0935d2c92db6..795a443876aa 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_create_analysis_sync.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_create_analysis_sync.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-contact-center-insights -# [START contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_CreateAnalysis_sync] +# [START contactcenterinsights_v1_generated_ContactCenterInsights_CreateAnalysis_sync] from google.cloud import contact_center_insights_v1 @@ -46,4 +46,4 @@ def sample_create_analysis(): # Handle the response print(response) -# [END contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_CreateAnalysis_sync] +# [END contactcenterinsights_v1_generated_ContactCenterInsights_CreateAnalysis_sync] diff --git a/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_create_conversation_async.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_create_conversation_async.py similarity index 86% rename from contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_create_conversation_async.py rename to contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_create_conversation_async.py index 8a198c1bb343..bc7adf7497a1 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_create_conversation_async.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_create_conversation_async.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-contact-center-insights -# [START contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_CreateConversation_async] +# [START contactcenterinsights_v1_generated_ContactCenterInsights_CreateConversation_async] from google.cloud import contact_center_insights_v1 @@ -42,4 +42,4 @@ async def sample_create_conversation(): # Handle the response print(response) -# [END contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_CreateConversation_async] +# [END contactcenterinsights_v1_generated_ContactCenterInsights_CreateConversation_async] diff --git a/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_create_conversation_sync.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_create_conversation_sync.py similarity index 86% rename from contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_create_conversation_sync.py rename to contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_create_conversation_sync.py index bdb1587ce16c..7d5924fe2155 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_create_conversation_sync.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_create_conversation_sync.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-contact-center-insights -# [START contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_CreateConversation_sync] +# [START contactcenterinsights_v1_generated_ContactCenterInsights_CreateConversation_sync] from google.cloud import contact_center_insights_v1 @@ -42,4 +42,4 @@ def sample_create_conversation(): # Handle the response print(response) -# [END contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_CreateConversation_sync] +# [END contactcenterinsights_v1_generated_ContactCenterInsights_CreateConversation_sync] diff --git a/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_create_issue_model_async.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_create_issue_model_async.py similarity index 86% rename from contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_create_issue_model_async.py rename to contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_create_issue_model_async.py index 47058b965ae3..b9a4eba347e0 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_create_issue_model_async.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_create_issue_model_async.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-contact-center-insights -# [START contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_CreateIssueModel_async] +# [START contactcenterinsights_v1_generated_ContactCenterInsights_CreateIssueModel_async] from google.cloud import contact_center_insights_v1 @@ -46,4 +46,4 @@ async def sample_create_issue_model(): # Handle the response print(response) -# [END contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_CreateIssueModel_async] +# [END contactcenterinsights_v1_generated_ContactCenterInsights_CreateIssueModel_async] diff --git a/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_create_issue_model_sync.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_create_issue_model_sync.py similarity index 86% rename from contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_create_issue_model_sync.py rename to contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_create_issue_model_sync.py index cec0ead5617d..8960e3dfa838 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_create_issue_model_sync.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_create_issue_model_sync.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-contact-center-insights -# [START contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_CreateIssueModel_sync] +# [START contactcenterinsights_v1_generated_ContactCenterInsights_CreateIssueModel_sync] from google.cloud import contact_center_insights_v1 @@ -46,4 +46,4 @@ def sample_create_issue_model(): # Handle the response print(response) -# [END contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_CreateIssueModel_sync] +# [END contactcenterinsights_v1_generated_ContactCenterInsights_CreateIssueModel_sync] diff --git a/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_create_phrase_matcher_async.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_create_phrase_matcher_async.py similarity index 87% rename from contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_create_phrase_matcher_async.py rename to contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_create_phrase_matcher_async.py index 6771ad3c82dc..8aa25c1ab00c 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_create_phrase_matcher_async.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_create_phrase_matcher_async.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-contact-center-insights -# [START contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_CreatePhraseMatcher_async] +# [START contactcenterinsights_v1_generated_ContactCenterInsights_CreatePhraseMatcher_async] from google.cloud import contact_center_insights_v1 @@ -46,4 +46,4 @@ async def sample_create_phrase_matcher(): # Handle the response print(response) -# [END contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_CreatePhraseMatcher_async] +# [END contactcenterinsights_v1_generated_ContactCenterInsights_CreatePhraseMatcher_async] diff --git a/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_create_phrase_matcher_sync.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_create_phrase_matcher_sync.py similarity index 87% rename from contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_create_phrase_matcher_sync.py rename to contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_create_phrase_matcher_sync.py index aa4dc20047b8..dba7bc800017 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_create_phrase_matcher_sync.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_create_phrase_matcher_sync.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-contact-center-insights -# [START contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_CreatePhraseMatcher_sync] +# [START contactcenterinsights_v1_generated_ContactCenterInsights_CreatePhraseMatcher_sync] from google.cloud import contact_center_insights_v1 @@ -46,4 +46,4 @@ def sample_create_phrase_matcher(): # Handle the response print(response) -# [END contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_CreatePhraseMatcher_sync] +# [END contactcenterinsights_v1_generated_ContactCenterInsights_CreatePhraseMatcher_sync] diff --git a/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_create_view_async.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_create_view_async.py similarity index 86% rename from contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_create_view_async.py rename to contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_create_view_async.py index 5ea2cd367467..b6823f32f4f8 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_create_view_async.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_create_view_async.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-contact-center-insights -# [START contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_CreateView_async] +# [START contactcenterinsights_v1_generated_ContactCenterInsights_CreateView_async] from google.cloud import contact_center_insights_v1 @@ -42,4 +42,4 @@ async def sample_create_view(): # Handle the response print(response) -# [END contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_CreateView_async] +# [END contactcenterinsights_v1_generated_ContactCenterInsights_CreateView_async] diff --git a/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_create_view_sync.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_create_view_sync.py similarity index 86% rename from contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_create_view_sync.py rename to contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_create_view_sync.py index b32de59b0787..282f29297655 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_create_view_sync.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_create_view_sync.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-contact-center-insights -# [START contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_CreateView_sync] +# [START contactcenterinsights_v1_generated_ContactCenterInsights_CreateView_sync] from google.cloud import contact_center_insights_v1 @@ -42,4 +42,4 @@ def sample_create_view(): # Handle the response print(response) -# [END contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_CreateView_sync] +# [END contactcenterinsights_v1_generated_ContactCenterInsights_CreateView_sync] diff --git a/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_delete_analysis_async.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_analysis_async.py similarity index 85% rename from contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_delete_analysis_async.py rename to contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_analysis_async.py index 0005432c3793..32fbee928d1a 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_delete_analysis_async.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_analysis_async.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-contact-center-insights -# [START contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_DeleteAnalysis_async] +# [START contactcenterinsights_v1_generated_ContactCenterInsights_DeleteAnalysis_async] from google.cloud import contact_center_insights_v1 @@ -40,4 +40,4 @@ async def sample_delete_analysis(): await client.delete_analysis(request=request) -# [END contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_DeleteAnalysis_async] +# [END contactcenterinsights_v1_generated_ContactCenterInsights_DeleteAnalysis_async] diff --git a/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_delete_analysis_sync.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_analysis_sync.py similarity index 85% rename from contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_delete_analysis_sync.py rename to contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_analysis_sync.py index 066d7ffe0258..b53f96fc53f0 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_delete_analysis_sync.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_analysis_sync.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-contact-center-insights -# [START contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_DeleteAnalysis_sync] +# [START contactcenterinsights_v1_generated_ContactCenterInsights_DeleteAnalysis_sync] from google.cloud import contact_center_insights_v1 @@ -40,4 +40,4 @@ def sample_delete_analysis(): client.delete_analysis(request=request) -# [END contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_DeleteAnalysis_sync] +# [END contactcenterinsights_v1_generated_ContactCenterInsights_DeleteAnalysis_sync] diff --git a/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_delete_conversation_async.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_conversation_async.py similarity index 85% rename from contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_delete_conversation_async.py rename to contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_conversation_async.py index 30d6a1f02462..696dbd76210a 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_delete_conversation_async.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_conversation_async.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-contact-center-insights -# [START contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_DeleteConversation_async] +# [START contactcenterinsights_v1_generated_ContactCenterInsights_DeleteConversation_async] from google.cloud import contact_center_insights_v1 @@ -40,4 +40,4 @@ async def sample_delete_conversation(): await client.delete_conversation(request=request) -# [END contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_DeleteConversation_async] +# [END contactcenterinsights_v1_generated_ContactCenterInsights_DeleteConversation_async] diff --git a/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_delete_conversation_sync.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_conversation_sync.py similarity index 85% rename from contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_delete_conversation_sync.py rename to contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_conversation_sync.py index 07cf0fdcdc84..3e8d58598552 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_delete_conversation_sync.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_conversation_sync.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-contact-center-insights -# [START contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_DeleteConversation_sync] +# [START contactcenterinsights_v1_generated_ContactCenterInsights_DeleteConversation_sync] from google.cloud import contact_center_insights_v1 @@ -40,4 +40,4 @@ def sample_delete_conversation(): client.delete_conversation(request=request) -# [END contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_DeleteConversation_sync] +# [END contactcenterinsights_v1_generated_ContactCenterInsights_DeleteConversation_sync] diff --git a/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_delete_issue_model_async.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_issue_model_async.py similarity index 86% rename from contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_delete_issue_model_async.py rename to contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_issue_model_async.py index 2d45e087fa75..dbead2dc5709 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_delete_issue_model_async.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_issue_model_async.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-contact-center-insights -# [START contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_DeleteIssueModel_async] +# [START contactcenterinsights_v1_generated_ContactCenterInsights_DeleteIssueModel_async] from google.cloud import contact_center_insights_v1 @@ -46,4 +46,4 @@ async def sample_delete_issue_model(): # Handle the response print(response) -# [END contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_DeleteIssueModel_async] +# [END contactcenterinsights_v1_generated_ContactCenterInsights_DeleteIssueModel_async] diff --git a/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_delete_issue_model_sync.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_issue_model_sync.py similarity index 86% rename from contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_delete_issue_model_sync.py rename to contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_issue_model_sync.py index ec833f3f4227..f80be48cb5a4 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_delete_issue_model_sync.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_issue_model_sync.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-contact-center-insights -# [START contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_DeleteIssueModel_sync] +# [START contactcenterinsights_v1_generated_ContactCenterInsights_DeleteIssueModel_sync] from google.cloud import contact_center_insights_v1 @@ -46,4 +46,4 @@ def sample_delete_issue_model(): # Handle the response print(response) -# [END contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_DeleteIssueModel_sync] +# [END contactcenterinsights_v1_generated_ContactCenterInsights_DeleteIssueModel_sync] diff --git a/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_delete_phrase_matcher_async.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_phrase_matcher_async.py similarity index 85% rename from contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_delete_phrase_matcher_async.py rename to contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_phrase_matcher_async.py index 4fdd6d971839..43b98649e0f9 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_delete_phrase_matcher_async.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_phrase_matcher_async.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-contact-center-insights -# [START contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_DeletePhraseMatcher_async] +# [START contactcenterinsights_v1_generated_ContactCenterInsights_DeletePhraseMatcher_async] from google.cloud import contact_center_insights_v1 @@ -40,4 +40,4 @@ async def sample_delete_phrase_matcher(): await client.delete_phrase_matcher(request=request) -# [END contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_DeletePhraseMatcher_async] +# [END contactcenterinsights_v1_generated_ContactCenterInsights_DeletePhraseMatcher_async] diff --git a/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_delete_phrase_matcher_sync.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_phrase_matcher_sync.py similarity index 85% rename from contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_delete_phrase_matcher_sync.py rename to contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_phrase_matcher_sync.py index 8f690154dc57..d53275e8d97b 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_delete_phrase_matcher_sync.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_phrase_matcher_sync.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-contact-center-insights -# [START contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_DeletePhraseMatcher_sync] +# [START contactcenterinsights_v1_generated_ContactCenterInsights_DeletePhraseMatcher_sync] from google.cloud import contact_center_insights_v1 @@ -40,4 +40,4 @@ def sample_delete_phrase_matcher(): client.delete_phrase_matcher(request=request) -# [END contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_DeletePhraseMatcher_sync] +# [END contactcenterinsights_v1_generated_ContactCenterInsights_DeletePhraseMatcher_sync] diff --git a/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_delete_view_async.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_view_async.py similarity index 86% rename from contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_delete_view_async.py rename to contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_view_async.py index c07c14c9ac67..d4626aa6653f 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_delete_view_async.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_view_async.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-contact-center-insights -# [START contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_DeleteView_async] +# [START contactcenterinsights_v1_generated_ContactCenterInsights_DeleteView_async] from google.cloud import contact_center_insights_v1 @@ -40,4 +40,4 @@ async def sample_delete_view(): await client.delete_view(request=request) -# [END contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_DeleteView_async] +# [END contactcenterinsights_v1_generated_ContactCenterInsights_DeleteView_async] diff --git a/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_delete_view_sync.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_view_sync.py similarity index 86% rename from contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_delete_view_sync.py rename to contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_view_sync.py index 09db8a99fa94..451de0e30766 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_delete_view_sync.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_view_sync.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-contact-center-insights -# [START contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_DeleteView_sync] +# [START contactcenterinsights_v1_generated_ContactCenterInsights_DeleteView_sync] from google.cloud import contact_center_insights_v1 @@ -40,4 +40,4 @@ def sample_delete_view(): client.delete_view(request=request) -# [END contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_DeleteView_sync] +# [END contactcenterinsights_v1_generated_ContactCenterInsights_DeleteView_sync] diff --git a/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_deploy_issue_model_async.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_deploy_issue_model_async.py similarity index 86% rename from contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_deploy_issue_model_async.py rename to contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_deploy_issue_model_async.py index b9f28473d46d..f0586b996070 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_deploy_issue_model_async.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_deploy_issue_model_async.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-contact-center-insights -# [START contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_DeployIssueModel_async] +# [START contactcenterinsights_v1_generated_ContactCenterInsights_DeployIssueModel_async] from google.cloud import contact_center_insights_v1 @@ -46,4 +46,4 @@ async def sample_deploy_issue_model(): # Handle the response print(response) -# [END contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_DeployIssueModel_async] +# [END contactcenterinsights_v1_generated_ContactCenterInsights_DeployIssueModel_async] diff --git a/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_deploy_issue_model_sync.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_deploy_issue_model_sync.py similarity index 86% rename from contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_deploy_issue_model_sync.py rename to contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_deploy_issue_model_sync.py index 099df198f54d..44ebce610863 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_deploy_issue_model_sync.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_deploy_issue_model_sync.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-contact-center-insights -# [START contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_DeployIssueModel_sync] +# [START contactcenterinsights_v1_generated_ContactCenterInsights_DeployIssueModel_sync] from google.cloud import contact_center_insights_v1 @@ -46,4 +46,4 @@ def sample_deploy_issue_model(): # Handle the response print(response) -# [END contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_DeployIssueModel_sync] +# [END contactcenterinsights_v1_generated_ContactCenterInsights_DeployIssueModel_sync] diff --git a/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_export_insights_data_async.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_export_insights_data_async.py similarity index 88% rename from contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_export_insights_data_async.py rename to contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_export_insights_data_async.py index 82901d2d9002..f5dcd9c8c46c 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_export_insights_data_async.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_export_insights_data_async.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-contact-center-insights -# [START contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_ExportInsightsData_async] +# [START contactcenterinsights_v1_generated_ContactCenterInsights_ExportInsightsData_async] from google.cloud import contact_center_insights_v1 @@ -50,4 +50,4 @@ async def sample_export_insights_data(): # Handle the response print(response) -# [END contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_ExportInsightsData_async] +# [END contactcenterinsights_v1_generated_ContactCenterInsights_ExportInsightsData_async] diff --git a/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_export_insights_data_sync.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_export_insights_data_sync.py similarity index 88% rename from contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_export_insights_data_sync.py rename to contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_export_insights_data_sync.py index 92d062127dbe..5c67eb788a9c 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_export_insights_data_sync.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_export_insights_data_sync.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-contact-center-insights -# [START contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_ExportInsightsData_sync] +# [START contactcenterinsights_v1_generated_ContactCenterInsights_ExportInsightsData_sync] from google.cloud import contact_center_insights_v1 @@ -50,4 +50,4 @@ def sample_export_insights_data(): # Handle the response print(response) -# [END contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_ExportInsightsData_sync] +# [END contactcenterinsights_v1_generated_ContactCenterInsights_ExportInsightsData_sync] diff --git a/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_get_analysis_async.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_analysis_async.py similarity index 86% rename from contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_get_analysis_async.py rename to contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_analysis_async.py index b39226323087..5a3e6d6605df 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_get_analysis_async.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_analysis_async.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-contact-center-insights -# [START contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_GetAnalysis_async] +# [START contactcenterinsights_v1_generated_ContactCenterInsights_GetAnalysis_async] from google.cloud import contact_center_insights_v1 @@ -42,4 +42,4 @@ async def sample_get_analysis(): # Handle the response print(response) -# [END contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_GetAnalysis_async] +# [END contactcenterinsights_v1_generated_ContactCenterInsights_GetAnalysis_async] diff --git a/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_get_analysis_sync.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_analysis_sync.py similarity index 86% rename from contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_get_analysis_sync.py rename to contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_analysis_sync.py index b55cb1a9b2b4..bccdbf02fb33 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_get_analysis_sync.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_analysis_sync.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-contact-center-insights -# [START contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_GetAnalysis_sync] +# [START contactcenterinsights_v1_generated_ContactCenterInsights_GetAnalysis_sync] from google.cloud import contact_center_insights_v1 @@ -42,4 +42,4 @@ def sample_get_analysis(): # Handle the response print(response) -# [END contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_GetAnalysis_sync] +# [END contactcenterinsights_v1_generated_ContactCenterInsights_GetAnalysis_sync] diff --git a/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_get_conversation_async.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_conversation_async.py similarity index 86% rename from contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_get_conversation_async.py rename to contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_conversation_async.py index 65ea7831e645..96abd6916c49 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_get_conversation_async.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_conversation_async.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-contact-center-insights -# [START contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_GetConversation_async] +# [START contactcenterinsights_v1_generated_ContactCenterInsights_GetConversation_async] from google.cloud import contact_center_insights_v1 @@ -42,4 +42,4 @@ async def sample_get_conversation(): # Handle the response print(response) -# [END contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_GetConversation_async] +# [END contactcenterinsights_v1_generated_ContactCenterInsights_GetConversation_async] diff --git a/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_get_conversation_sync.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_conversation_sync.py similarity index 86% rename from contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_get_conversation_sync.py rename to contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_conversation_sync.py index 2434a374f1b1..46a7ed35ff58 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_get_conversation_sync.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_conversation_sync.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-contact-center-insights -# [START contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_GetConversation_sync] +# [START contactcenterinsights_v1_generated_ContactCenterInsights_GetConversation_sync] from google.cloud import contact_center_insights_v1 @@ -42,4 +42,4 @@ def sample_get_conversation(): # Handle the response print(response) -# [END contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_GetConversation_sync] +# [END contactcenterinsights_v1_generated_ContactCenterInsights_GetConversation_sync] diff --git a/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_get_issue_async.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_issue_async.py similarity index 86% rename from contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_get_issue_async.py rename to contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_issue_async.py index 8b23aa08a1b4..2478cd3f8470 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_get_issue_async.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_issue_async.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-contact-center-insights -# [START contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_GetIssue_async] +# [START contactcenterinsights_v1_generated_ContactCenterInsights_GetIssue_async] from google.cloud import contact_center_insights_v1 @@ -42,4 +42,4 @@ async def sample_get_issue(): # Handle the response print(response) -# [END contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_GetIssue_async] +# [END contactcenterinsights_v1_generated_ContactCenterInsights_GetIssue_async] diff --git a/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_get_issue_model_async.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_issue_model_async.py similarity index 86% rename from contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_get_issue_model_async.py rename to contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_issue_model_async.py index 75d2f2491bc9..68e002228a85 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_get_issue_model_async.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_issue_model_async.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-contact-center-insights -# [START contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_GetIssueModel_async] +# [START contactcenterinsights_v1_generated_ContactCenterInsights_GetIssueModel_async] from google.cloud import contact_center_insights_v1 @@ -42,4 +42,4 @@ async def sample_get_issue_model(): # Handle the response print(response) -# [END contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_GetIssueModel_async] +# [END contactcenterinsights_v1_generated_ContactCenterInsights_GetIssueModel_async] diff --git a/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_get_issue_model_sync.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_issue_model_sync.py similarity index 86% rename from contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_get_issue_model_sync.py rename to contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_issue_model_sync.py index 21750490cfac..3b43e5667c84 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_get_issue_model_sync.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_issue_model_sync.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-contact-center-insights -# [START contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_GetIssueModel_sync] +# [START contactcenterinsights_v1_generated_ContactCenterInsights_GetIssueModel_sync] from google.cloud import contact_center_insights_v1 @@ -42,4 +42,4 @@ def sample_get_issue_model(): # Handle the response print(response) -# [END contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_GetIssueModel_sync] +# [END contactcenterinsights_v1_generated_ContactCenterInsights_GetIssueModel_sync] diff --git a/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_get_issue_sync.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_issue_sync.py similarity index 86% rename from contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_get_issue_sync.py rename to contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_issue_sync.py index b088213b20ad..ac5525c6ce0c 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_get_issue_sync.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_issue_sync.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-contact-center-insights -# [START contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_GetIssue_sync] +# [START contactcenterinsights_v1_generated_ContactCenterInsights_GetIssue_sync] from google.cloud import contact_center_insights_v1 @@ -42,4 +42,4 @@ def sample_get_issue(): # Handle the response print(response) -# [END contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_GetIssue_sync] +# [END contactcenterinsights_v1_generated_ContactCenterInsights_GetIssue_sync] diff --git a/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_get_phrase_matcher_async.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_phrase_matcher_async.py similarity index 86% rename from contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_get_phrase_matcher_async.py rename to contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_phrase_matcher_async.py index a038c078bc33..0be640e78df4 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_get_phrase_matcher_async.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_phrase_matcher_async.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-contact-center-insights -# [START contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_GetPhraseMatcher_async] +# [START contactcenterinsights_v1_generated_ContactCenterInsights_GetPhraseMatcher_async] from google.cloud import contact_center_insights_v1 @@ -42,4 +42,4 @@ async def sample_get_phrase_matcher(): # Handle the response print(response) -# [END contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_GetPhraseMatcher_async] +# [END contactcenterinsights_v1_generated_ContactCenterInsights_GetPhraseMatcher_async] diff --git a/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_get_phrase_matcher_sync.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_phrase_matcher_sync.py similarity index 86% rename from contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_get_phrase_matcher_sync.py rename to contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_phrase_matcher_sync.py index 6fa10ddff13f..cb260e354259 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_get_phrase_matcher_sync.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_phrase_matcher_sync.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-contact-center-insights -# [START contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_GetPhraseMatcher_sync] +# [START contactcenterinsights_v1_generated_ContactCenterInsights_GetPhraseMatcher_sync] from google.cloud import contact_center_insights_v1 @@ -42,4 +42,4 @@ def sample_get_phrase_matcher(): # Handle the response print(response) -# [END contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_GetPhraseMatcher_sync] +# [END contactcenterinsights_v1_generated_ContactCenterInsights_GetPhraseMatcher_sync] diff --git a/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_get_settings_async.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_settings_async.py similarity index 86% rename from contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_get_settings_async.py rename to contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_settings_async.py index 4798130773b3..db86ea55add2 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_get_settings_async.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_settings_async.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-contact-center-insights -# [START contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_GetSettings_async] +# [START contactcenterinsights_v1_generated_ContactCenterInsights_GetSettings_async] from google.cloud import contact_center_insights_v1 @@ -42,4 +42,4 @@ async def sample_get_settings(): # Handle the response print(response) -# [END contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_GetSettings_async] +# [END contactcenterinsights_v1_generated_ContactCenterInsights_GetSettings_async] diff --git a/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_get_settings_sync.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_settings_sync.py similarity index 86% rename from contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_get_settings_sync.py rename to contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_settings_sync.py index 94f3b1b90ee1..5af80ac8e0b0 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_get_settings_sync.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_settings_sync.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-contact-center-insights -# [START contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_GetSettings_sync] +# [START contactcenterinsights_v1_generated_ContactCenterInsights_GetSettings_sync] from google.cloud import contact_center_insights_v1 @@ -42,4 +42,4 @@ def sample_get_settings(): # Handle the response print(response) -# [END contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_GetSettings_sync] +# [END contactcenterinsights_v1_generated_ContactCenterInsights_GetSettings_sync] diff --git a/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_get_view_async.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_view_async.py similarity index 86% rename from contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_get_view_async.py rename to contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_view_async.py index 23bdc5f38e46..b37fac33d277 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_get_view_async.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_view_async.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-contact-center-insights -# [START contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_GetView_async] +# [START contactcenterinsights_v1_generated_ContactCenterInsights_GetView_async] from google.cloud import contact_center_insights_v1 @@ -42,4 +42,4 @@ async def sample_get_view(): # Handle the response print(response) -# [END contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_GetView_async] +# [END contactcenterinsights_v1_generated_ContactCenterInsights_GetView_async] diff --git a/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_get_view_sync.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_view_sync.py similarity index 86% rename from contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_get_view_sync.py rename to contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_view_sync.py index cd7157a08aff..84c5bec3a15a 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_get_view_sync.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_view_sync.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-contact-center-insights -# [START contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_GetView_sync] +# [START contactcenterinsights_v1_generated_ContactCenterInsights_GetView_sync] from google.cloud import contact_center_insights_v1 @@ -42,4 +42,4 @@ def sample_get_view(): # Handle the response print(response) -# [END contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_GetView_sync] +# [END contactcenterinsights_v1_generated_ContactCenterInsights_GetView_sync] diff --git a/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_list_analyses_async.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_analyses_async.py similarity index 86% rename from contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_list_analyses_async.py rename to contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_analyses_async.py index 48d16f146b4b..41e04d38eaf2 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_list_analyses_async.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_analyses_async.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-contact-center-insights -# [START contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_ListAnalyses_async] +# [START contactcenterinsights_v1_generated_ContactCenterInsights_ListAnalyses_async] from google.cloud import contact_center_insights_v1 @@ -43,4 +43,4 @@ async def sample_list_analyses(): async for response in page_result: print(response) -# [END contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_ListAnalyses_async] +# [END contactcenterinsights_v1_generated_ContactCenterInsights_ListAnalyses_async] diff --git a/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_list_analyses_sync.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_analyses_sync.py similarity index 86% rename from contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_list_analyses_sync.py rename to contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_analyses_sync.py index 3d4d237285f7..efb9a1f88a8b 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_list_analyses_sync.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_analyses_sync.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-contact-center-insights -# [START contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_ListAnalyses_sync] +# [START contactcenterinsights_v1_generated_ContactCenterInsights_ListAnalyses_sync] from google.cloud import contact_center_insights_v1 @@ -43,4 +43,4 @@ def sample_list_analyses(): for response in page_result: print(response) -# [END contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_ListAnalyses_sync] +# [END contactcenterinsights_v1_generated_ContactCenterInsights_ListAnalyses_sync] diff --git a/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_list_conversations_async.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_conversations_async.py similarity index 86% rename from contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_list_conversations_async.py rename to contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_conversations_async.py index 31a7ea93531f..6e753c355d12 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_list_conversations_async.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_conversations_async.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-contact-center-insights -# [START contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_ListConversations_async] +# [START contactcenterinsights_v1_generated_ContactCenterInsights_ListConversations_async] from google.cloud import contact_center_insights_v1 @@ -43,4 +43,4 @@ async def sample_list_conversations(): async for response in page_result: print(response) -# [END contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_ListConversations_async] +# [END contactcenterinsights_v1_generated_ContactCenterInsights_ListConversations_async] diff --git a/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_list_conversations_sync.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_conversations_sync.py similarity index 86% rename from contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_list_conversations_sync.py rename to contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_conversations_sync.py index a33ee108266c..3f4ee817be2f 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_list_conversations_sync.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_conversations_sync.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-contact-center-insights -# [START contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_ListConversations_sync] +# [START contactcenterinsights_v1_generated_ContactCenterInsights_ListConversations_sync] from google.cloud import contact_center_insights_v1 @@ -43,4 +43,4 @@ def sample_list_conversations(): for response in page_result: print(response) -# [END contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_ListConversations_sync] +# [END contactcenterinsights_v1_generated_ContactCenterInsights_ListConversations_sync] diff --git a/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_list_issue_models_async.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_issue_models_async.py similarity index 86% rename from contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_list_issue_models_async.py rename to contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_issue_models_async.py index 21f82fe9b5ea..5c1bf6bb9361 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_list_issue_models_async.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_issue_models_async.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-contact-center-insights -# [START contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_ListIssueModels_async] +# [START contactcenterinsights_v1_generated_ContactCenterInsights_ListIssueModels_async] from google.cloud import contact_center_insights_v1 @@ -42,4 +42,4 @@ async def sample_list_issue_models(): # Handle the response print(response) -# [END contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_ListIssueModels_async] +# [END contactcenterinsights_v1_generated_ContactCenterInsights_ListIssueModels_async] diff --git a/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_list_issue_models_sync.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_issue_models_sync.py similarity index 86% rename from contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_list_issue_models_sync.py rename to contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_issue_models_sync.py index 0c498ecab241..f37d94ce12e2 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_list_issue_models_sync.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_issue_models_sync.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-contact-center-insights -# [START contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_ListIssueModels_sync] +# [START contactcenterinsights_v1_generated_ContactCenterInsights_ListIssueModels_sync] from google.cloud import contact_center_insights_v1 @@ -42,4 +42,4 @@ def sample_list_issue_models(): # Handle the response print(response) -# [END contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_ListIssueModels_sync] +# [END contactcenterinsights_v1_generated_ContactCenterInsights_ListIssueModels_sync] diff --git a/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_list_issues_async.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_issues_async.py similarity index 86% rename from contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_list_issues_async.py rename to contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_issues_async.py index 61331d53cb28..093a905dec3d 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_list_issues_async.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_issues_async.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-contact-center-insights -# [START contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_ListIssues_async] +# [START contactcenterinsights_v1_generated_ContactCenterInsights_ListIssues_async] from google.cloud import contact_center_insights_v1 @@ -42,4 +42,4 @@ async def sample_list_issues(): # Handle the response print(response) -# [END contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_ListIssues_async] +# [END contactcenterinsights_v1_generated_ContactCenterInsights_ListIssues_async] diff --git a/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_list_issues_sync.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_issues_sync.py similarity index 86% rename from contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_list_issues_sync.py rename to contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_issues_sync.py index 06661d936fa4..df2c2f247817 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_list_issues_sync.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_issues_sync.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-contact-center-insights -# [START contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_ListIssues_sync] +# [START contactcenterinsights_v1_generated_ContactCenterInsights_ListIssues_sync] from google.cloud import contact_center_insights_v1 @@ -42,4 +42,4 @@ def sample_list_issues(): # Handle the response print(response) -# [END contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_ListIssues_sync] +# [END contactcenterinsights_v1_generated_ContactCenterInsights_ListIssues_sync] diff --git a/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_list_phrase_matchers_async.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_phrase_matchers_async.py similarity index 86% rename from contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_list_phrase_matchers_async.py rename to contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_phrase_matchers_async.py index a2e34d4a42f5..7ef8dfbaf1a1 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_list_phrase_matchers_async.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_phrase_matchers_async.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-contact-center-insights -# [START contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_ListPhraseMatchers_async] +# [START contactcenterinsights_v1_generated_ContactCenterInsights_ListPhraseMatchers_async] from google.cloud import contact_center_insights_v1 @@ -43,4 +43,4 @@ async def sample_list_phrase_matchers(): async for response in page_result: print(response) -# [END contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_ListPhraseMatchers_async] +# [END contactcenterinsights_v1_generated_ContactCenterInsights_ListPhraseMatchers_async] diff --git a/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_list_phrase_matchers_sync.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_phrase_matchers_sync.py similarity index 86% rename from contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_list_phrase_matchers_sync.py rename to contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_phrase_matchers_sync.py index 7ac739ca9c0c..e288f23bdb79 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_list_phrase_matchers_sync.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_phrase_matchers_sync.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-contact-center-insights -# [START contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_ListPhraseMatchers_sync] +# [START contactcenterinsights_v1_generated_ContactCenterInsights_ListPhraseMatchers_sync] from google.cloud import contact_center_insights_v1 @@ -43,4 +43,4 @@ def sample_list_phrase_matchers(): for response in page_result: print(response) -# [END contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_ListPhraseMatchers_sync] +# [END contactcenterinsights_v1_generated_ContactCenterInsights_ListPhraseMatchers_sync] diff --git a/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_list_views_async.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_views_async.py similarity index 87% rename from contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_list_views_async.py rename to contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_views_async.py index c79f0e22b04f..58152875d320 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_list_views_async.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_views_async.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-contact-center-insights -# [START contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_ListViews_async] +# [START contactcenterinsights_v1_generated_ContactCenterInsights_ListViews_async] from google.cloud import contact_center_insights_v1 @@ -43,4 +43,4 @@ async def sample_list_views(): async for response in page_result: print(response) -# [END contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_ListViews_async] +# [END contactcenterinsights_v1_generated_ContactCenterInsights_ListViews_async] diff --git a/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_list_views_sync.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_views_sync.py similarity index 87% rename from contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_list_views_sync.py rename to contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_views_sync.py index c153f2938f5a..340a143d17be 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_list_views_sync.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_views_sync.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-contact-center-insights -# [START contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_ListViews_sync] +# [START contactcenterinsights_v1_generated_ContactCenterInsights_ListViews_sync] from google.cloud import contact_center_insights_v1 @@ -43,4 +43,4 @@ def sample_list_views(): for response in page_result: print(response) -# [END contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_ListViews_sync] +# [END contactcenterinsights_v1_generated_ContactCenterInsights_ListViews_sync] diff --git a/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_undeploy_issue_model_async.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_undeploy_issue_model_async.py similarity index 86% rename from contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_undeploy_issue_model_async.py rename to contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_undeploy_issue_model_async.py index ce3f15787cdc..9ccabc7ebecf 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_undeploy_issue_model_async.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_undeploy_issue_model_async.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-contact-center-insights -# [START contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_UndeployIssueModel_async] +# [START contactcenterinsights_v1_generated_ContactCenterInsights_UndeployIssueModel_async] from google.cloud import contact_center_insights_v1 @@ -46,4 +46,4 @@ async def sample_undeploy_issue_model(): # Handle the response print(response) -# [END contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_UndeployIssueModel_async] +# [END contactcenterinsights_v1_generated_ContactCenterInsights_UndeployIssueModel_async] diff --git a/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_undeploy_issue_model_sync.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_undeploy_issue_model_sync.py similarity index 86% rename from contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_undeploy_issue_model_sync.py rename to contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_undeploy_issue_model_sync.py index 8fcd2327bf4a..17344c27e336 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_undeploy_issue_model_sync.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_undeploy_issue_model_sync.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-contact-center-insights -# [START contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_UndeployIssueModel_sync] +# [START contactcenterinsights_v1_generated_ContactCenterInsights_UndeployIssueModel_sync] from google.cloud import contact_center_insights_v1 @@ -46,4 +46,4 @@ def sample_undeploy_issue_model(): # Handle the response print(response) -# [END contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_UndeployIssueModel_sync] +# [END contactcenterinsights_v1_generated_ContactCenterInsights_UndeployIssueModel_sync] diff --git a/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_update_conversation_async.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_conversation_async.py similarity index 85% rename from contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_update_conversation_async.py rename to contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_conversation_async.py index 48543db812d8..29fd2ffad4c9 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_update_conversation_async.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_conversation_async.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-contact-center-insights -# [START contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_UpdateConversation_async] +# [START contactcenterinsights_v1_generated_ContactCenterInsights_UpdateConversation_async] from google.cloud import contact_center_insights_v1 @@ -41,4 +41,4 @@ async def sample_update_conversation(): # Handle the response print(response) -# [END contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_UpdateConversation_async] +# [END contactcenterinsights_v1_generated_ContactCenterInsights_UpdateConversation_async] diff --git a/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_update_conversation_sync.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_conversation_sync.py similarity index 85% rename from contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_update_conversation_sync.py rename to contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_conversation_sync.py index 0eb345f5e395..5b742bcba09f 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_update_conversation_sync.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_conversation_sync.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-contact-center-insights -# [START contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_UpdateConversation_sync] +# [START contactcenterinsights_v1_generated_ContactCenterInsights_UpdateConversation_sync] from google.cloud import contact_center_insights_v1 @@ -41,4 +41,4 @@ def sample_update_conversation(): # Handle the response print(response) -# [END contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_UpdateConversation_sync] +# [END contactcenterinsights_v1_generated_ContactCenterInsights_UpdateConversation_sync] diff --git a/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_update_issue_async.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_issue_async.py similarity index 86% rename from contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_update_issue_async.py rename to contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_issue_async.py index e8ffbbb06c76..ab7637e6f8f7 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_update_issue_async.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_issue_async.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-contact-center-insights -# [START contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_UpdateIssue_async] +# [START contactcenterinsights_v1_generated_ContactCenterInsights_UpdateIssue_async] from google.cloud import contact_center_insights_v1 @@ -41,4 +41,4 @@ async def sample_update_issue(): # Handle the response print(response) -# [END contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_UpdateIssue_async] +# [END contactcenterinsights_v1_generated_ContactCenterInsights_UpdateIssue_async] diff --git a/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_update_issue_model_async.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_issue_model_async.py similarity index 86% rename from contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_update_issue_model_async.py rename to contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_issue_model_async.py index 2dc3f8054739..d6fed3af478b 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_update_issue_model_async.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_issue_model_async.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-contact-center-insights -# [START contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_UpdateIssueModel_async] +# [START contactcenterinsights_v1_generated_ContactCenterInsights_UpdateIssueModel_async] from google.cloud import contact_center_insights_v1 @@ -41,4 +41,4 @@ async def sample_update_issue_model(): # Handle the response print(response) -# [END contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_UpdateIssueModel_async] +# [END contactcenterinsights_v1_generated_ContactCenterInsights_UpdateIssueModel_async] diff --git a/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_update_issue_model_sync.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_issue_model_sync.py similarity index 85% rename from contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_update_issue_model_sync.py rename to contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_issue_model_sync.py index bd78acb19cfc..b8dbf50c7dea 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_update_issue_model_sync.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_issue_model_sync.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-contact-center-insights -# [START contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_UpdateIssueModel_sync] +# [START contactcenterinsights_v1_generated_ContactCenterInsights_UpdateIssueModel_sync] from google.cloud import contact_center_insights_v1 @@ -41,4 +41,4 @@ def sample_update_issue_model(): # Handle the response print(response) -# [END contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_UpdateIssueModel_sync] +# [END contactcenterinsights_v1_generated_ContactCenterInsights_UpdateIssueModel_sync] diff --git a/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_update_issue_sync.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_issue_sync.py similarity index 86% rename from contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_update_issue_sync.py rename to contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_issue_sync.py index c63f41b1ccd1..f03a8bcd5490 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_update_issue_sync.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_issue_sync.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-contact-center-insights -# [START contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_UpdateIssue_sync] +# [START contactcenterinsights_v1_generated_ContactCenterInsights_UpdateIssue_sync] from google.cloud import contact_center_insights_v1 @@ -41,4 +41,4 @@ def sample_update_issue(): # Handle the response print(response) -# [END contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_UpdateIssue_sync] +# [END contactcenterinsights_v1_generated_ContactCenterInsights_UpdateIssue_sync] diff --git a/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_update_phrase_matcher_async.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_phrase_matcher_async.py similarity index 86% rename from contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_update_phrase_matcher_async.py rename to contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_phrase_matcher_async.py index 76fe15c8a5aa..c3bda1ef26e2 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_update_phrase_matcher_async.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_phrase_matcher_async.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-contact-center-insights -# [START contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_UpdatePhraseMatcher_async] +# [START contactcenterinsights_v1_generated_ContactCenterInsights_UpdatePhraseMatcher_async] from google.cloud import contact_center_insights_v1 @@ -45,4 +45,4 @@ async def sample_update_phrase_matcher(): # Handle the response print(response) -# [END contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_UpdatePhraseMatcher_async] +# [END contactcenterinsights_v1_generated_ContactCenterInsights_UpdatePhraseMatcher_async] diff --git a/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_update_phrase_matcher_sync.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_phrase_matcher_sync.py similarity index 86% rename from contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_update_phrase_matcher_sync.py rename to contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_phrase_matcher_sync.py index 4c7b27edda46..da26ac4bdc90 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_update_phrase_matcher_sync.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_phrase_matcher_sync.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-contact-center-insights -# [START contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_UpdatePhraseMatcher_sync] +# [START contactcenterinsights_v1_generated_ContactCenterInsights_UpdatePhraseMatcher_sync] from google.cloud import contact_center_insights_v1 @@ -45,4 +45,4 @@ def sample_update_phrase_matcher(): # Handle the response print(response) -# [END contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_UpdatePhraseMatcher_sync] +# [END contactcenterinsights_v1_generated_ContactCenterInsights_UpdatePhraseMatcher_sync] diff --git a/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_update_settings_async.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_settings_async.py similarity index 86% rename from contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_update_settings_async.py rename to contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_settings_async.py index 70d0cc5e7df5..2a805beae74a 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_update_settings_async.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_settings_async.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-contact-center-insights -# [START contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_UpdateSettings_async] +# [START contactcenterinsights_v1_generated_ContactCenterInsights_UpdateSettings_async] from google.cloud import contact_center_insights_v1 @@ -41,4 +41,4 @@ async def sample_update_settings(): # Handle the response print(response) -# [END contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_UpdateSettings_async] +# [END contactcenterinsights_v1_generated_ContactCenterInsights_UpdateSettings_async] diff --git a/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_update_settings_sync.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_settings_sync.py similarity index 86% rename from contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_update_settings_sync.py rename to contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_settings_sync.py index bb51d0652b2d..41d6172a0d62 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_update_settings_sync.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_settings_sync.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-contact-center-insights -# [START contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_UpdateSettings_sync] +# [START contactcenterinsights_v1_generated_ContactCenterInsights_UpdateSettings_sync] from google.cloud import contact_center_insights_v1 @@ -41,4 +41,4 @@ def sample_update_settings(): # Handle the response print(response) -# [END contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_UpdateSettings_sync] +# [END contactcenterinsights_v1_generated_ContactCenterInsights_UpdateSettings_sync] diff --git a/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_update_view_async.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_view_async.py similarity index 86% rename from contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_update_view_async.py rename to contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_view_async.py index b996f6d275e2..393302bf08c7 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_update_view_async.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_view_async.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-contact-center-insights -# [START contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_UpdateView_async] +# [START contactcenterinsights_v1_generated_ContactCenterInsights_UpdateView_async] from google.cloud import contact_center_insights_v1 @@ -41,4 +41,4 @@ async def sample_update_view(): # Handle the response print(response) -# [END contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_UpdateView_async] +# [END contactcenterinsights_v1_generated_ContactCenterInsights_UpdateView_async] diff --git a/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_update_view_sync.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_view_sync.py similarity index 86% rename from contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_update_view_sync.py rename to contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_view_sync.py index 423c220a02c9..fec6d2ac76f0 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_generated_contact_center_insights_v1_contact_center_insights_update_view_sync.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_view_sync.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-contact-center-insights -# [START contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_UpdateView_sync] +# [START contactcenterinsights_v1_generated_ContactCenterInsights_UpdateView_sync] from google.cloud import contact_center_insights_v1 @@ -41,4 +41,4 @@ def sample_update_view(): # Handle the response print(response) -# [END contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_UpdateView_sync] +# [END contactcenterinsights_v1_generated_ContactCenterInsights_UpdateView_sync] diff --git a/contact-center-insights/generated_samples/snippet_metadata_contact center insights_v1.json b/contact-center-insights/generated_samples/snippet_metadata_contact center insights_v1.json index 1207f7bc7a23..83652cce8b23 100644 --- a/contact-center-insights/generated_samples/snippet_metadata_contact center insights_v1.json +++ b/contact-center-insights/generated_samples/snippet_metadata_contact center insights_v1.json @@ -10,8 +10,8 @@ "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", + "file": "contactcenterinsights_v1_generated_contact_center_insights_calculate_issue_model_stats_async.py", + "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_CalculateIssueModelStats_async", "segments": [ { "end": 44, @@ -54,8 +54,8 @@ "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", + "file": "contactcenterinsights_v1_generated_contact_center_insights_calculate_issue_model_stats_sync.py", + "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_CalculateIssueModelStats_sync", "segments": [ { "end": 44, @@ -99,8 +99,8 @@ "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", + "file": "contactcenterinsights_v1_generated_contact_center_insights_calculate_stats_async.py", + "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_CalculateStats_async", "segments": [ { "end": 44, @@ -143,8 +143,8 @@ "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", + "file": "contactcenterinsights_v1_generated_contact_center_insights_calculate_stats_sync.py", + "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_CalculateStats_sync", "segments": [ { "end": 44, @@ -188,8 +188,8 @@ "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", + "file": "contactcenterinsights_v1_generated_contact_center_insights_create_analysis_async.py", + "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_CreateAnalysis_async", "segments": [ { "end": 48, @@ -232,8 +232,8 @@ "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", + "file": "contactcenterinsights_v1_generated_contact_center_insights_create_analysis_sync.py", + "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_CreateAnalysis_sync", "segments": [ { "end": 48, @@ -277,8 +277,8 @@ "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", + "file": "contactcenterinsights_v1_generated_contact_center_insights_create_conversation_async.py", + "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_CreateConversation_async", "segments": [ { "end": 44, @@ -321,8 +321,8 @@ "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", + "file": "contactcenterinsights_v1_generated_contact_center_insights_create_conversation_sync.py", + "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_CreateConversation_sync", "segments": [ { "end": 44, @@ -366,8 +366,8 @@ "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", + "file": "contactcenterinsights_v1_generated_contact_center_insights_create_issue_model_async.py", + "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_CreateIssueModel_async", "segments": [ { "end": 48, @@ -410,8 +410,8 @@ "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", + "file": "contactcenterinsights_v1_generated_contact_center_insights_create_issue_model_sync.py", + "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_CreateIssueModel_sync", "segments": [ { "end": 48, @@ -455,8 +455,8 @@ "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", + "file": "contactcenterinsights_v1_generated_contact_center_insights_create_phrase_matcher_async.py", + "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_CreatePhraseMatcher_async", "segments": [ { "end": 48, @@ -499,8 +499,8 @@ "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", + "file": "contactcenterinsights_v1_generated_contact_center_insights_create_phrase_matcher_sync.py", + "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_CreatePhraseMatcher_sync", "segments": [ { "end": 48, @@ -544,8 +544,8 @@ "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", + "file": "contactcenterinsights_v1_generated_contact_center_insights_create_view_async.py", + "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_CreateView_async", "segments": [ { "end": 44, @@ -588,8 +588,8 @@ "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", + "file": "contactcenterinsights_v1_generated_contact_center_insights_create_view_sync.py", + "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_CreateView_sync", "segments": [ { "end": 44, @@ -633,8 +633,8 @@ "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", + "file": "contactcenterinsights_v1_generated_contact_center_insights_delete_analysis_async.py", + "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_DeleteAnalysis_async", "segments": [ { "end": 42, @@ -675,8 +675,8 @@ "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", + "file": "contactcenterinsights_v1_generated_contact_center_insights_delete_analysis_sync.py", + "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_DeleteAnalysis_sync", "segments": [ { "end": 42, @@ -718,8 +718,8 @@ "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", + "file": "contactcenterinsights_v1_generated_contact_center_insights_delete_conversation_async.py", + "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_DeleteConversation_async", "segments": [ { "end": 42, @@ -760,8 +760,8 @@ "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", + "file": "contactcenterinsights_v1_generated_contact_center_insights_delete_conversation_sync.py", + "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_DeleteConversation_sync", "segments": [ { "end": 42, @@ -803,8 +803,8 @@ "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", + "file": "contactcenterinsights_v1_generated_contact_center_insights_delete_issue_model_async.py", + "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_DeleteIssueModel_async", "segments": [ { "end": 48, @@ -847,8 +847,8 @@ "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", + "file": "contactcenterinsights_v1_generated_contact_center_insights_delete_issue_model_sync.py", + "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_DeleteIssueModel_sync", "segments": [ { "end": 48, @@ -892,8 +892,8 @@ "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", + "file": "contactcenterinsights_v1_generated_contact_center_insights_delete_phrase_matcher_async.py", + "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_DeletePhraseMatcher_async", "segments": [ { "end": 42, @@ -934,8 +934,8 @@ "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", + "file": "contactcenterinsights_v1_generated_contact_center_insights_delete_phrase_matcher_sync.py", + "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_DeletePhraseMatcher_sync", "segments": [ { "end": 42, @@ -977,8 +977,8 @@ "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", + "file": "contactcenterinsights_v1_generated_contact_center_insights_delete_view_async.py", + "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_DeleteView_async", "segments": [ { "end": 42, @@ -1019,8 +1019,8 @@ "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", + "file": "contactcenterinsights_v1_generated_contact_center_insights_delete_view_sync.py", + "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_DeleteView_sync", "segments": [ { "end": 42, @@ -1062,8 +1062,8 @@ "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", + "file": "contactcenterinsights_v1_generated_contact_center_insights_deploy_issue_model_async.py", + "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_DeployIssueModel_async", "segments": [ { "end": 48, @@ -1106,8 +1106,8 @@ "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", + "file": "contactcenterinsights_v1_generated_contact_center_insights_deploy_issue_model_sync.py", + "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_DeployIssueModel_sync", "segments": [ { "end": 48, @@ -1151,8 +1151,8 @@ "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", + "file": "contactcenterinsights_v1_generated_contact_center_insights_export_insights_data_async.py", + "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_ExportInsightsData_async", "segments": [ { "end": 52, @@ -1195,8 +1195,8 @@ "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", + "file": "contactcenterinsights_v1_generated_contact_center_insights_export_insights_data_sync.py", + "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_ExportInsightsData_sync", "segments": [ { "end": 52, @@ -1240,8 +1240,8 @@ "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", + "file": "contactcenterinsights_v1_generated_contact_center_insights_get_analysis_async.py", + "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_GetAnalysis_async", "segments": [ { "end": 44, @@ -1284,8 +1284,8 @@ "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", + "file": "contactcenterinsights_v1_generated_contact_center_insights_get_analysis_sync.py", + "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_GetAnalysis_sync", "segments": [ { "end": 44, @@ -1329,8 +1329,8 @@ "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", + "file": "contactcenterinsights_v1_generated_contact_center_insights_get_conversation_async.py", + "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_GetConversation_async", "segments": [ { "end": 44, @@ -1373,8 +1373,8 @@ "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", + "file": "contactcenterinsights_v1_generated_contact_center_insights_get_conversation_sync.py", + "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_GetConversation_sync", "segments": [ { "end": 44, @@ -1418,8 +1418,8 @@ "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", + "file": "contactcenterinsights_v1_generated_contact_center_insights_get_issue_model_async.py", + "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_GetIssueModel_async", "segments": [ { "end": 44, @@ -1462,8 +1462,8 @@ "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", + "file": "contactcenterinsights_v1_generated_contact_center_insights_get_issue_model_sync.py", + "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_GetIssueModel_sync", "segments": [ { "end": 44, @@ -1507,8 +1507,8 @@ "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", + "file": "contactcenterinsights_v1_generated_contact_center_insights_get_issue_async.py", + "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_GetIssue_async", "segments": [ { "end": 44, @@ -1551,8 +1551,8 @@ "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", + "file": "contactcenterinsights_v1_generated_contact_center_insights_get_issue_sync.py", + "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_GetIssue_sync", "segments": [ { "end": 44, @@ -1596,8 +1596,8 @@ "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", + "file": "contactcenterinsights_v1_generated_contact_center_insights_get_phrase_matcher_async.py", + "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_GetPhraseMatcher_async", "segments": [ { "end": 44, @@ -1640,8 +1640,8 @@ "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", + "file": "contactcenterinsights_v1_generated_contact_center_insights_get_phrase_matcher_sync.py", + "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_GetPhraseMatcher_sync", "segments": [ { "end": 44, @@ -1685,8 +1685,8 @@ "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", + "file": "contactcenterinsights_v1_generated_contact_center_insights_get_settings_async.py", + "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_GetSettings_async", "segments": [ { "end": 44, @@ -1729,8 +1729,8 @@ "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", + "file": "contactcenterinsights_v1_generated_contact_center_insights_get_settings_sync.py", + "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_GetSettings_sync", "segments": [ { "end": 44, @@ -1774,8 +1774,8 @@ "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", + "file": "contactcenterinsights_v1_generated_contact_center_insights_get_view_async.py", + "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_GetView_async", "segments": [ { "end": 44, @@ -1818,8 +1818,8 @@ "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", + "file": "contactcenterinsights_v1_generated_contact_center_insights_get_view_sync.py", + "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_GetView_sync", "segments": [ { "end": 44, @@ -1863,8 +1863,8 @@ "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", + "file": "contactcenterinsights_v1_generated_contact_center_insights_list_analyses_async.py", + "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_ListAnalyses_async", "segments": [ { "end": 45, @@ -1907,8 +1907,8 @@ "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", + "file": "contactcenterinsights_v1_generated_contact_center_insights_list_analyses_sync.py", + "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_ListAnalyses_sync", "segments": [ { "end": 45, @@ -1952,8 +1952,8 @@ "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", + "file": "contactcenterinsights_v1_generated_contact_center_insights_list_conversations_async.py", + "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_ListConversations_async", "segments": [ { "end": 45, @@ -1996,8 +1996,8 @@ "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", + "file": "contactcenterinsights_v1_generated_contact_center_insights_list_conversations_sync.py", + "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_ListConversations_sync", "segments": [ { "end": 45, @@ -2041,8 +2041,8 @@ "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", + "file": "contactcenterinsights_v1_generated_contact_center_insights_list_issue_models_async.py", + "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_ListIssueModels_async", "segments": [ { "end": 44, @@ -2085,8 +2085,8 @@ "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", + "file": "contactcenterinsights_v1_generated_contact_center_insights_list_issue_models_sync.py", + "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_ListIssueModels_sync", "segments": [ { "end": 44, @@ -2130,8 +2130,8 @@ "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", + "file": "contactcenterinsights_v1_generated_contact_center_insights_list_issues_async.py", + "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_ListIssues_async", "segments": [ { "end": 44, @@ -2174,8 +2174,8 @@ "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", + "file": "contactcenterinsights_v1_generated_contact_center_insights_list_issues_sync.py", + "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_ListIssues_sync", "segments": [ { "end": 44, @@ -2219,8 +2219,8 @@ "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", + "file": "contactcenterinsights_v1_generated_contact_center_insights_list_phrase_matchers_async.py", + "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_ListPhraseMatchers_async", "segments": [ { "end": 45, @@ -2263,8 +2263,8 @@ "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", + "file": "contactcenterinsights_v1_generated_contact_center_insights_list_phrase_matchers_sync.py", + "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_ListPhraseMatchers_sync", "segments": [ { "end": 45, @@ -2308,8 +2308,8 @@ "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", + "file": "contactcenterinsights_v1_generated_contact_center_insights_list_views_async.py", + "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_ListViews_async", "segments": [ { "end": 45, @@ -2352,8 +2352,8 @@ "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", + "file": "contactcenterinsights_v1_generated_contact_center_insights_list_views_sync.py", + "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_ListViews_sync", "segments": [ { "end": 45, @@ -2397,8 +2397,8 @@ "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", + "file": "contactcenterinsights_v1_generated_contact_center_insights_undeploy_issue_model_async.py", + "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_UndeployIssueModel_async", "segments": [ { "end": 48, @@ -2441,8 +2441,8 @@ "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", + "file": "contactcenterinsights_v1_generated_contact_center_insights_undeploy_issue_model_sync.py", + "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_UndeployIssueModel_sync", "segments": [ { "end": 48, @@ -2486,8 +2486,8 @@ "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", + "file": "contactcenterinsights_v1_generated_contact_center_insights_update_conversation_async.py", + "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_UpdateConversation_async", "segments": [ { "end": 43, @@ -2530,8 +2530,8 @@ "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", + "file": "contactcenterinsights_v1_generated_contact_center_insights_update_conversation_sync.py", + "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_UpdateConversation_sync", "segments": [ { "end": 43, @@ -2575,8 +2575,8 @@ "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", + "file": "contactcenterinsights_v1_generated_contact_center_insights_update_issue_model_async.py", + "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_UpdateIssueModel_async", "segments": [ { "end": 43, @@ -2619,8 +2619,8 @@ "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", + "file": "contactcenterinsights_v1_generated_contact_center_insights_update_issue_model_sync.py", + "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_UpdateIssueModel_sync", "segments": [ { "end": 43, @@ -2664,8 +2664,8 @@ "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", + "file": "contactcenterinsights_v1_generated_contact_center_insights_update_issue_async.py", + "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_UpdateIssue_async", "segments": [ { "end": 43, @@ -2708,8 +2708,8 @@ "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", + "file": "contactcenterinsights_v1_generated_contact_center_insights_update_issue_sync.py", + "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_UpdateIssue_sync", "segments": [ { "end": 43, @@ -2753,8 +2753,8 @@ "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", + "file": "contactcenterinsights_v1_generated_contact_center_insights_update_phrase_matcher_async.py", + "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_UpdatePhraseMatcher_async", "segments": [ { "end": 47, @@ -2797,8 +2797,8 @@ "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", + "file": "contactcenterinsights_v1_generated_contact_center_insights_update_phrase_matcher_sync.py", + "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_UpdatePhraseMatcher_sync", "segments": [ { "end": 47, @@ -2842,8 +2842,8 @@ "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", + "file": "contactcenterinsights_v1_generated_contact_center_insights_update_settings_async.py", + "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_UpdateSettings_async", "segments": [ { "end": 43, @@ -2886,8 +2886,8 @@ "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", + "file": "contactcenterinsights_v1_generated_contact_center_insights_update_settings_sync.py", + "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_UpdateSettings_sync", "segments": [ { "end": 43, @@ -2931,8 +2931,8 @@ "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", + "file": "contactcenterinsights_v1_generated_contact_center_insights_update_view_async.py", + "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_UpdateView_async", "segments": [ { "end": 43, @@ -2975,8 +2975,8 @@ "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", + "file": "contactcenterinsights_v1_generated_contact_center_insights_update_view_sync.py", + "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_UpdateView_sync", "segments": [ { "end": 43, From 68dd471fc48d9c98dc2ee11bc2a0d79a1afa77a5 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Sat, 26 Feb 2022 05:18:20 -0500 Subject: [PATCH 045/112] chore: update copyright year to 2022 (#133) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore: update copyright year to 2022 PiperOrigin-RevId: 431037888 Source-Link: https://github.com/googleapis/googleapis/commit/b3397f5febbf21dfc69b875ddabaf76bee765058 Source-Link: https://github.com/googleapis/googleapis-gen/commit/510b54e1cdefd53173984df16645081308fe897e Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNTEwYjU0ZTFjZGVmZDUzMTczOTg0ZGYxNjY0NTA4MTMwOGZlODk3ZSJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- ...contact_center_insights_calculate_issue_model_stats_async.py | 2 +- ..._contact_center_insights_calculate_issue_model_stats_sync.py | 2 +- ...1_generated_contact_center_insights_calculate_stats_async.py | 2 +- ...v1_generated_contact_center_insights_calculate_stats_sync.py | 2 +- ...1_generated_contact_center_insights_create_analysis_async.py | 2 +- ...v1_generated_contact_center_insights_create_analysis_sync.py | 2 +- ...nerated_contact_center_insights_create_conversation_async.py | 2 +- ...enerated_contact_center_insights_create_conversation_sync.py | 2 +- ...enerated_contact_center_insights_create_issue_model_async.py | 2 +- ...generated_contact_center_insights_create_issue_model_sync.py | 2 +- ...rated_contact_center_insights_create_phrase_matcher_async.py | 2 +- ...erated_contact_center_insights_create_phrase_matcher_sync.py | 2 +- ...ts_v1_generated_contact_center_insights_create_view_async.py | 2 +- ...hts_v1_generated_contact_center_insights_create_view_sync.py | 2 +- ...1_generated_contact_center_insights_delete_analysis_async.py | 2 +- ...v1_generated_contact_center_insights_delete_analysis_sync.py | 2 +- ...nerated_contact_center_insights_delete_conversation_async.py | 2 +- ...enerated_contact_center_insights_delete_conversation_sync.py | 2 +- ...enerated_contact_center_insights_delete_issue_model_async.py | 2 +- ...generated_contact_center_insights_delete_issue_model_sync.py | 2 +- ...rated_contact_center_insights_delete_phrase_matcher_async.py | 2 +- ...erated_contact_center_insights_delete_phrase_matcher_sync.py | 2 +- ...ts_v1_generated_contact_center_insights_delete_view_async.py | 2 +- ...hts_v1_generated_contact_center_insights_delete_view_sync.py | 2 +- ...enerated_contact_center_insights_deploy_issue_model_async.py | 2 +- ...generated_contact_center_insights_deploy_issue_model_sync.py | 2 +- ...erated_contact_center_insights_export_insights_data_async.py | 2 +- ...nerated_contact_center_insights_export_insights_data_sync.py | 2 +- ...s_v1_generated_contact_center_insights_get_analysis_async.py | 2 +- ...ts_v1_generated_contact_center_insights_get_analysis_sync.py | 2 +- ..._generated_contact_center_insights_get_conversation_async.py | 2 +- ...1_generated_contact_center_insights_get_conversation_sync.py | 2 +- ...ghts_v1_generated_contact_center_insights_get_issue_async.py | 2 +- ...1_generated_contact_center_insights_get_issue_model_async.py | 2 +- ...v1_generated_contact_center_insights_get_issue_model_sync.py | 2 +- ...ights_v1_generated_contact_center_insights_get_issue_sync.py | 2 +- ...enerated_contact_center_insights_get_phrase_matcher_async.py | 2 +- ...generated_contact_center_insights_get_phrase_matcher_sync.py | 2 +- ...s_v1_generated_contact_center_insights_get_settings_async.py | 2 +- ...ts_v1_generated_contact_center_insights_get_settings_sync.py | 2 +- ...ights_v1_generated_contact_center_insights_get_view_async.py | 2 +- ...sights_v1_generated_contact_center_insights_get_view_sync.py | 2 +- ..._v1_generated_contact_center_insights_list_analyses_async.py | 2 +- ...s_v1_generated_contact_center_insights_list_analyses_sync.py | 2 +- ...enerated_contact_center_insights_list_conversations_async.py | 2 +- ...generated_contact_center_insights_list_conversations_sync.py | 2 +- ...generated_contact_center_insights_list_issue_models_async.py | 2 +- ..._generated_contact_center_insights_list_issue_models_sync.py | 2 +- ...ts_v1_generated_contact_center_insights_list_issues_async.py | 2 +- ...hts_v1_generated_contact_center_insights_list_issues_sync.py | 2 +- ...erated_contact_center_insights_list_phrase_matchers_async.py | 2 +- ...nerated_contact_center_insights_list_phrase_matchers_sync.py | 2 +- ...hts_v1_generated_contact_center_insights_list_views_async.py | 2 +- ...ghts_v1_generated_contact_center_insights_list_views_sync.py | 2 +- ...erated_contact_center_insights_undeploy_issue_model_async.py | 2 +- ...nerated_contact_center_insights_undeploy_issue_model_sync.py | 2 +- ...nerated_contact_center_insights_update_conversation_async.py | 2 +- ...enerated_contact_center_insights_update_conversation_sync.py | 2 +- ...s_v1_generated_contact_center_insights_update_issue_async.py | 2 +- ...enerated_contact_center_insights_update_issue_model_async.py | 2 +- ...generated_contact_center_insights_update_issue_model_sync.py | 2 +- ...ts_v1_generated_contact_center_insights_update_issue_sync.py | 2 +- ...rated_contact_center_insights_update_phrase_matcher_async.py | 2 +- ...erated_contact_center_insights_update_phrase_matcher_sync.py | 2 +- ...1_generated_contact_center_insights_update_settings_async.py | 2 +- ...v1_generated_contact_center_insights_update_settings_sync.py | 2 +- ...ts_v1_generated_contact_center_insights_update_view_async.py | 2 +- ...hts_v1_generated_contact_center_insights_update_view_sync.py | 2 +- 68 files changed, 68 insertions(+), 68 deletions(-) diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_calculate_issue_model_stats_async.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_calculate_issue_model_stats_async.py index 1acf9cca5751..e699971502c6 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_calculate_issue_model_stats_async.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_calculate_issue_model_stats_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_calculate_issue_model_stats_sync.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_calculate_issue_model_stats_sync.py index 305f06e01d97..24da1fd1306b 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_calculate_issue_model_stats_sync.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_calculate_issue_model_stats_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_calculate_stats_async.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_calculate_stats_async.py index 33233dd24c15..16260f65cda5 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_calculate_stats_async.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_calculate_stats_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_calculate_stats_sync.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_calculate_stats_sync.py index 4b99f3d6e06a..5d62a5ab94d6 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_calculate_stats_sync.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_calculate_stats_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_create_analysis_async.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_create_analysis_async.py index 86ff29042a3d..2e0aa6afc8ae 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_create_analysis_async.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_create_analysis_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_create_analysis_sync.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_create_analysis_sync.py index 795a443876aa..c70223a61a9a 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_create_analysis_sync.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_create_analysis_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_create_conversation_async.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_create_conversation_async.py index bc7adf7497a1..bb0cfa376f1b 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_create_conversation_async.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_create_conversation_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_create_conversation_sync.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_create_conversation_sync.py index 7d5924fe2155..d94f2a3675fd 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_create_conversation_sync.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_create_conversation_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_create_issue_model_async.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_create_issue_model_async.py index b9a4eba347e0..144285d5b616 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_create_issue_model_async.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_create_issue_model_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_create_issue_model_sync.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_create_issue_model_sync.py index 8960e3dfa838..ed94d72b0789 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_create_issue_model_sync.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_create_issue_model_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_create_phrase_matcher_async.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_create_phrase_matcher_async.py index 8aa25c1ab00c..25d45ad994a4 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_create_phrase_matcher_async.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_create_phrase_matcher_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_create_phrase_matcher_sync.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_create_phrase_matcher_sync.py index dba7bc800017..582fbcf584a8 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_create_phrase_matcher_sync.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_create_phrase_matcher_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_create_view_async.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_create_view_async.py index b6823f32f4f8..112f017e12fd 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_create_view_async.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_create_view_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_create_view_sync.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_create_view_sync.py index 282f29297655..03cd385e02ba 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_create_view_sync.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_create_view_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_analysis_async.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_analysis_async.py index 32fbee928d1a..c2ca55a8de43 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_analysis_async.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_analysis_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_analysis_sync.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_analysis_sync.py index b53f96fc53f0..348e2923da1d 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_analysis_sync.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_analysis_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_conversation_async.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_conversation_async.py index 696dbd76210a..e5421d528697 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_conversation_async.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_conversation_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_conversation_sync.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_conversation_sync.py index 3e8d58598552..896c9e83fb77 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_conversation_sync.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_conversation_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_issue_model_async.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_issue_model_async.py index dbead2dc5709..2ce262947d96 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_issue_model_async.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_issue_model_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_issue_model_sync.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_issue_model_sync.py index f80be48cb5a4..e13ca2fde5e7 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_issue_model_sync.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_issue_model_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_phrase_matcher_async.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_phrase_matcher_async.py index 43b98649e0f9..9b03251fd538 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_phrase_matcher_async.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_phrase_matcher_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_phrase_matcher_sync.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_phrase_matcher_sync.py index d53275e8d97b..9a219bb87e7e 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_phrase_matcher_sync.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_phrase_matcher_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_view_async.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_view_async.py index d4626aa6653f..a31652959537 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_view_async.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_view_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_view_sync.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_view_sync.py index 451de0e30766..95aae408b45e 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_view_sync.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_view_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_deploy_issue_model_async.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_deploy_issue_model_async.py index f0586b996070..7fed14b5c5af 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_deploy_issue_model_async.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_deploy_issue_model_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_deploy_issue_model_sync.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_deploy_issue_model_sync.py index 44ebce610863..c64cc7f1c76d 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_deploy_issue_model_sync.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_deploy_issue_model_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_export_insights_data_async.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_export_insights_data_async.py index f5dcd9c8c46c..f144d0256783 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_export_insights_data_async.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_export_insights_data_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_export_insights_data_sync.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_export_insights_data_sync.py index 5c67eb788a9c..771ab096efab 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_export_insights_data_sync.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_export_insights_data_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_analysis_async.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_analysis_async.py index 5a3e6d6605df..00c110313f70 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_analysis_async.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_analysis_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_analysis_sync.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_analysis_sync.py index bccdbf02fb33..464a2dc40d6c 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_analysis_sync.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_analysis_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_conversation_async.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_conversation_async.py index 96abd6916c49..1f30a8621513 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_conversation_async.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_conversation_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_conversation_sync.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_conversation_sync.py index 46a7ed35ff58..d3ed360a81f6 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_conversation_sync.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_conversation_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_issue_async.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_issue_async.py index 2478cd3f8470..8df7a7479c0a 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_issue_async.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_issue_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_issue_model_async.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_issue_model_async.py index 68e002228a85..42fef98af69c 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_issue_model_async.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_issue_model_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_issue_model_sync.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_issue_model_sync.py index 3b43e5667c84..9c41236bd7f6 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_issue_model_sync.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_issue_model_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_issue_sync.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_issue_sync.py index ac5525c6ce0c..32a7645187c6 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_issue_sync.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_issue_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_phrase_matcher_async.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_phrase_matcher_async.py index 0be640e78df4..cbd5b9ca0d65 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_phrase_matcher_async.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_phrase_matcher_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_phrase_matcher_sync.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_phrase_matcher_sync.py index cb260e354259..7787aebcb62a 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_phrase_matcher_sync.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_phrase_matcher_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_settings_async.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_settings_async.py index db86ea55add2..1d0fed71068f 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_settings_async.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_settings_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_settings_sync.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_settings_sync.py index 5af80ac8e0b0..c245f5ae837c 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_settings_sync.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_settings_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_view_async.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_view_async.py index b37fac33d277..9b9b3bbfd5d8 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_view_async.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_view_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_view_sync.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_view_sync.py index 84c5bec3a15a..a26a3aa2c28d 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_view_sync.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_view_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_analyses_async.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_analyses_async.py index 41e04d38eaf2..e5eefe5004b2 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_analyses_async.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_analyses_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_analyses_sync.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_analyses_sync.py index efb9a1f88a8b..09afc16570f9 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_analyses_sync.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_analyses_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_conversations_async.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_conversations_async.py index 6e753c355d12..f9a7dfafbe2e 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_conversations_async.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_conversations_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_conversations_sync.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_conversations_sync.py index 3f4ee817be2f..99b88fc1fa1a 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_conversations_sync.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_conversations_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_issue_models_async.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_issue_models_async.py index 5c1bf6bb9361..14ff81129b5a 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_issue_models_async.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_issue_models_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_issue_models_sync.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_issue_models_sync.py index f37d94ce12e2..5d912adcf7d1 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_issue_models_sync.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_issue_models_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_issues_async.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_issues_async.py index 093a905dec3d..8ba5e20f2d0d 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_issues_async.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_issues_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_issues_sync.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_issues_sync.py index df2c2f247817..a0e4e39e9b9c 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_issues_sync.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_issues_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_phrase_matchers_async.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_phrase_matchers_async.py index 7ef8dfbaf1a1..06cdf4ce061f 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_phrase_matchers_async.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_phrase_matchers_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_phrase_matchers_sync.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_phrase_matchers_sync.py index e288f23bdb79..b4b50b56ce1f 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_phrase_matchers_sync.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_phrase_matchers_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_views_async.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_views_async.py index 58152875d320..e22e7aa7a77e 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_views_async.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_views_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_views_sync.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_views_sync.py index 340a143d17be..a549d492e10f 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_views_sync.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_views_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_undeploy_issue_model_async.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_undeploy_issue_model_async.py index 9ccabc7ebecf..edb45f1fe753 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_undeploy_issue_model_async.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_undeploy_issue_model_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_undeploy_issue_model_sync.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_undeploy_issue_model_sync.py index 17344c27e336..e68ac33f05b4 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_undeploy_issue_model_sync.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_undeploy_issue_model_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_conversation_async.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_conversation_async.py index 29fd2ffad4c9..ad2a98d6e342 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_conversation_async.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_conversation_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_conversation_sync.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_conversation_sync.py index 5b742bcba09f..55367f7d2fb1 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_conversation_sync.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_conversation_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_issue_async.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_issue_async.py index ab7637e6f8f7..d80ae86a196e 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_issue_async.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_issue_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_issue_model_async.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_issue_model_async.py index d6fed3af478b..1fbdf1298241 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_issue_model_async.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_issue_model_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_issue_model_sync.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_issue_model_sync.py index b8dbf50c7dea..f8dd3bb30972 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_issue_model_sync.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_issue_model_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_issue_sync.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_issue_sync.py index f03a8bcd5490..0aa544e0b629 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_issue_sync.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_issue_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_phrase_matcher_async.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_phrase_matcher_async.py index c3bda1ef26e2..e98cd578a99c 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_phrase_matcher_async.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_phrase_matcher_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_phrase_matcher_sync.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_phrase_matcher_sync.py index da26ac4bdc90..e99e499250ac 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_phrase_matcher_sync.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_phrase_matcher_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_settings_async.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_settings_async.py index 2a805beae74a..0a81f6746392 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_settings_async.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_settings_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_settings_sync.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_settings_sync.py index 41d6172a0d62..942dc25f7a81 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_settings_sync.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_settings_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_view_async.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_view_async.py index 393302bf08c7..f8e3612efb90 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_view_async.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_view_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_view_sync.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_view_sync.py index fec6d2ac76f0..5931785b464f 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_view_sync.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_view_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. From fadd9ecfde18eb1004798e074e76fc9af40f81ed Mon Sep 17 00:00:00 2001 From: Anthonios Partheniou Date: Fri, 4 Mar 2022 11:23:52 -0500 Subject: [PATCH 046/112] fix(deps): require google-api-core>=1.31.5, >=2.3.2 (#136) --- contact-center-insights/snippets/requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contact-center-insights/snippets/requirements.txt b/contact-center-insights/snippets/requirements.txt index 4e88f2627edb..775a5c54b22f 100644 --- a/contact-center-insights/snippets/requirements.txt +++ b/contact-center-insights/snippets/requirements.txt @@ -1,4 +1,4 @@ -google-api-core==2.3.0 +google-api-core==2.3.2 google-cloud-bigquery==2.31.0 google-cloud-contact-center-insights==1.1.0 protobuf==3.19.1 \ No newline at end of file From 4fd556786ecbde82a112402a65031418d4d1218d Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Fri, 4 Mar 2022 13:12:01 -0500 Subject: [PATCH 047/112] chore: Adding support for pytest-xdist and pytest-parallel (#137) Source-Link: https://github.com/googleapis/synthtool/commit/82f5cb283efffe96e1b6cd634738e0e7de2cd90a Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:5d8da01438ece4021d135433f2cf3227aa39ef0eaccc941d62aa35e6902832ae Co-authored-by: Owl Bot Co-authored-by: Anthonios Partheniou --- contact-center-insights/snippets/noxfile.py | 78 ++++++++++++--------- 1 file changed, 44 insertions(+), 34 deletions(-) diff --git a/contact-center-insights/snippets/noxfile.py b/contact-center-insights/snippets/noxfile.py index 20cdfc620138..85f5836dba3a 100644 --- a/contact-center-insights/snippets/noxfile.py +++ b/contact-center-insights/snippets/noxfile.py @@ -188,42 +188,52 @@ def _session_tests( # check for presence of tests test_list = glob.glob("*_test.py") + glob.glob("test_*.py") test_list.extend(glob.glob("tests")) + if len(test_list) == 0: print("No tests found, skipping directory.") - else: - if TEST_CONFIG["pip_version_override"]: - pip_version = TEST_CONFIG["pip_version_override"] - session.install(f"pip=={pip_version}") - """Runs py.test for a particular project.""" - if os.path.exists("requirements.txt"): - if os.path.exists("constraints.txt"): - session.install("-r", "requirements.txt", "-c", "constraints.txt") - else: - session.install("-r", "requirements.txt") - - if os.path.exists("requirements-test.txt"): - if os.path.exists("constraints-test.txt"): - session.install( - "-r", "requirements-test.txt", "-c", "constraints-test.txt" - ) - else: - session.install("-r", "requirements-test.txt") - - if INSTALL_LIBRARY_FROM_SOURCE: - session.install("-e", _get_repo_root()) - - if post_install: - post_install(session) - - session.run( - "pytest", - *(PYTEST_COMMON_ARGS + session.posargs), - # Pytest will return 5 when no tests are collected. This can happen - # on travis where slow and flaky tests are excluded. - # See http://doc.pytest.org/en/latest/_modules/_pytest/main.html - success_codes=[0, 5], - env=get_pytest_env_vars(), - ) + return + + if TEST_CONFIG["pip_version_override"]: + pip_version = TEST_CONFIG["pip_version_override"] + session.install(f"pip=={pip_version}") + """Runs py.test for a particular project.""" + concurrent_args = [] + if os.path.exists("requirements.txt"): + if os.path.exists("constraints.txt"): + session.install("-r", "requirements.txt", "-c", "constraints.txt") + else: + session.install("-r", "requirements.txt") + with open("requirements.txt") as rfile: + packages = rfile.read() + + if os.path.exists("requirements-test.txt"): + if os.path.exists("constraints-test.txt"): + session.install("-r", "requirements-test.txt", "-c", "constraints-test.txt") + else: + session.install("-r", "requirements-test.txt") + with open("requirements-test.txt") as rtfile: + packages += rtfile.read() + + if INSTALL_LIBRARY_FROM_SOURCE: + session.install("-e", _get_repo_root()) + + if post_install: + post_install(session) + + if "pytest-parallel" in packages: + concurrent_args.extend(["--workers", "auto", "--tests-per-worker", "auto"]) + elif "pytest-xdist" in packages: + concurrent_args.extend(["-n", "auto"]) + + session.run( + "pytest", + *(PYTEST_COMMON_ARGS + session.posargs + concurrent_args), + # Pytest will return 5 when no tests are collected. This can happen + # on travis where slow and flaky tests are excluded. + # See http://doc.pytest.org/en/latest/_modules/_pytest/main.html + success_codes=[0, 5], + env=get_pytest_env_vars(), + ) @nox.session(python=ALL_VERSIONS) From 6d9d791175daf22a8f2813e25f1040c6e9ac7b64 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 7 Mar 2022 17:17:48 +0100 Subject: [PATCH 048/112] chore(deps): update all dependencies (#140) --- contact-center-insights/snippets/requirements-test.txt | 8 ++++---- contact-center-insights/snippets/requirements.txt | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/contact-center-insights/snippets/requirements-test.txt b/contact-center-insights/snippets/requirements-test.txt index 8a4d3633fde7..4f6ac1db42e3 100644 --- a/contact-center-insights/snippets/requirements-test.txt +++ b/contact-center-insights/snippets/requirements-test.txt @@ -1,4 +1,4 @@ -google-auth==2.3.3 -google-cloud-pubsub==2.9.0 -protobuf==3.19.1 -pytest==6.2.5 \ No newline at end of file +google-auth==2.6.0 +google-cloud-pubsub==2.10.0 +protobuf==3.19.4 +pytest==7.0.1 \ No newline at end of file diff --git a/contact-center-insights/snippets/requirements.txt b/contact-center-insights/snippets/requirements.txt index 775a5c54b22f..e911bc0c8029 100644 --- a/contact-center-insights/snippets/requirements.txt +++ b/contact-center-insights/snippets/requirements.txt @@ -1,4 +1,4 @@ -google-api-core==2.3.2 -google-cloud-bigquery==2.31.0 -google-cloud-contact-center-insights==1.1.0 -protobuf==3.19.1 \ No newline at end of file +google-api-core==2.6.0 +google-cloud-bigquery==2.34.2 +google-cloud-contact-center-insights==1.3.0 +protobuf==3.19.4 \ No newline at end of file From d06119f28846b9e363319cc0c220c8da20f9dba2 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 7 Mar 2022 22:27:14 +0100 Subject: [PATCH 049/112] chore(deps): update all dependencies (#141) --- contact-center-insights/snippets/requirements.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contact-center-insights/snippets/requirements.txt b/contact-center-insights/snippets/requirements.txt index e911bc0c8029..9ae8cfcced5a 100644 --- a/contact-center-insights/snippets/requirements.txt +++ b/contact-center-insights/snippets/requirements.txt @@ -1,4 +1,4 @@ -google-api-core==2.6.0 +google-api-core==2.6.1 google-cloud-bigquery==2.34.2 -google-cloud-contact-center-insights==1.3.0 +google-cloud-contact-center-insights==1.3.1 protobuf==3.19.4 \ No newline at end of file From c8c6e6afdd84df95fa28801abd19dd3ca9c4c539 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 8 Mar 2022 21:50:21 +0100 Subject: [PATCH 050/112] chore(deps): update dependency google-api-core to v2.7.0 (#142) --- contact-center-insights/snippets/requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contact-center-insights/snippets/requirements.txt b/contact-center-insights/snippets/requirements.txt index 9ae8cfcced5a..caeaa616aee7 100644 --- a/contact-center-insights/snippets/requirements.txt +++ b/contact-center-insights/snippets/requirements.txt @@ -1,4 +1,4 @@ -google-api-core==2.6.1 +google-api-core==2.7.0 google-cloud-bigquery==2.34.2 google-cloud-contact-center-insights==1.3.1 protobuf==3.19.4 \ No newline at end of file From 4c3099994d8d1ad478f931439bf16560ec156978 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 10 Mar 2022 11:41:13 +0100 Subject: [PATCH 051/112] chore(deps): update all dependencies (#143) --- contact-center-insights/snippets/requirements-test.txt | 2 +- contact-center-insights/snippets/requirements.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/contact-center-insights/snippets/requirements-test.txt b/contact-center-insights/snippets/requirements-test.txt index 4f6ac1db42e3..1e19ce49d14f 100644 --- a/contact-center-insights/snippets/requirements-test.txt +++ b/contact-center-insights/snippets/requirements-test.txt @@ -1,4 +1,4 @@ google-auth==2.6.0 -google-cloud-pubsub==2.10.0 +google-cloud-pubsub==2.11.0 protobuf==3.19.4 pytest==7.0.1 \ No newline at end of file diff --git a/contact-center-insights/snippets/requirements.txt b/contact-center-insights/snippets/requirements.txt index caeaa616aee7..9ac90fae9a91 100644 --- a/contact-center-insights/snippets/requirements.txt +++ b/contact-center-insights/snippets/requirements.txt @@ -1,4 +1,4 @@ -google-api-core==2.7.0 +google-api-core==2.7.1 google-cloud-bigquery==2.34.2 google-cloud-contact-center-insights==1.3.1 protobuf==3.19.4 \ No newline at end of file From b519420f60fb34c660b8f54a02a2f3fed718fe65 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Sun, 13 Mar 2022 17:07:25 +0100 Subject: [PATCH 052/112] chore(deps): update dependency pytest to v7.1.0 (#144) --- contact-center-insights/snippets/requirements-test.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contact-center-insights/snippets/requirements-test.txt b/contact-center-insights/snippets/requirements-test.txt index 1e19ce49d14f..903cb96dffb4 100644 --- a/contact-center-insights/snippets/requirements-test.txt +++ b/contact-center-insights/snippets/requirements-test.txt @@ -1,4 +1,4 @@ google-auth==2.6.0 google-cloud-pubsub==2.11.0 protobuf==3.19.4 -pytest==7.0.1 \ No newline at end of file +pytest==7.1.0 \ No newline at end of file From d28ff4b1b7542be136bf01a4031907d217195666 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 23 Mar 2022 10:22:21 +0100 Subject: [PATCH 053/112] chore(deps): update all dependencies (#145) --- contact-center-insights/snippets/requirements-test.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contact-center-insights/snippets/requirements-test.txt b/contact-center-insights/snippets/requirements-test.txt index 903cb96dffb4..cb4b5b871e5e 100644 --- a/contact-center-insights/snippets/requirements-test.txt +++ b/contact-center-insights/snippets/requirements-test.txt @@ -1,4 +1,4 @@ -google-auth==2.6.0 +google-auth==2.6.2 google-cloud-pubsub==2.11.0 protobuf==3.19.4 -pytest==7.1.0 \ No newline at end of file +pytest==7.1.1 \ No newline at end of file From f125de2dd3c69e002c491834f51ac3eda815d7b7 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Tue, 29 Mar 2022 00:04:22 +0000 Subject: [PATCH 054/112] chore(python): use black==22.3.0 (#147) Source-Link: https://github.com/googleapis/synthtool/commit/6fab84af09f2cf89a031fd8671d1def6b2931b11 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:7cffbc10910c3ab1b852c05114a08d374c195a81cdec1d4a67a1d129331d0bfe --- contact-center-insights/snippets/create_conversation.py | 6 ++++-- .../snippets/create_conversation_with_ttl.py | 6 ++++-- contact-center-insights/snippets/create_issue_model.py | 6 ++++-- .../snippets/create_phrase_matcher_all_of.py | 6 ++++-- .../snippets/create_phrase_matcher_any_of.py | 6 ++++-- .../snippets/enable_pubsub_notifications.py | 6 ++++-- contact-center-insights/snippets/export_to_bigquery.py | 6 ++++-- contact-center-insights/snippets/noxfile.py | 4 ++-- contact-center-insights/snippets/set_project_ttl.py | 6 ++++-- contact-center-insights/snippets/test_create_analysis.py | 6 ++++-- contact-center-insights/snippets/test_create_issue_model.py | 6 ++++-- .../snippets/test_enable_pubsub_notifications.py | 6 ++++-- contact-center-insights/snippets/test_get_operation.py | 6 ++++-- contact-center-insights/snippets/test_set_project_ttl.py | 6 ++++-- 14 files changed, 54 insertions(+), 28 deletions(-) diff --git a/contact-center-insights/snippets/create_conversation.py b/contact-center-insights/snippets/create_conversation.py index d7fa5a06ebb8..8f632299b8c4 100644 --- a/contact-center-insights/snippets/create_conversation.py +++ b/contact-center-insights/snippets/create_conversation.py @@ -22,8 +22,10 @@ def create_conversation( audio_uri: str = "gs://cloud-samples-data/ccai/voice_6912.txt", ) -> contact_center_insights_v1.Conversation: # Construct a parent resource. - parent = contact_center_insights_v1.ContactCenterInsightsClient.common_location_path( - project_id, "us-central1" + parent = ( + contact_center_insights_v1.ContactCenterInsightsClient.common_location_path( + project_id, "us-central1" + ) ) # Construct a conversation. diff --git a/contact-center-insights/snippets/create_conversation_with_ttl.py b/contact-center-insights/snippets/create_conversation_with_ttl.py index 267c71d4d65a..da68789f2a09 100644 --- a/contact-center-insights/snippets/create_conversation_with_ttl.py +++ b/contact-center-insights/snippets/create_conversation_with_ttl.py @@ -24,8 +24,10 @@ def create_conversation_with_ttl( audio_uri: str = "gs://cloud-samples-data/ccai/voice_6912.txt", ) -> contact_center_insights_v1.Conversation: # Construct a parent resource. - parent = contact_center_insights_v1.ContactCenterInsightsClient.common_location_path( - project_id, "us-central1" + parent = ( + contact_center_insights_v1.ContactCenterInsightsClient.common_location_path( + project_id, "us-central1" + ) ) # Construct a conversation. diff --git a/contact-center-insights/snippets/create_issue_model.py b/contact-center-insights/snippets/create_issue_model.py index b34033593e77..3ebebb6e175e 100644 --- a/contact-center-insights/snippets/create_issue_model.py +++ b/contact-center-insights/snippets/create_issue_model.py @@ -18,8 +18,10 @@ def create_issue_model(project_id: str) -> contact_center_insights_v1.IssueModel: # Construct a parent resource. - parent = contact_center_insights_v1.ContactCenterInsightsClient.common_location_path( - project_id, "us-central1" + parent = ( + contact_center_insights_v1.ContactCenterInsightsClient.common_location_path( + project_id, "us-central1" + ) ) # Construct an issue model. diff --git a/contact-center-insights/snippets/create_phrase_matcher_all_of.py b/contact-center-insights/snippets/create_phrase_matcher_all_of.py index 0824bc8a02e3..3627fb996fd9 100644 --- a/contact-center-insights/snippets/create_phrase_matcher_all_of.py +++ b/contact-center-insights/snippets/create_phrase_matcher_all_of.py @@ -20,8 +20,10 @@ def create_phrase_matcher_all_of( project_id: str, ) -> contact_center_insights_v1.PhraseMatcher: # Construct a parent resource. - parent = contact_center_insights_v1.ContactCenterInsightsClient.common_location_path( - project_id, "us-central1" + parent = ( + contact_center_insights_v1.ContactCenterInsightsClient.common_location_path( + project_id, "us-central1" + ) ) # Construct a phrase matcher that matches all of its rule groups. diff --git a/contact-center-insights/snippets/create_phrase_matcher_any_of.py b/contact-center-insights/snippets/create_phrase_matcher_any_of.py index 33de08b26608..8494ee9ab128 100644 --- a/contact-center-insights/snippets/create_phrase_matcher_any_of.py +++ b/contact-center-insights/snippets/create_phrase_matcher_any_of.py @@ -20,8 +20,10 @@ def create_phrase_matcher_any_of( project_id: str, ) -> contact_center_insights_v1.PhraseMatcher: # Construct a parent resource. - parent = contact_center_insights_v1.ContactCenterInsightsClient.common_location_path( - project_id, "us-central1" + parent = ( + contact_center_insights_v1.ContactCenterInsightsClient.common_location_path( + project_id, "us-central1" + ) ) # Construct a phrase matcher that matches any of its rule groups. diff --git a/contact-center-insights/snippets/enable_pubsub_notifications.py b/contact-center-insights/snippets/enable_pubsub_notifications.py index 0c7e8d976855..c363491d4b31 100644 --- a/contact-center-insights/snippets/enable_pubsub_notifications.py +++ b/contact-center-insights/snippets/enable_pubsub_notifications.py @@ -22,8 +22,10 @@ def enable_pubsub_notifications( ) -> None: # Construct a settings resource. settings = contact_center_insights_v1.Settings() - settings.name = contact_center_insights_v1.ContactCenterInsightsClient.settings_path( - project_id, "us-central1" + settings.name = ( + contact_center_insights_v1.ContactCenterInsightsClient.settings_path( + project_id, "us-central1" + ) ) settings.pubsub_notification_settings = { "create-conversation": topic_create_conversation, diff --git a/contact-center-insights/snippets/export_to_bigquery.py b/contact-center-insights/snippets/export_to_bigquery.py index 06e2e41bda8a..18af84aca916 100644 --- a/contact-center-insights/snippets/export_to_bigquery.py +++ b/contact-center-insights/snippets/export_to_bigquery.py @@ -24,8 +24,10 @@ def export_to_bigquery( ) -> None: # Construct an export request. request = contact_center_insights_v1.ExportInsightsDataRequest() - request.parent = contact_center_insights_v1.ContactCenterInsightsClient.common_location_path( - project_id, "us-central1" + request.parent = ( + contact_center_insights_v1.ContactCenterInsightsClient.common_location_path( + project_id, "us-central1" + ) ) request.big_query_destination.project_id = bigquery_project_id request.big_query_destination.dataset = bigquery_dataset_id diff --git a/contact-center-insights/snippets/noxfile.py b/contact-center-insights/snippets/noxfile.py index 85f5836dba3a..25f87a215d4c 100644 --- a/contact-center-insights/snippets/noxfile.py +++ b/contact-center-insights/snippets/noxfile.py @@ -29,7 +29,7 @@ # WARNING - WARNING - WARNING - WARNING - WARNING # WARNING - WARNING - WARNING - WARNING - WARNING -BLACK_VERSION = "black==19.10b0" +BLACK_VERSION = "black==22.3.0" # Copy `noxfile_config.py` to your directory and modify it instead. @@ -253,7 +253,7 @@ def py(session: nox.sessions.Session) -> None: def _get_repo_root() -> Optional[str]: - """ Returns the root folder of the project. """ + """Returns the root folder of the project.""" # Get root of this repository. Assume we don't have directories nested deeper than 10 items. p = Path(os.getcwd()) for i in range(10): diff --git a/contact-center-insights/snippets/set_project_ttl.py b/contact-center-insights/snippets/set_project_ttl.py index b5aa02107875..c0e6431ebdd3 100644 --- a/contact-center-insights/snippets/set_project_ttl.py +++ b/contact-center-insights/snippets/set_project_ttl.py @@ -22,8 +22,10 @@ def set_project_ttl(project_id: str) -> None: # Construct a settings resource. settings = contact_center_insights_v1.Settings() - settings.name = contact_center_insights_v1.ContactCenterInsightsClient.settings_path( - project_id, "us-central1" + settings.name = ( + contact_center_insights_v1.ContactCenterInsightsClient.settings_path( + project_id, "us-central1" + ) ) conversation_ttl = duration_pb2.Duration() diff --git a/contact-center-insights/snippets/test_create_analysis.py b/contact-center-insights/snippets/test_create_analysis.py index df41dbd8f5a8..e78d925ee98d 100644 --- a/contact-center-insights/snippets/test_create_analysis.py +++ b/contact-center-insights/snippets/test_create_analysis.py @@ -35,8 +35,10 @@ def conversation_resource(project_id): # Create a conversation. insights_client = contact_center_insights_v1.ContactCenterInsightsClient() - parent = contact_center_insights_v1.ContactCenterInsightsClient.common_location_path( - project_id, "us-central1" + parent = ( + contact_center_insights_v1.ContactCenterInsightsClient.common_location_path( + project_id, "us-central1" + ) ) conversation = contact_center_insights_v1.Conversation() diff --git a/contact-center-insights/snippets/test_create_issue_model.py b/contact-center-insights/snippets/test_create_issue_model.py index ffa60e4f3b72..b978242cf5f7 100644 --- a/contact-center-insights/snippets/test_create_issue_model.py +++ b/contact-center-insights/snippets/test_create_issue_model.py @@ -40,8 +40,10 @@ def count_conversations(project_id, insights_client): # See https://cloud.google.com/contact-center/insights/docs/topic-model. list_request = contact_center_insights_v1.ListConversationsRequest() list_request.page_size = 1000 - list_request.parent = contact_center_insights_v1.ContactCenterInsightsClient.common_location_path( - project_id, "us-central1" + list_request.parent = ( + contact_center_insights_v1.ContactCenterInsightsClient.common_location_path( + project_id, "us-central1" + ) ) conversations = insights_client.list_conversations(request=list_request) conversation_count = len(list(conversations)) diff --git a/contact-center-insights/snippets/test_enable_pubsub_notifications.py b/contact-center-insights/snippets/test_enable_pubsub_notifications.py index 42eb87d9ab6a..d7c0369616e1 100644 --- a/contact-center-insights/snippets/test_enable_pubsub_notifications.py +++ b/contact-center-insights/snippets/test_enable_pubsub_notifications.py @@ -58,8 +58,10 @@ def pubsub_topics(project_id): def disable_pubsub_notifications(project_id): yield settings = contact_center_insights_v1.Settings() - settings.name = contact_center_insights_v1.ContactCenterInsightsClient.settings_path( - project_id, "us-central1" + settings.name = ( + contact_center_insights_v1.ContactCenterInsightsClient.settings_path( + project_id, "us-central1" + ) ) settings.pubsub_notification_settings = {} update_mask = field_mask_pb2.FieldMask() diff --git a/contact-center-insights/snippets/test_get_operation.py b/contact-center-insights/snippets/test_get_operation.py index f7e859ed7777..4f6bc8b51eb4 100644 --- a/contact-center-insights/snippets/test_get_operation.py +++ b/contact-center-insights/snippets/test_get_operation.py @@ -38,8 +38,10 @@ def insights_client(): @pytest.fixture def conversation_resource(project_id, insights_client): # Create a conversation. - parent = contact_center_insights_v1.ContactCenterInsightsClient.common_location_path( - project_id, "us-central1" + parent = ( + contact_center_insights_v1.ContactCenterInsightsClient.common_location_path( + project_id, "us-central1" + ) ) conversation = contact_center_insights_v1.Conversation() diff --git a/contact-center-insights/snippets/test_set_project_ttl.py b/contact-center-insights/snippets/test_set_project_ttl.py index 50605b5da8dc..34a657cc2972 100644 --- a/contact-center-insights/snippets/test_set_project_ttl.py +++ b/contact-center-insights/snippets/test_set_project_ttl.py @@ -32,8 +32,10 @@ def project_id(): def clear_project_ttl(project_id): yield settings = contact_center_insights_v1.Settings() - settings.name = contact_center_insights_v1.ContactCenterInsightsClient.settings_path( - project_id, "us-central1" + settings.name = ( + contact_center_insights_v1.ContactCenterInsightsClient.settings_path( + project_id, "us-central1" + ) ) settings.conversation_ttl = None update_mask = field_mask_pb2.FieldMask() From 105e93cbb28fb0d5be204eb5c622a519330cd415 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 31 Mar 2022 01:32:28 +0200 Subject: [PATCH 055/112] chore(deps): update dependency google-cloud-bigquery to v3 (#148) --- contact-center-insights/snippets/requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contact-center-insights/snippets/requirements.txt b/contact-center-insights/snippets/requirements.txt index 9ac90fae9a91..57d04c6e753a 100644 --- a/contact-center-insights/snippets/requirements.txt +++ b/contact-center-insights/snippets/requirements.txt @@ -1,4 +1,4 @@ google-api-core==2.7.1 -google-cloud-bigquery==2.34.2 +google-cloud-bigquery==3.0.1 google-cloud-contact-center-insights==1.3.1 protobuf==3.19.4 \ No newline at end of file From a4dd02f9d2571d7abadccb8a803532c0f0b182a5 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Sun, 3 Apr 2022 21:45:54 +0200 Subject: [PATCH 056/112] chore(deps): update dependency protobuf to v3.20.0 (#153) --- contact-center-insights/snippets/requirements-test.txt | 2 +- contact-center-insights/snippets/requirements.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/contact-center-insights/snippets/requirements-test.txt b/contact-center-insights/snippets/requirements-test.txt index cb4b5b871e5e..d7ee89b9aa23 100644 --- a/contact-center-insights/snippets/requirements-test.txt +++ b/contact-center-insights/snippets/requirements-test.txt @@ -1,4 +1,4 @@ google-auth==2.6.2 google-cloud-pubsub==2.11.0 -protobuf==3.19.4 +protobuf==3.20.0 pytest==7.1.1 \ No newline at end of file diff --git a/contact-center-insights/snippets/requirements.txt b/contact-center-insights/snippets/requirements.txt index 57d04c6e753a..7a389a37d0a6 100644 --- a/contact-center-insights/snippets/requirements.txt +++ b/contact-center-insights/snippets/requirements.txt @@ -1,4 +1,4 @@ google-api-core==2.7.1 google-cloud-bigquery==3.0.1 google-cloud-contact-center-insights==1.3.1 -protobuf==3.19.4 \ No newline at end of file +protobuf==3.20.0 \ No newline at end of file From 94173db6f72ac1ebb6872c2f81831491191ea707 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 7 Apr 2022 13:14:39 +0200 Subject: [PATCH 057/112] chore(deps): update dependency google-cloud-pubsub to v2.12.0 (#155) --- contact-center-insights/snippets/requirements-test.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contact-center-insights/snippets/requirements-test.txt b/contact-center-insights/snippets/requirements-test.txt index d7ee89b9aa23..073cb180f4d9 100644 --- a/contact-center-insights/snippets/requirements-test.txt +++ b/contact-center-insights/snippets/requirements-test.txt @@ -1,4 +1,4 @@ google-auth==2.6.2 -google-cloud-pubsub==2.11.0 +google-cloud-pubsub==2.12.0 protobuf==3.20.0 pytest==7.1.1 \ No newline at end of file From a44c2f08bacdd748259c3bd74a4b0dea14dfb53d Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 8 Apr 2022 01:12:06 +0200 Subject: [PATCH 058/112] chore(deps): update dependency google-auth to v2.6.3 (#157) --- contact-center-insights/snippets/requirements-test.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contact-center-insights/snippets/requirements-test.txt b/contact-center-insights/snippets/requirements-test.txt index 073cb180f4d9..3c0b4c8811b1 100644 --- a/contact-center-insights/snippets/requirements-test.txt +++ b/contact-center-insights/snippets/requirements-test.txt @@ -1,4 +1,4 @@ -google-auth==2.6.2 +google-auth==2.6.3 google-cloud-pubsub==2.12.0 protobuf==3.20.0 pytest==7.1.1 \ No newline at end of file From 123f52dd612e453f5bbec06d5da0c139f5846452 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 13 Apr 2022 16:34:18 +0200 Subject: [PATCH 059/112] chore(deps): update dependency google-auth to v2.6.4 (#160) --- contact-center-insights/snippets/requirements-test.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contact-center-insights/snippets/requirements-test.txt b/contact-center-insights/snippets/requirements-test.txt index 3c0b4c8811b1..8ae6500bcc04 100644 --- a/contact-center-insights/snippets/requirements-test.txt +++ b/contact-center-insights/snippets/requirements-test.txt @@ -1,4 +1,4 @@ -google-auth==2.6.3 +google-auth==2.6.4 google-cloud-pubsub==2.12.0 protobuf==3.20.0 pytest==7.1.1 \ No newline at end of file From cceab2dcc32ea685fd0f214f658e9034067a6ce8 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 14 Apr 2022 01:43:09 +0200 Subject: [PATCH 060/112] chore(deps): update dependency google-api-core to v2.7.2 (#161) --- contact-center-insights/snippets/requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contact-center-insights/snippets/requirements.txt b/contact-center-insights/snippets/requirements.txt index 7a389a37d0a6..067a5e1f5bc3 100644 --- a/contact-center-insights/snippets/requirements.txt +++ b/contact-center-insights/snippets/requirements.txt @@ -1,4 +1,4 @@ -google-api-core==2.7.1 +google-api-core==2.7.2 google-cloud-bigquery==3.0.1 google-cloud-contact-center-insights==1.3.1 protobuf==3.20.0 \ No newline at end of file From 5b3e49bedac504807a8df3189b3a096dd9d1e8e5 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Wed, 13 Apr 2022 20:30:44 -0400 Subject: [PATCH 061/112] chore: use gapic-generator-python 0.65.1 (#162) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore: use gapic-generator-python 0.65.1 PiperOrigin-RevId: 441524537 Source-Link: https://github.com/googleapis/googleapis/commit/2a273915b3f70fe86c9d2a75470a0b83e48d0abf Source-Link: https://github.com/googleapis/googleapis-gen/commit/ab6756a48c89b5bcb9fb73443cb8e55d574f4643 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYWI2NzU2YTQ4Yzg5YjViY2I5ZmI3MzQ0M2NiOGU1NWQ1NzRmNDY0MyJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot Co-authored-by: Anthonios Partheniou --- ...t_metadata_contact center insights_v1.json | 2818 ++++++++++++++++- 1 file changed, 2682 insertions(+), 136 deletions(-) diff --git a/contact-center-insights/generated_samples/snippet_metadata_contact center insights_v1.json b/contact-center-insights/generated_samples/snippet_metadata_contact center insights_v1.json index 83652cce8b23..7408c9ae86fe 100644 --- a/contact-center-insights/generated_samples/snippet_metadata_contact center insights_v1.json +++ b/contact-center-insights/generated_samples/snippet_metadata_contact center insights_v1.json @@ -1,16 +1,61 @@ { + "clientLibrary": { + "apis": [ + { + "id": "google.cloud.contactcenterinsights.v1", + "version": "v1" + } + ], + "language": "PYTHON", + "name": "google-cloud-contact-center-insights" + }, "snippets": [ { + "canonical": true, "clientMethod": { "async": true, + "client": { + "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsAsyncClient", + "shortName": "ContactCenterInsightsAsyncClient" + }, + "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsAsyncClient.calculate_issue_model_stats", "method": { + "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.CalculateIssueModelStats", "service": { + "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights", "shortName": "ContactCenterInsights" }, "shortName": "CalculateIssueModelStats" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.contact_center_insights_v1.types.CalculateIssueModelStatsRequest" + }, + { + "name": "issue_model", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.contact_center_insights_v1.types.CalculateIssueModelStatsResponse", + "shortName": "calculate_issue_model_stats" }, + "description": "Sample for CalculateIssueModelStats", "file": "contactcenterinsights_v1_generated_contact_center_insights_calculate_issue_model_stats_async.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_CalculateIssueModelStats_async", "segments": [ { @@ -43,18 +88,54 @@ "start": 42, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "contactcenterinsights_v1_generated_contact_center_insights_calculate_issue_model_stats_async.py" }, { + "canonical": true, "clientMethod": { + "client": { + "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsClient", + "shortName": "ContactCenterInsightsClient" + }, + "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsClient.calculate_issue_model_stats", "method": { + "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.CalculateIssueModelStats", "service": { + "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights", "shortName": "ContactCenterInsights" }, "shortName": "CalculateIssueModelStats" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.contact_center_insights_v1.types.CalculateIssueModelStatsRequest" + }, + { + "name": "issue_model", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.contact_center_insights_v1.types.CalculateIssueModelStatsResponse", + "shortName": "calculate_issue_model_stats" }, + "description": "Sample for CalculateIssueModelStats", "file": "contactcenterinsights_v1_generated_contact_center_insights_calculate_issue_model_stats_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_CalculateIssueModelStats_sync", "segments": [ { @@ -87,19 +168,55 @@ "start": 42, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "contactcenterinsights_v1_generated_contact_center_insights_calculate_issue_model_stats_sync.py" }, { + "canonical": true, "clientMethod": { "async": true, + "client": { + "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsAsyncClient", + "shortName": "ContactCenterInsightsAsyncClient" + }, + "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsAsyncClient.calculate_stats", "method": { + "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.CalculateStats", "service": { + "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights", "shortName": "ContactCenterInsights" }, "shortName": "CalculateStats" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.contact_center_insights_v1.types.CalculateStatsRequest" + }, + { + "name": "location", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.contact_center_insights_v1.types.CalculateStatsResponse", + "shortName": "calculate_stats" }, + "description": "Sample for CalculateStats", "file": "contactcenterinsights_v1_generated_contact_center_insights_calculate_stats_async.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_CalculateStats_async", "segments": [ { @@ -132,18 +249,54 @@ "start": 42, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "contactcenterinsights_v1_generated_contact_center_insights_calculate_stats_async.py" }, { + "canonical": true, "clientMethod": { + "client": { + "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsClient", + "shortName": "ContactCenterInsightsClient" + }, + "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsClient.calculate_stats", "method": { + "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.CalculateStats", "service": { + "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights", "shortName": "ContactCenterInsights" }, "shortName": "CalculateStats" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.contact_center_insights_v1.types.CalculateStatsRequest" + }, + { + "name": "location", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.contact_center_insights_v1.types.CalculateStatsResponse", + "shortName": "calculate_stats" }, + "description": "Sample for CalculateStats", "file": "contactcenterinsights_v1_generated_contact_center_insights_calculate_stats_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_CalculateStats_sync", "segments": [ { @@ -176,19 +329,59 @@ "start": 42, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "contactcenterinsights_v1_generated_contact_center_insights_calculate_stats_sync.py" }, { + "canonical": true, "clientMethod": { "async": true, + "client": { + "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsAsyncClient", + "shortName": "ContactCenterInsightsAsyncClient" + }, + "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsAsyncClient.create_analysis", "method": { + "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.CreateAnalysis", "service": { + "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights", "shortName": "ContactCenterInsights" }, "shortName": "CreateAnalysis" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.contact_center_insights_v1.types.CreateAnalysisRequest" + }, + { + "name": "parent", + "type": "str" + }, + { + "name": "analysis", + "type": "google.cloud.contact_center_insights_v1.types.Analysis" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.operation_async.AsyncOperation", + "shortName": "create_analysis" }, + "description": "Sample for CreateAnalysis", "file": "contactcenterinsights_v1_generated_contact_center_insights_create_analysis_async.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_CreateAnalysis_async", "segments": [ { @@ -221,18 +414,58 @@ "start": 46, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "contactcenterinsights_v1_generated_contact_center_insights_create_analysis_async.py" }, { + "canonical": true, "clientMethod": { + "client": { + "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsClient", + "shortName": "ContactCenterInsightsClient" + }, + "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsClient.create_analysis", "method": { + "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.CreateAnalysis", "service": { + "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights", "shortName": "ContactCenterInsights" }, "shortName": "CreateAnalysis" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.contact_center_insights_v1.types.CreateAnalysisRequest" + }, + { + "name": "parent", + "type": "str" + }, + { + "name": "analysis", + "type": "google.cloud.contact_center_insights_v1.types.Analysis" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.operation.Operation", + "shortName": "create_analysis" }, + "description": "Sample for CreateAnalysis", "file": "contactcenterinsights_v1_generated_contact_center_insights_create_analysis_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_CreateAnalysis_sync", "segments": [ { @@ -265,19 +498,63 @@ "start": 46, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "contactcenterinsights_v1_generated_contact_center_insights_create_analysis_sync.py" }, { + "canonical": true, "clientMethod": { "async": true, + "client": { + "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsAsyncClient", + "shortName": "ContactCenterInsightsAsyncClient" + }, + "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsAsyncClient.create_conversation", "method": { + "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.CreateConversation", "service": { + "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights", "shortName": "ContactCenterInsights" }, "shortName": "CreateConversation" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.contact_center_insights_v1.types.CreateConversationRequest" + }, + { + "name": "parent", + "type": "str" + }, + { + "name": "conversation", + "type": "google.cloud.contact_center_insights_v1.types.Conversation" + }, + { + "name": "conversation_id", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.contact_center_insights_v1.types.Conversation", + "shortName": "create_conversation" }, + "description": "Sample for CreateConversation", "file": "contactcenterinsights_v1_generated_contact_center_insights_create_conversation_async.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_CreateConversation_async", "segments": [ { @@ -310,18 +587,62 @@ "start": 42, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "contactcenterinsights_v1_generated_contact_center_insights_create_conversation_async.py" }, { + "canonical": true, "clientMethod": { + "client": { + "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsClient", + "shortName": "ContactCenterInsightsClient" + }, + "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsClient.create_conversation", "method": { + "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.CreateConversation", "service": { + "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights", "shortName": "ContactCenterInsights" }, "shortName": "CreateConversation" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.contact_center_insights_v1.types.CreateConversationRequest" + }, + { + "name": "parent", + "type": "str" + }, + { + "name": "conversation", + "type": "google.cloud.contact_center_insights_v1.types.Conversation" + }, + { + "name": "conversation_id", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.contact_center_insights_v1.types.Conversation", + "shortName": "create_conversation" }, + "description": "Sample for CreateConversation", "file": "contactcenterinsights_v1_generated_contact_center_insights_create_conversation_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_CreateConversation_sync", "segments": [ { @@ -354,19 +675,59 @@ "start": 42, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "contactcenterinsights_v1_generated_contact_center_insights_create_conversation_sync.py" }, { + "canonical": true, "clientMethod": { "async": true, + "client": { + "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsAsyncClient", + "shortName": "ContactCenterInsightsAsyncClient" + }, + "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsAsyncClient.create_issue_model", "method": { + "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.CreateIssueModel", "service": { + "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights", "shortName": "ContactCenterInsights" }, "shortName": "CreateIssueModel" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.contact_center_insights_v1.types.CreateIssueModelRequest" + }, + { + "name": "parent", + "type": "str" + }, + { + "name": "issue_model", + "type": "google.cloud.contact_center_insights_v1.types.IssueModel" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.operation_async.AsyncOperation", + "shortName": "create_issue_model" }, + "description": "Sample for CreateIssueModel", "file": "contactcenterinsights_v1_generated_contact_center_insights_create_issue_model_async.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_CreateIssueModel_async", "segments": [ { @@ -399,18 +760,58 @@ "start": 46, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "contactcenterinsights_v1_generated_contact_center_insights_create_issue_model_async.py" }, { + "canonical": true, "clientMethod": { + "client": { + "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsClient", + "shortName": "ContactCenterInsightsClient" + }, + "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsClient.create_issue_model", "method": { + "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.CreateIssueModel", "service": { + "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights", "shortName": "ContactCenterInsights" }, "shortName": "CreateIssueModel" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.contact_center_insights_v1.types.CreateIssueModelRequest" + }, + { + "name": "parent", + "type": "str" + }, + { + "name": "issue_model", + "type": "google.cloud.contact_center_insights_v1.types.IssueModel" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.operation.Operation", + "shortName": "create_issue_model" }, + "description": "Sample for CreateIssueModel", "file": "contactcenterinsights_v1_generated_contact_center_insights_create_issue_model_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_CreateIssueModel_sync", "segments": [ { @@ -443,19 +844,59 @@ "start": 46, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "contactcenterinsights_v1_generated_contact_center_insights_create_issue_model_sync.py" }, { + "canonical": true, "clientMethod": { "async": true, + "client": { + "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsAsyncClient", + "shortName": "ContactCenterInsightsAsyncClient" + }, + "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsAsyncClient.create_phrase_matcher", "method": { + "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.CreatePhraseMatcher", "service": { + "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights", "shortName": "ContactCenterInsights" }, "shortName": "CreatePhraseMatcher" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.contact_center_insights_v1.types.CreatePhraseMatcherRequest" + }, + { + "name": "parent", + "type": "str" + }, + { + "name": "phrase_matcher", + "type": "google.cloud.contact_center_insights_v1.types.PhraseMatcher" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.contact_center_insights_v1.types.PhraseMatcher", + "shortName": "create_phrase_matcher" }, + "description": "Sample for CreatePhraseMatcher", "file": "contactcenterinsights_v1_generated_contact_center_insights_create_phrase_matcher_async.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_CreatePhraseMatcher_async", "segments": [ { @@ -488,18 +929,58 @@ "start": 46, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "contactcenterinsights_v1_generated_contact_center_insights_create_phrase_matcher_async.py" }, { + "canonical": true, "clientMethod": { + "client": { + "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsClient", + "shortName": "ContactCenterInsightsClient" + }, + "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsClient.create_phrase_matcher", "method": { + "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.CreatePhraseMatcher", "service": { + "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights", "shortName": "ContactCenterInsights" }, "shortName": "CreatePhraseMatcher" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.contact_center_insights_v1.types.CreatePhraseMatcherRequest" + }, + { + "name": "parent", + "type": "str" + }, + { + "name": "phrase_matcher", + "type": "google.cloud.contact_center_insights_v1.types.PhraseMatcher" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.contact_center_insights_v1.types.PhraseMatcher", + "shortName": "create_phrase_matcher" }, + "description": "Sample for CreatePhraseMatcher", "file": "contactcenterinsights_v1_generated_contact_center_insights_create_phrase_matcher_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_CreatePhraseMatcher_sync", "segments": [ { @@ -532,19 +1013,59 @@ "start": 46, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "contactcenterinsights_v1_generated_contact_center_insights_create_phrase_matcher_sync.py" }, { + "canonical": true, "clientMethod": { "async": true, + "client": { + "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsAsyncClient", + "shortName": "ContactCenterInsightsAsyncClient" + }, + "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsAsyncClient.create_view", "method": { + "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.CreateView", "service": { + "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights", "shortName": "ContactCenterInsights" }, "shortName": "CreateView" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.contact_center_insights_v1.types.CreateViewRequest" + }, + { + "name": "parent", + "type": "str" + }, + { + "name": "view", + "type": "google.cloud.contact_center_insights_v1.types.View" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.contact_center_insights_v1.types.View", + "shortName": "create_view" }, + "description": "Sample for CreateView", "file": "contactcenterinsights_v1_generated_contact_center_insights_create_view_async.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_CreateView_async", "segments": [ { @@ -577,18 +1098,58 @@ "start": 42, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "contactcenterinsights_v1_generated_contact_center_insights_create_view_async.py" }, { + "canonical": true, "clientMethod": { + "client": { + "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsClient", + "shortName": "ContactCenterInsightsClient" + }, + "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsClient.create_view", "method": { + "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.CreateView", "service": { + "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights", "shortName": "ContactCenterInsights" }, "shortName": "CreateView" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.contact_center_insights_v1.types.CreateViewRequest" + }, + { + "name": "parent", + "type": "str" + }, + { + "name": "view", + "type": "google.cloud.contact_center_insights_v1.types.View" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.contact_center_insights_v1.types.View", + "shortName": "create_view" }, + "description": "Sample for CreateView", "file": "contactcenterinsights_v1_generated_contact_center_insights_create_view_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_CreateView_sync", "segments": [ { @@ -621,19 +1182,54 @@ "start": 42, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "contactcenterinsights_v1_generated_contact_center_insights_create_view_sync.py" }, { + "canonical": true, "clientMethod": { "async": true, + "client": { + "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsAsyncClient", + "shortName": "ContactCenterInsightsAsyncClient" + }, + "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsAsyncClient.delete_analysis", "method": { + "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.DeleteAnalysis", "service": { + "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights", "shortName": "ContactCenterInsights" }, "shortName": "DeleteAnalysis" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.contact_center_insights_v1.types.DeleteAnalysisRequest" + }, + { + "name": "name", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "shortName": "delete_analysis" }, + "description": "Sample for DeleteAnalysis", "file": "contactcenterinsights_v1_generated_contact_center_insights_delete_analysis_async.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_DeleteAnalysis_async", "segments": [ { @@ -664,18 +1260,53 @@ "end": 43, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "contactcenterinsights_v1_generated_contact_center_insights_delete_analysis_async.py" }, { + "canonical": true, "clientMethod": { + "client": { + "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsClient", + "shortName": "ContactCenterInsightsClient" + }, + "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsClient.delete_analysis", "method": { + "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.DeleteAnalysis", "service": { + "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights", "shortName": "ContactCenterInsights" }, "shortName": "DeleteAnalysis" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.contact_center_insights_v1.types.DeleteAnalysisRequest" + }, + { + "name": "name", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "shortName": "delete_analysis" }, + "description": "Sample for DeleteAnalysis", "file": "contactcenterinsights_v1_generated_contact_center_insights_delete_analysis_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_DeleteAnalysis_sync", "segments": [ { @@ -706,19 +1337,54 @@ "end": 43, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "contactcenterinsights_v1_generated_contact_center_insights_delete_analysis_sync.py" }, { + "canonical": true, "clientMethod": { "async": true, + "client": { + "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsAsyncClient", + "shortName": "ContactCenterInsightsAsyncClient" + }, + "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsAsyncClient.delete_conversation", "method": { + "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.DeleteConversation", "service": { + "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights", "shortName": "ContactCenterInsights" }, "shortName": "DeleteConversation" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.contact_center_insights_v1.types.DeleteConversationRequest" + }, + { + "name": "name", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "shortName": "delete_conversation" }, + "description": "Sample for DeleteConversation", "file": "contactcenterinsights_v1_generated_contact_center_insights_delete_conversation_async.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_DeleteConversation_async", "segments": [ { @@ -749,18 +1415,53 @@ "end": 43, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "contactcenterinsights_v1_generated_contact_center_insights_delete_conversation_async.py" }, { + "canonical": true, "clientMethod": { + "client": { + "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsClient", + "shortName": "ContactCenterInsightsClient" + }, + "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsClient.delete_conversation", "method": { + "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.DeleteConversation", "service": { + "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights", "shortName": "ContactCenterInsights" }, "shortName": "DeleteConversation" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.contact_center_insights_v1.types.DeleteConversationRequest" + }, + { + "name": "name", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "shortName": "delete_conversation" }, + "description": "Sample for DeleteConversation", "file": "contactcenterinsights_v1_generated_contact_center_insights_delete_conversation_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_DeleteConversation_sync", "segments": [ { @@ -791,19 +1492,55 @@ "end": 43, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "contactcenterinsights_v1_generated_contact_center_insights_delete_conversation_sync.py" }, { + "canonical": true, "clientMethod": { "async": true, + "client": { + "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsAsyncClient", + "shortName": "ContactCenterInsightsAsyncClient" + }, + "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsAsyncClient.delete_issue_model", "method": { + "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.DeleteIssueModel", "service": { + "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights", "shortName": "ContactCenterInsights" }, "shortName": "DeleteIssueModel" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.contact_center_insights_v1.types.DeleteIssueModelRequest" + }, + { + "name": "name", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.operation_async.AsyncOperation", + "shortName": "delete_issue_model" }, + "description": "Sample for DeleteIssueModel", "file": "contactcenterinsights_v1_generated_contact_center_insights_delete_issue_model_async.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_DeleteIssueModel_async", "segments": [ { @@ -836,18 +1573,54 @@ "start": 46, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "contactcenterinsights_v1_generated_contact_center_insights_delete_issue_model_async.py" }, { + "canonical": true, "clientMethod": { + "client": { + "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsClient", + "shortName": "ContactCenterInsightsClient" + }, + "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsClient.delete_issue_model", "method": { + "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.DeleteIssueModel", "service": { + "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights", "shortName": "ContactCenterInsights" }, "shortName": "DeleteIssueModel" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.contact_center_insights_v1.types.DeleteIssueModelRequest" + }, + { + "name": "name", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.operation.Operation", + "shortName": "delete_issue_model" }, + "description": "Sample for DeleteIssueModel", "file": "contactcenterinsights_v1_generated_contact_center_insights_delete_issue_model_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_DeleteIssueModel_sync", "segments": [ { @@ -880,19 +1653,54 @@ "start": 46, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "contactcenterinsights_v1_generated_contact_center_insights_delete_issue_model_sync.py" }, { + "canonical": true, "clientMethod": { "async": true, + "client": { + "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsAsyncClient", + "shortName": "ContactCenterInsightsAsyncClient" + }, + "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsAsyncClient.delete_phrase_matcher", "method": { + "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.DeletePhraseMatcher", "service": { + "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights", "shortName": "ContactCenterInsights" }, "shortName": "DeletePhraseMatcher" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.contact_center_insights_v1.types.DeletePhraseMatcherRequest" + }, + { + "name": "name", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "shortName": "delete_phrase_matcher" }, + "description": "Sample for DeletePhraseMatcher", "file": "contactcenterinsights_v1_generated_contact_center_insights_delete_phrase_matcher_async.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_DeletePhraseMatcher_async", "segments": [ { @@ -923,18 +1731,53 @@ "end": 43, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "contactcenterinsights_v1_generated_contact_center_insights_delete_phrase_matcher_async.py" }, { + "canonical": true, "clientMethod": { + "client": { + "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsClient", + "shortName": "ContactCenterInsightsClient" + }, + "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsClient.delete_phrase_matcher", "method": { + "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.DeletePhraseMatcher", "service": { + "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights", "shortName": "ContactCenterInsights" }, "shortName": "DeletePhraseMatcher" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.contact_center_insights_v1.types.DeletePhraseMatcherRequest" + }, + { + "name": "name", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "shortName": "delete_phrase_matcher" }, + "description": "Sample for DeletePhraseMatcher", "file": "contactcenterinsights_v1_generated_contact_center_insights_delete_phrase_matcher_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_DeletePhraseMatcher_sync", "segments": [ { @@ -965,19 +1808,54 @@ "end": 43, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "contactcenterinsights_v1_generated_contact_center_insights_delete_phrase_matcher_sync.py" }, { + "canonical": true, "clientMethod": { "async": true, + "client": { + "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsAsyncClient", + "shortName": "ContactCenterInsightsAsyncClient" + }, + "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsAsyncClient.delete_view", "method": { + "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.DeleteView", "service": { + "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights", "shortName": "ContactCenterInsights" }, "shortName": "DeleteView" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.contact_center_insights_v1.types.DeleteViewRequest" + }, + { + "name": "name", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "shortName": "delete_view" }, + "description": "Sample for DeleteView", "file": "contactcenterinsights_v1_generated_contact_center_insights_delete_view_async.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_DeleteView_async", "segments": [ { @@ -1008,18 +1886,53 @@ "end": 43, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "contactcenterinsights_v1_generated_contact_center_insights_delete_view_async.py" }, { + "canonical": true, "clientMethod": { + "client": { + "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsClient", + "shortName": "ContactCenterInsightsClient" + }, + "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsClient.delete_view", "method": { + "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.DeleteView", "service": { + "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights", "shortName": "ContactCenterInsights" }, "shortName": "DeleteView" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.contact_center_insights_v1.types.DeleteViewRequest" + }, + { + "name": "name", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "shortName": "delete_view" }, + "description": "Sample for DeleteView", "file": "contactcenterinsights_v1_generated_contact_center_insights_delete_view_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_DeleteView_sync", "segments": [ { @@ -1050,19 +1963,55 @@ "end": 43, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "contactcenterinsights_v1_generated_contact_center_insights_delete_view_sync.py" }, { + "canonical": true, "clientMethod": { "async": true, + "client": { + "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsAsyncClient", + "shortName": "ContactCenterInsightsAsyncClient" + }, + "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsAsyncClient.deploy_issue_model", "method": { + "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.DeployIssueModel", "service": { + "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights", "shortName": "ContactCenterInsights" }, "shortName": "DeployIssueModel" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.contact_center_insights_v1.types.DeployIssueModelRequest" + }, + { + "name": "name", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.operation_async.AsyncOperation", + "shortName": "deploy_issue_model" }, + "description": "Sample for DeployIssueModel", "file": "contactcenterinsights_v1_generated_contact_center_insights_deploy_issue_model_async.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_DeployIssueModel_async", "segments": [ { @@ -1095,18 +2044,54 @@ "start": 46, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "contactcenterinsights_v1_generated_contact_center_insights_deploy_issue_model_async.py" }, { + "canonical": true, "clientMethod": { + "client": { + "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsClient", + "shortName": "ContactCenterInsightsClient" + }, + "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsClient.deploy_issue_model", "method": { + "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.DeployIssueModel", "service": { + "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights", "shortName": "ContactCenterInsights" }, "shortName": "DeployIssueModel" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.contact_center_insights_v1.types.DeployIssueModelRequest" + }, + { + "name": "name", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.operation.Operation", + "shortName": "deploy_issue_model" }, + "description": "Sample for DeployIssueModel", "file": "contactcenterinsights_v1_generated_contact_center_insights_deploy_issue_model_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_DeployIssueModel_sync", "segments": [ { @@ -1139,19 +2124,55 @@ "start": 46, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "contactcenterinsights_v1_generated_contact_center_insights_deploy_issue_model_sync.py" }, { + "canonical": true, "clientMethod": { "async": true, + "client": { + "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsAsyncClient", + "shortName": "ContactCenterInsightsAsyncClient" + }, + "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsAsyncClient.export_insights_data", "method": { + "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.ExportInsightsData", "service": { + "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights", "shortName": "ContactCenterInsights" }, "shortName": "ExportInsightsData" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.contact_center_insights_v1.types.ExportInsightsDataRequest" + }, + { + "name": "parent", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.operation_async.AsyncOperation", + "shortName": "export_insights_data" }, + "description": "Sample for ExportInsightsData", "file": "contactcenterinsights_v1_generated_contact_center_insights_export_insights_data_async.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_ExportInsightsData_async", "segments": [ { @@ -1184,18 +2205,54 @@ "start": 50, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "contactcenterinsights_v1_generated_contact_center_insights_export_insights_data_async.py" }, { + "canonical": true, "clientMethod": { + "client": { + "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsClient", + "shortName": "ContactCenterInsightsClient" + }, + "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsClient.export_insights_data", "method": { + "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.ExportInsightsData", "service": { + "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights", "shortName": "ContactCenterInsights" }, "shortName": "ExportInsightsData" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.contact_center_insights_v1.types.ExportInsightsDataRequest" + }, + { + "name": "parent", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.operation.Operation", + "shortName": "export_insights_data" }, + "description": "Sample for ExportInsightsData", "file": "contactcenterinsights_v1_generated_contact_center_insights_export_insights_data_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_ExportInsightsData_sync", "segments": [ { @@ -1228,19 +2285,55 @@ "start": 50, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "contactcenterinsights_v1_generated_contact_center_insights_export_insights_data_sync.py" }, { + "canonical": true, "clientMethod": { "async": true, + "client": { + "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsAsyncClient", + "shortName": "ContactCenterInsightsAsyncClient" + }, + "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsAsyncClient.get_analysis", "method": { + "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.GetAnalysis", "service": { + "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights", "shortName": "ContactCenterInsights" }, "shortName": "GetAnalysis" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.contact_center_insights_v1.types.GetAnalysisRequest" + }, + { + "name": "name", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.contact_center_insights_v1.types.Analysis", + "shortName": "get_analysis" }, + "description": "Sample for GetAnalysis", "file": "contactcenterinsights_v1_generated_contact_center_insights_get_analysis_async.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_GetAnalysis_async", "segments": [ { @@ -1273,18 +2366,54 @@ "start": 42, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "contactcenterinsights_v1_generated_contact_center_insights_get_analysis_async.py" }, { + "canonical": true, "clientMethod": { + "client": { + "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsClient", + "shortName": "ContactCenterInsightsClient" + }, + "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsClient.get_analysis", "method": { + "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.GetAnalysis", "service": { + "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights", "shortName": "ContactCenterInsights" }, "shortName": "GetAnalysis" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.contact_center_insights_v1.types.GetAnalysisRequest" + }, + { + "name": "name", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.contact_center_insights_v1.types.Analysis", + "shortName": "get_analysis" }, + "description": "Sample for GetAnalysis", "file": "contactcenterinsights_v1_generated_contact_center_insights_get_analysis_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_GetAnalysis_sync", "segments": [ { @@ -1317,19 +2446,55 @@ "start": 42, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "contactcenterinsights_v1_generated_contact_center_insights_get_analysis_sync.py" }, { + "canonical": true, "clientMethod": { "async": true, + "client": { + "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsAsyncClient", + "shortName": "ContactCenterInsightsAsyncClient" + }, + "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsAsyncClient.get_conversation", "method": { + "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.GetConversation", "service": { + "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights", "shortName": "ContactCenterInsights" }, "shortName": "GetConversation" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.contact_center_insights_v1.types.GetConversationRequest" + }, + { + "name": "name", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.contact_center_insights_v1.types.Conversation", + "shortName": "get_conversation" }, + "description": "Sample for GetConversation", "file": "contactcenterinsights_v1_generated_contact_center_insights_get_conversation_async.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_GetConversation_async", "segments": [ { @@ -1362,18 +2527,54 @@ "start": 42, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "contactcenterinsights_v1_generated_contact_center_insights_get_conversation_async.py" }, { + "canonical": true, "clientMethod": { + "client": { + "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsClient", + "shortName": "ContactCenterInsightsClient" + }, + "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsClient.get_conversation", "method": { + "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.GetConversation", "service": { + "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights", "shortName": "ContactCenterInsights" }, "shortName": "GetConversation" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.contact_center_insights_v1.types.GetConversationRequest" + }, + { + "name": "name", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.contact_center_insights_v1.types.Conversation", + "shortName": "get_conversation" }, + "description": "Sample for GetConversation", "file": "contactcenterinsights_v1_generated_contact_center_insights_get_conversation_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_GetConversation_sync", "segments": [ { @@ -1406,19 +2607,55 @@ "start": 42, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "contactcenterinsights_v1_generated_contact_center_insights_get_conversation_sync.py" }, { + "canonical": true, "clientMethod": { "async": true, + "client": { + "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsAsyncClient", + "shortName": "ContactCenterInsightsAsyncClient" + }, + "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsAsyncClient.get_issue_model", "method": { + "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.GetIssueModel", "service": { + "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights", "shortName": "ContactCenterInsights" }, "shortName": "GetIssueModel" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.contact_center_insights_v1.types.GetIssueModelRequest" + }, + { + "name": "name", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.contact_center_insights_v1.types.IssueModel", + "shortName": "get_issue_model" }, + "description": "Sample for GetIssueModel", "file": "contactcenterinsights_v1_generated_contact_center_insights_get_issue_model_async.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_GetIssueModel_async", "segments": [ { @@ -1451,18 +2688,54 @@ "start": 42, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "contactcenterinsights_v1_generated_contact_center_insights_get_issue_model_async.py" }, { + "canonical": true, "clientMethod": { + "client": { + "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsClient", + "shortName": "ContactCenterInsightsClient" + }, + "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsClient.get_issue_model", "method": { + "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.GetIssueModel", "service": { + "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights", "shortName": "ContactCenterInsights" }, "shortName": "GetIssueModel" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.contact_center_insights_v1.types.GetIssueModelRequest" + }, + { + "name": "name", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.contact_center_insights_v1.types.IssueModel", + "shortName": "get_issue_model" }, + "description": "Sample for GetIssueModel", "file": "contactcenterinsights_v1_generated_contact_center_insights_get_issue_model_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_GetIssueModel_sync", "segments": [ { @@ -1495,19 +2768,55 @@ "start": 42, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "contactcenterinsights_v1_generated_contact_center_insights_get_issue_model_sync.py" }, { + "canonical": true, "clientMethod": { "async": true, + "client": { + "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsAsyncClient", + "shortName": "ContactCenterInsightsAsyncClient" + }, + "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsAsyncClient.get_issue", "method": { + "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.GetIssue", "service": { + "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights", "shortName": "ContactCenterInsights" }, "shortName": "GetIssue" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.contact_center_insights_v1.types.GetIssueRequest" + }, + { + "name": "name", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.contact_center_insights_v1.types.Issue", + "shortName": "get_issue" }, + "description": "Sample for GetIssue", "file": "contactcenterinsights_v1_generated_contact_center_insights_get_issue_async.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_GetIssue_async", "segments": [ { @@ -1540,18 +2849,54 @@ "start": 42, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "contactcenterinsights_v1_generated_contact_center_insights_get_issue_async.py" }, { + "canonical": true, "clientMethod": { + "client": { + "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsClient", + "shortName": "ContactCenterInsightsClient" + }, + "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsClient.get_issue", "method": { + "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.GetIssue", "service": { + "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights", "shortName": "ContactCenterInsights" }, "shortName": "GetIssue" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.contact_center_insights_v1.types.GetIssueRequest" + }, + { + "name": "name", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.contact_center_insights_v1.types.Issue", + "shortName": "get_issue" }, + "description": "Sample for GetIssue", "file": "contactcenterinsights_v1_generated_contact_center_insights_get_issue_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_GetIssue_sync", "segments": [ { @@ -1584,19 +2929,55 @@ "start": 42, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "contactcenterinsights_v1_generated_contact_center_insights_get_issue_sync.py" }, { + "canonical": true, "clientMethod": { "async": true, + "client": { + "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsAsyncClient", + "shortName": "ContactCenterInsightsAsyncClient" + }, + "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsAsyncClient.get_phrase_matcher", "method": { + "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.GetPhraseMatcher", "service": { + "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights", "shortName": "ContactCenterInsights" }, "shortName": "GetPhraseMatcher" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.contact_center_insights_v1.types.GetPhraseMatcherRequest" + }, + { + "name": "name", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.contact_center_insights_v1.types.PhraseMatcher", + "shortName": "get_phrase_matcher" }, + "description": "Sample for GetPhraseMatcher", "file": "contactcenterinsights_v1_generated_contact_center_insights_get_phrase_matcher_async.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_GetPhraseMatcher_async", "segments": [ { @@ -1629,18 +3010,54 @@ "start": 42, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "contactcenterinsights_v1_generated_contact_center_insights_get_phrase_matcher_async.py" }, { + "canonical": true, "clientMethod": { + "client": { + "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsClient", + "shortName": "ContactCenterInsightsClient" + }, + "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsClient.get_phrase_matcher", "method": { + "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.GetPhraseMatcher", "service": { + "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights", "shortName": "ContactCenterInsights" }, "shortName": "GetPhraseMatcher" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.contact_center_insights_v1.types.GetPhraseMatcherRequest" + }, + { + "name": "name", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.contact_center_insights_v1.types.PhraseMatcher", + "shortName": "get_phrase_matcher" }, + "description": "Sample for GetPhraseMatcher", "file": "contactcenterinsights_v1_generated_contact_center_insights_get_phrase_matcher_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_GetPhraseMatcher_sync", "segments": [ { @@ -1673,19 +3090,55 @@ "start": 42, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "contactcenterinsights_v1_generated_contact_center_insights_get_phrase_matcher_sync.py" }, { + "canonical": true, "clientMethod": { "async": true, + "client": { + "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsAsyncClient", + "shortName": "ContactCenterInsightsAsyncClient" + }, + "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsAsyncClient.get_settings", "method": { + "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.GetSettings", "service": { + "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights", "shortName": "ContactCenterInsights" }, "shortName": "GetSettings" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.contact_center_insights_v1.types.GetSettingsRequest" + }, + { + "name": "name", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.contact_center_insights_v1.types.Settings", + "shortName": "get_settings" }, + "description": "Sample for GetSettings", "file": "contactcenterinsights_v1_generated_contact_center_insights_get_settings_async.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_GetSettings_async", "segments": [ { @@ -1718,18 +3171,54 @@ "start": 42, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "contactcenterinsights_v1_generated_contact_center_insights_get_settings_async.py" }, { + "canonical": true, "clientMethod": { + "client": { + "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsClient", + "shortName": "ContactCenterInsightsClient" + }, + "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsClient.get_settings", "method": { + "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.GetSettings", "service": { + "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights", "shortName": "ContactCenterInsights" }, "shortName": "GetSettings" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.contact_center_insights_v1.types.GetSettingsRequest" + }, + { + "name": "name", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.contact_center_insights_v1.types.Settings", + "shortName": "get_settings" }, + "description": "Sample for GetSettings", "file": "contactcenterinsights_v1_generated_contact_center_insights_get_settings_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_GetSettings_sync", "segments": [ { @@ -1762,19 +3251,55 @@ "start": 42, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "contactcenterinsights_v1_generated_contact_center_insights_get_settings_sync.py" }, { + "canonical": true, "clientMethod": { "async": true, + "client": { + "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsAsyncClient", + "shortName": "ContactCenterInsightsAsyncClient" + }, + "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsAsyncClient.get_view", "method": { + "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.GetView", "service": { + "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights", "shortName": "ContactCenterInsights" }, "shortName": "GetView" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.contact_center_insights_v1.types.GetViewRequest" + }, + { + "name": "name", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.contact_center_insights_v1.types.View", + "shortName": "get_view" }, + "description": "Sample for GetView", "file": "contactcenterinsights_v1_generated_contact_center_insights_get_view_async.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_GetView_async", "segments": [ { @@ -1807,18 +3332,54 @@ "start": 42, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "contactcenterinsights_v1_generated_contact_center_insights_get_view_async.py" }, { + "canonical": true, "clientMethod": { + "client": { + "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsClient", + "shortName": "ContactCenterInsightsClient" + }, + "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsClient.get_view", "method": { + "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.GetView", "service": { + "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights", "shortName": "ContactCenterInsights" }, "shortName": "GetView" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.contact_center_insights_v1.types.GetViewRequest" + }, + { + "name": "name", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.contact_center_insights_v1.types.View", + "shortName": "get_view" }, + "description": "Sample for GetView", "file": "contactcenterinsights_v1_generated_contact_center_insights_get_view_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_GetView_sync", "segments": [ { @@ -1851,19 +3412,55 @@ "start": 42, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "contactcenterinsights_v1_generated_contact_center_insights_get_view_sync.py" }, { + "canonical": true, "clientMethod": { "async": true, + "client": { + "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsAsyncClient", + "shortName": "ContactCenterInsightsAsyncClient" + }, + "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsAsyncClient.list_analyses", "method": { + "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.ListAnalyses", "service": { + "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights", "shortName": "ContactCenterInsights" }, "shortName": "ListAnalyses" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.contact_center_insights_v1.types.ListAnalysesRequest" + }, + { + "name": "parent", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.contact_center_insights_v1.services.contact_center_insights.pagers.ListAnalysesAsyncPager", + "shortName": "list_analyses" }, + "description": "Sample for ListAnalyses", "file": "contactcenterinsights_v1_generated_contact_center_insights_list_analyses_async.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_ListAnalyses_async", "segments": [ { @@ -1896,18 +3493,54 @@ "start": 42, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "contactcenterinsights_v1_generated_contact_center_insights_list_analyses_async.py" }, { + "canonical": true, "clientMethod": { + "client": { + "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsClient", + "shortName": "ContactCenterInsightsClient" + }, + "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsClient.list_analyses", "method": { + "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.ListAnalyses", "service": { + "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights", "shortName": "ContactCenterInsights" }, "shortName": "ListAnalyses" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.contact_center_insights_v1.types.ListAnalysesRequest" + }, + { + "name": "parent", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.contact_center_insights_v1.services.contact_center_insights.pagers.ListAnalysesPager", + "shortName": "list_analyses" }, + "description": "Sample for ListAnalyses", "file": "contactcenterinsights_v1_generated_contact_center_insights_list_analyses_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_ListAnalyses_sync", "segments": [ { @@ -1940,19 +3573,55 @@ "start": 42, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "contactcenterinsights_v1_generated_contact_center_insights_list_analyses_sync.py" }, { + "canonical": true, "clientMethod": { "async": true, + "client": { + "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsAsyncClient", + "shortName": "ContactCenterInsightsAsyncClient" + }, + "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsAsyncClient.list_conversations", "method": { + "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.ListConversations", "service": { + "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights", "shortName": "ContactCenterInsights" }, "shortName": "ListConversations" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.contact_center_insights_v1.types.ListConversationsRequest" + }, + { + "name": "parent", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.contact_center_insights_v1.services.contact_center_insights.pagers.ListConversationsAsyncPager", + "shortName": "list_conversations" }, + "description": "Sample for ListConversations", "file": "contactcenterinsights_v1_generated_contact_center_insights_list_conversations_async.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_ListConversations_async", "segments": [ { @@ -1985,18 +3654,54 @@ "start": 42, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "contactcenterinsights_v1_generated_contact_center_insights_list_conversations_async.py" }, { + "canonical": true, "clientMethod": { + "client": { + "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsClient", + "shortName": "ContactCenterInsightsClient" + }, + "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsClient.list_conversations", "method": { + "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.ListConversations", "service": { + "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights", "shortName": "ContactCenterInsights" }, "shortName": "ListConversations" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.contact_center_insights_v1.types.ListConversationsRequest" + }, + { + "name": "parent", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.contact_center_insights_v1.services.contact_center_insights.pagers.ListConversationsPager", + "shortName": "list_conversations" }, + "description": "Sample for ListConversations", "file": "contactcenterinsights_v1_generated_contact_center_insights_list_conversations_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_ListConversations_sync", "segments": [ { @@ -2029,19 +3734,55 @@ "start": 42, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "contactcenterinsights_v1_generated_contact_center_insights_list_conversations_sync.py" }, { + "canonical": true, "clientMethod": { "async": true, + "client": { + "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsAsyncClient", + "shortName": "ContactCenterInsightsAsyncClient" + }, + "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsAsyncClient.list_issue_models", "method": { + "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.ListIssueModels", "service": { + "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights", "shortName": "ContactCenterInsights" }, "shortName": "ListIssueModels" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.contact_center_insights_v1.types.ListIssueModelsRequest" + }, + { + "name": "parent", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.contact_center_insights_v1.types.ListIssueModelsResponse", + "shortName": "list_issue_models" }, + "description": "Sample for ListIssueModels", "file": "contactcenterinsights_v1_generated_contact_center_insights_list_issue_models_async.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_ListIssueModels_async", "segments": [ { @@ -2074,18 +3815,54 @@ "start": 42, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "contactcenterinsights_v1_generated_contact_center_insights_list_issue_models_async.py" }, { + "canonical": true, "clientMethod": { + "client": { + "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsClient", + "shortName": "ContactCenterInsightsClient" + }, + "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsClient.list_issue_models", "method": { + "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.ListIssueModels", "service": { + "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights", "shortName": "ContactCenterInsights" }, "shortName": "ListIssueModels" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.contact_center_insights_v1.types.ListIssueModelsRequest" + }, + { + "name": "parent", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.contact_center_insights_v1.types.ListIssueModelsResponse", + "shortName": "list_issue_models" }, + "description": "Sample for ListIssueModels", "file": "contactcenterinsights_v1_generated_contact_center_insights_list_issue_models_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_ListIssueModels_sync", "segments": [ { @@ -2118,19 +3895,55 @@ "start": 42, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "contactcenterinsights_v1_generated_contact_center_insights_list_issue_models_sync.py" }, { + "canonical": true, "clientMethod": { "async": true, + "client": { + "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsAsyncClient", + "shortName": "ContactCenterInsightsAsyncClient" + }, + "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsAsyncClient.list_issues", "method": { + "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.ListIssues", "service": { + "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights", "shortName": "ContactCenterInsights" }, "shortName": "ListIssues" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.contact_center_insights_v1.types.ListIssuesRequest" + }, + { + "name": "parent", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.contact_center_insights_v1.types.ListIssuesResponse", + "shortName": "list_issues" }, + "description": "Sample for ListIssues", "file": "contactcenterinsights_v1_generated_contact_center_insights_list_issues_async.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_ListIssues_async", "segments": [ { @@ -2163,18 +3976,54 @@ "start": 42, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "contactcenterinsights_v1_generated_contact_center_insights_list_issues_async.py" }, { + "canonical": true, "clientMethod": { + "client": { + "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsClient", + "shortName": "ContactCenterInsightsClient" + }, + "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsClient.list_issues", "method": { + "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.ListIssues", "service": { + "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights", "shortName": "ContactCenterInsights" }, "shortName": "ListIssues" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.contact_center_insights_v1.types.ListIssuesRequest" + }, + { + "name": "parent", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.contact_center_insights_v1.types.ListIssuesResponse", + "shortName": "list_issues" }, + "description": "Sample for ListIssues", "file": "contactcenterinsights_v1_generated_contact_center_insights_list_issues_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_ListIssues_sync", "segments": [ { @@ -2207,19 +4056,55 @@ "start": 42, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "contactcenterinsights_v1_generated_contact_center_insights_list_issues_sync.py" }, { + "canonical": true, "clientMethod": { "async": true, + "client": { + "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsAsyncClient", + "shortName": "ContactCenterInsightsAsyncClient" + }, + "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsAsyncClient.list_phrase_matchers", "method": { + "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.ListPhraseMatchers", "service": { + "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights", "shortName": "ContactCenterInsights" }, "shortName": "ListPhraseMatchers" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.contact_center_insights_v1.types.ListPhraseMatchersRequest" + }, + { + "name": "parent", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.contact_center_insights_v1.services.contact_center_insights.pagers.ListPhraseMatchersAsyncPager", + "shortName": "list_phrase_matchers" }, + "description": "Sample for ListPhraseMatchers", "file": "contactcenterinsights_v1_generated_contact_center_insights_list_phrase_matchers_async.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_ListPhraseMatchers_async", "segments": [ { @@ -2252,18 +4137,54 @@ "start": 42, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "contactcenterinsights_v1_generated_contact_center_insights_list_phrase_matchers_async.py" }, { + "canonical": true, "clientMethod": { + "client": { + "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsClient", + "shortName": "ContactCenterInsightsClient" + }, + "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsClient.list_phrase_matchers", "method": { + "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.ListPhraseMatchers", "service": { + "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights", "shortName": "ContactCenterInsights" }, "shortName": "ListPhraseMatchers" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.contact_center_insights_v1.types.ListPhraseMatchersRequest" + }, + { + "name": "parent", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.contact_center_insights_v1.services.contact_center_insights.pagers.ListPhraseMatchersPager", + "shortName": "list_phrase_matchers" }, + "description": "Sample for ListPhraseMatchers", "file": "contactcenterinsights_v1_generated_contact_center_insights_list_phrase_matchers_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_ListPhraseMatchers_sync", "segments": [ { @@ -2296,19 +4217,55 @@ "start": 42, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "contactcenterinsights_v1_generated_contact_center_insights_list_phrase_matchers_sync.py" }, { + "canonical": true, "clientMethod": { "async": true, + "client": { + "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsAsyncClient", + "shortName": "ContactCenterInsightsAsyncClient" + }, + "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsAsyncClient.list_views", "method": { + "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.ListViews", "service": { + "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights", "shortName": "ContactCenterInsights" }, "shortName": "ListViews" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.contact_center_insights_v1.types.ListViewsRequest" + }, + { + "name": "parent", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.contact_center_insights_v1.services.contact_center_insights.pagers.ListViewsAsyncPager", + "shortName": "list_views" }, + "description": "Sample for ListViews", "file": "contactcenterinsights_v1_generated_contact_center_insights_list_views_async.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_ListViews_async", "segments": [ { @@ -2341,18 +4298,54 @@ "start": 42, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "contactcenterinsights_v1_generated_contact_center_insights_list_views_async.py" }, { + "canonical": true, "clientMethod": { + "client": { + "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsClient", + "shortName": "ContactCenterInsightsClient" + }, + "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsClient.list_views", "method": { + "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.ListViews", "service": { + "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights", "shortName": "ContactCenterInsights" }, "shortName": "ListViews" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.contact_center_insights_v1.types.ListViewsRequest" + }, + { + "name": "parent", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.contact_center_insights_v1.services.contact_center_insights.pagers.ListViewsPager", + "shortName": "list_views" }, + "description": "Sample for ListViews", "file": "contactcenterinsights_v1_generated_contact_center_insights_list_views_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_ListViews_sync", "segments": [ { @@ -2385,19 +4378,55 @@ "start": 42, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "contactcenterinsights_v1_generated_contact_center_insights_list_views_sync.py" }, { + "canonical": true, "clientMethod": { "async": true, + "client": { + "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsAsyncClient", + "shortName": "ContactCenterInsightsAsyncClient" + }, + "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsAsyncClient.undeploy_issue_model", "method": { + "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.UndeployIssueModel", "service": { + "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights", "shortName": "ContactCenterInsights" }, "shortName": "UndeployIssueModel" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.contact_center_insights_v1.types.UndeployIssueModelRequest" + }, + { + "name": "name", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.operation_async.AsyncOperation", + "shortName": "undeploy_issue_model" }, + "description": "Sample for UndeployIssueModel", "file": "contactcenterinsights_v1_generated_contact_center_insights_undeploy_issue_model_async.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_UndeployIssueModel_async", "segments": [ { @@ -2430,18 +4459,54 @@ "start": 46, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "contactcenterinsights_v1_generated_contact_center_insights_undeploy_issue_model_async.py" }, { + "canonical": true, "clientMethod": { + "client": { + "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsClient", + "shortName": "ContactCenterInsightsClient" + }, + "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsClient.undeploy_issue_model", "method": { + "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.UndeployIssueModel", "service": { + "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights", "shortName": "ContactCenterInsights" }, "shortName": "UndeployIssueModel" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.contact_center_insights_v1.types.UndeployIssueModelRequest" + }, + { + "name": "name", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.operation.Operation", + "shortName": "undeploy_issue_model" }, + "description": "Sample for UndeployIssueModel", "file": "contactcenterinsights_v1_generated_contact_center_insights_undeploy_issue_model_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_UndeployIssueModel_sync", "segments": [ { @@ -2474,19 +4539,59 @@ "start": 46, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "contactcenterinsights_v1_generated_contact_center_insights_undeploy_issue_model_sync.py" }, { + "canonical": true, "clientMethod": { "async": true, + "client": { + "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsAsyncClient", + "shortName": "ContactCenterInsightsAsyncClient" + }, + "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsAsyncClient.update_conversation", "method": { + "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.UpdateConversation", "service": { + "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights", "shortName": "ContactCenterInsights" }, "shortName": "UpdateConversation" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.contact_center_insights_v1.types.UpdateConversationRequest" + }, + { + "name": "conversation", + "type": "google.cloud.contact_center_insights_v1.types.Conversation" + }, + { + "name": "update_mask", + "type": "google.protobuf.field_mask_pb2.FieldMask" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.contact_center_insights_v1.types.Conversation", + "shortName": "update_conversation" }, + "description": "Sample for UpdateConversation", "file": "contactcenterinsights_v1_generated_contact_center_insights_update_conversation_async.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_UpdateConversation_async", "segments": [ { @@ -2519,18 +4624,58 @@ "start": 41, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "contactcenterinsights_v1_generated_contact_center_insights_update_conversation_async.py" }, { + "canonical": true, "clientMethod": { + "client": { + "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsClient", + "shortName": "ContactCenterInsightsClient" + }, + "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsClient.update_conversation", "method": { + "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.UpdateConversation", "service": { + "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights", "shortName": "ContactCenterInsights" }, "shortName": "UpdateConversation" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.contact_center_insights_v1.types.UpdateConversationRequest" + }, + { + "name": "conversation", + "type": "google.cloud.contact_center_insights_v1.types.Conversation" + }, + { + "name": "update_mask", + "type": "google.protobuf.field_mask_pb2.FieldMask" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.contact_center_insights_v1.types.Conversation", + "shortName": "update_conversation" }, + "description": "Sample for UpdateConversation", "file": "contactcenterinsights_v1_generated_contact_center_insights_update_conversation_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_UpdateConversation_sync", "segments": [ { @@ -2563,19 +4708,59 @@ "start": 41, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "contactcenterinsights_v1_generated_contact_center_insights_update_conversation_sync.py" }, { + "canonical": true, "clientMethod": { "async": true, + "client": { + "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsAsyncClient", + "shortName": "ContactCenterInsightsAsyncClient" + }, + "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsAsyncClient.update_issue_model", "method": { + "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.UpdateIssueModel", "service": { + "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights", "shortName": "ContactCenterInsights" }, "shortName": "UpdateIssueModel" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.contact_center_insights_v1.types.UpdateIssueModelRequest" + }, + { + "name": "issue_model", + "type": "google.cloud.contact_center_insights_v1.types.IssueModel" + }, + { + "name": "update_mask", + "type": "google.protobuf.field_mask_pb2.FieldMask" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.contact_center_insights_v1.types.IssueModel", + "shortName": "update_issue_model" }, + "description": "Sample for UpdateIssueModel", "file": "contactcenterinsights_v1_generated_contact_center_insights_update_issue_model_async.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_UpdateIssueModel_async", "segments": [ { @@ -2608,18 +4793,58 @@ "start": 41, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "contactcenterinsights_v1_generated_contact_center_insights_update_issue_model_async.py" }, { + "canonical": true, "clientMethod": { + "client": { + "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsClient", + "shortName": "ContactCenterInsightsClient" + }, + "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsClient.update_issue_model", "method": { + "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.UpdateIssueModel", "service": { + "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights", "shortName": "ContactCenterInsights" }, "shortName": "UpdateIssueModel" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.contact_center_insights_v1.types.UpdateIssueModelRequest" + }, + { + "name": "issue_model", + "type": "google.cloud.contact_center_insights_v1.types.IssueModel" + }, + { + "name": "update_mask", + "type": "google.protobuf.field_mask_pb2.FieldMask" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.contact_center_insights_v1.types.IssueModel", + "shortName": "update_issue_model" }, + "description": "Sample for UpdateIssueModel", "file": "contactcenterinsights_v1_generated_contact_center_insights_update_issue_model_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_UpdateIssueModel_sync", "segments": [ { @@ -2652,19 +4877,59 @@ "start": 41, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "contactcenterinsights_v1_generated_contact_center_insights_update_issue_model_sync.py" }, { + "canonical": true, "clientMethod": { "async": true, + "client": { + "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsAsyncClient", + "shortName": "ContactCenterInsightsAsyncClient" + }, + "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsAsyncClient.update_issue", "method": { + "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.UpdateIssue", "service": { + "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights", "shortName": "ContactCenterInsights" }, "shortName": "UpdateIssue" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.contact_center_insights_v1.types.UpdateIssueRequest" + }, + { + "name": "issue", + "type": "google.cloud.contact_center_insights_v1.types.Issue" + }, + { + "name": "update_mask", + "type": "google.protobuf.field_mask_pb2.FieldMask" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.contact_center_insights_v1.types.Issue", + "shortName": "update_issue" }, + "description": "Sample for UpdateIssue", "file": "contactcenterinsights_v1_generated_contact_center_insights_update_issue_async.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_UpdateIssue_async", "segments": [ { @@ -2697,18 +4962,58 @@ "start": 41, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "contactcenterinsights_v1_generated_contact_center_insights_update_issue_async.py" }, { + "canonical": true, "clientMethod": { + "client": { + "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsClient", + "shortName": "ContactCenterInsightsClient" + }, + "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsClient.update_issue", "method": { + "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.UpdateIssue", "service": { + "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights", "shortName": "ContactCenterInsights" }, "shortName": "UpdateIssue" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.contact_center_insights_v1.types.UpdateIssueRequest" + }, + { + "name": "issue", + "type": "google.cloud.contact_center_insights_v1.types.Issue" + }, + { + "name": "update_mask", + "type": "google.protobuf.field_mask_pb2.FieldMask" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.contact_center_insights_v1.types.Issue", + "shortName": "update_issue" }, + "description": "Sample for UpdateIssue", "file": "contactcenterinsights_v1_generated_contact_center_insights_update_issue_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_UpdateIssue_sync", "segments": [ { @@ -2741,19 +5046,59 @@ "start": 41, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "contactcenterinsights_v1_generated_contact_center_insights_update_issue_sync.py" }, { + "canonical": true, "clientMethod": { "async": true, + "client": { + "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsAsyncClient", + "shortName": "ContactCenterInsightsAsyncClient" + }, + "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsAsyncClient.update_phrase_matcher", "method": { + "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.UpdatePhraseMatcher", "service": { + "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights", "shortName": "ContactCenterInsights" }, "shortName": "UpdatePhraseMatcher" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.contact_center_insights_v1.types.UpdatePhraseMatcherRequest" + }, + { + "name": "phrase_matcher", + "type": "google.cloud.contact_center_insights_v1.types.PhraseMatcher" + }, + { + "name": "update_mask", + "type": "google.protobuf.field_mask_pb2.FieldMask" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.contact_center_insights_v1.types.PhraseMatcher", + "shortName": "update_phrase_matcher" }, + "description": "Sample for UpdatePhraseMatcher", "file": "contactcenterinsights_v1_generated_contact_center_insights_update_phrase_matcher_async.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_UpdatePhraseMatcher_async", "segments": [ { @@ -2786,18 +5131,58 @@ "start": 45, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "contactcenterinsights_v1_generated_contact_center_insights_update_phrase_matcher_async.py" }, { + "canonical": true, "clientMethod": { + "client": { + "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsClient", + "shortName": "ContactCenterInsightsClient" + }, + "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsClient.update_phrase_matcher", "method": { + "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.UpdatePhraseMatcher", "service": { + "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights", "shortName": "ContactCenterInsights" }, "shortName": "UpdatePhraseMatcher" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.contact_center_insights_v1.types.UpdatePhraseMatcherRequest" + }, + { + "name": "phrase_matcher", + "type": "google.cloud.contact_center_insights_v1.types.PhraseMatcher" + }, + { + "name": "update_mask", + "type": "google.protobuf.field_mask_pb2.FieldMask" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.contact_center_insights_v1.types.PhraseMatcher", + "shortName": "update_phrase_matcher" }, + "description": "Sample for UpdatePhraseMatcher", "file": "contactcenterinsights_v1_generated_contact_center_insights_update_phrase_matcher_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_UpdatePhraseMatcher_sync", "segments": [ { @@ -2830,19 +5215,59 @@ "start": 45, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "contactcenterinsights_v1_generated_contact_center_insights_update_phrase_matcher_sync.py" }, { + "canonical": true, "clientMethod": { "async": true, + "client": { + "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsAsyncClient", + "shortName": "ContactCenterInsightsAsyncClient" + }, + "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsAsyncClient.update_settings", "method": { + "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.UpdateSettings", "service": { + "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights", "shortName": "ContactCenterInsights" }, "shortName": "UpdateSettings" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.contact_center_insights_v1.types.UpdateSettingsRequest" + }, + { + "name": "settings", + "type": "google.cloud.contact_center_insights_v1.types.Settings" + }, + { + "name": "update_mask", + "type": "google.protobuf.field_mask_pb2.FieldMask" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.contact_center_insights_v1.types.Settings", + "shortName": "update_settings" }, + "description": "Sample for UpdateSettings", "file": "contactcenterinsights_v1_generated_contact_center_insights_update_settings_async.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_UpdateSettings_async", "segments": [ { @@ -2875,18 +5300,58 @@ "start": 41, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "contactcenterinsights_v1_generated_contact_center_insights_update_settings_async.py" }, { + "canonical": true, "clientMethod": { + "client": { + "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsClient", + "shortName": "ContactCenterInsightsClient" + }, + "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsClient.update_settings", "method": { + "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.UpdateSettings", "service": { + "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights", "shortName": "ContactCenterInsights" }, "shortName": "UpdateSettings" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.contact_center_insights_v1.types.UpdateSettingsRequest" + }, + { + "name": "settings", + "type": "google.cloud.contact_center_insights_v1.types.Settings" + }, + { + "name": "update_mask", + "type": "google.protobuf.field_mask_pb2.FieldMask" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.contact_center_insights_v1.types.Settings", + "shortName": "update_settings" }, + "description": "Sample for UpdateSettings", "file": "contactcenterinsights_v1_generated_contact_center_insights_update_settings_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_UpdateSettings_sync", "segments": [ { @@ -2919,19 +5384,59 @@ "start": 41, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "contactcenterinsights_v1_generated_contact_center_insights_update_settings_sync.py" }, { + "canonical": true, "clientMethod": { "async": true, + "client": { + "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsAsyncClient", + "shortName": "ContactCenterInsightsAsyncClient" + }, + "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsAsyncClient.update_view", "method": { + "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.UpdateView", "service": { + "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights", "shortName": "ContactCenterInsights" }, "shortName": "UpdateView" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.contact_center_insights_v1.types.UpdateViewRequest" + }, + { + "name": "view", + "type": "google.cloud.contact_center_insights_v1.types.View" + }, + { + "name": "update_mask", + "type": "google.protobuf.field_mask_pb2.FieldMask" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.contact_center_insights_v1.types.View", + "shortName": "update_view" }, + "description": "Sample for UpdateView", "file": "contactcenterinsights_v1_generated_contact_center_insights_update_view_async.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_UpdateView_async", "segments": [ { @@ -2964,18 +5469,58 @@ "start": 41, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "contactcenterinsights_v1_generated_contact_center_insights_update_view_async.py" }, { + "canonical": true, "clientMethod": { + "client": { + "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsClient", + "shortName": "ContactCenterInsightsClient" + }, + "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsClient.update_view", "method": { + "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.UpdateView", "service": { + "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights", "shortName": "ContactCenterInsights" }, "shortName": "UpdateView" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.contact_center_insights_v1.types.UpdateViewRequest" + }, + { + "name": "view", + "type": "google.cloud.contact_center_insights_v1.types.View" + }, + { + "name": "update_mask", + "type": "google.protobuf.field_mask_pb2.FieldMask" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.contact_center_insights_v1.types.View", + "shortName": "update_view" }, + "description": "Sample for UpdateView", "file": "contactcenterinsights_v1_generated_contact_center_insights_update_view_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_UpdateView_sync", "segments": [ { @@ -3008,7 +5553,8 @@ "start": 41, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "contactcenterinsights_v1_generated_contact_center_insights_update_view_sync.py" } ] } From dbf7750e1a69ea5f200c0f4205171849609f94a9 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 15 Apr 2022 02:43:46 +0200 Subject: [PATCH 062/112] chore(deps): update dependency google-auth to v2.6.5 (#163) --- contact-center-insights/snippets/requirements-test.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contact-center-insights/snippets/requirements-test.txt b/contact-center-insights/snippets/requirements-test.txt index 8ae6500bcc04..0268391b0a8d 100644 --- a/contact-center-insights/snippets/requirements-test.txt +++ b/contact-center-insights/snippets/requirements-test.txt @@ -1,4 +1,4 @@ -google-auth==2.6.4 +google-auth==2.6.5 google-cloud-pubsub==2.12.0 protobuf==3.20.0 pytest==7.1.1 \ No newline at end of file From f6f8865b25b4352fb291d3e637591e18e172765d Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Wed, 20 Apr 2022 20:54:04 -0400 Subject: [PATCH 063/112] chore(python): add nox session to sort python imports (#164) Source-Link: https://github.com/googleapis/synthtool/commit/1b71c10e20de7ed3f97f692f99a0e3399b67049f Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:00c9d764fd1cd56265f12a5ef4b99a0c9e87cf261018099141e2ca5158890416 Co-authored-by: Owl Bot --- contact-center-insights/snippets/noxfile.py | 23 ++++++++++++++++++- .../snippets/test_create_analysis.py | 2 -- .../snippets/test_create_conversation.py | 2 -- .../test_create_conversation_with_ttl.py | 2 -- .../snippets/test_create_issue_model.py | 2 -- .../test_create_phrase_matcher_all_of.py | 2 -- .../test_create_phrase_matcher_any_of.py | 2 -- .../test_enable_pubsub_notifications.py | 5 +--- .../snippets/test_export_to_bigquery.py | 2 -- .../snippets/test_get_operation.py | 2 -- .../snippets/test_set_project_ttl.py | 2 -- 11 files changed, 23 insertions(+), 23 deletions(-) diff --git a/contact-center-insights/snippets/noxfile.py b/contact-center-insights/snippets/noxfile.py index 25f87a215d4c..3b3ffa5d2b0f 100644 --- a/contact-center-insights/snippets/noxfile.py +++ b/contact-center-insights/snippets/noxfile.py @@ -22,7 +22,6 @@ import nox - # WARNING - WARNING - WARNING - WARNING - WARNING # WARNING - WARNING - WARNING - WARNING - WARNING # DO NOT EDIT THIS FILE EVER! @@ -30,6 +29,7 @@ # WARNING - WARNING - WARNING - WARNING - WARNING BLACK_VERSION = "black==22.3.0" +ISORT_VERSION = "isort==5.10.1" # Copy `noxfile_config.py` to your directory and modify it instead. @@ -168,12 +168,33 @@ def lint(session: nox.sessions.Session) -> None: @nox.session def blacken(session: nox.sessions.Session) -> None: + """Run black. Format code to uniform standard.""" session.install(BLACK_VERSION) python_files = [path for path in os.listdir(".") if path.endswith(".py")] session.run("black", *python_files) +# +# format = isort + black +# + + +@nox.session +def format(session: nox.sessions.Session) -> None: + """ + Run isort to sort imports. Then run black + to format code to uniform standard. + """ + session.install(BLACK_VERSION, ISORT_VERSION) + python_files = [path for path in os.listdir(".") if path.endswith(".py")] + + # Use the --fss option to sort imports using strict alphabetical order. + # See https://pycqa.github.io/isort/docs/configuration/options.html#force-sort-within-sections + session.run("isort", "--fss", *python_files) + session.run("black", *python_files) + + # # Sample Tests # diff --git a/contact-center-insights/snippets/test_create_analysis.py b/contact-center-insights/snippets/test_create_analysis.py index e78d925ee98d..0d660123dd2c 100644 --- a/contact-center-insights/snippets/test_create_analysis.py +++ b/contact-center-insights/snippets/test_create_analysis.py @@ -13,9 +13,7 @@ # limitations under the License. # import google.auth - from google.cloud import contact_center_insights_v1 - import pytest import create_analysis diff --git a/contact-center-insights/snippets/test_create_conversation.py b/contact-center-insights/snippets/test_create_conversation.py index 1553ff894bac..a3ca4c2c51b4 100644 --- a/contact-center-insights/snippets/test_create_conversation.py +++ b/contact-center-insights/snippets/test_create_conversation.py @@ -13,9 +13,7 @@ # limitations under the License. # import google.auth - from google.cloud import contact_center_insights_v1 - import pytest import create_conversation diff --git a/contact-center-insights/snippets/test_create_conversation_with_ttl.py b/contact-center-insights/snippets/test_create_conversation_with_ttl.py index ee493d4e3dc3..53ea32135728 100644 --- a/contact-center-insights/snippets/test_create_conversation_with_ttl.py +++ b/contact-center-insights/snippets/test_create_conversation_with_ttl.py @@ -13,9 +13,7 @@ # limitations under the License. # import google.auth - from google.cloud import contact_center_insights_v1 - import pytest import create_conversation_with_ttl diff --git a/contact-center-insights/snippets/test_create_issue_model.py b/contact-center-insights/snippets/test_create_issue_model.py index b978242cf5f7..2b5f128d635e 100644 --- a/contact-center-insights/snippets/test_create_issue_model.py +++ b/contact-center-insights/snippets/test_create_issue_model.py @@ -13,9 +13,7 @@ # limitations under the License. # import google.auth - from google.cloud import contact_center_insights_v1 - import pytest import create_issue_model diff --git a/contact-center-insights/snippets/test_create_phrase_matcher_all_of.py b/contact-center-insights/snippets/test_create_phrase_matcher_all_of.py index 888d959d42d2..6c9b217e67a1 100644 --- a/contact-center-insights/snippets/test_create_phrase_matcher_all_of.py +++ b/contact-center-insights/snippets/test_create_phrase_matcher_all_of.py @@ -13,9 +13,7 @@ # limitations under the License. # import google.auth - from google.cloud import contact_center_insights_v1 - import pytest import create_phrase_matcher_all_of diff --git a/contact-center-insights/snippets/test_create_phrase_matcher_any_of.py b/contact-center-insights/snippets/test_create_phrase_matcher_any_of.py index 0e0f199be5a8..62efcccfd7d4 100644 --- a/contact-center-insights/snippets/test_create_phrase_matcher_any_of.py +++ b/contact-center-insights/snippets/test_create_phrase_matcher_any_of.py @@ -13,9 +13,7 @@ # limitations under the License. # import google.auth - from google.cloud import contact_center_insights_v1 - import pytest import create_phrase_matcher_any_of diff --git a/contact-center-insights/snippets/test_enable_pubsub_notifications.py b/contact-center-insights/snippets/test_enable_pubsub_notifications.py index d7c0369616e1..d3ae6959dbe6 100644 --- a/contact-center-insights/snippets/test_enable_pubsub_notifications.py +++ b/contact-center-insights/snippets/test_enable_pubsub_notifications.py @@ -15,11 +15,8 @@ import uuid import google.auth - -from google.cloud import contact_center_insights_v1 -from google.cloud import pubsub_v1 +from google.cloud import contact_center_insights_v1, pubsub_v1 from google.protobuf import field_mask_pb2 - import pytest import enable_pubsub_notifications diff --git a/contact-center-insights/snippets/test_export_to_bigquery.py b/contact-center-insights/snippets/test_export_to_bigquery.py index 6f628605ce1d..c9ada15601ed 100644 --- a/contact-center-insights/snippets/test_export_to_bigquery.py +++ b/contact-center-insights/snippets/test_export_to_bigquery.py @@ -15,9 +15,7 @@ import uuid import google.auth - from google.cloud import bigquery - import pytest import export_to_bigquery diff --git a/contact-center-insights/snippets/test_get_operation.py b/contact-center-insights/snippets/test_get_operation.py index 4f6bc8b51eb4..087d6fa0ea2b 100644 --- a/contact-center-insights/snippets/test_get_operation.py +++ b/contact-center-insights/snippets/test_get_operation.py @@ -13,9 +13,7 @@ # limitations under the License. # import google.auth - from google.cloud import contact_center_insights_v1 - import pytest import get_operation diff --git a/contact-center-insights/snippets/test_set_project_ttl.py b/contact-center-insights/snippets/test_set_project_ttl.py index 34a657cc2972..6ddc3a024725 100644 --- a/contact-center-insights/snippets/test_set_project_ttl.py +++ b/contact-center-insights/snippets/test_set_project_ttl.py @@ -13,10 +13,8 @@ # limitations under the License. # import google.auth - from google.cloud import contact_center_insights_v1 from google.protobuf import field_mask_pb2 - import pytest import set_project_ttl From 8a3765133c8e3b4c994225b9f09298f9d6f0c548 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 22 Apr 2022 10:28:51 +0200 Subject: [PATCH 064/112] chore(deps): update all dependencies (#167) --- contact-center-insights/snippets/requirements-test.txt | 4 ++-- contact-center-insights/snippets/requirements.txt | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/contact-center-insights/snippets/requirements-test.txt b/contact-center-insights/snippets/requirements-test.txt index 0268391b0a8d..a9b527b8f94d 100644 --- a/contact-center-insights/snippets/requirements-test.txt +++ b/contact-center-insights/snippets/requirements-test.txt @@ -1,4 +1,4 @@ -google-auth==2.6.5 +google-auth==2.6.6 google-cloud-pubsub==2.12.0 -protobuf==3.20.0 +protobuf==3.20.1 pytest==7.1.1 \ No newline at end of file diff --git a/contact-center-insights/snippets/requirements.txt b/contact-center-insights/snippets/requirements.txt index 067a5e1f5bc3..08ca01281ec4 100644 --- a/contact-center-insights/snippets/requirements.txt +++ b/contact-center-insights/snippets/requirements.txt @@ -1,4 +1,4 @@ google-api-core==2.7.2 google-cloud-bigquery==3.0.1 google-cloud-contact-center-insights==1.3.1 -protobuf==3.20.0 \ No newline at end of file +protobuf==3.20.1 \ No newline at end of file From 4100cac6dbe65ade880e07cee16a547b4ef1ea67 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 25 Apr 2022 17:05:06 +0200 Subject: [PATCH 065/112] chore(deps): update dependency pytest to v7.1.2 (#168) --- contact-center-insights/snippets/requirements-test.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contact-center-insights/snippets/requirements-test.txt b/contact-center-insights/snippets/requirements-test.txt index a9b527b8f94d..206454754743 100644 --- a/contact-center-insights/snippets/requirements-test.txt +++ b/contact-center-insights/snippets/requirements-test.txt @@ -1,4 +1,4 @@ google-auth==2.6.6 google-cloud-pubsub==2.12.0 protobuf==3.20.1 -pytest==7.1.1 \ No newline at end of file +pytest==7.1.2 \ No newline at end of file From 10b4a62b8cfaf39eda724ac6b4ab69bc0c3e5425 Mon Sep 17 00:00:00 2001 From: Bamboo Le <8941262+TrucHLe@users.noreply.github.com> Date: Thu, 28 Apr 2022 15:38:15 -0400 Subject: [PATCH 066/112] samples: Add docstring to all code samples (#171) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * samples: Add docstring to all code samples * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- .../snippets/create_analysis.py | 11 +++++++++++ .../snippets/create_conversation.py | 17 +++++++++++++++++ .../snippets/create_conversation_with_ttl.py | 17 +++++++++++++++++ .../snippets/create_issue_model.py | 9 +++++++++ .../snippets/create_phrase_matcher_all_of.py | 9 +++++++++ .../snippets/create_phrase_matcher_any_of.py | 9 +++++++++ .../snippets/enable_pubsub_notifications.py | 17 +++++++++++++++++ .../snippets/export_to_bigquery.py | 17 +++++++++++++++++ .../snippets/get_operation.py | 11 +++++++++++ .../snippets/set_project_ttl.py | 9 +++++++++ 10 files changed, 126 insertions(+) diff --git a/contact-center-insights/snippets/create_analysis.py b/contact-center-insights/snippets/create_analysis.py index c3347373a871..2377ec227940 100644 --- a/contact-center-insights/snippets/create_analysis.py +++ b/contact-center-insights/snippets/create_analysis.py @@ -17,6 +17,17 @@ def create_analysis(conversation_name: str) -> contact_center_insights_v1.Analysis: + """Creates an analysis. + + Args: + conversation_name: + The parent resource of the analysis. + Format is 'projects/{project_id}/locations/{location_id}/conversations/{conversation_id}'. + For example, 'projects/my-project/locations/us-central1/conversations/123456789'. + + Returns: + An analysis. + """ # Construct an analysis. analysis = contact_center_insights_v1.Analysis() diff --git a/contact-center-insights/snippets/create_conversation.py b/contact-center-insights/snippets/create_conversation.py index 8f632299b8c4..2450ad465635 100644 --- a/contact-center-insights/snippets/create_conversation.py +++ b/contact-center-insights/snippets/create_conversation.py @@ -21,6 +21,23 @@ def create_conversation( transcript_uri: str = "gs://cloud-samples-data/ccai/chat_sample.json", audio_uri: str = "gs://cloud-samples-data/ccai/voice_6912.txt", ) -> contact_center_insights_v1.Conversation: + """Creates a conversation. + + Args: + project_id: + The project identifier. For example, 'my-project'. + transcript_uri: + The Cloud Storage URI that points to a file that contains the + conversation transcript. Format is 'gs://{bucket_name}/{file.json}'. + For example, 'gs://cloud-samples-data/ccai/chat_sample.json'. + audio_uri: + The Cloud Storage URI that points to a file that contains the + conversation audio. Format is 'gs://{bucket_name}/{file.json}'. + For example, 'gs://cloud-samples-data/ccai/voice_6912.txt'. + + Returns: + A conversation. + """ # Construct a parent resource. parent = ( contact_center_insights_v1.ContactCenterInsightsClient.common_location_path( diff --git a/contact-center-insights/snippets/create_conversation_with_ttl.py b/contact-center-insights/snippets/create_conversation_with_ttl.py index da68789f2a09..fba2dd0e76e6 100644 --- a/contact-center-insights/snippets/create_conversation_with_ttl.py +++ b/contact-center-insights/snippets/create_conversation_with_ttl.py @@ -23,6 +23,23 @@ def create_conversation_with_ttl( transcript_uri: str = "gs://cloud-samples-data/ccai/chat_sample.json", audio_uri: str = "gs://cloud-samples-data/ccai/voice_6912.txt", ) -> contact_center_insights_v1.Conversation: + """Creates a conversation with a TTL value. + + Args: + project_id: + The project identifier. For example, 'my-project'. + transcript_uri: + The Cloud Storage URI that points to a file that contains the + conversation transcript. Format is 'gs://{bucket_name}/{file.json}'. + For example, 'gs://cloud-samples-data/ccai/chat_sample.json'. + audio_uri: + The Cloud Storage URI that points to a file that contains the + conversation audio. Format is 'gs://{bucket_name}/{file.json}'. + For example, 'gs://cloud-samples-data/ccai/voice_6912.txt'. + + Returns: + A conversation. + """ # Construct a parent resource. parent = ( contact_center_insights_v1.ContactCenterInsightsClient.common_location_path( diff --git a/contact-center-insights/snippets/create_issue_model.py b/contact-center-insights/snippets/create_issue_model.py index 3ebebb6e175e..9d677a17f56c 100644 --- a/contact-center-insights/snippets/create_issue_model.py +++ b/contact-center-insights/snippets/create_issue_model.py @@ -17,6 +17,15 @@ def create_issue_model(project_id: str) -> contact_center_insights_v1.IssueModel: + """Creates an issue model. + + Args: + project_id: + The project identifier. For example, 'my-project'. + + Returns: + An issue model. + """ # Construct a parent resource. parent = ( contact_center_insights_v1.ContactCenterInsightsClient.common_location_path( diff --git a/contact-center-insights/snippets/create_phrase_matcher_all_of.py b/contact-center-insights/snippets/create_phrase_matcher_all_of.py index 3627fb996fd9..0175f1f2b079 100644 --- a/contact-center-insights/snippets/create_phrase_matcher_all_of.py +++ b/contact-center-insights/snippets/create_phrase_matcher_all_of.py @@ -19,6 +19,15 @@ def create_phrase_matcher_all_of( project_id: str, ) -> contact_center_insights_v1.PhraseMatcher: + """Creates a phrase matcher that matches all specified queries. + + Args: + project_id: + The project identifier. For example, 'my-project'. + + Returns: + A phrase matcher. + """ # Construct a parent resource. parent = ( contact_center_insights_v1.ContactCenterInsightsClient.common_location_path( diff --git a/contact-center-insights/snippets/create_phrase_matcher_any_of.py b/contact-center-insights/snippets/create_phrase_matcher_any_of.py index 8494ee9ab128..e55fc4af84cc 100644 --- a/contact-center-insights/snippets/create_phrase_matcher_any_of.py +++ b/contact-center-insights/snippets/create_phrase_matcher_any_of.py @@ -19,6 +19,15 @@ def create_phrase_matcher_any_of( project_id: str, ) -> contact_center_insights_v1.PhraseMatcher: + """Creates a phrase matcher that matches any of the specified queries. + + Args: + project_id: + The project identifier. For example, 'my-project'. + + Returns: + A phrase matcher. + """ # Construct a parent resource. parent = ( contact_center_insights_v1.ContactCenterInsightsClient.common_location_path( diff --git a/contact-center-insights/snippets/enable_pubsub_notifications.py b/contact-center-insights/snippets/enable_pubsub_notifications.py index c363491d4b31..c36d562d4e9f 100644 --- a/contact-center-insights/snippets/enable_pubsub_notifications.py +++ b/contact-center-insights/snippets/enable_pubsub_notifications.py @@ -20,6 +20,23 @@ def enable_pubsub_notifications( project_id: str, topic_create_conversation: str, topic_create_analysis: str ) -> None: + """Enables Cloud Pub/Sub notifications for specified events. + + Args: + project_id: + The project identifier. For example, 'my-project'. + topic_create_conversation: + The Cloud Pub/Sub topic to notify of conversation creation events. + Format is 'projects/{project_id}/topics/{topic_id}'. + For example, 'projects/my-project/topics/my-topic'. + topic_create_analysis: + The Cloud Pub/Sub topic to notify of analysis creation events. + Format is 'projects/{project_id}/topics/{topic_id}'. + For example, 'projects/my-project/topics/my-topic'. + + Returns: + None. + """ # Construct a settings resource. settings = contact_center_insights_v1.Settings() settings.name = ( diff --git a/contact-center-insights/snippets/export_to_bigquery.py b/contact-center-insights/snippets/export_to_bigquery.py index 18af84aca916..48f8b2973938 100644 --- a/contact-center-insights/snippets/export_to_bigquery.py +++ b/contact-center-insights/snippets/export_to_bigquery.py @@ -22,6 +22,23 @@ def export_to_bigquery( bigquery_dataset_id: str, bigquery_table_id: str, ) -> None: + """Exports data to BigQuery. + + Args: + project_id: + The project identifier that owns the data source to be exported. + For example, 'my-project'. + bigquery_project_id: + The project identifier that owns the BigQuery sink to export data to. + For example, 'my-project'. + bigquery_dataset_id: + The BigQuery dataset identifier. For example, 'my-dataset'. + bigquery_table_id: + The BigQuery table identifier. For example, 'my-table'. + + Returns: + None. + """ # Construct an export request. request = contact_center_insights_v1.ExportInsightsDataRequest() request.parent = ( diff --git a/contact-center-insights/snippets/get_operation.py b/contact-center-insights/snippets/get_operation.py index 195b373de9c3..f8bd03a91c6c 100644 --- a/contact-center-insights/snippets/get_operation.py +++ b/contact-center-insights/snippets/get_operation.py @@ -19,6 +19,17 @@ def get_operation(operation_name: str) -> operations_pb2.Operation: + """Gets an operation. + + Args: + operation_name: + The operation name. + Format is 'projects/{project_id}/locations/{location_id}/operations/{operation_id}'. + For example, 'projects/my-project/locations/us-central1/operations/123456789'. + + Returns: + An operation. + """ # Construct an Insights client that will authenticate via Application Default Credentials. # See authentication details at https://cloud.google.com/docs/authentication/production. insights_client = contact_center_insights_v1.ContactCenterInsightsClient() diff --git a/contact-center-insights/snippets/set_project_ttl.py b/contact-center-insights/snippets/set_project_ttl.py index c0e6431ebdd3..a56476a6ef29 100644 --- a/contact-center-insights/snippets/set_project_ttl.py +++ b/contact-center-insights/snippets/set_project_ttl.py @@ -20,6 +20,15 @@ def set_project_ttl(project_id: str) -> None: + """Sets a project-level TTL for all incoming conversations. + + Args: + project_id: + The project identifier. For example, 'my-project'. + + Returns: + None. + """ # Construct a settings resource. settings = contact_center_insights_v1.Settings() settings.name = ( From 086643e15bd40a9013646e37dbb3dd3fe526ef2d Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 2 May 2022 13:04:02 +0200 Subject: [PATCH 067/112] chore(deps): update dependency google-api-core to v2.7.3 (#172) --- contact-center-insights/snippets/requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contact-center-insights/snippets/requirements.txt b/contact-center-insights/snippets/requirements.txt index 08ca01281ec4..d3e4ce98c9ee 100644 --- a/contact-center-insights/snippets/requirements.txt +++ b/contact-center-insights/snippets/requirements.txt @@ -1,4 +1,4 @@ -google-api-core==2.7.2 +google-api-core==2.7.3 google-cloud-bigquery==3.0.1 google-cloud-contact-center-insights==1.3.1 protobuf==3.20.1 \ No newline at end of file From b47f931a7afe71ebfa5676dd725f78176173553a Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 9 May 2022 22:15:54 +0200 Subject: [PATCH 068/112] chore(deps): update dependency google-cloud-bigquery to v3.1.0 (#176) --- contact-center-insights/snippets/requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contact-center-insights/snippets/requirements.txt b/contact-center-insights/snippets/requirements.txt index d3e4ce98c9ee..64e88fa76413 100644 --- a/contact-center-insights/snippets/requirements.txt +++ b/contact-center-insights/snippets/requirements.txt @@ -1,4 +1,4 @@ google-api-core==2.7.3 -google-cloud-bigquery==3.0.1 +google-cloud-bigquery==3.1.0 google-cloud-contact-center-insights==1.3.1 protobuf==3.20.1 \ No newline at end of file From f956dc71eebe0708bd1a59f6982cada3b6c21b63 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 12 May 2022 20:25:14 +0200 Subject: [PATCH 069/112] chore(deps): update dependency google-cloud-pubsub to v2.12.1 (#177) --- contact-center-insights/snippets/requirements-test.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contact-center-insights/snippets/requirements-test.txt b/contact-center-insights/snippets/requirements-test.txt index 206454754743..92c868b1eb75 100644 --- a/contact-center-insights/snippets/requirements-test.txt +++ b/contact-center-insights/snippets/requirements-test.txt @@ -1,4 +1,4 @@ google-auth==2.6.6 -google-cloud-pubsub==2.12.0 +google-cloud-pubsub==2.12.1 protobuf==3.20.1 pytest==7.1.2 \ No newline at end of file From cbf300dbdcaec5f04cea230dc3045b5c0fc10b64 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 19 May 2022 14:00:55 +0200 Subject: [PATCH 070/112] chore(deps): update dependency google-api-core to v2.8.0 (#178) --- contact-center-insights/snippets/requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contact-center-insights/snippets/requirements.txt b/contact-center-insights/snippets/requirements.txt index 64e88fa76413..ef73fb7452aa 100644 --- a/contact-center-insights/snippets/requirements.txt +++ b/contact-center-insights/snippets/requirements.txt @@ -1,4 +1,4 @@ -google-api-core==2.7.3 +google-api-core==2.8.0 google-cloud-bigquery==3.1.0 google-cloud-contact-center-insights==1.3.1 protobuf==3.20.1 \ No newline at end of file From 5bc226d973c5f1b20ad3c88c4c5b33ccdefdbc48 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 27 May 2022 19:49:13 +0200 Subject: [PATCH 071/112] chore(deps): update dependency google-api-core to v2.8.1 (#196) --- contact-center-insights/snippets/requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contact-center-insights/snippets/requirements.txt b/contact-center-insights/snippets/requirements.txt index ef73fb7452aa..d3e24d285eec 100644 --- a/contact-center-insights/snippets/requirements.txt +++ b/contact-center-insights/snippets/requirements.txt @@ -1,4 +1,4 @@ -google-api-core==2.8.0 +google-api-core==2.8.1 google-cloud-bigquery==3.1.0 google-cloud-contact-center-insights==1.3.1 protobuf==3.20.1 \ No newline at end of file From f2c3362590e48c384b7b6170da1bde4e5e8bd871 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Sun, 10 Jul 2022 08:32:30 -0400 Subject: [PATCH 072/112] fix: require python 3.7+ (#209) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(python): drop python 3.6 Source-Link: https://github.com/googleapis/synthtool/commit/4f89b13af10d086458f9b379e56a614f9d6dab7b Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:e7bb19d47c13839fe8c147e50e02e8b6cf5da8edd1af8b82208cd6f66cc2829c * add api_description to .repo-metadata.json * require python 3.7+ in setup.py * remove python 3.6 sample configs * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * fix typo * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot Co-authored-by: Anthonios Partheniou --- contact-center-insights/snippets/noxfile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contact-center-insights/snippets/noxfile.py b/contact-center-insights/snippets/noxfile.py index 3b3ffa5d2b0f..e9eb1cbfa5db 100644 --- a/contact-center-insights/snippets/noxfile.py +++ b/contact-center-insights/snippets/noxfile.py @@ -88,7 +88,7 @@ def get_pytest_env_vars() -> Dict[str, str]: # DO NOT EDIT - automatically generated. # All versions used to test samples. -ALL_VERSIONS = ["3.6", "3.7", "3.8", "3.9", "3.10"] +ALL_VERSIONS = ["3.7", "3.8", "3.9", "3.10"] # Any default versions that should be ignored. IGNORED_VERSIONS = TEST_CONFIG["ignored_versions"] From b70495884938470977c86e71abd4edd62699264c Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Sat, 16 Jul 2022 16:51:52 +0200 Subject: [PATCH 073/112] chore(deps): update all dependencies (#204) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update all dependencies * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * revert * revert * revert Co-authored-by: Owl Bot Co-authored-by: Anthonios Partheniou --- contact-center-insights/snippets/requirements-test.txt | 6 +++--- contact-center-insights/snippets/requirements.txt | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/contact-center-insights/snippets/requirements-test.txt b/contact-center-insights/snippets/requirements-test.txt index 92c868b1eb75..e742bbf50914 100644 --- a/contact-center-insights/snippets/requirements-test.txt +++ b/contact-center-insights/snippets/requirements-test.txt @@ -1,4 +1,4 @@ -google-auth==2.6.6 -google-cloud-pubsub==2.12.1 +google-auth==2.7.0 +google-cloud-pubsub==2.13.0 protobuf==3.20.1 -pytest==7.1.2 \ No newline at end of file +pytest==7.1.2 diff --git a/contact-center-insights/snippets/requirements.txt b/contact-center-insights/snippets/requirements.txt index d3e24d285eec..d70cfa236d42 100644 --- a/contact-center-insights/snippets/requirements.txt +++ b/contact-center-insights/snippets/requirements.txt @@ -1,4 +1,4 @@ google-api-core==2.8.1 google-cloud-bigquery==3.1.0 -google-cloud-contact-center-insights==1.3.1 -protobuf==3.20.1 \ No newline at end of file +google-cloud-contact-center-insights==1.3.2 +protobuf==3.20.1 From 5e575653163c77b66df733147481f3983d8fade6 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 2 Aug 2022 16:15:05 +0200 Subject: [PATCH 074/112] chore(deps): update all dependencies (#217) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update all dependencies * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * revert * remove protobuf * remove protobuf Co-authored-by: Owl Bot Co-authored-by: Anthonios Partheniou --- contact-center-insights/snippets/requirements-test.txt | 5 ++--- contact-center-insights/snippets/requirements.txt | 7 +++---- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/contact-center-insights/snippets/requirements-test.txt b/contact-center-insights/snippets/requirements-test.txt index e742bbf50914..35d2edf84b46 100644 --- a/contact-center-insights/snippets/requirements-test.txt +++ b/contact-center-insights/snippets/requirements-test.txt @@ -1,4 +1,3 @@ -google-auth==2.7.0 -google-cloud-pubsub==2.13.0 -protobuf==3.20.1 +google-auth==2.9.1 +google-cloud-pubsub==2.13.4 pytest==7.1.2 diff --git a/contact-center-insights/snippets/requirements.txt b/contact-center-insights/snippets/requirements.txt index d70cfa236d42..e10a15c5beb8 100644 --- a/contact-center-insights/snippets/requirements.txt +++ b/contact-center-insights/snippets/requirements.txt @@ -1,4 +1,3 @@ -google-api-core==2.8.1 -google-cloud-bigquery==3.1.0 -google-cloud-contact-center-insights==1.3.2 -protobuf==3.20.1 +google-api-core==2.8.2 +google-cloud-bigquery==3.3.0 +google-cloud-contact-center-insights==1.4.0 From 89bc9f44052a9a74f945db046a1b2e0c9715bce6 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Sat, 6 Aug 2022 03:21:29 +0200 Subject: [PATCH 075/112] chore(deps): update all dependencies (#219) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update all dependencies * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * revert Co-authored-by: Owl Bot Co-authored-by: Anthonios Partheniou --- contact-center-insights/snippets/requirements-test.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contact-center-insights/snippets/requirements-test.txt b/contact-center-insights/snippets/requirements-test.txt index 35d2edf84b46..4e1ec8cac085 100644 --- a/contact-center-insights/snippets/requirements-test.txt +++ b/contact-center-insights/snippets/requirements-test.txt @@ -1,3 +1,3 @@ -google-auth==2.9.1 +google-auth==2.10.0 google-cloud-pubsub==2.13.4 pytest==7.1.2 From dc813ee01c633afa728b94f16b60416e50264037 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 9 Aug 2022 17:29:16 +0200 Subject: [PATCH 076/112] chore(deps): update all dependencies (#220) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update all dependencies * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * revert Co-authored-by: Owl Bot Co-authored-by: Anthonios Partheniou --- contact-center-insights/snippets/requirements.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contact-center-insights/snippets/requirements.txt b/contact-center-insights/snippets/requirements.txt index e10a15c5beb8..6cc8c78593c6 100644 --- a/contact-center-insights/snippets/requirements.txt +++ b/contact-center-insights/snippets/requirements.txt @@ -1,3 +1,3 @@ google-api-core==2.8.2 -google-cloud-bigquery==3.3.0 -google-cloud-contact-center-insights==1.4.0 +google-cloud-bigquery==3.3.1 +google-cloud-contact-center-insights==1.4.1 From 5717efa454bf03e2090ced6f314062a32a0b2564 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 12 Aug 2022 01:14:39 +0200 Subject: [PATCH 077/112] chore(deps): update dependency google-cloud-pubsub to v2.13.5 (#222) --- contact-center-insights/snippets/requirements-test.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contact-center-insights/snippets/requirements-test.txt b/contact-center-insights/snippets/requirements-test.txt index 4e1ec8cac085..3015d171b428 100644 --- a/contact-center-insights/snippets/requirements-test.txt +++ b/contact-center-insights/snippets/requirements-test.txt @@ -1,3 +1,3 @@ google-auth==2.10.0 -google-cloud-pubsub==2.13.4 +google-cloud-pubsub==2.13.5 pytest==7.1.2 From f62399e9236759bf93b16a3b380af4d80661d3ae Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 12 Aug 2022 13:11:39 +0200 Subject: [PATCH 078/112] chore(deps): update dependency google-cloud-pubsub to v2.13.6 (#225) --- contact-center-insights/snippets/requirements-test.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contact-center-insights/snippets/requirements-test.txt b/contact-center-insights/snippets/requirements-test.txt index 3015d171b428..16657fbba100 100644 --- a/contact-center-insights/snippets/requirements-test.txt +++ b/contact-center-insights/snippets/requirements-test.txt @@ -1,3 +1,3 @@ google-auth==2.10.0 -google-cloud-pubsub==2.13.5 +google-cloud-pubsub==2.13.6 pytest==7.1.2 From fa04b11fa87e41f230f805ccd53836976f15881c Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 19 Aug 2022 18:36:59 +0200 Subject: [PATCH 079/112] chore(deps): update all dependencies (#228) --- contact-center-insights/snippets/requirements.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contact-center-insights/snippets/requirements.txt b/contact-center-insights/snippets/requirements.txt index 6cc8c78593c6..f116c9bf7f6a 100644 --- a/contact-center-insights/snippets/requirements.txt +++ b/contact-center-insights/snippets/requirements.txt @@ -1,3 +1,3 @@ google-api-core==2.8.2 -google-cloud-bigquery==3.3.1 -google-cloud-contact-center-insights==1.4.1 +google-cloud-bigquery==3.3.2 +google-cloud-contact-center-insights==1.4.2 From 345e6ba24216434476205b0ee7df194a0fb9eccb Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 23 Aug 2022 16:27:46 +0200 Subject: [PATCH 080/112] chore(deps): update dependency google-auth to v2.11.0 (#229) Co-authored-by: Anthonios Partheniou --- contact-center-insights/snippets/requirements-test.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contact-center-insights/snippets/requirements-test.txt b/contact-center-insights/snippets/requirements-test.txt index 16657fbba100..185180b73aa3 100644 --- a/contact-center-insights/snippets/requirements-test.txt +++ b/contact-center-insights/snippets/requirements-test.txt @@ -1,3 +1,3 @@ -google-auth==2.10.0 +google-auth==2.11.0 google-cloud-pubsub==2.13.6 pytest==7.1.2 From 91c433d3e2fd3855eab1762d0f9827caeb247119 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 24 Aug 2022 16:52:33 +0200 Subject: [PATCH 081/112] chore(deps): update dependency google-cloud-contact-center-insights to v1.4.3 (#232) --- contact-center-insights/snippets/requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contact-center-insights/snippets/requirements.txt b/contact-center-insights/snippets/requirements.txt index f116c9bf7f6a..bae93149ab1a 100644 --- a/contact-center-insights/snippets/requirements.txt +++ b/contact-center-insights/snippets/requirements.txt @@ -1,3 +1,3 @@ google-api-core==2.8.2 google-cloud-bigquery==3.3.2 -google-cloud-contact-center-insights==1.4.2 +google-cloud-contact-center-insights==1.4.3 From 4e4cd18f35e8cba3db94df7c4cd65dfb7ace2382 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 2 Sep 2022 13:14:40 +0200 Subject: [PATCH 082/112] chore(deps): update dependency google-api-core to v2.10.0 (#238) * chore(deps): update dependency google-api-core to v2.10.0 * revert Co-authored-by: Anthonios Partheniou --- contact-center-insights/snippets/requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contact-center-insights/snippets/requirements.txt b/contact-center-insights/snippets/requirements.txt index bae93149ab1a..b20420daf5e7 100644 --- a/contact-center-insights/snippets/requirements.txt +++ b/contact-center-insights/snippets/requirements.txt @@ -1,3 +1,3 @@ -google-api-core==2.8.2 +google-api-core==2.10.0 google-cloud-bigquery==3.3.2 google-cloud-contact-center-insights==1.4.3 From 9ab68e68e90abe3a8689d7f3dacc02d52f3bf43d Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 6 Sep 2022 16:10:26 +0200 Subject: [PATCH 083/112] chore(deps): update dependency pytest to v7.1.3 (#242) --- contact-center-insights/snippets/requirements-test.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contact-center-insights/snippets/requirements-test.txt b/contact-center-insights/snippets/requirements-test.txt index 185180b73aa3..ba9c5f2e3904 100644 --- a/contact-center-insights/snippets/requirements-test.txt +++ b/contact-center-insights/snippets/requirements-test.txt @@ -1,3 +1,3 @@ google-auth==2.11.0 google-cloud-pubsub==2.13.6 -pytest==7.1.2 +pytest==7.1.3 From 52a3bbc7804d41b8b53e12cd21cf7c6d1dc4fba4 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Wed, 7 Sep 2022 14:54:31 +0000 Subject: [PATCH 084/112] chore: Bump gapic-generator-python version to 1.3.0 (#243) - [ ] Regenerate this pull request now. PiperOrigin-RevId: 472561635 Source-Link: https://github.com/googleapis/googleapis/commit/332ecf599f8e747d8d1213b77ae7db26eff12814 Source-Link: https://github.com/googleapis/googleapis-gen/commit/4313d682880fd9d7247291164d4e9d3d5bd9f177 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNDMxM2Q2ODI4ODBmZDlkNzI0NzI5MTE2NGQ0ZTlkM2Q1YmQ5ZjE3NyJ9 --- ...ights_calculate_issue_model_stats_async.py | 7 + ...sights_calculate_issue_model_stats_sync.py | 7 + ...t_center_insights_calculate_stats_async.py | 7 + ...ct_center_insights_calculate_stats_sync.py | 7 + ...t_center_insights_create_analysis_async.py | 7 + ...ct_center_insights_create_analysis_sync.py | 7 + ...nter_insights_create_conversation_async.py | 7 + ...enter_insights_create_conversation_sync.py | 7 + ...enter_insights_create_issue_model_async.py | 7 + ...center_insights_create_issue_model_sync.py | 7 + ...er_insights_create_phrase_matcher_async.py | 7 + ...ter_insights_create_phrase_matcher_sync.py | 7 + ...ntact_center_insights_create_view_async.py | 7 + ...ontact_center_insights_create_view_sync.py | 7 + ...t_center_insights_delete_analysis_async.py | 7 + ...ct_center_insights_delete_analysis_sync.py | 7 + ...nter_insights_delete_conversation_async.py | 7 + ...enter_insights_delete_conversation_sync.py | 7 + ...enter_insights_delete_issue_model_async.py | 7 + ...center_insights_delete_issue_model_sync.py | 7 + ...er_insights_delete_phrase_matcher_async.py | 7 + ...ter_insights_delete_phrase_matcher_sync.py | 7 + ...ntact_center_insights_delete_view_async.py | 7 + ...ontact_center_insights_delete_view_sync.py | 7 + ...enter_insights_deploy_issue_model_async.py | 7 + ...center_insights_deploy_issue_model_sync.py | 7 + ...ter_insights_export_insights_data_async.py | 7 + ...nter_insights_export_insights_data_sync.py | 7 + ...tact_center_insights_get_analysis_async.py | 7 + ...ntact_center_insights_get_analysis_sync.py | 7 + ..._center_insights_get_conversation_async.py | 7 + ...t_center_insights_get_conversation_sync.py | 7 + ...contact_center_insights_get_issue_async.py | 7 + ...t_center_insights_get_issue_model_async.py | 7 + ...ct_center_insights_get_issue_model_sync.py | 7 + ..._contact_center_insights_get_issue_sync.py | 7 + ...enter_insights_get_phrase_matcher_async.py | 7 + ...center_insights_get_phrase_matcher_sync.py | 7 + ...tact_center_insights_get_settings_async.py | 7 + ...ntact_center_insights_get_settings_sync.py | 7 + ..._contact_center_insights_get_view_async.py | 7 + ...d_contact_center_insights_get_view_sync.py | 7 + ...act_center_insights_list_analyses_async.py | 7 + ...tact_center_insights_list_analyses_sync.py | 7 + ...enter_insights_list_conversations_async.py | 7 + ...center_insights_list_conversations_sync.py | 7 + ...center_insights_list_issue_models_async.py | 7 + ..._center_insights_list_issue_models_sync.py | 7 + ...ntact_center_insights_list_issues_async.py | 7 + ...ontact_center_insights_list_issues_sync.py | 7 + ...ter_insights_list_phrase_matchers_async.py | 7 + ...nter_insights_list_phrase_matchers_sync.py | 7 + ...ontact_center_insights_list_views_async.py | 7 + ...contact_center_insights_list_views_sync.py | 7 + ...ter_insights_undeploy_issue_model_async.py | 7 + ...nter_insights_undeploy_issue_model_sync.py | 7 + ...nter_insights_update_conversation_async.py | 7 + ...enter_insights_update_conversation_sync.py | 7 + ...tact_center_insights_update_issue_async.py | 7 + ...enter_insights_update_issue_model_async.py | 7 + ...center_insights_update_issue_model_sync.py | 7 + ...ntact_center_insights_update_issue_sync.py | 7 + ...er_insights_update_phrase_matcher_async.py | 7 + ...ter_insights_update_phrase_matcher_sync.py | 7 + ...t_center_insights_update_settings_async.py | 7 + ...ct_center_insights_update_settings_sync.py | 7 + ...ntact_center_insights_update_view_async.py | 7 + ...ontact_center_insights_update_view_sync.py | 7 + ...t_metadata_contact center insights_v1.json | 1328 ++++++++--------- 69 files changed, 1140 insertions(+), 664 deletions(-) diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_calculate_issue_model_stats_async.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_calculate_issue_model_stats_async.py index e699971502c6..5e790f1ea610 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_calculate_issue_model_stats_async.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_calculate_issue_model_stats_async.py @@ -24,6 +24,13 @@ # [START contactcenterinsights_v1_generated_ContactCenterInsights_CalculateIssueModelStats_async] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_calculate_issue_model_stats_sync.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_calculate_issue_model_stats_sync.py index 24da1fd1306b..4b98da0a4ace 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_calculate_issue_model_stats_sync.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_calculate_issue_model_stats_sync.py @@ -24,6 +24,13 @@ # [START contactcenterinsights_v1_generated_ContactCenterInsights_CalculateIssueModelStats_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_calculate_stats_async.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_calculate_stats_async.py index 16260f65cda5..b4be91688c61 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_calculate_stats_async.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_calculate_stats_async.py @@ -24,6 +24,13 @@ # [START contactcenterinsights_v1_generated_ContactCenterInsights_CalculateStats_async] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_calculate_stats_sync.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_calculate_stats_sync.py index 5d62a5ab94d6..598a9d511aff 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_calculate_stats_sync.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_calculate_stats_sync.py @@ -24,6 +24,13 @@ # [START contactcenterinsights_v1_generated_ContactCenterInsights_CalculateStats_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_create_analysis_async.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_create_analysis_async.py index 2e0aa6afc8ae..78990c3c99ea 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_create_analysis_async.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_create_analysis_async.py @@ -24,6 +24,13 @@ # [START contactcenterinsights_v1_generated_ContactCenterInsights_CreateAnalysis_async] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_create_analysis_sync.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_create_analysis_sync.py index c70223a61a9a..b39f3181f54c 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_create_analysis_sync.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_create_analysis_sync.py @@ -24,6 +24,13 @@ # [START contactcenterinsights_v1_generated_ContactCenterInsights_CreateAnalysis_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_create_conversation_async.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_create_conversation_async.py index bb0cfa376f1b..6c8ad25a4900 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_create_conversation_async.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_create_conversation_async.py @@ -24,6 +24,13 @@ # [START contactcenterinsights_v1_generated_ContactCenterInsights_CreateConversation_async] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_create_conversation_sync.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_create_conversation_sync.py index d94f2a3675fd..e110c1684469 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_create_conversation_sync.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_create_conversation_sync.py @@ -24,6 +24,13 @@ # [START contactcenterinsights_v1_generated_ContactCenterInsights_CreateConversation_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_create_issue_model_async.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_create_issue_model_async.py index 144285d5b616..2f47a544d16b 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_create_issue_model_async.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_create_issue_model_async.py @@ -24,6 +24,13 @@ # [START contactcenterinsights_v1_generated_ContactCenterInsights_CreateIssueModel_async] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_create_issue_model_sync.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_create_issue_model_sync.py index ed94d72b0789..02a10f62c811 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_create_issue_model_sync.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_create_issue_model_sync.py @@ -24,6 +24,13 @@ # [START contactcenterinsights_v1_generated_ContactCenterInsights_CreateIssueModel_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_create_phrase_matcher_async.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_create_phrase_matcher_async.py index 25d45ad994a4..dd62fef9809c 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_create_phrase_matcher_async.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_create_phrase_matcher_async.py @@ -24,6 +24,13 @@ # [START contactcenterinsights_v1_generated_ContactCenterInsights_CreatePhraseMatcher_async] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_create_phrase_matcher_sync.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_create_phrase_matcher_sync.py index 582fbcf584a8..000d11039f27 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_create_phrase_matcher_sync.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_create_phrase_matcher_sync.py @@ -24,6 +24,13 @@ # [START contactcenterinsights_v1_generated_ContactCenterInsights_CreatePhraseMatcher_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_create_view_async.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_create_view_async.py index 112f017e12fd..c7016c4ce028 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_create_view_async.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_create_view_async.py @@ -24,6 +24,13 @@ # [START contactcenterinsights_v1_generated_ContactCenterInsights_CreateView_async] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_create_view_sync.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_create_view_sync.py index 03cd385e02ba..395a6bf286f8 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_create_view_sync.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_create_view_sync.py @@ -24,6 +24,13 @@ # [START contactcenterinsights_v1_generated_ContactCenterInsights_CreateView_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_analysis_async.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_analysis_async.py index c2ca55a8de43..f3fdbfc4878e 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_analysis_async.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_analysis_async.py @@ -24,6 +24,13 @@ # [START contactcenterinsights_v1_generated_ContactCenterInsights_DeleteAnalysis_async] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_analysis_sync.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_analysis_sync.py index 348e2923da1d..ebd37ea6b83e 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_analysis_sync.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_analysis_sync.py @@ -24,6 +24,13 @@ # [START contactcenterinsights_v1_generated_ContactCenterInsights_DeleteAnalysis_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_conversation_async.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_conversation_async.py index e5421d528697..b8464dfa7fc5 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_conversation_async.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_conversation_async.py @@ -24,6 +24,13 @@ # [START contactcenterinsights_v1_generated_ContactCenterInsights_DeleteConversation_async] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_conversation_sync.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_conversation_sync.py index 896c9e83fb77..971590d387aa 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_conversation_sync.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_conversation_sync.py @@ -24,6 +24,13 @@ # [START contactcenterinsights_v1_generated_ContactCenterInsights_DeleteConversation_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_issue_model_async.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_issue_model_async.py index 2ce262947d96..736d76a6dfd1 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_issue_model_async.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_issue_model_async.py @@ -24,6 +24,13 @@ # [START contactcenterinsights_v1_generated_ContactCenterInsights_DeleteIssueModel_async] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_issue_model_sync.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_issue_model_sync.py index e13ca2fde5e7..23333ce2be8e 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_issue_model_sync.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_issue_model_sync.py @@ -24,6 +24,13 @@ # [START contactcenterinsights_v1_generated_ContactCenterInsights_DeleteIssueModel_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_phrase_matcher_async.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_phrase_matcher_async.py index 9b03251fd538..74251f26bf0f 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_phrase_matcher_async.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_phrase_matcher_async.py @@ -24,6 +24,13 @@ # [START contactcenterinsights_v1_generated_ContactCenterInsights_DeletePhraseMatcher_async] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_phrase_matcher_sync.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_phrase_matcher_sync.py index 9a219bb87e7e..a0fbc2b2b7ce 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_phrase_matcher_sync.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_phrase_matcher_sync.py @@ -24,6 +24,13 @@ # [START contactcenterinsights_v1_generated_ContactCenterInsights_DeletePhraseMatcher_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_view_async.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_view_async.py index a31652959537..aa60713d00af 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_view_async.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_view_async.py @@ -24,6 +24,13 @@ # [START contactcenterinsights_v1_generated_ContactCenterInsights_DeleteView_async] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_view_sync.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_view_sync.py index 95aae408b45e..b269b14490f1 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_view_sync.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_view_sync.py @@ -24,6 +24,13 @@ # [START contactcenterinsights_v1_generated_ContactCenterInsights_DeleteView_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_deploy_issue_model_async.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_deploy_issue_model_async.py index 7fed14b5c5af..a0ecfa9ecec3 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_deploy_issue_model_async.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_deploy_issue_model_async.py @@ -24,6 +24,13 @@ # [START contactcenterinsights_v1_generated_ContactCenterInsights_DeployIssueModel_async] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_deploy_issue_model_sync.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_deploy_issue_model_sync.py index c64cc7f1c76d..f2272b1111ac 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_deploy_issue_model_sync.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_deploy_issue_model_sync.py @@ -24,6 +24,13 @@ # [START contactcenterinsights_v1_generated_ContactCenterInsights_DeployIssueModel_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_export_insights_data_async.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_export_insights_data_async.py index f144d0256783..93c393ea2525 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_export_insights_data_async.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_export_insights_data_async.py @@ -24,6 +24,13 @@ # [START contactcenterinsights_v1_generated_ContactCenterInsights_ExportInsightsData_async] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_export_insights_data_sync.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_export_insights_data_sync.py index 771ab096efab..1acf6b9fa457 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_export_insights_data_sync.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_export_insights_data_sync.py @@ -24,6 +24,13 @@ # [START contactcenterinsights_v1_generated_ContactCenterInsights_ExportInsightsData_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_analysis_async.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_analysis_async.py index 00c110313f70..f2c1207d341a 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_analysis_async.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_analysis_async.py @@ -24,6 +24,13 @@ # [START contactcenterinsights_v1_generated_ContactCenterInsights_GetAnalysis_async] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_analysis_sync.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_analysis_sync.py index 464a2dc40d6c..b7ef0de1e403 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_analysis_sync.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_analysis_sync.py @@ -24,6 +24,13 @@ # [START contactcenterinsights_v1_generated_ContactCenterInsights_GetAnalysis_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_conversation_async.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_conversation_async.py index 1f30a8621513..ab197ef71b64 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_conversation_async.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_conversation_async.py @@ -24,6 +24,13 @@ # [START contactcenterinsights_v1_generated_ContactCenterInsights_GetConversation_async] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_conversation_sync.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_conversation_sync.py index d3ed360a81f6..690e0245fa92 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_conversation_sync.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_conversation_sync.py @@ -24,6 +24,13 @@ # [START contactcenterinsights_v1_generated_ContactCenterInsights_GetConversation_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_issue_async.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_issue_async.py index 8df7a7479c0a..a7eda9d12034 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_issue_async.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_issue_async.py @@ -24,6 +24,13 @@ # [START contactcenterinsights_v1_generated_ContactCenterInsights_GetIssue_async] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_issue_model_async.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_issue_model_async.py index 42fef98af69c..92a9327646d9 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_issue_model_async.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_issue_model_async.py @@ -24,6 +24,13 @@ # [START contactcenterinsights_v1_generated_ContactCenterInsights_GetIssueModel_async] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_issue_model_sync.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_issue_model_sync.py index 9c41236bd7f6..a58cd574d526 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_issue_model_sync.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_issue_model_sync.py @@ -24,6 +24,13 @@ # [START contactcenterinsights_v1_generated_ContactCenterInsights_GetIssueModel_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_issue_sync.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_issue_sync.py index 32a7645187c6..9699fbc4f167 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_issue_sync.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_issue_sync.py @@ -24,6 +24,13 @@ # [START contactcenterinsights_v1_generated_ContactCenterInsights_GetIssue_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_phrase_matcher_async.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_phrase_matcher_async.py index cbd5b9ca0d65..1a3597d122a4 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_phrase_matcher_async.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_phrase_matcher_async.py @@ -24,6 +24,13 @@ # [START contactcenterinsights_v1_generated_ContactCenterInsights_GetPhraseMatcher_async] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_phrase_matcher_sync.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_phrase_matcher_sync.py index 7787aebcb62a..8dc9173aae2c 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_phrase_matcher_sync.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_phrase_matcher_sync.py @@ -24,6 +24,13 @@ # [START contactcenterinsights_v1_generated_ContactCenterInsights_GetPhraseMatcher_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_settings_async.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_settings_async.py index 1d0fed71068f..5cf2811a3782 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_settings_async.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_settings_async.py @@ -24,6 +24,13 @@ # [START contactcenterinsights_v1_generated_ContactCenterInsights_GetSettings_async] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_settings_sync.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_settings_sync.py index c245f5ae837c..fbc757f9a13d 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_settings_sync.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_settings_sync.py @@ -24,6 +24,13 @@ # [START contactcenterinsights_v1_generated_ContactCenterInsights_GetSettings_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_view_async.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_view_async.py index 9b9b3bbfd5d8..8dc0086b33d6 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_view_async.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_view_async.py @@ -24,6 +24,13 @@ # [START contactcenterinsights_v1_generated_ContactCenterInsights_GetView_async] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_view_sync.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_view_sync.py index a26a3aa2c28d..bc49ba8e3582 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_view_sync.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_view_sync.py @@ -24,6 +24,13 @@ # [START contactcenterinsights_v1_generated_ContactCenterInsights_GetView_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_analyses_async.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_analyses_async.py index e5eefe5004b2..856e278d07b5 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_analyses_async.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_analyses_async.py @@ -24,6 +24,13 @@ # [START contactcenterinsights_v1_generated_ContactCenterInsights_ListAnalyses_async] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_analyses_sync.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_analyses_sync.py index 09afc16570f9..c88d3c2a7842 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_analyses_sync.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_analyses_sync.py @@ -24,6 +24,13 @@ # [START contactcenterinsights_v1_generated_ContactCenterInsights_ListAnalyses_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_conversations_async.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_conversations_async.py index f9a7dfafbe2e..42ddbe9e796b 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_conversations_async.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_conversations_async.py @@ -24,6 +24,13 @@ # [START contactcenterinsights_v1_generated_ContactCenterInsights_ListConversations_async] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_conversations_sync.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_conversations_sync.py index 99b88fc1fa1a..1abfea04e41a 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_conversations_sync.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_conversations_sync.py @@ -24,6 +24,13 @@ # [START contactcenterinsights_v1_generated_ContactCenterInsights_ListConversations_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_issue_models_async.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_issue_models_async.py index 14ff81129b5a..19028313fcef 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_issue_models_async.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_issue_models_async.py @@ -24,6 +24,13 @@ # [START contactcenterinsights_v1_generated_ContactCenterInsights_ListIssueModels_async] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_issue_models_sync.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_issue_models_sync.py index 5d912adcf7d1..01fb301a7f37 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_issue_models_sync.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_issue_models_sync.py @@ -24,6 +24,13 @@ # [START contactcenterinsights_v1_generated_ContactCenterInsights_ListIssueModels_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_issues_async.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_issues_async.py index 8ba5e20f2d0d..af49a8b79319 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_issues_async.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_issues_async.py @@ -24,6 +24,13 @@ # [START contactcenterinsights_v1_generated_ContactCenterInsights_ListIssues_async] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_issues_sync.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_issues_sync.py index a0e4e39e9b9c..f5d68c026ea3 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_issues_sync.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_issues_sync.py @@ -24,6 +24,13 @@ # [START contactcenterinsights_v1_generated_ContactCenterInsights_ListIssues_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_phrase_matchers_async.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_phrase_matchers_async.py index 06cdf4ce061f..9160e719a7e0 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_phrase_matchers_async.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_phrase_matchers_async.py @@ -24,6 +24,13 @@ # [START contactcenterinsights_v1_generated_ContactCenterInsights_ListPhraseMatchers_async] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_phrase_matchers_sync.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_phrase_matchers_sync.py index b4b50b56ce1f..3ec27787d88a 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_phrase_matchers_sync.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_phrase_matchers_sync.py @@ -24,6 +24,13 @@ # [START contactcenterinsights_v1_generated_ContactCenterInsights_ListPhraseMatchers_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_views_async.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_views_async.py index e22e7aa7a77e..874754d47aaf 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_views_async.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_views_async.py @@ -24,6 +24,13 @@ # [START contactcenterinsights_v1_generated_ContactCenterInsights_ListViews_async] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_views_sync.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_views_sync.py index a549d492e10f..a83ed0fce2f1 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_views_sync.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_views_sync.py @@ -24,6 +24,13 @@ # [START contactcenterinsights_v1_generated_ContactCenterInsights_ListViews_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_undeploy_issue_model_async.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_undeploy_issue_model_async.py index edb45f1fe753..070bcbbc79e4 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_undeploy_issue_model_async.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_undeploy_issue_model_async.py @@ -24,6 +24,13 @@ # [START contactcenterinsights_v1_generated_ContactCenterInsights_UndeployIssueModel_async] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_undeploy_issue_model_sync.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_undeploy_issue_model_sync.py index e68ac33f05b4..c4db86ab5e6a 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_undeploy_issue_model_sync.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_undeploy_issue_model_sync.py @@ -24,6 +24,13 @@ # [START contactcenterinsights_v1_generated_ContactCenterInsights_UndeployIssueModel_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_conversation_async.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_conversation_async.py index ad2a98d6e342..28ab6499cd45 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_conversation_async.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_conversation_async.py @@ -24,6 +24,13 @@ # [START contactcenterinsights_v1_generated_ContactCenterInsights_UpdateConversation_async] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_conversation_sync.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_conversation_sync.py index 55367f7d2fb1..1195f619a31a 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_conversation_sync.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_conversation_sync.py @@ -24,6 +24,13 @@ # [START contactcenterinsights_v1_generated_ContactCenterInsights_UpdateConversation_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_issue_async.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_issue_async.py index d80ae86a196e..68c481c6225d 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_issue_async.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_issue_async.py @@ -24,6 +24,13 @@ # [START contactcenterinsights_v1_generated_ContactCenterInsights_UpdateIssue_async] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_issue_model_async.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_issue_model_async.py index 1fbdf1298241..b86d748adfe3 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_issue_model_async.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_issue_model_async.py @@ -24,6 +24,13 @@ # [START contactcenterinsights_v1_generated_ContactCenterInsights_UpdateIssueModel_async] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_issue_model_sync.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_issue_model_sync.py index f8dd3bb30972..7a3f67eb3b3c 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_issue_model_sync.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_issue_model_sync.py @@ -24,6 +24,13 @@ # [START contactcenterinsights_v1_generated_ContactCenterInsights_UpdateIssueModel_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_issue_sync.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_issue_sync.py index 0aa544e0b629..038ee0fad0d6 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_issue_sync.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_issue_sync.py @@ -24,6 +24,13 @@ # [START contactcenterinsights_v1_generated_ContactCenterInsights_UpdateIssue_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_phrase_matcher_async.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_phrase_matcher_async.py index e98cd578a99c..7e200c79de31 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_phrase_matcher_async.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_phrase_matcher_async.py @@ -24,6 +24,13 @@ # [START contactcenterinsights_v1_generated_ContactCenterInsights_UpdatePhraseMatcher_async] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_phrase_matcher_sync.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_phrase_matcher_sync.py index e99e499250ac..68e3a1e1c73c 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_phrase_matcher_sync.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_phrase_matcher_sync.py @@ -24,6 +24,13 @@ # [START contactcenterinsights_v1_generated_ContactCenterInsights_UpdatePhraseMatcher_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_settings_async.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_settings_async.py index 0a81f6746392..20a6d25509bd 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_settings_async.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_settings_async.py @@ -24,6 +24,13 @@ # [START contactcenterinsights_v1_generated_ContactCenterInsights_UpdateSettings_async] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_settings_sync.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_settings_sync.py index 942dc25f7a81..386517a9166c 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_settings_sync.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_settings_sync.py @@ -24,6 +24,13 @@ # [START contactcenterinsights_v1_generated_ContactCenterInsights_UpdateSettings_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_view_async.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_view_async.py index f8e3612efb90..22032f4d4bab 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_view_async.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_view_async.py @@ -24,6 +24,13 @@ # [START contactcenterinsights_v1_generated_ContactCenterInsights_UpdateView_async] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_view_sync.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_view_sync.py index 5931785b464f..aaa600dd3506 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_view_sync.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_view_sync.py @@ -24,6 +24,13 @@ # [START contactcenterinsights_v1_generated_ContactCenterInsights_UpdateView_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 diff --git a/contact-center-insights/generated_samples/snippet_metadata_contact center insights_v1.json b/contact-center-insights/generated_samples/snippet_metadata_contact center insights_v1.json index 7408c9ae86fe..5a409f8ada8b 100644 --- a/contact-center-insights/generated_samples/snippet_metadata_contact center insights_v1.json +++ b/contact-center-insights/generated_samples/snippet_metadata_contact center insights_v1.json @@ -59,33 +59,33 @@ "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_CalculateIssueModelStats_async", "segments": [ { - "end": 44, + "end": 51, "start": 27, "type": "FULL" }, { - "end": 44, + "end": 51, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 38, - "start": 34, + "end": 45, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 41, - "start": 39, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 45, - "start": 42, + "end": 52, + "start": 49, "type": "RESPONSE_HANDLING" } ], @@ -139,33 +139,33 @@ "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_CalculateIssueModelStats_sync", "segments": [ { - "end": 44, + "end": 51, "start": 27, "type": "FULL" }, { - "end": 44, + "end": 51, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 38, - "start": 34, + "end": 45, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 41, - "start": 39, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 45, - "start": 42, + "end": 52, + "start": 49, "type": "RESPONSE_HANDLING" } ], @@ -220,33 +220,33 @@ "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_CalculateStats_async", "segments": [ { - "end": 44, + "end": 51, "start": 27, "type": "FULL" }, { - "end": 44, + "end": 51, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 38, - "start": 34, + "end": 45, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 41, - "start": 39, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 45, - "start": 42, + "end": 52, + "start": 49, "type": "RESPONSE_HANDLING" } ], @@ -300,33 +300,33 @@ "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_CalculateStats_sync", "segments": [ { - "end": 44, + "end": 51, "start": 27, "type": "FULL" }, { - "end": 44, + "end": 51, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 38, - "start": 34, + "end": 45, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 41, - "start": 39, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 45, - "start": 42, + "end": 52, + "start": 49, "type": "RESPONSE_HANDLING" } ], @@ -385,33 +385,33 @@ "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_CreateAnalysis_async", "segments": [ { - "end": 48, + "end": 55, "start": 27, "type": "FULL" }, { - "end": 48, + "end": 55, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 38, - "start": 34, + "end": 45, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 45, - "start": 39, + "end": 52, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 49, - "start": 46, + "end": 56, + "start": 53, "type": "RESPONSE_HANDLING" } ], @@ -469,33 +469,33 @@ "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_CreateAnalysis_sync", "segments": [ { - "end": 48, + "end": 55, "start": 27, "type": "FULL" }, { - "end": 48, + "end": 55, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 38, - "start": 34, + "end": 45, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 45, - "start": 39, + "end": 52, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 49, - "start": 46, + "end": 56, + "start": 53, "type": "RESPONSE_HANDLING" } ], @@ -558,33 +558,33 @@ "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_CreateConversation_async", "segments": [ { - "end": 44, + "end": 51, "start": 27, "type": "FULL" }, { - "end": 44, + "end": 51, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 38, - "start": 34, + "end": 45, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 41, - "start": 39, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 45, - "start": 42, + "end": 52, + "start": 49, "type": "RESPONSE_HANDLING" } ], @@ -646,33 +646,33 @@ "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_CreateConversation_sync", "segments": [ { - "end": 44, + "end": 51, "start": 27, "type": "FULL" }, { - "end": 44, + "end": 51, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 38, - "start": 34, + "end": 45, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 41, - "start": 39, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 45, - "start": 42, + "end": 52, + "start": 49, "type": "RESPONSE_HANDLING" } ], @@ -731,33 +731,33 @@ "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_CreateIssueModel_async", "segments": [ { - "end": 48, + "end": 55, "start": 27, "type": "FULL" }, { - "end": 48, + "end": 55, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 38, - "start": 34, + "end": 45, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 45, - "start": 39, + "end": 52, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 49, - "start": 46, + "end": 56, + "start": 53, "type": "RESPONSE_HANDLING" } ], @@ -815,33 +815,33 @@ "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_CreateIssueModel_sync", "segments": [ { - "end": 48, + "end": 55, "start": 27, "type": "FULL" }, { - "end": 48, + "end": 55, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 38, - "start": 34, + "end": 45, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 45, - "start": 39, + "end": 52, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 49, - "start": 46, + "end": 56, + "start": 53, "type": "RESPONSE_HANDLING" } ], @@ -900,33 +900,33 @@ "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_CreatePhraseMatcher_async", "segments": [ { - "end": 48, + "end": 55, "start": 27, "type": "FULL" }, { - "end": 48, + "end": 55, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 42, - "start": 34, + "end": 49, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 45, - "start": 43, + "end": 52, + "start": 50, "type": "REQUEST_EXECUTION" }, { - "end": 49, - "start": 46, + "end": 56, + "start": 53, "type": "RESPONSE_HANDLING" } ], @@ -984,33 +984,33 @@ "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_CreatePhraseMatcher_sync", "segments": [ { - "end": 48, + "end": 55, "start": 27, "type": "FULL" }, { - "end": 48, + "end": 55, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 42, - "start": 34, + "end": 49, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 45, - "start": 43, + "end": 52, + "start": 50, "type": "REQUEST_EXECUTION" }, { - "end": 49, - "start": 46, + "end": 56, + "start": 53, "type": "RESPONSE_HANDLING" } ], @@ -1069,33 +1069,33 @@ "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_CreateView_async", "segments": [ { - "end": 44, + "end": 51, "start": 27, "type": "FULL" }, { - "end": 44, + "end": 51, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 38, - "start": 34, + "end": 45, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 41, - "start": 39, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 45, - "start": 42, + "end": 52, + "start": 49, "type": "RESPONSE_HANDLING" } ], @@ -1153,33 +1153,33 @@ "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_CreateView_sync", "segments": [ { - "end": 44, + "end": 51, "start": 27, "type": "FULL" }, { - "end": 44, + "end": 51, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 38, - "start": 34, + "end": 45, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 41, - "start": 39, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 45, - "start": 42, + "end": 52, + "start": 49, "type": "RESPONSE_HANDLING" } ], @@ -1233,31 +1233,31 @@ "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_DeleteAnalysis_async", "segments": [ { - "end": 42, + "end": 49, "start": 27, "type": "FULL" }, { - "end": 42, + "end": 49, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 38, - "start": 34, + "end": 45, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "start": 39, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 43, + "end": 50, "type": "RESPONSE_HANDLING" } ], @@ -1310,31 +1310,31 @@ "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_DeleteAnalysis_sync", "segments": [ { - "end": 42, + "end": 49, "start": 27, "type": "FULL" }, { - "end": 42, + "end": 49, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 38, - "start": 34, + "end": 45, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "start": 39, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 43, + "end": 50, "type": "RESPONSE_HANDLING" } ], @@ -1388,31 +1388,31 @@ "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_DeleteConversation_async", "segments": [ { - "end": 42, + "end": 49, "start": 27, "type": "FULL" }, { - "end": 42, + "end": 49, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 38, - "start": 34, + "end": 45, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "start": 39, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 43, + "end": 50, "type": "RESPONSE_HANDLING" } ], @@ -1465,31 +1465,31 @@ "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_DeleteConversation_sync", "segments": [ { - "end": 42, + "end": 49, "start": 27, "type": "FULL" }, { - "end": 42, + "end": 49, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 38, - "start": 34, + "end": 45, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "start": 39, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 43, + "end": 50, "type": "RESPONSE_HANDLING" } ], @@ -1544,33 +1544,33 @@ "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_DeleteIssueModel_async", "segments": [ { - "end": 48, + "end": 55, "start": 27, "type": "FULL" }, { - "end": 48, + "end": 55, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 38, - "start": 34, + "end": 45, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 45, - "start": 39, + "end": 52, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 49, - "start": 46, + "end": 56, + "start": 53, "type": "RESPONSE_HANDLING" } ], @@ -1624,33 +1624,33 @@ "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_DeleteIssueModel_sync", "segments": [ { - "end": 48, + "end": 55, "start": 27, "type": "FULL" }, { - "end": 48, + "end": 55, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 38, - "start": 34, + "end": 45, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 45, - "start": 39, + "end": 52, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 49, - "start": 46, + "end": 56, + "start": 53, "type": "RESPONSE_HANDLING" } ], @@ -1704,31 +1704,31 @@ "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_DeletePhraseMatcher_async", "segments": [ { - "end": 42, + "end": 49, "start": 27, "type": "FULL" }, { - "end": 42, + "end": 49, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 38, - "start": 34, + "end": 45, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "start": 39, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 43, + "end": 50, "type": "RESPONSE_HANDLING" } ], @@ -1781,31 +1781,31 @@ "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_DeletePhraseMatcher_sync", "segments": [ { - "end": 42, + "end": 49, "start": 27, "type": "FULL" }, { - "end": 42, + "end": 49, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 38, - "start": 34, + "end": 45, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "start": 39, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 43, + "end": 50, "type": "RESPONSE_HANDLING" } ], @@ -1859,31 +1859,31 @@ "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_DeleteView_async", "segments": [ { - "end": 42, + "end": 49, "start": 27, "type": "FULL" }, { - "end": 42, + "end": 49, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 38, - "start": 34, + "end": 45, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "start": 39, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 43, + "end": 50, "type": "RESPONSE_HANDLING" } ], @@ -1936,31 +1936,31 @@ "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_DeleteView_sync", "segments": [ { - "end": 42, + "end": 49, "start": 27, "type": "FULL" }, { - "end": 42, + "end": 49, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 38, - "start": 34, + "end": 45, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "start": 39, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 43, + "end": 50, "type": "RESPONSE_HANDLING" } ], @@ -2015,33 +2015,33 @@ "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_DeployIssueModel_async", "segments": [ { - "end": 48, + "end": 55, "start": 27, "type": "FULL" }, { - "end": 48, + "end": 55, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 38, - "start": 34, + "end": 45, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 45, - "start": 39, + "end": 52, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 49, - "start": 46, + "end": 56, + "start": 53, "type": "RESPONSE_HANDLING" } ], @@ -2095,33 +2095,33 @@ "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_DeployIssueModel_sync", "segments": [ { - "end": 48, + "end": 55, "start": 27, "type": "FULL" }, { - "end": 48, + "end": 55, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 38, - "start": 34, + "end": 45, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 45, - "start": 39, + "end": 52, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 49, - "start": 46, + "end": 56, + "start": 53, "type": "RESPONSE_HANDLING" } ], @@ -2176,33 +2176,33 @@ "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_ExportInsightsData_async", "segments": [ { - "end": 52, + "end": 59, "start": 27, "type": "FULL" }, { - "end": 52, + "end": 59, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 42, - "start": 34, + "end": 49, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 49, - "start": 43, + "end": 56, + "start": 50, "type": "REQUEST_EXECUTION" }, { - "end": 53, - "start": 50, + "end": 60, + "start": 57, "type": "RESPONSE_HANDLING" } ], @@ -2256,33 +2256,33 @@ "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_ExportInsightsData_sync", "segments": [ { - "end": 52, + "end": 59, "start": 27, "type": "FULL" }, { - "end": 52, + "end": 59, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 42, - "start": 34, + "end": 49, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 49, - "start": 43, + "end": 56, + "start": 50, "type": "REQUEST_EXECUTION" }, { - "end": 53, - "start": 50, + "end": 60, + "start": 57, "type": "RESPONSE_HANDLING" } ], @@ -2337,33 +2337,33 @@ "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_GetAnalysis_async", "segments": [ { - "end": 44, + "end": 51, "start": 27, "type": "FULL" }, { - "end": 44, + "end": 51, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 38, - "start": 34, + "end": 45, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 41, - "start": 39, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 45, - "start": 42, + "end": 52, + "start": 49, "type": "RESPONSE_HANDLING" } ], @@ -2417,33 +2417,33 @@ "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_GetAnalysis_sync", "segments": [ { - "end": 44, + "end": 51, "start": 27, "type": "FULL" }, { - "end": 44, + "end": 51, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 38, - "start": 34, + "end": 45, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 41, - "start": 39, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 45, - "start": 42, + "end": 52, + "start": 49, "type": "RESPONSE_HANDLING" } ], @@ -2498,33 +2498,33 @@ "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_GetConversation_async", "segments": [ { - "end": 44, + "end": 51, "start": 27, "type": "FULL" }, { - "end": 44, + "end": 51, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 38, - "start": 34, + "end": 45, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 41, - "start": 39, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 45, - "start": 42, + "end": 52, + "start": 49, "type": "RESPONSE_HANDLING" } ], @@ -2578,33 +2578,33 @@ "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_GetConversation_sync", "segments": [ { - "end": 44, + "end": 51, "start": 27, "type": "FULL" }, { - "end": 44, + "end": 51, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 38, - "start": 34, + "end": 45, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 41, - "start": 39, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 45, - "start": 42, + "end": 52, + "start": 49, "type": "RESPONSE_HANDLING" } ], @@ -2659,33 +2659,33 @@ "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_GetIssueModel_async", "segments": [ { - "end": 44, + "end": 51, "start": 27, "type": "FULL" }, { - "end": 44, + "end": 51, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 38, - "start": 34, + "end": 45, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 41, - "start": 39, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 45, - "start": 42, + "end": 52, + "start": 49, "type": "RESPONSE_HANDLING" } ], @@ -2739,33 +2739,33 @@ "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_GetIssueModel_sync", "segments": [ { - "end": 44, + "end": 51, "start": 27, "type": "FULL" }, { - "end": 44, + "end": 51, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 38, - "start": 34, + "end": 45, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 41, - "start": 39, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 45, - "start": 42, + "end": 52, + "start": 49, "type": "RESPONSE_HANDLING" } ], @@ -2820,33 +2820,33 @@ "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_GetIssue_async", "segments": [ { - "end": 44, + "end": 51, "start": 27, "type": "FULL" }, { - "end": 44, + "end": 51, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 38, - "start": 34, + "end": 45, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 41, - "start": 39, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 45, - "start": 42, + "end": 52, + "start": 49, "type": "RESPONSE_HANDLING" } ], @@ -2900,33 +2900,33 @@ "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_GetIssue_sync", "segments": [ { - "end": 44, + "end": 51, "start": 27, "type": "FULL" }, { - "end": 44, + "end": 51, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 38, - "start": 34, + "end": 45, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 41, - "start": 39, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 45, - "start": 42, + "end": 52, + "start": 49, "type": "RESPONSE_HANDLING" } ], @@ -2981,33 +2981,33 @@ "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_GetPhraseMatcher_async", "segments": [ { - "end": 44, + "end": 51, "start": 27, "type": "FULL" }, { - "end": 44, + "end": 51, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 38, - "start": 34, + "end": 45, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 41, - "start": 39, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 45, - "start": 42, + "end": 52, + "start": 49, "type": "RESPONSE_HANDLING" } ], @@ -3061,33 +3061,33 @@ "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_GetPhraseMatcher_sync", "segments": [ { - "end": 44, + "end": 51, "start": 27, "type": "FULL" }, { - "end": 44, + "end": 51, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 38, - "start": 34, + "end": 45, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 41, - "start": 39, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 45, - "start": 42, + "end": 52, + "start": 49, "type": "RESPONSE_HANDLING" } ], @@ -3142,33 +3142,33 @@ "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_GetSettings_async", "segments": [ { - "end": 44, + "end": 51, "start": 27, "type": "FULL" }, { - "end": 44, + "end": 51, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 38, - "start": 34, + "end": 45, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 41, - "start": 39, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 45, - "start": 42, + "end": 52, + "start": 49, "type": "RESPONSE_HANDLING" } ], @@ -3222,33 +3222,33 @@ "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_GetSettings_sync", "segments": [ { - "end": 44, + "end": 51, "start": 27, "type": "FULL" }, { - "end": 44, + "end": 51, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 38, - "start": 34, + "end": 45, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 41, - "start": 39, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 45, - "start": 42, + "end": 52, + "start": 49, "type": "RESPONSE_HANDLING" } ], @@ -3303,33 +3303,33 @@ "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_GetView_async", "segments": [ { - "end": 44, + "end": 51, "start": 27, "type": "FULL" }, { - "end": 44, + "end": 51, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 38, - "start": 34, + "end": 45, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 41, - "start": 39, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 45, - "start": 42, + "end": 52, + "start": 49, "type": "RESPONSE_HANDLING" } ], @@ -3383,33 +3383,33 @@ "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_GetView_sync", "segments": [ { - "end": 44, + "end": 51, "start": 27, "type": "FULL" }, { - "end": 44, + "end": 51, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 38, - "start": 34, + "end": 45, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 41, - "start": 39, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 45, - "start": 42, + "end": 52, + "start": 49, "type": "RESPONSE_HANDLING" } ], @@ -3464,33 +3464,33 @@ "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_ListAnalyses_async", "segments": [ { - "end": 45, + "end": 52, "start": 27, "type": "FULL" }, { - "end": 45, + "end": 52, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 38, - "start": 34, + "end": 45, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 41, - "start": 39, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 46, - "start": 42, + "end": 53, + "start": 49, "type": "RESPONSE_HANDLING" } ], @@ -3544,33 +3544,33 @@ "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_ListAnalyses_sync", "segments": [ { - "end": 45, + "end": 52, "start": 27, "type": "FULL" }, { - "end": 45, + "end": 52, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 38, - "start": 34, + "end": 45, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 41, - "start": 39, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 46, - "start": 42, + "end": 53, + "start": 49, "type": "RESPONSE_HANDLING" } ], @@ -3625,33 +3625,33 @@ "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_ListConversations_async", "segments": [ { - "end": 45, + "end": 52, "start": 27, "type": "FULL" }, { - "end": 45, + "end": 52, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 38, - "start": 34, + "end": 45, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 41, - "start": 39, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 46, - "start": 42, + "end": 53, + "start": 49, "type": "RESPONSE_HANDLING" } ], @@ -3705,33 +3705,33 @@ "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_ListConversations_sync", "segments": [ { - "end": 45, + "end": 52, "start": 27, "type": "FULL" }, { - "end": 45, + "end": 52, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 38, - "start": 34, + "end": 45, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 41, - "start": 39, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 46, - "start": 42, + "end": 53, + "start": 49, "type": "RESPONSE_HANDLING" } ], @@ -3786,33 +3786,33 @@ "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_ListIssueModels_async", "segments": [ { - "end": 44, + "end": 51, "start": 27, "type": "FULL" }, { - "end": 44, + "end": 51, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 38, - "start": 34, + "end": 45, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 41, - "start": 39, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 45, - "start": 42, + "end": 52, + "start": 49, "type": "RESPONSE_HANDLING" } ], @@ -3866,33 +3866,33 @@ "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_ListIssueModels_sync", "segments": [ { - "end": 44, + "end": 51, "start": 27, "type": "FULL" }, { - "end": 44, + "end": 51, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 38, - "start": 34, + "end": 45, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 41, - "start": 39, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 45, - "start": 42, + "end": 52, + "start": 49, "type": "RESPONSE_HANDLING" } ], @@ -3947,33 +3947,33 @@ "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_ListIssues_async", "segments": [ { - "end": 44, + "end": 51, "start": 27, "type": "FULL" }, { - "end": 44, + "end": 51, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 38, - "start": 34, + "end": 45, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 41, - "start": 39, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 45, - "start": 42, + "end": 52, + "start": 49, "type": "RESPONSE_HANDLING" } ], @@ -4027,33 +4027,33 @@ "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_ListIssues_sync", "segments": [ { - "end": 44, + "end": 51, "start": 27, "type": "FULL" }, { - "end": 44, + "end": 51, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 38, - "start": 34, + "end": 45, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 41, - "start": 39, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 45, - "start": 42, + "end": 52, + "start": 49, "type": "RESPONSE_HANDLING" } ], @@ -4108,33 +4108,33 @@ "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_ListPhraseMatchers_async", "segments": [ { - "end": 45, + "end": 52, "start": 27, "type": "FULL" }, { - "end": 45, + "end": 52, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 38, - "start": 34, + "end": 45, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 41, - "start": 39, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 46, - "start": 42, + "end": 53, + "start": 49, "type": "RESPONSE_HANDLING" } ], @@ -4188,33 +4188,33 @@ "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_ListPhraseMatchers_sync", "segments": [ { - "end": 45, + "end": 52, "start": 27, "type": "FULL" }, { - "end": 45, + "end": 52, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 38, - "start": 34, + "end": 45, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 41, - "start": 39, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 46, - "start": 42, + "end": 53, + "start": 49, "type": "RESPONSE_HANDLING" } ], @@ -4269,33 +4269,33 @@ "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_ListViews_async", "segments": [ { - "end": 45, + "end": 52, "start": 27, "type": "FULL" }, { - "end": 45, + "end": 52, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 38, - "start": 34, + "end": 45, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 41, - "start": 39, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 46, - "start": 42, + "end": 53, + "start": 49, "type": "RESPONSE_HANDLING" } ], @@ -4349,33 +4349,33 @@ "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_ListViews_sync", "segments": [ { - "end": 45, + "end": 52, "start": 27, "type": "FULL" }, { - "end": 45, + "end": 52, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 38, - "start": 34, + "end": 45, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 41, - "start": 39, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 46, - "start": 42, + "end": 53, + "start": 49, "type": "RESPONSE_HANDLING" } ], @@ -4430,33 +4430,33 @@ "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_UndeployIssueModel_async", "segments": [ { - "end": 48, + "end": 55, "start": 27, "type": "FULL" }, { - "end": 48, + "end": 55, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 38, - "start": 34, + "end": 45, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 45, - "start": 39, + "end": 52, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 49, - "start": 46, + "end": 56, + "start": 53, "type": "RESPONSE_HANDLING" } ], @@ -4510,33 +4510,33 @@ "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_UndeployIssueModel_sync", "segments": [ { - "end": 48, + "end": 55, "start": 27, "type": "FULL" }, { - "end": 48, + "end": 55, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 38, - "start": 34, + "end": 45, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 45, - "start": 39, + "end": 52, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 49, - "start": 46, + "end": 56, + "start": 53, "type": "RESPONSE_HANDLING" } ], @@ -4595,33 +4595,33 @@ "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_UpdateConversation_async", "segments": [ { - "end": 43, + "end": 50, "start": 27, "type": "FULL" }, { - "end": 43, + "end": 50, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 37, - "start": 34, + "end": 44, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 40, - "start": 38, + "end": 47, + "start": 45, "type": "REQUEST_EXECUTION" }, { - "end": 44, - "start": 41, + "end": 51, + "start": 48, "type": "RESPONSE_HANDLING" } ], @@ -4679,33 +4679,33 @@ "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_UpdateConversation_sync", "segments": [ { - "end": 43, + "end": 50, "start": 27, "type": "FULL" }, { - "end": 43, + "end": 50, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 37, - "start": 34, + "end": 44, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 40, - "start": 38, + "end": 47, + "start": 45, "type": "REQUEST_EXECUTION" }, { - "end": 44, - "start": 41, + "end": 51, + "start": 48, "type": "RESPONSE_HANDLING" } ], @@ -4764,33 +4764,33 @@ "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_UpdateIssueModel_async", "segments": [ { - "end": 43, + "end": 50, "start": 27, "type": "FULL" }, { - "end": 43, + "end": 50, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 37, - "start": 34, + "end": 44, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 40, - "start": 38, + "end": 47, + "start": 45, "type": "REQUEST_EXECUTION" }, { - "end": 44, - "start": 41, + "end": 51, + "start": 48, "type": "RESPONSE_HANDLING" } ], @@ -4848,33 +4848,33 @@ "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_UpdateIssueModel_sync", "segments": [ { - "end": 43, + "end": 50, "start": 27, "type": "FULL" }, { - "end": 43, + "end": 50, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 37, - "start": 34, + "end": 44, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 40, - "start": 38, + "end": 47, + "start": 45, "type": "REQUEST_EXECUTION" }, { - "end": 44, - "start": 41, + "end": 51, + "start": 48, "type": "RESPONSE_HANDLING" } ], @@ -4933,33 +4933,33 @@ "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_UpdateIssue_async", "segments": [ { - "end": 43, + "end": 50, "start": 27, "type": "FULL" }, { - "end": 43, + "end": 50, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 37, - "start": 34, + "end": 44, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 40, - "start": 38, + "end": 47, + "start": 45, "type": "REQUEST_EXECUTION" }, { - "end": 44, - "start": 41, + "end": 51, + "start": 48, "type": "RESPONSE_HANDLING" } ], @@ -5017,33 +5017,33 @@ "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_UpdateIssue_sync", "segments": [ { - "end": 43, + "end": 50, "start": 27, "type": "FULL" }, { - "end": 43, + "end": 50, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 37, - "start": 34, + "end": 44, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 40, - "start": 38, + "end": 47, + "start": 45, "type": "REQUEST_EXECUTION" }, { - "end": 44, - "start": 41, + "end": 51, + "start": 48, "type": "RESPONSE_HANDLING" } ], @@ -5102,33 +5102,33 @@ "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_UpdatePhraseMatcher_async", "segments": [ { - "end": 47, + "end": 54, "start": 27, "type": "FULL" }, { - "end": 47, + "end": 54, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 41, - "start": 34, + "end": 48, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 44, - "start": 42, + "end": 51, + "start": 49, "type": "REQUEST_EXECUTION" }, { - "end": 48, - "start": 45, + "end": 55, + "start": 52, "type": "RESPONSE_HANDLING" } ], @@ -5186,33 +5186,33 @@ "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_UpdatePhraseMatcher_sync", "segments": [ { - "end": 47, + "end": 54, "start": 27, "type": "FULL" }, { - "end": 47, + "end": 54, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 41, - "start": 34, + "end": 48, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 44, - "start": 42, + "end": 51, + "start": 49, "type": "REQUEST_EXECUTION" }, { - "end": 48, - "start": 45, + "end": 55, + "start": 52, "type": "RESPONSE_HANDLING" } ], @@ -5271,33 +5271,33 @@ "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_UpdateSettings_async", "segments": [ { - "end": 43, + "end": 50, "start": 27, "type": "FULL" }, { - "end": 43, + "end": 50, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 37, - "start": 34, + "end": 44, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 40, - "start": 38, + "end": 47, + "start": 45, "type": "REQUEST_EXECUTION" }, { - "end": 44, - "start": 41, + "end": 51, + "start": 48, "type": "RESPONSE_HANDLING" } ], @@ -5355,33 +5355,33 @@ "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_UpdateSettings_sync", "segments": [ { - "end": 43, + "end": 50, "start": 27, "type": "FULL" }, { - "end": 43, + "end": 50, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 37, - "start": 34, + "end": 44, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 40, - "start": 38, + "end": 47, + "start": 45, "type": "REQUEST_EXECUTION" }, { - "end": 44, - "start": 41, + "end": 51, + "start": 48, "type": "RESPONSE_HANDLING" } ], @@ -5440,33 +5440,33 @@ "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_UpdateView_async", "segments": [ { - "end": 43, + "end": 50, "start": 27, "type": "FULL" }, { - "end": 43, + "end": 50, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 37, - "start": 34, + "end": 44, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 40, - "start": 38, + "end": 47, + "start": 45, "type": "REQUEST_EXECUTION" }, { - "end": 44, - "start": 41, + "end": 51, + "start": 48, "type": "RESPONSE_HANDLING" } ], @@ -5524,33 +5524,33 @@ "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_UpdateView_sync", "segments": [ { - "end": 43, + "end": 50, "start": 27, "type": "FULL" }, { - "end": 43, + "end": 50, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 37, - "start": 34, + "end": 44, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 40, - "start": 38, + "end": 47, + "start": 45, "type": "REQUEST_EXECUTION" }, { - "end": 44, - "start": 41, + "end": 51, + "start": 48, "type": "RESPONSE_HANDLING" } ], From 07ff5dde723a33d98443dbdac814b4309f5c9af3 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Tue, 13 Sep 2022 16:18:39 +0000 Subject: [PATCH 085/112] chore: detect samples tests in nested directories (#246) Source-Link: https://github.com/googleapis/synthtool/commit/50db768f450a50d7c1fd62513c113c9bb96fd434 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:e09366bdf0fd9c8976592988390b24d53583dd9f002d476934da43725adbb978 --- contact-center-insights/snippets/noxfile.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/contact-center-insights/snippets/noxfile.py b/contact-center-insights/snippets/noxfile.py index e9eb1cbfa5db..c1715136d645 100644 --- a/contact-center-insights/snippets/noxfile.py +++ b/contact-center-insights/snippets/noxfile.py @@ -207,8 +207,10 @@ def _session_tests( session: nox.sessions.Session, post_install: Callable = None ) -> None: # check for presence of tests - test_list = glob.glob("*_test.py") + glob.glob("test_*.py") - test_list.extend(glob.glob("tests")) + test_list = glob.glob("**/*_test.py", recursive=True) + glob.glob( + "**/test_*.py", recursive=True + ) + test_list.extend(glob.glob("**/tests", recursive=True)) if len(test_list) == 0: print("No tests found, skipping directory.") From 5b739dd48fe626754084ab46577ce333ce61acb9 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 14 Sep 2022 19:48:22 +0200 Subject: [PATCH 086/112] chore(deps): update dependency google-api-core to v2.10.1 (#247) --- contact-center-insights/snippets/requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contact-center-insights/snippets/requirements.txt b/contact-center-insights/snippets/requirements.txt index b20420daf5e7..1727cfdb800b 100644 --- a/contact-center-insights/snippets/requirements.txt +++ b/contact-center-insights/snippets/requirements.txt @@ -1,3 +1,3 @@ -google-api-core==2.10.0 +google-api-core==2.10.1 google-cloud-bigquery==3.3.2 google-cloud-contact-center-insights==1.4.3 From 1e1d655c156a969fdb0d7bbe3368cd33af70fb17 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 20 Sep 2022 13:20:35 +0200 Subject: [PATCH 087/112] chore(deps): update dependency google-auth to v2.11.1 (#248) --- contact-center-insights/snippets/requirements-test.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contact-center-insights/snippets/requirements-test.txt b/contact-center-insights/snippets/requirements-test.txt index ba9c5f2e3904..e3ebe5f22c5e 100644 --- a/contact-center-insights/snippets/requirements-test.txt +++ b/contact-center-insights/snippets/requirements-test.txt @@ -1,3 +1,3 @@ -google-auth==2.11.0 +google-auth==2.11.1 google-cloud-pubsub==2.13.6 pytest==7.1.3 From cadc5b59177ace97c53d693e0e276d135e29ab40 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 4 Oct 2022 02:55:34 +0200 Subject: [PATCH 088/112] chore(deps): update all dependencies (#249) Co-authored-by: Anthonios Partheniou --- contact-center-insights/snippets/requirements-test.txt | 4 ++-- contact-center-insights/snippets/requirements.txt | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/contact-center-insights/snippets/requirements-test.txt b/contact-center-insights/snippets/requirements-test.txt index e3ebe5f22c5e..b5cc31ec53a6 100644 --- a/contact-center-insights/snippets/requirements-test.txt +++ b/contact-center-insights/snippets/requirements-test.txt @@ -1,3 +1,3 @@ -google-auth==2.11.1 -google-cloud-pubsub==2.13.6 +google-auth==2.12.0 +google-cloud-pubsub==2.13.7 pytest==7.1.3 diff --git a/contact-center-insights/snippets/requirements.txt b/contact-center-insights/snippets/requirements.txt index 1727cfdb800b..e43db59f8fca 100644 --- a/contact-center-insights/snippets/requirements.txt +++ b/contact-center-insights/snippets/requirements.txt @@ -1,3 +1,3 @@ google-api-core==2.10.1 -google-cloud-bigquery==3.3.2 +google-cloud-bigquery==3.3.3 google-cloud-contact-center-insights==1.4.3 From dec78aa44f9e3c212f7a62658df5bca6fc925c19 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 4 Oct 2022 03:08:01 +0200 Subject: [PATCH 089/112] chore(deps): update dependency google-cloud-contact-center-insights to v1.4.4 (#252) --- contact-center-insights/snippets/requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contact-center-insights/snippets/requirements.txt b/contact-center-insights/snippets/requirements.txt index e43db59f8fca..ef2d0d8ef588 100644 --- a/contact-center-insights/snippets/requirements.txt +++ b/contact-center-insights/snippets/requirements.txt @@ -1,3 +1,3 @@ google-api-core==2.10.1 google-cloud-bigquery==3.3.3 -google-cloud-contact-center-insights==1.4.3 +google-cloud-contact-center-insights==1.4.4 From deaffe497808c850bc7bde9d55bbb14771050195 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Sat, 8 Oct 2022 19:50:22 +0200 Subject: [PATCH 090/112] chore(deps): update dependency google-api-core to v2.10.2 (#255) --- contact-center-insights/snippets/requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contact-center-insights/snippets/requirements.txt b/contact-center-insights/snippets/requirements.txt index ef2d0d8ef588..cbc6cf673abe 100644 --- a/contact-center-insights/snippets/requirements.txt +++ b/contact-center-insights/snippets/requirements.txt @@ -1,3 +1,3 @@ -google-api-core==2.10.1 +google-api-core==2.10.2 google-cloud-bigquery==3.3.3 google-cloud-contact-center-insights==1.4.4 From e574e248e9cfb7dc8f3fc76bee9d8835febe6848 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 10 Oct 2022 20:13:05 +0200 Subject: [PATCH 091/112] chore(deps): update dependency google-cloud-contact-center-insights to v1.4.5 (#256) --- contact-center-insights/snippets/requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contact-center-insights/snippets/requirements.txt b/contact-center-insights/snippets/requirements.txt index cbc6cf673abe..6f58c5a92374 100644 --- a/contact-center-insights/snippets/requirements.txt +++ b/contact-center-insights/snippets/requirements.txt @@ -1,3 +1,3 @@ google-api-core==2.10.2 google-cloud-bigquery==3.3.3 -google-cloud-contact-center-insights==1.4.4 +google-cloud-contact-center-insights==1.4.5 From b9124026421ea4a3e98c64e27627e2a48a87bfc4 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 18 Oct 2022 17:31:53 +0200 Subject: [PATCH 092/112] chore(deps): update all dependencies (#257) --- contact-center-insights/snippets/requirements-test.txt | 4 ++-- contact-center-insights/snippets/requirements.txt | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/contact-center-insights/snippets/requirements-test.txt b/contact-center-insights/snippets/requirements-test.txt index b5cc31ec53a6..905f63331e2a 100644 --- a/contact-center-insights/snippets/requirements-test.txt +++ b/contact-center-insights/snippets/requirements-test.txt @@ -1,3 +1,3 @@ -google-auth==2.12.0 -google-cloud-pubsub==2.13.7 +google-auth==2.13.0 +google-cloud-pubsub==2.13.10 pytest==7.1.3 diff --git a/contact-center-insights/snippets/requirements.txt b/contact-center-insights/snippets/requirements.txt index 6f58c5a92374..8fa533f484ca 100644 --- a/contact-center-insights/snippets/requirements.txt +++ b/contact-center-insights/snippets/requirements.txt @@ -1,3 +1,3 @@ google-api-core==2.10.2 -google-cloud-bigquery==3.3.3 +google-cloud-bigquery==3.3.5 google-cloud-contact-center-insights==1.4.5 From bd7c6fd84bcd7484027b3d299b8924ae18e5865c Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 26 Oct 2022 12:46:28 +0200 Subject: [PATCH 093/112] chore(deps): update dependency pytest to v7.2.0 (#258) --- contact-center-insights/snippets/requirements-test.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contact-center-insights/snippets/requirements-test.txt b/contact-center-insights/snippets/requirements-test.txt index 905f63331e2a..4d48b5f4c89d 100644 --- a/contact-center-insights/snippets/requirements-test.txt +++ b/contact-center-insights/snippets/requirements-test.txt @@ -1,3 +1,3 @@ google-auth==2.13.0 google-cloud-pubsub==2.13.10 -pytest==7.1.3 +pytest==7.2.0 From 5712db4f6461b7db4d445a23d6ab87c842458922 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 1 Nov 2022 14:11:41 +0100 Subject: [PATCH 094/112] chore(deps): update dependency google-auth to v2.14.0 (#260) --- contact-center-insights/snippets/requirements-test.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contact-center-insights/snippets/requirements-test.txt b/contact-center-insights/snippets/requirements-test.txt index 4d48b5f4c89d..e22fccaccaf2 100644 --- a/contact-center-insights/snippets/requirements-test.txt +++ b/contact-center-insights/snippets/requirements-test.txt @@ -1,3 +1,3 @@ -google-auth==2.13.0 +google-auth==2.14.0 google-cloud-pubsub==2.13.10 pytest==7.2.0 From 19d6208baeea74a889a8a9445a9b9abb581e6066 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 21 Nov 2022 20:59:00 +0100 Subject: [PATCH 095/112] chore(deps): update all dependencies (#261) --- contact-center-insights/snippets/requirements-test.txt | 4 ++-- contact-center-insights/snippets/requirements.txt | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/contact-center-insights/snippets/requirements-test.txt b/contact-center-insights/snippets/requirements-test.txt index e22fccaccaf2..004f1ed39b5b 100644 --- a/contact-center-insights/snippets/requirements-test.txt +++ b/contact-center-insights/snippets/requirements-test.txt @@ -1,3 +1,3 @@ -google-auth==2.14.0 -google-cloud-pubsub==2.13.10 +google-auth==2.14.1 +google-cloud-pubsub==2.13.11 pytest==7.2.0 diff --git a/contact-center-insights/snippets/requirements.txt b/contact-center-insights/snippets/requirements.txt index 8fa533f484ca..d0e7b48f7eab 100644 --- a/contact-center-insights/snippets/requirements.txt +++ b/contact-center-insights/snippets/requirements.txt @@ -1,3 +1,3 @@ google-api-core==2.10.2 -google-cloud-bigquery==3.3.5 +google-cloud-bigquery==3.4.0 google-cloud-contact-center-insights==1.4.5 From d2bd683c3bc3e2982c57b7837df5313266bb5b7b Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Mon, 21 Nov 2022 15:17:09 -0500 Subject: [PATCH 096/112] chore: Update gapic-generator-python to v1.6.1 (#259) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore: update to gapic-generator-python 1.5.0 feat: add support for `google.cloud..__version__` PiperOrigin-RevId: 484665853 Source-Link: https://github.com/googleapis/googleapis/commit/8eb249a19db926c2fbc4ecf1dc09c0e521a88b22 Source-Link: https://github.com/googleapis/googleapis-gen/commit/c8aa327b5f478865fc3fd91e3c2768e54e26ad44 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYzhhYTMyN2I1ZjQ3ODg2NWZjM2ZkOTFlM2MyNzY4ZTU0ZTI2YWQ0NCJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * update version in gapic_version.py * add .release-please-manifest.json with correct version * add owlbot.py to exclude generated gapic_version.py * set manifest to true in .github/release-please.yml * add release-please-config.json * chore: Update to gapic-generator-python 1.6.0 feat(python): Add typing to proto.Message based class attributes feat(python): Snippetgen handling of repeated enum field PiperOrigin-RevId: 487326846 Source-Link: https://github.com/googleapis/googleapis/commit/da380c77bb87ba0f752baf07605dd1db30e1f7e1 Source-Link: https://github.com/googleapis/googleapis-gen/commit/61ef5762ee6731a0cbbfea22fd0eecee51ab1c8e Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNjFlZjU3NjJlZTY3MzFhMGNiYmZlYTIyZmQwZWVjZWU1MWFiMWM4ZSJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * feat: new APIs added to reflect updates to the filestore service - Add ENTERPRISE Tier - Add snapshot APIs: RevertInstance, ListSnapshots, CreateSnapshot, DeleteSnapshot, UpdateSnapshot - Add multi-share APIs: ListShares, GetShare, CreateShare, DeleteShare, UpdateShare - Add ConnectMode to NetworkConfig (for Private Service Access support) - New status codes (SUSPENDED/SUSPENDING, REVERTING/RESUMING) - Add SuspensionReason (for KMS related suspension) - Add new fields to Instance information: max_capacity_gb, capacity_step_size_gb, max_share_count, capacity_gb, multi_share_enabled PiperOrigin-RevId: 487492758 Source-Link: https://github.com/googleapis/googleapis/commit/5be5981f50322cf0c7388595e0f31ac5d0693469 Source-Link: https://github.com/googleapis/googleapis-gen/commit/ab0e217f560cc2c1afc11441c2eab6b6950efd2b Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYWIwZTIxN2Y1NjBjYzJjMWFmYzExNDQxYzJlYWI2YjY5NTBlZmQyYiJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * update path to snippet metadata json * chore: Update gapic-generator-python to v1.6.1 PiperOrigin-RevId: 488036204 Source-Link: https://github.com/googleapis/googleapis/commit/08f275f5c1c0d99056e1cb68376323414459ee19 Source-Link: https://github.com/googleapis/googleapis-gen/commit/555c0945e60649e38739ae64bc45719cdf72178f Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNTU1YzA5NDVlNjA2NDllMzg3MzlhZTY0YmM0NTcxOWNkZjcyMTc4ZiJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot Co-authored-by: Anthonios Partheniou --- ...nippet_metadata_google.cloud.contactcenterinsights.v1.json} | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) rename contact-center-insights/generated_samples/{snippet_metadata_contact center insights_v1.json => snippet_metadata_google.cloud.contactcenterinsights.v1.json} (99%) diff --git a/contact-center-insights/generated_samples/snippet_metadata_contact center insights_v1.json b/contact-center-insights/generated_samples/snippet_metadata_google.cloud.contactcenterinsights.v1.json similarity index 99% rename from contact-center-insights/generated_samples/snippet_metadata_contact center insights_v1.json rename to contact-center-insights/generated_samples/snippet_metadata_google.cloud.contactcenterinsights.v1.json index 5a409f8ada8b..8e668e6af7aa 100644 --- a/contact-center-insights/generated_samples/snippet_metadata_contact center insights_v1.json +++ b/contact-center-insights/generated_samples/snippet_metadata_google.cloud.contactcenterinsights.v1.json @@ -7,7 +7,8 @@ } ], "language": "PYTHON", - "name": "google-cloud-contact-center-insights" + "name": "google-cloud-contact-center-insights", + "version": "0.1.0" }, "snippets": [ { From 027df8f0ffbed8b7c339992dc508394a8ac4e5f4 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Sat, 26 Nov 2022 19:00:53 -0500 Subject: [PATCH 097/112] chore(python): drop flake8-import-order in samples noxfile (#266) Source-Link: https://github.com/googleapis/synthtool/commit/6ed3a831cb9ff69ef8a504c353e098ec0192ad93 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:3abfa0f1886adaf0b83f07cb117b24a639ea1cb9cffe56d43280b977033563eb Co-authored-by: Owl Bot --- contact-center-insights/snippets/noxfile.py | 26 +++------------------ 1 file changed, 3 insertions(+), 23 deletions(-) diff --git a/contact-center-insights/snippets/noxfile.py b/contact-center-insights/snippets/noxfile.py index c1715136d645..0577084695fc 100644 --- a/contact-center-insights/snippets/noxfile.py +++ b/contact-center-insights/snippets/noxfile.py @@ -18,7 +18,7 @@ import os from pathlib import Path import sys -from typing import Callable, Dict, List, Optional +from typing import Callable, Dict, Optional import nox @@ -108,22 +108,6 @@ def get_pytest_env_vars() -> Dict[str, str]: # -def _determine_local_import_names(start_dir: str) -> List[str]: - """Determines all import names that should be considered "local". - - This is used when running the linter to insure that import order is - properly checked. - """ - file_ext_pairs = [os.path.splitext(path) for path in os.listdir(start_dir)] - return [ - basename - for basename, extension in file_ext_pairs - if extension == ".py" - or os.path.isdir(os.path.join(start_dir, basename)) - and basename not in ("__pycache__") - ] - - # Linting with flake8. # # We ignore the following rules: @@ -138,7 +122,6 @@ def _determine_local_import_names(start_dir: str) -> List[str]: "--show-source", "--builtin=gettext", "--max-complexity=20", - "--import-order-style=google", "--exclude=.nox,.cache,env,lib,generated_pb2,*_pb2.py,*_pb2_grpc.py", "--ignore=E121,E123,E126,E203,E226,E24,E266,E501,E704,W503,W504,I202", "--max-line-length=88", @@ -148,14 +131,11 @@ def _determine_local_import_names(start_dir: str) -> List[str]: @nox.session def lint(session: nox.sessions.Session) -> None: if not TEST_CONFIG["enforce_type_hints"]: - session.install("flake8", "flake8-import-order") + session.install("flake8") else: - session.install("flake8", "flake8-import-order", "flake8-annotations") + session.install("flake8", "flake8-annotations") - local_names = _determine_local_import_names(".") args = FLAKE8_COMMON_ARGS + [ - "--application-import-names", - ",".join(local_names), ".", ] session.run("flake8", *args) From 47947b93e5af6927717e47c1c9e50ced87e0d36e Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Wed, 7 Dec 2022 10:32:19 -0500 Subject: [PATCH 098/112] fix(deps): Require google-api-core >=1.34.0, >=2.11.0 (#268) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix(deps): Require google-api-core >=1.34.0, >=2.11.0 fix: Drop usage of pkg_resources fix: Fix timeout default values docs(samples): Snippetgen should call await on the operation coroutine before calling result PiperOrigin-RevId: 493260409 Source-Link: https://github.com/googleapis/googleapis/commit/fea43879f83a8d0dacc9353b3f75f8f46d37162f Source-Link: https://github.com/googleapis/googleapis-gen/commit/387b7344c7529ee44be84e613b19a820508c612b Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMzg3YjczNDRjNzUyOWVlNDRiZTg0ZTYxM2IxOWE4MjA1MDhjNjEyYiJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * add gapic_version.py Co-authored-by: Owl Bot Co-authored-by: Anthonios Partheniou --- ...1_generated_contact_center_insights_create_analysis_async.py | 2 +- ...enerated_contact_center_insights_create_issue_model_async.py | 2 +- ...enerated_contact_center_insights_delete_issue_model_async.py | 2 +- ...enerated_contact_center_insights_deploy_issue_model_async.py | 2 +- ...erated_contact_center_insights_export_insights_data_async.py | 2 +- ...erated_contact_center_insights_undeploy_issue_model_async.py | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_create_analysis_async.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_create_analysis_async.py index 78990c3c99ea..793b9dcc9d69 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_create_analysis_async.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_create_analysis_async.py @@ -48,7 +48,7 @@ async def sample_create_analysis(): print("Waiting for operation to complete...") - response = await operation.result() + response = (await operation).result() # Handle the response print(response) diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_create_issue_model_async.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_create_issue_model_async.py index 2f47a544d16b..a69ffe518873 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_create_issue_model_async.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_create_issue_model_async.py @@ -48,7 +48,7 @@ async def sample_create_issue_model(): print("Waiting for operation to complete...") - response = await operation.result() + response = (await operation).result() # Handle the response print(response) diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_issue_model_async.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_issue_model_async.py index 736d76a6dfd1..800b643d9834 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_issue_model_async.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_issue_model_async.py @@ -48,7 +48,7 @@ async def sample_delete_issue_model(): print("Waiting for operation to complete...") - response = await operation.result() + response = (await operation).result() # Handle the response print(response) diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_deploy_issue_model_async.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_deploy_issue_model_async.py index a0ecfa9ecec3..7f26b983908d 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_deploy_issue_model_async.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_deploy_issue_model_async.py @@ -48,7 +48,7 @@ async def sample_deploy_issue_model(): print("Waiting for operation to complete...") - response = await operation.result() + response = (await operation).result() # Handle the response print(response) diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_export_insights_data_async.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_export_insights_data_async.py index 93c393ea2525..d90ef36ce31b 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_export_insights_data_async.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_export_insights_data_async.py @@ -52,7 +52,7 @@ async def sample_export_insights_data(): print("Waiting for operation to complete...") - response = await operation.result() + response = (await operation).result() # Handle the response print(response) diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_undeploy_issue_model_async.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_undeploy_issue_model_async.py index 070bcbbc79e4..d7fc5eeadc62 100644 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_undeploy_issue_model_async.py +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_undeploy_issue_model_async.py @@ -48,7 +48,7 @@ async def sample_undeploy_issue_model(): print("Waiting for operation to complete...") - response = await operation.result() + response = (await operation).result() # Handle the response print(response) From cc4c0a3583d96a934fac096a8717093a8af8a643 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Wed, 14 Dec 2022 09:50:21 -0500 Subject: [PATCH 099/112] feat: add Configurable Analysis, Bulk Upload, Bulk Analyze, Delete Issue Apis (#270) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: add Configurable Analysis, Bulk Upload, Bulk Analyze, Delete Issue Apis PiperOrigin-RevId: 495057883 Source-Link: https://github.com/googleapis/googleapis/commit/59a66eb3180ea8474c0a22da3fe964dbe7428c77 Source-Link: https://github.com/googleapis/googleapis-gen/commit/9e7f289c6c6e4fd5f63b6dcfee0d272ab1dca1de Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiOWU3ZjI4OWM2YzZlNGZkNWY2M2I2ZGNmZWUwZDI3MmFiMWRjYTFkZSJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- ...sights_bulk_analyze_conversations_async.py | 58 +++ ...nsights_bulk_analyze_conversations_sync.py | 58 +++ ...tact_center_insights_delete_issue_async.py | 50 ++ ...ntact_center_insights_delete_issue_sync.py | 50 ++ ...ter_insights_ingest_conversations_async.py | 64 +++ ...nter_insights_ingest_conversations_sync.py | 64 +++ ...google.cloud.contactcenterinsights.v1.json | 493 ++++++++++++++++++ 7 files changed, 837 insertions(+) create mode 100644 contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_bulk_analyze_conversations_async.py create mode 100644 contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_bulk_analyze_conversations_sync.py create mode 100644 contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_issue_async.py create mode 100644 contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_issue_sync.py create mode 100644 contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_ingest_conversations_async.py create mode 100644 contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_ingest_conversations_sync.py diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_bulk_analyze_conversations_async.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_bulk_analyze_conversations_async.py new file mode 100644 index 000000000000..963caae3f3d9 --- /dev/null +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_bulk_analyze_conversations_async.py @@ -0,0 +1,58 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 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 BulkAnalyzeConversations +# 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_v1_generated_ContactCenterInsights_BulkAnalyzeConversations_async] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import contact_center_insights_v1 + + +async def sample_bulk_analyze_conversations(): + # Create a client + client = contact_center_insights_v1.ContactCenterInsightsAsyncClient() + + # Initialize request argument(s) + request = contact_center_insights_v1.BulkAnalyzeConversationsRequest( + parent="parent_value", + filter="filter_value", + analysis_percentage=0.20170000000000002, + ) + + # Make the request + operation = client.bulk_analyze_conversations(request=request) + + print("Waiting for operation to complete...") + + response = (await operation).result() + + # Handle the response + print(response) + +# [END contactcenterinsights_v1_generated_ContactCenterInsights_BulkAnalyzeConversations_async] diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_bulk_analyze_conversations_sync.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_bulk_analyze_conversations_sync.py new file mode 100644 index 000000000000..7f640effe64f --- /dev/null +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_bulk_analyze_conversations_sync.py @@ -0,0 +1,58 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 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 BulkAnalyzeConversations +# 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_v1_generated_ContactCenterInsights_BulkAnalyzeConversations_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import contact_center_insights_v1 + + +def sample_bulk_analyze_conversations(): + # Create a client + client = contact_center_insights_v1.ContactCenterInsightsClient() + + # Initialize request argument(s) + request = contact_center_insights_v1.BulkAnalyzeConversationsRequest( + parent="parent_value", + filter="filter_value", + analysis_percentage=0.20170000000000002, + ) + + # Make the request + operation = client.bulk_analyze_conversations(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + +# [END contactcenterinsights_v1_generated_ContactCenterInsights_BulkAnalyzeConversations_sync] diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_issue_async.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_issue_async.py new file mode 100644 index 000000000000..105e36f8e787 --- /dev/null +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_issue_async.py @@ -0,0 +1,50 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 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 DeleteIssue +# 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_v1_generated_ContactCenterInsights_DeleteIssue_async] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import contact_center_insights_v1 + + +async def sample_delete_issue(): + # Create a client + client = contact_center_insights_v1.ContactCenterInsightsAsyncClient() + + # Initialize request argument(s) + request = contact_center_insights_v1.DeleteIssueRequest( + name="name_value", + ) + + # Make the request + await client.delete_issue(request=request) + + +# [END contactcenterinsights_v1_generated_ContactCenterInsights_DeleteIssue_async] diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_issue_sync.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_issue_sync.py new file mode 100644 index 000000000000..aa57745753e3 --- /dev/null +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_issue_sync.py @@ -0,0 +1,50 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 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 DeleteIssue +# 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_v1_generated_ContactCenterInsights_DeleteIssue_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import contact_center_insights_v1 + + +def sample_delete_issue(): + # Create a client + client = contact_center_insights_v1.ContactCenterInsightsClient() + + # Initialize request argument(s) + request = contact_center_insights_v1.DeleteIssueRequest( + name="name_value", + ) + + # Make the request + client.delete_issue(request=request) + + +# [END contactcenterinsights_v1_generated_ContactCenterInsights_DeleteIssue_sync] diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_ingest_conversations_async.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_ingest_conversations_async.py new file mode 100644 index 000000000000..f68b9417e63a --- /dev/null +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_ingest_conversations_async.py @@ -0,0 +1,64 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 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 IngestConversations +# 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_v1_generated_ContactCenterInsights_IngestConversations_async] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import contact_center_insights_v1 + + +async def sample_ingest_conversations(): + # Create a client + client = contact_center_insights_v1.ContactCenterInsightsAsyncClient() + + # Initialize request argument(s) + gcs_source = contact_center_insights_v1.GcsSource() + gcs_source.bucket_uri = "bucket_uri_value" + + transcript_object_config = contact_center_insights_v1.TranscriptObjectConfig() + transcript_object_config.medium = "CHAT" + + request = contact_center_insights_v1.IngestConversationsRequest( + gcs_source=gcs_source, + transcript_object_config=transcript_object_config, + parent="parent_value", + ) + + # Make the request + operation = client.ingest_conversations(request=request) + + print("Waiting for operation to complete...") + + response = (await operation).result() + + # Handle the response + print(response) + +# [END contactcenterinsights_v1_generated_ContactCenterInsights_IngestConversations_async] diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_ingest_conversations_sync.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_ingest_conversations_sync.py new file mode 100644 index 000000000000..79da234ad03f --- /dev/null +++ b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_ingest_conversations_sync.py @@ -0,0 +1,64 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 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 IngestConversations +# 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_v1_generated_ContactCenterInsights_IngestConversations_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import contact_center_insights_v1 + + +def sample_ingest_conversations(): + # Create a client + client = contact_center_insights_v1.ContactCenterInsightsClient() + + # Initialize request argument(s) + gcs_source = contact_center_insights_v1.GcsSource() + gcs_source.bucket_uri = "bucket_uri_value" + + transcript_object_config = contact_center_insights_v1.TranscriptObjectConfig() + transcript_object_config.medium = "CHAT" + + request = contact_center_insights_v1.IngestConversationsRequest( + gcs_source=gcs_source, + transcript_object_config=transcript_object_config, + parent="parent_value", + ) + + # Make the request + operation = client.ingest_conversations(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + +# [END contactcenterinsights_v1_generated_ContactCenterInsights_IngestConversations_sync] diff --git a/contact-center-insights/generated_samples/snippet_metadata_google.cloud.contactcenterinsights.v1.json b/contact-center-insights/generated_samples/snippet_metadata_google.cloud.contactcenterinsights.v1.json index 8e668e6af7aa..f35efc281427 100644 --- a/contact-center-insights/generated_samples/snippet_metadata_google.cloud.contactcenterinsights.v1.json +++ b/contact-center-insights/generated_samples/snippet_metadata_google.cloud.contactcenterinsights.v1.json @@ -11,6 +11,183 @@ "version": "0.1.0" }, "snippets": [ + { + "canonical": true, + "clientMethod": { + "async": true, + "client": { + "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsAsyncClient", + "shortName": "ContactCenterInsightsAsyncClient" + }, + "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsAsyncClient.bulk_analyze_conversations", + "method": { + "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.BulkAnalyzeConversations", + "service": { + "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights", + "shortName": "ContactCenterInsights" + }, + "shortName": "BulkAnalyzeConversations" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.contact_center_insights_v1.types.BulkAnalyzeConversationsRequest" + }, + { + "name": "parent", + "type": "str" + }, + { + "name": "filter", + "type": "str" + }, + { + "name": "analysis_percentage", + "type": "float" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.operation_async.AsyncOperation", + "shortName": "bulk_analyze_conversations" + }, + "description": "Sample for BulkAnalyzeConversations", + "file": "contactcenterinsights_v1_generated_contact_center_insights_bulk_analyze_conversations_async.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_BulkAnalyzeConversations_async", + "segments": [ + { + "end": 57, + "start": 27, + "type": "FULL" + }, + { + "end": 57, + "start": 27, + "type": "SHORT" + }, + { + "end": 40, + "start": 38, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 47, + "start": 41, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 54, + "start": 48, + "type": "REQUEST_EXECUTION" + }, + { + "end": 58, + "start": 55, + "type": "RESPONSE_HANDLING" + } + ], + "title": "contactcenterinsights_v1_generated_contact_center_insights_bulk_analyze_conversations_async.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsClient", + "shortName": "ContactCenterInsightsClient" + }, + "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsClient.bulk_analyze_conversations", + "method": { + "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.BulkAnalyzeConversations", + "service": { + "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights", + "shortName": "ContactCenterInsights" + }, + "shortName": "BulkAnalyzeConversations" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.contact_center_insights_v1.types.BulkAnalyzeConversationsRequest" + }, + { + "name": "parent", + "type": "str" + }, + { + "name": "filter", + "type": "str" + }, + { + "name": "analysis_percentage", + "type": "float" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.operation.Operation", + "shortName": "bulk_analyze_conversations" + }, + "description": "Sample for BulkAnalyzeConversations", + "file": "contactcenterinsights_v1_generated_contact_center_insights_bulk_analyze_conversations_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_BulkAnalyzeConversations_sync", + "segments": [ + { + "end": 57, + "start": 27, + "type": "FULL" + }, + { + "end": 57, + "start": 27, + "type": "SHORT" + }, + { + "end": 40, + "start": 38, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 47, + "start": 41, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 54, + "start": 48, + "type": "REQUEST_EXECUTION" + }, + { + "end": 58, + "start": 55, + "type": "RESPONSE_HANDLING" + } + ], + "title": "contactcenterinsights_v1_generated_contact_center_insights_bulk_analyze_conversations_sync.py" + }, { "canonical": true, "clientMethod": { @@ -1657,6 +1834,161 @@ ], "title": "contactcenterinsights_v1_generated_contact_center_insights_delete_issue_model_sync.py" }, + { + "canonical": true, + "clientMethod": { + "async": true, + "client": { + "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsAsyncClient", + "shortName": "ContactCenterInsightsAsyncClient" + }, + "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsAsyncClient.delete_issue", + "method": { + "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.DeleteIssue", + "service": { + "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights", + "shortName": "ContactCenterInsights" + }, + "shortName": "DeleteIssue" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.contact_center_insights_v1.types.DeleteIssueRequest" + }, + { + "name": "name", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "shortName": "delete_issue" + }, + "description": "Sample for DeleteIssue", + "file": "contactcenterinsights_v1_generated_contact_center_insights_delete_issue_async.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_DeleteIssue_async", + "segments": [ + { + "end": 49, + "start": 27, + "type": "FULL" + }, + { + "end": 49, + "start": 27, + "type": "SHORT" + }, + { + "end": 40, + "start": 38, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 45, + "start": 41, + "type": "REQUEST_INITIALIZATION" + }, + { + "start": 46, + "type": "REQUEST_EXECUTION" + }, + { + "end": 50, + "type": "RESPONSE_HANDLING" + } + ], + "title": "contactcenterinsights_v1_generated_contact_center_insights_delete_issue_async.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsClient", + "shortName": "ContactCenterInsightsClient" + }, + "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsClient.delete_issue", + "method": { + "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.DeleteIssue", + "service": { + "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights", + "shortName": "ContactCenterInsights" + }, + "shortName": "DeleteIssue" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.contact_center_insights_v1.types.DeleteIssueRequest" + }, + { + "name": "name", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "shortName": "delete_issue" + }, + "description": "Sample for DeleteIssue", + "file": "contactcenterinsights_v1_generated_contact_center_insights_delete_issue_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_DeleteIssue_sync", + "segments": [ + { + "end": 49, + "start": 27, + "type": "FULL" + }, + { + "end": 49, + "start": 27, + "type": "SHORT" + }, + { + "end": 40, + "start": 38, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 45, + "start": 41, + "type": "REQUEST_INITIALIZATION" + }, + { + "start": 46, + "type": "REQUEST_EXECUTION" + }, + { + "end": 50, + "type": "RESPONSE_HANDLING" + } + ], + "title": "contactcenterinsights_v1_generated_contact_center_insights_delete_issue_sync.py" + }, { "canonical": true, "clientMethod": { @@ -3416,6 +3748,167 @@ ], "title": "contactcenterinsights_v1_generated_contact_center_insights_get_view_sync.py" }, + { + "canonical": true, + "clientMethod": { + "async": true, + "client": { + "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsAsyncClient", + "shortName": "ContactCenterInsightsAsyncClient" + }, + "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsAsyncClient.ingest_conversations", + "method": { + "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.IngestConversations", + "service": { + "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights", + "shortName": "ContactCenterInsights" + }, + "shortName": "IngestConversations" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.contact_center_insights_v1.types.IngestConversationsRequest" + }, + { + "name": "parent", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.operation_async.AsyncOperation", + "shortName": "ingest_conversations" + }, + "description": "Sample for IngestConversations", + "file": "contactcenterinsights_v1_generated_contact_center_insights_ingest_conversations_async.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_IngestConversations_async", + "segments": [ + { + "end": 63, + "start": 27, + "type": "FULL" + }, + { + "end": 63, + "start": 27, + "type": "SHORT" + }, + { + "end": 40, + "start": 38, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 53, + "start": 41, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 60, + "start": 54, + "type": "REQUEST_EXECUTION" + }, + { + "end": 64, + "start": 61, + "type": "RESPONSE_HANDLING" + } + ], + "title": "contactcenterinsights_v1_generated_contact_center_insights_ingest_conversations_async.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsClient", + "shortName": "ContactCenterInsightsClient" + }, + "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsClient.ingest_conversations", + "method": { + "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.IngestConversations", + "service": { + "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights", + "shortName": "ContactCenterInsights" + }, + "shortName": "IngestConversations" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.contact_center_insights_v1.types.IngestConversationsRequest" + }, + { + "name": "parent", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.operation.Operation", + "shortName": "ingest_conversations" + }, + "description": "Sample for IngestConversations", + "file": "contactcenterinsights_v1_generated_contact_center_insights_ingest_conversations_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_IngestConversations_sync", + "segments": [ + { + "end": 63, + "start": 27, + "type": "FULL" + }, + { + "end": 63, + "start": 27, + "type": "SHORT" + }, + { + "end": 40, + "start": 38, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 53, + "start": 41, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 60, + "start": 54, + "type": "REQUEST_EXECUTION" + }, + { + "end": 64, + "start": 61, + "type": "RESPONSE_HANDLING" + } + ], + "title": "contactcenterinsights_v1_generated_contact_center_insights_ingest_conversations_sync.py" + }, { "canonical": true, "clientMethod": { From 3943ee3d6a35946588bee1a7a97e56ccad7f394c Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 15 Dec 2022 22:40:14 +0100 Subject: [PATCH 100/112] chore(deps): update all dependencies (#267) Co-authored-by: Anthonios Partheniou --- contact-center-insights/snippets/requirements-test.txt | 2 +- contact-center-insights/snippets/requirements.txt | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/contact-center-insights/snippets/requirements-test.txt b/contact-center-insights/snippets/requirements-test.txt index 004f1ed39b5b..5c6d28fed1fa 100644 --- a/contact-center-insights/snippets/requirements-test.txt +++ b/contact-center-insights/snippets/requirements-test.txt @@ -1,3 +1,3 @@ -google-auth==2.14.1 +google-auth==2.15.0 google-cloud-pubsub==2.13.11 pytest==7.2.0 diff --git a/contact-center-insights/snippets/requirements.txt b/contact-center-insights/snippets/requirements.txt index d0e7b48f7eab..4fdad19e42e1 100644 --- a/contact-center-insights/snippets/requirements.txt +++ b/contact-center-insights/snippets/requirements.txt @@ -1,3 +1,3 @@ -google-api-core==2.10.2 -google-cloud-bigquery==3.4.0 +google-api-core==2.11.0 +google-cloud-bigquery==3.4.1 google-cloud-contact-center-insights==1.4.5 From 49b5c21b4993fb988521db0644250c6e760f6a91 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 15 Dec 2022 17:06:44 -0500 Subject: [PATCH 101/112] chore(main): release 1.5.0 (#265) Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- .../snippet_metadata_google.cloud.contactcenterinsights.v1.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contact-center-insights/generated_samples/snippet_metadata_google.cloud.contactcenterinsights.v1.json b/contact-center-insights/generated_samples/snippet_metadata_google.cloud.contactcenterinsights.v1.json index f35efc281427..e805982428c6 100644 --- a/contact-center-insights/generated_samples/snippet_metadata_google.cloud.contactcenterinsights.v1.json +++ b/contact-center-insights/generated_samples/snippet_metadata_google.cloud.contactcenterinsights.v1.json @@ -8,7 +8,7 @@ ], "language": "PYTHON", "name": "google-cloud-contact-center-insights", - "version": "0.1.0" + "version": "1.5.0" }, "snippets": [ { From 4750a053c28022cd6e39e6568fe4266ac7817188 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Fri, 16 Dec 2022 03:26:09 +0100 Subject: [PATCH 102/112] chore(deps): update dependency google-cloud-contact-center-insights to v1.5.0 (#271) --- contact-center-insights/snippets/requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contact-center-insights/snippets/requirements.txt b/contact-center-insights/snippets/requirements.txt index 4fdad19e42e1..2cfdcc76667d 100644 --- a/contact-center-insights/snippets/requirements.txt +++ b/contact-center-insights/snippets/requirements.txt @@ -1,3 +1,3 @@ google-api-core==2.11.0 google-cloud-bigquery==3.4.1 -google-cloud-contact-center-insights==1.4.5 +google-cloud-contact-center-insights==1.5.0 From 15bc09e62e6216f9719a69c175bb9ec73413e49f Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Fri, 6 Jan 2023 08:25:11 -0500 Subject: [PATCH 103/112] chore(python): add support for python 3.11 (#272) Source-Link: https://github.com/googleapis/synthtool/commit/7197a001ffb6d8ce7b0b9b11c280f0c536c1033a Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:c43f1d918bcf817d337aa29ff833439494a158a0831508fda4ec75dc4c0d0320 Co-authored-by: Owl Bot --- contact-center-insights/snippets/noxfile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contact-center-insights/snippets/noxfile.py b/contact-center-insights/snippets/noxfile.py index 0577084695fc..de104dbc64d3 100644 --- a/contact-center-insights/snippets/noxfile.py +++ b/contact-center-insights/snippets/noxfile.py @@ -88,7 +88,7 @@ def get_pytest_env_vars() -> Dict[str, str]: # DO NOT EDIT - automatically generated. # All versions used to test samples. -ALL_VERSIONS = ["3.7", "3.8", "3.9", "3.10"] +ALL_VERSIONS = ["3.7", "3.8", "3.9", "3.10", "3.11"] # Any default versions that should be ignored. IGNORED_VERSIONS = TEST_CONFIG["ignored_versions"] From bc9bb38c2712183b8d750ba440c435aeb432210a Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 9 Jan 2023 22:49:27 +0000 Subject: [PATCH 104/112] chore(deps): update dependency google-auth to v2.16.0 (#273) --- contact-center-insights/snippets/requirements-test.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contact-center-insights/snippets/requirements-test.txt b/contact-center-insights/snippets/requirements-test.txt index 5c6d28fed1fa..70213894391e 100644 --- a/contact-center-insights/snippets/requirements-test.txt +++ b/contact-center-insights/snippets/requirements-test.txt @@ -1,3 +1,3 @@ -google-auth==2.15.0 +google-auth==2.16.0 google-cloud-pubsub==2.13.11 pytest==7.2.0 From 05229b83b49087eed0694f5556105d87f2380272 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Mon, 9 Jan 2023 23:16:32 -0500 Subject: [PATCH 105/112] feat: Add support for python 3.11 (#274) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: Add support for python 3.11 chore: Update gapic-generator-python to v1.8.0 PiperOrigin-RevId: 500768693 Source-Link: https://github.com/googleapis/googleapis/commit/190b612e3d0ff8f025875a669e5d68a1446d43c1 Source-Link: https://github.com/googleapis/googleapis-gen/commit/7bf29a414b9ecac3170f0b65bdc2a95705c0ef1a Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiN2JmMjlhNDE0YjllY2FjMzE3MGYwYjY1YmRjMmE5NTcwNWMwZWYxYSJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- .../snippet_metadata_google.cloud.contactcenterinsights.v1.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contact-center-insights/generated_samples/snippet_metadata_google.cloud.contactcenterinsights.v1.json b/contact-center-insights/generated_samples/snippet_metadata_google.cloud.contactcenterinsights.v1.json index e805982428c6..f35efc281427 100644 --- a/contact-center-insights/generated_samples/snippet_metadata_google.cloud.contactcenterinsights.v1.json +++ b/contact-center-insights/generated_samples/snippet_metadata_google.cloud.contactcenterinsights.v1.json @@ -8,7 +8,7 @@ ], "language": "PYTHON", "name": "google-cloud-contact-center-insights", - "version": "1.5.0" + "version": "0.1.0" }, "snippets": [ { From 0cdc0148d52d51feb7f4333566317985f1204d8b Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 10 Jan 2023 13:18:19 -0500 Subject: [PATCH 106/112] chore(main): release 1.6.0 (#275) Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- .../snippet_metadata_google.cloud.contactcenterinsights.v1.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contact-center-insights/generated_samples/snippet_metadata_google.cloud.contactcenterinsights.v1.json b/contact-center-insights/generated_samples/snippet_metadata_google.cloud.contactcenterinsights.v1.json index f35efc281427..9321b07a527b 100644 --- a/contact-center-insights/generated_samples/snippet_metadata_google.cloud.contactcenterinsights.v1.json +++ b/contact-center-insights/generated_samples/snippet_metadata_google.cloud.contactcenterinsights.v1.json @@ -8,7 +8,7 @@ ], "language": "PYTHON", "name": "google-cloud-contact-center-insights", - "version": "0.1.0" + "version": "1.6.0" }, "snippets": [ { From 8bf0774a188bd5170dc1ba4d665d5302f3b46357 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 10 Jan 2023 18:33:36 +0000 Subject: [PATCH 107/112] chore(deps): update dependency google-cloud-pubsub to v2.13.12 (#276) --- contact-center-insights/snippets/requirements-test.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contact-center-insights/snippets/requirements-test.txt b/contact-center-insights/snippets/requirements-test.txt index 70213894391e..b5a8b7b49721 100644 --- a/contact-center-insights/snippets/requirements-test.txt +++ b/contact-center-insights/snippets/requirements-test.txt @@ -1,3 +1,3 @@ google-auth==2.16.0 -google-cloud-pubsub==2.13.11 +google-cloud-pubsub==2.13.12 pytest==7.2.0 From 04413ee6e56550c4623fa68a5a083157a1e1b55f Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 10 Jan 2023 18:59:28 +0000 Subject: [PATCH 108/112] chore(deps): update dependency google-cloud-contact-center-insights to v1.6.0 (#277) --- contact-center-insights/snippets/requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contact-center-insights/snippets/requirements.txt b/contact-center-insights/snippets/requirements.txt index 2cfdcc76667d..c1672ab994cc 100644 --- a/contact-center-insights/snippets/requirements.txt +++ b/contact-center-insights/snippets/requirements.txt @@ -1,3 +1,3 @@ google-api-core==2.11.0 google-cloud-bigquery==3.4.1 -google-cloud-contact-center-insights==1.5.0 +google-cloud-contact-center-insights==1.6.0 From a61620063e69906fcc548a897b102adf8dd0240a Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Sat, 14 Jan 2023 18:14:37 +0000 Subject: [PATCH 109/112] chore(deps): update dependency pytest to v7.2.1 (#278) --- contact-center-insights/snippets/requirements-test.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contact-center-insights/snippets/requirements-test.txt b/contact-center-insights/snippets/requirements-test.txt index b5a8b7b49721..e3d9b4d517e3 100644 --- a/contact-center-insights/snippets/requirements-test.txt +++ b/contact-center-insights/snippets/requirements-test.txt @@ -1,3 +1,3 @@ google-auth==2.16.0 google-cloud-pubsub==2.13.12 -pytest==7.2.0 +pytest==7.2.1 From 38fa908732d5fe133923c973359461d5b5006f1f Mon Sep 17 00:00:00 2001 From: Eric Schmidt Date: Mon, 23 Jan 2023 14:02:34 -0800 Subject: [PATCH 110/112] removed 'generated_samples' --- ...sights_bulk_analyze_conversations_async.py | 58 - ...nsights_bulk_analyze_conversations_sync.py | 58 - ...ights_calculate_issue_model_stats_async.py | 52 - ...sights_calculate_issue_model_stats_sync.py | 52 - ...t_center_insights_calculate_stats_async.py | 52 - ...ct_center_insights_calculate_stats_sync.py | 52 - ...t_center_insights_create_analysis_async.py | 56 - ...ct_center_insights_create_analysis_sync.py | 56 - ...nter_insights_create_conversation_async.py | 52 - ...enter_insights_create_conversation_sync.py | 52 - ...enter_insights_create_issue_model_async.py | 56 - ...center_insights_create_issue_model_sync.py | 56 - ...er_insights_create_phrase_matcher_async.py | 56 - ...ter_insights_create_phrase_matcher_sync.py | 56 - ...ntact_center_insights_create_view_async.py | 52 - ...ontact_center_insights_create_view_sync.py | 52 - ...t_center_insights_delete_analysis_async.py | 50 - ...ct_center_insights_delete_analysis_sync.py | 50 - ...nter_insights_delete_conversation_async.py | 50 - ...enter_insights_delete_conversation_sync.py | 50 - ...tact_center_insights_delete_issue_async.py | 50 - ...enter_insights_delete_issue_model_async.py | 56 - ...center_insights_delete_issue_model_sync.py | 56 - ...ntact_center_insights_delete_issue_sync.py | 50 - ...er_insights_delete_phrase_matcher_async.py | 50 - ...ter_insights_delete_phrase_matcher_sync.py | 50 - ...ntact_center_insights_delete_view_async.py | 50 - ...ontact_center_insights_delete_view_sync.py | 50 - ...enter_insights_deploy_issue_model_async.py | 56 - ...center_insights_deploy_issue_model_sync.py | 56 - ...ter_insights_export_insights_data_async.py | 60 - ...nter_insights_export_insights_data_sync.py | 60 - ...tact_center_insights_get_analysis_async.py | 52 - ...ntact_center_insights_get_analysis_sync.py | 52 - ..._center_insights_get_conversation_async.py | 52 - ...t_center_insights_get_conversation_sync.py | 52 - ...contact_center_insights_get_issue_async.py | 52 - ...t_center_insights_get_issue_model_async.py | 52 - ...ct_center_insights_get_issue_model_sync.py | 52 - ..._contact_center_insights_get_issue_sync.py | 52 - ...enter_insights_get_phrase_matcher_async.py | 52 - ...center_insights_get_phrase_matcher_sync.py | 52 - ...tact_center_insights_get_settings_async.py | 52 - ...ntact_center_insights_get_settings_sync.py | 52 - ..._contact_center_insights_get_view_async.py | 52 - ...d_contact_center_insights_get_view_sync.py | 52 - ...ter_insights_ingest_conversations_async.py | 64 - ...nter_insights_ingest_conversations_sync.py | 64 - ...act_center_insights_list_analyses_async.py | 53 - ...tact_center_insights_list_analyses_sync.py | 53 - ...enter_insights_list_conversations_async.py | 53 - ...center_insights_list_conversations_sync.py | 53 - ...center_insights_list_issue_models_async.py | 52 - ..._center_insights_list_issue_models_sync.py | 52 - ...ntact_center_insights_list_issues_async.py | 52 - ...ontact_center_insights_list_issues_sync.py | 52 - ...ter_insights_list_phrase_matchers_async.py | 53 - ...nter_insights_list_phrase_matchers_sync.py | 53 - ...ontact_center_insights_list_views_async.py | 53 - ...contact_center_insights_list_views_sync.py | 53 - ...ter_insights_undeploy_issue_model_async.py | 56 - ...nter_insights_undeploy_issue_model_sync.py | 56 - ...nter_insights_update_conversation_async.py | 51 - ...enter_insights_update_conversation_sync.py | 51 - ...tact_center_insights_update_issue_async.py | 51 - ...enter_insights_update_issue_model_async.py | 51 - ...center_insights_update_issue_model_sync.py | 51 - ...ntact_center_insights_update_issue_sync.py | 51 - ...er_insights_update_phrase_matcher_async.py | 55 - ...ter_insights_update_phrase_matcher_sync.py | 55 - ...t_center_insights_update_settings_async.py | 51 - ...ct_center_insights_update_settings_sync.py | 51 - ...ntact_center_insights_update_view_async.py | 51 - ...ontact_center_insights_update_view_sync.py | 51 - ...google.cloud.contactcenterinsights.v1.json | 6054 ----------------- 75 files changed, 9986 deletions(-) delete mode 100644 contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_bulk_analyze_conversations_async.py delete mode 100644 contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_bulk_analyze_conversations_sync.py delete mode 100644 contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_calculate_issue_model_stats_async.py delete mode 100644 contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_calculate_issue_model_stats_sync.py delete mode 100644 contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_calculate_stats_async.py delete mode 100644 contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_calculate_stats_sync.py delete mode 100644 contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_create_analysis_async.py delete mode 100644 contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_create_analysis_sync.py delete mode 100644 contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_create_conversation_async.py delete mode 100644 contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_create_conversation_sync.py delete mode 100644 contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_create_issue_model_async.py delete mode 100644 contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_create_issue_model_sync.py delete mode 100644 contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_create_phrase_matcher_async.py delete mode 100644 contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_create_phrase_matcher_sync.py delete mode 100644 contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_create_view_async.py delete mode 100644 contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_create_view_sync.py delete mode 100644 contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_analysis_async.py delete mode 100644 contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_analysis_sync.py delete mode 100644 contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_conversation_async.py delete mode 100644 contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_conversation_sync.py delete mode 100644 contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_issue_async.py delete mode 100644 contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_issue_model_async.py delete mode 100644 contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_issue_model_sync.py delete mode 100644 contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_issue_sync.py delete mode 100644 contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_phrase_matcher_async.py delete mode 100644 contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_phrase_matcher_sync.py delete mode 100644 contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_view_async.py delete mode 100644 contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_view_sync.py delete mode 100644 contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_deploy_issue_model_async.py delete mode 100644 contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_deploy_issue_model_sync.py delete mode 100644 contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_export_insights_data_async.py delete mode 100644 contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_export_insights_data_sync.py delete mode 100644 contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_analysis_async.py delete mode 100644 contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_analysis_sync.py delete mode 100644 contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_conversation_async.py delete mode 100644 contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_conversation_sync.py delete mode 100644 contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_issue_async.py delete mode 100644 contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_issue_model_async.py delete mode 100644 contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_issue_model_sync.py delete mode 100644 contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_issue_sync.py delete mode 100644 contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_phrase_matcher_async.py delete mode 100644 contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_phrase_matcher_sync.py delete mode 100644 contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_settings_async.py delete mode 100644 contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_settings_sync.py delete mode 100644 contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_view_async.py delete mode 100644 contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_view_sync.py delete mode 100644 contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_ingest_conversations_async.py delete mode 100644 contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_ingest_conversations_sync.py delete mode 100644 contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_analyses_async.py delete mode 100644 contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_analyses_sync.py delete mode 100644 contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_conversations_async.py delete mode 100644 contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_conversations_sync.py delete mode 100644 contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_issue_models_async.py delete mode 100644 contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_issue_models_sync.py delete mode 100644 contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_issues_async.py delete mode 100644 contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_issues_sync.py delete mode 100644 contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_phrase_matchers_async.py delete mode 100644 contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_phrase_matchers_sync.py delete mode 100644 contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_views_async.py delete mode 100644 contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_views_sync.py delete mode 100644 contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_undeploy_issue_model_async.py delete mode 100644 contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_undeploy_issue_model_sync.py delete mode 100644 contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_conversation_async.py delete mode 100644 contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_conversation_sync.py delete mode 100644 contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_issue_async.py delete mode 100644 contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_issue_model_async.py delete mode 100644 contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_issue_model_sync.py delete mode 100644 contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_issue_sync.py delete mode 100644 contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_phrase_matcher_async.py delete mode 100644 contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_phrase_matcher_sync.py delete mode 100644 contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_settings_async.py delete mode 100644 contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_settings_sync.py delete mode 100644 contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_view_async.py delete mode 100644 contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_view_sync.py delete mode 100644 contact-center-insights/generated_samples/snippet_metadata_google.cloud.contactcenterinsights.v1.json diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_bulk_analyze_conversations_async.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_bulk_analyze_conversations_async.py deleted file mode 100644 index 963caae3f3d9..000000000000 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_bulk_analyze_conversations_async.py +++ /dev/null @@ -1,58 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 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 BulkAnalyzeConversations -# 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_v1_generated_ContactCenterInsights_BulkAnalyzeConversations_async] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -from google.cloud import contact_center_insights_v1 - - -async def sample_bulk_analyze_conversations(): - # Create a client - client = contact_center_insights_v1.ContactCenterInsightsAsyncClient() - - # Initialize request argument(s) - request = contact_center_insights_v1.BulkAnalyzeConversationsRequest( - parent="parent_value", - filter="filter_value", - analysis_percentage=0.20170000000000002, - ) - - # Make the request - operation = client.bulk_analyze_conversations(request=request) - - print("Waiting for operation to complete...") - - response = (await operation).result() - - # Handle the response - print(response) - -# [END contactcenterinsights_v1_generated_ContactCenterInsights_BulkAnalyzeConversations_async] diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_bulk_analyze_conversations_sync.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_bulk_analyze_conversations_sync.py deleted file mode 100644 index 7f640effe64f..000000000000 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_bulk_analyze_conversations_sync.py +++ /dev/null @@ -1,58 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 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 BulkAnalyzeConversations -# 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_v1_generated_ContactCenterInsights_BulkAnalyzeConversations_sync] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -from google.cloud import contact_center_insights_v1 - - -def sample_bulk_analyze_conversations(): - # Create a client - client = contact_center_insights_v1.ContactCenterInsightsClient() - - # Initialize request argument(s) - request = contact_center_insights_v1.BulkAnalyzeConversationsRequest( - parent="parent_value", - filter="filter_value", - analysis_percentage=0.20170000000000002, - ) - - # Make the request - operation = client.bulk_analyze_conversations(request=request) - - print("Waiting for operation to complete...") - - response = operation.result() - - # Handle the response - print(response) - -# [END contactcenterinsights_v1_generated_ContactCenterInsights_BulkAnalyzeConversations_sync] diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_calculate_issue_model_stats_async.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_calculate_issue_model_stats_async.py deleted file mode 100644 index 5e790f1ea610..000000000000 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_calculate_issue_model_stats_async.py +++ /dev/null @@ -1,52 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 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_v1_generated_ContactCenterInsights_CalculateIssueModelStats_async] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -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_v1_generated_ContactCenterInsights_CalculateIssueModelStats_async] diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_calculate_issue_model_stats_sync.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_calculate_issue_model_stats_sync.py deleted file mode 100644 index 4b98da0a4ace..000000000000 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_calculate_issue_model_stats_sync.py +++ /dev/null @@ -1,52 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 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_v1_generated_ContactCenterInsights_CalculateIssueModelStats_sync] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -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_v1_generated_ContactCenterInsights_CalculateIssueModelStats_sync] diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_calculate_stats_async.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_calculate_stats_async.py deleted file mode 100644 index b4be91688c61..000000000000 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_calculate_stats_async.py +++ /dev/null @@ -1,52 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 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_v1_generated_ContactCenterInsights_CalculateStats_async] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -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_v1_generated_ContactCenterInsights_CalculateStats_async] diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_calculate_stats_sync.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_calculate_stats_sync.py deleted file mode 100644 index 598a9d511aff..000000000000 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_calculate_stats_sync.py +++ /dev/null @@ -1,52 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 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_v1_generated_ContactCenterInsights_CalculateStats_sync] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -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_v1_generated_ContactCenterInsights_CalculateStats_sync] diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_create_analysis_async.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_create_analysis_async.py deleted file mode 100644 index 793b9dcc9d69..000000000000 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_create_analysis_async.py +++ /dev/null @@ -1,56 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 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_v1_generated_ContactCenterInsights_CreateAnalysis_async] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -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_v1_generated_ContactCenterInsights_CreateAnalysis_async] diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_create_analysis_sync.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_create_analysis_sync.py deleted file mode 100644 index b39f3181f54c..000000000000 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_create_analysis_sync.py +++ /dev/null @@ -1,56 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 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_v1_generated_ContactCenterInsights_CreateAnalysis_sync] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -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_v1_generated_ContactCenterInsights_CreateAnalysis_sync] diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_create_conversation_async.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_create_conversation_async.py deleted file mode 100644 index 6c8ad25a4900..000000000000 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_create_conversation_async.py +++ /dev/null @@ -1,52 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 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_v1_generated_ContactCenterInsights_CreateConversation_async] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -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_v1_generated_ContactCenterInsights_CreateConversation_async] diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_create_conversation_sync.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_create_conversation_sync.py deleted file mode 100644 index e110c1684469..000000000000 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_create_conversation_sync.py +++ /dev/null @@ -1,52 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 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_v1_generated_ContactCenterInsights_CreateConversation_sync] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -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_v1_generated_ContactCenterInsights_CreateConversation_sync] diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_create_issue_model_async.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_create_issue_model_async.py deleted file mode 100644 index a69ffe518873..000000000000 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_create_issue_model_async.py +++ /dev/null @@ -1,56 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 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_v1_generated_ContactCenterInsights_CreateIssueModel_async] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -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_v1_generated_ContactCenterInsights_CreateIssueModel_async] diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_create_issue_model_sync.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_create_issue_model_sync.py deleted file mode 100644 index 02a10f62c811..000000000000 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_create_issue_model_sync.py +++ /dev/null @@ -1,56 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 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_v1_generated_ContactCenterInsights_CreateIssueModel_sync] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -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_v1_generated_ContactCenterInsights_CreateIssueModel_sync] diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_create_phrase_matcher_async.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_create_phrase_matcher_async.py deleted file mode 100644 index dd62fef9809c..000000000000 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_create_phrase_matcher_async.py +++ /dev/null @@ -1,56 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 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_v1_generated_ContactCenterInsights_CreatePhraseMatcher_async] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -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_v1_generated_ContactCenterInsights_CreatePhraseMatcher_async] diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_create_phrase_matcher_sync.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_create_phrase_matcher_sync.py deleted file mode 100644 index 000d11039f27..000000000000 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_create_phrase_matcher_sync.py +++ /dev/null @@ -1,56 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 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_v1_generated_ContactCenterInsights_CreatePhraseMatcher_sync] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -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_v1_generated_ContactCenterInsights_CreatePhraseMatcher_sync] diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_create_view_async.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_create_view_async.py deleted file mode 100644 index c7016c4ce028..000000000000 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_create_view_async.py +++ /dev/null @@ -1,52 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 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_v1_generated_ContactCenterInsights_CreateView_async] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -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_v1_generated_ContactCenterInsights_CreateView_async] diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_create_view_sync.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_create_view_sync.py deleted file mode 100644 index 395a6bf286f8..000000000000 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_create_view_sync.py +++ /dev/null @@ -1,52 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 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_v1_generated_ContactCenterInsights_CreateView_sync] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -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_v1_generated_ContactCenterInsights_CreateView_sync] diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_analysis_async.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_analysis_async.py deleted file mode 100644 index f3fdbfc4878e..000000000000 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_analysis_async.py +++ /dev/null @@ -1,50 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 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_v1_generated_ContactCenterInsights_DeleteAnalysis_async] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -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_v1_generated_ContactCenterInsights_DeleteAnalysis_async] diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_analysis_sync.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_analysis_sync.py deleted file mode 100644 index ebd37ea6b83e..000000000000 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_analysis_sync.py +++ /dev/null @@ -1,50 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 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_v1_generated_ContactCenterInsights_DeleteAnalysis_sync] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -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_v1_generated_ContactCenterInsights_DeleteAnalysis_sync] diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_conversation_async.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_conversation_async.py deleted file mode 100644 index b8464dfa7fc5..000000000000 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_conversation_async.py +++ /dev/null @@ -1,50 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 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_v1_generated_ContactCenterInsights_DeleteConversation_async] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -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_v1_generated_ContactCenterInsights_DeleteConversation_async] diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_conversation_sync.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_conversation_sync.py deleted file mode 100644 index 971590d387aa..000000000000 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_conversation_sync.py +++ /dev/null @@ -1,50 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 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_v1_generated_ContactCenterInsights_DeleteConversation_sync] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -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_v1_generated_ContactCenterInsights_DeleteConversation_sync] diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_issue_async.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_issue_async.py deleted file mode 100644 index 105e36f8e787..000000000000 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_issue_async.py +++ /dev/null @@ -1,50 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 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 DeleteIssue -# 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_v1_generated_ContactCenterInsights_DeleteIssue_async] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -from google.cloud import contact_center_insights_v1 - - -async def sample_delete_issue(): - # Create a client - client = contact_center_insights_v1.ContactCenterInsightsAsyncClient() - - # Initialize request argument(s) - request = contact_center_insights_v1.DeleteIssueRequest( - name="name_value", - ) - - # Make the request - await client.delete_issue(request=request) - - -# [END contactcenterinsights_v1_generated_ContactCenterInsights_DeleteIssue_async] diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_issue_model_async.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_issue_model_async.py deleted file mode 100644 index 800b643d9834..000000000000 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_issue_model_async.py +++ /dev/null @@ -1,56 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 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_v1_generated_ContactCenterInsights_DeleteIssueModel_async] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -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_v1_generated_ContactCenterInsights_DeleteIssueModel_async] diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_issue_model_sync.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_issue_model_sync.py deleted file mode 100644 index 23333ce2be8e..000000000000 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_issue_model_sync.py +++ /dev/null @@ -1,56 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 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_v1_generated_ContactCenterInsights_DeleteIssueModel_sync] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -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_v1_generated_ContactCenterInsights_DeleteIssueModel_sync] diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_issue_sync.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_issue_sync.py deleted file mode 100644 index aa57745753e3..000000000000 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_issue_sync.py +++ /dev/null @@ -1,50 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 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 DeleteIssue -# 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_v1_generated_ContactCenterInsights_DeleteIssue_sync] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -from google.cloud import contact_center_insights_v1 - - -def sample_delete_issue(): - # Create a client - client = contact_center_insights_v1.ContactCenterInsightsClient() - - # Initialize request argument(s) - request = contact_center_insights_v1.DeleteIssueRequest( - name="name_value", - ) - - # Make the request - client.delete_issue(request=request) - - -# [END contactcenterinsights_v1_generated_ContactCenterInsights_DeleteIssue_sync] diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_phrase_matcher_async.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_phrase_matcher_async.py deleted file mode 100644 index 74251f26bf0f..000000000000 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_phrase_matcher_async.py +++ /dev/null @@ -1,50 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 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_v1_generated_ContactCenterInsights_DeletePhraseMatcher_async] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -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_v1_generated_ContactCenterInsights_DeletePhraseMatcher_async] diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_phrase_matcher_sync.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_phrase_matcher_sync.py deleted file mode 100644 index a0fbc2b2b7ce..000000000000 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_phrase_matcher_sync.py +++ /dev/null @@ -1,50 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 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_v1_generated_ContactCenterInsights_DeletePhraseMatcher_sync] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -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_v1_generated_ContactCenterInsights_DeletePhraseMatcher_sync] diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_view_async.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_view_async.py deleted file mode 100644 index aa60713d00af..000000000000 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_view_async.py +++ /dev/null @@ -1,50 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 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_v1_generated_ContactCenterInsights_DeleteView_async] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -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_v1_generated_ContactCenterInsights_DeleteView_async] diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_view_sync.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_view_sync.py deleted file mode 100644 index b269b14490f1..000000000000 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_delete_view_sync.py +++ /dev/null @@ -1,50 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 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_v1_generated_ContactCenterInsights_DeleteView_sync] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -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_v1_generated_ContactCenterInsights_DeleteView_sync] diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_deploy_issue_model_async.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_deploy_issue_model_async.py deleted file mode 100644 index 7f26b983908d..000000000000 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_deploy_issue_model_async.py +++ /dev/null @@ -1,56 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 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_v1_generated_ContactCenterInsights_DeployIssueModel_async] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -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_v1_generated_ContactCenterInsights_DeployIssueModel_async] diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_deploy_issue_model_sync.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_deploy_issue_model_sync.py deleted file mode 100644 index f2272b1111ac..000000000000 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_deploy_issue_model_sync.py +++ /dev/null @@ -1,56 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 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_v1_generated_ContactCenterInsights_DeployIssueModel_sync] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -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_v1_generated_ContactCenterInsights_DeployIssueModel_sync] diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_export_insights_data_async.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_export_insights_data_async.py deleted file mode 100644 index d90ef36ce31b..000000000000 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_export_insights_data_async.py +++ /dev/null @@ -1,60 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 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_v1_generated_ContactCenterInsights_ExportInsightsData_async] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -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_v1_generated_ContactCenterInsights_ExportInsightsData_async] diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_export_insights_data_sync.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_export_insights_data_sync.py deleted file mode 100644 index 1acf6b9fa457..000000000000 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_export_insights_data_sync.py +++ /dev/null @@ -1,60 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 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_v1_generated_ContactCenterInsights_ExportInsightsData_sync] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -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_v1_generated_ContactCenterInsights_ExportInsightsData_sync] diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_analysis_async.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_analysis_async.py deleted file mode 100644 index f2c1207d341a..000000000000 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_analysis_async.py +++ /dev/null @@ -1,52 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 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_v1_generated_ContactCenterInsights_GetAnalysis_async] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -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_v1_generated_ContactCenterInsights_GetAnalysis_async] diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_analysis_sync.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_analysis_sync.py deleted file mode 100644 index b7ef0de1e403..000000000000 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_analysis_sync.py +++ /dev/null @@ -1,52 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 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_v1_generated_ContactCenterInsights_GetAnalysis_sync] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -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_v1_generated_ContactCenterInsights_GetAnalysis_sync] diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_conversation_async.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_conversation_async.py deleted file mode 100644 index ab197ef71b64..000000000000 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_conversation_async.py +++ /dev/null @@ -1,52 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 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_v1_generated_ContactCenterInsights_GetConversation_async] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -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_v1_generated_ContactCenterInsights_GetConversation_async] diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_conversation_sync.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_conversation_sync.py deleted file mode 100644 index 690e0245fa92..000000000000 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_conversation_sync.py +++ /dev/null @@ -1,52 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 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_v1_generated_ContactCenterInsights_GetConversation_sync] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -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_v1_generated_ContactCenterInsights_GetConversation_sync] diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_issue_async.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_issue_async.py deleted file mode 100644 index a7eda9d12034..000000000000 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_issue_async.py +++ /dev/null @@ -1,52 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 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_v1_generated_ContactCenterInsights_GetIssue_async] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -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_v1_generated_ContactCenterInsights_GetIssue_async] diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_issue_model_async.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_issue_model_async.py deleted file mode 100644 index 92a9327646d9..000000000000 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_issue_model_async.py +++ /dev/null @@ -1,52 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 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_v1_generated_ContactCenterInsights_GetIssueModel_async] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -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_v1_generated_ContactCenterInsights_GetIssueModel_async] diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_issue_model_sync.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_issue_model_sync.py deleted file mode 100644 index a58cd574d526..000000000000 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_issue_model_sync.py +++ /dev/null @@ -1,52 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 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_v1_generated_ContactCenterInsights_GetIssueModel_sync] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -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_v1_generated_ContactCenterInsights_GetIssueModel_sync] diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_issue_sync.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_issue_sync.py deleted file mode 100644 index 9699fbc4f167..000000000000 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_issue_sync.py +++ /dev/null @@ -1,52 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 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_v1_generated_ContactCenterInsights_GetIssue_sync] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -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_v1_generated_ContactCenterInsights_GetIssue_sync] diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_phrase_matcher_async.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_phrase_matcher_async.py deleted file mode 100644 index 1a3597d122a4..000000000000 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_phrase_matcher_async.py +++ /dev/null @@ -1,52 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 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_v1_generated_ContactCenterInsights_GetPhraseMatcher_async] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -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_v1_generated_ContactCenterInsights_GetPhraseMatcher_async] diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_phrase_matcher_sync.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_phrase_matcher_sync.py deleted file mode 100644 index 8dc9173aae2c..000000000000 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_phrase_matcher_sync.py +++ /dev/null @@ -1,52 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 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_v1_generated_ContactCenterInsights_GetPhraseMatcher_sync] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -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_v1_generated_ContactCenterInsights_GetPhraseMatcher_sync] diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_settings_async.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_settings_async.py deleted file mode 100644 index 5cf2811a3782..000000000000 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_settings_async.py +++ /dev/null @@ -1,52 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 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_v1_generated_ContactCenterInsights_GetSettings_async] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -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_v1_generated_ContactCenterInsights_GetSettings_async] diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_settings_sync.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_settings_sync.py deleted file mode 100644 index fbc757f9a13d..000000000000 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_settings_sync.py +++ /dev/null @@ -1,52 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 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_v1_generated_ContactCenterInsights_GetSettings_sync] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -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_v1_generated_ContactCenterInsights_GetSettings_sync] diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_view_async.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_view_async.py deleted file mode 100644 index 8dc0086b33d6..000000000000 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_view_async.py +++ /dev/null @@ -1,52 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 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_v1_generated_ContactCenterInsights_GetView_async] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -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_v1_generated_ContactCenterInsights_GetView_async] diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_view_sync.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_view_sync.py deleted file mode 100644 index bc49ba8e3582..000000000000 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_get_view_sync.py +++ /dev/null @@ -1,52 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 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_v1_generated_ContactCenterInsights_GetView_sync] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -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_v1_generated_ContactCenterInsights_GetView_sync] diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_ingest_conversations_async.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_ingest_conversations_async.py deleted file mode 100644 index f68b9417e63a..000000000000 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_ingest_conversations_async.py +++ /dev/null @@ -1,64 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 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 IngestConversations -# 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_v1_generated_ContactCenterInsights_IngestConversations_async] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -from google.cloud import contact_center_insights_v1 - - -async def sample_ingest_conversations(): - # Create a client - client = contact_center_insights_v1.ContactCenterInsightsAsyncClient() - - # Initialize request argument(s) - gcs_source = contact_center_insights_v1.GcsSource() - gcs_source.bucket_uri = "bucket_uri_value" - - transcript_object_config = contact_center_insights_v1.TranscriptObjectConfig() - transcript_object_config.medium = "CHAT" - - request = contact_center_insights_v1.IngestConversationsRequest( - gcs_source=gcs_source, - transcript_object_config=transcript_object_config, - parent="parent_value", - ) - - # Make the request - operation = client.ingest_conversations(request=request) - - print("Waiting for operation to complete...") - - response = (await operation).result() - - # Handle the response - print(response) - -# [END contactcenterinsights_v1_generated_ContactCenterInsights_IngestConversations_async] diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_ingest_conversations_sync.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_ingest_conversations_sync.py deleted file mode 100644 index 79da234ad03f..000000000000 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_ingest_conversations_sync.py +++ /dev/null @@ -1,64 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 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 IngestConversations -# 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_v1_generated_ContactCenterInsights_IngestConversations_sync] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -from google.cloud import contact_center_insights_v1 - - -def sample_ingest_conversations(): - # Create a client - client = contact_center_insights_v1.ContactCenterInsightsClient() - - # Initialize request argument(s) - gcs_source = contact_center_insights_v1.GcsSource() - gcs_source.bucket_uri = "bucket_uri_value" - - transcript_object_config = contact_center_insights_v1.TranscriptObjectConfig() - transcript_object_config.medium = "CHAT" - - request = contact_center_insights_v1.IngestConversationsRequest( - gcs_source=gcs_source, - transcript_object_config=transcript_object_config, - parent="parent_value", - ) - - # Make the request - operation = client.ingest_conversations(request=request) - - print("Waiting for operation to complete...") - - response = operation.result() - - # Handle the response - print(response) - -# [END contactcenterinsights_v1_generated_ContactCenterInsights_IngestConversations_sync] diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_analyses_async.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_analyses_async.py deleted file mode 100644 index 856e278d07b5..000000000000 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_analyses_async.py +++ /dev/null @@ -1,53 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 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_v1_generated_ContactCenterInsights_ListAnalyses_async] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -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_v1_generated_ContactCenterInsights_ListAnalyses_async] diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_analyses_sync.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_analyses_sync.py deleted file mode 100644 index c88d3c2a7842..000000000000 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_analyses_sync.py +++ /dev/null @@ -1,53 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 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_v1_generated_ContactCenterInsights_ListAnalyses_sync] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -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_v1_generated_ContactCenterInsights_ListAnalyses_sync] diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_conversations_async.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_conversations_async.py deleted file mode 100644 index 42ddbe9e796b..000000000000 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_conversations_async.py +++ /dev/null @@ -1,53 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 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_v1_generated_ContactCenterInsights_ListConversations_async] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -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_v1_generated_ContactCenterInsights_ListConversations_async] diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_conversations_sync.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_conversations_sync.py deleted file mode 100644 index 1abfea04e41a..000000000000 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_conversations_sync.py +++ /dev/null @@ -1,53 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 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_v1_generated_ContactCenterInsights_ListConversations_sync] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -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_v1_generated_ContactCenterInsights_ListConversations_sync] diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_issue_models_async.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_issue_models_async.py deleted file mode 100644 index 19028313fcef..000000000000 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_issue_models_async.py +++ /dev/null @@ -1,52 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 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_v1_generated_ContactCenterInsights_ListIssueModels_async] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -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_v1_generated_ContactCenterInsights_ListIssueModels_async] diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_issue_models_sync.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_issue_models_sync.py deleted file mode 100644 index 01fb301a7f37..000000000000 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_issue_models_sync.py +++ /dev/null @@ -1,52 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 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_v1_generated_ContactCenterInsights_ListIssueModels_sync] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -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_v1_generated_ContactCenterInsights_ListIssueModels_sync] diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_issues_async.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_issues_async.py deleted file mode 100644 index af49a8b79319..000000000000 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_issues_async.py +++ /dev/null @@ -1,52 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 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_v1_generated_ContactCenterInsights_ListIssues_async] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -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_v1_generated_ContactCenterInsights_ListIssues_async] diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_issues_sync.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_issues_sync.py deleted file mode 100644 index f5d68c026ea3..000000000000 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_issues_sync.py +++ /dev/null @@ -1,52 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 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_v1_generated_ContactCenterInsights_ListIssues_sync] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -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_v1_generated_ContactCenterInsights_ListIssues_sync] diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_phrase_matchers_async.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_phrase_matchers_async.py deleted file mode 100644 index 9160e719a7e0..000000000000 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_phrase_matchers_async.py +++ /dev/null @@ -1,53 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 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_v1_generated_ContactCenterInsights_ListPhraseMatchers_async] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -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_v1_generated_ContactCenterInsights_ListPhraseMatchers_async] diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_phrase_matchers_sync.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_phrase_matchers_sync.py deleted file mode 100644 index 3ec27787d88a..000000000000 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_phrase_matchers_sync.py +++ /dev/null @@ -1,53 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 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_v1_generated_ContactCenterInsights_ListPhraseMatchers_sync] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -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_v1_generated_ContactCenterInsights_ListPhraseMatchers_sync] diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_views_async.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_views_async.py deleted file mode 100644 index 874754d47aaf..000000000000 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_views_async.py +++ /dev/null @@ -1,53 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 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_v1_generated_ContactCenterInsights_ListViews_async] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -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_v1_generated_ContactCenterInsights_ListViews_async] diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_views_sync.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_views_sync.py deleted file mode 100644 index a83ed0fce2f1..000000000000 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_list_views_sync.py +++ /dev/null @@ -1,53 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 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_v1_generated_ContactCenterInsights_ListViews_sync] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -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_v1_generated_ContactCenterInsights_ListViews_sync] diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_undeploy_issue_model_async.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_undeploy_issue_model_async.py deleted file mode 100644 index d7fc5eeadc62..000000000000 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_undeploy_issue_model_async.py +++ /dev/null @@ -1,56 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 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_v1_generated_ContactCenterInsights_UndeployIssueModel_async] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -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_v1_generated_ContactCenterInsights_UndeployIssueModel_async] diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_undeploy_issue_model_sync.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_undeploy_issue_model_sync.py deleted file mode 100644 index c4db86ab5e6a..000000000000 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_undeploy_issue_model_sync.py +++ /dev/null @@ -1,56 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 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_v1_generated_ContactCenterInsights_UndeployIssueModel_sync] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -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_v1_generated_ContactCenterInsights_UndeployIssueModel_sync] diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_conversation_async.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_conversation_async.py deleted file mode 100644 index 28ab6499cd45..000000000000 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_conversation_async.py +++ /dev/null @@ -1,51 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 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_v1_generated_ContactCenterInsights_UpdateConversation_async] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -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_v1_generated_ContactCenterInsights_UpdateConversation_async] diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_conversation_sync.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_conversation_sync.py deleted file mode 100644 index 1195f619a31a..000000000000 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_conversation_sync.py +++ /dev/null @@ -1,51 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 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_v1_generated_ContactCenterInsights_UpdateConversation_sync] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -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_v1_generated_ContactCenterInsights_UpdateConversation_sync] diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_issue_async.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_issue_async.py deleted file mode 100644 index 68c481c6225d..000000000000 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_issue_async.py +++ /dev/null @@ -1,51 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 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_v1_generated_ContactCenterInsights_UpdateIssue_async] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -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_v1_generated_ContactCenterInsights_UpdateIssue_async] diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_issue_model_async.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_issue_model_async.py deleted file mode 100644 index b86d748adfe3..000000000000 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_issue_model_async.py +++ /dev/null @@ -1,51 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 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_v1_generated_ContactCenterInsights_UpdateIssueModel_async] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -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_v1_generated_ContactCenterInsights_UpdateIssueModel_async] diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_issue_model_sync.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_issue_model_sync.py deleted file mode 100644 index 7a3f67eb3b3c..000000000000 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_issue_model_sync.py +++ /dev/null @@ -1,51 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 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_v1_generated_ContactCenterInsights_UpdateIssueModel_sync] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -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_v1_generated_ContactCenterInsights_UpdateIssueModel_sync] diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_issue_sync.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_issue_sync.py deleted file mode 100644 index 038ee0fad0d6..000000000000 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_issue_sync.py +++ /dev/null @@ -1,51 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 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_v1_generated_ContactCenterInsights_UpdateIssue_sync] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -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_v1_generated_ContactCenterInsights_UpdateIssue_sync] diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_phrase_matcher_async.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_phrase_matcher_async.py deleted file mode 100644 index 7e200c79de31..000000000000 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_phrase_matcher_async.py +++ /dev/null @@ -1,55 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 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_v1_generated_ContactCenterInsights_UpdatePhraseMatcher_async] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -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_v1_generated_ContactCenterInsights_UpdatePhraseMatcher_async] diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_phrase_matcher_sync.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_phrase_matcher_sync.py deleted file mode 100644 index 68e3a1e1c73c..000000000000 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_phrase_matcher_sync.py +++ /dev/null @@ -1,55 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 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_v1_generated_ContactCenterInsights_UpdatePhraseMatcher_sync] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -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_v1_generated_ContactCenterInsights_UpdatePhraseMatcher_sync] diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_settings_async.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_settings_async.py deleted file mode 100644 index 20a6d25509bd..000000000000 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_settings_async.py +++ /dev/null @@ -1,51 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 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_v1_generated_ContactCenterInsights_UpdateSettings_async] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -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_v1_generated_ContactCenterInsights_UpdateSettings_async] diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_settings_sync.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_settings_sync.py deleted file mode 100644 index 386517a9166c..000000000000 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_settings_sync.py +++ /dev/null @@ -1,51 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 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_v1_generated_ContactCenterInsights_UpdateSettings_sync] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -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_v1_generated_ContactCenterInsights_UpdateSettings_sync] diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_view_async.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_view_async.py deleted file mode 100644 index 22032f4d4bab..000000000000 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_view_async.py +++ /dev/null @@ -1,51 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 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_v1_generated_ContactCenterInsights_UpdateView_async] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -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_v1_generated_ContactCenterInsights_UpdateView_async] diff --git a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_view_sync.py b/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_view_sync.py deleted file mode 100644 index aaa600dd3506..000000000000 --- a/contact-center-insights/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_view_sync.py +++ /dev/null @@ -1,51 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 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_v1_generated_ContactCenterInsights_UpdateView_sync] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -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_v1_generated_ContactCenterInsights_UpdateView_sync] diff --git a/contact-center-insights/generated_samples/snippet_metadata_google.cloud.contactcenterinsights.v1.json b/contact-center-insights/generated_samples/snippet_metadata_google.cloud.contactcenterinsights.v1.json deleted file mode 100644 index 9321b07a527b..000000000000 --- a/contact-center-insights/generated_samples/snippet_metadata_google.cloud.contactcenterinsights.v1.json +++ /dev/null @@ -1,6054 +0,0 @@ -{ - "clientLibrary": { - "apis": [ - { - "id": "google.cloud.contactcenterinsights.v1", - "version": "v1" - } - ], - "language": "PYTHON", - "name": "google-cloud-contact-center-insights", - "version": "1.6.0" - }, - "snippets": [ - { - "canonical": true, - "clientMethod": { - "async": true, - "client": { - "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsAsyncClient", - "shortName": "ContactCenterInsightsAsyncClient" - }, - "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsAsyncClient.bulk_analyze_conversations", - "method": { - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.BulkAnalyzeConversations", - "service": { - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights", - "shortName": "ContactCenterInsights" - }, - "shortName": "BulkAnalyzeConversations" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.contact_center_insights_v1.types.BulkAnalyzeConversationsRequest" - }, - { - "name": "parent", - "type": "str" - }, - { - "name": "filter", - "type": "str" - }, - { - "name": "analysis_percentage", - "type": "float" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "resultType": "google.api_core.operation_async.AsyncOperation", - "shortName": "bulk_analyze_conversations" - }, - "description": "Sample for BulkAnalyzeConversations", - "file": "contactcenterinsights_v1_generated_contact_center_insights_bulk_analyze_conversations_async.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_BulkAnalyzeConversations_async", - "segments": [ - { - "end": 57, - "start": 27, - "type": "FULL" - }, - { - "end": 57, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 47, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "end": 54, - "start": 48, - "type": "REQUEST_EXECUTION" - }, - { - "end": 58, - "start": 55, - "type": "RESPONSE_HANDLING" - } - ], - "title": "contactcenterinsights_v1_generated_contact_center_insights_bulk_analyze_conversations_async.py" - }, - { - "canonical": true, - "clientMethod": { - "client": { - "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsClient", - "shortName": "ContactCenterInsightsClient" - }, - "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsClient.bulk_analyze_conversations", - "method": { - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.BulkAnalyzeConversations", - "service": { - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights", - "shortName": "ContactCenterInsights" - }, - "shortName": "BulkAnalyzeConversations" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.contact_center_insights_v1.types.BulkAnalyzeConversationsRequest" - }, - { - "name": "parent", - "type": "str" - }, - { - "name": "filter", - "type": "str" - }, - { - "name": "analysis_percentage", - "type": "float" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "resultType": "google.api_core.operation.Operation", - "shortName": "bulk_analyze_conversations" - }, - "description": "Sample for BulkAnalyzeConversations", - "file": "contactcenterinsights_v1_generated_contact_center_insights_bulk_analyze_conversations_sync.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_BulkAnalyzeConversations_sync", - "segments": [ - { - "end": 57, - "start": 27, - "type": "FULL" - }, - { - "end": 57, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 47, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "end": 54, - "start": 48, - "type": "REQUEST_EXECUTION" - }, - { - "end": 58, - "start": 55, - "type": "RESPONSE_HANDLING" - } - ], - "title": "contactcenterinsights_v1_generated_contact_center_insights_bulk_analyze_conversations_sync.py" - }, - { - "canonical": true, - "clientMethod": { - "async": true, - "client": { - "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsAsyncClient", - "shortName": "ContactCenterInsightsAsyncClient" - }, - "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsAsyncClient.calculate_issue_model_stats", - "method": { - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.CalculateIssueModelStats", - "service": { - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights", - "shortName": "ContactCenterInsights" - }, - "shortName": "CalculateIssueModelStats" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.contact_center_insights_v1.types.CalculateIssueModelStatsRequest" - }, - { - "name": "issue_model", - "type": "str" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "resultType": "google.cloud.contact_center_insights_v1.types.CalculateIssueModelStatsResponse", - "shortName": "calculate_issue_model_stats" - }, - "description": "Sample for CalculateIssueModelStats", - "file": "contactcenterinsights_v1_generated_contact_center_insights_calculate_issue_model_stats_async.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_CalculateIssueModelStats_async", - "segments": [ - { - "end": 51, - "start": 27, - "type": "FULL" - }, - { - "end": 51, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 45, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "end": 48, - "start": 46, - "type": "REQUEST_EXECUTION" - }, - { - "end": 52, - "start": 49, - "type": "RESPONSE_HANDLING" - } - ], - "title": "contactcenterinsights_v1_generated_contact_center_insights_calculate_issue_model_stats_async.py" - }, - { - "canonical": true, - "clientMethod": { - "client": { - "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsClient", - "shortName": "ContactCenterInsightsClient" - }, - "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsClient.calculate_issue_model_stats", - "method": { - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.CalculateIssueModelStats", - "service": { - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights", - "shortName": "ContactCenterInsights" - }, - "shortName": "CalculateIssueModelStats" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.contact_center_insights_v1.types.CalculateIssueModelStatsRequest" - }, - { - "name": "issue_model", - "type": "str" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "resultType": "google.cloud.contact_center_insights_v1.types.CalculateIssueModelStatsResponse", - "shortName": "calculate_issue_model_stats" - }, - "description": "Sample for CalculateIssueModelStats", - "file": "contactcenterinsights_v1_generated_contact_center_insights_calculate_issue_model_stats_sync.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_CalculateIssueModelStats_sync", - "segments": [ - { - "end": 51, - "start": 27, - "type": "FULL" - }, - { - "end": 51, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 45, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "end": 48, - "start": 46, - "type": "REQUEST_EXECUTION" - }, - { - "end": 52, - "start": 49, - "type": "RESPONSE_HANDLING" - } - ], - "title": "contactcenterinsights_v1_generated_contact_center_insights_calculate_issue_model_stats_sync.py" - }, - { - "canonical": true, - "clientMethod": { - "async": true, - "client": { - "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsAsyncClient", - "shortName": "ContactCenterInsightsAsyncClient" - }, - "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsAsyncClient.calculate_stats", - "method": { - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.CalculateStats", - "service": { - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights", - "shortName": "ContactCenterInsights" - }, - "shortName": "CalculateStats" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.contact_center_insights_v1.types.CalculateStatsRequest" - }, - { - "name": "location", - "type": "str" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "resultType": "google.cloud.contact_center_insights_v1.types.CalculateStatsResponse", - "shortName": "calculate_stats" - }, - "description": "Sample for CalculateStats", - "file": "contactcenterinsights_v1_generated_contact_center_insights_calculate_stats_async.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_CalculateStats_async", - "segments": [ - { - "end": 51, - "start": 27, - "type": "FULL" - }, - { - "end": 51, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 45, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "end": 48, - "start": 46, - "type": "REQUEST_EXECUTION" - }, - { - "end": 52, - "start": 49, - "type": "RESPONSE_HANDLING" - } - ], - "title": "contactcenterinsights_v1_generated_contact_center_insights_calculate_stats_async.py" - }, - { - "canonical": true, - "clientMethod": { - "client": { - "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsClient", - "shortName": "ContactCenterInsightsClient" - }, - "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsClient.calculate_stats", - "method": { - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.CalculateStats", - "service": { - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights", - "shortName": "ContactCenterInsights" - }, - "shortName": "CalculateStats" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.contact_center_insights_v1.types.CalculateStatsRequest" - }, - { - "name": "location", - "type": "str" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "resultType": "google.cloud.contact_center_insights_v1.types.CalculateStatsResponse", - "shortName": "calculate_stats" - }, - "description": "Sample for CalculateStats", - "file": "contactcenterinsights_v1_generated_contact_center_insights_calculate_stats_sync.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_CalculateStats_sync", - "segments": [ - { - "end": 51, - "start": 27, - "type": "FULL" - }, - { - "end": 51, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 45, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "end": 48, - "start": 46, - "type": "REQUEST_EXECUTION" - }, - { - "end": 52, - "start": 49, - "type": "RESPONSE_HANDLING" - } - ], - "title": "contactcenterinsights_v1_generated_contact_center_insights_calculate_stats_sync.py" - }, - { - "canonical": true, - "clientMethod": { - "async": true, - "client": { - "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsAsyncClient", - "shortName": "ContactCenterInsightsAsyncClient" - }, - "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsAsyncClient.create_analysis", - "method": { - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.CreateAnalysis", - "service": { - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights", - "shortName": "ContactCenterInsights" - }, - "shortName": "CreateAnalysis" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.contact_center_insights_v1.types.CreateAnalysisRequest" - }, - { - "name": "parent", - "type": "str" - }, - { - "name": "analysis", - "type": "google.cloud.contact_center_insights_v1.types.Analysis" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "resultType": "google.api_core.operation_async.AsyncOperation", - "shortName": "create_analysis" - }, - "description": "Sample for CreateAnalysis", - "file": "contactcenterinsights_v1_generated_contact_center_insights_create_analysis_async.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_CreateAnalysis_async", - "segments": [ - { - "end": 55, - "start": 27, - "type": "FULL" - }, - { - "end": 55, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 45, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "end": 52, - "start": 46, - "type": "REQUEST_EXECUTION" - }, - { - "end": 56, - "start": 53, - "type": "RESPONSE_HANDLING" - } - ], - "title": "contactcenterinsights_v1_generated_contact_center_insights_create_analysis_async.py" - }, - { - "canonical": true, - "clientMethod": { - "client": { - "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsClient", - "shortName": "ContactCenterInsightsClient" - }, - "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsClient.create_analysis", - "method": { - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.CreateAnalysis", - "service": { - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights", - "shortName": "ContactCenterInsights" - }, - "shortName": "CreateAnalysis" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.contact_center_insights_v1.types.CreateAnalysisRequest" - }, - { - "name": "parent", - "type": "str" - }, - { - "name": "analysis", - "type": "google.cloud.contact_center_insights_v1.types.Analysis" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "resultType": "google.api_core.operation.Operation", - "shortName": "create_analysis" - }, - "description": "Sample for CreateAnalysis", - "file": "contactcenterinsights_v1_generated_contact_center_insights_create_analysis_sync.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_CreateAnalysis_sync", - "segments": [ - { - "end": 55, - "start": 27, - "type": "FULL" - }, - { - "end": 55, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 45, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "end": 52, - "start": 46, - "type": "REQUEST_EXECUTION" - }, - { - "end": 56, - "start": 53, - "type": "RESPONSE_HANDLING" - } - ], - "title": "contactcenterinsights_v1_generated_contact_center_insights_create_analysis_sync.py" - }, - { - "canonical": true, - "clientMethod": { - "async": true, - "client": { - "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsAsyncClient", - "shortName": "ContactCenterInsightsAsyncClient" - }, - "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsAsyncClient.create_conversation", - "method": { - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.CreateConversation", - "service": { - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights", - "shortName": "ContactCenterInsights" - }, - "shortName": "CreateConversation" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.contact_center_insights_v1.types.CreateConversationRequest" - }, - { - "name": "parent", - "type": "str" - }, - { - "name": "conversation", - "type": "google.cloud.contact_center_insights_v1.types.Conversation" - }, - { - "name": "conversation_id", - "type": "str" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "resultType": "google.cloud.contact_center_insights_v1.types.Conversation", - "shortName": "create_conversation" - }, - "description": "Sample for CreateConversation", - "file": "contactcenterinsights_v1_generated_contact_center_insights_create_conversation_async.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_CreateConversation_async", - "segments": [ - { - "end": 51, - "start": 27, - "type": "FULL" - }, - { - "end": 51, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 45, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "end": 48, - "start": 46, - "type": "REQUEST_EXECUTION" - }, - { - "end": 52, - "start": 49, - "type": "RESPONSE_HANDLING" - } - ], - "title": "contactcenterinsights_v1_generated_contact_center_insights_create_conversation_async.py" - }, - { - "canonical": true, - "clientMethod": { - "client": { - "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsClient", - "shortName": "ContactCenterInsightsClient" - }, - "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsClient.create_conversation", - "method": { - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.CreateConversation", - "service": { - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights", - "shortName": "ContactCenterInsights" - }, - "shortName": "CreateConversation" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.contact_center_insights_v1.types.CreateConversationRequest" - }, - { - "name": "parent", - "type": "str" - }, - { - "name": "conversation", - "type": "google.cloud.contact_center_insights_v1.types.Conversation" - }, - { - "name": "conversation_id", - "type": "str" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "resultType": "google.cloud.contact_center_insights_v1.types.Conversation", - "shortName": "create_conversation" - }, - "description": "Sample for CreateConversation", - "file": "contactcenterinsights_v1_generated_contact_center_insights_create_conversation_sync.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_CreateConversation_sync", - "segments": [ - { - "end": 51, - "start": 27, - "type": "FULL" - }, - { - "end": 51, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 45, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "end": 48, - "start": 46, - "type": "REQUEST_EXECUTION" - }, - { - "end": 52, - "start": 49, - "type": "RESPONSE_HANDLING" - } - ], - "title": "contactcenterinsights_v1_generated_contact_center_insights_create_conversation_sync.py" - }, - { - "canonical": true, - "clientMethod": { - "async": true, - "client": { - "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsAsyncClient", - "shortName": "ContactCenterInsightsAsyncClient" - }, - "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsAsyncClient.create_issue_model", - "method": { - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.CreateIssueModel", - "service": { - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights", - "shortName": "ContactCenterInsights" - }, - "shortName": "CreateIssueModel" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.contact_center_insights_v1.types.CreateIssueModelRequest" - }, - { - "name": "parent", - "type": "str" - }, - { - "name": "issue_model", - "type": "google.cloud.contact_center_insights_v1.types.IssueModel" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "resultType": "google.api_core.operation_async.AsyncOperation", - "shortName": "create_issue_model" - }, - "description": "Sample for CreateIssueModel", - "file": "contactcenterinsights_v1_generated_contact_center_insights_create_issue_model_async.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_CreateIssueModel_async", - "segments": [ - { - "end": 55, - "start": 27, - "type": "FULL" - }, - { - "end": 55, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 45, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "end": 52, - "start": 46, - "type": "REQUEST_EXECUTION" - }, - { - "end": 56, - "start": 53, - "type": "RESPONSE_HANDLING" - } - ], - "title": "contactcenterinsights_v1_generated_contact_center_insights_create_issue_model_async.py" - }, - { - "canonical": true, - "clientMethod": { - "client": { - "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsClient", - "shortName": "ContactCenterInsightsClient" - }, - "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsClient.create_issue_model", - "method": { - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.CreateIssueModel", - "service": { - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights", - "shortName": "ContactCenterInsights" - }, - "shortName": "CreateIssueModel" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.contact_center_insights_v1.types.CreateIssueModelRequest" - }, - { - "name": "parent", - "type": "str" - }, - { - "name": "issue_model", - "type": "google.cloud.contact_center_insights_v1.types.IssueModel" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "resultType": "google.api_core.operation.Operation", - "shortName": "create_issue_model" - }, - "description": "Sample for CreateIssueModel", - "file": "contactcenterinsights_v1_generated_contact_center_insights_create_issue_model_sync.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_CreateIssueModel_sync", - "segments": [ - { - "end": 55, - "start": 27, - "type": "FULL" - }, - { - "end": 55, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 45, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "end": 52, - "start": 46, - "type": "REQUEST_EXECUTION" - }, - { - "end": 56, - "start": 53, - "type": "RESPONSE_HANDLING" - } - ], - "title": "contactcenterinsights_v1_generated_contact_center_insights_create_issue_model_sync.py" - }, - { - "canonical": true, - "clientMethod": { - "async": true, - "client": { - "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsAsyncClient", - "shortName": "ContactCenterInsightsAsyncClient" - }, - "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsAsyncClient.create_phrase_matcher", - "method": { - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.CreatePhraseMatcher", - "service": { - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights", - "shortName": "ContactCenterInsights" - }, - "shortName": "CreatePhraseMatcher" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.contact_center_insights_v1.types.CreatePhraseMatcherRequest" - }, - { - "name": "parent", - "type": "str" - }, - { - "name": "phrase_matcher", - "type": "google.cloud.contact_center_insights_v1.types.PhraseMatcher" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "resultType": "google.cloud.contact_center_insights_v1.types.PhraseMatcher", - "shortName": "create_phrase_matcher" - }, - "description": "Sample for CreatePhraseMatcher", - "file": "contactcenterinsights_v1_generated_contact_center_insights_create_phrase_matcher_async.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_CreatePhraseMatcher_async", - "segments": [ - { - "end": 55, - "start": 27, - "type": "FULL" - }, - { - "end": 55, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 49, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "end": 52, - "start": 50, - "type": "REQUEST_EXECUTION" - }, - { - "end": 56, - "start": 53, - "type": "RESPONSE_HANDLING" - } - ], - "title": "contactcenterinsights_v1_generated_contact_center_insights_create_phrase_matcher_async.py" - }, - { - "canonical": true, - "clientMethod": { - "client": { - "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsClient", - "shortName": "ContactCenterInsightsClient" - }, - "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsClient.create_phrase_matcher", - "method": { - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.CreatePhraseMatcher", - "service": { - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights", - "shortName": "ContactCenterInsights" - }, - "shortName": "CreatePhraseMatcher" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.contact_center_insights_v1.types.CreatePhraseMatcherRequest" - }, - { - "name": "parent", - "type": "str" - }, - { - "name": "phrase_matcher", - "type": "google.cloud.contact_center_insights_v1.types.PhraseMatcher" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "resultType": "google.cloud.contact_center_insights_v1.types.PhraseMatcher", - "shortName": "create_phrase_matcher" - }, - "description": "Sample for CreatePhraseMatcher", - "file": "contactcenterinsights_v1_generated_contact_center_insights_create_phrase_matcher_sync.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_CreatePhraseMatcher_sync", - "segments": [ - { - "end": 55, - "start": 27, - "type": "FULL" - }, - { - "end": 55, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 49, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "end": 52, - "start": 50, - "type": "REQUEST_EXECUTION" - }, - { - "end": 56, - "start": 53, - "type": "RESPONSE_HANDLING" - } - ], - "title": "contactcenterinsights_v1_generated_contact_center_insights_create_phrase_matcher_sync.py" - }, - { - "canonical": true, - "clientMethod": { - "async": true, - "client": { - "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsAsyncClient", - "shortName": "ContactCenterInsightsAsyncClient" - }, - "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsAsyncClient.create_view", - "method": { - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.CreateView", - "service": { - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights", - "shortName": "ContactCenterInsights" - }, - "shortName": "CreateView" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.contact_center_insights_v1.types.CreateViewRequest" - }, - { - "name": "parent", - "type": "str" - }, - { - "name": "view", - "type": "google.cloud.contact_center_insights_v1.types.View" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "resultType": "google.cloud.contact_center_insights_v1.types.View", - "shortName": "create_view" - }, - "description": "Sample for CreateView", - "file": "contactcenterinsights_v1_generated_contact_center_insights_create_view_async.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_CreateView_async", - "segments": [ - { - "end": 51, - "start": 27, - "type": "FULL" - }, - { - "end": 51, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 45, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "end": 48, - "start": 46, - "type": "REQUEST_EXECUTION" - }, - { - "end": 52, - "start": 49, - "type": "RESPONSE_HANDLING" - } - ], - "title": "contactcenterinsights_v1_generated_contact_center_insights_create_view_async.py" - }, - { - "canonical": true, - "clientMethod": { - "client": { - "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsClient", - "shortName": "ContactCenterInsightsClient" - }, - "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsClient.create_view", - "method": { - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.CreateView", - "service": { - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights", - "shortName": "ContactCenterInsights" - }, - "shortName": "CreateView" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.contact_center_insights_v1.types.CreateViewRequest" - }, - { - "name": "parent", - "type": "str" - }, - { - "name": "view", - "type": "google.cloud.contact_center_insights_v1.types.View" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "resultType": "google.cloud.contact_center_insights_v1.types.View", - "shortName": "create_view" - }, - "description": "Sample for CreateView", - "file": "contactcenterinsights_v1_generated_contact_center_insights_create_view_sync.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_CreateView_sync", - "segments": [ - { - "end": 51, - "start": 27, - "type": "FULL" - }, - { - "end": 51, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 45, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "end": 48, - "start": 46, - "type": "REQUEST_EXECUTION" - }, - { - "end": 52, - "start": 49, - "type": "RESPONSE_HANDLING" - } - ], - "title": "contactcenterinsights_v1_generated_contact_center_insights_create_view_sync.py" - }, - { - "canonical": true, - "clientMethod": { - "async": true, - "client": { - "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsAsyncClient", - "shortName": "ContactCenterInsightsAsyncClient" - }, - "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsAsyncClient.delete_analysis", - "method": { - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.DeleteAnalysis", - "service": { - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights", - "shortName": "ContactCenterInsights" - }, - "shortName": "DeleteAnalysis" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.contact_center_insights_v1.types.DeleteAnalysisRequest" - }, - { - "name": "name", - "type": "str" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "shortName": "delete_analysis" - }, - "description": "Sample for DeleteAnalysis", - "file": "contactcenterinsights_v1_generated_contact_center_insights_delete_analysis_async.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_DeleteAnalysis_async", - "segments": [ - { - "end": 49, - "start": 27, - "type": "FULL" - }, - { - "end": 49, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 45, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "start": 46, - "type": "REQUEST_EXECUTION" - }, - { - "end": 50, - "type": "RESPONSE_HANDLING" - } - ], - "title": "contactcenterinsights_v1_generated_contact_center_insights_delete_analysis_async.py" - }, - { - "canonical": true, - "clientMethod": { - "client": { - "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsClient", - "shortName": "ContactCenterInsightsClient" - }, - "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsClient.delete_analysis", - "method": { - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.DeleteAnalysis", - "service": { - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights", - "shortName": "ContactCenterInsights" - }, - "shortName": "DeleteAnalysis" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.contact_center_insights_v1.types.DeleteAnalysisRequest" - }, - { - "name": "name", - "type": "str" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "shortName": "delete_analysis" - }, - "description": "Sample for DeleteAnalysis", - "file": "contactcenterinsights_v1_generated_contact_center_insights_delete_analysis_sync.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_DeleteAnalysis_sync", - "segments": [ - { - "end": 49, - "start": 27, - "type": "FULL" - }, - { - "end": 49, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 45, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "start": 46, - "type": "REQUEST_EXECUTION" - }, - { - "end": 50, - "type": "RESPONSE_HANDLING" - } - ], - "title": "contactcenterinsights_v1_generated_contact_center_insights_delete_analysis_sync.py" - }, - { - "canonical": true, - "clientMethod": { - "async": true, - "client": { - "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsAsyncClient", - "shortName": "ContactCenterInsightsAsyncClient" - }, - "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsAsyncClient.delete_conversation", - "method": { - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.DeleteConversation", - "service": { - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights", - "shortName": "ContactCenterInsights" - }, - "shortName": "DeleteConversation" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.contact_center_insights_v1.types.DeleteConversationRequest" - }, - { - "name": "name", - "type": "str" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "shortName": "delete_conversation" - }, - "description": "Sample for DeleteConversation", - "file": "contactcenterinsights_v1_generated_contact_center_insights_delete_conversation_async.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_DeleteConversation_async", - "segments": [ - { - "end": 49, - "start": 27, - "type": "FULL" - }, - { - "end": 49, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 45, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "start": 46, - "type": "REQUEST_EXECUTION" - }, - { - "end": 50, - "type": "RESPONSE_HANDLING" - } - ], - "title": "contactcenterinsights_v1_generated_contact_center_insights_delete_conversation_async.py" - }, - { - "canonical": true, - "clientMethod": { - "client": { - "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsClient", - "shortName": "ContactCenterInsightsClient" - }, - "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsClient.delete_conversation", - "method": { - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.DeleteConversation", - "service": { - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights", - "shortName": "ContactCenterInsights" - }, - "shortName": "DeleteConversation" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.contact_center_insights_v1.types.DeleteConversationRequest" - }, - { - "name": "name", - "type": "str" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "shortName": "delete_conversation" - }, - "description": "Sample for DeleteConversation", - "file": "contactcenterinsights_v1_generated_contact_center_insights_delete_conversation_sync.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_DeleteConversation_sync", - "segments": [ - { - "end": 49, - "start": 27, - "type": "FULL" - }, - { - "end": 49, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 45, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "start": 46, - "type": "REQUEST_EXECUTION" - }, - { - "end": 50, - "type": "RESPONSE_HANDLING" - } - ], - "title": "contactcenterinsights_v1_generated_contact_center_insights_delete_conversation_sync.py" - }, - { - "canonical": true, - "clientMethod": { - "async": true, - "client": { - "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsAsyncClient", - "shortName": "ContactCenterInsightsAsyncClient" - }, - "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsAsyncClient.delete_issue_model", - "method": { - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.DeleteIssueModel", - "service": { - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights", - "shortName": "ContactCenterInsights" - }, - "shortName": "DeleteIssueModel" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.contact_center_insights_v1.types.DeleteIssueModelRequest" - }, - { - "name": "name", - "type": "str" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "resultType": "google.api_core.operation_async.AsyncOperation", - "shortName": "delete_issue_model" - }, - "description": "Sample for DeleteIssueModel", - "file": "contactcenterinsights_v1_generated_contact_center_insights_delete_issue_model_async.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_DeleteIssueModel_async", - "segments": [ - { - "end": 55, - "start": 27, - "type": "FULL" - }, - { - "end": 55, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 45, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "end": 52, - "start": 46, - "type": "REQUEST_EXECUTION" - }, - { - "end": 56, - "start": 53, - "type": "RESPONSE_HANDLING" - } - ], - "title": "contactcenterinsights_v1_generated_contact_center_insights_delete_issue_model_async.py" - }, - { - "canonical": true, - "clientMethod": { - "client": { - "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsClient", - "shortName": "ContactCenterInsightsClient" - }, - "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsClient.delete_issue_model", - "method": { - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.DeleteIssueModel", - "service": { - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights", - "shortName": "ContactCenterInsights" - }, - "shortName": "DeleteIssueModel" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.contact_center_insights_v1.types.DeleteIssueModelRequest" - }, - { - "name": "name", - "type": "str" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "resultType": "google.api_core.operation.Operation", - "shortName": "delete_issue_model" - }, - "description": "Sample for DeleteIssueModel", - "file": "contactcenterinsights_v1_generated_contact_center_insights_delete_issue_model_sync.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_DeleteIssueModel_sync", - "segments": [ - { - "end": 55, - "start": 27, - "type": "FULL" - }, - { - "end": 55, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 45, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "end": 52, - "start": 46, - "type": "REQUEST_EXECUTION" - }, - { - "end": 56, - "start": 53, - "type": "RESPONSE_HANDLING" - } - ], - "title": "contactcenterinsights_v1_generated_contact_center_insights_delete_issue_model_sync.py" - }, - { - "canonical": true, - "clientMethod": { - "async": true, - "client": { - "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsAsyncClient", - "shortName": "ContactCenterInsightsAsyncClient" - }, - "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsAsyncClient.delete_issue", - "method": { - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.DeleteIssue", - "service": { - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights", - "shortName": "ContactCenterInsights" - }, - "shortName": "DeleteIssue" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.contact_center_insights_v1.types.DeleteIssueRequest" - }, - { - "name": "name", - "type": "str" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "shortName": "delete_issue" - }, - "description": "Sample for DeleteIssue", - "file": "contactcenterinsights_v1_generated_contact_center_insights_delete_issue_async.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_DeleteIssue_async", - "segments": [ - { - "end": 49, - "start": 27, - "type": "FULL" - }, - { - "end": 49, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 45, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "start": 46, - "type": "REQUEST_EXECUTION" - }, - { - "end": 50, - "type": "RESPONSE_HANDLING" - } - ], - "title": "contactcenterinsights_v1_generated_contact_center_insights_delete_issue_async.py" - }, - { - "canonical": true, - "clientMethod": { - "client": { - "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsClient", - "shortName": "ContactCenterInsightsClient" - }, - "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsClient.delete_issue", - "method": { - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.DeleteIssue", - "service": { - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights", - "shortName": "ContactCenterInsights" - }, - "shortName": "DeleteIssue" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.contact_center_insights_v1.types.DeleteIssueRequest" - }, - { - "name": "name", - "type": "str" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "shortName": "delete_issue" - }, - "description": "Sample for DeleteIssue", - "file": "contactcenterinsights_v1_generated_contact_center_insights_delete_issue_sync.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_DeleteIssue_sync", - "segments": [ - { - "end": 49, - "start": 27, - "type": "FULL" - }, - { - "end": 49, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 45, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "start": 46, - "type": "REQUEST_EXECUTION" - }, - { - "end": 50, - "type": "RESPONSE_HANDLING" - } - ], - "title": "contactcenterinsights_v1_generated_contact_center_insights_delete_issue_sync.py" - }, - { - "canonical": true, - "clientMethod": { - "async": true, - "client": { - "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsAsyncClient", - "shortName": "ContactCenterInsightsAsyncClient" - }, - "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsAsyncClient.delete_phrase_matcher", - "method": { - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.DeletePhraseMatcher", - "service": { - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights", - "shortName": "ContactCenterInsights" - }, - "shortName": "DeletePhraseMatcher" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.contact_center_insights_v1.types.DeletePhraseMatcherRequest" - }, - { - "name": "name", - "type": "str" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "shortName": "delete_phrase_matcher" - }, - "description": "Sample for DeletePhraseMatcher", - "file": "contactcenterinsights_v1_generated_contact_center_insights_delete_phrase_matcher_async.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_DeletePhraseMatcher_async", - "segments": [ - { - "end": 49, - "start": 27, - "type": "FULL" - }, - { - "end": 49, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 45, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "start": 46, - "type": "REQUEST_EXECUTION" - }, - { - "end": 50, - "type": "RESPONSE_HANDLING" - } - ], - "title": "contactcenterinsights_v1_generated_contact_center_insights_delete_phrase_matcher_async.py" - }, - { - "canonical": true, - "clientMethod": { - "client": { - "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsClient", - "shortName": "ContactCenterInsightsClient" - }, - "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsClient.delete_phrase_matcher", - "method": { - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.DeletePhraseMatcher", - "service": { - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights", - "shortName": "ContactCenterInsights" - }, - "shortName": "DeletePhraseMatcher" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.contact_center_insights_v1.types.DeletePhraseMatcherRequest" - }, - { - "name": "name", - "type": "str" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "shortName": "delete_phrase_matcher" - }, - "description": "Sample for DeletePhraseMatcher", - "file": "contactcenterinsights_v1_generated_contact_center_insights_delete_phrase_matcher_sync.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_DeletePhraseMatcher_sync", - "segments": [ - { - "end": 49, - "start": 27, - "type": "FULL" - }, - { - "end": 49, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 45, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "start": 46, - "type": "REQUEST_EXECUTION" - }, - { - "end": 50, - "type": "RESPONSE_HANDLING" - } - ], - "title": "contactcenterinsights_v1_generated_contact_center_insights_delete_phrase_matcher_sync.py" - }, - { - "canonical": true, - "clientMethod": { - "async": true, - "client": { - "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsAsyncClient", - "shortName": "ContactCenterInsightsAsyncClient" - }, - "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsAsyncClient.delete_view", - "method": { - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.DeleteView", - "service": { - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights", - "shortName": "ContactCenterInsights" - }, - "shortName": "DeleteView" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.contact_center_insights_v1.types.DeleteViewRequest" - }, - { - "name": "name", - "type": "str" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "shortName": "delete_view" - }, - "description": "Sample for DeleteView", - "file": "contactcenterinsights_v1_generated_contact_center_insights_delete_view_async.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_DeleteView_async", - "segments": [ - { - "end": 49, - "start": 27, - "type": "FULL" - }, - { - "end": 49, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 45, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "start": 46, - "type": "REQUEST_EXECUTION" - }, - { - "end": 50, - "type": "RESPONSE_HANDLING" - } - ], - "title": "contactcenterinsights_v1_generated_contact_center_insights_delete_view_async.py" - }, - { - "canonical": true, - "clientMethod": { - "client": { - "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsClient", - "shortName": "ContactCenterInsightsClient" - }, - "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsClient.delete_view", - "method": { - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.DeleteView", - "service": { - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights", - "shortName": "ContactCenterInsights" - }, - "shortName": "DeleteView" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.contact_center_insights_v1.types.DeleteViewRequest" - }, - { - "name": "name", - "type": "str" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "shortName": "delete_view" - }, - "description": "Sample for DeleteView", - "file": "contactcenterinsights_v1_generated_contact_center_insights_delete_view_sync.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_DeleteView_sync", - "segments": [ - { - "end": 49, - "start": 27, - "type": "FULL" - }, - { - "end": 49, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 45, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "start": 46, - "type": "REQUEST_EXECUTION" - }, - { - "end": 50, - "type": "RESPONSE_HANDLING" - } - ], - "title": "contactcenterinsights_v1_generated_contact_center_insights_delete_view_sync.py" - }, - { - "canonical": true, - "clientMethod": { - "async": true, - "client": { - "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsAsyncClient", - "shortName": "ContactCenterInsightsAsyncClient" - }, - "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsAsyncClient.deploy_issue_model", - "method": { - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.DeployIssueModel", - "service": { - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights", - "shortName": "ContactCenterInsights" - }, - "shortName": "DeployIssueModel" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.contact_center_insights_v1.types.DeployIssueModelRequest" - }, - { - "name": "name", - "type": "str" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "resultType": "google.api_core.operation_async.AsyncOperation", - "shortName": "deploy_issue_model" - }, - "description": "Sample for DeployIssueModel", - "file": "contactcenterinsights_v1_generated_contact_center_insights_deploy_issue_model_async.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_DeployIssueModel_async", - "segments": [ - { - "end": 55, - "start": 27, - "type": "FULL" - }, - { - "end": 55, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 45, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "end": 52, - "start": 46, - "type": "REQUEST_EXECUTION" - }, - { - "end": 56, - "start": 53, - "type": "RESPONSE_HANDLING" - } - ], - "title": "contactcenterinsights_v1_generated_contact_center_insights_deploy_issue_model_async.py" - }, - { - "canonical": true, - "clientMethod": { - "client": { - "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsClient", - "shortName": "ContactCenterInsightsClient" - }, - "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsClient.deploy_issue_model", - "method": { - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.DeployIssueModel", - "service": { - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights", - "shortName": "ContactCenterInsights" - }, - "shortName": "DeployIssueModel" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.contact_center_insights_v1.types.DeployIssueModelRequest" - }, - { - "name": "name", - "type": "str" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "resultType": "google.api_core.operation.Operation", - "shortName": "deploy_issue_model" - }, - "description": "Sample for DeployIssueModel", - "file": "contactcenterinsights_v1_generated_contact_center_insights_deploy_issue_model_sync.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_DeployIssueModel_sync", - "segments": [ - { - "end": 55, - "start": 27, - "type": "FULL" - }, - { - "end": 55, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 45, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "end": 52, - "start": 46, - "type": "REQUEST_EXECUTION" - }, - { - "end": 56, - "start": 53, - "type": "RESPONSE_HANDLING" - } - ], - "title": "contactcenterinsights_v1_generated_contact_center_insights_deploy_issue_model_sync.py" - }, - { - "canonical": true, - "clientMethod": { - "async": true, - "client": { - "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsAsyncClient", - "shortName": "ContactCenterInsightsAsyncClient" - }, - "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsAsyncClient.export_insights_data", - "method": { - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.ExportInsightsData", - "service": { - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights", - "shortName": "ContactCenterInsights" - }, - "shortName": "ExportInsightsData" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.contact_center_insights_v1.types.ExportInsightsDataRequest" - }, - { - "name": "parent", - "type": "str" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "resultType": "google.api_core.operation_async.AsyncOperation", - "shortName": "export_insights_data" - }, - "description": "Sample for ExportInsightsData", - "file": "contactcenterinsights_v1_generated_contact_center_insights_export_insights_data_async.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_ExportInsightsData_async", - "segments": [ - { - "end": 59, - "start": 27, - "type": "FULL" - }, - { - "end": 59, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 49, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "end": 56, - "start": 50, - "type": "REQUEST_EXECUTION" - }, - { - "end": 60, - "start": 57, - "type": "RESPONSE_HANDLING" - } - ], - "title": "contactcenterinsights_v1_generated_contact_center_insights_export_insights_data_async.py" - }, - { - "canonical": true, - "clientMethod": { - "client": { - "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsClient", - "shortName": "ContactCenterInsightsClient" - }, - "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsClient.export_insights_data", - "method": { - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.ExportInsightsData", - "service": { - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights", - "shortName": "ContactCenterInsights" - }, - "shortName": "ExportInsightsData" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.contact_center_insights_v1.types.ExportInsightsDataRequest" - }, - { - "name": "parent", - "type": "str" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "resultType": "google.api_core.operation.Operation", - "shortName": "export_insights_data" - }, - "description": "Sample for ExportInsightsData", - "file": "contactcenterinsights_v1_generated_contact_center_insights_export_insights_data_sync.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_ExportInsightsData_sync", - "segments": [ - { - "end": 59, - "start": 27, - "type": "FULL" - }, - { - "end": 59, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 49, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "end": 56, - "start": 50, - "type": "REQUEST_EXECUTION" - }, - { - "end": 60, - "start": 57, - "type": "RESPONSE_HANDLING" - } - ], - "title": "contactcenterinsights_v1_generated_contact_center_insights_export_insights_data_sync.py" - }, - { - "canonical": true, - "clientMethod": { - "async": true, - "client": { - "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsAsyncClient", - "shortName": "ContactCenterInsightsAsyncClient" - }, - "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsAsyncClient.get_analysis", - "method": { - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.GetAnalysis", - "service": { - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights", - "shortName": "ContactCenterInsights" - }, - "shortName": "GetAnalysis" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.contact_center_insights_v1.types.GetAnalysisRequest" - }, - { - "name": "name", - "type": "str" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "resultType": "google.cloud.contact_center_insights_v1.types.Analysis", - "shortName": "get_analysis" - }, - "description": "Sample for GetAnalysis", - "file": "contactcenterinsights_v1_generated_contact_center_insights_get_analysis_async.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_GetAnalysis_async", - "segments": [ - { - "end": 51, - "start": 27, - "type": "FULL" - }, - { - "end": 51, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 45, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "end": 48, - "start": 46, - "type": "REQUEST_EXECUTION" - }, - { - "end": 52, - "start": 49, - "type": "RESPONSE_HANDLING" - } - ], - "title": "contactcenterinsights_v1_generated_contact_center_insights_get_analysis_async.py" - }, - { - "canonical": true, - "clientMethod": { - "client": { - "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsClient", - "shortName": "ContactCenterInsightsClient" - }, - "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsClient.get_analysis", - "method": { - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.GetAnalysis", - "service": { - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights", - "shortName": "ContactCenterInsights" - }, - "shortName": "GetAnalysis" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.contact_center_insights_v1.types.GetAnalysisRequest" - }, - { - "name": "name", - "type": "str" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "resultType": "google.cloud.contact_center_insights_v1.types.Analysis", - "shortName": "get_analysis" - }, - "description": "Sample for GetAnalysis", - "file": "contactcenterinsights_v1_generated_contact_center_insights_get_analysis_sync.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_GetAnalysis_sync", - "segments": [ - { - "end": 51, - "start": 27, - "type": "FULL" - }, - { - "end": 51, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 45, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "end": 48, - "start": 46, - "type": "REQUEST_EXECUTION" - }, - { - "end": 52, - "start": 49, - "type": "RESPONSE_HANDLING" - } - ], - "title": "contactcenterinsights_v1_generated_contact_center_insights_get_analysis_sync.py" - }, - { - "canonical": true, - "clientMethod": { - "async": true, - "client": { - "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsAsyncClient", - "shortName": "ContactCenterInsightsAsyncClient" - }, - "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsAsyncClient.get_conversation", - "method": { - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.GetConversation", - "service": { - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights", - "shortName": "ContactCenterInsights" - }, - "shortName": "GetConversation" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.contact_center_insights_v1.types.GetConversationRequest" - }, - { - "name": "name", - "type": "str" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "resultType": "google.cloud.contact_center_insights_v1.types.Conversation", - "shortName": "get_conversation" - }, - "description": "Sample for GetConversation", - "file": "contactcenterinsights_v1_generated_contact_center_insights_get_conversation_async.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_GetConversation_async", - "segments": [ - { - "end": 51, - "start": 27, - "type": "FULL" - }, - { - "end": 51, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 45, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "end": 48, - "start": 46, - "type": "REQUEST_EXECUTION" - }, - { - "end": 52, - "start": 49, - "type": "RESPONSE_HANDLING" - } - ], - "title": "contactcenterinsights_v1_generated_contact_center_insights_get_conversation_async.py" - }, - { - "canonical": true, - "clientMethod": { - "client": { - "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsClient", - "shortName": "ContactCenterInsightsClient" - }, - "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsClient.get_conversation", - "method": { - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.GetConversation", - "service": { - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights", - "shortName": "ContactCenterInsights" - }, - "shortName": "GetConversation" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.contact_center_insights_v1.types.GetConversationRequest" - }, - { - "name": "name", - "type": "str" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "resultType": "google.cloud.contact_center_insights_v1.types.Conversation", - "shortName": "get_conversation" - }, - "description": "Sample for GetConversation", - "file": "contactcenterinsights_v1_generated_contact_center_insights_get_conversation_sync.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_GetConversation_sync", - "segments": [ - { - "end": 51, - "start": 27, - "type": "FULL" - }, - { - "end": 51, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 45, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "end": 48, - "start": 46, - "type": "REQUEST_EXECUTION" - }, - { - "end": 52, - "start": 49, - "type": "RESPONSE_HANDLING" - } - ], - "title": "contactcenterinsights_v1_generated_contact_center_insights_get_conversation_sync.py" - }, - { - "canonical": true, - "clientMethod": { - "async": true, - "client": { - "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsAsyncClient", - "shortName": "ContactCenterInsightsAsyncClient" - }, - "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsAsyncClient.get_issue_model", - "method": { - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.GetIssueModel", - "service": { - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights", - "shortName": "ContactCenterInsights" - }, - "shortName": "GetIssueModel" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.contact_center_insights_v1.types.GetIssueModelRequest" - }, - { - "name": "name", - "type": "str" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "resultType": "google.cloud.contact_center_insights_v1.types.IssueModel", - "shortName": "get_issue_model" - }, - "description": "Sample for GetIssueModel", - "file": "contactcenterinsights_v1_generated_contact_center_insights_get_issue_model_async.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_GetIssueModel_async", - "segments": [ - { - "end": 51, - "start": 27, - "type": "FULL" - }, - { - "end": 51, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 45, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "end": 48, - "start": 46, - "type": "REQUEST_EXECUTION" - }, - { - "end": 52, - "start": 49, - "type": "RESPONSE_HANDLING" - } - ], - "title": "contactcenterinsights_v1_generated_contact_center_insights_get_issue_model_async.py" - }, - { - "canonical": true, - "clientMethod": { - "client": { - "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsClient", - "shortName": "ContactCenterInsightsClient" - }, - "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsClient.get_issue_model", - "method": { - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.GetIssueModel", - "service": { - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights", - "shortName": "ContactCenterInsights" - }, - "shortName": "GetIssueModel" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.contact_center_insights_v1.types.GetIssueModelRequest" - }, - { - "name": "name", - "type": "str" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "resultType": "google.cloud.contact_center_insights_v1.types.IssueModel", - "shortName": "get_issue_model" - }, - "description": "Sample for GetIssueModel", - "file": "contactcenterinsights_v1_generated_contact_center_insights_get_issue_model_sync.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_GetIssueModel_sync", - "segments": [ - { - "end": 51, - "start": 27, - "type": "FULL" - }, - { - "end": 51, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 45, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "end": 48, - "start": 46, - "type": "REQUEST_EXECUTION" - }, - { - "end": 52, - "start": 49, - "type": "RESPONSE_HANDLING" - } - ], - "title": "contactcenterinsights_v1_generated_contact_center_insights_get_issue_model_sync.py" - }, - { - "canonical": true, - "clientMethod": { - "async": true, - "client": { - "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsAsyncClient", - "shortName": "ContactCenterInsightsAsyncClient" - }, - "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsAsyncClient.get_issue", - "method": { - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.GetIssue", - "service": { - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights", - "shortName": "ContactCenterInsights" - }, - "shortName": "GetIssue" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.contact_center_insights_v1.types.GetIssueRequest" - }, - { - "name": "name", - "type": "str" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "resultType": "google.cloud.contact_center_insights_v1.types.Issue", - "shortName": "get_issue" - }, - "description": "Sample for GetIssue", - "file": "contactcenterinsights_v1_generated_contact_center_insights_get_issue_async.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_GetIssue_async", - "segments": [ - { - "end": 51, - "start": 27, - "type": "FULL" - }, - { - "end": 51, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 45, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "end": 48, - "start": 46, - "type": "REQUEST_EXECUTION" - }, - { - "end": 52, - "start": 49, - "type": "RESPONSE_HANDLING" - } - ], - "title": "contactcenterinsights_v1_generated_contact_center_insights_get_issue_async.py" - }, - { - "canonical": true, - "clientMethod": { - "client": { - "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsClient", - "shortName": "ContactCenterInsightsClient" - }, - "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsClient.get_issue", - "method": { - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.GetIssue", - "service": { - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights", - "shortName": "ContactCenterInsights" - }, - "shortName": "GetIssue" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.contact_center_insights_v1.types.GetIssueRequest" - }, - { - "name": "name", - "type": "str" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "resultType": "google.cloud.contact_center_insights_v1.types.Issue", - "shortName": "get_issue" - }, - "description": "Sample for GetIssue", - "file": "contactcenterinsights_v1_generated_contact_center_insights_get_issue_sync.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_GetIssue_sync", - "segments": [ - { - "end": 51, - "start": 27, - "type": "FULL" - }, - { - "end": 51, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 45, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "end": 48, - "start": 46, - "type": "REQUEST_EXECUTION" - }, - { - "end": 52, - "start": 49, - "type": "RESPONSE_HANDLING" - } - ], - "title": "contactcenterinsights_v1_generated_contact_center_insights_get_issue_sync.py" - }, - { - "canonical": true, - "clientMethod": { - "async": true, - "client": { - "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsAsyncClient", - "shortName": "ContactCenterInsightsAsyncClient" - }, - "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsAsyncClient.get_phrase_matcher", - "method": { - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.GetPhraseMatcher", - "service": { - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights", - "shortName": "ContactCenterInsights" - }, - "shortName": "GetPhraseMatcher" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.contact_center_insights_v1.types.GetPhraseMatcherRequest" - }, - { - "name": "name", - "type": "str" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "resultType": "google.cloud.contact_center_insights_v1.types.PhraseMatcher", - "shortName": "get_phrase_matcher" - }, - "description": "Sample for GetPhraseMatcher", - "file": "contactcenterinsights_v1_generated_contact_center_insights_get_phrase_matcher_async.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_GetPhraseMatcher_async", - "segments": [ - { - "end": 51, - "start": 27, - "type": "FULL" - }, - { - "end": 51, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 45, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "end": 48, - "start": 46, - "type": "REQUEST_EXECUTION" - }, - { - "end": 52, - "start": 49, - "type": "RESPONSE_HANDLING" - } - ], - "title": "contactcenterinsights_v1_generated_contact_center_insights_get_phrase_matcher_async.py" - }, - { - "canonical": true, - "clientMethod": { - "client": { - "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsClient", - "shortName": "ContactCenterInsightsClient" - }, - "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsClient.get_phrase_matcher", - "method": { - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.GetPhraseMatcher", - "service": { - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights", - "shortName": "ContactCenterInsights" - }, - "shortName": "GetPhraseMatcher" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.contact_center_insights_v1.types.GetPhraseMatcherRequest" - }, - { - "name": "name", - "type": "str" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "resultType": "google.cloud.contact_center_insights_v1.types.PhraseMatcher", - "shortName": "get_phrase_matcher" - }, - "description": "Sample for GetPhraseMatcher", - "file": "contactcenterinsights_v1_generated_contact_center_insights_get_phrase_matcher_sync.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_GetPhraseMatcher_sync", - "segments": [ - { - "end": 51, - "start": 27, - "type": "FULL" - }, - { - "end": 51, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 45, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "end": 48, - "start": 46, - "type": "REQUEST_EXECUTION" - }, - { - "end": 52, - "start": 49, - "type": "RESPONSE_HANDLING" - } - ], - "title": "contactcenterinsights_v1_generated_contact_center_insights_get_phrase_matcher_sync.py" - }, - { - "canonical": true, - "clientMethod": { - "async": true, - "client": { - "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsAsyncClient", - "shortName": "ContactCenterInsightsAsyncClient" - }, - "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsAsyncClient.get_settings", - "method": { - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.GetSettings", - "service": { - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights", - "shortName": "ContactCenterInsights" - }, - "shortName": "GetSettings" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.contact_center_insights_v1.types.GetSettingsRequest" - }, - { - "name": "name", - "type": "str" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "resultType": "google.cloud.contact_center_insights_v1.types.Settings", - "shortName": "get_settings" - }, - "description": "Sample for GetSettings", - "file": "contactcenterinsights_v1_generated_contact_center_insights_get_settings_async.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_GetSettings_async", - "segments": [ - { - "end": 51, - "start": 27, - "type": "FULL" - }, - { - "end": 51, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 45, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "end": 48, - "start": 46, - "type": "REQUEST_EXECUTION" - }, - { - "end": 52, - "start": 49, - "type": "RESPONSE_HANDLING" - } - ], - "title": "contactcenterinsights_v1_generated_contact_center_insights_get_settings_async.py" - }, - { - "canonical": true, - "clientMethod": { - "client": { - "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsClient", - "shortName": "ContactCenterInsightsClient" - }, - "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsClient.get_settings", - "method": { - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.GetSettings", - "service": { - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights", - "shortName": "ContactCenterInsights" - }, - "shortName": "GetSettings" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.contact_center_insights_v1.types.GetSettingsRequest" - }, - { - "name": "name", - "type": "str" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "resultType": "google.cloud.contact_center_insights_v1.types.Settings", - "shortName": "get_settings" - }, - "description": "Sample for GetSettings", - "file": "contactcenterinsights_v1_generated_contact_center_insights_get_settings_sync.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_GetSettings_sync", - "segments": [ - { - "end": 51, - "start": 27, - "type": "FULL" - }, - { - "end": 51, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 45, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "end": 48, - "start": 46, - "type": "REQUEST_EXECUTION" - }, - { - "end": 52, - "start": 49, - "type": "RESPONSE_HANDLING" - } - ], - "title": "contactcenterinsights_v1_generated_contact_center_insights_get_settings_sync.py" - }, - { - "canonical": true, - "clientMethod": { - "async": true, - "client": { - "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsAsyncClient", - "shortName": "ContactCenterInsightsAsyncClient" - }, - "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsAsyncClient.get_view", - "method": { - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.GetView", - "service": { - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights", - "shortName": "ContactCenterInsights" - }, - "shortName": "GetView" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.contact_center_insights_v1.types.GetViewRequest" - }, - { - "name": "name", - "type": "str" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "resultType": "google.cloud.contact_center_insights_v1.types.View", - "shortName": "get_view" - }, - "description": "Sample for GetView", - "file": "contactcenterinsights_v1_generated_contact_center_insights_get_view_async.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_GetView_async", - "segments": [ - { - "end": 51, - "start": 27, - "type": "FULL" - }, - { - "end": 51, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 45, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "end": 48, - "start": 46, - "type": "REQUEST_EXECUTION" - }, - { - "end": 52, - "start": 49, - "type": "RESPONSE_HANDLING" - } - ], - "title": "contactcenterinsights_v1_generated_contact_center_insights_get_view_async.py" - }, - { - "canonical": true, - "clientMethod": { - "client": { - "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsClient", - "shortName": "ContactCenterInsightsClient" - }, - "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsClient.get_view", - "method": { - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.GetView", - "service": { - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights", - "shortName": "ContactCenterInsights" - }, - "shortName": "GetView" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.contact_center_insights_v1.types.GetViewRequest" - }, - { - "name": "name", - "type": "str" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "resultType": "google.cloud.contact_center_insights_v1.types.View", - "shortName": "get_view" - }, - "description": "Sample for GetView", - "file": "contactcenterinsights_v1_generated_contact_center_insights_get_view_sync.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_GetView_sync", - "segments": [ - { - "end": 51, - "start": 27, - "type": "FULL" - }, - { - "end": 51, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 45, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "end": 48, - "start": 46, - "type": "REQUEST_EXECUTION" - }, - { - "end": 52, - "start": 49, - "type": "RESPONSE_HANDLING" - } - ], - "title": "contactcenterinsights_v1_generated_contact_center_insights_get_view_sync.py" - }, - { - "canonical": true, - "clientMethod": { - "async": true, - "client": { - "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsAsyncClient", - "shortName": "ContactCenterInsightsAsyncClient" - }, - "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsAsyncClient.ingest_conversations", - "method": { - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.IngestConversations", - "service": { - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights", - "shortName": "ContactCenterInsights" - }, - "shortName": "IngestConversations" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.contact_center_insights_v1.types.IngestConversationsRequest" - }, - { - "name": "parent", - "type": "str" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "resultType": "google.api_core.operation_async.AsyncOperation", - "shortName": "ingest_conversations" - }, - "description": "Sample for IngestConversations", - "file": "contactcenterinsights_v1_generated_contact_center_insights_ingest_conversations_async.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_IngestConversations_async", - "segments": [ - { - "end": 63, - "start": 27, - "type": "FULL" - }, - { - "end": 63, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 53, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "end": 60, - "start": 54, - "type": "REQUEST_EXECUTION" - }, - { - "end": 64, - "start": 61, - "type": "RESPONSE_HANDLING" - } - ], - "title": "contactcenterinsights_v1_generated_contact_center_insights_ingest_conversations_async.py" - }, - { - "canonical": true, - "clientMethod": { - "client": { - "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsClient", - "shortName": "ContactCenterInsightsClient" - }, - "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsClient.ingest_conversations", - "method": { - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.IngestConversations", - "service": { - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights", - "shortName": "ContactCenterInsights" - }, - "shortName": "IngestConversations" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.contact_center_insights_v1.types.IngestConversationsRequest" - }, - { - "name": "parent", - "type": "str" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "resultType": "google.api_core.operation.Operation", - "shortName": "ingest_conversations" - }, - "description": "Sample for IngestConversations", - "file": "contactcenterinsights_v1_generated_contact_center_insights_ingest_conversations_sync.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_IngestConversations_sync", - "segments": [ - { - "end": 63, - "start": 27, - "type": "FULL" - }, - { - "end": 63, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 53, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "end": 60, - "start": 54, - "type": "REQUEST_EXECUTION" - }, - { - "end": 64, - "start": 61, - "type": "RESPONSE_HANDLING" - } - ], - "title": "contactcenterinsights_v1_generated_contact_center_insights_ingest_conversations_sync.py" - }, - { - "canonical": true, - "clientMethod": { - "async": true, - "client": { - "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsAsyncClient", - "shortName": "ContactCenterInsightsAsyncClient" - }, - "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsAsyncClient.list_analyses", - "method": { - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.ListAnalyses", - "service": { - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights", - "shortName": "ContactCenterInsights" - }, - "shortName": "ListAnalyses" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.contact_center_insights_v1.types.ListAnalysesRequest" - }, - { - "name": "parent", - "type": "str" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "resultType": "google.cloud.contact_center_insights_v1.services.contact_center_insights.pagers.ListAnalysesAsyncPager", - "shortName": "list_analyses" - }, - "description": "Sample for ListAnalyses", - "file": "contactcenterinsights_v1_generated_contact_center_insights_list_analyses_async.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_ListAnalyses_async", - "segments": [ - { - "end": 52, - "start": 27, - "type": "FULL" - }, - { - "end": 52, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 45, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "end": 48, - "start": 46, - "type": "REQUEST_EXECUTION" - }, - { - "end": 53, - "start": 49, - "type": "RESPONSE_HANDLING" - } - ], - "title": "contactcenterinsights_v1_generated_contact_center_insights_list_analyses_async.py" - }, - { - "canonical": true, - "clientMethod": { - "client": { - "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsClient", - "shortName": "ContactCenterInsightsClient" - }, - "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsClient.list_analyses", - "method": { - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.ListAnalyses", - "service": { - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights", - "shortName": "ContactCenterInsights" - }, - "shortName": "ListAnalyses" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.contact_center_insights_v1.types.ListAnalysesRequest" - }, - { - "name": "parent", - "type": "str" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "resultType": "google.cloud.contact_center_insights_v1.services.contact_center_insights.pagers.ListAnalysesPager", - "shortName": "list_analyses" - }, - "description": "Sample for ListAnalyses", - "file": "contactcenterinsights_v1_generated_contact_center_insights_list_analyses_sync.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_ListAnalyses_sync", - "segments": [ - { - "end": 52, - "start": 27, - "type": "FULL" - }, - { - "end": 52, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 45, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "end": 48, - "start": 46, - "type": "REQUEST_EXECUTION" - }, - { - "end": 53, - "start": 49, - "type": "RESPONSE_HANDLING" - } - ], - "title": "contactcenterinsights_v1_generated_contact_center_insights_list_analyses_sync.py" - }, - { - "canonical": true, - "clientMethod": { - "async": true, - "client": { - "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsAsyncClient", - "shortName": "ContactCenterInsightsAsyncClient" - }, - "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsAsyncClient.list_conversations", - "method": { - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.ListConversations", - "service": { - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights", - "shortName": "ContactCenterInsights" - }, - "shortName": "ListConversations" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.contact_center_insights_v1.types.ListConversationsRequest" - }, - { - "name": "parent", - "type": "str" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "resultType": "google.cloud.contact_center_insights_v1.services.contact_center_insights.pagers.ListConversationsAsyncPager", - "shortName": "list_conversations" - }, - "description": "Sample for ListConversations", - "file": "contactcenterinsights_v1_generated_contact_center_insights_list_conversations_async.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_ListConversations_async", - "segments": [ - { - "end": 52, - "start": 27, - "type": "FULL" - }, - { - "end": 52, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 45, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "end": 48, - "start": 46, - "type": "REQUEST_EXECUTION" - }, - { - "end": 53, - "start": 49, - "type": "RESPONSE_HANDLING" - } - ], - "title": "contactcenterinsights_v1_generated_contact_center_insights_list_conversations_async.py" - }, - { - "canonical": true, - "clientMethod": { - "client": { - "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsClient", - "shortName": "ContactCenterInsightsClient" - }, - "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsClient.list_conversations", - "method": { - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.ListConversations", - "service": { - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights", - "shortName": "ContactCenterInsights" - }, - "shortName": "ListConversations" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.contact_center_insights_v1.types.ListConversationsRequest" - }, - { - "name": "parent", - "type": "str" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "resultType": "google.cloud.contact_center_insights_v1.services.contact_center_insights.pagers.ListConversationsPager", - "shortName": "list_conversations" - }, - "description": "Sample for ListConversations", - "file": "contactcenterinsights_v1_generated_contact_center_insights_list_conversations_sync.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_ListConversations_sync", - "segments": [ - { - "end": 52, - "start": 27, - "type": "FULL" - }, - { - "end": 52, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 45, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "end": 48, - "start": 46, - "type": "REQUEST_EXECUTION" - }, - { - "end": 53, - "start": 49, - "type": "RESPONSE_HANDLING" - } - ], - "title": "contactcenterinsights_v1_generated_contact_center_insights_list_conversations_sync.py" - }, - { - "canonical": true, - "clientMethod": { - "async": true, - "client": { - "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsAsyncClient", - "shortName": "ContactCenterInsightsAsyncClient" - }, - "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsAsyncClient.list_issue_models", - "method": { - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.ListIssueModels", - "service": { - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights", - "shortName": "ContactCenterInsights" - }, - "shortName": "ListIssueModels" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.contact_center_insights_v1.types.ListIssueModelsRequest" - }, - { - "name": "parent", - "type": "str" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "resultType": "google.cloud.contact_center_insights_v1.types.ListIssueModelsResponse", - "shortName": "list_issue_models" - }, - "description": "Sample for ListIssueModels", - "file": "contactcenterinsights_v1_generated_contact_center_insights_list_issue_models_async.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_ListIssueModels_async", - "segments": [ - { - "end": 51, - "start": 27, - "type": "FULL" - }, - { - "end": 51, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 45, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "end": 48, - "start": 46, - "type": "REQUEST_EXECUTION" - }, - { - "end": 52, - "start": 49, - "type": "RESPONSE_HANDLING" - } - ], - "title": "contactcenterinsights_v1_generated_contact_center_insights_list_issue_models_async.py" - }, - { - "canonical": true, - "clientMethod": { - "client": { - "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsClient", - "shortName": "ContactCenterInsightsClient" - }, - "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsClient.list_issue_models", - "method": { - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.ListIssueModels", - "service": { - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights", - "shortName": "ContactCenterInsights" - }, - "shortName": "ListIssueModels" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.contact_center_insights_v1.types.ListIssueModelsRequest" - }, - { - "name": "parent", - "type": "str" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "resultType": "google.cloud.contact_center_insights_v1.types.ListIssueModelsResponse", - "shortName": "list_issue_models" - }, - "description": "Sample for ListIssueModels", - "file": "contactcenterinsights_v1_generated_contact_center_insights_list_issue_models_sync.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_ListIssueModels_sync", - "segments": [ - { - "end": 51, - "start": 27, - "type": "FULL" - }, - { - "end": 51, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 45, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "end": 48, - "start": 46, - "type": "REQUEST_EXECUTION" - }, - { - "end": 52, - "start": 49, - "type": "RESPONSE_HANDLING" - } - ], - "title": "contactcenterinsights_v1_generated_contact_center_insights_list_issue_models_sync.py" - }, - { - "canonical": true, - "clientMethod": { - "async": true, - "client": { - "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsAsyncClient", - "shortName": "ContactCenterInsightsAsyncClient" - }, - "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsAsyncClient.list_issues", - "method": { - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.ListIssues", - "service": { - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights", - "shortName": "ContactCenterInsights" - }, - "shortName": "ListIssues" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.contact_center_insights_v1.types.ListIssuesRequest" - }, - { - "name": "parent", - "type": "str" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "resultType": "google.cloud.contact_center_insights_v1.types.ListIssuesResponse", - "shortName": "list_issues" - }, - "description": "Sample for ListIssues", - "file": "contactcenterinsights_v1_generated_contact_center_insights_list_issues_async.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_ListIssues_async", - "segments": [ - { - "end": 51, - "start": 27, - "type": "FULL" - }, - { - "end": 51, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 45, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "end": 48, - "start": 46, - "type": "REQUEST_EXECUTION" - }, - { - "end": 52, - "start": 49, - "type": "RESPONSE_HANDLING" - } - ], - "title": "contactcenterinsights_v1_generated_contact_center_insights_list_issues_async.py" - }, - { - "canonical": true, - "clientMethod": { - "client": { - "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsClient", - "shortName": "ContactCenterInsightsClient" - }, - "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsClient.list_issues", - "method": { - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.ListIssues", - "service": { - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights", - "shortName": "ContactCenterInsights" - }, - "shortName": "ListIssues" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.contact_center_insights_v1.types.ListIssuesRequest" - }, - { - "name": "parent", - "type": "str" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "resultType": "google.cloud.contact_center_insights_v1.types.ListIssuesResponse", - "shortName": "list_issues" - }, - "description": "Sample for ListIssues", - "file": "contactcenterinsights_v1_generated_contact_center_insights_list_issues_sync.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_ListIssues_sync", - "segments": [ - { - "end": 51, - "start": 27, - "type": "FULL" - }, - { - "end": 51, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 45, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "end": 48, - "start": 46, - "type": "REQUEST_EXECUTION" - }, - { - "end": 52, - "start": 49, - "type": "RESPONSE_HANDLING" - } - ], - "title": "contactcenterinsights_v1_generated_contact_center_insights_list_issues_sync.py" - }, - { - "canonical": true, - "clientMethod": { - "async": true, - "client": { - "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsAsyncClient", - "shortName": "ContactCenterInsightsAsyncClient" - }, - "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsAsyncClient.list_phrase_matchers", - "method": { - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.ListPhraseMatchers", - "service": { - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights", - "shortName": "ContactCenterInsights" - }, - "shortName": "ListPhraseMatchers" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.contact_center_insights_v1.types.ListPhraseMatchersRequest" - }, - { - "name": "parent", - "type": "str" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "resultType": "google.cloud.contact_center_insights_v1.services.contact_center_insights.pagers.ListPhraseMatchersAsyncPager", - "shortName": "list_phrase_matchers" - }, - "description": "Sample for ListPhraseMatchers", - "file": "contactcenterinsights_v1_generated_contact_center_insights_list_phrase_matchers_async.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_ListPhraseMatchers_async", - "segments": [ - { - "end": 52, - "start": 27, - "type": "FULL" - }, - { - "end": 52, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 45, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "end": 48, - "start": 46, - "type": "REQUEST_EXECUTION" - }, - { - "end": 53, - "start": 49, - "type": "RESPONSE_HANDLING" - } - ], - "title": "contactcenterinsights_v1_generated_contact_center_insights_list_phrase_matchers_async.py" - }, - { - "canonical": true, - "clientMethod": { - "client": { - "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsClient", - "shortName": "ContactCenterInsightsClient" - }, - "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsClient.list_phrase_matchers", - "method": { - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.ListPhraseMatchers", - "service": { - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights", - "shortName": "ContactCenterInsights" - }, - "shortName": "ListPhraseMatchers" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.contact_center_insights_v1.types.ListPhraseMatchersRequest" - }, - { - "name": "parent", - "type": "str" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "resultType": "google.cloud.contact_center_insights_v1.services.contact_center_insights.pagers.ListPhraseMatchersPager", - "shortName": "list_phrase_matchers" - }, - "description": "Sample for ListPhraseMatchers", - "file": "contactcenterinsights_v1_generated_contact_center_insights_list_phrase_matchers_sync.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_ListPhraseMatchers_sync", - "segments": [ - { - "end": 52, - "start": 27, - "type": "FULL" - }, - { - "end": 52, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 45, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "end": 48, - "start": 46, - "type": "REQUEST_EXECUTION" - }, - { - "end": 53, - "start": 49, - "type": "RESPONSE_HANDLING" - } - ], - "title": "contactcenterinsights_v1_generated_contact_center_insights_list_phrase_matchers_sync.py" - }, - { - "canonical": true, - "clientMethod": { - "async": true, - "client": { - "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsAsyncClient", - "shortName": "ContactCenterInsightsAsyncClient" - }, - "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsAsyncClient.list_views", - "method": { - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.ListViews", - "service": { - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights", - "shortName": "ContactCenterInsights" - }, - "shortName": "ListViews" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.contact_center_insights_v1.types.ListViewsRequest" - }, - { - "name": "parent", - "type": "str" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "resultType": "google.cloud.contact_center_insights_v1.services.contact_center_insights.pagers.ListViewsAsyncPager", - "shortName": "list_views" - }, - "description": "Sample for ListViews", - "file": "contactcenterinsights_v1_generated_contact_center_insights_list_views_async.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_ListViews_async", - "segments": [ - { - "end": 52, - "start": 27, - "type": "FULL" - }, - { - "end": 52, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 45, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "end": 48, - "start": 46, - "type": "REQUEST_EXECUTION" - }, - { - "end": 53, - "start": 49, - "type": "RESPONSE_HANDLING" - } - ], - "title": "contactcenterinsights_v1_generated_contact_center_insights_list_views_async.py" - }, - { - "canonical": true, - "clientMethod": { - "client": { - "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsClient", - "shortName": "ContactCenterInsightsClient" - }, - "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsClient.list_views", - "method": { - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.ListViews", - "service": { - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights", - "shortName": "ContactCenterInsights" - }, - "shortName": "ListViews" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.contact_center_insights_v1.types.ListViewsRequest" - }, - { - "name": "parent", - "type": "str" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "resultType": "google.cloud.contact_center_insights_v1.services.contact_center_insights.pagers.ListViewsPager", - "shortName": "list_views" - }, - "description": "Sample for ListViews", - "file": "contactcenterinsights_v1_generated_contact_center_insights_list_views_sync.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_ListViews_sync", - "segments": [ - { - "end": 52, - "start": 27, - "type": "FULL" - }, - { - "end": 52, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 45, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "end": 48, - "start": 46, - "type": "REQUEST_EXECUTION" - }, - { - "end": 53, - "start": 49, - "type": "RESPONSE_HANDLING" - } - ], - "title": "contactcenterinsights_v1_generated_contact_center_insights_list_views_sync.py" - }, - { - "canonical": true, - "clientMethod": { - "async": true, - "client": { - "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsAsyncClient", - "shortName": "ContactCenterInsightsAsyncClient" - }, - "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsAsyncClient.undeploy_issue_model", - "method": { - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.UndeployIssueModel", - "service": { - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights", - "shortName": "ContactCenterInsights" - }, - "shortName": "UndeployIssueModel" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.contact_center_insights_v1.types.UndeployIssueModelRequest" - }, - { - "name": "name", - "type": "str" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "resultType": "google.api_core.operation_async.AsyncOperation", - "shortName": "undeploy_issue_model" - }, - "description": "Sample for UndeployIssueModel", - "file": "contactcenterinsights_v1_generated_contact_center_insights_undeploy_issue_model_async.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_UndeployIssueModel_async", - "segments": [ - { - "end": 55, - "start": 27, - "type": "FULL" - }, - { - "end": 55, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 45, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "end": 52, - "start": 46, - "type": "REQUEST_EXECUTION" - }, - { - "end": 56, - "start": 53, - "type": "RESPONSE_HANDLING" - } - ], - "title": "contactcenterinsights_v1_generated_contact_center_insights_undeploy_issue_model_async.py" - }, - { - "canonical": true, - "clientMethod": { - "client": { - "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsClient", - "shortName": "ContactCenterInsightsClient" - }, - "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsClient.undeploy_issue_model", - "method": { - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.UndeployIssueModel", - "service": { - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights", - "shortName": "ContactCenterInsights" - }, - "shortName": "UndeployIssueModel" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.contact_center_insights_v1.types.UndeployIssueModelRequest" - }, - { - "name": "name", - "type": "str" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "resultType": "google.api_core.operation.Operation", - "shortName": "undeploy_issue_model" - }, - "description": "Sample for UndeployIssueModel", - "file": "contactcenterinsights_v1_generated_contact_center_insights_undeploy_issue_model_sync.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_UndeployIssueModel_sync", - "segments": [ - { - "end": 55, - "start": 27, - "type": "FULL" - }, - { - "end": 55, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 45, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "end": 52, - "start": 46, - "type": "REQUEST_EXECUTION" - }, - { - "end": 56, - "start": 53, - "type": "RESPONSE_HANDLING" - } - ], - "title": "contactcenterinsights_v1_generated_contact_center_insights_undeploy_issue_model_sync.py" - }, - { - "canonical": true, - "clientMethod": { - "async": true, - "client": { - "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsAsyncClient", - "shortName": "ContactCenterInsightsAsyncClient" - }, - "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsAsyncClient.update_conversation", - "method": { - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.UpdateConversation", - "service": { - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights", - "shortName": "ContactCenterInsights" - }, - "shortName": "UpdateConversation" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.contact_center_insights_v1.types.UpdateConversationRequest" - }, - { - "name": "conversation", - "type": "google.cloud.contact_center_insights_v1.types.Conversation" - }, - { - "name": "update_mask", - "type": "google.protobuf.field_mask_pb2.FieldMask" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "resultType": "google.cloud.contact_center_insights_v1.types.Conversation", - "shortName": "update_conversation" - }, - "description": "Sample for UpdateConversation", - "file": "contactcenterinsights_v1_generated_contact_center_insights_update_conversation_async.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_UpdateConversation_async", - "segments": [ - { - "end": 50, - "start": 27, - "type": "FULL" - }, - { - "end": 50, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 44, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "end": 47, - "start": 45, - "type": "REQUEST_EXECUTION" - }, - { - "end": 51, - "start": 48, - "type": "RESPONSE_HANDLING" - } - ], - "title": "contactcenterinsights_v1_generated_contact_center_insights_update_conversation_async.py" - }, - { - "canonical": true, - "clientMethod": { - "client": { - "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsClient", - "shortName": "ContactCenterInsightsClient" - }, - "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsClient.update_conversation", - "method": { - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.UpdateConversation", - "service": { - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights", - "shortName": "ContactCenterInsights" - }, - "shortName": "UpdateConversation" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.contact_center_insights_v1.types.UpdateConversationRequest" - }, - { - "name": "conversation", - "type": "google.cloud.contact_center_insights_v1.types.Conversation" - }, - { - "name": "update_mask", - "type": "google.protobuf.field_mask_pb2.FieldMask" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "resultType": "google.cloud.contact_center_insights_v1.types.Conversation", - "shortName": "update_conversation" - }, - "description": "Sample for UpdateConversation", - "file": "contactcenterinsights_v1_generated_contact_center_insights_update_conversation_sync.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_UpdateConversation_sync", - "segments": [ - { - "end": 50, - "start": 27, - "type": "FULL" - }, - { - "end": 50, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 44, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "end": 47, - "start": 45, - "type": "REQUEST_EXECUTION" - }, - { - "end": 51, - "start": 48, - "type": "RESPONSE_HANDLING" - } - ], - "title": "contactcenterinsights_v1_generated_contact_center_insights_update_conversation_sync.py" - }, - { - "canonical": true, - "clientMethod": { - "async": true, - "client": { - "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsAsyncClient", - "shortName": "ContactCenterInsightsAsyncClient" - }, - "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsAsyncClient.update_issue_model", - "method": { - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.UpdateIssueModel", - "service": { - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights", - "shortName": "ContactCenterInsights" - }, - "shortName": "UpdateIssueModel" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.contact_center_insights_v1.types.UpdateIssueModelRequest" - }, - { - "name": "issue_model", - "type": "google.cloud.contact_center_insights_v1.types.IssueModel" - }, - { - "name": "update_mask", - "type": "google.protobuf.field_mask_pb2.FieldMask" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "resultType": "google.cloud.contact_center_insights_v1.types.IssueModel", - "shortName": "update_issue_model" - }, - "description": "Sample for UpdateIssueModel", - "file": "contactcenterinsights_v1_generated_contact_center_insights_update_issue_model_async.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_UpdateIssueModel_async", - "segments": [ - { - "end": 50, - "start": 27, - "type": "FULL" - }, - { - "end": 50, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 44, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "end": 47, - "start": 45, - "type": "REQUEST_EXECUTION" - }, - { - "end": 51, - "start": 48, - "type": "RESPONSE_HANDLING" - } - ], - "title": "contactcenterinsights_v1_generated_contact_center_insights_update_issue_model_async.py" - }, - { - "canonical": true, - "clientMethod": { - "client": { - "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsClient", - "shortName": "ContactCenterInsightsClient" - }, - "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsClient.update_issue_model", - "method": { - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.UpdateIssueModel", - "service": { - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights", - "shortName": "ContactCenterInsights" - }, - "shortName": "UpdateIssueModel" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.contact_center_insights_v1.types.UpdateIssueModelRequest" - }, - { - "name": "issue_model", - "type": "google.cloud.contact_center_insights_v1.types.IssueModel" - }, - { - "name": "update_mask", - "type": "google.protobuf.field_mask_pb2.FieldMask" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "resultType": "google.cloud.contact_center_insights_v1.types.IssueModel", - "shortName": "update_issue_model" - }, - "description": "Sample for UpdateIssueModel", - "file": "contactcenterinsights_v1_generated_contact_center_insights_update_issue_model_sync.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_UpdateIssueModel_sync", - "segments": [ - { - "end": 50, - "start": 27, - "type": "FULL" - }, - { - "end": 50, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 44, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "end": 47, - "start": 45, - "type": "REQUEST_EXECUTION" - }, - { - "end": 51, - "start": 48, - "type": "RESPONSE_HANDLING" - } - ], - "title": "contactcenterinsights_v1_generated_contact_center_insights_update_issue_model_sync.py" - }, - { - "canonical": true, - "clientMethod": { - "async": true, - "client": { - "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsAsyncClient", - "shortName": "ContactCenterInsightsAsyncClient" - }, - "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsAsyncClient.update_issue", - "method": { - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.UpdateIssue", - "service": { - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights", - "shortName": "ContactCenterInsights" - }, - "shortName": "UpdateIssue" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.contact_center_insights_v1.types.UpdateIssueRequest" - }, - { - "name": "issue", - "type": "google.cloud.contact_center_insights_v1.types.Issue" - }, - { - "name": "update_mask", - "type": "google.protobuf.field_mask_pb2.FieldMask" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "resultType": "google.cloud.contact_center_insights_v1.types.Issue", - "shortName": "update_issue" - }, - "description": "Sample for UpdateIssue", - "file": "contactcenterinsights_v1_generated_contact_center_insights_update_issue_async.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_UpdateIssue_async", - "segments": [ - { - "end": 50, - "start": 27, - "type": "FULL" - }, - { - "end": 50, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 44, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "end": 47, - "start": 45, - "type": "REQUEST_EXECUTION" - }, - { - "end": 51, - "start": 48, - "type": "RESPONSE_HANDLING" - } - ], - "title": "contactcenterinsights_v1_generated_contact_center_insights_update_issue_async.py" - }, - { - "canonical": true, - "clientMethod": { - "client": { - "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsClient", - "shortName": "ContactCenterInsightsClient" - }, - "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsClient.update_issue", - "method": { - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.UpdateIssue", - "service": { - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights", - "shortName": "ContactCenterInsights" - }, - "shortName": "UpdateIssue" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.contact_center_insights_v1.types.UpdateIssueRequest" - }, - { - "name": "issue", - "type": "google.cloud.contact_center_insights_v1.types.Issue" - }, - { - "name": "update_mask", - "type": "google.protobuf.field_mask_pb2.FieldMask" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "resultType": "google.cloud.contact_center_insights_v1.types.Issue", - "shortName": "update_issue" - }, - "description": "Sample for UpdateIssue", - "file": "contactcenterinsights_v1_generated_contact_center_insights_update_issue_sync.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_UpdateIssue_sync", - "segments": [ - { - "end": 50, - "start": 27, - "type": "FULL" - }, - { - "end": 50, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 44, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "end": 47, - "start": 45, - "type": "REQUEST_EXECUTION" - }, - { - "end": 51, - "start": 48, - "type": "RESPONSE_HANDLING" - } - ], - "title": "contactcenterinsights_v1_generated_contact_center_insights_update_issue_sync.py" - }, - { - "canonical": true, - "clientMethod": { - "async": true, - "client": { - "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsAsyncClient", - "shortName": "ContactCenterInsightsAsyncClient" - }, - "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsAsyncClient.update_phrase_matcher", - "method": { - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.UpdatePhraseMatcher", - "service": { - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights", - "shortName": "ContactCenterInsights" - }, - "shortName": "UpdatePhraseMatcher" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.contact_center_insights_v1.types.UpdatePhraseMatcherRequest" - }, - { - "name": "phrase_matcher", - "type": "google.cloud.contact_center_insights_v1.types.PhraseMatcher" - }, - { - "name": "update_mask", - "type": "google.protobuf.field_mask_pb2.FieldMask" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "resultType": "google.cloud.contact_center_insights_v1.types.PhraseMatcher", - "shortName": "update_phrase_matcher" - }, - "description": "Sample for UpdatePhraseMatcher", - "file": "contactcenterinsights_v1_generated_contact_center_insights_update_phrase_matcher_async.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_UpdatePhraseMatcher_async", - "segments": [ - { - "end": 54, - "start": 27, - "type": "FULL" - }, - { - "end": 54, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 48, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "end": 51, - "start": 49, - "type": "REQUEST_EXECUTION" - }, - { - "end": 55, - "start": 52, - "type": "RESPONSE_HANDLING" - } - ], - "title": "contactcenterinsights_v1_generated_contact_center_insights_update_phrase_matcher_async.py" - }, - { - "canonical": true, - "clientMethod": { - "client": { - "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsClient", - "shortName": "ContactCenterInsightsClient" - }, - "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsClient.update_phrase_matcher", - "method": { - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.UpdatePhraseMatcher", - "service": { - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights", - "shortName": "ContactCenterInsights" - }, - "shortName": "UpdatePhraseMatcher" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.contact_center_insights_v1.types.UpdatePhraseMatcherRequest" - }, - { - "name": "phrase_matcher", - "type": "google.cloud.contact_center_insights_v1.types.PhraseMatcher" - }, - { - "name": "update_mask", - "type": "google.protobuf.field_mask_pb2.FieldMask" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "resultType": "google.cloud.contact_center_insights_v1.types.PhraseMatcher", - "shortName": "update_phrase_matcher" - }, - "description": "Sample for UpdatePhraseMatcher", - "file": "contactcenterinsights_v1_generated_contact_center_insights_update_phrase_matcher_sync.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_UpdatePhraseMatcher_sync", - "segments": [ - { - "end": 54, - "start": 27, - "type": "FULL" - }, - { - "end": 54, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 48, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "end": 51, - "start": 49, - "type": "REQUEST_EXECUTION" - }, - { - "end": 55, - "start": 52, - "type": "RESPONSE_HANDLING" - } - ], - "title": "contactcenterinsights_v1_generated_contact_center_insights_update_phrase_matcher_sync.py" - }, - { - "canonical": true, - "clientMethod": { - "async": true, - "client": { - "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsAsyncClient", - "shortName": "ContactCenterInsightsAsyncClient" - }, - "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsAsyncClient.update_settings", - "method": { - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.UpdateSettings", - "service": { - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights", - "shortName": "ContactCenterInsights" - }, - "shortName": "UpdateSettings" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.contact_center_insights_v1.types.UpdateSettingsRequest" - }, - { - "name": "settings", - "type": "google.cloud.contact_center_insights_v1.types.Settings" - }, - { - "name": "update_mask", - "type": "google.protobuf.field_mask_pb2.FieldMask" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "resultType": "google.cloud.contact_center_insights_v1.types.Settings", - "shortName": "update_settings" - }, - "description": "Sample for UpdateSettings", - "file": "contactcenterinsights_v1_generated_contact_center_insights_update_settings_async.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_UpdateSettings_async", - "segments": [ - { - "end": 50, - "start": 27, - "type": "FULL" - }, - { - "end": 50, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 44, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "end": 47, - "start": 45, - "type": "REQUEST_EXECUTION" - }, - { - "end": 51, - "start": 48, - "type": "RESPONSE_HANDLING" - } - ], - "title": "contactcenterinsights_v1_generated_contact_center_insights_update_settings_async.py" - }, - { - "canonical": true, - "clientMethod": { - "client": { - "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsClient", - "shortName": "ContactCenterInsightsClient" - }, - "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsClient.update_settings", - "method": { - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.UpdateSettings", - "service": { - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights", - "shortName": "ContactCenterInsights" - }, - "shortName": "UpdateSettings" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.contact_center_insights_v1.types.UpdateSettingsRequest" - }, - { - "name": "settings", - "type": "google.cloud.contact_center_insights_v1.types.Settings" - }, - { - "name": "update_mask", - "type": "google.protobuf.field_mask_pb2.FieldMask" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "resultType": "google.cloud.contact_center_insights_v1.types.Settings", - "shortName": "update_settings" - }, - "description": "Sample for UpdateSettings", - "file": "contactcenterinsights_v1_generated_contact_center_insights_update_settings_sync.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_UpdateSettings_sync", - "segments": [ - { - "end": 50, - "start": 27, - "type": "FULL" - }, - { - "end": 50, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 44, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "end": 47, - "start": 45, - "type": "REQUEST_EXECUTION" - }, - { - "end": 51, - "start": 48, - "type": "RESPONSE_HANDLING" - } - ], - "title": "contactcenterinsights_v1_generated_contact_center_insights_update_settings_sync.py" - }, - { - "canonical": true, - "clientMethod": { - "async": true, - "client": { - "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsAsyncClient", - "shortName": "ContactCenterInsightsAsyncClient" - }, - "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsAsyncClient.update_view", - "method": { - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.UpdateView", - "service": { - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights", - "shortName": "ContactCenterInsights" - }, - "shortName": "UpdateView" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.contact_center_insights_v1.types.UpdateViewRequest" - }, - { - "name": "view", - "type": "google.cloud.contact_center_insights_v1.types.View" - }, - { - "name": "update_mask", - "type": "google.protobuf.field_mask_pb2.FieldMask" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "resultType": "google.cloud.contact_center_insights_v1.types.View", - "shortName": "update_view" - }, - "description": "Sample for UpdateView", - "file": "contactcenterinsights_v1_generated_contact_center_insights_update_view_async.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_UpdateView_async", - "segments": [ - { - "end": 50, - "start": 27, - "type": "FULL" - }, - { - "end": 50, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 44, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "end": 47, - "start": 45, - "type": "REQUEST_EXECUTION" - }, - { - "end": 51, - "start": 48, - "type": "RESPONSE_HANDLING" - } - ], - "title": "contactcenterinsights_v1_generated_contact_center_insights_update_view_async.py" - }, - { - "canonical": true, - "clientMethod": { - "client": { - "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsClient", - "shortName": "ContactCenterInsightsClient" - }, - "fullName": "google.cloud.contact_center_insights_v1.ContactCenterInsightsClient.update_view", - "method": { - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.UpdateView", - "service": { - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights", - "shortName": "ContactCenterInsights" - }, - "shortName": "UpdateView" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.contact_center_insights_v1.types.UpdateViewRequest" - }, - { - "name": "view", - "type": "google.cloud.contact_center_insights_v1.types.View" - }, - { - "name": "update_mask", - "type": "google.protobuf.field_mask_pb2.FieldMask" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "resultType": "google.cloud.contact_center_insights_v1.types.View", - "shortName": "update_view" - }, - "description": "Sample for UpdateView", - "file": "contactcenterinsights_v1_generated_contact_center_insights_update_view_sync.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_UpdateView_sync", - "segments": [ - { - "end": 50, - "start": 27, - "type": "FULL" - }, - { - "end": 50, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 44, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "end": 47, - "start": 45, - "type": "REQUEST_EXECUTION" - }, - { - "end": 51, - "start": 48, - "type": "RESPONSE_HANDLING" - } - ], - "title": "contactcenterinsights_v1_generated_contact_center_insights_update_view_sync.py" - } - ] -} From 70c6871ad754bc43d7f1b6b05d67c12fc4c61f48 Mon Sep 17 00:00:00 2001 From: Eric Schmidt Date: Mon, 23 Jan 2023 14:05:24 -0800 Subject: [PATCH 111/112] trying to add noxfile --- .../snippets/noxfile_config.py | 292 ++++++++++++++++++ 1 file changed, 292 insertions(+) create mode 100644 contact-center-insights/snippets/noxfile_config.py diff --git a/contact-center-insights/snippets/noxfile_config.py b/contact-center-insights/snippets/noxfile_config.py new file mode 100644 index 000000000000..de104dbc64d3 --- /dev/null +++ b/contact-center-insights/snippets/noxfile_config.py @@ -0,0 +1,292 @@ +# Copyright 2019 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. + +from __future__ import print_function + +import glob +import os +from pathlib import Path +import sys +from typing import Callable, Dict, Optional + +import nox + +# WARNING - WARNING - WARNING - WARNING - WARNING +# WARNING - WARNING - WARNING - WARNING - WARNING +# DO NOT EDIT THIS FILE EVER! +# WARNING - WARNING - WARNING - WARNING - WARNING +# WARNING - WARNING - WARNING - WARNING - WARNING + +BLACK_VERSION = "black==22.3.0" +ISORT_VERSION = "isort==5.10.1" + +# Copy `noxfile_config.py` to your directory and modify it instead. + +# `TEST_CONFIG` dict is a configuration hook that allows users to +# modify the test configurations. The values here should be in sync +# with `noxfile_config.py`. Users will copy `noxfile_config.py` into +# their directory and modify it. + +TEST_CONFIG = { + # You can opt out from the test for specific Python versions. + "ignored_versions": [], + # Old samples are opted out of enforcing Python type hints + # All new samples should feature them + "enforce_type_hints": False, + # An envvar key for determining the project id to use. Change it + # to 'BUILD_SPECIFIC_GCLOUD_PROJECT' if you want to opt in using a + # build specific Cloud project. You can also use your own string + # to use your own Cloud project. + "gcloud_project_env": "GOOGLE_CLOUD_PROJECT", + # 'gcloud_project_env': 'BUILD_SPECIFIC_GCLOUD_PROJECT', + # If you need to use a specific version of pip, + # change pip_version_override to the string representation + # of the version number, for example, "20.2.4" + "pip_version_override": None, + # A dictionary you want to inject into your test. Don't put any + # secrets here. These values will override predefined values. + "envs": {}, +} + + +try: + # Ensure we can import noxfile_config in the project's directory. + sys.path.append(".") + from noxfile_config import TEST_CONFIG_OVERRIDE +except ImportError as e: + print("No user noxfile_config found: detail: {}".format(e)) + TEST_CONFIG_OVERRIDE = {} + +# Update the TEST_CONFIG with the user supplied values. +TEST_CONFIG.update(TEST_CONFIG_OVERRIDE) + + +def get_pytest_env_vars() -> Dict[str, str]: + """Returns a dict for pytest invocation.""" + ret = {} + + # Override the GCLOUD_PROJECT and the alias. + env_key = TEST_CONFIG["gcloud_project_env"] + # This should error out if not set. + ret["GOOGLE_CLOUD_PROJECT"] = os.environ[env_key] + + # Apply user supplied envs. + ret.update(TEST_CONFIG["envs"]) + return ret + + +# DO NOT EDIT - automatically generated. +# All versions used to test samples. +ALL_VERSIONS = ["3.7", "3.8", "3.9", "3.10", "3.11"] + +# Any default versions that should be ignored. +IGNORED_VERSIONS = TEST_CONFIG["ignored_versions"] + +TESTED_VERSIONS = sorted([v for v in ALL_VERSIONS if v not in IGNORED_VERSIONS]) + +INSTALL_LIBRARY_FROM_SOURCE = os.environ.get("INSTALL_LIBRARY_FROM_SOURCE", False) in ( + "True", + "true", +) + +# Error if a python version is missing +nox.options.error_on_missing_interpreters = True + +# +# Style Checks +# + + +# Linting with flake8. +# +# We ignore the following rules: +# E203: whitespace before ‘:’ +# E266: too many leading ‘#’ for block comment +# E501: line too long +# I202: Additional newline in a section of imports +# +# We also need to specify the rules which are ignored by default: +# ['E226', 'W504', 'E126', 'E123', 'W503', 'E24', 'E704', 'E121'] +FLAKE8_COMMON_ARGS = [ + "--show-source", + "--builtin=gettext", + "--max-complexity=20", + "--exclude=.nox,.cache,env,lib,generated_pb2,*_pb2.py,*_pb2_grpc.py", + "--ignore=E121,E123,E126,E203,E226,E24,E266,E501,E704,W503,W504,I202", + "--max-line-length=88", +] + + +@nox.session +def lint(session: nox.sessions.Session) -> None: + if not TEST_CONFIG["enforce_type_hints"]: + session.install("flake8") + else: + session.install("flake8", "flake8-annotations") + + args = FLAKE8_COMMON_ARGS + [ + ".", + ] + session.run("flake8", *args) + + +# +# Black +# + + +@nox.session +def blacken(session: nox.sessions.Session) -> None: + """Run black. Format code to uniform standard.""" + session.install(BLACK_VERSION) + python_files = [path for path in os.listdir(".") if path.endswith(".py")] + + session.run("black", *python_files) + + +# +# format = isort + black +# + + +@nox.session +def format(session: nox.sessions.Session) -> None: + """ + Run isort to sort imports. Then run black + to format code to uniform standard. + """ + session.install(BLACK_VERSION, ISORT_VERSION) + python_files = [path for path in os.listdir(".") if path.endswith(".py")] + + # Use the --fss option to sort imports using strict alphabetical order. + # See https://pycqa.github.io/isort/docs/configuration/options.html#force-sort-within-sections + session.run("isort", "--fss", *python_files) + session.run("black", *python_files) + + +# +# Sample Tests +# + + +PYTEST_COMMON_ARGS = ["--junitxml=sponge_log.xml"] + + +def _session_tests( + session: nox.sessions.Session, post_install: Callable = None +) -> None: + # check for presence of tests + test_list = glob.glob("**/*_test.py", recursive=True) + glob.glob( + "**/test_*.py", recursive=True + ) + test_list.extend(glob.glob("**/tests", recursive=True)) + + if len(test_list) == 0: + print("No tests found, skipping directory.") + return + + if TEST_CONFIG["pip_version_override"]: + pip_version = TEST_CONFIG["pip_version_override"] + session.install(f"pip=={pip_version}") + """Runs py.test for a particular project.""" + concurrent_args = [] + if os.path.exists("requirements.txt"): + if os.path.exists("constraints.txt"): + session.install("-r", "requirements.txt", "-c", "constraints.txt") + else: + session.install("-r", "requirements.txt") + with open("requirements.txt") as rfile: + packages = rfile.read() + + if os.path.exists("requirements-test.txt"): + if os.path.exists("constraints-test.txt"): + session.install("-r", "requirements-test.txt", "-c", "constraints-test.txt") + else: + session.install("-r", "requirements-test.txt") + with open("requirements-test.txt") as rtfile: + packages += rtfile.read() + + if INSTALL_LIBRARY_FROM_SOURCE: + session.install("-e", _get_repo_root()) + + if post_install: + post_install(session) + + if "pytest-parallel" in packages: + concurrent_args.extend(["--workers", "auto", "--tests-per-worker", "auto"]) + elif "pytest-xdist" in packages: + concurrent_args.extend(["-n", "auto"]) + + session.run( + "pytest", + *(PYTEST_COMMON_ARGS + session.posargs + concurrent_args), + # Pytest will return 5 when no tests are collected. This can happen + # on travis where slow and flaky tests are excluded. + # See http://doc.pytest.org/en/latest/_modules/_pytest/main.html + success_codes=[0, 5], + env=get_pytest_env_vars(), + ) + + +@nox.session(python=ALL_VERSIONS) +def py(session: nox.sessions.Session) -> None: + """Runs py.test for a sample using the specified version of Python.""" + if session.python in TESTED_VERSIONS: + _session_tests(session) + else: + session.skip( + "SKIPPED: {} tests are disabled for this sample.".format(session.python) + ) + + +# +# Readmegen +# + + +def _get_repo_root() -> Optional[str]: + """Returns the root folder of the project.""" + # Get root of this repository. Assume we don't have directories nested deeper than 10 items. + p = Path(os.getcwd()) + for i in range(10): + if p is None: + break + if Path(p / ".git").exists(): + return str(p) + # .git is not available in repos cloned via Cloud Build + # setup.py is always in the library's root, so use that instead + # https://github.com/googleapis/synthtool/issues/792 + if Path(p / "setup.py").exists(): + return str(p) + p = p.parent + raise Exception("Unable to detect repository root.") + + +GENERATED_READMES = sorted([x for x in Path(".").rglob("*.rst.in")]) + + +@nox.session +@nox.parametrize("path", GENERATED_READMES) +def readmegen(session: nox.sessions.Session, path: str) -> None: + """(Re-)generates the readme for a sample.""" + session.install("jinja2", "pyyaml") + dir_ = os.path.dirname(path) + + if os.path.exists(os.path.join(dir_, "requirements.txt")): + session.install("-r", os.path.join(dir_, "requirements.txt")) + + in_file = os.path.join(dir_, "README.rst.in") + session.run( + "python", _get_repo_root() + "/scripts/readme-gen/readme_gen.py", in_file + ) From f5afd4dcce16688b1a892c994612db246e481658 Mon Sep 17 00:00:00 2001 From: Eric Schmidt Date: Mon, 23 Jan 2023 14:05:34 -0800 Subject: [PATCH 112/112] noxfile --- contact-center-insights/snippets/noxfile.py | 292 -------------------- 1 file changed, 292 deletions(-) delete mode 100644 contact-center-insights/snippets/noxfile.py diff --git a/contact-center-insights/snippets/noxfile.py b/contact-center-insights/snippets/noxfile.py deleted file mode 100644 index de104dbc64d3..000000000000 --- a/contact-center-insights/snippets/noxfile.py +++ /dev/null @@ -1,292 +0,0 @@ -# Copyright 2019 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. - -from __future__ import print_function - -import glob -import os -from pathlib import Path -import sys -from typing import Callable, Dict, Optional - -import nox - -# WARNING - WARNING - WARNING - WARNING - WARNING -# WARNING - WARNING - WARNING - WARNING - WARNING -# DO NOT EDIT THIS FILE EVER! -# WARNING - WARNING - WARNING - WARNING - WARNING -# WARNING - WARNING - WARNING - WARNING - WARNING - -BLACK_VERSION = "black==22.3.0" -ISORT_VERSION = "isort==5.10.1" - -# Copy `noxfile_config.py` to your directory and modify it instead. - -# `TEST_CONFIG` dict is a configuration hook that allows users to -# modify the test configurations. The values here should be in sync -# with `noxfile_config.py`. Users will copy `noxfile_config.py` into -# their directory and modify it. - -TEST_CONFIG = { - # You can opt out from the test for specific Python versions. - "ignored_versions": [], - # Old samples are opted out of enforcing Python type hints - # All new samples should feature them - "enforce_type_hints": False, - # An envvar key for determining the project id to use. Change it - # to 'BUILD_SPECIFIC_GCLOUD_PROJECT' if you want to opt in using a - # build specific Cloud project. You can also use your own string - # to use your own Cloud project. - "gcloud_project_env": "GOOGLE_CLOUD_PROJECT", - # 'gcloud_project_env': 'BUILD_SPECIFIC_GCLOUD_PROJECT', - # If you need to use a specific version of pip, - # change pip_version_override to the string representation - # of the version number, for example, "20.2.4" - "pip_version_override": None, - # A dictionary you want to inject into your test. Don't put any - # secrets here. These values will override predefined values. - "envs": {}, -} - - -try: - # Ensure we can import noxfile_config in the project's directory. - sys.path.append(".") - from noxfile_config import TEST_CONFIG_OVERRIDE -except ImportError as e: - print("No user noxfile_config found: detail: {}".format(e)) - TEST_CONFIG_OVERRIDE = {} - -# Update the TEST_CONFIG with the user supplied values. -TEST_CONFIG.update(TEST_CONFIG_OVERRIDE) - - -def get_pytest_env_vars() -> Dict[str, str]: - """Returns a dict for pytest invocation.""" - ret = {} - - # Override the GCLOUD_PROJECT and the alias. - env_key = TEST_CONFIG["gcloud_project_env"] - # This should error out if not set. - ret["GOOGLE_CLOUD_PROJECT"] = os.environ[env_key] - - # Apply user supplied envs. - ret.update(TEST_CONFIG["envs"]) - return ret - - -# DO NOT EDIT - automatically generated. -# All versions used to test samples. -ALL_VERSIONS = ["3.7", "3.8", "3.9", "3.10", "3.11"] - -# Any default versions that should be ignored. -IGNORED_VERSIONS = TEST_CONFIG["ignored_versions"] - -TESTED_VERSIONS = sorted([v for v in ALL_VERSIONS if v not in IGNORED_VERSIONS]) - -INSTALL_LIBRARY_FROM_SOURCE = os.environ.get("INSTALL_LIBRARY_FROM_SOURCE", False) in ( - "True", - "true", -) - -# Error if a python version is missing -nox.options.error_on_missing_interpreters = True - -# -# Style Checks -# - - -# Linting with flake8. -# -# We ignore the following rules: -# E203: whitespace before ‘:’ -# E266: too many leading ‘#’ for block comment -# E501: line too long -# I202: Additional newline in a section of imports -# -# We also need to specify the rules which are ignored by default: -# ['E226', 'W504', 'E126', 'E123', 'W503', 'E24', 'E704', 'E121'] -FLAKE8_COMMON_ARGS = [ - "--show-source", - "--builtin=gettext", - "--max-complexity=20", - "--exclude=.nox,.cache,env,lib,generated_pb2,*_pb2.py,*_pb2_grpc.py", - "--ignore=E121,E123,E126,E203,E226,E24,E266,E501,E704,W503,W504,I202", - "--max-line-length=88", -] - - -@nox.session -def lint(session: nox.sessions.Session) -> None: - if not TEST_CONFIG["enforce_type_hints"]: - session.install("flake8") - else: - session.install("flake8", "flake8-annotations") - - args = FLAKE8_COMMON_ARGS + [ - ".", - ] - session.run("flake8", *args) - - -# -# Black -# - - -@nox.session -def blacken(session: nox.sessions.Session) -> None: - """Run black. Format code to uniform standard.""" - session.install(BLACK_VERSION) - python_files = [path for path in os.listdir(".") if path.endswith(".py")] - - session.run("black", *python_files) - - -# -# format = isort + black -# - - -@nox.session -def format(session: nox.sessions.Session) -> None: - """ - Run isort to sort imports. Then run black - to format code to uniform standard. - """ - session.install(BLACK_VERSION, ISORT_VERSION) - python_files = [path for path in os.listdir(".") if path.endswith(".py")] - - # Use the --fss option to sort imports using strict alphabetical order. - # See https://pycqa.github.io/isort/docs/configuration/options.html#force-sort-within-sections - session.run("isort", "--fss", *python_files) - session.run("black", *python_files) - - -# -# Sample Tests -# - - -PYTEST_COMMON_ARGS = ["--junitxml=sponge_log.xml"] - - -def _session_tests( - session: nox.sessions.Session, post_install: Callable = None -) -> None: - # check for presence of tests - test_list = glob.glob("**/*_test.py", recursive=True) + glob.glob( - "**/test_*.py", recursive=True - ) - test_list.extend(glob.glob("**/tests", recursive=True)) - - if len(test_list) == 0: - print("No tests found, skipping directory.") - return - - if TEST_CONFIG["pip_version_override"]: - pip_version = TEST_CONFIG["pip_version_override"] - session.install(f"pip=={pip_version}") - """Runs py.test for a particular project.""" - concurrent_args = [] - if os.path.exists("requirements.txt"): - if os.path.exists("constraints.txt"): - session.install("-r", "requirements.txt", "-c", "constraints.txt") - else: - session.install("-r", "requirements.txt") - with open("requirements.txt") as rfile: - packages = rfile.read() - - if os.path.exists("requirements-test.txt"): - if os.path.exists("constraints-test.txt"): - session.install("-r", "requirements-test.txt", "-c", "constraints-test.txt") - else: - session.install("-r", "requirements-test.txt") - with open("requirements-test.txt") as rtfile: - packages += rtfile.read() - - if INSTALL_LIBRARY_FROM_SOURCE: - session.install("-e", _get_repo_root()) - - if post_install: - post_install(session) - - if "pytest-parallel" in packages: - concurrent_args.extend(["--workers", "auto", "--tests-per-worker", "auto"]) - elif "pytest-xdist" in packages: - concurrent_args.extend(["-n", "auto"]) - - session.run( - "pytest", - *(PYTEST_COMMON_ARGS + session.posargs + concurrent_args), - # Pytest will return 5 when no tests are collected. This can happen - # on travis where slow and flaky tests are excluded. - # See http://doc.pytest.org/en/latest/_modules/_pytest/main.html - success_codes=[0, 5], - env=get_pytest_env_vars(), - ) - - -@nox.session(python=ALL_VERSIONS) -def py(session: nox.sessions.Session) -> None: - """Runs py.test for a sample using the specified version of Python.""" - if session.python in TESTED_VERSIONS: - _session_tests(session) - else: - session.skip( - "SKIPPED: {} tests are disabled for this sample.".format(session.python) - ) - - -# -# Readmegen -# - - -def _get_repo_root() -> Optional[str]: - """Returns the root folder of the project.""" - # Get root of this repository. Assume we don't have directories nested deeper than 10 items. - p = Path(os.getcwd()) - for i in range(10): - if p is None: - break - if Path(p / ".git").exists(): - return str(p) - # .git is not available in repos cloned via Cloud Build - # setup.py is always in the library's root, so use that instead - # https://github.com/googleapis/synthtool/issues/792 - if Path(p / "setup.py").exists(): - return str(p) - p = p.parent - raise Exception("Unable to detect repository root.") - - -GENERATED_READMES = sorted([x for x in Path(".").rglob("*.rst.in")]) - - -@nox.session -@nox.parametrize("path", GENERATED_READMES) -def readmegen(session: nox.sessions.Session, path: str) -> None: - """(Re-)generates the readme for a sample.""" - session.install("jinja2", "pyyaml") - dir_ = os.path.dirname(path) - - if os.path.exists(os.path.join(dir_, "requirements.txt")): - session.install("-r", os.path.join(dir_, "requirements.txt")) - - in_file = os.path.join(dir_, "README.rst.in") - session.run( - "python", _get_repo_root() + "/scripts/readme-gen/readme_gen.py", in_file - )