From 73b68cda80d12ef4eec18822bb2f41922bec46c8 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Fri, 22 Nov 2024 13:18:07 +0000 Subject: [PATCH] feat: Automated regeneration of ContactCenterInsights client --- clients/contact_center_insights/README.md | 2 +- .../v1/api/projects.ex | 155 +++++++++++++++++- .../contact_center_insights/v1/metadata.ex | 2 +- clients/contact_center_insights/mix.exs | 2 +- 4 files changed, 157 insertions(+), 4 deletions(-) diff --git a/clients/contact_center_insights/README.md b/clients/contact_center_insights/README.md index 1c03ead984..5ff79eb248 100644 --- a/clients/contact_center_insights/README.md +++ b/clients/contact_center_insights/README.md @@ -11,7 +11,7 @@ Install this package from [Hex](https://hex.pm) by adding ```elixir def deps do - [{:google_api_contact_center_insights, "~> 0.13"}] + [{:google_api_contact_center_insights, "~> 0.14"}] end ``` diff --git a/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/api/projects.ex b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/api/projects.ex index 10b148dfea..cdd6689c2b 100644 --- a/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/api/projects.ex +++ b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/api/projects.ex @@ -955,6 +955,159 @@ defmodule GoogleApi.ContactCenterInsights.V1.Api.Projects do ) end + @doc """ + Gets conversation statistics. + + ## Parameters + + * `connection` (*type:* `GoogleApi.ContactCenterInsights.V1.Connection.t`) - Connection to server + * `location` (*type:* `String.t`) - Required. The location of the conversations. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:filter` (*type:* `String.t`) - A filter to reduce results to a specific subset. This field is useful for getting statistics about conversations with specific properties. + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1CalculateStatsResponse{}}` on success + * `{:error, info}` on failure + """ + @spec contactcenterinsights_projects_locations_authorized_view_set_authorized_view_calculate_stats( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1CalculateStatsResponse.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def contactcenterinsights_projects_locations_authorized_view_set_authorized_view_calculate_stats( + connection, + location, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :filter => :query + } + + request = + Request.new() + |> Request.method(:get) + |> Request.url("/v1/{+location}:calculateStats", %{ + "location" => URI.encode(location, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ + [ + struct: + %GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1CalculateStatsResponse{} + ] + ) + end + + @doc """ + Query metrics. + + ## Parameters + + * `connection` (*type:* `GoogleApi.ContactCenterInsights.V1.Connection.t`) - Connection to server + * `location` (*type:* `String.t`) - Required. The location of the data. "projects/{project}/locations/{location}" + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:body` (*type:* `GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1QueryMetricsRequest.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.ContactCenterInsights.V1.Model.GoogleLongrunningOperation{}}` on success + * `{:error, info}` on failure + """ + @spec contactcenterinsights_projects_locations_authorized_view_set_authorized_view_query_metrics( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.ContactCenterInsights.V1.Model.GoogleLongrunningOperation.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def contactcenterinsights_projects_locations_authorized_view_set_authorized_view_query_metrics( + connection, + location, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :body => :body + } + + request = + Request.new() + |> Request.method(:post) + |> Request.url("/v1/{+location}:queryMetrics", %{ + "location" => URI.encode(location, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ [struct: %GoogleApi.ContactCenterInsights.V1.Model.GoogleLongrunningOperation{}] + ) + end + @doc """ Analyzes multiple conversations in a single request. @@ -3642,7 +3795,7 @@ defmodule GoogleApi.ContactCenterInsights.V1.Api.Projects do end @doc """ - Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`. + Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to `Code.CANCELLED`. ## Parameters diff --git a/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/metadata.ex b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/metadata.ex index 6db6c3f7b1..7dd173640e 100644 --- a/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/metadata.ex +++ b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/metadata.ex @@ -20,7 +20,7 @@ defmodule GoogleApi.ContactCenterInsights.V1 do API client metadata for GoogleApi.ContactCenterInsights.V1. """ - @discovery_revision "20241114" + @discovery_revision "20241119" def discovery_revision(), do: @discovery_revision end diff --git a/clients/contact_center_insights/mix.exs b/clients/contact_center_insights/mix.exs index fbb7023ee0..9b68e8a5d8 100644 --- a/clients/contact_center_insights/mix.exs +++ b/clients/contact_center_insights/mix.exs @@ -18,7 +18,7 @@ defmodule GoogleApi.ContactCenterInsights.Mixfile do use Mix.Project - @version "0.13.0" + @version "0.14.0" def project() do [