google-apis-iam_v1 0.48.0 → 0.50.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: 80680c6014090f33e526f2150a119f6a81bb848d56334778f7d265cd3401a05b
4
- data.tar.gz: 3543caf14ecb6bcce85cdf565a1d731bc00e42cd84b9d29245809535cfba09c2
3
+ metadata.gz: 29fd4d76fd1a49edf7fb094299d604a2d49182dd0c129753bbe14cd48f278716
4
+ data.tar.gz: a86ef64379fa26c52b2576517cd11643ea9024ec45a9a901ddcf6074b78f0d02
5
5
  SHA512:
6
- metadata.gz: d9e80b4d5108f2ea9db7719d98ce03c09882f24287139652ae156c58ab2068676f77ff15113b479ef34094ca7806501ef363532094cb6c4e58328fb07e992e87
7
- data.tar.gz: 92791710bf581edae9eee972ad4b55cc31ea5d6d67ae4ab8a1d192a27cb92b4a277289f0df9280553b071f4edbfd0d4d33f42f93bdaca401993a8d888dfe6e73
6
+ metadata.gz: be9461b6b4f105b12d45c9ff0c33bd3bcab80e0ee0b3aef910cc9274d89923e02485e7b3c5d8e23f868c4550beb5af1ed472208c8dbfe8936e13750371120e9b
7
+ data.tar.gz: 478457a6de643c887df475038b43c21e6665f4586256dbd7470367c7729b7955dadb2fe9af5bad2f9aa89bcfbbef627805e1ba1b80f24927dc68e4f73eceafed
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-iam_v1
2
2
 
3
+ ### v0.50.0 (2023-11-05)
4
+
5
+ * Regenerated from discovery document revision 20231026
6
+
7
+ ### v0.49.0 (2023-09-24)
8
+
9
+ * Regenerated from discovery document revision 20230914
10
+
3
11
  ### v0.48.0 (2023-08-13)
4
12
 
5
13
  * Regenerated from discovery document revision 20230803
@@ -22,6 +22,35 @@ module Google
22
22
  module Apis
23
23
  module IamV1
24
24
 
25
+ # Access related restrictions on the workforce pool.
26
+ class AccessRestrictions
27
+ include Google::Apis::Core::Hashable
28
+
29
+ # Optional. Immutable. Services allowed for web sign-in with the workforce pool.
30
+ # If not set by default there are no restrictions.
31
+ # Corresponds to the JSON property `allowedServices`
32
+ # @return [Array<Google::Apis::IamV1::ServiceConfig>]
33
+ attr_accessor :allowed_services
34
+
35
+ # Optional. Disable programmatic sign-in by disabling token issue via the
36
+ # Security Token API endpoint. See [Security Token Service API] (https://cloud.
37
+ # google.com/iam/docs/reference/sts/rest).
38
+ # Corresponds to the JSON property `disableProgrammaticSignin`
39
+ # @return [Boolean]
40
+ attr_accessor :disable_programmatic_signin
41
+ alias_method :disable_programmatic_signin?, :disable_programmatic_signin
42
+
43
+ def initialize(**args)
44
+ update!(**args)
45
+ end
46
+
47
+ # Update properties of this object
48
+ def update!(**args)
49
+ @allowed_services = args[:allowed_services] if args.key?(:allowed_services)
50
+ @disable_programmatic_signin = args[:disable_programmatic_signin] if args.key?(:disable_programmatic_signin)
51
+ end
52
+ end
53
+
25
54
  # Audit log information specific to Cloud IAM admin APIs. This message is
26
55
  # serialized as an `Any` type in the `ServiceData` message of an `AuditLog`
27
56
  # message.
@@ -581,6 +610,17 @@ module Google
581
610
  # @return [String]
582
611
  attr_accessor :issuer_uri
583
612
 
613
+ # OIDC JWKs in JSON String format. For details on the definition of a JWK, see
614
+ # https://tools.ietf.org/html/rfc7517. If not set, the `jwks_uri` from the
615
+ # discovery document(fetched from the .well-known path of the `issuer_uri`) will
616
+ # be used. Currently, RSA and EC asymmetric keys are supported. The JWK must use
617
+ # following format and include only the following fields: ` "keys": [ ` "kty": "
618
+ # RSA/EC", "alg": "", "use": "sig", "kid": "", "n": "", "e": "", "x": "", "y": ""
619
+ # , "crv": "" ` ] `
620
+ # Corresponds to the JSON property `jwksJson`
621
+ # @return [String]
622
+ attr_accessor :jwks_json
623
+
584
624
  # Configuration for web single sign-on for the OIDC provider.
585
625
  # Corresponds to the JSON property `webSsoConfig`
586
626
  # @return [Google::Apis::IamV1::GoogleIamAdminV1WorkforcePoolProviderOidcWebSsoConfig]
@@ -595,6 +635,7 @@ module Google
595
635
  @client_id = args[:client_id] if args.key?(:client_id)
596
636
  @client_secret = args[:client_secret] if args.key?(:client_secret)
597
637
  @issuer_uri = args[:issuer_uri] if args.key?(:issuer_uri)
638
+ @jwks_json = args[:jwks_json] if args.key?(:jwks_json)
598
639
  @web_sso_config = args[:web_sso_config] if args.key?(:web_sso_config)
599
640
  end
600
641
  end
@@ -693,7 +734,7 @@ module Google
693
734
  # document should satisfy the following constraints: 1) Must contain an Identity
694
735
  # Provider Entity ID. 2) Must contain at least one non-expired signing key
695
736
  # certificate. 3) For each signing key: a) Valid from should be no more than 7
696
- # days from now. b) Valid to should be no more than 14 years in the future. 4)
737
+ # days from now. b) Valid to should be no more than 15 years in the future. 4)
697
738
  # Up to 3 IdP signing keys are allowed in the metadata xml. When updating the
698
739
  # provider's metadata xml, at least one non-expired signing key must overlap
699
740
  # with the existing metadata. This requirement is skipped if there are no non-
@@ -1213,6 +1254,65 @@ module Google
1213
1254
  end
1214
1255
  end
1215
1256
 
1257
+ # Represents the metadata of the long-running operation.
1258
+ class OperationMetadata
1259
+ include Google::Apis::Core::Hashable
1260
+
1261
+ # Output only. API version used to start the operation.
1262
+ # Corresponds to the JSON property `apiVersion`
1263
+ # @return [String]
1264
+ attr_accessor :api_version
1265
+
1266
+ # Output only. Identifies whether the user has requested cancellation of the
1267
+ # operation. Operations that have been cancelled successfully have Operation.
1268
+ # error value with a google.rpc.Status.code of 1, corresponding to `Code.
1269
+ # CANCELLED`.
1270
+ # Corresponds to the JSON property `cancelRequested`
1271
+ # @return [Boolean]
1272
+ attr_accessor :cancel_requested
1273
+ alias_method :cancel_requested?, :cancel_requested
1274
+
1275
+ # Output only. The time the operation was created.
1276
+ # Corresponds to the JSON property `createTime`
1277
+ # @return [String]
1278
+ attr_accessor :create_time
1279
+
1280
+ # Output only. The time the operation finished running.
1281
+ # Corresponds to the JSON property `endTime`
1282
+ # @return [String]
1283
+ attr_accessor :end_time
1284
+
1285
+ # Output only. Human-readable status of the operation, if any.
1286
+ # Corresponds to the JSON property `statusDetail`
1287
+ # @return [String]
1288
+ attr_accessor :status_detail
1289
+
1290
+ # Output only. Server-defined resource path for the target of the operation.
1291
+ # Corresponds to the JSON property `target`
1292
+ # @return [String]
1293
+ attr_accessor :target
1294
+
1295
+ # Output only. Name of the verb executed by the operation.
1296
+ # Corresponds to the JSON property `verb`
1297
+ # @return [String]
1298
+ attr_accessor :verb
1299
+
1300
+ def initialize(**args)
1301
+ update!(**args)
1302
+ end
1303
+
1304
+ # Update properties of this object
1305
+ def update!(**args)
1306
+ @api_version = args[:api_version] if args.key?(:api_version)
1307
+ @cancel_requested = args[:cancel_requested] if args.key?(:cancel_requested)
1308
+ @create_time = args[:create_time] if args.key?(:create_time)
1309
+ @end_time = args[:end_time] if args.key?(:end_time)
1310
+ @status_detail = args[:status_detail] if args.key?(:status_detail)
1311
+ @target = args[:target] if args.key?(:target)
1312
+ @verb = args[:verb] if args.key?(:verb)
1313
+ end
1314
+ end
1315
+
1216
1316
  # The service account patch request. You can patch only the `display_name` and `
1217
1317
  # description` fields. You must use the `update_mask` field to specify which of
1218
1318
  # these fields you want to patch. Only the fields specified in the request are
@@ -1700,7 +1800,7 @@ module Google
1700
1800
  # The metadata xml document should satisfy the following constraints: 1) Must
1701
1801
  # contain an Identity Provider Entity ID. 2) Must contain at least one non-
1702
1802
  # expired signing key certificate. 3) For each signing key: a) Valid from should
1703
- # be no more than 7 days from now. b) Valid to should be no more than 14 years
1803
+ # be no more than 7 days from now. b) Valid to should be no more than 15 years
1704
1804
  # in the future. 4) Upto 3 IdP signing keys are allowed in the metadata xml.
1705
1805
  # When updating the provider's metadata xml, at lease one non-expired signing
1706
1806
  # key must overlap with the existing metadata. This requirement is skipped if
@@ -1909,6 +2009,25 @@ module Google
1909
2009
  end
1910
2010
  end
1911
2011
 
2012
+ # Configuration for a service.
2013
+ class ServiceConfig
2014
+ include Google::Apis::Core::Hashable
2015
+
2016
+ # Optional. Domain name of the service. Example: console.cloud.google
2017
+ # Corresponds to the JSON property `domain`
2018
+ # @return [String]
2019
+ attr_accessor :domain
2020
+
2021
+ def initialize(**args)
2022
+ update!(**args)
2023
+ end
2024
+
2025
+ # Update properties of this object
2026
+ def update!(**args)
2027
+ @domain = args[:domain] if args.key?(:domain)
2028
+ end
2029
+ end
2030
+
1912
2031
  # Request message for `SetIamPolicy` method.
1913
2032
  class SetIamPolicyRequest
1914
2033
  include Google::Apis::Core::Hashable
@@ -2323,6 +2442,11 @@ module Google
2323
2442
  class WorkforcePool
2324
2443
  include Google::Apis::Core::Hashable
2325
2444
 
2445
+ # Access related restrictions on the workforce pool.
2446
+ # Corresponds to the JSON property `accessRestrictions`
2447
+ # @return [Google::Apis::IamV1::AccessRestrictions]
2448
+ attr_accessor :access_restrictions
2449
+
2326
2450
  # A user-specified description of the pool. Cannot exceed 256 characters.
2327
2451
  # Corresponds to the JSON property `description`
2328
2452
  # @return [String]
@@ -2380,6 +2504,7 @@ module Google
2380
2504
 
2381
2505
  # Update properties of this object
2382
2506
  def update!(**args)
2507
+ @access_restrictions = args[:access_restrictions] if args.key?(:access_restrictions)
2383
2508
  @description = args[:description] if args.key?(:description)
2384
2509
  @disabled = args[:disabled] if args.key?(:disabled)
2385
2510
  @display_name = args[:display_name] if args.key?(:display_name)
@@ -2564,8 +2689,8 @@ module Google
2564
2689
  end
2565
2690
  end
2566
2691
 
2567
- # Represents a collection of external workload identities. You can define IAM
2568
- # policies to grant these identities access to Google Cloud resources.
2692
+ # Represents a collection of workload identities. You can define IAM policies to
2693
+ # grant these identities access to Google Cloud resources.
2569
2694
  class WorkloadIdentityPool
2570
2695
  include Google::Apis::Core::Hashable
2571
2696
 
@@ -2651,10 +2776,10 @@ module Google
2651
2776
  # @return [String]
2652
2777
  attr_accessor :attribute_condition
2653
2778
 
2654
- # Maps attributes from authentication credentials issued by an external identity
2655
- # provider to Google Cloud attributes, such as `subject` and `segment`. Each key
2656
- # must be a string specifying the Google Cloud IAM attribute to map to. The
2657
- # following keys are supported: * `google.subject`: The principal IAM is
2779
+ # Maps attributes from authentication credentials issued by an external
2780
+ # identity provider to Google Cloud attributes, such as `subject` and `segment`.
2781
+ # Each key must be a string specifying the Google Cloud IAM attribute to map to.
2782
+ # The following keys are supported: * `google.subject`: The principal IAM is
2658
2783
  # authenticating. You can reference this value in IAM bindings. This is also the
2659
2784
  # subject that appears in Cloud Logging logs. Cannot exceed 127 bytes. * `google.
2660
2785
  # groups`: Groups the external identity belongs to. You can grant groups access
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module IamV1
18
18
  # Version of the google-apis-iam_v1 gem
19
- GEM_VERSION = "0.48.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.12.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20230803"
25
+ REVISION = "20231026"
26
26
  end
27
27
  end
28
28
  end
@@ -22,6 +22,12 @@ module Google
22
22
  module Apis
23
23
  module IamV1
24
24
 
25
+ class AccessRestrictions
26
+ class Representation < Google::Apis::Core::JsonRepresentation; end
27
+
28
+ include Google::Apis::Core::JsonObjectSupport
29
+ end
30
+
25
31
  class AdminAuditData
26
32
  class Representation < Google::Apis::Core::JsonRepresentation; end
27
33
 
@@ -256,6 +262,12 @@ module Google
256
262
  include Google::Apis::Core::JsonObjectSupport
257
263
  end
258
264
 
265
+ class OperationMetadata
266
+ class Representation < Google::Apis::Core::JsonRepresentation; end
267
+
268
+ include Google::Apis::Core::JsonObjectSupport
269
+ end
270
+
259
271
  class PatchServiceAccountRequest
260
272
  class Representation < Google::Apis::Core::JsonRepresentation; end
261
273
 
@@ -346,6 +358,12 @@ module Google
346
358
  include Google::Apis::Core::JsonObjectSupport
347
359
  end
348
360
 
361
+ class ServiceConfig
362
+ class Representation < Google::Apis::Core::JsonRepresentation; end
363
+
364
+ include Google::Apis::Core::JsonObjectSupport
365
+ end
366
+
349
367
  class SetIamPolicyRequest
350
368
  class Representation < Google::Apis::Core::JsonRepresentation; end
351
369
 
@@ -502,6 +520,15 @@ module Google
502
520
  include Google::Apis::Core::JsonObjectSupport
503
521
  end
504
522
 
523
+ class AccessRestrictions
524
+ # @private
525
+ class Representation < Google::Apis::Core::JsonRepresentation
526
+ collection :allowed_services, as: 'allowedServices', class: Google::Apis::IamV1::ServiceConfig, decorator: Google::Apis::IamV1::ServiceConfig::Representation
527
+
528
+ property :disable_programmatic_signin, as: 'disableProgrammaticSignin'
529
+ end
530
+ end
531
+
505
532
  class AdminAuditData
506
533
  # @private
507
534
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -658,6 +685,7 @@ module Google
658
685
  property :client_secret, as: 'clientSecret', class: Google::Apis::IamV1::GoogleIamAdminV1WorkforcePoolProviderOidcClientSecret, decorator: Google::Apis::IamV1::GoogleIamAdminV1WorkforcePoolProviderOidcClientSecret::Representation
659
686
 
660
687
  property :issuer_uri, as: 'issuerUri'
688
+ property :jwks_json, as: 'jwksJson'
661
689
  property :web_sso_config, as: 'webSsoConfig', class: Google::Apis::IamV1::GoogleIamAdminV1WorkforcePoolProviderOidcWebSsoConfig, decorator: Google::Apis::IamV1::GoogleIamAdminV1WorkforcePoolProviderOidcWebSsoConfig::Representation
662
690
 
663
691
  end
@@ -836,6 +864,19 @@ module Google
836
864
  end
837
865
  end
838
866
 
867
+ class OperationMetadata
868
+ # @private
869
+ class Representation < Google::Apis::Core::JsonRepresentation
870
+ property :api_version, as: 'apiVersion'
871
+ property :cancel_requested, as: 'cancelRequested'
872
+ property :create_time, as: 'createTime'
873
+ property :end_time, as: 'endTime'
874
+ property :status_detail, as: 'statusDetail'
875
+ property :target, as: 'target'
876
+ property :verb, as: 'verb'
877
+ end
878
+ end
879
+
839
880
  class PatchServiceAccountRequest
840
881
  # @private
841
882
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -990,6 +1031,13 @@ module Google
990
1031
  end
991
1032
  end
992
1033
 
1034
+ class ServiceConfig
1035
+ # @private
1036
+ class Representation < Google::Apis::Core::JsonRepresentation
1037
+ property :domain, as: 'domain'
1038
+ end
1039
+ end
1040
+
993
1041
  class SetIamPolicyRequest
994
1042
  # @private
995
1043
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1125,6 +1173,8 @@ module Google
1125
1173
  class WorkforcePool
1126
1174
  # @private
1127
1175
  class Representation < Google::Apis::Core::JsonRepresentation
1176
+ property :access_restrictions, as: 'accessRestrictions', class: Google::Apis::IamV1::AccessRestrictions, decorator: Google::Apis::IamV1::AccessRestrictions::Representation
1177
+
1128
1178
  property :description, as: 'description'
1129
1179
  property :disabled, as: 'disabled'
1130
1180
  property :display_name, as: 'displayName'
@@ -1716,37 +1716,6 @@ module Google
1716
1716
  execute_or_queue_command(command, &block)
1717
1717
  end
1718
1718
 
1719
- # Gets the latest state of a long-running operation. Clients can use this method
1720
- # to poll the operation result at intervals as recommended by the API service.
1721
- # @param [String] name
1722
- # The name of the operation resource.
1723
- # @param [String] fields
1724
- # Selector specifying which fields to include in a partial response.
1725
- # @param [String] quota_user
1726
- # Available to use for quota purposes for server-side applications. Can be any
1727
- # arbitrary string assigned to a user, but should not exceed 40 characters.
1728
- # @param [Google::Apis::RequestOptions] options
1729
- # Request-specific options
1730
- #
1731
- # @yield [result, err] Result & error if block supplied
1732
- # @yieldparam result [Google::Apis::IamV1::Operation] parsed result object
1733
- # @yieldparam err [StandardError] error object if request failed
1734
- #
1735
- # @return [Google::Apis::IamV1::Operation]
1736
- #
1737
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1738
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1739
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1740
- def get_project_location_workload_identity_pool_namespace_workload_source_operation(name, fields: nil, quota_user: nil, options: nil, &block)
1741
- command = make_simple_command(:get, 'v1/{+name}', options)
1742
- command.response_representation = Google::Apis::IamV1::Operation::Representation
1743
- command.response_class = Google::Apis::IamV1::Operation
1744
- command.params['name'] = name unless name.nil?
1745
- command.query['fields'] = fields unless fields.nil?
1746
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1747
- execute_or_queue_command(command, &block)
1748
- end
1749
-
1750
1719
  # Gets the latest state of a long-running operation. Clients can use this method
1751
1720
  # to poll the operation result at intervals as recommended by the API service.
1752
1721
  # @param [String] name
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-iam_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.48.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: 2023-08-20 00:00:00.000000000 Z
11
+ date: 2023-11-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -59,7 +59,7 @@ licenses:
59
59
  metadata:
60
60
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
61
61
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-iam_v1/CHANGELOG.md
62
- documentation_uri: https://googleapis.dev/ruby/google-apis-iam_v1/v0.48.0
62
+ documentation_uri: https://googleapis.dev/ruby/google-apis-iam_v1/v0.50.0
63
63
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-iam_v1
64
64
  post_install_message:
65
65
  rdoc_options: []
@@ -76,7 +76,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
76
76
  - !ruby/object:Gem::Version
77
77
  version: '0'
78
78
  requirements: []
79
- rubygems_version: 3.4.2
79
+ rubygems_version: 3.4.19
80
80
  signing_key:
81
81
  specification_version: 4
82
82
  summary: Simple REST client for Identity and Access Management (IAM) API V1