Skip to content

Commit

Permalink
feat: Automated regeneration of AccessContextManager client (googleap…
Browse files Browse the repository at this point in the history
…is#12406)

Auto-created at 2024-10-25 13:15:48 +0000 using the toys pull request generator.
  • Loading branch information
yoshi-code-bot authored Oct 25, 2024
1 parent 61d6465 commit 9280c39
Show file tree
Hide file tree
Showing 7 changed files with 68 additions and 7 deletions.
2 changes: 1 addition & 1 deletion clients/access_context_manager/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Install this package from [Hex](https://hex.pm) by adding

```elixir
def deps do
[{:google_api_access_context_manager, "~> 0.23"}]
[{:google_api_access_context_manager, "~> 0.24"}]
end
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -335,8 +335,8 @@ defmodule GoogleApi.AccessContextManager.V1.Api.Organizations do
* `: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").
* `:append` (*type:* `boolean()`) - Optional. This field controls whether or not certain repeated settings in the update request overwrite or append to existing settings on the binding. If true, then append. Otherwise overwrite. So far, only scoped_access_settings supports appending. Global access_levels, dry_run_access_levels, and reauth_settings are not compatible with append functionality, and the request will return an error if append=true when these settings are in the update_mask. The request will also return an error if append=true when "scoped_access_settings" is not set in the update_mask.
* `:updateMask` (*type:* `String.t`) - Required. Only the fields specified in this mask are updated. Because name and group_key cannot be changed, update_mask is required and may only contain the following fields: `access_levels`, `dry_run_access_levels`, `reauth_settings`, `scoped_access_settings`. update_mask { paths: "access_levels" }
* `:append` (*type:* `boolean()`) - Optional. This field controls whether or not certain repeated settings in the update request overwrite or append to existing settings on the binding. If true, then append. Otherwise overwrite. So far, only scoped_access_settings supports appending. Global access_levels, dry_run_access_levels, reauth_settings, and session_settings are not compatible with append functionality, and the request will return an error if append=true when these settings are in the update_mask. The request will also return an error if append=true when "scoped_access_settings" is not set in the update_mask.
* `:updateMask` (*type:* `String.t`) - Required. Only the fields specified in this mask are updated. Because name and group_key cannot be changed, update_mask is required and may only contain the following fields: `access_levels`, `dry_run_access_levels`, `reauth_settings` `session_settings`, `scoped_access_settings`. update_mask { paths: "access_levels" }
* `:body` (*type:* `GoogleApi.AccessContextManager.V1.Model.GcpUserAccessBinding.t`) -
* `opts` (*type:* `keyword()`) - Call options
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ defmodule GoogleApi.AccessContextManager.V1 do
API client metadata for GoogleApi.AccessContextManager.V1.
"""

@discovery_revision "20241014"
@discovery_revision "20241022"

def discovery_revision(), do: @discovery_revision
end
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,20 @@ defmodule GoogleApi.AccessContextManager.V1.Model.AccessSettings do
* `accessLevels` (*type:* `list(String.t)`, *default:* `nil`) - Optional. Access level that a user must have to be granted access. Only one access level is supported, not multiple. This repeated field must have exactly one element. Example: "accessPolicies/9522/accessLevels/device_trusted"
* `reauthSettings` (*type:* `GoogleApi.AccessContextManager.V1.Model.ReauthSettings.t`, *default:* `nil`) - Optional. Reauth settings applied to user access on a given AccessScope.
* `sessionSettings` (*type:* `GoogleApi.AccessContextManager.V1.Model.SessionSettings.t`, *default:* `nil`) - Optional. Session settings applied to user access on a given AccessScope. Migrated from ReauthSettings
"""

use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{
:accessLevels => list(String.t()) | nil,
:reauthSettings => GoogleApi.AccessContextManager.V1.Model.ReauthSettings.t() | nil
:reauthSettings => GoogleApi.AccessContextManager.V1.Model.ReauthSettings.t() | nil,
:sessionSettings => GoogleApi.AccessContextManager.V1.Model.SessionSettings.t() | nil
}

field(:accessLevels, type: :list)
field(:reauthSettings, as: GoogleApi.AccessContextManager.V1.Model.ReauthSettings)
field(:sessionSettings, as: GoogleApi.AccessContextManager.V1.Model.SessionSettings)
end

defimpl Poison.Decoder, for: GoogleApi.AccessContextManager.V1.Model.AccessSettings do
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

defmodule GoogleApi.AccessContextManager.V1.Model.GcpUserAccessBinding do
@moduledoc """
Restricts access to Cloud Console and Google Cloud APIs for a set of users using Context-Aware Access.
Restricts access to Cloud Console and Google Cloud APIs for a set of users using Context-Aware Access. Next ID: 11
## Attributes
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
# 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.AccessContextManager.V1.Model.SessionSettings do
@moduledoc """
Stores settings related to Google Cloud Session Length including session duration, the type of challenge (i.e. method) they should face when their session expires, and other related settings.
## Attributes
* `maxInactivity` (*type:* `String.t`, *default:* `nil`) - Optional. How long a user is allowed to take between actions before a new access token must be issued. Presently only set for Cloud Apps.
* `sessionLength` (*type:* `String.t`, *default:* `nil`) - Optional. The session length. Setting this field to zero is equal to disabling. Session. Also can set infinite session by flipping the enabled bit to false below. If use_oidc_max_age is true, for OIDC apps, the session length will be the minimum of this field and OIDC max_age param.
* `sessionLengthEnabled` (*type:* `boolean()`, *default:* `nil`) - Optional. Big red button to turn off GCSL. When false, all fields set above will be disregarded and the session length is basically infinite.
* `sessionReauthMethod` (*type:* `String.t`, *default:* `nil`) - Optional. Session method when users GCP session is up.
* `useOidcMaxAge` (*type:* `boolean()`, *default:* `nil`) - Optional. Only useful for OIDC apps. When false, the OIDC max_age param, if passed in the authentication request will be ignored. When true, the re-auth period will be the minimum of the session_length field and the max_age OIDC param.
"""

use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{
:maxInactivity => String.t() | nil,
:sessionLength => String.t() | nil,
:sessionLengthEnabled => boolean() | nil,
:sessionReauthMethod => String.t() | nil,
:useOidcMaxAge => boolean() | nil
}

field(:maxInactivity)
field(:sessionLength)
field(:sessionLengthEnabled)
field(:sessionReauthMethod)
field(:useOidcMaxAge)
end

defimpl Poison.Decoder, for: GoogleApi.AccessContextManager.V1.Model.SessionSettings do
def decode(value, options) do
GoogleApi.AccessContextManager.V1.Model.SessionSettings.decode(value, options)
end
end

defimpl Poison.Encoder, for: GoogleApi.AccessContextManager.V1.Model.SessionSettings do
def encode(value, options) do
GoogleApi.Gax.ModelBase.encode(value, options)
end
end
2 changes: 1 addition & 1 deletion clients/access_context_manager/mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
defmodule GoogleApi.AccessContextManager.Mixfile do
use Mix.Project

@version "0.23.0"
@version "0.24.0"

def project() do
[
Expand Down

0 comments on commit 9280c39

Please sign in to comment.