Skip to content

Commit f0cf965

Browse files
feat: Automated regeneration of accesscontextmanager v1 client (googleapis#20472)
Auto-created at 2024-10-27 09:53:46 +0000 using the toys pull request generator.
1 parent 0a33f3b commit f0cf965

File tree

6 files changed

+101
-11
lines changed

6 files changed

+101
-11
lines changed

api_names_out.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,7 @@
295295
"/accesscontextmanager:v1/AccessSettings/accessLevels": access_levels
296296
"/accesscontextmanager:v1/AccessSettings/accessLevels/access_level": access_level
297297
"/accesscontextmanager:v1/AccessSettings/reauthSettings": reauth_settings
298+
"/accesscontextmanager:v1/AccessSettings/sessionSettings": session_settings
298299
"/accesscontextmanager:v1/ApiOperation": api_operation
299300
"/accesscontextmanager:v1/ApiOperation/methodSelectors": method_selectors
300301
"/accesscontextmanager:v1/ApiOperation/methodSelectors/method_selector": method_selector
@@ -514,6 +515,12 @@
514515
"/accesscontextmanager:v1/ServicePerimeterConfig/restrictedServices": restricted_services
515516
"/accesscontextmanager:v1/ServicePerimeterConfig/restrictedServices/restricted_service": restricted_service
516517
"/accesscontextmanager:v1/ServicePerimeterConfig/vpcAccessibleServices": vpc_accessible_services
518+
"/accesscontextmanager:v1/SessionSettings": session_settings
519+
"/accesscontextmanager:v1/SessionSettings/maxInactivity": max_inactivity
520+
"/accesscontextmanager:v1/SessionSettings/sessionLength": session_length
521+
"/accesscontextmanager:v1/SessionSettings/sessionLengthEnabled": session_length_enabled
522+
"/accesscontextmanager:v1/SessionSettings/sessionReauthMethod": session_reauth_method
523+
"/accesscontextmanager:v1/SessionSettings/useOidcMaxAge": use_oidc_max_age
517524
"/accesscontextmanager:v1/SetIamPolicyRequest": set_iam_policy_request
518525
"/accesscontextmanager:v1/SetIamPolicyRequest/policy": policy
519526
"/accesscontextmanager:v1/SetIamPolicyRequest/updateMask": update_mask

generated/google-apis-accesscontextmanager_v1/CHANGELOG.md

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

3-
### v0.50.0 (2024-10-20)
3+
### v0.50.0 (2024-10-27)
44

5-
* Regenerated from discovery document revision 20241014
5+
* Regenerated from discovery document revision 20241022
66

77
### v0.49.0 (2024-09-29)
88

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

Lines changed: 64 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,13 @@ class AccessSettings
187187
# @return [Google::Apis::AccesscontextmanagerV1::ReauthSettings]
188188
attr_accessor :reauth_settings
189189

190+
# Stores settings related to Google Cloud Session Length including session
191+
# duration, the type of challenge (i.e. method) they should face when their
192+
# session expires, and other related settings.
193+
# Corresponds to the JSON property `sessionSettings`
194+
# @return [Google::Apis::AccesscontextmanagerV1::SessionSettings]
195+
attr_accessor :session_settings
196+
190197
def initialize(**args)
191198
update!(**args)
192199
end
@@ -195,6 +202,7 @@ def initialize(**args)
195202
def update!(**args)
196203
@access_levels = args[:access_levels] if args.key?(:access_levels)
197204
@reauth_settings = args[:reauth_settings] if args.key?(:reauth_settings)
205+
@session_settings = args[:session_settings] if args.key?(:session_settings)
198206
end
199207
end
200208

@@ -1013,7 +1021,7 @@ def update!(**args)
10131021
end
10141022

10151023
# Restricts access to Cloud Console and Google Cloud APIs for a set of users
1016-
# using Context-Aware Access.
1024+
# using Context-Aware Access. Next ID: 11
10171025
class GcpUserAccessBinding
10181026
include Google::Apis::Core::Hashable
10191027

@@ -2041,6 +2049,61 @@ def update!(**args)
20412049
end
20422050
end
20432051

2052+
# Stores settings related to Google Cloud Session Length including session
2053+
# duration, the type of challenge (i.e. method) they should face when their
2054+
# session expires, and other related settings.
2055+
class SessionSettings
2056+
include Google::Apis::Core::Hashable
2057+
2058+
# Optional. How long a user is allowed to take between actions before a new
2059+
# access token must be issued. Presently only set for Cloud Apps.
2060+
# Corresponds to the JSON property `maxInactivity`
2061+
# @return [String]
2062+
attr_accessor :max_inactivity
2063+
2064+
# Optional. The session length. Setting this field to zero is equal to disabling.
2065+
# Session. Also can set infinite session by flipping the enabled bit to false
2066+
# below. If use_oidc_max_age is true, for OIDC apps, the session length will be
2067+
# the minimum of this field and OIDC max_age param.
2068+
# Corresponds to the JSON property `sessionLength`
2069+
# @return [String]
2070+
attr_accessor :session_length
2071+
2072+
# Optional. Big red button to turn off GCSL. When false, all fields set above
2073+
# will be disregarded and the session length is basically infinite.
2074+
# Corresponds to the JSON property `sessionLengthEnabled`
2075+
# @return [Boolean]
2076+
attr_accessor :session_length_enabled
2077+
alias_method :session_length_enabled?, :session_length_enabled
2078+
2079+
# Optional. Session method when users GCP session is up.
2080+
# Corresponds to the JSON property `sessionReauthMethod`
2081+
# @return [String]
2082+
attr_accessor :session_reauth_method
2083+
2084+
# Optional. Only useful for OIDC apps. When false, the OIDC max_age param, if
2085+
# passed in the authentication request will be ignored. When true, the re-auth
2086+
# period will be the minimum of the session_length field and the max_age OIDC
2087+
# param.
2088+
# Corresponds to the JSON property `useOidcMaxAge`
2089+
# @return [Boolean]
2090+
attr_accessor :use_oidc_max_age
2091+
alias_method :use_oidc_max_age?, :use_oidc_max_age
2092+
2093+
def initialize(**args)
2094+
update!(**args)
2095+
end
2096+
2097+
# Update properties of this object
2098+
def update!(**args)
2099+
@max_inactivity = args[:max_inactivity] if args.key?(:max_inactivity)
2100+
@session_length = args[:session_length] if args.key?(:session_length)
2101+
@session_length_enabled = args[:session_length_enabled] if args.key?(:session_length_enabled)
2102+
@session_reauth_method = args[:session_reauth_method] if args.key?(:session_reauth_method)
2103+
@use_oidc_max_age = args[:use_oidc_max_age] if args.key?(:use_oidc_max_age)
2104+
end
2105+
end
2106+
20442107
# Request message for `SetIamPolicy` method.
20452108
class SetIamPolicyRequest
20462109
include Google::Apis::Core::Hashable

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ module AccesscontextmanagerV1
2222
GENERATOR_VERSION = "0.15.1"
2323

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

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

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -334,6 +334,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
334334
include Google::Apis::Core::JsonObjectSupport
335335
end
336336

337+
class SessionSettings
338+
class Representation < Google::Apis::Core::JsonRepresentation; end
339+
340+
include Google::Apis::Core::JsonObjectSupport
341+
end
342+
337343
class SetIamPolicyRequest
338344
class Representation < Google::Apis::Core::JsonRepresentation; end
339345

@@ -426,6 +432,8 @@ class Representation < Google::Apis::Core::JsonRepresentation
426432
collection :access_levels, as: 'accessLevels'
427433
property :reauth_settings, as: 'reauthSettings', class: Google::Apis::AccesscontextmanagerV1::ReauthSettings, decorator: Google::Apis::AccesscontextmanagerV1::ReauthSettings::Representation
428434

435+
property :session_settings, as: 'sessionSettings', class: Google::Apis::AccesscontextmanagerV1::SessionSettings, decorator: Google::Apis::AccesscontextmanagerV1::SessionSettings::Representation
436+
429437
end
430438
end
431439

@@ -877,6 +885,17 @@ class Representation < Google::Apis::Core::JsonRepresentation
877885
end
878886
end
879887

888+
class SessionSettings
889+
# @private
890+
class Representation < Google::Apis::Core::JsonRepresentation
891+
property :max_inactivity, as: 'maxInactivity'
892+
property :session_length, as: 'sessionLength'
893+
property :session_length_enabled, as: 'sessionLengthEnabled'
894+
property :session_reauth_method, as: 'sessionReauthMethod'
895+
property :use_oidc_max_age, as: 'useOidcMaxAge'
896+
end
897+
end
898+
880899
class SetIamPolicyRequest
881900
# @private
882901
class Representation < Google::Apis::Core::JsonRepresentation

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

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1398,16 +1398,17 @@ def list_organization_gcp_user_access_bindings(parent, page_size: nil, page_toke
13981398
# Optional. This field controls whether or not certain repeated settings in the
13991399
# update request overwrite or append to existing settings on the binding. If
14001400
# true, then append. Otherwise overwrite. So far, only scoped_access_settings
1401-
# supports appending. Global access_levels, dry_run_access_levels, and
1402-
# reauth_settings are not compatible with append functionality, and the request
1403-
# will return an error if append=true when these settings are in the update_mask.
1404-
# The request will also return an error if append=true when "
1405-
# scoped_access_settings" is not set in the update_mask.
1401+
# supports appending. Global access_levels, dry_run_access_levels,
1402+
# reauth_settings, and session_settings are not compatible with append
1403+
# functionality, and the request will return an error if append=true when these
1404+
# settings are in the update_mask. The request will also return an error if
1405+
# append=true when "scoped_access_settings" is not set in the update_mask.
14061406
# @param [String] update_mask
14071407
# Required. Only the fields specified in this mask are updated. Because name and
14081408
# group_key cannot be changed, update_mask is required and may only contain the
1409-
# following fields: `access_levels`, `dry_run_access_levels`, `reauth_settings`,
1410-
# `scoped_access_settings`. update_mask ` paths: "access_levels" `
1409+
# following fields: `access_levels`, `dry_run_access_levels`, `reauth_settings` `
1410+
# session_settings`, `scoped_access_settings`. update_mask ` paths: "
1411+
# access_levels" `
14111412
# @param [String] fields
14121413
# Selector specifying which fields to include in a partial response.
14131414
# @param [String] quota_user

0 commit comments

Comments
 (0)