forked from googleapis/elixir-google-api
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Automated regeneration of AccessContextManager client (googleap…
…is#12406) Auto-created at 2024-10-25 13:15:48 +0000 using the toys pull request generator.
- Loading branch information
1 parent
61d6465
commit 9280c39
Showing
7 changed files
with
68 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
58 changes: 58 additions & 0 deletions
58
...access_context_manager/lib/google_api/access_context_manager/v1/model/session_settings.ex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters