From a8857fb060b63fe734ef5dd4b9a58549981fa74a Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Sat, 7 Dec 2024 13:14:16 +0000 Subject: [PATCH] feat: Automated regeneration of AIPlatform client --- clients/ai_platform/README.md | 2 +- .../google_api/ai_platform/v1/api/projects.ex | 812 +++++++++++++++++- .../lib/google_api/ai_platform/v1/metadata.ex | 2 +- ...iplatform_v1_evaluate_instances_request.ex | 47 + ...platform_v1_evaluate_instances_response.ex | 47 + ...e_cloud_aiplatform_v1_generation_config.ex | 10 + ...d_aiplatform_v1_import_rag_files_config.ex | 7 + ...le_cloud_aiplatform_v1_notebook_runtime.ex | 30 +- ...aiplatform_v1_notebook_runtime_template.ex | 4 +- ...oud_aiplatform_v1_prebuilt_voice_config.ex | 51 ++ .../google_cloud_aiplatform_v1_rag_file.ex | 8 + ...loud_aiplatform_v1_rag_vector_db_config.ex | 8 + ..._v1_rag_vector_db_config_rag_managed_db.ex | 46 + ...cloud_aiplatform_v1_share_point_sources.ex | 55 ++ ..._share_point_sources_share_point_source.ex | 80 ++ ...oogle_cloud_aiplatform_v1_speech_config.ex | 47 + .../model/google_cloud_aiplatform_v1_tool.ex | 5 + .../google_cloud_aiplatform_v1_tool_call.ex | 49 ++ ..._cloud_aiplatform_v1_tool_google_search.ex | 41 + .../google_cloud_aiplatform_v1_trajectory.ex | 47 + ...orm_v1_trajectory_any_order_match_input.ex | 66 ++ ..._v1_trajectory_any_order_match_instance.ex | 56 ++ ...trajectory_any_order_match_metric_value.ex | 51 ++ ...m_v1_trajectory_any_order_match_results.ex | 58 ++ ...form_v1_trajectory_any_order_match_spec.ex | 46 + ...latform_v1_trajectory_exact_match_input.ex | 66 ++ ...form_v1_trajectory_exact_match_instance.ex | 56 ++ ..._v1_trajectory_exact_match_metric_value.ex | 51 ++ ...tform_v1_trajectory_exact_match_results.ex | 58 ++ ...platform_v1_trajectory_exact_match_spec.ex | 46 + ...form_v1_trajectory_in_order_match_input.ex | 66 ++ ...m_v1_trajectory_in_order_match_instance.ex | 56 ++ ..._trajectory_in_order_match_metric_value.ex | 51 ++ ...rm_v1_trajectory_in_order_match_results.ex | 58 ++ ...tform_v1_trajectory_in_order_match_spec.ex | 46 + ...iplatform_v1_trajectory_precision_input.ex | 65 ++ ...atform_v1_trajectory_precision_instance.ex | 56 ++ ...rm_v1_trajectory_precision_metric_value.ex | 51 ++ ...latform_v1_trajectory_precision_results.ex | 58 ++ ...aiplatform_v1_trajectory_precision_spec.ex | 46 + ...d_aiplatform_v1_trajectory_recall_input.ex | 63 ++ ...iplatform_v1_trajectory_recall_instance.ex | 56 ++ ...tform_v1_trajectory_recall_metric_value.ex | 51 ++ ...aiplatform_v1_trajectory_recall_results.ex | 58 ++ ...ud_aiplatform_v1_trajectory_recall_spec.ex | 46 + ...orm_v1_trajectory_single_tool_use_input.ex | 66 ++ ..._v1_trajectory_single_tool_use_instance.ex | 52 ++ ...trajectory_single_tool_use_metric_value.ex | 51 ++ ...m_v1_trajectory_single_tool_use_results.ex | 58 ++ ...form_v1_trajectory_single_tool_use_spec.ex | 51 ++ ...google_cloud_aiplatform_v1_voice_config.ex | 49 ++ clients/ai_platform/mix.exs | 2 +- 52 files changed, 3060 insertions(+), 48 deletions(-) create mode 100644 clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_prebuilt_voice_config.ex create mode 100644 clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_rag_vector_db_config_rag_managed_db.ex create mode 100644 clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_share_point_sources.ex create mode 100644 clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_share_point_sources_share_point_source.ex create mode 100644 clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_speech_config.ex create mode 100644 clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_tool_call.ex create mode 100644 clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_tool_google_search.ex create mode 100644 clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_trajectory.ex create mode 100644 clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_trajectory_any_order_match_input.ex create mode 100644 clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_trajectory_any_order_match_instance.ex create mode 100644 clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_trajectory_any_order_match_metric_value.ex create mode 100644 clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_trajectory_any_order_match_results.ex create mode 100644 clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_trajectory_any_order_match_spec.ex create mode 100644 clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_trajectory_exact_match_input.ex create mode 100644 clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_trajectory_exact_match_instance.ex create mode 100644 clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_trajectory_exact_match_metric_value.ex create mode 100644 clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_trajectory_exact_match_results.ex create mode 100644 clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_trajectory_exact_match_spec.ex create mode 100644 clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_trajectory_in_order_match_input.ex create mode 100644 clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_trajectory_in_order_match_instance.ex create mode 100644 clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_trajectory_in_order_match_metric_value.ex create mode 100644 clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_trajectory_in_order_match_results.ex create mode 100644 clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_trajectory_in_order_match_spec.ex create mode 100644 clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_trajectory_precision_input.ex create mode 100644 clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_trajectory_precision_instance.ex create mode 100644 clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_trajectory_precision_metric_value.ex create mode 100644 clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_trajectory_precision_results.ex create mode 100644 clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_trajectory_precision_spec.ex create mode 100644 clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_trajectory_recall_input.ex create mode 100644 clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_trajectory_recall_instance.ex create mode 100644 clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_trajectory_recall_metric_value.ex create mode 100644 clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_trajectory_recall_results.ex create mode 100644 clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_trajectory_recall_spec.ex create mode 100644 clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_trajectory_single_tool_use_input.ex create mode 100644 clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_trajectory_single_tool_use_instance.ex create mode 100644 clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_trajectory_single_tool_use_metric_value.ex create mode 100644 clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_trajectory_single_tool_use_results.ex create mode 100644 clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_trajectory_single_tool_use_spec.ex create mode 100644 clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_voice_config.ex diff --git a/clients/ai_platform/README.md b/clients/ai_platform/README.md index 31445315f7..5cb52e52ae 100644 --- a/clients/ai_platform/README.md +++ b/clients/ai_platform/README.md @@ -11,7 +11,7 @@ Install this package from [Hex](https://hex.pm) by adding ```elixir def deps do - [{:google_api_ai_platform, "~> 0.24"}] + [{:google_api_ai_platform, "~> 0.25"}] end ``` diff --git a/clients/ai_platform/lib/google_api/ai_platform/v1/api/projects.ex b/clients/ai_platform/lib/google_api/ai_platform/v1/api/projects.ex index 969f24cddf..d7452cd6ce 100644 --- a/clients/ai_platform/lib/google_api/ai_platform/v1/api/projects.ex +++ b/clients/ai_platform/lib/google_api/ai_platform/v1/api/projects.ex @@ -3007,7 +3007,7 @@ defmodule GoogleApi.AIPlatform.V1.Api.Projects do * `: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`) - Optional. An expression for filtering the results of the request. For field names both snake_case and camelCase are supported. * `notebookRuntime` supports = and !=. `notebookRuntime` represents the NotebookRuntime ID, i.e. the last segment of the NotebookRuntime's resource name. * `displayName` supports = and != and regex. * `notebookRuntimeTemplate` supports = and !=. `notebookRuntimeTemplate` represents the NotebookRuntimeTemplate ID, i.e. the last segment of the NotebookRuntimeTemplate's resource name. * `healthState` supports = and !=. healthState enum: [HEALTHY, UNHEALTHY, HEALTH_STATE_UNSPECIFIED]. * `runtimeState` supports = and !=. runtimeState enum: [RUNTIME_STATE_UNSPECIFIED, RUNNING, BEING_STARTED, BEING_STOPPED, STOPPED, BEING_UPGRADED, ERROR, INVALID]. * `runtimeUser` supports = and !=. * API version is UI only: `uiState` supports = and !=. uiState enum: [UI_RESOURCE_STATE_UNSPECIFIED, UI_RESOURCE_STATE_BEING_CREATED, UI_RESOURCE_STATE_ACTIVE, UI_RESOURCE_STATE_BEING_DELETED, UI_RESOURCE_STATE_CREATION_FAILED]. * `notebookRuntimeType` supports = and !=. notebookRuntimeType enum: [USER_DEFINED, ONE_CLICK]. Some examples: * `notebookRuntime="notebookRuntime123"` * `displayName="myDisplayName"` and `displayName=~"myDisplayNameRegex"` * `notebookRuntimeTemplate="notebookRuntimeTemplate321"` * `healthState=HEALTHY` * `runtimeState=RUNNING` * `runtimeUser="test@google.com"` * `uiState=UI_RESOURCE_STATE_BEING_DELETED` * `notebookRuntimeType=USER_DEFINED` + * `:filter` (*type:* `String.t`) - Optional. An expression for filtering the results of the request. For field names both snake_case and camelCase are supported. * `notebookRuntime` supports = and !=. `notebookRuntime` represents the NotebookRuntime ID, i.e. the last segment of the NotebookRuntime's resource name. * `displayName` supports = and != and regex. * `notebookRuntimeTemplate` supports = and !=. `notebookRuntimeTemplate` represents the NotebookRuntimeTemplate ID, i.e. the last segment of the NotebookRuntimeTemplate's resource name. * `healthState` supports = and !=. healthState enum: [HEALTHY, UNHEALTHY, HEALTH_STATE_UNSPECIFIED]. * `runtimeState` supports = and !=. runtimeState enum: [RUNTIME_STATE_UNSPECIFIED, RUNNING, BEING_STARTED, BEING_STOPPED, STOPPED, BEING_UPGRADED, ERROR, INVALID]. * `runtimeUser` supports = and !=. * API version is UI only: `uiState` supports = and !=. uiState enum: [UI_RESOURCE_STATE_UNSPECIFIED, UI_RESOURCE_STATE_BEING_CREATED, UI_RESOURCE_STATE_ACTIVE, UI_RESOURCE_STATE_BEING_DELETED, UI_RESOURCE_STATE_CREATION_FAILED]. * `notebookRuntimeType` supports = and !=. notebookRuntimeType enum: [USER_DEFINED, ONE_CLICK]. * `machineType` supports = and !=. * `acceleratorType` supports = and !=. Some examples: * `notebookRuntime="notebookRuntime123"` * `displayName="myDisplayName"` and `displayName=~"myDisplayNameRegex"` * `notebookRuntimeTemplate="notebookRuntimeTemplate321"` * `healthState=HEALTHY` * `runtimeState=RUNNING` * `runtimeUser="test@google.com"` * `uiState=UI_RESOURCE_STATE_BEING_DELETED` * `notebookRuntimeType=USER_DEFINED` * `machineType=e2-standard-4` * `acceleratorType=NVIDIA_TESLA_T4` * `:orderBy` (*type:* `String.t`) - Optional. A comma-separated list of fields to order by, sorted in ascending order. Use "desc" after a field name for descending. Supported fields: * `display_name` * `create_time` * `update_time` Example: `display_name, create_time desc`. * `:pageSize` (*type:* `integer()`) - Optional. The standard list page size. * `:pageToken` (*type:* `String.t`) - Optional. The standard list page token. Typically obtained via ListNotebookRuntimesResponse.next_page_token of the previous NotebookService.ListNotebookRuntimes call. @@ -17671,12 +17671,152 @@ defmodule GoogleApi.AIPlatform.V1.Api.Projects do end @doc """ - Deletes a RagFile. + 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 * `connection` (*type:* `GoogleApi.AIPlatform.V1.Connection.t`) - Connection to server - * `name` (*type:* `String.t`) - Required. The name of the RagFile resource to be deleted. Format: `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}/ragFiles/{rag_file}` + * `name` (*type:* `String.t`) - The name of the operation resource to be cancelled. + * `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"). + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.AIPlatform.V1.Model.GoogleProtobufEmpty{}}` on success + * `{:error, info}` on failure + """ + @spec aiplatform_projects_locations_rag_corpora_operations_cancel( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.AIPlatform.V1.Model.GoogleProtobufEmpty.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def aiplatform_projects_locations_rag_corpora_operations_cancel( + connection, + name, + 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 + } + + request = + Request.new() + |> Request.method(:post) + |> Request.url("/v1/{+name}:cancel", %{ + "name" => URI.encode(name, &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.AIPlatform.V1.Model.GoogleProtobufEmpty{}]) + end + + @doc """ + Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. + + ## Parameters + + * `connection` (*type:* `GoogleApi.AIPlatform.V1.Connection.t`) - Connection to server + * `name` (*type:* `String.t`) - The name of the operation resource to be deleted. + * `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"). + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.AIPlatform.V1.Model.GoogleProtobufEmpty{}}` on success + * `{:error, info}` on failure + """ + @spec aiplatform_projects_locations_rag_corpora_operations_delete( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.AIPlatform.V1.Model.GoogleProtobufEmpty.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def aiplatform_projects_locations_rag_corpora_operations_delete( + connection, + name, + 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 + } + + request = + Request.new() + |> Request.method(:delete) + |> Request.url("/v1/{+name}", %{ + "name" => URI.encode(name, &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.AIPlatform.V1.Model.GoogleProtobufEmpty{}]) + end + + @doc """ + Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service. + + ## Parameters + + * `connection` (*type:* `GoogleApi.AIPlatform.V1.Connection.t`) - Connection to server + * `name` (*type:* `String.t`) - The name of the operation resource. * `optional_params` (*type:* `keyword()`) - Optional parameters * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. * `:access_token` (*type:* `String.t`) - OAuth access token. @@ -17696,7 +17836,7 @@ defmodule GoogleApi.AIPlatform.V1.Api.Projects do * `{:ok, %GoogleApi.AIPlatform.V1.Model.GoogleLongrunningOperation{}}` on success * `{:error, info}` on failure """ - @spec aiplatform_projects_locations_rag_corpora_rag_files_delete( + @spec aiplatform_projects_locations_rag_corpora_operations_get( Tesla.Env.client(), String.t(), keyword(), @@ -17706,7 +17846,7 @@ defmodule GoogleApi.AIPlatform.V1.Api.Projects do | {:ok, Tesla.Env.t()} | {:ok, list()} | {:error, any()} - def aiplatform_projects_locations_rag_corpora_rag_files_delete( + def aiplatform_projects_locations_rag_corpora_operations_get( connection, name, optional_params \\ [], @@ -17728,7 +17868,7 @@ defmodule GoogleApi.AIPlatform.V1.Api.Projects do request = Request.new() - |> Request.method(:delete) + |> Request.method(:get) |> Request.url("/v1/{+name}", %{ "name" => URI.encode(name, &URI.char_unreserved?/1) }) @@ -17743,12 +17883,12 @@ defmodule GoogleApi.AIPlatform.V1.Api.Projects do end @doc """ - Gets a RagFile. + Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. ## Parameters * `connection` (*type:* `GoogleApi.AIPlatform.V1.Connection.t`) - Connection to server - * `name` (*type:* `String.t`) - Required. The name of the RagFile resource. Format: `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}/ragFiles/{rag_file}` + * `name` (*type:* `String.t`) - The name of the operation's parent resource. * `optional_params` (*type:* `keyword()`) - Optional parameters * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. * `:access_token` (*type:* `String.t`) - OAuth access token. @@ -17761,24 +17901,27 @@ defmodule GoogleApi.AIPlatform.V1.Api.Projects do * `: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`) - The standard list filter. + * `:pageSize` (*type:* `integer()`) - The standard list page size. + * `:pageToken` (*type:* `String.t`) - The standard list page token. * `opts` (*type:* `keyword()`) - Call options ## Returns - * `{:ok, %GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1RagFile{}}` on success + * `{:ok, %GoogleApi.AIPlatform.V1.Model.GoogleLongrunningListOperationsResponse{}}` on success * `{:error, info}` on failure """ - @spec aiplatform_projects_locations_rag_corpora_rag_files_get( + @spec aiplatform_projects_locations_rag_corpora_operations_list( Tesla.Env.client(), String.t(), keyword(), keyword() ) :: - {:ok, GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1RagFile.t()} + {:ok, GoogleApi.AIPlatform.V1.Model.GoogleLongrunningListOperationsResponse.t()} | {:ok, Tesla.Env.t()} | {:ok, list()} | {:error, any()} - def aiplatform_projects_locations_rag_corpora_rag_files_get( + def aiplatform_projects_locations_rag_corpora_operations_list( connection, name, optional_params \\ [], @@ -17795,13 +17938,16 @@ defmodule GoogleApi.AIPlatform.V1.Api.Projects do :prettyPrint => :query, :quotaUser => :query, :uploadType => :query, - :upload_protocol => :query + :upload_protocol => :query, + :filter => :query, + :pageSize => :query, + :pageToken => :query } request = Request.new() |> Request.method(:get) - |> Request.url("/v1/{+name}", %{ + |> Request.url("/v1/{+name}/operations", %{ "name" => URI.encode(name, &URI.char_unreserved?/1) }) |> Request.add_optional_params(optional_params_config, optional_params) @@ -17810,17 +17956,17 @@ defmodule GoogleApi.AIPlatform.V1.Api.Projects do connection |> Connection.execute(request) |> Response.decode( - opts ++ [struct: %GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1RagFile{}] + opts ++ [struct: %GoogleApi.AIPlatform.V1.Model.GoogleLongrunningListOperationsResponse{}] ) end @doc """ - Import files from Google Cloud Storage or Google Drive into a RagCorpus. + Waits until the specified long-running operation is done or reaches at most a specified timeout, returning the latest state. If the operation is already done, the latest state is immediately returned. If the timeout specified is greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If the server does not support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return the latest state before the specified timeout (including immediately), meaning even an immediate response is no guarantee that the operation is done. ## Parameters * `connection` (*type:* `GoogleApi.AIPlatform.V1.Connection.t`) - Connection to server - * `parent` (*type:* `String.t`) - Required. The name of the RagCorpus resource into which to import files. Format: `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}` + * `name` (*type:* `String.t`) - The name of the operation resource to wait on. * `optional_params` (*type:* `keyword()`) - Optional parameters * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. * `:access_token` (*type:* `String.t`) - OAuth access token. @@ -17833,7 +17979,7 @@ defmodule GoogleApi.AIPlatform.V1.Api.Projects do * `: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.AIPlatform.V1.Model.GoogleCloudAiplatformV1ImportRagFilesRequest.t`) - + * `:timeout` (*type:* `String.t`) - The maximum duration to wait before timing out. If left blank, the wait will be at most the time permitted by the underlying HTTP/RPC protocol. If RPC context deadline is also specified, the shorter one will be used. * `opts` (*type:* `keyword()`) - Call options ## Returns @@ -17841,7 +17987,7 @@ defmodule GoogleApi.AIPlatform.V1.Api.Projects do * `{:ok, %GoogleApi.AIPlatform.V1.Model.GoogleLongrunningOperation{}}` on success * `{:error, info}` on failure """ - @spec aiplatform_projects_locations_rag_corpora_rag_files_import( + @spec aiplatform_projects_locations_rag_corpora_operations_wait( Tesla.Env.client(), String.t(), keyword(), @@ -17851,9 +17997,9 @@ defmodule GoogleApi.AIPlatform.V1.Api.Projects do | {:ok, Tesla.Env.t()} | {:ok, list()} | {:error, any()} - def aiplatform_projects_locations_rag_corpora_rag_files_import( + def aiplatform_projects_locations_rag_corpora_operations_wait( connection, - parent, + name, optional_params \\ [], opts \\ [] ) do @@ -17869,14 +18015,14 @@ defmodule GoogleApi.AIPlatform.V1.Api.Projects do :quotaUser => :query, :uploadType => :query, :upload_protocol => :query, - :body => :body + :timeout => :query } request = Request.new() |> Request.method(:post) - |> Request.url("/v1/{+parent}/ragFiles:import", %{ - "parent" => URI.encode(parent, &URI.char_unreserved?/1) + |> Request.url("/v1/{+name}:wait", %{ + "name" => URI.encode(name, &URI.char_unreserved?/1) }) |> Request.add_optional_params(optional_params_config, optional_params) |> Request.library_version(@library_version) @@ -17889,12 +18035,12 @@ defmodule GoogleApi.AIPlatform.V1.Api.Projects do end @doc """ - Lists RagFiles in a RagCorpus. + Deletes a RagFile. ## Parameters * `connection` (*type:* `GoogleApi.AIPlatform.V1.Connection.t`) - Connection to server - * `parent` (*type:* `String.t`) - Required. The resource name of the RagCorpus from which to list the RagFiles. Format: `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}` + * `name` (*type:* `String.t`) - Required. The name of the RagFile resource to be deleted. Format: `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}/ragFiles/{rag_file}` * `optional_params` (*type:* `keyword()`) - Optional parameters * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. * `:access_token` (*type:* `String.t`) - OAuth access token. @@ -17907,28 +18053,26 @@ defmodule GoogleApi.AIPlatform.V1.Api.Projects do * `: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"). - * `:pageSize` (*type:* `integer()`) - Optional. The standard list page size. - * `:pageToken` (*type:* `String.t`) - Optional. The standard list page token. Typically obtained via ListRagFilesResponse.next_page_token of the previous VertexRagDataService.ListRagFiles call. * `opts` (*type:* `keyword()`) - Call options ## Returns - * `{:ok, %GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1ListRagFilesResponse{}}` on success + * `{:ok, %GoogleApi.AIPlatform.V1.Model.GoogleLongrunningOperation{}}` on success * `{:error, info}` on failure """ - @spec aiplatform_projects_locations_rag_corpora_rag_files_list( + @spec aiplatform_projects_locations_rag_corpora_rag_files_delete( Tesla.Env.client(), String.t(), keyword(), keyword() ) :: - {:ok, GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1ListRagFilesResponse.t()} + {:ok, GoogleApi.AIPlatform.V1.Model.GoogleLongrunningOperation.t()} | {:ok, Tesla.Env.t()} | {:ok, list()} | {:error, any()} - def aiplatform_projects_locations_rag_corpora_rag_files_list( + def aiplatform_projects_locations_rag_corpora_rag_files_delete( connection, - parent, + name, optional_params \\ [], opts \\ [] ) do @@ -17943,16 +18087,14 @@ defmodule GoogleApi.AIPlatform.V1.Api.Projects do :prettyPrint => :query, :quotaUser => :query, :uploadType => :query, - :upload_protocol => :query, - :pageSize => :query, - :pageToken => :query + :upload_protocol => :query } request = Request.new() - |> Request.method(:get) - |> Request.url("/v1/{+parent}/ragFiles", %{ - "parent" => URI.encode(parent, &URI.char_unreserved?/1) + |> Request.method(:delete) + |> Request.url("/v1/{+name}", %{ + "name" => URI.encode(name, &URI.char_unreserved?/1) }) |> Request.add_optional_params(optional_params_config, optional_params) |> Request.library_version(@library_version) @@ -17960,8 +18102,594 @@ defmodule GoogleApi.AIPlatform.V1.Api.Projects do connection |> Connection.execute(request) |> Response.decode( - opts ++ - [struct: %GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1ListRagFilesResponse{}] + opts ++ [struct: %GoogleApi.AIPlatform.V1.Model.GoogleLongrunningOperation{}] + ) + end + + @doc """ + Gets a RagFile. + + ## Parameters + + * `connection` (*type:* `GoogleApi.AIPlatform.V1.Connection.t`) - Connection to server + * `name` (*type:* `String.t`) - Required. The name of the RagFile resource. Format: `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}/ragFiles/{rag_file}` + * `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"). + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1RagFile{}}` on success + * `{:error, info}` on failure + """ + @spec aiplatform_projects_locations_rag_corpora_rag_files_get( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1RagFile.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def aiplatform_projects_locations_rag_corpora_rag_files_get( + connection, + name, + 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 + } + + request = + Request.new() + |> Request.method(:get) + |> Request.url("/v1/{+name}", %{ + "name" => URI.encode(name, &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.AIPlatform.V1.Model.GoogleCloudAiplatformV1RagFile{}] + ) + end + + @doc """ + Import files from Google Cloud Storage or Google Drive into a RagCorpus. + + ## Parameters + + * `connection` (*type:* `GoogleApi.AIPlatform.V1.Connection.t`) - Connection to server + * `parent` (*type:* `String.t`) - Required. The name of the RagCorpus resource into which to import files. Format: `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}` + * `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.AIPlatform.V1.Model.GoogleCloudAiplatformV1ImportRagFilesRequest.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.AIPlatform.V1.Model.GoogleLongrunningOperation{}}` on success + * `{:error, info}` on failure + """ + @spec aiplatform_projects_locations_rag_corpora_rag_files_import( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.AIPlatform.V1.Model.GoogleLongrunningOperation.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def aiplatform_projects_locations_rag_corpora_rag_files_import( + connection, + parent, + 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/{+parent}/ragFiles:import", %{ + "parent" => URI.encode(parent, &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.AIPlatform.V1.Model.GoogleLongrunningOperation{}] + ) + end + + @doc """ + Lists RagFiles in a RagCorpus. + + ## Parameters + + * `connection` (*type:* `GoogleApi.AIPlatform.V1.Connection.t`) - Connection to server + * `parent` (*type:* `String.t`) - Required. The resource name of the RagCorpus from which to list the RagFiles. Format: `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}` + * `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"). + * `:pageSize` (*type:* `integer()`) - Optional. The standard list page size. + * `:pageToken` (*type:* `String.t`) - Optional. The standard list page token. Typically obtained via ListRagFilesResponse.next_page_token of the previous VertexRagDataService.ListRagFiles call. + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1ListRagFilesResponse{}}` on success + * `{:error, info}` on failure + """ + @spec aiplatform_projects_locations_rag_corpora_rag_files_list( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1ListRagFilesResponse.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def aiplatform_projects_locations_rag_corpora_rag_files_list( + connection, + parent, + 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, + :pageSize => :query, + :pageToken => :query + } + + request = + Request.new() + |> Request.method(:get) + |> Request.url("/v1/{+parent}/ragFiles", %{ + "parent" => URI.encode(parent, &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.AIPlatform.V1.Model.GoogleCloudAiplatformV1ListRagFilesResponse{}] + ) + 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`. + + ## Parameters + + * `connection` (*type:* `GoogleApi.AIPlatform.V1.Connection.t`) - Connection to server + * `name` (*type:* `String.t`) - The name of the operation resource to be cancelled. + * `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"). + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.AIPlatform.V1.Model.GoogleProtobufEmpty{}}` on success + * `{:error, info}` on failure + """ + @spec aiplatform_projects_locations_rag_corpora_rag_files_operations_cancel( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.AIPlatform.V1.Model.GoogleProtobufEmpty.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def aiplatform_projects_locations_rag_corpora_rag_files_operations_cancel( + connection, + name, + 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 + } + + request = + Request.new() + |> Request.method(:post) + |> Request.url("/v1/{+name}:cancel", %{ + "name" => URI.encode(name, &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.AIPlatform.V1.Model.GoogleProtobufEmpty{}]) + end + + @doc """ + Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. + + ## Parameters + + * `connection` (*type:* `GoogleApi.AIPlatform.V1.Connection.t`) - Connection to server + * `name` (*type:* `String.t`) - The name of the operation resource to be deleted. + * `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"). + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.AIPlatform.V1.Model.GoogleProtobufEmpty{}}` on success + * `{:error, info}` on failure + """ + @spec aiplatform_projects_locations_rag_corpora_rag_files_operations_delete( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.AIPlatform.V1.Model.GoogleProtobufEmpty.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def aiplatform_projects_locations_rag_corpora_rag_files_operations_delete( + connection, + name, + 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 + } + + request = + Request.new() + |> Request.method(:delete) + |> Request.url("/v1/{+name}", %{ + "name" => URI.encode(name, &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.AIPlatform.V1.Model.GoogleProtobufEmpty{}]) + end + + @doc """ + Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service. + + ## Parameters + + * `connection` (*type:* `GoogleApi.AIPlatform.V1.Connection.t`) - Connection to server + * `name` (*type:* `String.t`) - The name of the operation resource. + * `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"). + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.AIPlatform.V1.Model.GoogleLongrunningOperation{}}` on success + * `{:error, info}` on failure + """ + @spec aiplatform_projects_locations_rag_corpora_rag_files_operations_get( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.AIPlatform.V1.Model.GoogleLongrunningOperation.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def aiplatform_projects_locations_rag_corpora_rag_files_operations_get( + connection, + name, + 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 + } + + request = + Request.new() + |> Request.method(:get) + |> Request.url("/v1/{+name}", %{ + "name" => URI.encode(name, &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.AIPlatform.V1.Model.GoogleLongrunningOperation{}] + ) + end + + @doc """ + Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. + + ## Parameters + + * `connection` (*type:* `GoogleApi.AIPlatform.V1.Connection.t`) - Connection to server + * `name` (*type:* `String.t`) - The name of the operation's parent resource. + * `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`) - The standard list filter. + * `:pageSize` (*type:* `integer()`) - The standard list page size. + * `:pageToken` (*type:* `String.t`) - The standard list page token. + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.AIPlatform.V1.Model.GoogleLongrunningListOperationsResponse{}}` on success + * `{:error, info}` on failure + """ + @spec aiplatform_projects_locations_rag_corpora_rag_files_operations_list( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.AIPlatform.V1.Model.GoogleLongrunningListOperationsResponse.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def aiplatform_projects_locations_rag_corpora_rag_files_operations_list( + connection, + name, + 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, + :pageSize => :query, + :pageToken => :query + } + + request = + Request.new() + |> Request.method(:get) + |> Request.url("/v1/{+name}/operations", %{ + "name" => URI.encode(name, &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.AIPlatform.V1.Model.GoogleLongrunningListOperationsResponse{}] + ) + end + + @doc """ + Waits until the specified long-running operation is done or reaches at most a specified timeout, returning the latest state. If the operation is already done, the latest state is immediately returned. If the timeout specified is greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If the server does not support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return the latest state before the specified timeout (including immediately), meaning even an immediate response is no guarantee that the operation is done. + + ## Parameters + + * `connection` (*type:* `GoogleApi.AIPlatform.V1.Connection.t`) - Connection to server + * `name` (*type:* `String.t`) - The name of the operation resource to wait on. + * `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"). + * `:timeout` (*type:* `String.t`) - The maximum duration to wait before timing out. If left blank, the wait will be at most the time permitted by the underlying HTTP/RPC protocol. If RPC context deadline is also specified, the shorter one will be used. + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.AIPlatform.V1.Model.GoogleLongrunningOperation{}}` on success + * `{:error, info}` on failure + """ + @spec aiplatform_projects_locations_rag_corpora_rag_files_operations_wait( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.AIPlatform.V1.Model.GoogleLongrunningOperation.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def aiplatform_projects_locations_rag_corpora_rag_files_operations_wait( + connection, + name, + 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, + :timeout => :query + } + + request = + Request.new() + |> Request.method(:post) + |> Request.url("/v1/{+name}:wait", %{ + "name" => URI.encode(name, &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.AIPlatform.V1.Model.GoogleLongrunningOperation{}] ) end @@ -20959,7 +21687,7 @@ defmodule GoogleApi.AIPlatform.V1.Api.Projects do * `: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`) - Optional. An expression for filtering the results of the request. For field names both snake_case and camelCase are supported. * `notebookRuntimeTemplate` supports = and !=. `notebookRuntimeTemplate` represents the NotebookRuntimeTemplate ID, i.e. the last segment of the NotebookRuntimeTemplate's resource name. * `display_name` supports = and != * `labels` supports general map functions that is: * `labels.key=value` - key:value equality * `labels.key:* or labels:key - key existence * A key including a space must be quoted. `labels."a key"`. * `notebookRuntimeType` supports = and !=. notebookRuntimeType enum: [USER_DEFINED, ONE_CLICK]. Some examples: * `notebookRuntimeTemplate=notebookRuntimeTemplate123` * `displayName="myDisplayName"` * `labels.myKey="myValue"` * `notebookRuntimeType=USER_DEFINED` + * `:filter` (*type:* `String.t`) - Optional. An expression for filtering the results of the request. For field names both snake_case and camelCase are supported. * `notebookRuntimeTemplate` supports = and !=. `notebookRuntimeTemplate` represents the NotebookRuntimeTemplate ID, i.e. the last segment of the NotebookRuntimeTemplate's resource name. * `display_name` supports = and != * `labels` supports general map functions that is: * `labels.key=value` - key:value equality * `labels.key:* or labels:key - key existence * A key including a space must be quoted. `labels."a key"`. * `notebookRuntimeType` supports = and !=. notebookRuntimeType enum: [USER_DEFINED, ONE_CLICK]. * `machineType` supports = and !=. * `acceleratorType` supports = and !=. Some examples: * `notebookRuntimeTemplate=notebookRuntimeTemplate123` * `displayName="myDisplayName"` * `labels.myKey="myValue"` * `notebookRuntimeType=USER_DEFINED` * `machineType=e2-standard-4` * `acceleratorType=NVIDIA_TESLA_T4` * `:orderBy` (*type:* `String.t`) - Optional. A comma-separated list of fields to order by, sorted in ascending order. Use "desc" after a field name for descending. Supported fields: * `display_name` * `create_time` * `update_time` Example: `display_name, create_time desc`. * `:pageSize` (*type:* `integer()`) - Optional. The standard list page size. * `:pageToken` (*type:* `String.t`) - Optional. The standard list page token. Typically obtained via ListNotebookRuntimeTemplatesResponse.next_page_token of the previous NotebookService.ListNotebookRuntimeTemplates call. diff --git a/clients/ai_platform/lib/google_api/ai_platform/v1/metadata.ex b/clients/ai_platform/lib/google_api/ai_platform/v1/metadata.ex index b5f32689e5..0646ae018e 100644 --- a/clients/ai_platform/lib/google_api/ai_platform/v1/metadata.ex +++ b/clients/ai_platform/lib/google_api/ai_platform/v1/metadata.ex @@ -20,7 +20,7 @@ defmodule GoogleApi.AIPlatform.V1 do API client metadata for GoogleApi.AIPlatform.V1. """ - @discovery_revision "20241119" + @discovery_revision "20241203" def discovery_revision(), do: @discovery_revision end diff --git a/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_evaluate_instances_request.ex b/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_evaluate_instances_request.ex index 26f0aa1816..43c59e9880 100644 --- a/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_evaluate_instances_request.ex +++ b/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_evaluate_instances_request.ex @@ -46,6 +46,12 @@ defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1EvaluateInstances * `toolNameMatchInput` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1ToolNameMatchInput.t`, *default:* `nil`) - Input for tool name match metric. * `toolParameterKeyMatchInput` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1ToolParameterKeyMatchInput.t`, *default:* `nil`) - Input for tool parameter key match metric. * `toolParameterKvMatchInput` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1ToolParameterKVMatchInput.t`, *default:* `nil`) - Input for tool parameter key value match metric. + * `trajectoryAnyOrderMatchInput` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryAnyOrderMatchInput.t`, *default:* `nil`) - Input for trajectory match any order metric. + * `trajectoryExactMatchInput` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryExactMatchInput.t`, *default:* `nil`) - Input for trajectory exact match metric. + * `trajectoryInOrderMatchInput` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryInOrderMatchInput.t`, *default:* `nil`) - Input for trajectory in order match metric. + * `trajectoryPrecisionInput` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryPrecisionInput.t`, *default:* `nil`) - Input for trajectory precision metric. + * `trajectoryRecallInput` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryRecallInput.t`, *default:* `nil`) - Input for trajectory recall metric. + * `trajectorySingleToolUseInput` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectorySingleToolUseInput.t`, *default:* `nil`) - Input for trajectory single tool use metric. """ use GoogleApi.Gax.ModelBase @@ -110,6 +116,23 @@ defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1EvaluateInstances | nil, :toolParameterKvMatchInput => GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1ToolParameterKVMatchInput.t() + | nil, + :trajectoryAnyOrderMatchInput => + GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryAnyOrderMatchInput.t() + | nil, + :trajectoryExactMatchInput => + GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryExactMatchInput.t() + | nil, + :trajectoryInOrderMatchInput => + GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryInOrderMatchInput.t() + | nil, + :trajectoryPrecisionInput => + GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryPrecisionInput.t() + | nil, + :trajectoryRecallInput => + GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryRecallInput.t() | nil, + :trajectorySingleToolUseInput => + GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectorySingleToolUseInput.t() | nil } @@ -193,6 +216,30 @@ defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1EvaluateInstances field(:toolParameterKvMatchInput, as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1ToolParameterKVMatchInput ) + + field(:trajectoryAnyOrderMatchInput, + as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryAnyOrderMatchInput + ) + + field(:trajectoryExactMatchInput, + as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryExactMatchInput + ) + + field(:trajectoryInOrderMatchInput, + as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryInOrderMatchInput + ) + + field(:trajectoryPrecisionInput, + as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryPrecisionInput + ) + + field(:trajectoryRecallInput, + as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryRecallInput + ) + + field(:trajectorySingleToolUseInput, + as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectorySingleToolUseInput + ) end defimpl Poison.Decoder, diff --git a/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_evaluate_instances_response.ex b/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_evaluate_instances_response.ex index e0189a5260..67890da8b4 100644 --- a/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_evaluate_instances_response.ex +++ b/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_evaluate_instances_response.ex @@ -46,6 +46,12 @@ defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1EvaluateInstances * `toolNameMatchResults` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1ToolNameMatchResults.t`, *default:* `nil`) - Results for tool name match metric. * `toolParameterKeyMatchResults` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1ToolParameterKeyMatchResults.t`, *default:* `nil`) - Results for tool parameter key match metric. * `toolParameterKvMatchResults` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1ToolParameterKVMatchResults.t`, *default:* `nil`) - Results for tool parameter key value match metric. + * `trajectoryAnyOrderMatchResults` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryAnyOrderMatchResults.t`, *default:* `nil`) - Result for trajectory any order match metric. + * `trajectoryExactMatchResults` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryExactMatchResults.t`, *default:* `nil`) - Result for trajectory exact match metric. + * `trajectoryInOrderMatchResults` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryInOrderMatchResults.t`, *default:* `nil`) - Result for trajectory in order match metric. + * `trajectoryPrecisionResults` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryPrecisionResults.t`, *default:* `nil`) - Result for trajectory precision metric. + * `trajectoryRecallResults` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryRecallResults.t`, *default:* `nil`) - Results for trajectory recall metric. + * `trajectorySingleToolUseResults` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectorySingleToolUseResults.t`, *default:* `nil`) - Results for trajectory single tool use metric. """ use GoogleApi.Gax.ModelBase @@ -111,6 +117,23 @@ defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1EvaluateInstances | nil, :toolParameterKvMatchResults => GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1ToolParameterKVMatchResults.t() + | nil, + :trajectoryAnyOrderMatchResults => + GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryAnyOrderMatchResults.t() + | nil, + :trajectoryExactMatchResults => + GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryExactMatchResults.t() + | nil, + :trajectoryInOrderMatchResults => + GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryInOrderMatchResults.t() + | nil, + :trajectoryPrecisionResults => + GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryPrecisionResults.t() + | nil, + :trajectoryRecallResults => + GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryRecallResults.t() | nil, + :trajectorySingleToolUseResults => + GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectorySingleToolUseResults.t() | nil } @@ -199,6 +222,30 @@ defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1EvaluateInstances field(:toolParameterKvMatchResults, as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1ToolParameterKVMatchResults ) + + field(:trajectoryAnyOrderMatchResults, + as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryAnyOrderMatchResults + ) + + field(:trajectoryExactMatchResults, + as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryExactMatchResults + ) + + field(:trajectoryInOrderMatchResults, + as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryInOrderMatchResults + ) + + field(:trajectoryPrecisionResults, + as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryPrecisionResults + ) + + field(:trajectoryRecallResults, + as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryRecallResults + ) + + field(:trajectorySingleToolUseResults, + as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectorySingleToolUseResults + ) end defimpl Poison.Decoder, diff --git a/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_generation_config.ex b/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_generation_config.ex index f88636a2e6..b353b4dd4f 100644 --- a/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_generation_config.ex +++ b/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_generation_config.ex @@ -29,11 +29,14 @@ defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1GenerationConfig * `presencePenalty` (*type:* `number()`, *default:* `nil`) - Optional. Positive penalties. * `responseLogprobs` (*type:* `boolean()`, *default:* `nil`) - Optional. If true, export the logprobs results in response. * `responseMimeType` (*type:* `String.t`, *default:* `nil`) - Optional. Output response mimetype of the generated candidate text. Supported mimetype: - `text/plain`: (default) Text output. - `application/json`: JSON response in the candidates. The model needs to be prompted to output the appropriate response type, otherwise the behavior is undefined. This is a preview feature. + * `responseModalities` (*type:* `list(String.t)`, *default:* `nil`) - Optional. The modalities of the response. * `responseSchema` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1Schema.t`, *default:* `nil`) - Optional. The `Schema` object allows the definition of input and output data types. These types can be objects, but also primitives and arrays. Represents a select subset of an [OpenAPI 3.0 schema object](https://spec.openapis.org/oas/v3.0.3#schema). If set, a compatible response_mime_type must also be set. Compatible mimetypes: `application/json`: Schema for JSON response. * `routingConfig` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1GenerationConfigRoutingConfig.t`, *default:* `nil`) - Optional. Routing configuration. * `seed` (*type:* `integer()`, *default:* `nil`) - Optional. Seed. + * `speechConfig` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1SpeechConfig.t`, *default:* `nil`) - Optional. The speech generation config. * `stopSequences` (*type:* `list(String.t)`, *default:* `nil`) - Optional. Stop sequences. * `temperature` (*type:* `number()`, *default:* `nil`) - Optional. Controls the randomness of predictions. + * `tokenResolution` (*type:* `String.t`, *default:* `nil`) - Optional. If specified, the token resolution specified will be used. * `topK` (*type:* `number()`, *default:* `nil`) - Optional. If specified, top-k sampling will be used. * `topP` (*type:* `number()`, *default:* `nil`) - Optional. If specified, nucleus sampling will be used. """ @@ -49,14 +52,18 @@ defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1GenerationConfig :presencePenalty => number() | nil, :responseLogprobs => boolean() | nil, :responseMimeType => String.t() | nil, + :responseModalities => list(String.t()) | nil, :responseSchema => GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1Schema.t() | nil, :routingConfig => GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1GenerationConfigRoutingConfig.t() | nil, :seed => integer() | nil, + :speechConfig => + GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1SpeechConfig.t() | nil, :stopSequences => list(String.t()) | nil, :temperature => number() | nil, + :tokenResolution => String.t() | nil, :topK => number() | nil, :topP => number() | nil } @@ -69,6 +76,7 @@ defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1GenerationConfig field(:presencePenalty) field(:responseLogprobs) field(:responseMimeType) + field(:responseModalities, type: :list) field(:responseSchema, as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1Schema) field(:routingConfig, @@ -76,8 +84,10 @@ defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1GenerationConfig ) field(:seed) + field(:speechConfig, as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1SpeechConfig) field(:stopSequences, type: :list) field(:temperature) + field(:tokenResolution) field(:topK) field(:topP) end diff --git a/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_import_rag_files_config.ex b/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_import_rag_files_config.ex index c0dc77b083..12a18cd927 100644 --- a/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_import_rag_files_config.ex +++ b/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_import_rag_files_config.ex @@ -28,6 +28,7 @@ defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1ImportRagFilesCon * `partialFailureBigquerySink` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1BigQueryDestination.t`, *default:* `nil`) - The BigQuery destination to write partial failures to. It should be a bigquery table resource name (e.g. "bq://projectId.bqDatasetId.bqTableId"). The dataset must exist. If the table does not exist, it will be created with the expected schema. If the table exists, the schema will be validated and data will be added to this existing table. Deprecated. Prefer to use `import_result_bq_sink`. * `partialFailureGcsSink` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1GcsDestination.t`, *default:* `nil`) - The Cloud Storage path to write partial failures to. Deprecated. Prefer to use `import_result_gcs_sink`. * `ragFileTransformationConfig` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1RagFileTransformationConfig.t`, *default:* `nil`) - Specifies the transformation config for RagFiles. + * `sharePointSources` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1SharePointSources.t`, *default:* `nil`) - SharePoint sources. * `slackSource` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1SlackSource.t`, *default:* `nil`) - Slack channels with their corresponding access tokens. """ @@ -47,6 +48,8 @@ defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1ImportRagFilesCon :ragFileTransformationConfig => GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1RagFileTransformationConfig.t() | nil, + :sharePointSources => + GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1SharePointSources.t() | nil, :slackSource => GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1SlackSource.t() | nil } @@ -72,6 +75,10 @@ defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1ImportRagFilesCon as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1RagFileTransformationConfig ) + field(:sharePointSources, + as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1SharePointSources + ) + field(:slackSource, as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1SlackSource) end diff --git a/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_notebook_runtime.ex b/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_notebook_runtime.ex index 9e653ef328..07868aa855 100644 --- a/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_notebook_runtime.ex +++ b/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_notebook_runtime.ex @@ -22,15 +22,19 @@ defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1NotebookRuntime d ## Attributes * `createTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. Timestamp when this NotebookRuntime was created. + * `dataPersistentDiskSpec` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1PersistentDiskSpec.t`, *default:* `nil`) - Output only. The specification of persistent disk attached to the notebook runtime as data disk storage. * `description` (*type:* `String.t`, *default:* `nil`) - The description of the NotebookRuntime. * `displayName` (*type:* `String.t`, *default:* `nil`) - Required. The display name of the NotebookRuntime. The name can be up to 128 characters long and can consist of any UTF-8 characters. * `encryptionSpec` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1EncryptionSpec.t`, *default:* `nil`) - Output only. Customer-managed encryption key spec for the notebook runtime. + * `eucConfig` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1NotebookEucConfig.t`, *default:* `nil`) - Output only. EUC configuration of the notebook runtime. * `expirationTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. Timestamp when this NotebookRuntime will be expired: 1. System Predefined NotebookRuntime: 24 hours after creation. After expiration, system predifined runtime will be deleted. 2. User created NotebookRuntime: 6 months after last upgrade. After expiration, user created runtime will be stopped and allowed for upgrade. * `healthState` (*type:* `String.t`, *default:* `nil`) - Output only. The health state of the NotebookRuntime. * `idleShutdownConfig` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1NotebookIdleShutdownConfig.t`, *default:* `nil`) - Output only. The idle shutdown configuration of the notebook runtime. * `isUpgradable` (*type:* `boolean()`, *default:* `nil`) - Output only. Whether NotebookRuntime is upgradable. * `labels` (*type:* `map()`, *default:* `nil`) - The labels with user-defined metadata to organize your NotebookRuntime. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. No more than 64 user labels can be associated with one NotebookRuntime (System labels are excluded). See https://goo.gl/xmQnxf for more information and examples of labels. System reserved label keys are prefixed with "aiplatform.googleapis.com/" and are immutable. Following system labels exist for NotebookRuntime: * "aiplatform.googleapis.com/notebook_runtime_gce_instance_id": output only, its value is the Compute Engine instance id. * "aiplatform.googleapis.com/colab_enterprise_entry_service": its value is either "bigquery" or "vertex"; if absent, it should be "vertex". This is to describe the entry service, either BigQuery or Vertex. + * `machineSpec` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1MachineSpec.t`, *default:* `nil`) - Output only. The specification of a single machine used by the notebook runtime. * `name` (*type:* `String.t`, *default:* `nil`) - Output only. The resource name of the NotebookRuntime. + * `networkSpec` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1NetworkSpec.t`, *default:* `nil`) - Output only. Network spec of the notebook runtime. * `networkTags` (*type:* `list(String.t)`, *default:* `nil`) - Optional. The Compute Engine tags to add to runtime (see [Tagging instances](https://cloud.google.com/vpc/docs/add-remove-network-tags)). * `notebookRuntimeTemplateRef` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1NotebookRuntimeTemplateRef.t`, *default:* `nil`) - Output only. The pointer to NotebookRuntimeTemplate this NotebookRuntime is created from. * `notebookRuntimeType` (*type:* `String.t`, *default:* `nil`) - Output only. The type of the notebook runtime. @@ -39,7 +43,8 @@ defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1NotebookRuntime d * `runtimeUser` (*type:* `String.t`, *default:* `nil`) - Required. The user email of the NotebookRuntime. * `satisfiesPzi` (*type:* `boolean()`, *default:* `nil`) - Output only. Reserved for future use. * `satisfiesPzs` (*type:* `boolean()`, *default:* `nil`) - Output only. Reserved for future use. - * `serviceAccount` (*type:* `String.t`, *default:* `nil`) - Output only. The service account that the NotebookRuntime workload runs as. + * `serviceAccount` (*type:* `String.t`, *default:* `nil`) - Output only. Deprecated: This field is no longer used and the "Vertex AI Notebook Service Account" (service-PROJECT_NUMBER@gcp-sa-aiplatform-vm.iam.gserviceaccount.com) is used for the runtime workload identity. See https://cloud.google.com/iam/docs/service-agents#vertex-ai-notebook-service-account for more details. The service account that the NotebookRuntime workload runs as. + * `shieldedVmConfig` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1ShieldedVmConfig.t`, *default:* `nil`) - Output only. Runtime Shielded VM spec. * `updateTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. Timestamp when this NotebookRuntime was most recently updated. * `version` (*type:* `String.t`, *default:* `nil`) - Output only. The VM os image version of NotebookRuntime. """ @@ -48,10 +53,14 @@ defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1NotebookRuntime d @type t :: %__MODULE__{ :createTime => DateTime.t() | nil, + :dataPersistentDiskSpec => + GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1PersistentDiskSpec.t() | nil, :description => String.t() | nil, :displayName => String.t() | nil, :encryptionSpec => GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1EncryptionSpec.t() | nil, + :eucConfig => + GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1NotebookEucConfig.t() | nil, :expirationTime => DateTime.t() | nil, :healthState => String.t() | nil, :idleShutdownConfig => @@ -59,7 +68,11 @@ defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1NotebookRuntime d | nil, :isUpgradable => boolean() | nil, :labels => map() | nil, + :machineSpec => + GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1MachineSpec.t() | nil, :name => String.t() | nil, + :networkSpec => + GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1NetworkSpec.t() | nil, :networkTags => list(String.t()) | nil, :notebookRuntimeTemplateRef => GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1NotebookRuntimeTemplateRef.t() @@ -71,14 +84,22 @@ defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1NotebookRuntime d :satisfiesPzi => boolean() | nil, :satisfiesPzs => boolean() | nil, :serviceAccount => String.t() | nil, + :shieldedVmConfig => + GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1ShieldedVmConfig.t() | nil, :updateTime => DateTime.t() | nil, :version => String.t() | nil } field(:createTime, as: DateTime) + + field(:dataPersistentDiskSpec, + as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1PersistentDiskSpec + ) + field(:description) field(:displayName) field(:encryptionSpec, as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1EncryptionSpec) + field(:eucConfig, as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1NotebookEucConfig) field(:expirationTime, as: DateTime) field(:healthState) @@ -88,7 +109,9 @@ defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1NotebookRuntime d field(:isUpgradable) field(:labels, type: :map) + field(:machineSpec, as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1MachineSpec) field(:name) + field(:networkSpec, as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1NetworkSpec) field(:networkTags, type: :list) field(:notebookRuntimeTemplateRef, @@ -102,6 +125,11 @@ defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1NotebookRuntime d field(:satisfiesPzi) field(:satisfiesPzs) field(:serviceAccount) + + field(:shieldedVmConfig, + as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1ShieldedVmConfig + ) + field(:updateTime, as: DateTime) field(:version) end diff --git a/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_notebook_runtime_template.ex b/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_notebook_runtime_template.ex index 14ce1ce57f..2696b777e6 100644 --- a/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_notebook_runtime_template.ex +++ b/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_notebook_runtime_template.ex @@ -29,14 +29,14 @@ defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1NotebookRuntimeTe * `etag` (*type:* `String.t`, *default:* `nil`) - Used to perform consistent read-modify-write updates. If not set, a blind "overwrite" update happens. * `eucConfig` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1NotebookEucConfig.t`, *default:* `nil`) - EUC configuration of the NotebookRuntimeTemplate. * `idleShutdownConfig` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1NotebookIdleShutdownConfig.t`, *default:* `nil`) - The idle shutdown configuration of NotebookRuntimeTemplate. This config will only be set when idle shutdown is enabled. - * `isDefault` (*type:* `boolean()`, *default:* `nil`) - Output only. The default template to use if not specified. + * `isDefault` (*type:* `boolean()`, *default:* `nil`) - Output only. Deprecated: This field has no behavior. Use notebook_runtime_type = 'ONE_CLICK' instead. The default template to use if not specified. * `labels` (*type:* `map()`, *default:* `nil`) - The labels with user-defined metadata to organize the NotebookRuntimeTemplates. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. See https://goo.gl/xmQnxf for more information and examples of labels. * `machineSpec` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1MachineSpec.t`, *default:* `nil`) - Optional. Immutable. The specification of a single machine for the template. * `name` (*type:* `String.t`, *default:* `nil`) - The resource name of the NotebookRuntimeTemplate. * `networkSpec` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1NetworkSpec.t`, *default:* `nil`) - Optional. Network spec. * `networkTags` (*type:* `list(String.t)`, *default:* `nil`) - Optional. The Compute Engine tags to add to runtime (see [Tagging instances](https://cloud.google.com/vpc/docs/add-remove-network-tags)). * `notebookRuntimeType` (*type:* `String.t`, *default:* `nil`) - Optional. Immutable. The type of the notebook runtime template. - * `serviceAccount` (*type:* `String.t`, *default:* `nil`) - The service account that the runtime workload runs as. You can use any service account within the same project, but you must have the service account user permission to use the instance. If not specified, the [Compute Engine default service account](https://cloud.google.com/compute/docs/access/service-accounts#default_service_account) is used. + * `serviceAccount` (*type:* `String.t`, *default:* `nil`) - Deprecated: This field is ignored and the "Vertex AI Notebook Service Account" (service-PROJECT_NUMBER@gcp-sa-aiplatform-vm.iam.gserviceaccount.com) is used for the runtime workload identity. See https://cloud.google.com/iam/docs/service-agents#vertex-ai-notebook-service-account for more details. For NotebookExecutionJob, use NotebookExecutionJob.service_account instead. The service account that the runtime workload runs as. You can use any service account within the same project, but you must have the service account user permission to use the instance. If not specified, the [Compute Engine default service account](https://cloud.google.com/compute/docs/access/service-accounts#default_service_account) is used. * `shieldedVmConfig` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1ShieldedVmConfig.t`, *default:* `nil`) - Optional. Immutable. Runtime Shielded VM spec. * `updateTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. Timestamp when this NotebookRuntimeTemplate was most recently updated. """ diff --git a/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_prebuilt_voice_config.ex b/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_prebuilt_voice_config.ex new file mode 100644 index 0000000000..8949aad86d --- /dev/null +++ b/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_prebuilt_voice_config.ex @@ -0,0 +1,51 @@ +# 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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1PrebuiltVoiceConfig do + @moduledoc """ + The configuration for the prebuilt speaker to use. + + ## Attributes + + * `voiceName` (*type:* `String.t`, *default:* `nil`) - The name of the preset voice to use. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :voiceName => String.t() | nil + } + + field(:voiceName) +end + +defimpl Poison.Decoder, + for: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1PrebuiltVoiceConfig do + def decode(value, options) do + GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1PrebuiltVoiceConfig.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1PrebuiltVoiceConfig do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_rag_file.ex b/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_rag_file.ex index 82e0fcfc82..32dd4a38e0 100644 --- a/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_rag_file.ex +++ b/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_rag_file.ex @@ -30,6 +30,7 @@ defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1RagFile do * `googleDriveSource` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1GoogleDriveSource.t`, *default:* `nil`) - Output only. Google Drive location. Supports importing individual files as well as Google Drive folders. * `jiraSource` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1JiraSource.t`, *default:* `nil`) - The RagFile is imported from a Jira query. * `name` (*type:* `String.t`, *default:* `nil`) - Output only. The resource name of the RagFile. + * `sharePointSources` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1SharePointSources.t`, *default:* `nil`) - The RagFile is imported from a SharePoint source. * `slackSource` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1SlackSource.t`, *default:* `nil`) - The RagFile is imported from a Slack channel. * `updateTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. Timestamp when this RagFile was last updated. """ @@ -50,6 +51,8 @@ defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1RagFile do :jiraSource => GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1JiraSource.t() | nil, :name => String.t() | nil, + :sharePointSources => + GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1SharePointSources.t() | nil, :slackSource => GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1SlackSource.t() | nil, :updateTime => DateTime.t() | nil @@ -72,6 +75,11 @@ defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1RagFile do field(:jiraSource, as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1JiraSource) field(:name) + + field(:sharePointSources, + as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1SharePointSources + ) + field(:slackSource, as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1SlackSource) field(:updateTime, as: DateTime) end diff --git a/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_rag_vector_db_config.ex b/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_rag_vector_db_config.ex index f032163e4b..af4f287466 100644 --- a/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_rag_vector_db_config.ex +++ b/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_rag_vector_db_config.ex @@ -24,6 +24,7 @@ defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1RagVectorDbConfig * `apiAuth` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1ApiAuth.t`, *default:* `nil`) - Authentication config for the chosen Vector DB. * `pinecone` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1RagVectorDbConfigPinecone.t`, *default:* `nil`) - The config for the Pinecone. * `ragEmbeddingModelConfig` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1RagEmbeddingModelConfig.t`, *default:* `nil`) - Optional. Immutable. The embedding model config of the Vector DB. + * `ragManagedDb` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1RagVectorDbConfigRagManagedDb.t`, *default:* `nil`) - The config for the RAG-managed Vector DB. * `vertexVectorSearch` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1RagVectorDbConfigVertexVectorSearch.t`, *default:* `nil`) - The config for the Vertex Vector Search. """ @@ -36,6 +37,9 @@ defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1RagVectorDbConfig | nil, :ragEmbeddingModelConfig => GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1RagEmbeddingModelConfig.t() | nil, + :ragManagedDb => + GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1RagVectorDbConfigRagManagedDb.t() + | nil, :vertexVectorSearch => GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1RagVectorDbConfigVertexVectorSearch.t() | nil @@ -51,6 +55,10 @@ defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1RagVectorDbConfig as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1RagEmbeddingModelConfig ) + field(:ragManagedDb, + as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1RagVectorDbConfigRagManagedDb + ) + field(:vertexVectorSearch, as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1RagVectorDbConfigVertexVectorSearch ) diff --git a/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_rag_vector_db_config_rag_managed_db.ex b/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_rag_vector_db_config_rag_managed_db.ex new file mode 100644 index 0000000000..6b112d65ed --- /dev/null +++ b/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_rag_vector_db_config_rag_managed_db.ex @@ -0,0 +1,46 @@ +# 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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1RagVectorDbConfigRagManagedDb do + @moduledoc """ + The config for the default RAG-managed Vector DB. + + ## Attributes + + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{} +end + +defimpl Poison.Decoder, + for: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1RagVectorDbConfigRagManagedDb do + def decode(value, options) do + GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1RagVectorDbConfigRagManagedDb.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1RagVectorDbConfigRagManagedDb do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_share_point_sources.ex b/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_share_point_sources.ex new file mode 100644 index 0000000000..78105cd664 --- /dev/null +++ b/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_share_point_sources.ex @@ -0,0 +1,55 @@ +# 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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1SharePointSources do + @moduledoc """ + The SharePointSources to pass to ImportRagFiles. + + ## Attributes + + * `sharePointSources` (*type:* `list(GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1SharePointSourcesSharePointSource.t)`, *default:* `nil`) - The SharePoint sources. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :sharePointSources => + list( + GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1SharePointSourcesSharePointSource.t() + ) + | nil + } + + field(:sharePointSources, + as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1SharePointSourcesSharePointSource, + type: :list + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1SharePointSources do + def decode(value, options) do + GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1SharePointSources.decode(value, options) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1SharePointSources do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_share_point_sources_share_point_source.ex b/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_share_point_sources_share_point_source.ex new file mode 100644 index 0000000000..3f5c320b6f --- /dev/null +++ b/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_share_point_sources_share_point_source.ex @@ -0,0 +1,80 @@ +# 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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1SharePointSourcesSharePointSource do + @moduledoc """ + An individual SharePointSource. + + ## Attributes + + * `clientId` (*type:* `String.t`, *default:* `nil`) - The Application ID for the app registered in Microsoft Azure Portal. The application must also be configured with MS Graph permissions "Files.ReadAll", "Sites.ReadAll" and BrowserSiteLists.Read.All. + * `clientSecret` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1ApiAuthApiKeyConfig.t`, *default:* `nil`) - The application secret for the app registered in Azure. + * `driveId` (*type:* `String.t`, *default:* `nil`) - The ID of the drive to download from. + * `driveName` (*type:* `String.t`, *default:* `nil`) - The name of the drive to download from. + * `fileId` (*type:* `String.t`, *default:* `nil`) - Output only. The SharePoint file id. Output only. + * `sharepointFolderId` (*type:* `String.t`, *default:* `nil`) - The ID of the SharePoint folder to download from. + * `sharepointFolderPath` (*type:* `String.t`, *default:* `nil`) - The path of the SharePoint folder to download from. + * `sharepointSiteName` (*type:* `String.t`, *default:* `nil`) - The name of the SharePoint site to download from. This can be the site name or the site id. + * `tenantId` (*type:* `String.t`, *default:* `nil`) - Unique identifier of the Azure Active Directory Instance. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :clientId => String.t() | nil, + :clientSecret => + GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1ApiAuthApiKeyConfig.t() | nil, + :driveId => String.t() | nil, + :driveName => String.t() | nil, + :fileId => String.t() | nil, + :sharepointFolderId => String.t() | nil, + :sharepointFolderPath => String.t() | nil, + :sharepointSiteName => String.t() | nil, + :tenantId => String.t() | nil + } + + field(:clientId) + + field(:clientSecret, + as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1ApiAuthApiKeyConfig + ) + + field(:driveId) + field(:driveName) + field(:fileId) + field(:sharepointFolderId) + field(:sharepointFolderPath) + field(:sharepointSiteName) + field(:tenantId) +end + +defimpl Poison.Decoder, + for: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1SharePointSourcesSharePointSource do + def decode(value, options) do + GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1SharePointSourcesSharePointSource.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1SharePointSourcesSharePointSource do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_speech_config.ex b/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_speech_config.ex new file mode 100644 index 0000000000..1c8c47b2de --- /dev/null +++ b/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_speech_config.ex @@ -0,0 +1,47 @@ +# 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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1SpeechConfig do + @moduledoc """ + The speech generation config. + + ## Attributes + + * `voiceConfig` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1VoiceConfig.t`, *default:* `nil`) - The configuration for the speaker to use. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :voiceConfig => + GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1VoiceConfig.t() | nil + } + + field(:voiceConfig, as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1VoiceConfig) +end + +defimpl Poison.Decoder, for: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1SpeechConfig do + def decode(value, options) do + GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1SpeechConfig.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1SpeechConfig do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_tool.ex b/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_tool.ex index 77ec51b76a..92cb1f452c 100644 --- a/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_tool.ex +++ b/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_tool.ex @@ -22,6 +22,7 @@ defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1Tool do ## Attributes * `functionDeclarations` (*type:* `list(GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1FunctionDeclaration.t)`, *default:* `nil`) - Optional. Function tool type. One or more function declarations to be passed to the model along with the current user query. Model may decide to call a subset of these functions by populating FunctionCall in the response. User should provide a FunctionResponse for each function call in the next turn. Based on the function responses, Model will generate the final response back to the user. Maximum 128 function declarations can be provided. + * `googleSearch` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1ToolGoogleSearch.t`, *default:* `nil`) - Optional. GoogleSearch tool type. Tool to support Google Search in Model. Powered by Google. * `googleSearchRetrieval` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1GoogleSearchRetrieval.t`, *default:* `nil`) - Optional. GoogleSearchRetrieval tool type. Specialized retrieval tool that is powered by Google search. * `retrieval` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1Retrieval.t`, *default:* `nil`) - Optional. Retrieval tool type. System will always execute the provided retrieval tool(s) to get external knowledge to answer the prompt. Retrieval results are presented to the model for generation. """ @@ -32,6 +33,8 @@ defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1Tool do :functionDeclarations => list(GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1FunctionDeclaration.t()) | nil, + :googleSearch => + GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1ToolGoogleSearch.t() | nil, :googleSearchRetrieval => GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1GoogleSearchRetrieval.t() | nil, :retrieval => GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1Retrieval.t() | nil @@ -42,6 +45,8 @@ defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1Tool do type: :list ) + field(:googleSearch, as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1ToolGoogleSearch) + field(:googleSearchRetrieval, as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1GoogleSearchRetrieval ) diff --git a/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_tool_call.ex b/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_tool_call.ex new file mode 100644 index 0000000000..f5fe7836d6 --- /dev/null +++ b/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_tool_call.ex @@ -0,0 +1,49 @@ +# 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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1ToolCall do + @moduledoc """ + Spec for tool call. + + ## Attributes + + * `toolInput` (*type:* `String.t`, *default:* `nil`) - Optional. Spec for tool input + * `toolName` (*type:* `String.t`, *default:* `nil`) - Required. Spec for tool name + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :toolInput => String.t() | nil, + :toolName => String.t() | nil + } + + field(:toolInput) + field(:toolName) +end + +defimpl Poison.Decoder, for: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1ToolCall do + def decode(value, options) do + GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1ToolCall.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1ToolCall do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_tool_google_search.ex b/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_tool_google_search.ex new file mode 100644 index 0000000000..e03efdb236 --- /dev/null +++ b/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_tool_google_search.ex @@ -0,0 +1,41 @@ +# 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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1ToolGoogleSearch do + @moduledoc """ + GoogleSearch tool type. Tool to support Google Search in Model. Powered by Google. + + ## Attributes + + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{} +end + +defimpl Poison.Decoder, for: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1ToolGoogleSearch do + def decode(value, options) do + GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1ToolGoogleSearch.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1ToolGoogleSearch do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_trajectory.ex b/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_trajectory.ex new file mode 100644 index 0000000000..2f37bd7d00 --- /dev/null +++ b/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_trajectory.ex @@ -0,0 +1,47 @@ +# 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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1Trajectory do + @moduledoc """ + Spec for trajectory. + + ## Attributes + + * `toolCalls` (*type:* `list(GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1ToolCall.t)`, *default:* `nil`) - Required. Tool calls in the trajectory. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :toolCalls => + list(GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1ToolCall.t()) | nil + } + + field(:toolCalls, as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1ToolCall, type: :list) +end + +defimpl Poison.Decoder, for: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1Trajectory do + def decode(value, options) do + GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1Trajectory.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1Trajectory do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_trajectory_any_order_match_input.ex b/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_trajectory_any_order_match_input.ex new file mode 100644 index 0000000000..2d93c0fc7e --- /dev/null +++ b/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_trajectory_any_order_match_input.ex @@ -0,0 +1,66 @@ +# 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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryAnyOrderMatchInput do + @moduledoc """ + Instances and metric spec for TrajectoryAnyOrderMatch metric. + + ## Attributes + + * `instances` (*type:* `list(GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryAnyOrderMatchInstance.t)`, *default:* `nil`) - Required. Repeated TrajectoryAnyOrderMatch instance. + * `metricSpec` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryAnyOrderMatchSpec.t`, *default:* `nil`) - Required. Spec for TrajectoryAnyOrderMatch metric. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :instances => + list( + GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryAnyOrderMatchInstance.t() + ) + | nil, + :metricSpec => + GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryAnyOrderMatchSpec.t() + | nil + } + + field(:instances, + as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryAnyOrderMatchInstance, + type: :list + ) + + field(:metricSpec, + as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryAnyOrderMatchSpec + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryAnyOrderMatchInput do + def decode(value, options) do + GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryAnyOrderMatchInput.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryAnyOrderMatchInput do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_trajectory_any_order_match_instance.ex b/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_trajectory_any_order_match_instance.ex new file mode 100644 index 0000000000..56894862f6 --- /dev/null +++ b/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_trajectory_any_order_match_instance.ex @@ -0,0 +1,56 @@ +# 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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryAnyOrderMatchInstance do + @moduledoc """ + Spec for TrajectoryAnyOrderMatch instance. + + ## Attributes + + * `predictedTrajectory` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1Trajectory.t`, *default:* `nil`) - Required. Spec for predicted tool call trajectory. + * `referenceTrajectory` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1Trajectory.t`, *default:* `nil`) - Required. Spec for reference tool call trajectory. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :predictedTrajectory => + GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1Trajectory.t() | nil, + :referenceTrajectory => + GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1Trajectory.t() | nil + } + + field(:predictedTrajectory, as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1Trajectory) + field(:referenceTrajectory, as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1Trajectory) +end + +defimpl Poison.Decoder, + for: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryAnyOrderMatchInstance do + def decode(value, options) do + GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryAnyOrderMatchInstance.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryAnyOrderMatchInstance do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_trajectory_any_order_match_metric_value.ex b/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_trajectory_any_order_match_metric_value.ex new file mode 100644 index 0000000000..d130b8d498 --- /dev/null +++ b/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_trajectory_any_order_match_metric_value.ex @@ -0,0 +1,51 @@ +# 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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryAnyOrderMatchMetricValue do + @moduledoc """ + TrajectoryAnyOrderMatch metric value for an instance. + + ## Attributes + + * `score` (*type:* `number()`, *default:* `nil`) - Output only. TrajectoryAnyOrderMatch score. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :score => number() | nil + } + + field(:score) +end + +defimpl Poison.Decoder, + for: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryAnyOrderMatchMetricValue do + def decode(value, options) do + GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryAnyOrderMatchMetricValue.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryAnyOrderMatchMetricValue do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_trajectory_any_order_match_results.ex b/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_trajectory_any_order_match_results.ex new file mode 100644 index 0000000000..49cfbefc6a --- /dev/null +++ b/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_trajectory_any_order_match_results.ex @@ -0,0 +1,58 @@ +# 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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryAnyOrderMatchResults do + @moduledoc """ + Results for TrajectoryAnyOrderMatch metric. + + ## Attributes + + * `trajectoryAnyOrderMatchMetricValues` (*type:* `list(GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryAnyOrderMatchMetricValue.t)`, *default:* `nil`) - Output only. TrajectoryAnyOrderMatch metric values. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :trajectoryAnyOrderMatchMetricValues => + list( + GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryAnyOrderMatchMetricValue.t() + ) + | nil + } + + field(:trajectoryAnyOrderMatchMetricValues, + as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryAnyOrderMatchMetricValue, + type: :list + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryAnyOrderMatchResults do + def decode(value, options) do + GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryAnyOrderMatchResults.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryAnyOrderMatchResults do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_trajectory_any_order_match_spec.ex b/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_trajectory_any_order_match_spec.ex new file mode 100644 index 0000000000..76eeb9941d --- /dev/null +++ b/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_trajectory_any_order_match_spec.ex @@ -0,0 +1,46 @@ +# 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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryAnyOrderMatchSpec do + @moduledoc """ + Spec for TrajectoryAnyOrderMatch metric - returns 1 if all tool calls in the reference trajectory appear in the predicted trajectory in any order, else 0. + + ## Attributes + + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{} +end + +defimpl Poison.Decoder, + for: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryAnyOrderMatchSpec do + def decode(value, options) do + GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryAnyOrderMatchSpec.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryAnyOrderMatchSpec do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_trajectory_exact_match_input.ex b/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_trajectory_exact_match_input.ex new file mode 100644 index 0000000000..101947826c --- /dev/null +++ b/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_trajectory_exact_match_input.ex @@ -0,0 +1,66 @@ +# 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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryExactMatchInput do + @moduledoc """ + Instances and metric spec for TrajectoryExactMatch metric. + + ## Attributes + + * `instances` (*type:* `list(GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryExactMatchInstance.t)`, *default:* `nil`) - Required. Repeated TrajectoryExactMatch instance. + * `metricSpec` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryExactMatchSpec.t`, *default:* `nil`) - Required. Spec for TrajectoryExactMatch metric. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :instances => + list( + GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryExactMatchInstance.t() + ) + | nil, + :metricSpec => + GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryExactMatchSpec.t() + | nil + } + + field(:instances, + as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryExactMatchInstance, + type: :list + ) + + field(:metricSpec, + as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryExactMatchSpec + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryExactMatchInput do + def decode(value, options) do + GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryExactMatchInput.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryExactMatchInput do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_trajectory_exact_match_instance.ex b/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_trajectory_exact_match_instance.ex new file mode 100644 index 0000000000..102d6a2013 --- /dev/null +++ b/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_trajectory_exact_match_instance.ex @@ -0,0 +1,56 @@ +# 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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryExactMatchInstance do + @moduledoc """ + Spec for TrajectoryExactMatch instance. + + ## Attributes + + * `predictedTrajectory` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1Trajectory.t`, *default:* `nil`) - Required. Spec for predicted tool call trajectory. + * `referenceTrajectory` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1Trajectory.t`, *default:* `nil`) - Required. Spec for reference tool call trajectory. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :predictedTrajectory => + GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1Trajectory.t() | nil, + :referenceTrajectory => + GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1Trajectory.t() | nil + } + + field(:predictedTrajectory, as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1Trajectory) + field(:referenceTrajectory, as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1Trajectory) +end + +defimpl Poison.Decoder, + for: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryExactMatchInstance do + def decode(value, options) do + GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryExactMatchInstance.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryExactMatchInstance do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_trajectory_exact_match_metric_value.ex b/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_trajectory_exact_match_metric_value.ex new file mode 100644 index 0000000000..8f76dedc6d --- /dev/null +++ b/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_trajectory_exact_match_metric_value.ex @@ -0,0 +1,51 @@ +# 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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryExactMatchMetricValue do + @moduledoc """ + TrajectoryExactMatch metric value for an instance. + + ## Attributes + + * `score` (*type:* `number()`, *default:* `nil`) - Output only. TrajectoryExactMatch score. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :score => number() | nil + } + + field(:score) +end + +defimpl Poison.Decoder, + for: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryExactMatchMetricValue do + def decode(value, options) do + GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryExactMatchMetricValue.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryExactMatchMetricValue do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_trajectory_exact_match_results.ex b/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_trajectory_exact_match_results.ex new file mode 100644 index 0000000000..d31ffaff57 --- /dev/null +++ b/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_trajectory_exact_match_results.ex @@ -0,0 +1,58 @@ +# 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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryExactMatchResults do + @moduledoc """ + Results for TrajectoryExactMatch metric. + + ## Attributes + + * `trajectoryExactMatchMetricValues` (*type:* `list(GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryExactMatchMetricValue.t)`, *default:* `nil`) - Output only. TrajectoryExactMatch metric values. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :trajectoryExactMatchMetricValues => + list( + GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryExactMatchMetricValue.t() + ) + | nil + } + + field(:trajectoryExactMatchMetricValues, + as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryExactMatchMetricValue, + type: :list + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryExactMatchResults do + def decode(value, options) do + GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryExactMatchResults.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryExactMatchResults do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_trajectory_exact_match_spec.ex b/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_trajectory_exact_match_spec.ex new file mode 100644 index 0000000000..69e0055efd --- /dev/null +++ b/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_trajectory_exact_match_spec.ex @@ -0,0 +1,46 @@ +# 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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryExactMatchSpec do + @moduledoc """ + Spec for TrajectoryExactMatch metric - returns 1 if tool calls in the reference trajectory exactly match the predicted trajectory, else 0. + + ## Attributes + + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{} +end + +defimpl Poison.Decoder, + for: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryExactMatchSpec do + def decode(value, options) do + GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryExactMatchSpec.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryExactMatchSpec do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_trajectory_in_order_match_input.ex b/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_trajectory_in_order_match_input.ex new file mode 100644 index 0000000000..fa3583b4ea --- /dev/null +++ b/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_trajectory_in_order_match_input.ex @@ -0,0 +1,66 @@ +# 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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryInOrderMatchInput do + @moduledoc """ + Instances and metric spec for TrajectoryInOrderMatch metric. + + ## Attributes + + * `instances` (*type:* `list(GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryInOrderMatchInstance.t)`, *default:* `nil`) - Required. Repeated TrajectoryInOrderMatch instance. + * `metricSpec` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryInOrderMatchSpec.t`, *default:* `nil`) - Required. Spec for TrajectoryInOrderMatch metric. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :instances => + list( + GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryInOrderMatchInstance.t() + ) + | nil, + :metricSpec => + GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryInOrderMatchSpec.t() + | nil + } + + field(:instances, + as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryInOrderMatchInstance, + type: :list + ) + + field(:metricSpec, + as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryInOrderMatchSpec + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryInOrderMatchInput do + def decode(value, options) do + GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryInOrderMatchInput.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryInOrderMatchInput do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_trajectory_in_order_match_instance.ex b/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_trajectory_in_order_match_instance.ex new file mode 100644 index 0000000000..cc8a574994 --- /dev/null +++ b/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_trajectory_in_order_match_instance.ex @@ -0,0 +1,56 @@ +# 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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryInOrderMatchInstance do + @moduledoc """ + Spec for TrajectoryInOrderMatch instance. + + ## Attributes + + * `predictedTrajectory` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1Trajectory.t`, *default:* `nil`) - Required. Spec for predicted tool call trajectory. + * `referenceTrajectory` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1Trajectory.t`, *default:* `nil`) - Required. Spec for reference tool call trajectory. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :predictedTrajectory => + GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1Trajectory.t() | nil, + :referenceTrajectory => + GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1Trajectory.t() | nil + } + + field(:predictedTrajectory, as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1Trajectory) + field(:referenceTrajectory, as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1Trajectory) +end + +defimpl Poison.Decoder, + for: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryInOrderMatchInstance do + def decode(value, options) do + GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryInOrderMatchInstance.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryInOrderMatchInstance do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_trajectory_in_order_match_metric_value.ex b/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_trajectory_in_order_match_metric_value.ex new file mode 100644 index 0000000000..714856295e --- /dev/null +++ b/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_trajectory_in_order_match_metric_value.ex @@ -0,0 +1,51 @@ +# 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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryInOrderMatchMetricValue do + @moduledoc """ + TrajectoryInOrderMatch metric value for an instance. + + ## Attributes + + * `score` (*type:* `number()`, *default:* `nil`) - Output only. TrajectoryInOrderMatch score. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :score => number() | nil + } + + field(:score) +end + +defimpl Poison.Decoder, + for: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryInOrderMatchMetricValue do + def decode(value, options) do + GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryInOrderMatchMetricValue.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryInOrderMatchMetricValue do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_trajectory_in_order_match_results.ex b/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_trajectory_in_order_match_results.ex new file mode 100644 index 0000000000..572deec927 --- /dev/null +++ b/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_trajectory_in_order_match_results.ex @@ -0,0 +1,58 @@ +# 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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryInOrderMatchResults do + @moduledoc """ + Results for TrajectoryInOrderMatch metric. + + ## Attributes + + * `trajectoryInOrderMatchMetricValues` (*type:* `list(GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryInOrderMatchMetricValue.t)`, *default:* `nil`) - Output only. TrajectoryInOrderMatch metric values. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :trajectoryInOrderMatchMetricValues => + list( + GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryInOrderMatchMetricValue.t() + ) + | nil + } + + field(:trajectoryInOrderMatchMetricValues, + as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryInOrderMatchMetricValue, + type: :list + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryInOrderMatchResults do + def decode(value, options) do + GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryInOrderMatchResults.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryInOrderMatchResults do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_trajectory_in_order_match_spec.ex b/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_trajectory_in_order_match_spec.ex new file mode 100644 index 0000000000..1cfc2a9520 --- /dev/null +++ b/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_trajectory_in_order_match_spec.ex @@ -0,0 +1,46 @@ +# 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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryInOrderMatchSpec do + @moduledoc """ + Spec for TrajectoryInOrderMatch metric - returns 1 if tool calls in the reference trajectory appear in the predicted trajectory in the same order, else 0. + + ## Attributes + + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{} +end + +defimpl Poison.Decoder, + for: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryInOrderMatchSpec do + def decode(value, options) do + GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryInOrderMatchSpec.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryInOrderMatchSpec do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_trajectory_precision_input.ex b/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_trajectory_precision_input.ex new file mode 100644 index 0000000000..44e38a8133 --- /dev/null +++ b/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_trajectory_precision_input.ex @@ -0,0 +1,65 @@ +# 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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryPrecisionInput do + @moduledoc """ + Instances and metric spec for TrajectoryPrecision metric. + + ## Attributes + + * `instances` (*type:* `list(GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryPrecisionInstance.t)`, *default:* `nil`) - Required. Repeated TrajectoryPrecision instance. + * `metricSpec` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryPrecisionSpec.t`, *default:* `nil`) - Required. Spec for TrajectoryPrecision metric. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :instances => + list( + GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryPrecisionInstance.t() + ) + | nil, + :metricSpec => + GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryPrecisionSpec.t() | nil + } + + field(:instances, + as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryPrecisionInstance, + type: :list + ) + + field(:metricSpec, + as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryPrecisionSpec + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryPrecisionInput do + def decode(value, options) do + GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryPrecisionInput.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryPrecisionInput do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_trajectory_precision_instance.ex b/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_trajectory_precision_instance.ex new file mode 100644 index 0000000000..f13fda0eef --- /dev/null +++ b/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_trajectory_precision_instance.ex @@ -0,0 +1,56 @@ +# 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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryPrecisionInstance do + @moduledoc """ + Spec for TrajectoryPrecision instance. + + ## Attributes + + * `predictedTrajectory` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1Trajectory.t`, *default:* `nil`) - Required. Spec for predicted tool call trajectory. + * `referenceTrajectory` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1Trajectory.t`, *default:* `nil`) - Required. Spec for reference tool call trajectory. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :predictedTrajectory => + GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1Trajectory.t() | nil, + :referenceTrajectory => + GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1Trajectory.t() | nil + } + + field(:predictedTrajectory, as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1Trajectory) + field(:referenceTrajectory, as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1Trajectory) +end + +defimpl Poison.Decoder, + for: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryPrecisionInstance do + def decode(value, options) do + GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryPrecisionInstance.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryPrecisionInstance do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_trajectory_precision_metric_value.ex b/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_trajectory_precision_metric_value.ex new file mode 100644 index 0000000000..fe3726c8c7 --- /dev/null +++ b/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_trajectory_precision_metric_value.ex @@ -0,0 +1,51 @@ +# 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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryPrecisionMetricValue do + @moduledoc """ + TrajectoryPrecision metric value for an instance. + + ## Attributes + + * `score` (*type:* `number()`, *default:* `nil`) - Output only. TrajectoryPrecision score. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :score => number() | nil + } + + field(:score) +end + +defimpl Poison.Decoder, + for: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryPrecisionMetricValue do + def decode(value, options) do + GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryPrecisionMetricValue.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryPrecisionMetricValue do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_trajectory_precision_results.ex b/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_trajectory_precision_results.ex new file mode 100644 index 0000000000..3f60b6c173 --- /dev/null +++ b/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_trajectory_precision_results.ex @@ -0,0 +1,58 @@ +# 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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryPrecisionResults do + @moduledoc """ + Results for TrajectoryPrecision metric. + + ## Attributes + + * `trajectoryPrecisionMetricValues` (*type:* `list(GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryPrecisionMetricValue.t)`, *default:* `nil`) - Output only. TrajectoryPrecision metric values. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :trajectoryPrecisionMetricValues => + list( + GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryPrecisionMetricValue.t() + ) + | nil + } + + field(:trajectoryPrecisionMetricValues, + as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryPrecisionMetricValue, + type: :list + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryPrecisionResults do + def decode(value, options) do + GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryPrecisionResults.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryPrecisionResults do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_trajectory_precision_spec.ex b/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_trajectory_precision_spec.ex new file mode 100644 index 0000000000..10ae39d15b --- /dev/null +++ b/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_trajectory_precision_spec.ex @@ -0,0 +1,46 @@ +# 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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryPrecisionSpec do + @moduledoc """ + Spec for TrajectoryPrecision metric - returns a float score based on average precision of individual tool calls. + + ## Attributes + + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{} +end + +defimpl Poison.Decoder, + for: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryPrecisionSpec do + def decode(value, options) do + GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryPrecisionSpec.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryPrecisionSpec do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_trajectory_recall_input.ex b/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_trajectory_recall_input.ex new file mode 100644 index 0000000000..7be8090365 --- /dev/null +++ b/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_trajectory_recall_input.ex @@ -0,0 +1,63 @@ +# 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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryRecallInput do + @moduledoc """ + Instances and metric spec for TrajectoryRecall metric. + + ## Attributes + + * `instances` (*type:* `list(GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryRecallInstance.t)`, *default:* `nil`) - Required. Repeated TrajectoryRecall instance. + * `metricSpec` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryRecallSpec.t`, *default:* `nil`) - Required. Spec for TrajectoryRecall metric. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :instances => + list( + GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryRecallInstance.t() + ) + | nil, + :metricSpec => + GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryRecallSpec.t() | nil + } + + field(:instances, + as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryRecallInstance, + type: :list + ) + + field(:metricSpec, as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryRecallSpec) +end + +defimpl Poison.Decoder, + for: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryRecallInput do + def decode(value, options) do + GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryRecallInput.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryRecallInput do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_trajectory_recall_instance.ex b/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_trajectory_recall_instance.ex new file mode 100644 index 0000000000..52b7f96b4c --- /dev/null +++ b/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_trajectory_recall_instance.ex @@ -0,0 +1,56 @@ +# 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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryRecallInstance do + @moduledoc """ + Spec for TrajectoryRecall instance. + + ## Attributes + + * `predictedTrajectory` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1Trajectory.t`, *default:* `nil`) - Required. Spec for predicted tool call trajectory. + * `referenceTrajectory` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1Trajectory.t`, *default:* `nil`) - Required. Spec for reference tool call trajectory. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :predictedTrajectory => + GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1Trajectory.t() | nil, + :referenceTrajectory => + GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1Trajectory.t() | nil + } + + field(:predictedTrajectory, as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1Trajectory) + field(:referenceTrajectory, as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1Trajectory) +end + +defimpl Poison.Decoder, + for: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryRecallInstance do + def decode(value, options) do + GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryRecallInstance.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryRecallInstance do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_trajectory_recall_metric_value.ex b/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_trajectory_recall_metric_value.ex new file mode 100644 index 0000000000..23965560bc --- /dev/null +++ b/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_trajectory_recall_metric_value.ex @@ -0,0 +1,51 @@ +# 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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryRecallMetricValue do + @moduledoc """ + TrajectoryRecall metric value for an instance. + + ## Attributes + + * `score` (*type:* `number()`, *default:* `nil`) - Output only. TrajectoryRecall score. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :score => number() | nil + } + + field(:score) +end + +defimpl Poison.Decoder, + for: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryRecallMetricValue do + def decode(value, options) do + GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryRecallMetricValue.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryRecallMetricValue do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_trajectory_recall_results.ex b/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_trajectory_recall_results.ex new file mode 100644 index 0000000000..36318c1a07 --- /dev/null +++ b/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_trajectory_recall_results.ex @@ -0,0 +1,58 @@ +# 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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryRecallResults do + @moduledoc """ + Results for TrajectoryRecall metric. + + ## Attributes + + * `trajectoryRecallMetricValues` (*type:* `list(GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryRecallMetricValue.t)`, *default:* `nil`) - Output only. TrajectoryRecall metric values. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :trajectoryRecallMetricValues => + list( + GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryRecallMetricValue.t() + ) + | nil + } + + field(:trajectoryRecallMetricValues, + as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryRecallMetricValue, + type: :list + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryRecallResults do + def decode(value, options) do + GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryRecallResults.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryRecallResults do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_trajectory_recall_spec.ex b/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_trajectory_recall_spec.ex new file mode 100644 index 0000000000..15e4b48021 --- /dev/null +++ b/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_trajectory_recall_spec.ex @@ -0,0 +1,46 @@ +# 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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryRecallSpec do + @moduledoc """ + Spec for TrajectoryRecall metric - returns a float score based on average recall of individual tool calls. + + ## Attributes + + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{} +end + +defimpl Poison.Decoder, + for: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryRecallSpec do + def decode(value, options) do + GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryRecallSpec.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryRecallSpec do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_trajectory_single_tool_use_input.ex b/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_trajectory_single_tool_use_input.ex new file mode 100644 index 0000000000..0464de4bbd --- /dev/null +++ b/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_trajectory_single_tool_use_input.ex @@ -0,0 +1,66 @@ +# 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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectorySingleToolUseInput do + @moduledoc """ + Instances and metric spec for TrajectorySingleToolUse metric. + + ## Attributes + + * `instances` (*type:* `list(GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectorySingleToolUseInstance.t)`, *default:* `nil`) - Required. Repeated TrajectorySingleToolUse instance. + * `metricSpec` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectorySingleToolUseSpec.t`, *default:* `nil`) - Required. Spec for TrajectorySingleToolUse metric. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :instances => + list( + GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectorySingleToolUseInstance.t() + ) + | nil, + :metricSpec => + GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectorySingleToolUseSpec.t() + | nil + } + + field(:instances, + as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectorySingleToolUseInstance, + type: :list + ) + + field(:metricSpec, + as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectorySingleToolUseSpec + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectorySingleToolUseInput do + def decode(value, options) do + GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectorySingleToolUseInput.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectorySingleToolUseInput do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_trajectory_single_tool_use_instance.ex b/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_trajectory_single_tool_use_instance.ex new file mode 100644 index 0000000000..eadcb607ca --- /dev/null +++ b/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_trajectory_single_tool_use_instance.ex @@ -0,0 +1,52 @@ +# 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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectorySingleToolUseInstance do + @moduledoc """ + Spec for TrajectorySingleToolUse instance. + + ## Attributes + + * `predictedTrajectory` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1Trajectory.t`, *default:* `nil`) - Required. Spec for predicted tool call trajectory. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :predictedTrajectory => + GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1Trajectory.t() | nil + } + + field(:predictedTrajectory, as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1Trajectory) +end + +defimpl Poison.Decoder, + for: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectorySingleToolUseInstance do + def decode(value, options) do + GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectorySingleToolUseInstance.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectorySingleToolUseInstance do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_trajectory_single_tool_use_metric_value.ex b/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_trajectory_single_tool_use_metric_value.ex new file mode 100644 index 0000000000..77af3fe805 --- /dev/null +++ b/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_trajectory_single_tool_use_metric_value.ex @@ -0,0 +1,51 @@ +# 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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectorySingleToolUseMetricValue do + @moduledoc """ + TrajectorySingleToolUse metric value for an instance. + + ## Attributes + + * `score` (*type:* `number()`, *default:* `nil`) - Output only. TrajectorySingleToolUse score. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :score => number() | nil + } + + field(:score) +end + +defimpl Poison.Decoder, + for: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectorySingleToolUseMetricValue do + def decode(value, options) do + GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectorySingleToolUseMetricValue.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectorySingleToolUseMetricValue do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_trajectory_single_tool_use_results.ex b/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_trajectory_single_tool_use_results.ex new file mode 100644 index 0000000000..ac881d7b1b --- /dev/null +++ b/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_trajectory_single_tool_use_results.ex @@ -0,0 +1,58 @@ +# 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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectorySingleToolUseResults do + @moduledoc """ + Results for TrajectorySingleToolUse metric. + + ## Attributes + + * `trajectorySingleToolUseMetricValues` (*type:* `list(GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectorySingleToolUseMetricValue.t)`, *default:* `nil`) - Output only. TrajectorySingleToolUse metric values. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :trajectorySingleToolUseMetricValues => + list( + GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectorySingleToolUseMetricValue.t() + ) + | nil + } + + field(:trajectorySingleToolUseMetricValues, + as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectorySingleToolUseMetricValue, + type: :list + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectorySingleToolUseResults do + def decode(value, options) do + GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectorySingleToolUseResults.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectorySingleToolUseResults do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_trajectory_single_tool_use_spec.ex b/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_trajectory_single_tool_use_spec.ex new file mode 100644 index 0000000000..3432c73dc1 --- /dev/null +++ b/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_trajectory_single_tool_use_spec.ex @@ -0,0 +1,51 @@ +# 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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectorySingleToolUseSpec do + @moduledoc """ + Spec for TrajectorySingleToolUse metric - returns 1 if tool is present in the predicted trajectory, else 0. + + ## Attributes + + * `toolName` (*type:* `String.t`, *default:* `nil`) - Required. Spec for tool name to be checked for in the predicted trajectory. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :toolName => String.t() | nil + } + + field(:toolName) +end + +defimpl Poison.Decoder, + for: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectorySingleToolUseSpec do + def decode(value, options) do + GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectorySingleToolUseSpec.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectorySingleToolUseSpec do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_voice_config.ex b/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_voice_config.ex new file mode 100644 index 0000000000..93c0f1fa59 --- /dev/null +++ b/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_voice_config.ex @@ -0,0 +1,49 @@ +# 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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1VoiceConfig do + @moduledoc """ + The configuration for the voice to use. + + ## Attributes + + * `prebuiltVoiceConfig` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1PrebuiltVoiceConfig.t`, *default:* `nil`) - The configuration for the prebuilt voice to use. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :prebuiltVoiceConfig => + GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1PrebuiltVoiceConfig.t() | nil + } + + field(:prebuiltVoiceConfig, + as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1PrebuiltVoiceConfig + ) +end + +defimpl Poison.Decoder, for: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1VoiceConfig do + def decode(value, options) do + GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1VoiceConfig.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1VoiceConfig do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/ai_platform/mix.exs b/clients/ai_platform/mix.exs index 858f5ad494..0e466fd814 100644 --- a/clients/ai_platform/mix.exs +++ b/clients/ai_platform/mix.exs @@ -18,7 +18,7 @@ defmodule GoogleApi.AIPlatform.Mixfile do use Mix.Project - @version "0.24.0" + @version "0.25.0" def project() do [