diff --git a/clients/beyond_corp/README.md b/clients/beyond_corp/README.md index 5a8f0f2721..d1fb146662 100644 --- a/clients/beyond_corp/README.md +++ b/clients/beyond_corp/README.md @@ -11,7 +11,7 @@ Install this package from [Hex](https://hex.pm) by adding ```elixir def deps do - [{:google_api_beyond_corp, "~> 0.13"}] + [{:google_api_beyond_corp, "~> 0.14"}] end ``` diff --git a/clients/beyond_corp/lib/google_api/beyond_corp/v1/api/projects.ex b/clients/beyond_corp/lib/google_api/beyond_corp/v1/api/projects.ex index cbf7f56d12..28c1f1a4f4 100644 --- a/clients/beyond_corp/lib/google_api/beyond_corp/v1/api/projects.ex +++ b/clients/beyond_corp/lib/google_api/beyond_corp/v1/api/projects.ex @@ -3643,6 +3643,78 @@ defmodule GoogleApi.BeyondCorp.V1.Api.Projects do ) end + @doc """ + Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. + + ## Parameters + + * `connection` (*type:* `GoogleApi.BeyondCorp.V1.Connection.t`) - Connection to server + * `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. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `: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. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `: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. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:body` (*type:* `GoogleApi.BeyondCorp.V1.Model.GoogleIamV1SetIamPolicyRequest.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.BeyondCorp.V1.Model.GoogleIamV1Policy{}}` on success + * `{:error, info}` on failure + """ + @spec beyondcorp_projects_locations_security_gateways_set_iam_policy( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.BeyondCorp.V1.Model.GoogleIamV1Policy.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def beyondcorp_projects_locations_security_gateways_set_iam_policy( + connection, + resource, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :body => :body + } + + request = + Request.new() + |> Request.method(:post) + |> Request.url("/v1/{+resource}:setIamPolicy", %{ + "resource" => URI.encode(resource, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode(opts ++ [struct: %GoogleApi.BeyondCorp.V1.Model.GoogleIamV1Policy{}]) + end + @doc """ 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. diff --git a/clients/beyond_corp/lib/google_api/beyond_corp/v1/api/v.ex b/clients/beyond_corp/lib/google_api/beyond_corp/v1/api/v.ex deleted file mode 100644 index 62ab79fcef..0000000000 --- a/clients/beyond_corp/lib/google_api/beyond_corp/v1/api/v.ex +++ /dev/null @@ -1,99 +0,0 @@ -# Copyright 2019 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# NOTE: This file is auto generated by the elixir code generator program. -# Do not edit this file manually. - -defmodule GoogleApi.BeyondCorp.V1.Api.V do - @moduledoc """ - API calls for all endpoints tagged `V`. - """ - - alias GoogleApi.BeyondCorp.V1.Connection - alias GoogleApi.Gax.{Request, Response} - - @library_version Mix.Project.config() |> Keyword.get(:version, "") - - @doc """ - Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. - - ## Parameters - - * `connection` (*type:* `GoogleApi.BeyondCorp.V1.Connection.t`) - Connection to server - * `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. - * `optional_params` (*type:* `keyword()`) - Optional parameters - * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. - * `:access_token` (*type:* `String.t`) - OAuth access token. - * `:alt` (*type:* `String.t`) - Data format for response. - * `:callback` (*type:* `String.t`) - JSONP - * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. - * `: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. - * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. - * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. - * `: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. - * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). - * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). - * `:body` (*type:* `GoogleApi.BeyondCorp.V1.Model.GoogleIamV1SetIamPolicyRequest.t`) - - * `opts` (*type:* `keyword()`) - Call options - - ## Returns - - * `{:ok, %GoogleApi.BeyondCorp.V1.Model.GoogleIamV1Policy{}}` on success - * `{:error, info}` on failure - """ - @spec beyondcorp_v_projects_locations_security_gateways_set_iam_policy( - Tesla.Env.client(), - String.t(), - keyword(), - keyword() - ) :: - {:ok, GoogleApi.BeyondCorp.V1.Model.GoogleIamV1Policy.t()} - | {:ok, Tesla.Env.t()} - | {:ok, list()} - | {:error, any()} - def beyondcorp_v_projects_locations_security_gateways_set_iam_policy( - connection, - resource, - optional_params \\ [], - opts \\ [] - ) do - optional_params_config = %{ - :"$.xgafv" => :query, - :access_token => :query, - :alt => :query, - :callback => :query, - :fields => :query, - :key => :query, - :oauth_token => :query, - :prettyPrint => :query, - :quotaUser => :query, - :uploadType => :query, - :upload_protocol => :query, - :body => :body - } - - request = - Request.new() - |> Request.method(:post) - |> Request.url("/v/{+resource}:setIamPolicy", %{ - "resource" => URI.encode(resource, &URI.char_unreserved?/1) - }) - |> Request.add_optional_params(optional_params_config, optional_params) - |> Request.library_version(@library_version) - - connection - |> Connection.execute(request) - |> Response.decode(opts ++ [struct: %GoogleApi.BeyondCorp.V1.Model.GoogleIamV1Policy{}]) - end -end diff --git a/clients/beyond_corp/lib/google_api/beyond_corp/v1/metadata.ex b/clients/beyond_corp/lib/google_api/beyond_corp/v1/metadata.ex index 1ea09c9f7e..a374cff2e9 100644 --- a/clients/beyond_corp/lib/google_api/beyond_corp/v1/metadata.ex +++ b/clients/beyond_corp/lib/google_api/beyond_corp/v1/metadata.ex @@ -20,7 +20,7 @@ defmodule GoogleApi.BeyondCorp.V1 do API client metadata for GoogleApi.BeyondCorp.V1. """ - @discovery_revision "20241011" + @discovery_revision "20241024" def discovery_revision(), do: @discovery_revision end diff --git a/clients/beyond_corp/mix.exs b/clients/beyond_corp/mix.exs index c046faa7ac..2387427b93 100644 --- a/clients/beyond_corp/mix.exs +++ b/clients/beyond_corp/mix.exs @@ -18,7 +18,7 @@ defmodule GoogleApi.BeyondCorp.Mixfile do use Mix.Project - @version "0.13.0" + @version "0.14.0" def project() do [