google-apis-accesscontextmanager_v1 0.49.0 → 0.50.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/google/apis/accesscontextmanager_v1/classes.rb +64 -1
- data/lib/google/apis/accesscontextmanager_v1/gem_version.rb +2 -2
- data/lib/google/apis/accesscontextmanager_v1/representations.rb +19 -0
- data/lib/google/apis/accesscontextmanager_v1/service.rb +14 -10
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1e88997a017859654b25d16d243d31516d5581774777c3cdc7fc87e198695f88
|
4
|
+
data.tar.gz: 952d9c6aff6bdf214bdc9a222e8a6932540d06c2f3d860d661d3e29c3e749dd2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 145239d19c1e5a536e457f4d3d9ad6d2c6d15dd8d88b9d5f6a63b0235e44570aeb0314867b90d13097a3cb3a9b7d98ba10bf9586ffea1e863370ad44540df6bf
|
7
|
+
data.tar.gz: 1c730b4086067e94f1857849ec6684686546c7997212591ce97daabc37099e7569459fd23ab656fa13c9fc932d7755d18a7bbc6a9858a535595be0a72ad5978d
|
data/CHANGELOG.md
CHANGED
@@ -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
|
|
@@ -1013,7 +1021,7 @@ module Google
|
|
1013
1021
|
end
|
1014
1022
|
|
1015
1023
|
# 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
|
1017
1025
|
class GcpUserAccessBinding
|
1018
1026
|
include Google::Apis::Core::Hashable
|
1019
1027
|
|
@@ -2041,6 +2049,61 @@ module Google
|
|
2041
2049
|
end
|
2042
2050
|
end
|
2043
2051
|
|
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
|
+
|
2044
2107
|
# Request message for `SetIamPolicy` method.
|
2045
2108
|
class SetIamPolicyRequest
|
2046
2109
|
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.
|
19
|
+
GEM_VERSION = "0.50.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 = "
|
25
|
+
REVISION = "20241022"
|
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
|
|
@@ -877,6 +885,17 @@ module Google
|
|
877
885
|
end
|
878
886
|
end
|
879
887
|
|
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
|
+
|
880
899
|
class SetIamPolicyRequest
|
881
900
|
# @private
|
882
901
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1394,17 +1394,21 @@ 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]
|
1398
|
-
# Optional. This field
|
1399
|
-
#
|
1400
|
-
#
|
1401
|
-
#
|
1402
|
-
#
|
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
|
+
# 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.
|
1403
1406
|
# @param [String] update_mask
|
1404
1407
|
# Required. Only the fields specified in this mask are updated. Because name and
|
1405
1408
|
# 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: "
|
1409
|
+
# following fields: `access_levels`, `dry_run_access_levels`, `reauth_settings` `
|
1410
|
+
# session_settings`, `scoped_access_settings`. update_mask ` paths: "
|
1411
|
+
# access_levels" `
|
1408
1412
|
# @param [String] fields
|
1409
1413
|
# Selector specifying which fields to include in a partial response.
|
1410
1414
|
# @param [String] quota_user
|
@@ -1422,14 +1426,14 @@ module Google
|
|
1422
1426
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1423
1427
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1424
1428
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1425
|
-
def patch_organization_gcp_user_access_binding(name, gcp_user_access_binding_object = nil,
|
1429
|
+
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
1430
|
command = make_simple_command(:patch, 'v1/{+name}', options)
|
1427
1431
|
command.request_representation = Google::Apis::AccesscontextmanagerV1::GcpUserAccessBinding::Representation
|
1428
1432
|
command.request_object = gcp_user_access_binding_object
|
1429
1433
|
command.response_representation = Google::Apis::AccesscontextmanagerV1::Operation::Representation
|
1430
1434
|
command.response_class = Google::Apis::AccesscontextmanagerV1::Operation
|
1431
1435
|
command.params['name'] = name unless name.nil?
|
1432
|
-
command.query['
|
1436
|
+
command.query['append'] = append unless append.nil?
|
1433
1437
|
command.query['updateMask'] = update_mask unless update_mask.nil?
|
1434
1438
|
command.query['fields'] = fields unless fields.nil?
|
1435
1439
|
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.
|
4
|
+
version: 0.50.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-
|
11
|
+
date: 2024-10-27 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.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-accesscontextmanager_v1/v0.50.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.
|
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
|