google-apis-identitytoolkit_v2 0.9.0 → 0.10.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/google/apis/identitytoolkit_v2/classes.rb +237 -0
- data/lib/google/apis/identitytoolkit_v2/gem_version.rb +2 -2
- data/lib/google/apis/identitytoolkit_v2/representations.rb +109 -0
- data/lib/google/apis/identitytoolkit_v2/service.rb +70 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 64aff21e8b11255dc32649e61f3368fe55fda54aa48325a332d564e1aa449bc7
|
4
|
+
data.tar.gz: fe7b24a18edca6270ec746ca6c447dbd1a058c0c9ba6f327b9eab3e9a73a0043
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 56155c028caf7e6ae60dce3839142313fdcafa39276e15016dd8d6cd412031ac685efd89ec65d25648e60228dd6d75c46e48d607ab3ee32bfb939a3f6ea66193
|
7
|
+
data.tar.gz: 51be7b1d81f49f90455a52bcf8ee12ececc835509855396a9b410b03c33c58acef5123263b470f6c66ab9e2dfbfb7fa29c6930dda589e03224b3cab8ea1c93bf
|
data/CHANGELOG.md
CHANGED
@@ -313,6 +313,11 @@ module Google
|
|
313
313
|
# @return [Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2QuotaConfig]
|
314
314
|
attr_accessor :quota
|
315
315
|
|
316
|
+
# The reCAPTCHA Enterprise integration config.
|
317
|
+
# Corresponds to the JSON property `recaptchaConfig`
|
318
|
+
# @return [Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2RecaptchaConfig]
|
319
|
+
attr_accessor :recaptcha_config
|
320
|
+
|
316
321
|
# Configuration related to local sign in methods.
|
317
322
|
# Corresponds to the JSON property `signIn`
|
318
323
|
# @return [Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2SignInConfig]
|
@@ -347,6 +352,7 @@ module Google
|
|
347
352
|
@name = args[:name] if args.key?(:name)
|
348
353
|
@notification = args[:notification] if args.key?(:notification)
|
349
354
|
@quota = args[:quota] if args.key?(:quota)
|
355
|
+
@recaptcha_config = args[:recaptcha_config] if args.key?(:recaptcha_config)
|
350
356
|
@sign_in = args[:sign_in] if args.key?(:sign_in)
|
351
357
|
@sms_region_config = args[:sms_region_config] if args.key?(:sms_region_config)
|
352
358
|
@subtype = args[:subtype] if args.key?(:subtype)
|
@@ -1268,6 +1274,108 @@ module Google
|
|
1268
1274
|
end
|
1269
1275
|
end
|
1270
1276
|
|
1277
|
+
# The reCAPTCHA Enterprise integration config.
|
1278
|
+
class GoogleCloudIdentitytoolkitAdminV2RecaptchaConfig
|
1279
|
+
include Google::Apis::Core::Hashable
|
1280
|
+
|
1281
|
+
# The reCAPTCHA config for email/password provider, containing the enforcement
|
1282
|
+
# status. The email/password provider contains all related user flows protected
|
1283
|
+
# by reCAPTCHA.
|
1284
|
+
# Corresponds to the JSON property `emailPasswordEnforcementState`
|
1285
|
+
# @return [String]
|
1286
|
+
attr_accessor :email_password_enforcement_state
|
1287
|
+
|
1288
|
+
# The managed rules for authentication action based on reCAPTCHA scores. The
|
1289
|
+
# rules are shared across providers for a given tenant project.
|
1290
|
+
# Corresponds to the JSON property `managedRules`
|
1291
|
+
# @return [Array<Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2RecaptchaManagedRule>]
|
1292
|
+
attr_accessor :managed_rules
|
1293
|
+
|
1294
|
+
# Output only. The reCAPTCHA keys.
|
1295
|
+
# Corresponds to the JSON property `recaptchaKeys`
|
1296
|
+
# @return [Array<Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2RecaptchaKey>]
|
1297
|
+
attr_accessor :recaptcha_keys
|
1298
|
+
|
1299
|
+
# Whether to use the account defender for reCAPTCHA assessment. Defaults to `
|
1300
|
+
# false`.
|
1301
|
+
# Corresponds to the JSON property `useAccountDefender`
|
1302
|
+
# @return [Boolean]
|
1303
|
+
attr_accessor :use_account_defender
|
1304
|
+
alias_method :use_account_defender?, :use_account_defender
|
1305
|
+
|
1306
|
+
def initialize(**args)
|
1307
|
+
update!(**args)
|
1308
|
+
end
|
1309
|
+
|
1310
|
+
# Update properties of this object
|
1311
|
+
def update!(**args)
|
1312
|
+
@email_password_enforcement_state = args[:email_password_enforcement_state] if args.key?(:email_password_enforcement_state)
|
1313
|
+
@managed_rules = args[:managed_rules] if args.key?(:managed_rules)
|
1314
|
+
@recaptcha_keys = args[:recaptcha_keys] if args.key?(:recaptcha_keys)
|
1315
|
+
@use_account_defender = args[:use_account_defender] if args.key?(:use_account_defender)
|
1316
|
+
end
|
1317
|
+
end
|
1318
|
+
|
1319
|
+
# The reCAPTCHA key config. reCAPTCHA Enterprise offers different keys for
|
1320
|
+
# different client platforms.
|
1321
|
+
class GoogleCloudIdentitytoolkitAdminV2RecaptchaKey
|
1322
|
+
include Google::Apis::Core::Hashable
|
1323
|
+
|
1324
|
+
# The reCAPTCHA Enterprise key resource name, e.g. "projects/`project`/keys/`key`
|
1325
|
+
# "
|
1326
|
+
# Corresponds to the JSON property `key`
|
1327
|
+
# @return [String]
|
1328
|
+
attr_accessor :key
|
1329
|
+
|
1330
|
+
# The client's platform type.
|
1331
|
+
# Corresponds to the JSON property `type`
|
1332
|
+
# @return [String]
|
1333
|
+
attr_accessor :type
|
1334
|
+
|
1335
|
+
def initialize(**args)
|
1336
|
+
update!(**args)
|
1337
|
+
end
|
1338
|
+
|
1339
|
+
# Update properties of this object
|
1340
|
+
def update!(**args)
|
1341
|
+
@key = args[:key] if args.key?(:key)
|
1342
|
+
@type = args[:type] if args.key?(:type)
|
1343
|
+
end
|
1344
|
+
end
|
1345
|
+
|
1346
|
+
# The config for a reCAPTCHA managed rule. Models a single interval [start_score,
|
1347
|
+
# end_score]. The start_score is implicit. It is either the closest smaller
|
1348
|
+
# end_score (if one is available) or 0. Intervals in aggregate span [0, 1]
|
1349
|
+
# without overlapping.
|
1350
|
+
class GoogleCloudIdentitytoolkitAdminV2RecaptchaManagedRule
|
1351
|
+
include Google::Apis::Core::Hashable
|
1352
|
+
|
1353
|
+
# The action taken if the reCAPTCHA score of a request is within the interval [
|
1354
|
+
# start_score, end_score].
|
1355
|
+
# Corresponds to the JSON property `action`
|
1356
|
+
# @return [String]
|
1357
|
+
attr_accessor :action
|
1358
|
+
|
1359
|
+
# The end score (inclusive) of the score range for an action. Must be a value
|
1360
|
+
# between 0.0 and 1.0, at 11 discrete values; e.g. 0, 0.1, 0.2, 0.3, ... 0.9, 1.
|
1361
|
+
# 0. A score of 0.0 indicates the riskiest request (likely a bot), whereas 1.0
|
1362
|
+
# indicates the safest request (likely a human). See https://cloud.google.com/
|
1363
|
+
# recaptcha-enterprise/docs/interpret-assessment.
|
1364
|
+
# Corresponds to the JSON property `endScore`
|
1365
|
+
# @return [Float]
|
1366
|
+
attr_accessor :end_score
|
1367
|
+
|
1368
|
+
def initialize(**args)
|
1369
|
+
update!(**args)
|
1370
|
+
end
|
1371
|
+
|
1372
|
+
# Update properties of this object
|
1373
|
+
def update!(**args)
|
1374
|
+
@action = args[:action] if args.key?(:action)
|
1375
|
+
@end_score = args[:end_score] if args.key?(:end_score)
|
1376
|
+
end
|
1377
|
+
end
|
1378
|
+
|
1271
1379
|
# Configuration for logging requests made to this project to Stackdriver Logging
|
1272
1380
|
class GoogleCloudIdentitytoolkitAdminV2RequestLogging
|
1273
1381
|
include Google::Apis::Core::Hashable
|
@@ -1724,6 +1832,11 @@ module Google
|
|
1724
1832
|
# @return [String]
|
1725
1833
|
attr_accessor :name
|
1726
1834
|
|
1835
|
+
# The reCAPTCHA Enterprise integration config.
|
1836
|
+
# Corresponds to the JSON property `recaptchaConfig`
|
1837
|
+
# @return [Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2RecaptchaConfig]
|
1838
|
+
attr_accessor :recaptcha_config
|
1839
|
+
|
1727
1840
|
# Configures the regions where users are allowed to send verification SMS for
|
1728
1841
|
# the project or tenant. This is based on the calling code of the destination
|
1729
1842
|
# phone number.
|
@@ -1757,6 +1870,7 @@ module Google
|
|
1757
1870
|
@mfa_config = args[:mfa_config] if args.key?(:mfa_config)
|
1758
1871
|
@monitoring = args[:monitoring] if args.key?(:monitoring)
|
1759
1872
|
@name = args[:name] if args.key?(:name)
|
1873
|
+
@recaptcha_config = args[:recaptcha_config] if args.key?(:recaptcha_config)
|
1760
1874
|
@sms_region_config = args[:sms_region_config] if args.key?(:sms_region_config)
|
1761
1875
|
@test_phone_numbers = args[:test_phone_numbers] if args.key?(:test_phone_numbers)
|
1762
1876
|
end
|
@@ -2108,6 +2222,129 @@ module Google
|
|
2108
2222
|
end
|
2109
2223
|
end
|
2110
2224
|
|
2225
|
+
# Configuration for reCAPTCHA
|
2226
|
+
class GoogleCloudIdentitytoolkitV2RecaptchaConfig
|
2227
|
+
include Google::Apis::Core::Hashable
|
2228
|
+
|
2229
|
+
# The reCAPTCHA enforcement state for the providers that GCIP supports reCAPTCHA
|
2230
|
+
# protection.
|
2231
|
+
# Corresponds to the JSON property `recaptchaEnforcementState`
|
2232
|
+
# @return [Array<Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitV2RecaptchaEnforcementState>]
|
2233
|
+
attr_accessor :recaptcha_enforcement_state
|
2234
|
+
|
2235
|
+
# The reCAPTCHA Enterprise key resource name, e.g. "projects/`project`/keys/`key`
|
2236
|
+
# ".
|
2237
|
+
# Corresponds to the JSON property `recaptchaKey`
|
2238
|
+
# @return [String]
|
2239
|
+
attr_accessor :recaptcha_key
|
2240
|
+
|
2241
|
+
def initialize(**args)
|
2242
|
+
update!(**args)
|
2243
|
+
end
|
2244
|
+
|
2245
|
+
# Update properties of this object
|
2246
|
+
def update!(**args)
|
2247
|
+
@recaptcha_enforcement_state = args[:recaptcha_enforcement_state] if args.key?(:recaptcha_enforcement_state)
|
2248
|
+
@recaptcha_key = args[:recaptcha_key] if args.key?(:recaptcha_key)
|
2249
|
+
end
|
2250
|
+
end
|
2251
|
+
|
2252
|
+
# Enforcement states for reCAPTCHA protection.
|
2253
|
+
class GoogleCloudIdentitytoolkitV2RecaptchaEnforcementState
|
2254
|
+
include Google::Apis::Core::Hashable
|
2255
|
+
|
2256
|
+
# The reCAPTCHA enforcement state for the provider.
|
2257
|
+
# Corresponds to the JSON property `enforcementState`
|
2258
|
+
# @return [String]
|
2259
|
+
attr_accessor :enforcement_state
|
2260
|
+
|
2261
|
+
# The provider that has reCAPTCHA protection.
|
2262
|
+
# Corresponds to the JSON property `provider`
|
2263
|
+
# @return [String]
|
2264
|
+
attr_accessor :provider
|
2265
|
+
|
2266
|
+
def initialize(**args)
|
2267
|
+
update!(**args)
|
2268
|
+
end
|
2269
|
+
|
2270
|
+
# Update properties of this object
|
2271
|
+
def update!(**args)
|
2272
|
+
@enforcement_state = args[:enforcement_state] if args.key?(:enforcement_state)
|
2273
|
+
@provider = args[:provider] if args.key?(:provider)
|
2274
|
+
end
|
2275
|
+
end
|
2276
|
+
|
2277
|
+
# Request message for RevokeToken.
|
2278
|
+
class GoogleCloudIdentitytoolkitV2RevokeTokenRequest
|
2279
|
+
include Google::Apis::Core::Hashable
|
2280
|
+
|
2281
|
+
# Required. A valid Identity Platform ID token to link the account. If there was
|
2282
|
+
# a successful token revocation request on the account and no tokens are
|
2283
|
+
# generated after the revocation, the duplicate requests will be ignored and
|
2284
|
+
# returned immediately.
|
2285
|
+
# Corresponds to the JSON property `idToken`
|
2286
|
+
# @return [String]
|
2287
|
+
attr_accessor :id_token
|
2288
|
+
|
2289
|
+
# Required. The idp provider for the token. Currently only supports Apple Idp.
|
2290
|
+
# The format should be "apple.com".
|
2291
|
+
# Corresponds to the JSON property `providerId`
|
2292
|
+
# @return [String]
|
2293
|
+
attr_accessor :provider_id
|
2294
|
+
|
2295
|
+
# The redirect URI provided in the initial authorization request made by the
|
2296
|
+
# client to the IDP. The URI must use the HTTPS protocol, include a domain name,
|
2297
|
+
# and can’t contain an IP address or localhost. Required if token_type is CODE.
|
2298
|
+
# Corresponds to the JSON property `redirectUri`
|
2299
|
+
# @return [String]
|
2300
|
+
attr_accessor :redirect_uri
|
2301
|
+
|
2302
|
+
# The ID of the Identity Platform tenant the user is signing in to. If not set,
|
2303
|
+
# the user will sign in to the default Identity Platform project.
|
2304
|
+
# Corresponds to the JSON property `tenantId`
|
2305
|
+
# @return [String]
|
2306
|
+
attr_accessor :tenant_id
|
2307
|
+
|
2308
|
+
# Required. The token to be revoked. If an authorization_code is passed in, the
|
2309
|
+
# API will first exchange the code for access token and then revoke the token
|
2310
|
+
# exchanged.
|
2311
|
+
# Corresponds to the JSON property `token`
|
2312
|
+
# @return [String]
|
2313
|
+
attr_accessor :token
|
2314
|
+
|
2315
|
+
# Required. The type of the token to be revoked.
|
2316
|
+
# Corresponds to the JSON property `tokenType`
|
2317
|
+
# @return [String]
|
2318
|
+
attr_accessor :token_type
|
2319
|
+
|
2320
|
+
def initialize(**args)
|
2321
|
+
update!(**args)
|
2322
|
+
end
|
2323
|
+
|
2324
|
+
# Update properties of this object
|
2325
|
+
def update!(**args)
|
2326
|
+
@id_token = args[:id_token] if args.key?(:id_token)
|
2327
|
+
@provider_id = args[:provider_id] if args.key?(:provider_id)
|
2328
|
+
@redirect_uri = args[:redirect_uri] if args.key?(:redirect_uri)
|
2329
|
+
@tenant_id = args[:tenant_id] if args.key?(:tenant_id)
|
2330
|
+
@token = args[:token] if args.key?(:token)
|
2331
|
+
@token_type = args[:token_type] if args.key?(:token_type)
|
2332
|
+
end
|
2333
|
+
end
|
2334
|
+
|
2335
|
+
# Response message for RevokeToken. Empty for now.
|
2336
|
+
class GoogleCloudIdentitytoolkitV2RevokeTokenResponse
|
2337
|
+
include Google::Apis::Core::Hashable
|
2338
|
+
|
2339
|
+
def initialize(**args)
|
2340
|
+
update!(**args)
|
2341
|
+
end
|
2342
|
+
|
2343
|
+
# Update properties of this object
|
2344
|
+
def update!(**args)
|
2345
|
+
end
|
2346
|
+
end
|
2347
|
+
|
2111
2348
|
# Sends MFA enrollment verification SMS for a user.
|
2112
2349
|
class GoogleCloudIdentitytoolkitV2StartMfaEnrollmentRequest
|
2113
2350
|
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.
|
19
|
+
GEM_VERSION = "0.10.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 = "
|
25
|
+
REVISION = "20230410"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -256,6 +256,24 @@ module Google
|
|
256
256
|
include Google::Apis::Core::JsonObjectSupport
|
257
257
|
end
|
258
258
|
|
259
|
+
class GoogleCloudIdentitytoolkitAdminV2RecaptchaConfig
|
260
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
261
|
+
|
262
|
+
include Google::Apis::Core::JsonObjectSupport
|
263
|
+
end
|
264
|
+
|
265
|
+
class GoogleCloudIdentitytoolkitAdminV2RecaptchaKey
|
266
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
267
|
+
|
268
|
+
include Google::Apis::Core::JsonObjectSupport
|
269
|
+
end
|
270
|
+
|
271
|
+
class GoogleCloudIdentitytoolkitAdminV2RecaptchaManagedRule
|
272
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
273
|
+
|
274
|
+
include Google::Apis::Core::JsonObjectSupport
|
275
|
+
end
|
276
|
+
|
259
277
|
class GoogleCloudIdentitytoolkitAdminV2RequestLogging
|
260
278
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
261
279
|
|
@@ -394,6 +412,30 @@ module Google
|
|
394
412
|
include Google::Apis::Core::JsonObjectSupport
|
395
413
|
end
|
396
414
|
|
415
|
+
class GoogleCloudIdentitytoolkitV2RecaptchaConfig
|
416
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
417
|
+
|
418
|
+
include Google::Apis::Core::JsonObjectSupport
|
419
|
+
end
|
420
|
+
|
421
|
+
class GoogleCloudIdentitytoolkitV2RecaptchaEnforcementState
|
422
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
423
|
+
|
424
|
+
include Google::Apis::Core::JsonObjectSupport
|
425
|
+
end
|
426
|
+
|
427
|
+
class GoogleCloudIdentitytoolkitV2RevokeTokenRequest
|
428
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
429
|
+
|
430
|
+
include Google::Apis::Core::JsonObjectSupport
|
431
|
+
end
|
432
|
+
|
433
|
+
class GoogleCloudIdentitytoolkitV2RevokeTokenResponse
|
434
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
435
|
+
|
436
|
+
include Google::Apis::Core::JsonObjectSupport
|
437
|
+
end
|
438
|
+
|
397
439
|
class GoogleCloudIdentitytoolkitV2StartMfaEnrollmentRequest
|
398
440
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
399
441
|
|
@@ -617,6 +659,8 @@ module Google
|
|
617
659
|
|
618
660
|
property :quota, as: 'quota', class: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2QuotaConfig, decorator: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2QuotaConfig::Representation
|
619
661
|
|
662
|
+
property :recaptcha_config, as: 'recaptchaConfig', class: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2RecaptchaConfig, decorator: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2RecaptchaConfig::Representation
|
663
|
+
|
620
664
|
property :sign_in, as: 'signIn', class: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2SignInConfig, decorator: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2SignInConfig::Representation
|
621
665
|
|
622
666
|
property :sms_region_config, as: 'smsRegionConfig', class: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2SmsRegionConfig, decorator: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2SmsRegionConfig::Representation
|
@@ -892,6 +936,34 @@ module Google
|
|
892
936
|
end
|
893
937
|
end
|
894
938
|
|
939
|
+
class GoogleCloudIdentitytoolkitAdminV2RecaptchaConfig
|
940
|
+
# @private
|
941
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
942
|
+
property :email_password_enforcement_state, as: 'emailPasswordEnforcementState'
|
943
|
+
collection :managed_rules, as: 'managedRules', class: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2RecaptchaManagedRule, decorator: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2RecaptchaManagedRule::Representation
|
944
|
+
|
945
|
+
collection :recaptcha_keys, as: 'recaptchaKeys', class: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2RecaptchaKey, decorator: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2RecaptchaKey::Representation
|
946
|
+
|
947
|
+
property :use_account_defender, as: 'useAccountDefender'
|
948
|
+
end
|
949
|
+
end
|
950
|
+
|
951
|
+
class GoogleCloudIdentitytoolkitAdminV2RecaptchaKey
|
952
|
+
# @private
|
953
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
954
|
+
property :key, as: 'key'
|
955
|
+
property :type, as: 'type'
|
956
|
+
end
|
957
|
+
end
|
958
|
+
|
959
|
+
class GoogleCloudIdentitytoolkitAdminV2RecaptchaManagedRule
|
960
|
+
# @private
|
961
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
962
|
+
property :action, as: 'action'
|
963
|
+
property :end_score, as: 'endScore'
|
964
|
+
end
|
965
|
+
end
|
966
|
+
|
895
967
|
class GoogleCloudIdentitytoolkitAdminV2RequestLogging
|
896
968
|
# @private
|
897
969
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1023,6 +1095,8 @@ module Google
|
|
1023
1095
|
property :monitoring, as: 'monitoring', class: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2MonitoringConfig, decorator: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2MonitoringConfig::Representation
|
1024
1096
|
|
1025
1097
|
property :name, as: 'name'
|
1098
|
+
property :recaptcha_config, as: 'recaptchaConfig', class: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2RecaptchaConfig, decorator: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2RecaptchaConfig::Representation
|
1099
|
+
|
1026
1100
|
property :sms_region_config, as: 'smsRegionConfig', class: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2SmsRegionConfig, decorator: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2SmsRegionConfig::Representation
|
1027
1101
|
|
1028
1102
|
hash :test_phone_numbers, as: 'testPhoneNumbers'
|
@@ -1139,6 +1213,41 @@ module Google
|
|
1139
1213
|
end
|
1140
1214
|
end
|
1141
1215
|
|
1216
|
+
class GoogleCloudIdentitytoolkitV2RecaptchaConfig
|
1217
|
+
# @private
|
1218
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1219
|
+
collection :recaptcha_enforcement_state, as: 'recaptchaEnforcementState', class: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitV2RecaptchaEnforcementState, decorator: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitV2RecaptchaEnforcementState::Representation
|
1220
|
+
|
1221
|
+
property :recaptcha_key, as: 'recaptchaKey'
|
1222
|
+
end
|
1223
|
+
end
|
1224
|
+
|
1225
|
+
class GoogleCloudIdentitytoolkitV2RecaptchaEnforcementState
|
1226
|
+
# @private
|
1227
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1228
|
+
property :enforcement_state, as: 'enforcementState'
|
1229
|
+
property :provider, as: 'provider'
|
1230
|
+
end
|
1231
|
+
end
|
1232
|
+
|
1233
|
+
class GoogleCloudIdentitytoolkitV2RevokeTokenRequest
|
1234
|
+
# @private
|
1235
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1236
|
+
property :id_token, as: 'idToken'
|
1237
|
+
property :provider_id, as: 'providerId'
|
1238
|
+
property :redirect_uri, as: 'redirectUri'
|
1239
|
+
property :tenant_id, as: 'tenantId'
|
1240
|
+
property :token, as: 'token'
|
1241
|
+
property :token_type, as: 'tokenType'
|
1242
|
+
end
|
1243
|
+
end
|
1244
|
+
|
1245
|
+
class GoogleCloudIdentitytoolkitV2RevokeTokenResponse
|
1246
|
+
# @private
|
1247
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1248
|
+
end
|
1249
|
+
end
|
1250
|
+
|
1142
1251
|
class GoogleCloudIdentitytoolkitV2StartMfaEnrollmentRequest
|
1143
1252
|
# @private
|
1144
1253
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -50,6 +50,39 @@ module Google
|
|
50
50
|
@batch_path = 'batch'
|
51
51
|
end
|
52
52
|
|
53
|
+
# Revokes a user's token from an Identity Provider (IdP). This is done by
|
54
|
+
# manually providing an IdP credential, and the token types for revocation. An [
|
55
|
+
# API key](https://cloud.google.com/docs/authentication/api-keys) is required in
|
56
|
+
# the request in order to identify the Google Cloud project.
|
57
|
+
# @param [Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitV2RevokeTokenRequest] google_cloud_identitytoolkit_v2_revoke_token_request_object
|
58
|
+
# @param [String] fields
|
59
|
+
# Selector specifying which fields to include in a partial response.
|
60
|
+
# @param [String] quota_user
|
61
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
62
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
63
|
+
# @param [Google::Apis::RequestOptions] options
|
64
|
+
# Request-specific options
|
65
|
+
#
|
66
|
+
# @yield [result, err] Result & error if block supplied
|
67
|
+
# @yieldparam result [Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitV2RevokeTokenResponse] parsed result object
|
68
|
+
# @yieldparam err [StandardError] error object if request failed
|
69
|
+
#
|
70
|
+
# @return [Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitV2RevokeTokenResponse]
|
71
|
+
#
|
72
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
73
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
74
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
75
|
+
def revoke_account_token(google_cloud_identitytoolkit_v2_revoke_token_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
76
|
+
command = make_simple_command(:post, 'v2/accounts:revokeToken', options)
|
77
|
+
command.request_representation = Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitV2RevokeTokenRequest::Representation
|
78
|
+
command.request_object = google_cloud_identitytoolkit_v2_revoke_token_request_object
|
79
|
+
command.response_representation = Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitV2RevokeTokenResponse::Representation
|
80
|
+
command.response_class = Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitV2RevokeTokenResponse
|
81
|
+
command.query['fields'] = fields unless fields.nil?
|
82
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
83
|
+
execute_or_queue_command(command, &block)
|
84
|
+
end
|
85
|
+
|
53
86
|
# Finishes enrolling a second factor for the user.
|
54
87
|
# @param [Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitV2FinalizeMfaEnrollmentRequest] google_cloud_identitytoolkit_v2_finalize_mfa_enrollment_request_object
|
55
88
|
# @param [String] fields
|
@@ -1671,6 +1704,43 @@ module Google
|
|
1671
1704
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1672
1705
|
execute_or_queue_command(command, &block)
|
1673
1706
|
end
|
1707
|
+
|
1708
|
+
# Gets parameters needed for reCAPTCHA analysis.
|
1709
|
+
# @param [String] client_type
|
1710
|
+
# reCAPTCHA Enterprise uses separate site keys for different client types.
|
1711
|
+
# Specify the client type to get the corresponding key.
|
1712
|
+
# @param [String] tenant_id
|
1713
|
+
# The id of a tenant.
|
1714
|
+
# @param [String] version
|
1715
|
+
# The reCAPTCHA version.
|
1716
|
+
# @param [String] fields
|
1717
|
+
# Selector specifying which fields to include in a partial response.
|
1718
|
+
# @param [String] quota_user
|
1719
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1720
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1721
|
+
# @param [Google::Apis::RequestOptions] options
|
1722
|
+
# Request-specific options
|
1723
|
+
#
|
1724
|
+
# @yield [result, err] Result & error if block supplied
|
1725
|
+
# @yieldparam result [Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitV2RecaptchaConfig] parsed result object
|
1726
|
+
# @yieldparam err [StandardError] error object if request failed
|
1727
|
+
#
|
1728
|
+
# @return [Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitV2RecaptchaConfig]
|
1729
|
+
#
|
1730
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1731
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1732
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1733
|
+
def get_recaptcha_config(client_type: nil, tenant_id: nil, version: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1734
|
+
command = make_simple_command(:get, 'v2/recaptchaConfig', options)
|
1735
|
+
command.response_representation = Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitV2RecaptchaConfig::Representation
|
1736
|
+
command.response_class = Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitV2RecaptchaConfig
|
1737
|
+
command.query['clientType'] = client_type unless client_type.nil?
|
1738
|
+
command.query['tenantId'] = tenant_id unless tenant_id.nil?
|
1739
|
+
command.query['version'] = version unless version.nil?
|
1740
|
+
command.query['fields'] = fields unless fields.nil?
|
1741
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1742
|
+
execute_or_queue_command(command, &block)
|
1743
|
+
end
|
1674
1744
|
|
1675
1745
|
protected
|
1676
1746
|
|
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.
|
4
|
+
version: 0.10.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-
|
11
|
+
date: 2023-04-16 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.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-identitytoolkit_v2/v0.10.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: []
|