Skip to content

Commit c594987

Browse files
feat: Automated regeneration of BeyondCorp client (googleapis#12470)
Auto-created at 2024-11-03 13:12:08 +0000 using the toys pull request generator.
1 parent 46b2885 commit c594987

File tree

5 files changed

+75
-102
lines changed

5 files changed

+75
-102
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.13"}]
14+
[{:google_api_beyond_corp, "~> 0.14"}]
1515
end
1616
```
1717

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

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3643,6 +3643,78 @@ defmodule GoogleApi.BeyondCorp.V1.Api.Projects do
36433643
)
36443644
end
36453645

3646+
@doc """
3647+
Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
3648+
3649+
## Parameters
3650+
3651+
* `connection` (*type:* `GoogleApi.BeyondCorp.V1.Connection.t`) - Connection to server
3652+
* `resource` (*type:* `String.t`) - REQUIRED: The resource for which the policy is being specified. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.
3653+
* `optional_params` (*type:* `keyword()`) - Optional parameters
3654+
* `:"$.xgafv"` (*type:* `String.t`) - V1 error format.
3655+
* `:access_token` (*type:* `String.t`) - OAuth access token.
3656+
* `:alt` (*type:* `String.t`) - Data format for response.
3657+
* `:callback` (*type:* `String.t`) - JSONP
3658+
* `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response.
3659+
* `: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.
3660+
* `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user.
3661+
* `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks.
3662+
* `: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.
3663+
* `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart").
3664+
* `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart").
3665+
* `:body` (*type:* `GoogleApi.BeyondCorp.V1.Model.GoogleIamV1SetIamPolicyRequest.t`) -
3666+
* `opts` (*type:* `keyword()`) - Call options
3667+
3668+
## Returns
3669+
3670+
* `{:ok, %GoogleApi.BeyondCorp.V1.Model.GoogleIamV1Policy{}}` on success
3671+
* `{:error, info}` on failure
3672+
"""
3673+
@spec beyondcorp_projects_locations_security_gateways_set_iam_policy(
3674+
Tesla.Env.client(),
3675+
String.t(),
3676+
keyword(),
3677+
keyword()
3678+
) ::
3679+
{:ok, GoogleApi.BeyondCorp.V1.Model.GoogleIamV1Policy.t()}
3680+
| {:ok, Tesla.Env.t()}
3681+
| {:ok, list()}
3682+
| {:error, any()}
3683+
def beyondcorp_projects_locations_security_gateways_set_iam_policy(
3684+
connection,
3685+
resource,
3686+
optional_params \\ [],
3687+
opts \\ []
3688+
) do
3689+
optional_params_config = %{
3690+
:"$.xgafv" => :query,
3691+
:access_token => :query,
3692+
:alt => :query,
3693+
:callback => :query,
3694+
:fields => :query,
3695+
:key => :query,
3696+
:oauth_token => :query,
3697+
:prettyPrint => :query,
3698+
:quotaUser => :query,
3699+
:uploadType => :query,
3700+
:upload_protocol => :query,
3701+
:body => :body
3702+
}
3703+
3704+
request =
3705+
Request.new()
3706+
|> Request.method(:post)
3707+
|> Request.url("/v1/{+resource}:setIamPolicy", %{
3708+
"resource" => URI.encode(resource, &URI.char_unreserved?/1)
3709+
})
3710+
|> Request.add_optional_params(optional_params_config, optional_params)
3711+
|> Request.library_version(@library_version)
3712+
3713+
connection
3714+
|> Connection.execute(request)
3715+
|> Response.decode(opts ++ [struct: %GoogleApi.BeyondCorp.V1.Model.GoogleIamV1Policy{}])
3716+
end
3717+
36463718
@doc """
36473719
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.
36483720

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

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

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 "20241011"
23+
@discovery_revision "20241024"
2424

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

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.13.0"
21+
@version "0.14.0"
2222

2323
def project() do
2424
[

0 commit comments

Comments
 (0)