google-apis-iam_v1 0.47.0 → 0.49.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: d7bb0023edc2d5574b4a4ebf1f21cb2683a513d86c431c5280c401d1790c10b6
4
- data.tar.gz: ce2ecdc1111a0ff1c165db5c502c4d0bd06da0fb6424a61670e7e3615c0c2784
3
+ metadata.gz: 0cd5e621e083dc212348540b04481cfcd228000340ece55a9d6cbda833fde40a
4
+ data.tar.gz: 280fd54ed76ab00873456fb14036f64124a8240baab6256c62947a843954eb4b
5
5
  SHA512:
6
- metadata.gz: 310270adb4fb12b07738de6e1f938ae37c2dda036a53c17545b6eb71ae4d8232fed618b5b7379524613d3b0179ee83d305e7cd4d04262e0ea6cb72b06ea6c448
7
- data.tar.gz: 34ebd8e9ed7c910bd377278e3f846cba6155bb35ad8f04d90deae83662dda24247de80b75d08d0cbc88e3018b41f7bd8c42c2afa1ac1c9bd2f06ecf21c5bb89f
6
+ metadata.gz: 573823a293360b2ab7de5b923889fe46cd8a086a416beb2a1a0cadf240d1426557cde7b43afb8dff2fc23def76f653728745067baf66d16e8550bf99bf7bc311
7
+ data.tar.gz: 057c49a4bad2c1414fcd848d5ce982c54011fce87e51569078e751d13e973cb1d3024fbd7136344646e24a5514e638616395717eb4f8edc1eb3ea623cdfdcbb8
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-iam_v1
2
2
 
3
+ ### v0.49.0 (2023-09-24)
4
+
5
+ * Regenerated from discovery document revision 20230914
6
+
7
+ ### v0.48.0 (2023-08-13)
8
+
9
+ * Regenerated from discovery document revision 20230803
10
+
3
11
  ### v0.47.0 (2023-07-23)
4
12
 
5
13
  * Regenerated from discovery document revision 20230713
@@ -581,6 +581,17 @@ module Google
581
581
  # @return [String]
582
582
  attr_accessor :issuer_uri
583
583
 
584
+ # OIDC JWKs in JSON String format. For details on the definition of a JWK, see
585
+ # https://tools.ietf.org/html/rfc7517. If not set, the `jwks_uri` from the
586
+ # discovery document(fetched from the .well-known path of the `issuer_uri`) will
587
+ # be used. Currently, RSA and EC asymmetric keys are supported. The JWK must use
588
+ # following format and include only the following fields: ` "keys": [ ` "kty": "
589
+ # RSA/EC", "alg": "", "use": "sig", "kid": "", "n": "", "e": "", "x": "", "y": ""
590
+ # , "crv": "" ` ] `
591
+ # Corresponds to the JSON property `jwksJson`
592
+ # @return [String]
593
+ attr_accessor :jwks_json
594
+
584
595
  # Configuration for web single sign-on for the OIDC provider.
585
596
  # Corresponds to the JSON property `webSsoConfig`
586
597
  # @return [Google::Apis::IamV1::GoogleIamAdminV1WorkforcePoolProviderOidcWebSsoConfig]
@@ -595,6 +606,7 @@ module Google
595
606
  @client_id = args[:client_id] if args.key?(:client_id)
596
607
  @client_secret = args[:client_secret] if args.key?(:client_secret)
597
608
  @issuer_uri = args[:issuer_uri] if args.key?(:issuer_uri)
609
+ @jwks_json = args[:jwks_json] if args.key?(:jwks_json)
598
610
  @web_sso_config = args[:web_sso_config] if args.key?(:web_sso_config)
599
611
  end
600
612
  end
@@ -693,7 +705,7 @@ module Google
693
705
  # document should satisfy the following constraints: 1) Must contain an Identity
694
706
  # Provider Entity ID. 2) Must contain at least one non-expired signing key
695
707
  # 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)
708
+ # days from now. b) Valid to should be no more than 15 years in the future. 4)
697
709
  # Up to 3 IdP signing keys are allowed in the metadata xml. When updating the
698
710
  # provider's metadata xml, at least one non-expired signing key must overlap
699
711
  # with the existing metadata. This requirement is skipped if there are no non-
@@ -1188,13 +1200,13 @@ module Google
1188
1200
  # @return [String]
1189
1201
  attr_accessor :name
1190
1202
 
1191
- # The normal response of the operation in case of success. If the original
1192
- # method returns no data on success, such as `Delete`, the response is `google.
1193
- # protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`,
1194
- # the response should be the resource. For other methods, the response should
1195
- # have the type `XxxResponse`, where `Xxx` is the original method name. For
1196
- # example, if the original method name is `TakeSnapshot()`, the inferred
1197
- # response type is `TakeSnapshotResponse`.
1203
+ # The normal, successful response of the operation. If the original method
1204
+ # returns no data on success, such as `Delete`, the response is `google.protobuf.
1205
+ # Empty`. If the original method is standard `Get`/`Create`/`Update`, the
1206
+ # response should be the resource. For other methods, the response should have
1207
+ # the type `XxxResponse`, where `Xxx` is the original method name. For example,
1208
+ # if the original method name is `TakeSnapshot()`, the inferred response type is
1209
+ # `TakeSnapshotResponse`.
1198
1210
  # Corresponds to the JSON property `response`
1199
1211
  # @return [Hash<String,Object>]
1200
1212
  attr_accessor :response
@@ -1213,6 +1225,65 @@ module Google
1213
1225
  end
1214
1226
  end
1215
1227
 
1228
+ # Represents the metadata of the long-running operation.
1229
+ class OperationMetadata
1230
+ include Google::Apis::Core::Hashable
1231
+
1232
+ # Output only. API version used to start the operation.
1233
+ # Corresponds to the JSON property `apiVersion`
1234
+ # @return [String]
1235
+ attr_accessor :api_version
1236
+
1237
+ # Output only. Identifies whether the user has requested cancellation of the
1238
+ # operation. Operations that have been cancelled successfully have Operation.
1239
+ # error value with a google.rpc.Status.code of 1, corresponding to `Code.
1240
+ # CANCELLED`.
1241
+ # Corresponds to the JSON property `cancelRequested`
1242
+ # @return [Boolean]
1243
+ attr_accessor :cancel_requested
1244
+ alias_method :cancel_requested?, :cancel_requested
1245
+
1246
+ # Output only. The time the operation was created.
1247
+ # Corresponds to the JSON property `createTime`
1248
+ # @return [String]
1249
+ attr_accessor :create_time
1250
+
1251
+ # Output only. The time the operation finished running.
1252
+ # Corresponds to the JSON property `endTime`
1253
+ # @return [String]
1254
+ attr_accessor :end_time
1255
+
1256
+ # Output only. Human-readable status of the operation, if any.
1257
+ # Corresponds to the JSON property `statusDetail`
1258
+ # @return [String]
1259
+ attr_accessor :status_detail
1260
+
1261
+ # Output only. Server-defined resource path for the target of the operation.
1262
+ # Corresponds to the JSON property `target`
1263
+ # @return [String]
1264
+ attr_accessor :target
1265
+
1266
+ # Output only. Name of the verb executed by the operation.
1267
+ # Corresponds to the JSON property `verb`
1268
+ # @return [String]
1269
+ attr_accessor :verb
1270
+
1271
+ def initialize(**args)
1272
+ update!(**args)
1273
+ end
1274
+
1275
+ # Update properties of this object
1276
+ def update!(**args)
1277
+ @api_version = args[:api_version] if args.key?(:api_version)
1278
+ @cancel_requested = args[:cancel_requested] if args.key?(:cancel_requested)
1279
+ @create_time = args[:create_time] if args.key?(:create_time)
1280
+ @end_time = args[:end_time] if args.key?(:end_time)
1281
+ @status_detail = args[:status_detail] if args.key?(:status_detail)
1282
+ @target = args[:target] if args.key?(:target)
1283
+ @verb = args[:verb] if args.key?(:verb)
1284
+ end
1285
+ end
1286
+
1216
1287
  # The service account patch request. You can patch only the `display_name` and `
1217
1288
  # description` fields. You must use the `update_mask` field to specify which of
1218
1289
  # these fields you want to patch. Only the fields specified in the request are
@@ -1350,22 +1421,22 @@ module Google
1350
1421
  # evaluates to `true`. A condition can add constraints based on attributes of
1351
1422
  # the request, the resource, or both. To learn which resources support
1352
1423
  # conditions in their IAM policies, see the [IAM documentation](https://cloud.
1353
- # google.com/iam/help/conditions/resource-policies). **JSON example:** ` "
1424
+ # google.com/iam/help/conditions/resource-policies). **JSON example:** ``` ` "
1354
1425
  # bindings": [ ` "role": "roles/resourcemanager.organizationAdmin", "members": [
1355
1426
  # "user:mike@example.com", "group:admins@example.com", "domain:google.com", "
1356
1427
  # serviceAccount:my-project-id@appspot.gserviceaccount.com" ] `, ` "role": "
1357
1428
  # roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com"
1358
1429
  # ], "condition": ` "title": "expirable access", "description": "Does not grant
1359
1430
  # access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:
1360
- # 00:00.000Z')", ` ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:**
1361
- # bindings: - members: - user:mike@example.com - group:admins@example.com -
1362
- # domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com
1363
- # role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.
1364
- # com role: roles/resourcemanager.organizationViewer condition: title: expirable
1365
- # access description: Does not grant access after Sep 2020 expression: request.
1366
- # time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For
1367
- # a description of IAM and its features, see the [IAM documentation](https://
1368
- # cloud.google.com/iam/docs/).
1431
+ # 00:00.000Z')", ` ` ], "etag": "BwWWja0YfJA=", "version": 3 ` ``` **YAML
1432
+ # example:** ``` bindings: - members: - user:mike@example.com - group:admins@
1433
+ # example.com - domain:google.com - serviceAccount:my-project-id@appspot.
1434
+ # gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: -
1435
+ # user:eve@example.com role: roles/resourcemanager.organizationViewer condition:
1436
+ # title: expirable access description: Does not grant access after Sep 2020
1437
+ # expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag:
1438
+ # BwWWja0YfJA= version: 3 ``` For a description of IAM and its features, see the
1439
+ # [IAM documentation](https://cloud.google.com/iam/docs/).
1369
1440
  class Policy
1370
1441
  include Google::Apis::Core::Hashable
1371
1442
 
@@ -1700,7 +1771,7 @@ module Google
1700
1771
  # The metadata xml document should satisfy the following constraints: 1) Must
1701
1772
  # contain an Identity Provider Entity ID. 2) Must contain at least one non-
1702
1773
  # 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
1774
+ # be no more than 7 days from now. b) Valid to should be no more than 15 years
1704
1775
  # in the future. 4) Upto 3 IdP signing keys are allowed in the metadata xml.
1705
1776
  # When updating the provider's metadata xml, at lease one non-expired signing
1706
1777
  # key must overlap with the existing metadata. This requirement is skipped if
@@ -1924,22 +1995,22 @@ module Google
1924
1995
  # evaluates to `true`. A condition can add constraints based on attributes of
1925
1996
  # the request, the resource, or both. To learn which resources support
1926
1997
  # conditions in their IAM policies, see the [IAM documentation](https://cloud.
1927
- # google.com/iam/help/conditions/resource-policies). **JSON example:** ` "
1998
+ # google.com/iam/help/conditions/resource-policies). **JSON example:** ``` ` "
1928
1999
  # bindings": [ ` "role": "roles/resourcemanager.organizationAdmin", "members": [
1929
2000
  # "user:mike@example.com", "group:admins@example.com", "domain:google.com", "
1930
2001
  # serviceAccount:my-project-id@appspot.gserviceaccount.com" ] `, ` "role": "
1931
2002
  # roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com"
1932
2003
  # ], "condition": ` "title": "expirable access", "description": "Does not grant
1933
2004
  # access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:
1934
- # 00:00.000Z')", ` ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:**
1935
- # bindings: - members: - user:mike@example.com - group:admins@example.com -
1936
- # domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com
1937
- # role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.
1938
- # com role: roles/resourcemanager.organizationViewer condition: title: expirable
1939
- # access description: Does not grant access after Sep 2020 expression: request.
1940
- # time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For
1941
- # a description of IAM and its features, see the [IAM documentation](https://
1942
- # cloud.google.com/iam/docs/).
2005
+ # 00:00.000Z')", ` ` ], "etag": "BwWWja0YfJA=", "version": 3 ` ``` **YAML
2006
+ # example:** ``` bindings: - members: - user:mike@example.com - group:admins@
2007
+ # example.com - domain:google.com - serviceAccount:my-project-id@appspot.
2008
+ # gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: -
2009
+ # user:eve@example.com role: roles/resourcemanager.organizationViewer condition:
2010
+ # title: expirable access description: Does not grant access after Sep 2020
2011
+ # expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag:
2012
+ # BwWWja0YfJA= version: 3 ``` For a description of IAM and its features, see the
2013
+ # [IAM documentation](https://cloud.google.com/iam/docs/).
1943
2014
  # Corresponds to the JSON property `policy`
1944
2015
  # @return [Google::Apis::IamV1::Policy]
1945
2016
  attr_accessor :policy
@@ -2564,8 +2635,8 @@ module Google
2564
2635
  end
2565
2636
  end
2566
2637
 
2567
- # Represents a collection of external workload identities. You can define IAM
2568
- # policies to grant these identities access to Google Cloud resources.
2638
+ # Represents a collection of workload identities. You can define IAM policies to
2639
+ # grant these identities access to Google Cloud resources.
2569
2640
  class WorkloadIdentityPool
2570
2641
  include Google::Apis::Core::Hashable
2571
2642
 
@@ -2651,10 +2722,10 @@ module Google
2651
2722
  # @return [String]
2652
2723
  attr_accessor :attribute_condition
2653
2724
 
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
2725
+ # Maps attributes from authentication credentials issued by an external
2726
+ # identity provider to Google Cloud attributes, such as `subject` and `segment`.
2727
+ # Each key must be a string specifying the Google Cloud IAM attribute to map to.
2728
+ # The following keys are supported: * `google.subject`: The principal IAM is
2658
2729
  # authenticating. You can reference this value in IAM bindings. This is also the
2659
2730
  # subject that appears in Cloud Logging logs. Cannot exceed 127 bytes. * `google.
2660
2731
  # 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.47.0"
19
+ GEM_VERSION = "0.49.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 = "20230713"
25
+ REVISION = "20230914"
26
26
  end
27
27
  end
28
28
  end
@@ -256,6 +256,12 @@ module Google
256
256
  include Google::Apis::Core::JsonObjectSupport
257
257
  end
258
258
 
259
+ class OperationMetadata
260
+ class Representation < Google::Apis::Core::JsonRepresentation; end
261
+
262
+ include Google::Apis::Core::JsonObjectSupport
263
+ end
264
+
259
265
  class PatchServiceAccountRequest
260
266
  class Representation < Google::Apis::Core::JsonRepresentation; end
261
267
 
@@ -658,6 +664,7 @@ module Google
658
664
  property :client_secret, as: 'clientSecret', class: Google::Apis::IamV1::GoogleIamAdminV1WorkforcePoolProviderOidcClientSecret, decorator: Google::Apis::IamV1::GoogleIamAdminV1WorkforcePoolProviderOidcClientSecret::Representation
659
665
 
660
666
  property :issuer_uri, as: 'issuerUri'
667
+ property :jwks_json, as: 'jwksJson'
661
668
  property :web_sso_config, as: 'webSsoConfig', class: Google::Apis::IamV1::GoogleIamAdminV1WorkforcePoolProviderOidcWebSsoConfig, decorator: Google::Apis::IamV1::GoogleIamAdminV1WorkforcePoolProviderOidcWebSsoConfig::Representation
662
669
 
663
670
  end
@@ -836,6 +843,19 @@ module Google
836
843
  end
837
844
  end
838
845
 
846
+ class OperationMetadata
847
+ # @private
848
+ class Representation < Google::Apis::Core::JsonRepresentation
849
+ property :api_version, as: 'apiVersion'
850
+ property :cancel_requested, as: 'cancelRequested'
851
+ property :create_time, as: 'createTime'
852
+ property :end_time, as: 'endTime'
853
+ property :status_detail, as: 'statusDetail'
854
+ property :target, as: 'target'
855
+ property :verb, as: 'verb'
856
+ end
857
+ end
858
+
839
859
  class PatchServiceAccountRequest
840
860
  # @private
841
861
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -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.47.0
4
+ version: 0.49.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-07-23 00:00:00.000000000 Z
11
+ date: 2023-09-24 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.47.0
62
+ documentation_uri: https://googleapis.dev/ruby/google-apis-iam_v1/v0.49.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