Skip to content

Commit a5403e3

Browse files
feat: Automated regeneration of DiscoveryEngine client (googleapis#13121)
Auto-created at 2025-03-08 13:13:45 +0000 using the toys pull request generator.
1 parent 7037ef4 commit a5403e3

File tree

55 files changed

+25
-2766
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+25
-2766
lines changed

clients/discovery_engine/lib/google_api/discovery_engine/v1/api/projects.ex

Lines changed: 0 additions & 79 deletions
Original file line numberDiff line numberDiff line change
@@ -89,85 +89,6 @@ defmodule GoogleApi.DiscoveryEngine.V1.Api.Projects do
8989
)
9090
end
9191

92-
@doc """
93-
Generates grounded content.
94-
95-
## Parameters
96-
97-
* `connection` (*type:* `GoogleApi.DiscoveryEngine.V1.Connection.t`) - Connection to server
98-
* `location` (*type:* `String.t`) - Required. Location resource. Format: `projects/{project}/locations/{location}`.
99-
* `optional_params` (*type:* `keyword()`) - Optional parameters
100-
* `:"$.xgafv"` (*type:* `String.t`) - V1 error format.
101-
* `:access_token` (*type:* `String.t`) - OAuth access token.
102-
* `:alt` (*type:* `String.t`) - Data format for response.
103-
* `:callback` (*type:* `String.t`) - JSONP
104-
* `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response.
105-
* `: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.
106-
* `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user.
107-
* `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks.
108-
* `: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.
109-
* `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart").
110-
* `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart").
111-
* `:body` (*type:* `GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1GenerateGroundedContentRequest.t`) -
112-
* `opts` (*type:* `keyword()`) - Call options
113-
114-
## Returns
115-
116-
* `{:ok, %GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1GenerateGroundedContentResponse{}}` on success
117-
* `{:error, info}` on failure
118-
"""
119-
@spec discoveryengine_projects_locations_generate_grounded_content(
120-
Tesla.Env.client(),
121-
String.t(),
122-
keyword(),
123-
keyword()
124-
) ::
125-
{:ok,
126-
GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1GenerateGroundedContentResponse.t()}
127-
| {:ok, Tesla.Env.t()}
128-
| {:ok, list()}
129-
| {:error, any()}
130-
def discoveryengine_projects_locations_generate_grounded_content(
131-
connection,
132-
location,
133-
optional_params \\ [],
134-
opts \\ []
135-
) do
136-
optional_params_config = %{
137-
:"$.xgafv" => :query,
138-
:access_token => :query,
139-
:alt => :query,
140-
:callback => :query,
141-
:fields => :query,
142-
:key => :query,
143-
:oauth_token => :query,
144-
:prettyPrint => :query,
145-
:quotaUser => :query,
146-
:uploadType => :query,
147-
:upload_protocol => :query,
148-
:body => :body
149-
}
150-
151-
request =
152-
Request.new()
153-
|> Request.method(:post)
154-
|> Request.url("/v1/{+location}:generateGroundedContent", %{
155-
"location" => URI.encode(location, &URI.char_unreserved?/1)
156-
})
157-
|> Request.add_optional_params(optional_params_config, optional_params)
158-
|> Request.library_version(@library_version)
159-
160-
connection
161-
|> Connection.execute(request)
162-
|> Response.decode(
163-
opts ++
164-
[
165-
struct:
166-
%GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1GenerateGroundedContentResponse{}
167-
]
168-
)
169-
end
170-
17192
@doc """
17293
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.
17394

clients/discovery_engine/lib/google_api/discovery_engine/v1/metadata.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ defmodule GoogleApi.DiscoveryEngine.V1 do
2020
API client metadata for GoogleApi.DiscoveryEngine.V1.
2121
"""
2222

23-
@discovery_revision "20250228"
23+
@discovery_revision "20250306"
2424

2525
def discovery_revision(), do: @discovery_revision
2626
end

clients/discovery_engine/lib/google_api/discovery_engine/v1/model/google_cloud_discoveryengine_v1_generate_grounded_content_request.ex

Lines changed: 0 additions & 90 deletions
This file was deleted.

clients/discovery_engine/lib/google_api/discovery_engine/v1/model/google_cloud_discoveryengine_v1_generate_grounded_content_request_dynamic_retrieval_configuration.ex

Lines changed: 0 additions & 58 deletions
This file was deleted.

clients/discovery_engine/lib/google_api/discovery_engine/v1/model/google_cloud_discoveryengine_v1_generate_grounded_content_request_dynamic_retrieval_configuration_dynamic_retrieval_predictor.ex

Lines changed: 0 additions & 56 deletions
This file was deleted.

clients/discovery_engine/lib/google_api/discovery_engine/v1/model/google_cloud_discoveryengine_v1_generate_grounded_content_request_generation_spec.ex

Lines changed: 0 additions & 77 deletions
This file was deleted.

0 commit comments

Comments
 (0)