google-apis-identitytoolkit_v2 0.14.0 → 0.15.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: e03e135d0641f5ea14781a483bf8a09bbaef51f43b70bd856b1bae8a1780d5e5
4
- data.tar.gz: d6fb3d23683fe27698a6172de883287cf52337f481f091fdae53c0ef0e53168c
3
+ metadata.gz: 5d794517390b4ead950c937c6b6472e4bf4ee70a46aba6eac33f7a01df94b3a9
4
+ data.tar.gz: ea3dc5b35c4f27684e8246de2b741a3cc983952f1d8724f467795ceecaf0a323
5
5
  SHA512:
6
- metadata.gz: 9160d9dbeb46c8e5fc4e17399c5aea891caaeb7dccd4a67a497e79cb523abb705421b167f5ce8a1235b2b0bb49ac41b9ddec6f8177eb7f1f6f05cce7e2062735
7
- data.tar.gz: 7f6f615fc8dc7c2813f1358120a329353a1fe962d7dd2a9c92d839bdaa920ef19e11f7d51a7ae1e586aba06b818d51d4b2f66a190d85db90b34ed0f5b2e46e4f
6
+ metadata.gz: 13a682fdc7457d4d33355fca209d35573c4f7c66dcd8b48db21541e2c4b1d49fefca94401208820705eca83add92ce344ca06078f1ecc38ec9f9c45e1a628415
7
+ data.tar.gz: b1b7846d9a63e396be1f86173459834f89d3201f059bc3bbecfe04ba1710fcafce3feeb5ac490ca814008d7ca738124edf313ac44efdeef0380cee1e7a8152cf
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-identitytoolkit_v2
2
2
 
3
+ ### v0.15.0 (2023-08-13)
4
+
5
+ * Regenerated from discovery document revision 20230804
6
+
3
7
  ### v0.14.0 (2023-07-16)
4
8
 
5
9
  * Regenerated from discovery document revision 20230707
@@ -1233,6 +1233,40 @@ module Google
1233
1233
  end
1234
1234
  end
1235
1235
 
1236
+ # Configuration for signing in users using passkeys.
1237
+ class GoogleCloudIdentitytoolkitAdminV2PasskeyConfig
1238
+ include Google::Apis::Core::Hashable
1239
+
1240
+ # Required. The website or app origins associated with the customer's sites or
1241
+ # apps. Only challenges signed from these origins will be allowed to sign in
1242
+ # with passkeys.
1243
+ # Corresponds to the JSON property `expectedOrigins`
1244
+ # @return [Array<String>]
1245
+ attr_accessor :expected_origins
1246
+
1247
+ # Required. The name of the PasskeyConfig resource.
1248
+ # Corresponds to the JSON property `name`
1249
+ # @return [String]
1250
+ attr_accessor :name
1251
+
1252
+ # Required. The relying party ID for the purpose of passkeys verifications. This
1253
+ # cannot be changed once created.
1254
+ # Corresponds to the JSON property `rpId`
1255
+ # @return [String]
1256
+ attr_accessor :rp_id
1257
+
1258
+ def initialize(**args)
1259
+ update!(**args)
1260
+ end
1261
+
1262
+ # Update properties of this object
1263
+ def update!(**args)
1264
+ @expected_origins = args[:expected_origins] if args.key?(:expected_origins)
1265
+ @name = args[:name] if args.key?(:name)
1266
+ @rp_id = args[:rp_id] if args.key?(:rp_id)
1267
+ end
1268
+ end
1269
+
1236
1270
  # The configuration for the password policy on the project.
1237
1271
  class GoogleCloudIdentitytoolkitAdminV2PasswordPolicyConfig
1238
1272
  include Google::Apis::Core::Hashable
@@ -3099,22 +3133,22 @@ module Google
3099
3133
  # evaluates to `true`. A condition can add constraints based on attributes of
3100
3134
  # the request, the resource, or both. To learn which resources support
3101
3135
  # conditions in their IAM policies, see the [IAM documentation](https://cloud.
3102
- # google.com/iam/help/conditions/resource-policies). **JSON example:** ` "
3136
+ # google.com/iam/help/conditions/resource-policies). **JSON example:** ``` ` "
3103
3137
  # bindings": [ ` "role": "roles/resourcemanager.organizationAdmin", "members": [
3104
3138
  # "user:mike@example.com", "group:admins@example.com", "domain:google.com", "
3105
3139
  # serviceAccount:my-project-id@appspot.gserviceaccount.com" ] `, ` "role": "
3106
3140
  # roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com"
3107
3141
  # ], "condition": ` "title": "expirable access", "description": "Does not grant
3108
3142
  # access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:
3109
- # 00:00.000Z')", ` ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:**
3110
- # bindings: - members: - user:mike@example.com - group:admins@example.com -
3111
- # domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com
3112
- # role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.
3113
- # com role: roles/resourcemanager.organizationViewer condition: title: expirable
3114
- # access description: Does not grant access after Sep 2020 expression: request.
3115
- # time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For
3116
- # a description of IAM and its features, see the [IAM documentation](https://
3117
- # cloud.google.com/iam/docs/).
3143
+ # 00:00.000Z')", ` ` ], "etag": "BwWWja0YfJA=", "version": 3 ` ``` **YAML
3144
+ # example:** ``` bindings: - members: - user:mike@example.com - group:admins@
3145
+ # example.com - domain:google.com - serviceAccount:my-project-id@appspot.
3146
+ # gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: -
3147
+ # user:eve@example.com role: roles/resourcemanager.organizationViewer condition:
3148
+ # title: expirable access description: Does not grant access after Sep 2020
3149
+ # expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag:
3150
+ # BwWWja0YfJA= version: 3 ``` For a description of IAM and its features, see the
3151
+ # [IAM documentation](https://cloud.google.com/iam/docs/).
3118
3152
  class GoogleIamV1Policy
3119
3153
  include Google::Apis::Core::Hashable
3120
3154
 
@@ -3198,22 +3232,22 @@ module Google
3198
3232
  # evaluates to `true`. A condition can add constraints based on attributes of
3199
3233
  # the request, the resource, or both. To learn which resources support
3200
3234
  # conditions in their IAM policies, see the [IAM documentation](https://cloud.
3201
- # google.com/iam/help/conditions/resource-policies). **JSON example:** ` "
3235
+ # google.com/iam/help/conditions/resource-policies). **JSON example:** ``` ` "
3202
3236
  # bindings": [ ` "role": "roles/resourcemanager.organizationAdmin", "members": [
3203
3237
  # "user:mike@example.com", "group:admins@example.com", "domain:google.com", "
3204
3238
  # serviceAccount:my-project-id@appspot.gserviceaccount.com" ] `, ` "role": "
3205
3239
  # roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com"
3206
3240
  # ], "condition": ` "title": "expirable access", "description": "Does not grant
3207
3241
  # access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:
3208
- # 00:00.000Z')", ` ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:**
3209
- # bindings: - members: - user:mike@example.com - group:admins@example.com -
3210
- # domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com
3211
- # role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.
3212
- # com role: roles/resourcemanager.organizationViewer condition: title: expirable
3213
- # access description: Does not grant access after Sep 2020 expression: request.
3214
- # time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For
3215
- # a description of IAM and its features, see the [IAM documentation](https://
3216
- # cloud.google.com/iam/docs/).
3242
+ # 00:00.000Z')", ` ` ], "etag": "BwWWja0YfJA=", "version": 3 ` ``` **YAML
3243
+ # example:** ``` bindings: - members: - user:mike@example.com - group:admins@
3244
+ # example.com - domain:google.com - serviceAccount:my-project-id@appspot.
3245
+ # gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: -
3246
+ # user:eve@example.com role: roles/resourcemanager.organizationViewer condition:
3247
+ # title: expirable access description: Does not grant access after Sep 2020
3248
+ # expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag:
3249
+ # BwWWja0YfJA= version: 3 ``` For a description of IAM and its features, see the
3250
+ # [IAM documentation](https://cloud.google.com/iam/docs/).
3217
3251
  # Corresponds to the JSON property `policy`
3218
3252
  # @return [Google::Apis::IdentitytoolkitV2::GoogleIamV1Policy]
3219
3253
  attr_accessor :policy
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module IdentitytoolkitV2
18
18
  # Version of the google-apis-identitytoolkit_v2 gem
19
- GEM_VERSION = "0.14.0"
19
+ GEM_VERSION = "0.15.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 = "20230707"
25
+ REVISION = "20230804"
26
26
  end
27
27
  end
28
28
  end
@@ -238,6 +238,12 @@ module Google
238
238
  include Google::Apis::Core::JsonObjectSupport
239
239
  end
240
240
 
241
+ class GoogleCloudIdentitytoolkitAdminV2PasskeyConfig
242
+ class Representation < Google::Apis::Core::JsonRepresentation; end
243
+
244
+ include Google::Apis::Core::JsonObjectSupport
245
+ end
246
+
241
247
  class GoogleCloudIdentitytoolkitAdminV2PasswordPolicyConfig
242
248
  class Representation < Google::Apis::Core::JsonRepresentation; end
243
249
 
@@ -947,6 +953,15 @@ module Google
947
953
  end
948
954
  end
949
955
 
956
+ class GoogleCloudIdentitytoolkitAdminV2PasskeyConfig
957
+ # @private
958
+ class Representation < Google::Apis::Core::JsonRepresentation
959
+ collection :expected_origins, as: 'expectedOrigins'
960
+ property :name, as: 'name'
961
+ property :rp_id, as: 'rpId'
962
+ end
963
+ end
964
+
950
965
  class GoogleCloudIdentitytoolkitAdminV2PasswordPolicyConfig
951
966
  # @private
952
967
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -298,6 +298,37 @@ module Google
298
298
  execute_or_queue_command(command, &block)
299
299
  end
300
300
 
301
+ # Retrieve a passkey configuration for an Identity Toolkit project.
302
+ # @param [String] name
303
+ # Required. The resource name of the config, for example: 'projects/my-awesome-
304
+ # project/passkeyConfig'.
305
+ # @param [String] fields
306
+ # Selector specifying which fields to include in a partial response.
307
+ # @param [String] quota_user
308
+ # Available to use for quota purposes for server-side applications. Can be any
309
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
310
+ # @param [Google::Apis::RequestOptions] options
311
+ # Request-specific options
312
+ #
313
+ # @yield [result, err] Result & error if block supplied
314
+ # @yieldparam result [Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2PasskeyConfig] parsed result object
315
+ # @yieldparam err [StandardError] error object if request failed
316
+ #
317
+ # @return [Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2PasskeyConfig]
318
+ #
319
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
320
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
321
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
322
+ def get_project_passkey_config(name, fields: nil, quota_user: nil, options: nil, &block)
323
+ command = make_simple_command(:get, 'v2/{+name}', options)
324
+ command.response_representation = Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2PasskeyConfig::Representation
325
+ command.response_class = Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2PasskeyConfig
326
+ command.params['name'] = name unless name.nil?
327
+ command.query['fields'] = fields unless fields.nil?
328
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
329
+ execute_or_queue_command(command, &block)
330
+ end
331
+
301
332
  # Update an Identity Toolkit project configuration.
302
333
  # @param [String] name
303
334
  # Output only. The name of the Config resource. Example: "projects/my-awesome-
@@ -338,6 +369,45 @@ module Google
338
369
  execute_or_queue_command(command, &block)
339
370
  end
340
371
 
372
+ # Update a passkey configuration for an Identity Toolkit project.
373
+ # @param [String] name
374
+ # Required. The name of the PasskeyConfig resource.
375
+ # @param [Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2PasskeyConfig] google_cloud_identitytoolkit_admin_v2_passkey_config_object
376
+ # @param [String] update_mask
377
+ # Optional. The update mask applies to the resource. Empty update mask will
378
+ # result in updating nothing. For the `FieldMask` definition, see https://
379
+ # developers.google.com/protocol-buffers/docs/reference/google.protobuf#
380
+ # fieldmask
381
+ # @param [String] fields
382
+ # Selector specifying which fields to include in a partial response.
383
+ # @param [String] quota_user
384
+ # Available to use for quota purposes for server-side applications. Can be any
385
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
386
+ # @param [Google::Apis::RequestOptions] options
387
+ # Request-specific options
388
+ #
389
+ # @yield [result, err] Result & error if block supplied
390
+ # @yieldparam result [Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2PasskeyConfig] parsed result object
391
+ # @yieldparam err [StandardError] error object if request failed
392
+ #
393
+ # @return [Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2PasskeyConfig]
394
+ #
395
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
396
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
397
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
398
+ def update_project_passkey_config(name, google_cloud_identitytoolkit_admin_v2_passkey_config_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
399
+ command = make_simple_command(:patch, 'v2/{+name}', options)
400
+ command.request_representation = Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2PasskeyConfig::Representation
401
+ command.request_object = google_cloud_identitytoolkit_admin_v2_passkey_config_object
402
+ command.response_representation = Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2PasskeyConfig::Representation
403
+ command.response_class = Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2PasskeyConfig
404
+ command.params['name'] = name unless name.nil?
405
+ command.query['updateMask'] = update_mask unless update_mask.nil?
406
+ command.query['fields'] = fields unless fields.nil?
407
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
408
+ execute_or_queue_command(command, &block)
409
+ end
410
+
341
411
  # Create a default supported Idp configuration for an Identity Toolkit project.
342
412
  # @param [String] parent
343
413
  # The parent resource name where the config to be created, for example: "
@@ -1031,6 +1101,37 @@ module Google
1031
1101
  execute_or_queue_command(command, &block)
1032
1102
  end
1033
1103
 
1104
+ # Retrieve a passkey configuration for an Identity Toolkit project.
1105
+ # @param [String] name
1106
+ # Required. The resource name of the config, for example: 'projects/my-awesome-
1107
+ # project/passkeyConfig'.
1108
+ # @param [String] fields
1109
+ # Selector specifying which fields to include in a partial response.
1110
+ # @param [String] quota_user
1111
+ # Available to use for quota purposes for server-side applications. Can be any
1112
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1113
+ # @param [Google::Apis::RequestOptions] options
1114
+ # Request-specific options
1115
+ #
1116
+ # @yield [result, err] Result & error if block supplied
1117
+ # @yieldparam result [Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2PasskeyConfig] parsed result object
1118
+ # @yieldparam err [StandardError] error object if request failed
1119
+ #
1120
+ # @return [Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2PasskeyConfig]
1121
+ #
1122
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1123
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1124
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1125
+ def get_project_tenant_passkey_config(name, fields: nil, quota_user: nil, options: nil, &block)
1126
+ command = make_simple_command(:get, 'v2/{+name}', options)
1127
+ command.response_representation = Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2PasskeyConfig::Representation
1128
+ command.response_class = Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2PasskeyConfig
1129
+ command.params['name'] = name unless name.nil?
1130
+ command.query['fields'] = fields unless fields.nil?
1131
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1132
+ execute_or_queue_command(command, &block)
1133
+ end
1134
+
1034
1135
  # List tenants under the given agent project. Requires read permission on the
1035
1136
  # Agent project.
1036
1137
  # @param [String] parent
@@ -1182,6 +1283,45 @@ module Google
1182
1283
  execute_or_queue_command(command, &block)
1183
1284
  end
1184
1285
 
1286
+ # Update a passkey configuration for an Identity Toolkit project.
1287
+ # @param [String] name
1288
+ # Required. The name of the PasskeyConfig resource.
1289
+ # @param [Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2PasskeyConfig] google_cloud_identitytoolkit_admin_v2_passkey_config_object
1290
+ # @param [String] update_mask
1291
+ # Optional. The update mask applies to the resource. Empty update mask will
1292
+ # result in updating nothing. For the `FieldMask` definition, see https://
1293
+ # developers.google.com/protocol-buffers/docs/reference/google.protobuf#
1294
+ # fieldmask
1295
+ # @param [String] fields
1296
+ # Selector specifying which fields to include in a partial response.
1297
+ # @param [String] quota_user
1298
+ # Available to use for quota purposes for server-side applications. Can be any
1299
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1300
+ # @param [Google::Apis::RequestOptions] options
1301
+ # Request-specific options
1302
+ #
1303
+ # @yield [result, err] Result & error if block supplied
1304
+ # @yieldparam result [Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2PasskeyConfig] parsed result object
1305
+ # @yieldparam err [StandardError] error object if request failed
1306
+ #
1307
+ # @return [Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2PasskeyConfig]
1308
+ #
1309
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1310
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1311
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1312
+ def update_project_tenant_passkey_config(name, google_cloud_identitytoolkit_admin_v2_passkey_config_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
1313
+ command = make_simple_command(:patch, 'v2/{+name}', options)
1314
+ command.request_representation = Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2PasskeyConfig::Representation
1315
+ command.request_object = google_cloud_identitytoolkit_admin_v2_passkey_config_object
1316
+ command.response_representation = Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2PasskeyConfig::Representation
1317
+ command.response_class = Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2PasskeyConfig
1318
+ command.params['name'] = name unless name.nil?
1319
+ command.query['updateMask'] = update_mask unless update_mask.nil?
1320
+ command.query['fields'] = fields unless fields.nil?
1321
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1322
+ execute_or_queue_command(command, &block)
1323
+ end
1324
+
1185
1325
  # Create a default supported Idp configuration for an Identity Toolkit project.
1186
1326
  # @param [String] parent
1187
1327
  # The parent resource name where the config to be created, for example: "
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-identitytoolkit_v2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.14.0
4
+ version: 0.15.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-16 00:00:00.000000000 Z
11
+ date: 2023-08-20 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-identitytoolkit_v2/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-identitytoolkit_v2/v0.14.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-identitytoolkit_v2/v0.15.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-identitytoolkit_v2
63
63
  post_install_message:
64
64
  rdoc_options: []