From 8963da77bf07fd2d2b4058c236b769ac4df63f18 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Wed, 18 Dec 2024 18:31:02 +0000 Subject: [PATCH] feat: [google-cloud-contact-center-insights] A new resource pattern value `projects/{project}/locations/{location}/authorizedViewSets/{authorized_view_set}/authorizedViews/{authorized_view}/conversations/{conversation}` added to the resource definition... (#13371) - [ ] Regenerate this pull request now. BEGIN_COMMIT_OVERRIDE feat: [google-cloud-contact-center-insights] A new resource pattern value `projects/{project}/locations/{location}/authorizedViewSets/{authorized_view_set}/authorizedViews/{authorized_view}/conversations/{conversation}` added to the resource definition `contactcenterinsights.googleapis.com/Conversation` feat: A new field `agent_type` is added to message `.google.cloud.contactcenterinsights.v1.Conversation` feat: A new resource pattern value `projects/{project}/locations/{location}/authorizedViewSets/{authorized_view_set}/authorizedViews/{authorized_view}/conversations/{conversation}/analyses/{analysis}` added to the resource definition `contactcenterinsights.googleapis.com/Analysis` feat: A new resource pattern value `projects/{project}/locations/{location}/authorizedViewSets/{authorized_view_set}/authorizedViews/{authorized_view}/conversations/{conversation}/feedbackLabels/{feedback_label}` added to the resource definition `contactcenterinsights.googleapis.com/FeedbackLabel` END_COMMIT_OVERRIDE `contactcenterinsights.googleapis.com/Conversation` feat: A new field `agent_type` is added to message `.google.cloud.contactcenterinsights.v1.Conversation` feat: A new resource pattern value `projects/{project}/locations/{location}/authorizedViewSets/{authorized_view_set}/authorizedViews/{authorized_view}/conversations/{conversation}/analyses/{analysis}` added to the resource definition `contactcenterinsights.googleapis.com/Analysis` feat: A new resource pattern value `projects/{project}/locations/{location}/authorizedViewSets/{authorized_view_set}/authorizedViews/{authorized_view}/conversations/{conversation}/feedbackLabels/{feedback_label}` added to the resource definition `contactcenterinsights.googleapis.com/FeedbackLabel` PiperOrigin-RevId: 707203752 Source-Link: https://github.com/googleapis/googleapis/commit/5546362a78d82f8307eb1af4b2ac178a90cd9271 Source-Link: https://github.com/googleapis/googleapis-gen/commit/f7186d14b43d7fa905c7f64b4a2886b695667f03 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWNvbnRhY3QtY2VudGVyLWluc2lnaHRzLy5Pd2xCb3QueWFtbCIsImgiOiJmNzE4NmQxNGI0M2Q3ZmE5MDVjN2Y2NGI0YTI4ODZiNjk1NjY3ZjAzIn0= --------- Co-authored-by: Owl Bot Co-authored-by: Victor Chudnovsky --- .../cloud/contact_center_insights/gapic_version.py | 2 +- .../cloud/contact_center_insights_v1/gapic_version.py | 2 +- .../contact_center_insights/transports/rest_base.py | 9 +++++++++ .../cloud/contact_center_insights_v1/types/resources.py | 7 +++++++ ...t_metadata_google.cloud.contactcenterinsights.v1.json | 2 +- .../test_contact_center_insights.py | 2 ++ 6 files changed, 21 insertions(+), 3 deletions(-) diff --git a/packages/google-cloud-contact-center-insights/google/cloud/contact_center_insights/gapic_version.py b/packages/google-cloud-contact-center-insights/google/cloud/contact_center_insights/gapic_version.py index 785067d93b3c..558c8aab67c5 100644 --- a/packages/google-cloud-contact-center-insights/google/cloud/contact_center_insights/gapic_version.py +++ b/packages/google-cloud-contact-center-insights/google/cloud/contact_center_insights/gapic_version.py @@ -13,4 +13,4 @@ # See the License for the specific language governing permissions and # limitations under the License. # -__version__ = "1.21.0" # {x-release-please-version} +__version__ = "0.0.0" # {x-release-please-version} diff --git a/packages/google-cloud-contact-center-insights/google/cloud/contact_center_insights_v1/gapic_version.py b/packages/google-cloud-contact-center-insights/google/cloud/contact_center_insights_v1/gapic_version.py index 785067d93b3c..558c8aab67c5 100644 --- a/packages/google-cloud-contact-center-insights/google/cloud/contact_center_insights_v1/gapic_version.py +++ b/packages/google-cloud-contact-center-insights/google/cloud/contact_center_insights_v1/gapic_version.py @@ -13,4 +13,4 @@ # See the License for the specific language governing permissions and # limitations under the License. # -__version__ = "1.21.0" # {x-release-please-version} +__version__ = "0.0.0" # {x-release-please-version} diff --git a/packages/google-cloud-contact-center-insights/google/cloud/contact_center_insights_v1/services/contact_center_insights/transports/rest_base.py b/packages/google-cloud-contact-center-insights/google/cloud/contact_center_insights_v1/services/contact_center_insights/transports/rest_base.py index 306fa9225329..76d0481dd82f 100644 --- a/packages/google-cloud-contact-center-insights/google/cloud/contact_center_insights_v1/services/contact_center_insights/transports/rest_base.py +++ b/packages/google-cloud-contact-center-insights/google/cloud/contact_center_insights_v1/services/contact_center_insights/transports/rest_base.py @@ -400,6 +400,10 @@ def _get_http_options(): "method": "get", "uri": "/v1/{location=projects/*/locations/*}/conversations:calculateStats", }, + { + "method": "get", + "uri": "/v1/{location=projects/*/locations/*/authorizedViewSet/*/authorizedView/*}:calculateStats", + }, ] return http_options @@ -3123,6 +3127,11 @@ def _get_http_options(): "uri": "/v1/{location=projects/*/locations/*}:queryMetrics", "body": "*", }, + { + "method": "post", + "uri": "/v1/{location=projects/*/locations/*/authorizedViewSet/*/authorizedView/*}:queryMetrics", + "body": "*", + }, ] return http_options diff --git a/packages/google-cloud-contact-center-insights/google/cloud/contact_center_insights_v1/types/resources.py b/packages/google-cloud-contact-center-insights/google/cloud/contact_center_insights_v1/types/resources.py index c66c651e5e83..62588f3070ac 100644 --- a/packages/google-cloud-contact-center-insights/google/cloud/contact_center_insights_v1/types/resources.py +++ b/packages/google-cloud-contact-center-insights/google/cloud/contact_center_insights_v1/types/resources.py @@ -273,6 +273,8 @@ class AgentInfo(proto.Message): disposition_code (str): A user-provided string indicating the outcome of the agent's segment of the call. + agent_type (google.cloud.contact_center_insights_v1.types.ConversationParticipant.Role): + The agent type, e.g. HUMAN_AGENT. """ agent_id: str = proto.Field( @@ -291,6 +293,11 @@ class AgentInfo(proto.Message): proto.STRING, number=4, ) + agent_type: "ConversationParticipant.Role" = proto.Field( + proto.ENUM, + number=5, + enum="ConversationParticipant.Role", + ) customer_satisfaction_rating: int = proto.Field( proto.INT32, diff --git a/packages/google-cloud-contact-center-insights/samples/generated_samples/snippet_metadata_google.cloud.contactcenterinsights.v1.json b/packages/google-cloud-contact-center-insights/samples/generated_samples/snippet_metadata_google.cloud.contactcenterinsights.v1.json index f61f8310164c..53fac2587492 100644 --- a/packages/google-cloud-contact-center-insights/samples/generated_samples/snippet_metadata_google.cloud.contactcenterinsights.v1.json +++ b/packages/google-cloud-contact-center-insights/samples/generated_samples/snippet_metadata_google.cloud.contactcenterinsights.v1.json @@ -8,7 +8,7 @@ ], "language": "PYTHON", "name": "google-cloud-contact-center-insights", - "version": "1.21.0" + "version": "0.1.0" }, "snippets": [ { diff --git a/packages/google-cloud-contact-center-insights/tests/unit/gapic/contact_center_insights_v1/test_contact_center_insights.py b/packages/google-cloud-contact-center-insights/tests/unit/gapic/contact_center_insights_v1/test_contact_center_insights.py index 476530f8ef21..ffa9a9013565 100644 --- a/packages/google-cloud-contact-center-insights/tests/unit/gapic/contact_center_insights_v1/test_contact_center_insights.py +++ b/packages/google-cloud-contact-center-insights/tests/unit/gapic/contact_center_insights_v1/test_contact_center_insights.py @@ -46721,6 +46721,7 @@ def test_create_conversation_rest_call_success(request_type): "display_name": "display_name_value", "team": "team_value", "disposition_code": "disposition_code_value", + "agent_type": 1, } ], }, @@ -47307,6 +47308,7 @@ def test_update_conversation_rest_call_success(request_type): "display_name": "display_name_value", "team": "team_value", "disposition_code": "disposition_code_value", + "agent_type": 1, } ], },