google-apis-identitytoolkit_v2 0.11.0 → 0.12.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: 07dd0f97cfaa99eeda59967278cc412ad64e532935ede0d7dd281c62efb9f9c5
4
- data.tar.gz: 12a48800c48c1fc9546ea3b2f6d7e1faacbc679dbe34101f7f9dd5f4594dfcca
3
+ metadata.gz: 21435091ddfe9860087175c5216c887bb5b869bfd6c27441709cc8c12187d2d0
4
+ data.tar.gz: 5ddab2e3e75f778c9497aea82ae77aa5085ee09847ab5b61209876a66f924131
5
5
  SHA512:
6
- metadata.gz: 76953aec7bb9cd7a0031c8537670de5eee930c03bfb414873c9ffea52c6bf88dd75b42b452dc7b8cbe1134126fd53acc3e6942557c1a3b6eae1c32d12335ba77
7
- data.tar.gz: 9d363c866ca724cc996f8f58d918c0b838a5c89b12ae83979598aff7b5c976977ce5efb2a3f7f65fcea755986b47796f90c0961a971acec2ef18274c04d7b131
6
+ metadata.gz: 16bbdeae3fbeb89c290fd040688c7f954e1292318fdbf62a02998b213c148a231893f62e21a563f336f2ef5d8e5f666cb6bd24a795c6f1682c0b5a126ffc7494
7
+ data.tar.gz: 506d53229bda4437a8cd678c69e7e94c464afcda6a1c99ced1e0b81558dfb1763364134e5d9569869a84e73d60363e698abdb0fe1bea33a686f4610433820802
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-identitytoolkit_v2
2
2
 
3
+ ### v0.12.0 (2023-05-14)
4
+
5
+ * Regenerated from discovery document revision 20230505
6
+
3
7
  ### v0.11.0 (2023-04-23)
4
8
 
5
9
  * Regenerated from discovery document revision 20230414
@@ -308,6 +308,11 @@ module Google
308
308
  # @return [Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2NotificationConfig]
309
309
  attr_accessor :notification
310
310
 
311
+ # The configuration for the password policy on the project.
312
+ # Corresponds to the JSON property `passwordPolicyConfig`
313
+ # @return [Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2PasswordPolicyConfig]
314
+ attr_accessor :password_policy_config
315
+
311
316
  # Configuration related to quotas.
312
317
  # Corresponds to the JSON property `quota`
313
318
  # @return [Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2QuotaConfig]
@@ -351,6 +356,7 @@ module Google
351
356
  @multi_tenant = args[:multi_tenant] if args.key?(:multi_tenant)
352
357
  @name = args[:name] if args.key?(:name)
353
358
  @notification = args[:notification] if args.key?(:notification)
359
+ @password_policy_config = args[:password_policy_config] if args.key?(:password_policy_config)
354
360
  @quota = args[:quota] if args.key?(:quota)
355
361
  @recaptcha_config = args[:recaptcha_config] if args.key?(:recaptcha_config)
356
362
  @sign_in = args[:sign_in] if args.key?(:sign_in)
@@ -359,6 +365,59 @@ module Google
359
365
  end
360
366
  end
361
367
 
368
+ # Custom strength options to enforce on user passwords.
369
+ class GoogleCloudIdentitytoolkitAdminV2CustomStrengthOptions
370
+ include Google::Apis::Core::Hashable
371
+
372
+ # The password must contain a lower case character.
373
+ # Corresponds to the JSON property `containsLowercaseCharacter`
374
+ # @return [Boolean]
375
+ attr_accessor :contains_lowercase_character
376
+ alias_method :contains_lowercase_character?, :contains_lowercase_character
377
+
378
+ # The password must contain a non alpha numeric character.
379
+ # Corresponds to the JSON property `containsNonAlphanumericCharacter`
380
+ # @return [Boolean]
381
+ attr_accessor :contains_non_alphanumeric_character
382
+ alias_method :contains_non_alphanumeric_character?, :contains_non_alphanumeric_character
383
+
384
+ # The password must contain a number.
385
+ # Corresponds to the JSON property `containsNumericCharacter`
386
+ # @return [Boolean]
387
+ attr_accessor :contains_numeric_character
388
+ alias_method :contains_numeric_character?, :contains_numeric_character
389
+
390
+ # The password must contain an upper case character.
391
+ # Corresponds to the JSON property `containsUppercaseCharacter`
392
+ # @return [Boolean]
393
+ attr_accessor :contains_uppercase_character
394
+ alias_method :contains_uppercase_character?, :contains_uppercase_character
395
+
396
+ # Maximum password length. No default max length
397
+ # Corresponds to the JSON property `maxPasswordLength`
398
+ # @return [Fixnum]
399
+ attr_accessor :max_password_length
400
+
401
+ # Minimum password length. Range from 6 to 30
402
+ # Corresponds to the JSON property `minPasswordLength`
403
+ # @return [Fixnum]
404
+ attr_accessor :min_password_length
405
+
406
+ def initialize(**args)
407
+ update!(**args)
408
+ end
409
+
410
+ # Update properties of this object
411
+ def update!(**args)
412
+ @contains_lowercase_character = args[:contains_lowercase_character] if args.key?(:contains_lowercase_character)
413
+ @contains_non_alphanumeric_character = args[:contains_non_alphanumeric_character] if args.key?(:contains_non_alphanumeric_character)
414
+ @contains_numeric_character = args[:contains_numeric_character] if args.key?(:contains_numeric_character)
415
+ @contains_uppercase_character = args[:contains_uppercase_character] if args.key?(:contains_uppercase_character)
416
+ @max_password_length = args[:max_password_length] if args.key?(:max_password_length)
417
+ @min_password_length = args[:min_password_length] if args.key?(:min_password_length)
418
+ end
419
+ end
420
+
362
421
  # Standard Identity Toolkit-trusted IDPs.
363
422
  class GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdp
364
423
  include Google::Apis::Core::Hashable
@@ -1174,6 +1233,69 @@ module Google
1174
1233
  end
1175
1234
  end
1176
1235
 
1236
+ # The configuration for the password policy on the project.
1237
+ class GoogleCloudIdentitytoolkitAdminV2PasswordPolicyConfig
1238
+ include Google::Apis::Core::Hashable
1239
+
1240
+ # Users must have a password compliant with the password policy to sign-in.
1241
+ # Corresponds to the JSON property `forceUpgradeOnSignin`
1242
+ # @return [Boolean]
1243
+ attr_accessor :force_upgrade_on_signin
1244
+ alias_method :force_upgrade_on_signin?, :force_upgrade_on_signin
1245
+
1246
+ # Output only. The last time the password policy on the project was updated.
1247
+ # Corresponds to the JSON property `lastUpdateTime`
1248
+ # @return [String]
1249
+ attr_accessor :last_update_time
1250
+
1251
+ # Which enforcement mode to use for the password policy.
1252
+ # Corresponds to the JSON property `passwordPolicyEnforcementState`
1253
+ # @return [String]
1254
+ attr_accessor :password_policy_enforcement_state
1255
+
1256
+ # Must be of length 1. Contains the strength attributes for the password policy.
1257
+ # Corresponds to the JSON property `passwordPolicyVersions`
1258
+ # @return [Array<Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2PasswordPolicyVersion>]
1259
+ attr_accessor :password_policy_versions
1260
+
1261
+ def initialize(**args)
1262
+ update!(**args)
1263
+ end
1264
+
1265
+ # Update properties of this object
1266
+ def update!(**args)
1267
+ @force_upgrade_on_signin = args[:force_upgrade_on_signin] if args.key?(:force_upgrade_on_signin)
1268
+ @last_update_time = args[:last_update_time] if args.key?(:last_update_time)
1269
+ @password_policy_enforcement_state = args[:password_policy_enforcement_state] if args.key?(:password_policy_enforcement_state)
1270
+ @password_policy_versions = args[:password_policy_versions] if args.key?(:password_policy_versions)
1271
+ end
1272
+ end
1273
+
1274
+ # The strength attributes for the password policy on the project.
1275
+ class GoogleCloudIdentitytoolkitAdminV2PasswordPolicyVersion
1276
+ include Google::Apis::Core::Hashable
1277
+
1278
+ # Custom strength options to enforce on user passwords.
1279
+ # Corresponds to the JSON property `customStrengthOptions`
1280
+ # @return [Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2CustomStrengthOptions]
1281
+ attr_accessor :custom_strength_options
1282
+
1283
+ # Output only. schema version number for the password policy
1284
+ # Corresponds to the JSON property `schemaVersion`
1285
+ # @return [Fixnum]
1286
+ attr_accessor :schema_version
1287
+
1288
+ def initialize(**args)
1289
+ update!(**args)
1290
+ end
1291
+
1292
+ # Update properties of this object
1293
+ def update!(**args)
1294
+ @custom_strength_options = args[:custom_strength_options] if args.key?(:custom_strength_options)
1295
+ @schema_version = args[:schema_version] if args.key?(:schema_version)
1296
+ end
1297
+ end
1298
+
1177
1299
  # Configuration related to restricting a user's ability to affect their account.
1178
1300
  class GoogleCloudIdentitytoolkitAdminV2Permissions
1179
1301
  include Google::Apis::Core::Hashable
@@ -1832,6 +1954,11 @@ module Google
1832
1954
  # @return [String]
1833
1955
  attr_accessor :name
1834
1956
 
1957
+ # The configuration for the password policy on the project.
1958
+ # Corresponds to the JSON property `passwordPolicyConfig`
1959
+ # @return [Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2PasswordPolicyConfig]
1960
+ attr_accessor :password_policy_config
1961
+
1835
1962
  # The reCAPTCHA Enterprise integration config.
1836
1963
  # Corresponds to the JSON property `recaptchaConfig`
1837
1964
  # @return [Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2RecaptchaConfig]
@@ -1870,6 +1997,7 @@ module Google
1870
1997
  @mfa_config = args[:mfa_config] if args.key?(:mfa_config)
1871
1998
  @monitoring = args[:monitoring] if args.key?(:monitoring)
1872
1999
  @name = args[:name] if args.key?(:name)
2000
+ @password_policy_config = args[:password_policy_config] if args.key?(:password_policy_config)
1873
2001
  @recaptcha_config = args[:recaptcha_config] if args.key?(:recaptcha_config)
1874
2002
  @sms_region_config = args[:sms_region_config] if args.key?(:sms_region_config)
1875
2003
  @test_phone_numbers = args[:test_phone_numbers] if args.key?(:test_phone_numbers)
@@ -2110,6 +2238,59 @@ module Google
2110
2238
  end
2111
2239
  end
2112
2240
 
2241
+ # Custom strength options to enforce on user passwords.
2242
+ class GoogleCloudIdentitytoolkitV2CustomStrengthOptions
2243
+ include Google::Apis::Core::Hashable
2244
+
2245
+ # The password must contain a lower case character.
2246
+ # Corresponds to the JSON property `containsLowercaseCharacter`
2247
+ # @return [Boolean]
2248
+ attr_accessor :contains_lowercase_character
2249
+ alias_method :contains_lowercase_character?, :contains_lowercase_character
2250
+
2251
+ # The password must contain a non alpha numeric character.
2252
+ # Corresponds to the JSON property `containsNonAlphanumericCharacter`
2253
+ # @return [Boolean]
2254
+ attr_accessor :contains_non_alphanumeric_character
2255
+ alias_method :contains_non_alphanumeric_character?, :contains_non_alphanumeric_character
2256
+
2257
+ # The password must contain a number.
2258
+ # Corresponds to the JSON property `containsNumericCharacter`
2259
+ # @return [Boolean]
2260
+ attr_accessor :contains_numeric_character
2261
+ alias_method :contains_numeric_character?, :contains_numeric_character
2262
+
2263
+ # The password must contain an upper case character.
2264
+ # Corresponds to the JSON property `containsUppercaseCharacter`
2265
+ # @return [Boolean]
2266
+ attr_accessor :contains_uppercase_character
2267
+ alias_method :contains_uppercase_character?, :contains_uppercase_character
2268
+
2269
+ # Maximum password length. No default max length
2270
+ # Corresponds to the JSON property `maxPasswordLength`
2271
+ # @return [Fixnum]
2272
+ attr_accessor :max_password_length
2273
+
2274
+ # Minimum password length. Range from 6 to 30
2275
+ # Corresponds to the JSON property `minPasswordLength`
2276
+ # @return [Fixnum]
2277
+ attr_accessor :min_password_length
2278
+
2279
+ def initialize(**args)
2280
+ update!(**args)
2281
+ end
2282
+
2283
+ # Update properties of this object
2284
+ def update!(**args)
2285
+ @contains_lowercase_character = args[:contains_lowercase_character] if args.key?(:contains_lowercase_character)
2286
+ @contains_non_alphanumeric_character = args[:contains_non_alphanumeric_character] if args.key?(:contains_non_alphanumeric_character)
2287
+ @contains_numeric_character = args[:contains_numeric_character] if args.key?(:contains_numeric_character)
2288
+ @contains_uppercase_character = args[:contains_uppercase_character] if args.key?(:contains_uppercase_character)
2289
+ @max_password_length = args[:max_password_length] if args.key?(:max_password_length)
2290
+ @min_password_length = args[:min_password_length] if args.key?(:min_password_length)
2291
+ end
2292
+ end
2293
+
2113
2294
  # Finishes enrolling a second factor for the user.
2114
2295
  class GoogleCloudIdentitytoolkitV2FinalizeMfaEnrollmentRequest
2115
2296
  include Google::Apis::Core::Hashable
@@ -2508,6 +2689,37 @@ module Google
2508
2689
  end
2509
2690
  end
2510
2691
 
2692
+ # Configuration for password policy.
2693
+ class GoogleCloudIdentitytoolkitV2PasswordPolicy
2694
+ include Google::Apis::Core::Hashable
2695
+
2696
+ # Output only. Allowed characters which satisfy the non_alphanumeric requirement.
2697
+ # Corresponds to the JSON property `allowedNonAlphanumericCharacters`
2698
+ # @return [Array<String>]
2699
+ attr_accessor :allowed_non_alphanumeric_characters
2700
+
2701
+ # Custom strength options to enforce on user passwords.
2702
+ # Corresponds to the JSON property `customStrengthOptions`
2703
+ # @return [Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitV2CustomStrengthOptions]
2704
+ attr_accessor :custom_strength_options
2705
+
2706
+ # Output only. schema version number for the password policy
2707
+ # Corresponds to the JSON property `schemaVersion`
2708
+ # @return [Fixnum]
2709
+ attr_accessor :schema_version
2710
+
2711
+ def initialize(**args)
2712
+ update!(**args)
2713
+ end
2714
+
2715
+ # Update properties of this object
2716
+ def update!(**args)
2717
+ @allowed_non_alphanumeric_characters = args[:allowed_non_alphanumeric_characters] if args.key?(:allowed_non_alphanumeric_characters)
2718
+ @custom_strength_options = args[:custom_strength_options] if args.key?(:custom_strength_options)
2719
+ @schema_version = args[:schema_version] if args.key?(:schema_version)
2720
+ end
2721
+ end
2722
+
2511
2723
  # Parameters for creating a FIDO key.
2512
2724
  class GoogleCloudIdentitytoolkitV2PublicKeyCredentialCreationOptions
2513
2725
  include Google::Apis::Core::Hashable
@@ -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.11.0"
19
+ GEM_VERSION = "0.12.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 = "20230414"
25
+ REVISION = "20230505"
26
26
  end
27
27
  end
28
28
  end
@@ -82,6 +82,12 @@ module Google
82
82
  include Google::Apis::Core::JsonObjectSupport
83
83
  end
84
84
 
85
+ class GoogleCloudIdentitytoolkitAdminV2CustomStrengthOptions
86
+ class Representation < Google::Apis::Core::JsonRepresentation; end
87
+
88
+ include Google::Apis::Core::JsonObjectSupport
89
+ end
90
+
85
91
  class GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdp
86
92
  class Representation < Google::Apis::Core::JsonRepresentation; end
87
93
 
@@ -232,6 +238,18 @@ module Google
232
238
  include Google::Apis::Core::JsonObjectSupport
233
239
  end
234
240
 
241
+ class GoogleCloudIdentitytoolkitAdminV2PasswordPolicyConfig
242
+ class Representation < Google::Apis::Core::JsonRepresentation; end
243
+
244
+ include Google::Apis::Core::JsonObjectSupport
245
+ end
246
+
247
+ class GoogleCloudIdentitytoolkitAdminV2PasswordPolicyVersion
248
+ class Representation < Google::Apis::Core::JsonRepresentation; end
249
+
250
+ include Google::Apis::Core::JsonObjectSupport
251
+ end
252
+
235
253
  class GoogleCloudIdentitytoolkitAdminV2Permissions
236
254
  class Representation < Google::Apis::Core::JsonRepresentation; end
237
255
 
@@ -388,6 +406,12 @@ module Google
388
406
  include Google::Apis::Core::JsonObjectSupport
389
407
  end
390
408
 
409
+ class GoogleCloudIdentitytoolkitV2CustomStrengthOptions
410
+ class Representation < Google::Apis::Core::JsonRepresentation; end
411
+
412
+ include Google::Apis::Core::JsonObjectSupport
413
+ end
414
+
391
415
  class GoogleCloudIdentitytoolkitV2FinalizeMfaEnrollmentRequest
392
416
  class Representation < Google::Apis::Core::JsonRepresentation; end
393
417
 
@@ -466,6 +490,12 @@ module Google
466
490
  include Google::Apis::Core::JsonObjectSupport
467
491
  end
468
492
 
493
+ class GoogleCloudIdentitytoolkitV2PasswordPolicy
494
+ class Representation < Google::Apis::Core::JsonRepresentation; end
495
+
496
+ include Google::Apis::Core::JsonObjectSupport
497
+ end
498
+
469
499
  class GoogleCloudIdentitytoolkitV2PublicKeyCredentialCreationOptions
470
500
  class Representation < Google::Apis::Core::JsonRepresentation; end
471
501
 
@@ -771,6 +801,8 @@ module Google
771
801
  property :name, as: 'name'
772
802
  property :notification, as: 'notification', class: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2NotificationConfig, decorator: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2NotificationConfig::Representation
773
803
 
804
+ property :password_policy_config, as: 'passwordPolicyConfig', class: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2PasswordPolicyConfig, decorator: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2PasswordPolicyConfig::Representation
805
+
774
806
  property :quota, as: 'quota', class: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2QuotaConfig, decorator: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2QuotaConfig::Representation
775
807
 
776
808
  property :recaptcha_config, as: 'recaptchaConfig', class: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2RecaptchaConfig, decorator: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2RecaptchaConfig::Representation
@@ -783,6 +815,18 @@ module Google
783
815
  end
784
816
  end
785
817
 
818
+ class GoogleCloudIdentitytoolkitAdminV2CustomStrengthOptions
819
+ # @private
820
+ class Representation < Google::Apis::Core::JsonRepresentation
821
+ property :contains_lowercase_character, as: 'containsLowercaseCharacter'
822
+ property :contains_non_alphanumeric_character, as: 'containsNonAlphanumericCharacter'
823
+ property :contains_numeric_character, as: 'containsNumericCharacter'
824
+ property :contains_uppercase_character, as: 'containsUppercaseCharacter'
825
+ property :max_password_length, as: 'maxPasswordLength'
826
+ property :min_password_length, as: 'minPasswordLength'
827
+ end
828
+ end
829
+
786
830
  class GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdp
787
831
  # @private
788
832
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1017,6 +1061,26 @@ module Google
1017
1061
  end
1018
1062
  end
1019
1063
 
1064
+ class GoogleCloudIdentitytoolkitAdminV2PasswordPolicyConfig
1065
+ # @private
1066
+ class Representation < Google::Apis::Core::JsonRepresentation
1067
+ property :force_upgrade_on_signin, as: 'forceUpgradeOnSignin'
1068
+ property :last_update_time, as: 'lastUpdateTime'
1069
+ property :password_policy_enforcement_state, as: 'passwordPolicyEnforcementState'
1070
+ collection :password_policy_versions, as: 'passwordPolicyVersions', class: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2PasswordPolicyVersion, decorator: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2PasswordPolicyVersion::Representation
1071
+
1072
+ end
1073
+ end
1074
+
1075
+ class GoogleCloudIdentitytoolkitAdminV2PasswordPolicyVersion
1076
+ # @private
1077
+ class Representation < Google::Apis::Core::JsonRepresentation
1078
+ property :custom_strength_options, as: 'customStrengthOptions', class: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2CustomStrengthOptions, decorator: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2CustomStrengthOptions::Representation
1079
+
1080
+ property :schema_version, as: 'schemaVersion'
1081
+ end
1082
+ end
1083
+
1020
1084
  class GoogleCloudIdentitytoolkitAdminV2Permissions
1021
1085
  # @private
1022
1086
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1209,6 +1273,8 @@ module Google
1209
1273
  property :monitoring, as: 'monitoring', class: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2MonitoringConfig, decorator: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2MonitoringConfig::Representation
1210
1274
 
1211
1275
  property :name, as: 'name'
1276
+ property :password_policy_config, as: 'passwordPolicyConfig', class: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2PasswordPolicyConfig, decorator: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2PasswordPolicyConfig::Representation
1277
+
1212
1278
  property :recaptcha_config, as: 'recaptchaConfig', class: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2RecaptchaConfig, decorator: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2RecaptchaConfig::Representation
1213
1279
 
1214
1280
  property :sms_region_config, as: 'smsRegionConfig', class: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2SmsRegionConfig, decorator: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2SmsRegionConfig::Representation
@@ -1287,6 +1353,18 @@ module Google
1287
1353
  end
1288
1354
  end
1289
1355
 
1356
+ class GoogleCloudIdentitytoolkitV2CustomStrengthOptions
1357
+ # @private
1358
+ class Representation < Google::Apis::Core::JsonRepresentation
1359
+ property :contains_lowercase_character, as: 'containsLowercaseCharacter'
1360
+ property :contains_non_alphanumeric_character, as: 'containsNonAlphanumericCharacter'
1361
+ property :contains_numeric_character, as: 'containsNumericCharacter'
1362
+ property :contains_uppercase_character, as: 'containsUppercaseCharacter'
1363
+ property :max_password_length, as: 'maxPasswordLength'
1364
+ property :min_password_length, as: 'minPasswordLength'
1365
+ end
1366
+ end
1367
+
1290
1368
  class GoogleCloudIdentitytoolkitV2FinalizeMfaEnrollmentRequest
1291
1369
  # @private
1292
1370
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1411,6 +1489,16 @@ module Google
1411
1489
  end
1412
1490
  end
1413
1491
 
1492
+ class GoogleCloudIdentitytoolkitV2PasswordPolicy
1493
+ # @private
1494
+ class Representation < Google::Apis::Core::JsonRepresentation
1495
+ collection :allowed_non_alphanumeric_characters, as: 'allowedNonAlphanumericCharacters'
1496
+ property :custom_strength_options, as: 'customStrengthOptions', class: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitV2CustomStrengthOptions, decorator: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitV2CustomStrengthOptions::Representation
1497
+
1498
+ property :schema_version, as: 'schemaVersion'
1499
+ end
1500
+ end
1501
+
1414
1502
  class GoogleCloudIdentitytoolkitV2PublicKeyCredentialCreationOptions
1415
1503
  # @private
1416
1504
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1826,6 +1826,36 @@ module Google
1826
1826
  execute_or_queue_command(command, &block)
1827
1827
  end
1828
1828
 
1829
+ # Gets password policy config set on the project or tenant.
1830
+ # @param [String] tenant_id
1831
+ # The id of a tenant.
1832
+ # @param [String] fields
1833
+ # Selector specifying which fields to include in a partial response.
1834
+ # @param [String] quota_user
1835
+ # Available to use for quota purposes for server-side applications. Can be any
1836
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1837
+ # @param [Google::Apis::RequestOptions] options
1838
+ # Request-specific options
1839
+ #
1840
+ # @yield [result, err] Result & error if block supplied
1841
+ # @yieldparam result [Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitV2PasswordPolicy] parsed result object
1842
+ # @yieldparam err [StandardError] error object if request failed
1843
+ #
1844
+ # @return [Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitV2PasswordPolicy]
1845
+ #
1846
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1847
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1848
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1849
+ def get_password_policy(tenant_id: nil, fields: nil, quota_user: nil, options: nil, &block)
1850
+ command = make_simple_command(:get, 'v2/passwordPolicy', options)
1851
+ command.response_representation = Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitV2PasswordPolicy::Representation
1852
+ command.response_class = Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitV2PasswordPolicy
1853
+ command.query['tenantId'] = tenant_id unless tenant_id.nil?
1854
+ command.query['fields'] = fields unless fields.nil?
1855
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1856
+ execute_or_queue_command(command, &block)
1857
+ end
1858
+
1829
1859
  # Gets parameters needed for reCAPTCHA analysis.
1830
1860
  # @param [String] client_type
1831
1861
  # reCAPTCHA Enterprise uses separate site keys for different client types.
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.11.0
4
+ version: 0.12.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-04-23 00:00:00.000000000 Z
11
+ date: 2023-05-21 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.11.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-identitytoolkit_v2/v0.12.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: []