Skip to content

Commit 7de28c7

Browse files
feat: Automated regeneration of Apigee client (googleapis#12903)
Auto-created at 2025-01-31 13:13:36 +0000 using the toys pull request generator.
1 parent 74715b9 commit 7de28c7

6 files changed

+135
-4
lines changed

clients/apigee/lib/google_api/apigee/v1/api/organizations.ex

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2890,6 +2890,83 @@ defmodule GoogleApi.Apigee.V1.Api.Organizations do
28902890
|> Response.decode(opts ++ [struct: %GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1ApiProxy{}])
28912891
end
28922892

2893+
@doc """
2894+
Lists debug sessions that are currently active in the given API Proxy.
2895+
2896+
## Parameters
2897+
2898+
* `connection` (*type:* `GoogleApi.Apigee.V1.Connection.t`) - Connection to server
2899+
* `parent` (*type:* `String.t`) - Required. The name of the API Proxy for which to list debug sessions. Must be of the form: `organizations/{organization}/apis/{api}`.
2900+
* `optional_params` (*type:* `keyword()`) - Optional parameters
2901+
* `:"$.xgafv"` (*type:* `String.t`) - V1 error format.
2902+
* `:access_token` (*type:* `String.t`) - OAuth access token.
2903+
* `:alt` (*type:* `String.t`) - Data format for response.
2904+
* `:callback` (*type:* `String.t`) - JSONP
2905+
* `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response.
2906+
* `: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.
2907+
* `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user.
2908+
* `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks.
2909+
* `: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.
2910+
* `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart").
2911+
* `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart").
2912+
* `:pageSize` (*type:* `integer()`) - Optional. Maximum number of debug sessions to return. The page size defaults to 25.
2913+
* `:pageToken` (*type:* `String.t`) - Optional. Page token, returned from a previous ListApiDebugSessions call, that you can use to retrieve the next page.
2914+
* `opts` (*type:* `keyword()`) - Call options
2915+
2916+
## Returns
2917+
2918+
* `{:ok, %GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1ListApiDebugSessionsResponse{}}` on success
2919+
* `{:error, info}` on failure
2920+
"""
2921+
@spec apigee_organizations_apis_debugsessions_list(
2922+
Tesla.Env.client(),
2923+
String.t(),
2924+
keyword(),
2925+
keyword()
2926+
) ::
2927+
{:ok, GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1ListApiDebugSessionsResponse.t()}
2928+
| {:ok, Tesla.Env.t()}
2929+
| {:ok, list()}
2930+
| {:error, any()}
2931+
def apigee_organizations_apis_debugsessions_list(
2932+
connection,
2933+
parent,
2934+
optional_params \\ [],
2935+
opts \\ []
2936+
) do
2937+
optional_params_config = %{
2938+
:"$.xgafv" => :query,
2939+
:access_token => :query,
2940+
:alt => :query,
2941+
:callback => :query,
2942+
:fields => :query,
2943+
:key => :query,
2944+
:oauth_token => :query,
2945+
:prettyPrint => :query,
2946+
:quotaUser => :query,
2947+
:uploadType => :query,
2948+
:upload_protocol => :query,
2949+
:pageSize => :query,
2950+
:pageToken => :query
2951+
}
2952+
2953+
request =
2954+
Request.new()
2955+
|> Request.method(:get)
2956+
|> Request.url("/v1/{+parent}/debugsessions", %{
2957+
"parent" => URI.encode(parent, &URI.char_unreserved?/1)
2958+
})
2959+
|> Request.add_optional_params(optional_params_config, optional_params)
2960+
|> Request.library_version(@library_version)
2961+
2962+
connection
2963+
|> Connection.execute(request)
2964+
|> Response.decode(
2965+
opts ++
2966+
[struct: %GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1ListApiDebugSessionsResponse{}]
2967+
)
2968+
end
2969+
28932970
@doc """
28942971
Lists all deployments of an API proxy.
28952972

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

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

23-
@discovery_revision "20241213"
23+
@discovery_revision "20250129"
2424

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

clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_batch_compute_security_assessment_results_request_include_all.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
defmodule GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1BatchComputeSecurityAssessmentResultsRequestIncludeAll do
1919
@moduledoc """
20-
Message for include_all option.
20+
Message for include_all_resources option.
2121
2222
## Attributes
2323

clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_batch_compute_security_assessment_results_request_resource_array.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
defmodule GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1BatchComputeSecurityAssessmentResultsRequestResourceArray do
1919
@moduledoc """
20-
An array of resource messages.
20+
Message for the array of resources. For Apigee, the proxies are resources.
2121
2222
## Attributes
2323
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# Copyright 2019 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
# NOTE: This file is auto generated by the elixir code generator program.
16+
# Do not edit this file manually.
17+
18+
defmodule GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1ListApiDebugSessionsResponse do
19+
@moduledoc """
20+
Response for ListApiDebugSessions.
21+
22+
## Attributes
23+
24+
* `nextPageToken` (*type:* `String.t`, *default:* `nil`) - Page token that you can include in a ListApiDebugSessionsRequest to retrieve the next page. If omitted, no subsequent pages exist.
25+
* `sessions` (*type:* `list(GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1Session.t)`, *default:* `nil`) - Session info that includes debug session ID and the first transaction creation timestamp.
26+
"""
27+
28+
use GoogleApi.Gax.ModelBase
29+
30+
@type t :: %__MODULE__{
31+
:nextPageToken => String.t() | nil,
32+
:sessions => list(GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1Session.t()) | nil
33+
}
34+
35+
field(:nextPageToken)
36+
field(:sessions, as: GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1Session, type: :list)
37+
end
38+
39+
defimpl Poison.Decoder,
40+
for: GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1ListApiDebugSessionsResponse do
41+
def decode(value, options) do
42+
GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1ListApiDebugSessionsResponse.decode(
43+
value,
44+
options
45+
)
46+
end
47+
end
48+
49+
defimpl Poison.Encoder,
50+
for: GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1ListApiDebugSessionsResponse do
51+
def encode(value, options) do
52+
GoogleApi.Gax.ModelBase.encode(value, options)
53+
end
54+
end

clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_security_assessment_result_scoring_result.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ defmodule GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1SecurityAssessmentResultS
2525
* `dataUpdateTime` (*type:* `DateTime.t`, *default:* `nil`) - The time when resource data was last fetched for this resource. This time may be different than when the resource was actually updated due to lag in data collection.
2626
* `failedAssessmentPerWeight` (*type:* `map()`, *default:* `nil`) - The number of failed assessments grouped by its weight. Keys are one of the following: "MAJOR", "MODERATE", "MINOR".
2727
* `score` (*type:* `integer()`, *default:* `nil`) - The security score of the assessment.
28-
* `severity` (*type:* `String.t`, *default:* `nil`) - The severity of the assessment.
28+
* `severity` (*type:* `String.t`, *default:* `nil`) -
2929
"""
3030

3131
use GoogleApi.Gax.ModelBase

0 commit comments

Comments
 (0)