Skip to content

Commit 3551d3c

Browse files
feat: Automated regeneration of Apigee client (googleapis#12246)
Auto-created at 2024-10-01 13:12:56 +0000 using the toys pull request generator.
1 parent d909f01 commit 3551d3c

File tree

7 files changed

+555
-3
lines changed

7 files changed

+555
-3
lines changed

clients/apigee/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Install this package from [Hex](https://hex.pm) by adding
1111

1212
```elixir
1313
def deps do
14-
[{:google_api_apigee, "~> 0.50"}]
14+
[{:google_api_apigee, "~> 0.51"}]
1515
end
1616
```
1717

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

Lines changed: 371 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21463,6 +21463,377 @@ defmodule GoogleApi.Apigee.V1.Api.Organizations do
2146321463
|> Response.decode(opts ++ [struct: %GoogleApi.Apigee.V1.Model.GoogleProtobufEmpty{}])
2146421464
end
2146521465

21466+
@doc """
21467+
Create a security profile v2.
21468+
21469+
## Parameters
21470+
21471+
* `connection` (*type:* `GoogleApi.Apigee.V1.Connection.t`) - Connection to server
21472+
* `parent` (*type:* `String.t`) - Required. The parent resource name.
21473+
* `optional_params` (*type:* `keyword()`) - Optional parameters
21474+
* `:"$.xgafv"` (*type:* `String.t`) - V1 error format.
21475+
* `:access_token` (*type:* `String.t`) - OAuth access token.
21476+
* `:alt` (*type:* `String.t`) - Data format for response.
21477+
* `:callback` (*type:* `String.t`) - JSONP
21478+
* `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response.
21479+
* `: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.
21480+
* `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user.
21481+
* `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks.
21482+
* `: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.
21483+
* `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart").
21484+
* `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart").
21485+
* `:securityProfileV2Id` (*type:* `String.t`) - Required. The security profile id.
21486+
* `:body` (*type:* `GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1SecurityProfileV2.t`) -
21487+
* `opts` (*type:* `keyword()`) - Call options
21488+
21489+
## Returns
21490+
21491+
* `{:ok, %GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1SecurityProfileV2{}}` on success
21492+
* `{:error, info}` on failure
21493+
"""
21494+
@spec apigee_organizations_security_profiles_v2_create(
21495+
Tesla.Env.client(),
21496+
String.t(),
21497+
keyword(),
21498+
keyword()
21499+
) ::
21500+
{:ok, GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1SecurityProfileV2.t()}
21501+
| {:ok, Tesla.Env.t()}
21502+
| {:ok, list()}
21503+
| {:error, any()}
21504+
def apigee_organizations_security_profiles_v2_create(
21505+
connection,
21506+
parent,
21507+
optional_params \\ [],
21508+
opts \\ []
21509+
) do
21510+
optional_params_config = %{
21511+
:"$.xgafv" => :query,
21512+
:access_token => :query,
21513+
:alt => :query,
21514+
:callback => :query,
21515+
:fields => :query,
21516+
:key => :query,
21517+
:oauth_token => :query,
21518+
:prettyPrint => :query,
21519+
:quotaUser => :query,
21520+
:uploadType => :query,
21521+
:upload_protocol => :query,
21522+
:securityProfileV2Id => :query,
21523+
:body => :body
21524+
}
21525+
21526+
request =
21527+
Request.new()
21528+
|> Request.method(:post)
21529+
|> Request.url("/v1/{+parent}/securityProfilesV2", %{
21530+
"parent" => URI.encode(parent, &URI.char_unreserved?/1)
21531+
})
21532+
|> Request.add_optional_params(optional_params_config, optional_params)
21533+
|> Request.library_version(@library_version)
21534+
21535+
connection
21536+
|> Connection.execute(request)
21537+
|> Response.decode(
21538+
opts ++ [struct: %GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1SecurityProfileV2{}]
21539+
)
21540+
end
21541+
21542+
@doc """
21543+
Delete a security profile v2.
21544+
21545+
## Parameters
21546+
21547+
* `connection` (*type:* `GoogleApi.Apigee.V1.Connection.t`) - Connection to server
21548+
* `name` (*type:* `String.t`) - Required. The name of the security profile v2 to delete.
21549+
* `optional_params` (*type:* `keyword()`) - Optional parameters
21550+
* `:"$.xgafv"` (*type:* `String.t`) - V1 error format.
21551+
* `:access_token` (*type:* `String.t`) - OAuth access token.
21552+
* `:alt` (*type:* `String.t`) - Data format for response.
21553+
* `:callback` (*type:* `String.t`) - JSONP
21554+
* `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response.
21555+
* `: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.
21556+
* `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user.
21557+
* `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks.
21558+
* `: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.
21559+
* `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart").
21560+
* `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart").
21561+
* `opts` (*type:* `keyword()`) - Call options
21562+
21563+
## Returns
21564+
21565+
* `{:ok, %GoogleApi.Apigee.V1.Model.GoogleProtobufEmpty{}}` on success
21566+
* `{:error, info}` on failure
21567+
"""
21568+
@spec apigee_organizations_security_profiles_v2_delete(
21569+
Tesla.Env.client(),
21570+
String.t(),
21571+
keyword(),
21572+
keyword()
21573+
) ::
21574+
{:ok, GoogleApi.Apigee.V1.Model.GoogleProtobufEmpty.t()}
21575+
| {:ok, Tesla.Env.t()}
21576+
| {:ok, list()}
21577+
| {:error, any()}
21578+
def apigee_organizations_security_profiles_v2_delete(
21579+
connection,
21580+
name,
21581+
optional_params \\ [],
21582+
opts \\ []
21583+
) do
21584+
optional_params_config = %{
21585+
:"$.xgafv" => :query,
21586+
:access_token => :query,
21587+
:alt => :query,
21588+
:callback => :query,
21589+
:fields => :query,
21590+
:key => :query,
21591+
:oauth_token => :query,
21592+
:prettyPrint => :query,
21593+
:quotaUser => :query,
21594+
:uploadType => :query,
21595+
:upload_protocol => :query
21596+
}
21597+
21598+
request =
21599+
Request.new()
21600+
|> Request.method(:delete)
21601+
|> Request.url("/v1/{+name}", %{
21602+
"name" => URI.encode(name, &URI.char_unreserved?/1)
21603+
})
21604+
|> Request.add_optional_params(optional_params_config, optional_params)
21605+
|> Request.library_version(@library_version)
21606+
21607+
connection
21608+
|> Connection.execute(request)
21609+
|> Response.decode(opts ++ [struct: %GoogleApi.Apigee.V1.Model.GoogleProtobufEmpty{}])
21610+
end
21611+
21612+
@doc """
21613+
Get a security profile v2.
21614+
21615+
## Parameters
21616+
21617+
* `connection` (*type:* `GoogleApi.Apigee.V1.Connection.t`) - Connection to server
21618+
* `name` (*type:* `String.t`) - Required. The security profile id.
21619+
* `optional_params` (*type:* `keyword()`) - Optional parameters
21620+
* `:"$.xgafv"` (*type:* `String.t`) - V1 error format.
21621+
* `:access_token` (*type:* `String.t`) - OAuth access token.
21622+
* `:alt` (*type:* `String.t`) - Data format for response.
21623+
* `:callback` (*type:* `String.t`) - JSONP
21624+
* `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response.
21625+
* `: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.
21626+
* `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user.
21627+
* `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks.
21628+
* `: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.
21629+
* `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart").
21630+
* `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart").
21631+
* `opts` (*type:* `keyword()`) - Call options
21632+
21633+
## Returns
21634+
21635+
* `{:ok, %GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1SecurityProfileV2{}}` on success
21636+
* `{:error, info}` on failure
21637+
"""
21638+
@spec apigee_organizations_security_profiles_v2_get(
21639+
Tesla.Env.client(),
21640+
String.t(),
21641+
keyword(),
21642+
keyword()
21643+
) ::
21644+
{:ok, GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1SecurityProfileV2.t()}
21645+
| {:ok, Tesla.Env.t()}
21646+
| {:ok, list()}
21647+
| {:error, any()}
21648+
def apigee_organizations_security_profiles_v2_get(
21649+
connection,
21650+
name,
21651+
optional_params \\ [],
21652+
opts \\ []
21653+
) do
21654+
optional_params_config = %{
21655+
:"$.xgafv" => :query,
21656+
:access_token => :query,
21657+
:alt => :query,
21658+
:callback => :query,
21659+
:fields => :query,
21660+
:key => :query,
21661+
:oauth_token => :query,
21662+
:prettyPrint => :query,
21663+
:quotaUser => :query,
21664+
:uploadType => :query,
21665+
:upload_protocol => :query
21666+
}
21667+
21668+
request =
21669+
Request.new()
21670+
|> Request.method(:get)
21671+
|> Request.url("/v1/{+name}", %{
21672+
"name" => URI.encode(name, &URI.char_unreserved?/1)
21673+
})
21674+
|> Request.add_optional_params(optional_params_config, optional_params)
21675+
|> Request.library_version(@library_version)
21676+
21677+
connection
21678+
|> Connection.execute(request)
21679+
|> Response.decode(
21680+
opts ++ [struct: %GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1SecurityProfileV2{}]
21681+
)
21682+
end
21683+
21684+
@doc """
21685+
List security profiles v2.
21686+
21687+
## Parameters
21688+
21689+
* `connection` (*type:* `GoogleApi.Apigee.V1.Connection.t`) - Connection to server
21690+
* `parent` (*type:* `String.t`) - Required. For a specific organization, list of all the security profiles. Format: `organizations/{org}`
21691+
* `optional_params` (*type:* `keyword()`) - Optional parameters
21692+
* `:"$.xgafv"` (*type:* `String.t`) - V1 error format.
21693+
* `:access_token` (*type:* `String.t`) - OAuth access token.
21694+
* `:alt` (*type:* `String.t`) - Data format for response.
21695+
* `:callback` (*type:* `String.t`) - JSONP
21696+
* `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response.
21697+
* `: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.
21698+
* `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user.
21699+
* `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks.
21700+
* `: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.
21701+
* `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart").
21702+
* `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart").
21703+
* `:pageSize` (*type:* `integer()`) - Optional. The maximum number of profiles to return
21704+
* `:pageToken` (*type:* `String.t`) - Optional. A page token, received from a previous `ListSecurityProfilesV2` call. Provide this to retrieve the subsequent page.
21705+
* `opts` (*type:* `keyword()`) - Call options
21706+
21707+
## Returns
21708+
21709+
* `{:ok, %GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1ListSecurityProfilesV2Response{}}` on success
21710+
* `{:error, info}` on failure
21711+
"""
21712+
@spec apigee_organizations_security_profiles_v2_list(
21713+
Tesla.Env.client(),
21714+
String.t(),
21715+
keyword(),
21716+
keyword()
21717+
) ::
21718+
{:ok, GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1ListSecurityProfilesV2Response.t()}
21719+
| {:ok, Tesla.Env.t()}
21720+
| {:ok, list()}
21721+
| {:error, any()}
21722+
def apigee_organizations_security_profiles_v2_list(
21723+
connection,
21724+
parent,
21725+
optional_params \\ [],
21726+
opts \\ []
21727+
) do
21728+
optional_params_config = %{
21729+
:"$.xgafv" => :query,
21730+
:access_token => :query,
21731+
:alt => :query,
21732+
:callback => :query,
21733+
:fields => :query,
21734+
:key => :query,
21735+
:oauth_token => :query,
21736+
:prettyPrint => :query,
21737+
:quotaUser => :query,
21738+
:uploadType => :query,
21739+
:upload_protocol => :query,
21740+
:pageSize => :query,
21741+
:pageToken => :query
21742+
}
21743+
21744+
request =
21745+
Request.new()
21746+
|> Request.method(:get)
21747+
|> Request.url("/v1/{+parent}/securityProfilesV2", %{
21748+
"parent" => URI.encode(parent, &URI.char_unreserved?/1)
21749+
})
21750+
|> Request.add_optional_params(optional_params_config, optional_params)
21751+
|> Request.library_version(@library_version)
21752+
21753+
connection
21754+
|> Connection.execute(request)
21755+
|> Response.decode(
21756+
opts ++
21757+
[struct: %GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1ListSecurityProfilesV2Response{}]
21758+
)
21759+
end
21760+
21761+
@doc """
21762+
Update a security profile V2.
21763+
21764+
## Parameters
21765+
21766+
* `connection` (*type:* `GoogleApi.Apigee.V1.Connection.t`) - Connection to server
21767+
* `name` (*type:* `String.t`) - Identifier. Name of the security profile v2 resource. Format: organizations/{org}/securityProfilesV2/{profile}
21768+
* `optional_params` (*type:* `keyword()`) - Optional parameters
21769+
* `:"$.xgafv"` (*type:* `String.t`) - V1 error format.
21770+
* `:access_token` (*type:* `String.t`) - OAuth access token.
21771+
* `:alt` (*type:* `String.t`) - Data format for response.
21772+
* `:callback` (*type:* `String.t`) - JSONP
21773+
* `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response.
21774+
* `: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.
21775+
* `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user.
21776+
* `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks.
21777+
* `: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.
21778+
* `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart").
21779+
* `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart").
21780+
* `:updateMask` (*type:* `String.t`) - Required. The list of fields to update.
21781+
* `:body` (*type:* `GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1SecurityProfileV2.t`) -
21782+
* `opts` (*type:* `keyword()`) - Call options
21783+
21784+
## Returns
21785+
21786+
* `{:ok, %GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1SecurityProfileV2{}}` on success
21787+
* `{:error, info}` on failure
21788+
"""
21789+
@spec apigee_organizations_security_profiles_v2_patch(
21790+
Tesla.Env.client(),
21791+
String.t(),
21792+
keyword(),
21793+
keyword()
21794+
) ::
21795+
{:ok, GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1SecurityProfileV2.t()}
21796+
| {:ok, Tesla.Env.t()}
21797+
| {:ok, list()}
21798+
| {:error, any()}
21799+
def apigee_organizations_security_profiles_v2_patch(
21800+
connection,
21801+
name,
21802+
optional_params \\ [],
21803+
opts \\ []
21804+
) do
21805+
optional_params_config = %{
21806+
:"$.xgafv" => :query,
21807+
:access_token => :query,
21808+
:alt => :query,
21809+
:callback => :query,
21810+
:fields => :query,
21811+
:key => :query,
21812+
:oauth_token => :query,
21813+
:prettyPrint => :query,
21814+
:quotaUser => :query,
21815+
:uploadType => :query,
21816+
:upload_protocol => :query,
21817+
:updateMask => :query,
21818+
:body => :body
21819+
}
21820+
21821+
request =
21822+
Request.new()
21823+
|> Request.method(:patch)
21824+
|> Request.url("/v1/{+name}", %{
21825+
"name" => URI.encode(name, &URI.char_unreserved?/1)
21826+
})
21827+
|> Request.add_optional_params(optional_params_config, optional_params)
21828+
|> Request.library_version(@library_version)
21829+
21830+
connection
21831+
|> Connection.execute(request)
21832+
|> Response.decode(
21833+
opts ++ [struct: %GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1SecurityProfileV2{}]
21834+
)
21835+
end
21836+
2146621837
@doc """
2146721838
Uploads a ZIP-formatted shared flow configuration bundle to an organization. If the shared flow already exists, this creates a new revision of it. If the shared flow does not exist, this creates it. Once imported, the shared flow revision must be deployed before it can be accessed at runtime. The size limit of a shared flow bundle is 15 MB.
2146821839

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 "20240919"
23+
@discovery_revision "20240927"
2424

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

0 commit comments

Comments
 (0)