Skip to content

Commit b6f4989

Browse files
feat: Automated regeneration of BeyondCorp client (googleapis#12547)
Auto-created at 2024-11-16 13:18:25 +0000 using the toys pull request generator.
1 parent 175c91f commit b6f4989

File tree

6 files changed

+3
-194
lines changed

6 files changed

+3
-194
lines changed

clients/beyond_corp/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_beyond_corp, "~> 0.14"}]
14+
[{:google_api_beyond_corp, "~> 0.15"}]
1515
end
1616
```
1717

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

Lines changed: 0 additions & 74 deletions
Original file line numberDiff line numberDiff line change
@@ -3715,80 +3715,6 @@ defmodule GoogleApi.BeyondCorp.V1.Api.Projects do
37153715
|> Response.decode(opts ++ [struct: %GoogleApi.BeyondCorp.V1.Model.GoogleIamV1Policy{}])
37163716
end
37173717

3718-
@doc """
3719-
This is a custom method to allow customers to create a peering connections between Google network and customer networks. This is enabled only for the allowlisted customers.
3720-
3721-
## Parameters
3722-
3723-
* `connection` (*type:* `GoogleApi.BeyondCorp.V1.Connection.t`) - Connection to server
3724-
* `security_gateway` (*type:* `String.t`) - Required. BeyondCorp SecurityGateway name using the form: `projects/{project}/locations/{location}/securityGateways/{security_gateway}`
3725-
* `optional_params` (*type:* `keyword()`) - Optional parameters
3726-
* `:"$.xgafv"` (*type:* `String.t`) - V1 error format.
3727-
* `:access_token` (*type:* `String.t`) - OAuth access token.
3728-
* `:alt` (*type:* `String.t`) - Data format for response.
3729-
* `:callback` (*type:* `String.t`) - JSONP
3730-
* `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response.
3731-
* `: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.
3732-
* `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user.
3733-
* `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks.
3734-
* `: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.
3735-
* `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart").
3736-
* `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart").
3737-
* `:body` (*type:* `GoogleApi.BeyondCorp.V1.Model.GoogleCloudBeyondcorpSecuritygatewaysV1SetPeeringRequest.t`) -
3738-
* `opts` (*type:* `keyword()`) - Call options
3739-
3740-
## Returns
3741-
3742-
* `{:ok, %GoogleApi.BeyondCorp.V1.Model.GoogleLongrunningOperation{}}` on success
3743-
* `{:error, info}` on failure
3744-
"""
3745-
@spec beyondcorp_projects_locations_security_gateways_set_peering(
3746-
Tesla.Env.client(),
3747-
String.t(),
3748-
keyword(),
3749-
keyword()
3750-
) ::
3751-
{:ok, GoogleApi.BeyondCorp.V1.Model.GoogleLongrunningOperation.t()}
3752-
| {:ok, Tesla.Env.t()}
3753-
| {:ok, list()}
3754-
| {:error, any()}
3755-
def beyondcorp_projects_locations_security_gateways_set_peering(
3756-
connection,
3757-
security_gateway,
3758-
optional_params \\ [],
3759-
opts \\ []
3760-
) do
3761-
optional_params_config = %{
3762-
:"$.xgafv" => :query,
3763-
:access_token => :query,
3764-
:alt => :query,
3765-
:callback => :query,
3766-
:fields => :query,
3767-
:key => :query,
3768-
:oauth_token => :query,
3769-
:prettyPrint => :query,
3770-
:quotaUser => :query,
3771-
:uploadType => :query,
3772-
:upload_protocol => :query,
3773-
:body => :body
3774-
}
3775-
3776-
request =
3777-
Request.new()
3778-
|> Request.method(:post)
3779-
|> Request.url("/v1/{+securityGateway}:setPeering", %{
3780-
"securityGateway" => URI.encode(security_gateway, &URI.char_unreserved?/1)
3781-
})
3782-
|> Request.add_optional_params(optional_params_config, optional_params)
3783-
|> Request.library_version(@library_version)
3784-
3785-
connection
3786-
|> Connection.execute(request)
3787-
|> Response.decode(
3788-
opts ++ [struct: %GoogleApi.BeyondCorp.V1.Model.GoogleLongrunningOperation{}]
3789-
)
3790-
end
3791-
37923718
@doc """
37933719
Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may "fail open" without warning.
37943720

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

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

23-
@discovery_revision "20241024"
23+
@discovery_revision "20241106"
2424

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

clients/beyond_corp/lib/google_api/beyond_corp/v1/model/google_cloud_beyondcorp_securitygateways_v1_peering.ex

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

clients/beyond_corp/lib/google_api/beyond_corp/v1/model/google_cloud_beyondcorp_securitygateways_v1_set_peering_request.ex

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

clients/beyond_corp/mix.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
defmodule GoogleApi.BeyondCorp.Mixfile do
1919
use Mix.Project
2020

21-
@version "0.14.0"
21+
@version "0.15.0"
2222

2323
def project() do
2424
[

0 commit comments

Comments
 (0)