Skip to content

Commit f84fbfa

Browse files
feat: Automated regeneration of BeyondCorp client (googleapis#12359)
Auto-created at 2024-10-18 13:15:47 +0000 using the toys pull request generator.
1 parent 384db7d commit f84fbfa

File tree

6 files changed

+469
-6
lines changed

6 files changed

+469
-6
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.12"}]
14+
[{:google_api_beyond_corp, "~> 0.13"}]
1515
end
1616
```
1717

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

Lines changed: 364 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 99 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,99 @@
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.BeyondCorp.V1.Api.V do
19+
@moduledoc """
20+
API calls for all endpoints tagged `V`.
21+
"""
22+
23+
alias GoogleApi.BeyondCorp.V1.Connection
24+
alias GoogleApi.Gax.{Request, Response}
25+
26+
@library_version Mix.Project.config() |> Keyword.get(:version, "")
27+
28+
@doc """
29+
Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
30+
31+
## Parameters
32+
33+
* `connection` (*type:* `GoogleApi.BeyondCorp.V1.Connection.t`) - Connection to server
34+
* `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.
35+
* `optional_params` (*type:* `keyword()`) - Optional parameters
36+
* `:"$.xgafv"` (*type:* `String.t`) - V1 error format.
37+
* `:access_token` (*type:* `String.t`) - OAuth access token.
38+
* `:alt` (*type:* `String.t`) - Data format for response.
39+
* `:callback` (*type:* `String.t`) - JSONP
40+
* `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response.
41+
* `: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.
42+
* `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user.
43+
* `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks.
44+
* `: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.
45+
* `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart").
46+
* `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart").
47+
* `:body` (*type:* `GoogleApi.BeyondCorp.V1.Model.GoogleIamV1SetIamPolicyRequest.t`) -
48+
* `opts` (*type:* `keyword()`) - Call options
49+
50+
## Returns
51+
52+
* `{:ok, %GoogleApi.BeyondCorp.V1.Model.GoogleIamV1Policy{}}` on success
53+
* `{:error, info}` on failure
54+
"""
55+
@spec beyondcorp_v_projects_locations_security_gateways_set_iam_policy(
56+
Tesla.Env.client(),
57+
String.t(),
58+
keyword(),
59+
keyword()
60+
) ::
61+
{:ok, GoogleApi.BeyondCorp.V1.Model.GoogleIamV1Policy.t()}
62+
| {:ok, Tesla.Env.t()}
63+
| {:ok, list()}
64+
| {:error, any()}
65+
def beyondcorp_v_projects_locations_security_gateways_set_iam_policy(
66+
connection,
67+
resource,
68+
optional_params \\ [],
69+
opts \\ []
70+
) do
71+
optional_params_config = %{
72+
:"$.xgafv" => :query,
73+
:access_token => :query,
74+
:alt => :query,
75+
:callback => :query,
76+
:fields => :query,
77+
:key => :query,
78+
:oauth_token => :query,
79+
:prettyPrint => :query,
80+
:quotaUser => :query,
81+
:uploadType => :query,
82+
:upload_protocol => :query,
83+
:body => :body
84+
}
85+
86+
request =
87+
Request.new()
88+
|> Request.method(:post)
89+
|> Request.url("/v/{+resource}:setIamPolicy", %{
90+
"resource" => URI.encode(resource, &URI.char_unreserved?/1)
91+
})
92+
|> Request.add_optional_params(optional_params_config, optional_params)
93+
|> Request.library_version(@library_version)
94+
95+
connection
96+
|> Connection.execute(request)
97+
|> Response.decode(opts ++ [struct: %GoogleApi.BeyondCorp.V1.Model.GoogleIamV1Policy{}])
98+
end
99+
end

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 "20241004"
23+
@discovery_revision "20241011"
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: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,18 +22,18 @@ defmodule GoogleApi.BeyondCorp.V1.Model.GoogleCloudBeyondcorpSecuritygatewaysV1P
2222
## Attributes
2323
2424
* `dnsZones` (*type:* `list(String.t)`, *default:* `nil`) - Optional. List of DNS zones for DNS peering with the customer VPC network.
25-
* `targetVpcNetwork` (*type:* `String.t`, *default:* `nil`) - Required. The name of the Target VPC network name in the format: `projects/{project}/global/networks/{network}
25+
* `targetNetwork` (*type:* `String.t`, *default:* `nil`) - Required. The name of the Target VPC network name in the format: `projects/{project}/global/networks/{network}
2626
"""
2727

2828
use GoogleApi.Gax.ModelBase
2929

3030
@type t :: %__MODULE__{
3131
:dnsZones => list(String.t()) | nil,
32-
:targetVpcNetwork => String.t() | nil
32+
:targetNetwork => String.t() | nil
3333
}
3434

3535
field(:dnsZones, type: :list)
36-
field(:targetVpcNetwork)
36+
field(:targetNetwork)
3737
end
3838

3939
defimpl Poison.Decoder,

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.12.0"
21+
@version "0.13.0"
2222

2323
def project() do
2424
[

0 commit comments

Comments
 (0)