Skip to content

Commit 7197d69

Browse files
feat: Automated regeneration of accesscontextmanager v1 client (googleapis#20583)
Auto-created at 2024-11-17 09:49:04 +0000 using the toys pull request generator.
1 parent 45cae64 commit 7197d69

File tree

5 files changed

+17
-94
lines changed

5 files changed

+17
-94
lines changed

api_names_out.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -497,6 +497,7 @@
497497
"/accesscontextmanager:v1/ServicePerimeter": service_perimeter
498498
"/accesscontextmanager:v1/ServicePerimeter/createTime": create_time
499499
"/accesscontextmanager:v1/ServicePerimeter/description": description
500+
"/accesscontextmanager:v1/ServicePerimeter/etag": etag
500501
"/accesscontextmanager:v1/ServicePerimeter/name": name
501502
"/accesscontextmanager:v1/ServicePerimeter/perimeterType": perimeter_type
502503
"/accesscontextmanager:v1/ServicePerimeter/spec": spec

generated/google-apis-accesscontextmanager_v1/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Release history for google-apis-accesscontextmanager_v1
22

3+
### v0.52.0 (2024-11-17)
4+
5+
* Regenerated from discovery document revision 20241103
6+
37
### v0.51.0 (2024-11-03)
48

59
* Regenerated from discovery document revision 20241028

generated/google-apis-accesscontextmanager_v1/lib/google/apis/accesscontextmanager_v1/classes.rb

Lines changed: 9 additions & 71 deletions
Original file line numberDiff line numberDiff line change
@@ -180,13 +180,6 @@ class AccessSettings
180180
# @return [Array<String>]
181181
attr_accessor :access_levels
182182

183-
# Stores settings related to Google Cloud Session Length including session
184-
# duration, the type of challenge (i.e. method) they should face when their
185-
# session expires, and other related settings.
186-
# Corresponds to the JSON property `reauthSettings`
187-
# @return [Google::Apis::AccesscontextmanagerV1::ReauthSettings]
188-
attr_accessor :reauth_settings
189-
190183
# Stores settings related to Google Cloud Session Length including session
191184
# duration, the type of challenge (i.e. method) they should face when their
192185
# session expires, and other related settings.
@@ -201,7 +194,6 @@ def initialize(**args)
201194
# Update properties of this object
202195
def update!(**args)
203196
@access_levels = args[:access_levels] if args.key?(:access_levels)
204-
@reauth_settings = args[:reauth_settings] if args.key?(:reauth_settings)
205197
@session_settings = args[:session_settings] if args.key?(:session_settings)
206198
end
207199
end
@@ -1059,13 +1051,6 @@ class GcpUserAccessBinding
10591051
# @return [String]
10601052
attr_accessor :name
10611053

1062-
# Stores settings related to Google Cloud Session Length including session
1063-
# duration, the type of challenge (i.e. method) they should face when their
1064-
# session expires, and other related settings.
1065-
# Corresponds to the JSON property `reauthSettings`
1066-
# @return [Google::Apis::AccesscontextmanagerV1::ReauthSettings]
1067-
attr_accessor :reauth_settings
1068-
10691054
# Optional. A list of applications that are subject to this binding's
10701055
# restrictions. If the list is empty, the binding restrictions will universally
10711056
# apply to all applications.
@@ -1097,7 +1082,6 @@ def update!(**args)
10971082
@dry_run_access_levels = args[:dry_run_access_levels] if args.key?(:dry_run_access_levels)
10981083
@group_key = args[:group_key] if args.key?(:group_key)
10991084
@name = args[:name] if args.key?(:name)
1100-
@reauth_settings = args[:reauth_settings] if args.key?(:reauth_settings)
11011085
@restricted_client_applications = args[:restricted_client_applications] if args.key?(:restricted_client_applications)
11021086
@scoped_access_settings = args[:scoped_access_settings] if args.key?(:scoped_access_settings)
11031087
@session_settings = args[:session_settings] if args.key?(:session_settings)
@@ -1717,61 +1701,6 @@ def update!(**args)
17171701
end
17181702
end
17191703

1720-
# Stores settings related to Google Cloud Session Length including session
1721-
# duration, the type of challenge (i.e. method) they should face when their
1722-
# session expires, and other related settings.
1723-
class ReauthSettings
1724-
include Google::Apis::Core::Hashable
1725-
1726-
# Optional. How long a user is allowed to take between actions before a new
1727-
# access token must be issued. Presently only set for Cloud Apps.
1728-
# Corresponds to the JSON property `maxInactivity`
1729-
# @return [String]
1730-
attr_accessor :max_inactivity
1731-
1732-
# Optional. Reauth method when users GCP session is up.
1733-
# Corresponds to the JSON property `reauthMethod`
1734-
# @return [String]
1735-
attr_accessor :reauth_method
1736-
1737-
# Optional. The session length. Setting this field to zero is equal to disabling.
1738-
# Reauth. Also can set infinite session by flipping the enabled bit to false
1739-
# below. If use_oidc_max_age is true, for OIDC apps, the session length will be
1740-
# the minimum of this field and OIDC max_age param.
1741-
# Corresponds to the JSON property `sessionLength`
1742-
# @return [String]
1743-
attr_accessor :session_length
1744-
1745-
# Optional. Big red button to turn off GCSL. When false, all fields set above
1746-
# will be disregarded and the session length is basically infinite.
1747-
# Corresponds to the JSON property `sessionLengthEnabled`
1748-
# @return [Boolean]
1749-
attr_accessor :session_length_enabled
1750-
alias_method :session_length_enabled?, :session_length_enabled
1751-
1752-
# Optional. Only useful for OIDC apps. When false, the OIDC max_age param, if
1753-
# passed in the authentication request will be ignored. When true, the re-auth
1754-
# period will be the minimum of the session_length field and the max_age OIDC
1755-
# param.
1756-
# Corresponds to the JSON property `useOidcMaxAge`
1757-
# @return [Boolean]
1758-
attr_accessor :use_oidc_max_age
1759-
alias_method :use_oidc_max_age?, :use_oidc_max_age
1760-
1761-
def initialize(**args)
1762-
update!(**args)
1763-
end
1764-
1765-
# Update properties of this object
1766-
def update!(**args)
1767-
@max_inactivity = args[:max_inactivity] if args.key?(:max_inactivity)
1768-
@reauth_method = args[:reauth_method] if args.key?(:reauth_method)
1769-
@session_length = args[:session_length] if args.key?(:session_length)
1770-
@session_length_enabled = args[:session_length_enabled] if args.key?(:session_length_enabled)
1771-
@use_oidc_max_age = args[:use_oidc_max_age] if args.key?(:use_oidc_max_age)
1772-
end
1773-
end
1774-
17751704
# A request to replace all existing Access Levels in an Access Policy with the
17761705
# Access Levels provided. This is done atomically.
17771706
class ReplaceAccessLevelsRequest
@@ -1928,6 +1857,14 @@ class ServicePerimeter
19281857
# @return [String]
19291858
attr_accessor :description
19301859

1860+
# Optional. An opaque identifier for the current version of the `
1861+
# ServicePerimeter`. Clients should not expect this to be in any specific format.
1862+
# If etag is not provided, the operation will be performed as if a valid etag
1863+
# is provided.
1864+
# Corresponds to the JSON property `etag`
1865+
# @return [String]
1866+
attr_accessor :etag
1867+
19311868
# Identifier. Resource name for the `ServicePerimeter`. Format: `accessPolicies/`
19321869
# access_policy`/servicePerimeters/`service_perimeter``. The `service_perimeter`
19331870
# component must begin with a letter, followed by alphanumeric characters or `_`.
@@ -1983,6 +1920,7 @@ def initialize(**args)
19831920
# Update properties of this object
19841921
def update!(**args)
19851922
@description = args[:description] if args.key?(:description)
1923+
@etag = args[:etag] if args.key?(:etag)
19861924
@name = args[:name] if args.key?(:name)
19871925
@perimeter_type = args[:perimeter_type] if args.key?(:perimeter_type)
19881926
@spec = args[:spec] if args.key?(:spec)

generated/google-apis-accesscontextmanager_v1/lib/google/apis/accesscontextmanager_v1/gem_version.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ module Google
1616
module Apis
1717
module AccesscontextmanagerV1
1818
# Version of the google-apis-accesscontextmanager_v1 gem
19-
GEM_VERSION = "0.51.0"
19+
GEM_VERSION = "0.52.0"
2020

2121
# Version of the code generator used to generate this client
2222
GENERATOR_VERSION = "0.15.1"
2323

2424
# Revision of the discovery document this client was generated from
25-
REVISION = "20241028"
25+
REVISION = "20241103"
2626
end
2727
end
2828
end

generated/google-apis-accesscontextmanager_v1/lib/google/apis/accesscontextmanager_v1/representations.rb

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -286,12 +286,6 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
286286
include Google::Apis::Core::JsonObjectSupport
287287
end
288288

289-
class ReauthSettings
290-
class Representation < Google::Apis::Core::JsonRepresentation; end
291-
292-
include Google::Apis::Core::JsonObjectSupport
293-
end
294-
295289
class ReplaceAccessLevelsRequest
296290
class Representation < Google::Apis::Core::JsonRepresentation; end
297291

@@ -430,8 +424,6 @@ class AccessSettings
430424
# @private
431425
class Representation < Google::Apis::Core::JsonRepresentation
432426
collection :access_levels, as: 'accessLevels'
433-
property :reauth_settings, as: 'reauthSettings', class: Google::Apis::AccesscontextmanagerV1::ReauthSettings, decorator: Google::Apis::AccesscontextmanagerV1::ReauthSettings::Representation
434-
435427
property :session_settings, as: 'sessionSettings', class: Google::Apis::AccesscontextmanagerV1::SessionSettings, decorator: Google::Apis::AccesscontextmanagerV1::SessionSettings::Representation
436428

437429
end
@@ -627,8 +619,6 @@ class Representation < Google::Apis::Core::JsonRepresentation
627619
collection :dry_run_access_levels, as: 'dryRunAccessLevels'
628620
property :group_key, as: 'groupKey'
629621
property :name, as: 'name'
630-
property :reauth_settings, as: 'reauthSettings', class: Google::Apis::AccesscontextmanagerV1::ReauthSettings, decorator: Google::Apis::AccesscontextmanagerV1::ReauthSettings::Representation
631-
632622
collection :restricted_client_applications, as: 'restrictedClientApplications', class: Google::Apis::AccesscontextmanagerV1::Application, decorator: Google::Apis::AccesscontextmanagerV1::Application::Representation
633623

634624
collection :scoped_access_settings, as: 'scopedAccessSettings', class: Google::Apis::AccesscontextmanagerV1::ScopedAccessSettings, decorator: Google::Apis::AccesscontextmanagerV1::ScopedAccessSettings::Representation
@@ -800,17 +790,6 @@ class Representation < Google::Apis::Core::JsonRepresentation
800790
end
801791
end
802792

803-
class ReauthSettings
804-
# @private
805-
class Representation < Google::Apis::Core::JsonRepresentation
806-
property :max_inactivity, as: 'maxInactivity'
807-
property :reauth_method, as: 'reauthMethod'
808-
property :session_length, as: 'sessionLength'
809-
property :session_length_enabled, as: 'sessionLengthEnabled'
810-
property :use_oidc_max_age, as: 'useOidcMaxAge'
811-
end
812-
end
813-
814793
class ReplaceAccessLevelsRequest
815794
# @private
816795
class Representation < Google::Apis::Core::JsonRepresentation
@@ -861,6 +840,7 @@ class ServicePerimeter
861840
# @private
862841
class Representation < Google::Apis::Core::JsonRepresentation
863842
property :description, as: 'description'
843+
property :etag, as: 'etag'
864844
property :name, as: 'name'
865845
property :perimeter_type, as: 'perimeterType'
866846
property :spec, as: 'spec', class: Google::Apis::AccesscontextmanagerV1::ServicePerimeterConfig, decorator: Google::Apis::AccesscontextmanagerV1::ServicePerimeterConfig::Representation

0 commit comments

Comments
 (0)