google-apis-accesscontextmanager_v1 0.46.0 → 0.48.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: 2b267188ce297827737d31ae2feeab25e4ac875ef38806fa970fb0b0b9b5bf5a
4
- data.tar.gz: 7d3e7078b135bd859ea05a39e15e31733a91f8fc73f08cd5a5a3f0942f2ca65f
3
+ metadata.gz: a844175f384216a0f24f903877368f24f5782b5225a9b0af71bab60d8ebe83d8
4
+ data.tar.gz: 7227826da154e7bd1ddafe610d6ed5aaa1260084166b2ce7ad13bcbd976b84a0
5
5
  SHA512:
6
- metadata.gz: 4368e0a4732091b5e9fcc1157a7f8ff22b4d58de6972102850aa2bd00f9defeb5b9512ab9395792164c3f9fd81cda4d98db622ee0d7f6717dbc6e79e74d84f3e
7
- data.tar.gz: 9449d808fd4c8965ed73d3734fa257caf0427d4d795d6841a71e7c79421c6114227c045d5704990b550782f7de92cf5f3198040af7f2c4fa1764214ef9c83d0c
6
+ metadata.gz: 6c0eac976f6fc7e98f4a8d46cab1fa67e45d9a9373cd75e5ca5d25eecef0fb25c0250a95bffef6fbfbe37c25ff823d318e4000b99f47d9240794be5ef2445fa0
7
+ data.tar.gz: 5480edb4b71115961e68e249987c4a5ccdd149be84983ff9cab00fade1c0fa599c0d97f102ca47ad1cc666a0bfbc0a818e0cebdf0b1759927ad62c6e74df25ea
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Release history for google-apis-accesscontextmanager_v1
2
2
 
3
+ ### v0.48.0 (2024-09-15)
4
+
5
+ * Regenerated from discovery document revision 20240908
6
+
7
+ ### v0.47.0 (2024-08-18)
8
+
9
+ * Regenerated from discovery document revision 20240811
10
+ * Regenerated using generator version 0.15.1
11
+
3
12
  ### v0.46.0 (2024-06-26)
4
13
 
5
14
  * Regenerated from discovery document revision 20240623
@@ -147,6 +147,57 @@ module Google
147
147
  end
148
148
  end
149
149
 
150
+ # Access scope represents the client scope, etc. to which the settings will be
151
+ # applied to.
152
+ class AccessScope
153
+ include Google::Apis::Core::Hashable
154
+
155
+ # Client scope represents the application, etc. subject to this binding's
156
+ # restrictions.
157
+ # Corresponds to the JSON property `clientScope`
158
+ # @return [Google::Apis::AccesscontextmanagerV1::ClientScope]
159
+ attr_accessor :client_scope
160
+
161
+ def initialize(**args)
162
+ update!(**args)
163
+ end
164
+
165
+ # Update properties of this object
166
+ def update!(**args)
167
+ @client_scope = args[:client_scope] if args.key?(:client_scope)
168
+ end
169
+ end
170
+
171
+ # Access settings represent the set of conditions that must be met for access to
172
+ # be granted. At least one of the fields must be set.
173
+ class AccessSettings
174
+ include Google::Apis::Core::Hashable
175
+
176
+ # Optional. Access level that a user must have to be granted access. Only one
177
+ # access level is supported, not multiple. This repeated field must have exactly
178
+ # one element. Example: "accessPolicies/9522/accessLevels/device_trusted"
179
+ # Corresponds to the JSON property `accessLevels`
180
+ # @return [Array<String>]
181
+ attr_accessor :access_levels
182
+
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
+
190
+ def initialize(**args)
191
+ update!(**args)
192
+ end
193
+
194
+ # Update properties of this object
195
+ def update!(**args)
196
+ @access_levels = args[:access_levels] if args.key?(:access_levels)
197
+ @reauth_settings = args[:reauth_settings] if args.key?(:reauth_settings)
198
+ end
199
+ end
200
+
150
201
  # Identification for an API Operation.
151
202
  class ApiOperation
152
203
  include Google::Apis::Core::Hashable
@@ -477,6 +528,26 @@ module Google
477
528
  end
478
529
  end
479
530
 
531
+ # Client scope represents the application, etc. subject to this binding's
532
+ # restrictions.
533
+ class ClientScope
534
+ include Google::Apis::Core::Hashable
535
+
536
+ # An application that accesses Google Cloud APIs.
537
+ # Corresponds to the JSON property `restrictedClientApplication`
538
+ # @return [Google::Apis::AccesscontextmanagerV1::Application]
539
+ attr_accessor :restricted_client_application
540
+
541
+ def initialize(**args)
542
+ update!(**args)
543
+ end
544
+
545
+ # Update properties of this object
546
+ def update!(**args)
547
+ @restricted_client_application = args[:restricted_client_application] if args.key?(:restricted_client_application)
548
+ end
549
+ end
550
+
480
551
  # A request to commit dry-run specs in all Service Perimeters belonging to an
481
552
  # Access Policy.
482
553
  class CommitServicePerimetersRequest
@@ -709,9 +780,10 @@ module Google
709
780
 
710
781
  # A list of identities that are allowed access through [EgressPolicy].
711
782
  # Identities can be an individual user, service account, Google group, or third-
712
- # party identity. The `v1` identities that have the prefix `user`, `group`, `
713
- # serviceAccount`, `principal`, and `principalSet` in https://cloud.google.com/
714
- # iam/docs/principal-identifiers#v1 are supported.
783
+ # party identity. For third-party identity, only single identities are supported
784
+ # and other identity types are not supported. The `v1` identities that have the
785
+ # prefix `user`, `group`, `serviceAccount`, and `principal` in https://cloud.
786
+ # google.com/iam/docs/principal-identifiers#v1 are supported.
715
787
  # Corresponds to the JSON property `identities`
716
788
  # @return [Array<String>]
717
789
  attr_accessor :identities
@@ -979,6 +1051,13 @@ module Google
979
1051
  # @return [String]
980
1052
  attr_accessor :name
981
1053
 
1054
+ # Stores settings related to Google Cloud Session Length including session
1055
+ # duration, the type of challenge (i.e. method) they should face when their
1056
+ # session expires, and other related settings.
1057
+ # Corresponds to the JSON property `reauthSettings`
1058
+ # @return [Google::Apis::AccesscontextmanagerV1::ReauthSettings]
1059
+ attr_accessor :reauth_settings
1060
+
982
1061
  # Optional. A list of applications that are subject to this binding's
983
1062
  # restrictions. If the list is empty, the binding restrictions will universally
984
1063
  # apply to all applications.
@@ -986,6 +1065,13 @@ module Google
986
1065
  # @return [Array<Google::Apis::AccesscontextmanagerV1::Application>]
987
1066
  attr_accessor :restricted_client_applications
988
1067
 
1068
+ # Optional. A list of scoped access settings that set this binding's
1069
+ # restrictions on a subset of applications. This field cannot be set if
1070
+ # restricted_client_applications is set.
1071
+ # Corresponds to the JSON property `scopedAccessSettings`
1072
+ # @return [Array<Google::Apis::AccesscontextmanagerV1::ScopedAccessSettings>]
1073
+ attr_accessor :scoped_access_settings
1074
+
989
1075
  def initialize(**args)
990
1076
  update!(**args)
991
1077
  end
@@ -996,7 +1082,9 @@ module Google
996
1082
  @dry_run_access_levels = args[:dry_run_access_levels] if args.key?(:dry_run_access_levels)
997
1083
  @group_key = args[:group_key] if args.key?(:group_key)
998
1084
  @name = args[:name] if args.key?(:name)
1085
+ @reauth_settings = args[:reauth_settings] if args.key?(:reauth_settings)
999
1086
  @restricted_client_applications = args[:restricted_client_applications] if args.key?(:restricted_client_applications)
1087
+ @scoped_access_settings = args[:scoped_access_settings] if args.key?(:scoped_access_settings)
1000
1088
  end
1001
1089
  end
1002
1090
 
@@ -1069,9 +1157,10 @@ module Google
1069
1157
 
1070
1158
  # A list of identities that are allowed access through [IngressPolicy].
1071
1159
  # Identities can be an individual user, service account, Google group, or third-
1072
- # party identity. The `v1` identities that have the prefix `user`, `group`, `
1073
- # serviceAccount`, `principal`, and `principalSet` in https://cloud.google.com/
1074
- # iam/docs/principal-identifiers#v1 are supported.
1160
+ # party identity. For third-party identity, only single identities are supported
1161
+ # and other identity types are not supported. The `v1` identities that have the
1162
+ # prefix `user`, `group`, `serviceAccount`, and `principal` in https://cloud.
1163
+ # google.com/iam/docs/principal-identifiers#v1 are supported.
1075
1164
  # Corresponds to the JSON property `identities`
1076
1165
  # @return [Array<String>]
1077
1166
  attr_accessor :identities
@@ -1612,6 +1701,61 @@ module Google
1612
1701
  end
1613
1702
  end
1614
1703
 
1704
+ # Stores settings related to Google Cloud Session Length including session
1705
+ # duration, the type of challenge (i.e. method) they should face when their
1706
+ # session expires, and other related settings.
1707
+ class ReauthSettings
1708
+ include Google::Apis::Core::Hashable
1709
+
1710
+ # Optional. How long a user is allowed to take between actions before a new
1711
+ # access token must be issued. Presently only set for Cloud Apps.
1712
+ # Corresponds to the JSON property `maxInactivity`
1713
+ # @return [String]
1714
+ attr_accessor :max_inactivity
1715
+
1716
+ # Optional. Reauth method when users GCP session is up.
1717
+ # Corresponds to the JSON property `reauthMethod`
1718
+ # @return [String]
1719
+ attr_accessor :reauth_method
1720
+
1721
+ # Optional. The session length. Setting this field to zero is equal to disabling.
1722
+ # Reauth. Also can set infinite session by flipping the enabled bit to false
1723
+ # below. If use_oidc_max_age is true, for OIDC apps, the session length will be
1724
+ # the minimum of this field and OIDC max_age param.
1725
+ # Corresponds to the JSON property `sessionLength`
1726
+ # @return [String]
1727
+ attr_accessor :session_length
1728
+
1729
+ # Optional. Big red button to turn off GCSL. When false, all fields set above
1730
+ # will be disregarded and the session length is basically infinite.
1731
+ # Corresponds to the JSON property `sessionLengthEnabled`
1732
+ # @return [Boolean]
1733
+ attr_accessor :session_length_enabled
1734
+ alias_method :session_length_enabled?, :session_length_enabled
1735
+
1736
+ # Optional. Only useful for OIDC apps. When false, the OIDC max_age param, if
1737
+ # passed in the authentication request will be ignored. When true, the re-auth
1738
+ # period will be the minimum of the session_length field and the max_age OIDC
1739
+ # param.
1740
+ # Corresponds to the JSON property `useOidcMaxAge`
1741
+ # @return [Boolean]
1742
+ attr_accessor :use_oidc_max_age
1743
+ alias_method :use_oidc_max_age?, :use_oidc_max_age
1744
+
1745
+ def initialize(**args)
1746
+ update!(**args)
1747
+ end
1748
+
1749
+ # Update properties of this object
1750
+ def update!(**args)
1751
+ @max_inactivity = args[:max_inactivity] if args.key?(:max_inactivity)
1752
+ @reauth_method = args[:reauth_method] if args.key?(:reauth_method)
1753
+ @session_length = args[:session_length] if args.key?(:session_length)
1754
+ @session_length_enabled = args[:session_length_enabled] if args.key?(:session_length_enabled)
1755
+ @use_oidc_max_age = args[:use_oidc_max_age] if args.key?(:use_oidc_max_age)
1756
+ end
1757
+ end
1758
+
1615
1759
  # A request to replace all existing Access Levels in an Access Policy with the
1616
1760
  # Access Levels provided. This is done atomically.
1617
1761
  class ReplaceAccessLevelsRequest
@@ -1716,6 +1860,40 @@ module Google
1716
1860
  end
1717
1861
  end
1718
1862
 
1863
+ # A relationship between access settings and its scope.
1864
+ class ScopedAccessSettings
1865
+ include Google::Apis::Core::Hashable
1866
+
1867
+ # Access settings represent the set of conditions that must be met for access to
1868
+ # be granted. At least one of the fields must be set.
1869
+ # Corresponds to the JSON property `activeSettings`
1870
+ # @return [Google::Apis::AccesscontextmanagerV1::AccessSettings]
1871
+ attr_accessor :active_settings
1872
+
1873
+ # Access settings represent the set of conditions that must be met for access to
1874
+ # be granted. At least one of the fields must be set.
1875
+ # Corresponds to the JSON property `dryRunSettings`
1876
+ # @return [Google::Apis::AccesscontextmanagerV1::AccessSettings]
1877
+ attr_accessor :dry_run_settings
1878
+
1879
+ # Access scope represents the client scope, etc. to which the settings will be
1880
+ # applied to.
1881
+ # Corresponds to the JSON property `scope`
1882
+ # @return [Google::Apis::AccesscontextmanagerV1::AccessScope]
1883
+ attr_accessor :scope
1884
+
1885
+ def initialize(**args)
1886
+ update!(**args)
1887
+ end
1888
+
1889
+ # Update properties of this object
1890
+ def update!(**args)
1891
+ @active_settings = args[:active_settings] if args.key?(:active_settings)
1892
+ @dry_run_settings = args[:dry_run_settings] if args.key?(:dry_run_settings)
1893
+ @scope = args[:scope] if args.key?(:scope)
1894
+ end
1895
+ end
1896
+
1719
1897
  # `ServicePerimeter` describes a set of Google Cloud resources which can freely
1720
1898
  # import and export data amongst themselves, but not export outside of the `
1721
1899
  # ServicePerimeter`. If a request with a source within this `ServicePerimeter`
@@ -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.46.0"
19
+ GEM_VERSION = "0.48.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.15.0"
22
+ GENERATOR_VERSION = "0.15.1"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20240623"
25
+ REVISION = "20240908"
26
26
  end
27
27
  end
28
28
  end
@@ -40,6 +40,18 @@ module Google
40
40
  include Google::Apis::Core::JsonObjectSupport
41
41
  end
42
42
 
43
+ class AccessScope
44
+ class Representation < Google::Apis::Core::JsonRepresentation; end
45
+
46
+ include Google::Apis::Core::JsonObjectSupport
47
+ end
48
+
49
+ class AccessSettings
50
+ class Representation < Google::Apis::Core::JsonRepresentation; end
51
+
52
+ include Google::Apis::Core::JsonObjectSupport
53
+ end
54
+
43
55
  class ApiOperation
44
56
  class Representation < Google::Apis::Core::JsonRepresentation; end
45
57
 
@@ -88,6 +100,12 @@ module Google
88
100
  include Google::Apis::Core::JsonObjectSupport
89
101
  end
90
102
 
103
+ class ClientScope
104
+ class Representation < Google::Apis::Core::JsonRepresentation; end
105
+
106
+ include Google::Apis::Core::JsonObjectSupport
107
+ end
108
+
91
109
  class CommitServicePerimetersRequest
92
110
  class Representation < Google::Apis::Core::JsonRepresentation; end
93
111
 
@@ -268,6 +286,12 @@ module Google
268
286
  include Google::Apis::Core::JsonObjectSupport
269
287
  end
270
288
 
289
+ class ReauthSettings
290
+ class Representation < Google::Apis::Core::JsonRepresentation; end
291
+
292
+ include Google::Apis::Core::JsonObjectSupport
293
+ end
294
+
271
295
  class ReplaceAccessLevelsRequest
272
296
  class Representation < Google::Apis::Core::JsonRepresentation; end
273
297
 
@@ -292,6 +316,12 @@ module Google
292
316
  include Google::Apis::Core::JsonObjectSupport
293
317
  end
294
318
 
319
+ class ScopedAccessSettings
320
+ class Representation < Google::Apis::Core::JsonRepresentation; end
321
+
322
+ include Google::Apis::Core::JsonObjectSupport
323
+ end
324
+
295
325
  class ServicePerimeter
296
326
  class Representation < Google::Apis::Core::JsonRepresentation; end
297
327
 
@@ -382,6 +412,23 @@ module Google
382
412
  end
383
413
  end
384
414
 
415
+ class AccessScope
416
+ # @private
417
+ class Representation < Google::Apis::Core::JsonRepresentation
418
+ property :client_scope, as: 'clientScope', class: Google::Apis::AccesscontextmanagerV1::ClientScope, decorator: Google::Apis::AccesscontextmanagerV1::ClientScope::Representation
419
+
420
+ end
421
+ end
422
+
423
+ class AccessSettings
424
+ # @private
425
+ class Representation < Google::Apis::Core::JsonRepresentation
426
+ collection :access_levels, as: 'accessLevels'
427
+ property :reauth_settings, as: 'reauthSettings', class: Google::Apis::AccesscontextmanagerV1::ReauthSettings, decorator: Google::Apis::AccesscontextmanagerV1::ReauthSettings::Representation
428
+
429
+ end
430
+ end
431
+
385
432
  class ApiOperation
386
433
  # @private
387
434
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -452,6 +499,14 @@ module Google
452
499
  end
453
500
  end
454
501
 
502
+ class ClientScope
503
+ # @private
504
+ class Representation < Google::Apis::Core::JsonRepresentation
505
+ property :restricted_client_application, as: 'restrictedClientApplication', class: Google::Apis::AccesscontextmanagerV1::Application, decorator: Google::Apis::AccesscontextmanagerV1::Application::Representation
506
+
507
+ end
508
+ end
509
+
455
510
  class CommitServicePerimetersRequest
456
511
  # @private
457
512
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -564,8 +619,12 @@ module Google
564
619
  collection :dry_run_access_levels, as: 'dryRunAccessLevels'
565
620
  property :group_key, as: 'groupKey'
566
621
  property :name, as: 'name'
622
+ property :reauth_settings, as: 'reauthSettings', class: Google::Apis::AccesscontextmanagerV1::ReauthSettings, decorator: Google::Apis::AccesscontextmanagerV1::ReauthSettings::Representation
623
+
567
624
  collection :restricted_client_applications, as: 'restrictedClientApplications', class: Google::Apis::AccesscontextmanagerV1::Application, decorator: Google::Apis::AccesscontextmanagerV1::Application::Representation
568
625
 
626
+ collection :scoped_access_settings, as: 'scopedAccessSettings', class: Google::Apis::AccesscontextmanagerV1::ScopedAccessSettings, decorator: Google::Apis::AccesscontextmanagerV1::ScopedAccessSettings::Representation
627
+
569
628
  end
570
629
  end
571
630
 
@@ -731,6 +790,17 @@ module Google
731
790
  end
732
791
  end
733
792
 
793
+ class ReauthSettings
794
+ # @private
795
+ class Representation < Google::Apis::Core::JsonRepresentation
796
+ property :max_inactivity, as: 'maxInactivity'
797
+ property :reauth_method, as: 'reauthMethod'
798
+ property :session_length, as: 'sessionLength'
799
+ property :session_length_enabled, as: 'sessionLengthEnabled'
800
+ property :use_oidc_max_age, as: 'useOidcMaxAge'
801
+ end
802
+ end
803
+
734
804
  class ReplaceAccessLevelsRequest
735
805
  # @private
736
806
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -765,6 +835,18 @@ module Google
765
835
  end
766
836
  end
767
837
 
838
+ class ScopedAccessSettings
839
+ # @private
840
+ class Representation < Google::Apis::Core::JsonRepresentation
841
+ property :active_settings, as: 'activeSettings', class: Google::Apis::AccesscontextmanagerV1::AccessSettings, decorator: Google::Apis::AccesscontextmanagerV1::AccessSettings::Representation
842
+
843
+ property :dry_run_settings, as: 'dryRunSettings', class: Google::Apis::AccesscontextmanagerV1::AccessSettings, decorator: Google::Apis::AccesscontextmanagerV1::AccessSettings::Representation
844
+
845
+ property :scope, as: 'scope', class: Google::Apis::AccesscontextmanagerV1::AccessScope, decorator: Google::Apis::AccesscontextmanagerV1::AccessScope::Representation
846
+
847
+ end
848
+ end
849
+
768
850
  class ServicePerimeter
769
851
  # @private
770
852
  class Representation < Google::Apis::Core::JsonRepresentation
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.46.0
4
+ version: 0.48.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-06-27 00:00:00.000000000 Z
11
+ date: 2024-09-15 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.46.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-accesscontextmanager_v1/v0.48.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: []