google-apis-accesscontextmanager_v1 0.49.0 → 0.51.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e3678bfd4fdcaf86db75d1aa2f7e48ec41602ed2a8bc9a2a1de189112befc01a
4
- data.tar.gz: 4987ea7cde20b204b7fdca872fb4a14a0119902761c3e048aab8891b76c6f8bb
3
+ metadata.gz: 781559d3f54c452ded44773afabb8743d0b6fb7632a3cc3a0a8fa043af024d37
4
+ data.tar.gz: 3d7ed1ebe2c35fdee403cdbd4b4d5685ab2f7194c61b89cde49213e86e48801c
5
5
  SHA512:
6
- metadata.gz: ed5792919719290e5980e38a268559e79b4534593e5d102a0a2a0a55322911aff0139c7008f66a94a60878c4e261db29f183fb3a4b7acc8ebdb0e9a3e1e4b87f
7
- data.tar.gz: 5eb9aff67838a4f72f70fb60c776be49b2861a76014e150e118766bbf69e3a0cb90c15e4e68ed5f8e7537fe49b0c7c5d30a508327fa89d2ed43c5629e48a54e5
6
+ metadata.gz: 91ebff52258578ffb3cf80f98ba57e9ba2e3ff9502d2ff57a69b18280484549528884aa62bc9fc32f47145c6c3269de0bb7bcb835e73382186e2594f2e79bb35
7
+ data.tar.gz: 433b9556f4a4e1b7560a140ce94e227ca5e5044816424bd3236ddd5a284d90a9edb65b80e445021406e6fd8762d2c641283bd3bcd2516625ecbf12f940abd986
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-accesscontextmanager_v1
2
2
 
3
+ ### v0.51.0 (2024-11-03)
4
+
5
+ * Regenerated from discovery document revision 20241028
6
+
7
+ ### v0.50.0 (2024-10-27)
8
+
9
+ * Regenerated from discovery document revision 20241022
10
+
3
11
  ### v0.49.0 (2024-09-29)
4
12
 
5
13
  * Regenerated from discovery document revision 20240923
@@ -187,6 +187,13 @@ module Google
187
187
  # @return [Google::Apis::AccesscontextmanagerV1::ReauthSettings]
188
188
  attr_accessor :reauth_settings
189
189
 
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
+
190
197
  def initialize(**args)
191
198
  update!(**args)
192
199
  end
@@ -195,6 +202,7 @@ module Google
195
202
  def update!(**args)
196
203
  @access_levels = args[:access_levels] if args.key?(:access_levels)
197
204
  @reauth_settings = args[:reauth_settings] if args.key?(:reauth_settings)
205
+ @session_settings = args[:session_settings] if args.key?(:session_settings)
198
206
  end
199
207
  end
200
208
 
@@ -1072,6 +1080,13 @@ module Google
1072
1080
  # @return [Array<Google::Apis::AccesscontextmanagerV1::ScopedAccessSettings>]
1073
1081
  attr_accessor :scoped_access_settings
1074
1082
 
1083
+ # Stores settings related to Google Cloud Session Length including session
1084
+ # duration, the type of challenge (i.e. method) they should face when their
1085
+ # session expires, and other related settings.
1086
+ # Corresponds to the JSON property `sessionSettings`
1087
+ # @return [Google::Apis::AccesscontextmanagerV1::SessionSettings]
1088
+ attr_accessor :session_settings
1089
+
1075
1090
  def initialize(**args)
1076
1091
  update!(**args)
1077
1092
  end
@@ -1085,6 +1100,7 @@ module Google
1085
1100
  @reauth_settings = args[:reauth_settings] if args.key?(:reauth_settings)
1086
1101
  @restricted_client_applications = args[:restricted_client_applications] if args.key?(:restricted_client_applications)
1087
1102
  @scoped_access_settings = args[:scoped_access_settings] if args.key?(:scoped_access_settings)
1103
+ @session_settings = args[:session_settings] if args.key?(:session_settings)
1088
1104
  end
1089
1105
  end
1090
1106
 
@@ -2041,6 +2057,61 @@ module Google
2041
2057
  end
2042
2058
  end
2043
2059
 
2060
+ # Stores settings related to Google Cloud Session Length including session
2061
+ # duration, the type of challenge (i.e. method) they should face when their
2062
+ # session expires, and other related settings.
2063
+ class SessionSettings
2064
+ include Google::Apis::Core::Hashable
2065
+
2066
+ # Optional. How long a user is allowed to take between actions before a new
2067
+ # access token must be issued. Presently only set for Cloud Apps.
2068
+ # Corresponds to the JSON property `maxInactivity`
2069
+ # @return [String]
2070
+ attr_accessor :max_inactivity
2071
+
2072
+ # Optional. The session length. Setting this field to zero is equal to disabling.
2073
+ # Session. Also can set infinite session by flipping the enabled bit to false
2074
+ # below. If use_oidc_max_age is true, for OIDC apps, the session length will be
2075
+ # the minimum of this field and OIDC max_age param.
2076
+ # Corresponds to the JSON property `sessionLength`
2077
+ # @return [String]
2078
+ attr_accessor :session_length
2079
+
2080
+ # Optional. Big red button to turn off GCSL. When false, all fields set above
2081
+ # will be disregarded and the session length is basically infinite.
2082
+ # Corresponds to the JSON property `sessionLengthEnabled`
2083
+ # @return [Boolean]
2084
+ attr_accessor :session_length_enabled
2085
+ alias_method :session_length_enabled?, :session_length_enabled
2086
+
2087
+ # Optional. Session method when users GCP session is up.
2088
+ # Corresponds to the JSON property `sessionReauthMethod`
2089
+ # @return [String]
2090
+ attr_accessor :session_reauth_method
2091
+
2092
+ # Optional. Only useful for OIDC apps. When false, the OIDC max_age param, if
2093
+ # passed in the authentication request will be ignored. When true, the re-auth
2094
+ # period will be the minimum of the session_length field and the max_age OIDC
2095
+ # param.
2096
+ # Corresponds to the JSON property `useOidcMaxAge`
2097
+ # @return [Boolean]
2098
+ attr_accessor :use_oidc_max_age
2099
+ alias_method :use_oidc_max_age?, :use_oidc_max_age
2100
+
2101
+ def initialize(**args)
2102
+ update!(**args)
2103
+ end
2104
+
2105
+ # Update properties of this object
2106
+ def update!(**args)
2107
+ @max_inactivity = args[:max_inactivity] if args.key?(:max_inactivity)
2108
+ @session_length = args[:session_length] if args.key?(:session_length)
2109
+ @session_length_enabled = args[:session_length_enabled] if args.key?(:session_length_enabled)
2110
+ @session_reauth_method = args[:session_reauth_method] if args.key?(:session_reauth_method)
2111
+ @use_oidc_max_age = args[:use_oidc_max_age] if args.key?(:use_oidc_max_age)
2112
+ end
2113
+ end
2114
+
2044
2115
  # Request message for `SetIamPolicy` method.
2045
2116
  class SetIamPolicyRequest
2046
2117
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module AccesscontextmanagerV1
18
18
  # Version of the google-apis-accesscontextmanager_v1 gem
19
- GEM_VERSION = "0.49.0"
19
+ GEM_VERSION = "0.51.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.15.1"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20240923"
25
+ REVISION = "20241028"
26
26
  end
27
27
  end
28
28
  end
@@ -334,6 +334,12 @@ module Google
334
334
  include Google::Apis::Core::JsonObjectSupport
335
335
  end
336
336
 
337
+ class SessionSettings
338
+ class Representation < Google::Apis::Core::JsonRepresentation; end
339
+
340
+ include Google::Apis::Core::JsonObjectSupport
341
+ end
342
+
337
343
  class SetIamPolicyRequest
338
344
  class Representation < Google::Apis::Core::JsonRepresentation; end
339
345
 
@@ -426,6 +432,8 @@ module Google
426
432
  collection :access_levels, as: 'accessLevels'
427
433
  property :reauth_settings, as: 'reauthSettings', class: Google::Apis::AccesscontextmanagerV1::ReauthSettings, decorator: Google::Apis::AccesscontextmanagerV1::ReauthSettings::Representation
428
434
 
435
+ property :session_settings, as: 'sessionSettings', class: Google::Apis::AccesscontextmanagerV1::SessionSettings, decorator: Google::Apis::AccesscontextmanagerV1::SessionSettings::Representation
436
+
429
437
  end
430
438
  end
431
439
 
@@ -625,6 +633,8 @@ module Google
625
633
 
626
634
  collection :scoped_access_settings, as: 'scopedAccessSettings', class: Google::Apis::AccesscontextmanagerV1::ScopedAccessSettings, decorator: Google::Apis::AccesscontextmanagerV1::ScopedAccessSettings::Representation
627
635
 
636
+ property :session_settings, as: 'sessionSettings', class: Google::Apis::AccesscontextmanagerV1::SessionSettings, decorator: Google::Apis::AccesscontextmanagerV1::SessionSettings::Representation
637
+
628
638
  end
629
639
  end
630
640
 
@@ -877,6 +887,17 @@ module Google
877
887
  end
878
888
  end
879
889
 
890
+ class SessionSettings
891
+ # @private
892
+ class Representation < Google::Apis::Core::JsonRepresentation
893
+ property :max_inactivity, as: 'maxInactivity'
894
+ property :session_length, as: 'sessionLength'
895
+ property :session_length_enabled, as: 'sessionLengthEnabled'
896
+ property :session_reauth_method, as: 'sessionReauthMethod'
897
+ property :use_oidc_max_age, as: 'useOidcMaxAge'
898
+ end
899
+ end
900
+
880
901
  class SetIamPolicyRequest
881
902
  # @private
882
903
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1394,17 +1394,22 @@ module Google
1394
1394
  # not be specified by the client during creation. Example: "organizations/256/
1395
1395
  # gcpUserAccessBindings/b3-BhcX_Ud5N"
1396
1396
  # @param [Google::Apis::AccesscontextmanagerV1::GcpUserAccessBinding] gcp_user_access_binding_object
1397
- # @param [Boolean] append_scoped_access_settings
1398
- # Optional. This field will be used to control whether or not scoped access
1399
- # settings are appended to the existing list of scoped access settings. If true,
1400
- # the scoped access settings in the request will be appended to the existing
1401
- # list of scoped access settings. If false, the scoped access settings in the
1402
- # request replace the existing list of scoped access settings.
1397
+ # @param [Boolean] append
1398
+ # Optional. This field controls whether or not certain repeated settings in the
1399
+ # update request overwrite or append to existing settings on the binding. If
1400
+ # true, then append. Otherwise overwrite. So far, only scoped_access_settings
1401
+ # with reauth_settings supports appending. Global access_levels, access_levels
1402
+ # in scoped_access_settings, dry_run_access_levels, reauth_settings, and
1403
+ # session_settings are not compatible with append functionality, and the request
1404
+ # will return an error if append=true when these settings are in the update_mask.
1405
+ # The request will also return an error if append=true when "
1406
+ # scoped_access_settings" is not set in the update_mask.
1403
1407
  # @param [String] update_mask
1404
1408
  # Required. Only the fields specified in this mask are updated. Because name and
1405
1409
  # group_key cannot be changed, update_mask is required and may only contain the
1406
- # following fields: `access_levels`, `dry_run_access_levels`, `reauth_settings`,
1407
- # `scoped_access_settings`. update_mask ` paths: "access_levels" `
1410
+ # following fields: `access_levels`, `dry_run_access_levels`, `reauth_settings` `
1411
+ # session_settings`, `scoped_access_settings`. update_mask ` paths: "
1412
+ # access_levels" `
1408
1413
  # @param [String] fields
1409
1414
  # Selector specifying which fields to include in a partial response.
1410
1415
  # @param [String] quota_user
@@ -1422,14 +1427,14 @@ module Google
1422
1427
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1423
1428
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1424
1429
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1425
- def patch_organization_gcp_user_access_binding(name, gcp_user_access_binding_object = nil, append_scoped_access_settings: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
1430
+ def patch_organization_gcp_user_access_binding(name, gcp_user_access_binding_object = nil, append: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
1426
1431
  command = make_simple_command(:patch, 'v1/{+name}', options)
1427
1432
  command.request_representation = Google::Apis::AccesscontextmanagerV1::GcpUserAccessBinding::Representation
1428
1433
  command.request_object = gcp_user_access_binding_object
1429
1434
  command.response_representation = Google::Apis::AccesscontextmanagerV1::Operation::Representation
1430
1435
  command.response_class = Google::Apis::AccesscontextmanagerV1::Operation
1431
1436
  command.params['name'] = name unless name.nil?
1432
- command.query['appendScopedAccessSettings'] = append_scoped_access_settings unless append_scoped_access_settings.nil?
1437
+ command.query['append'] = append unless append.nil?
1433
1438
  command.query['updateMask'] = update_mask unless update_mask.nil?
1434
1439
  command.query['fields'] = fields unless fields.nil?
1435
1440
  command.query['quotaUser'] = quota_user unless quota_user.nil?
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-accesscontextmanager_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.49.0
4
+ version: 0.51.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-09-29 00:00:00.000000000 Z
11
+ date: 2024-11-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-accesscontextmanager_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-accesscontextmanager_v1/v0.49.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-accesscontextmanager_v1/v0.51.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-accesscontextmanager_v1
63
63
  post_install_message:
64
64
  rdoc_options: []
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
- rubygems_version: 3.5.6
78
+ rubygems_version: 3.5.21
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Access Context Manager API V1