google-api-client 0.13.3 → 0.13.4

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
  SHA1:
3
- metadata.gz: 31b6e311cb5c0531590d0971a14169bcb5590310
4
- data.tar.gz: cae4840a54c26b173ee8d6664db3c5e8769fde39
3
+ metadata.gz: 43ac83dde9bfabc90a4f0e4dc3086d948974907d
4
+ data.tar.gz: 3cceead621d394b11aef1e81e834186d9d8024da
5
5
  SHA512:
6
- metadata.gz: a220cd6abae076e6451bbebee771beef6fc5083488b82d550c322db8d566cc89a0840408527d80d1f4c81e581e1552fb9667e147671aad2f1ab5450ecab400a3
7
- data.tar.gz: 550ecee177c61e755fd62a3dd59fe79c0bd7c19981d2b7484194d0416e3b6faecfd93182aa3aba50b1ae62475d96d1866c4896508719c4a332d690851271375d
6
+ metadata.gz: f062f4fe8f11c3b05eb2eb589c448c153c2c31944537804e308eba6b6ced1b4fbe2bd04ce68b8da714d57f2fe9414dc7ae2b69eddf2640036b8b01e57bd6ba4a
7
+ data.tar.gz: de629b8ee53f4a2f433cebc022f7eb0e9de7365c1c53000bc53c866ac3addd04034f5b2139ca3a3aa56828393a629b23d7c8eb49dc5b971eb055796551a84989
data/CHANGELOG.md CHANGED
@@ -1,3 +1,12 @@
1
+ # 0.13.4
2
+ * Backwards compatible changes:
3
+ * Updated `compute_alpha`
4
+ * Updated `content_v2`
5
+ * Updated `drive_v2`
6
+ * Updated `drive_v3`
7
+ * Updated `identitytoolkit_v3`
8
+ * Updated `youtube_partner_v1`
9
+
1
10
  # 0.13.3
2
11
  * Backwards compatible changes:
3
12
  * Added `adexchangebuyer_v1_2`
@@ -50,7 +50,7 @@ module Google
50
50
 
51
51
  def initialize
52
52
  super('https://www.googleapis.com/', 'books/v1/')
53
- @batch_path = 'batch'
53
+ @batch_path = 'batch/books/v1'
54
54
  end
55
55
 
56
56
  # Retrieves metadata for a specific bookshelf for the specified user.
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/compute/docs/reference/latest/
26
26
  module ComputeAlpha
27
27
  VERSION = 'Alpha'
28
- REVISION = '20170816'
28
+ REVISION = '20170821'
29
29
 
30
30
  # View and manage your data across Google Cloud Platform services
31
31
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://developers.google.com/shopping-content
27
27
  module ContentV2
28
28
  VERSION = 'V2'
29
- REVISION = '20170803'
29
+ REVISION = '20170822'
30
30
 
31
31
  # Manage your product listings and accounts for Google Shopping
32
32
  AUTH_CONTENT = 'https://www.googleapis.com/auth/content'
@@ -95,8 +95,9 @@ module Google
95
95
  # @param [Fixnum] account_id
96
96
  # The ID of the account whose website is claimed.
97
97
  # @param [Boolean] overwrite
98
- # Flag to remove any existing claim on the requested website by another account
99
- # and replace it with a claim from this account.
98
+ # Only available to selected merchants. When set to True, this flag removes any
99
+ # existing claim on the requested website by another account and replaces it
100
+ # with a claim from this account.
100
101
  # @param [String] fields
101
102
  # Selector specifying which fields to include in a partial response.
102
103
  # @param [String] quota_user
@@ -178,6 +179,9 @@ module Google
178
179
  # The ID of the account.
179
180
  # @param [Boolean] dry_run
180
181
  # Flag to run the request in dry-run mode.
182
+ # @param [Boolean] force
183
+ # Flag to delete sub-accounts with products. The default value of false will
184
+ # become active on September 28, 2017.
181
185
  # @param [String] fields
182
186
  # Selector specifying which fields to include in a partial response.
183
187
  # @param [String] quota_user
@@ -199,11 +203,12 @@ module Google
199
203
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
200
204
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
201
205
  # @raise [Google::Apis::AuthorizationError] Authorization is required
202
- def delete_account(merchant_id, account_id, dry_run: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
206
+ def delete_account(merchant_id, account_id, dry_run: nil, force: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
203
207
  command = make_simple_command(:delete, '{merchantId}/accounts/{accountId}', options)
204
208
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
205
209
  command.params['accountId'] = account_id unless account_id.nil?
206
210
  command.query['dryRun'] = dry_run unless dry_run.nil?
211
+ command.query['force'] = force unless force.nil?
207
212
  command.query['fields'] = fields unless fields.nil?
208
213
  command.query['quotaUser'] = quota_user unless quota_user.nil?
209
214
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://developers.google.com/drive/
27
27
  module DriveV2
28
28
  VERSION = 'V2'
29
- REVISION = '20170616'
29
+ REVISION = '20170811'
30
30
 
31
31
  # View and manage the files in your Google Drive
32
32
  AUTH_DRIVE = 'https://www.googleapis.com/auth/drive'
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://developers.google.com/drive/
27
27
  module DriveV3
28
28
  VERSION = 'V3'
29
- REVISION = '20170616'
29
+ REVISION = '20170811'
30
30
 
31
31
  # View and manage the files in your Google Drive
32
32
  AUTH_DRIVE = 'https://www.googleapis.com/auth/drive'
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/identity-toolkit/v3/
26
26
  module IdentitytoolkitV3
27
27
  VERSION = 'V3'
28
- REVISION = '20170614'
28
+ REVISION = '20170817'
29
29
 
30
30
  # View and manage your data across Google Cloud Platform services
31
31
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -620,6 +620,62 @@ module Google
620
620
  end
621
621
  end
622
622
 
623
+ # Request for Identitytoolkit-SendVerificationCode
624
+ class IdentitytoolkitRelyingpartySendVerificationCodeRequest
625
+ include Google::Apis::Core::Hashable
626
+
627
+ # Receipt of successful app token validation with APNS.
628
+ # Corresponds to the JSON property `iosReceipt`
629
+ # @return [String]
630
+ attr_accessor :ios_receipt
631
+
632
+ # Secret delivered to iOS app via APNS.
633
+ # Corresponds to the JSON property `iosSecret`
634
+ # @return [String]
635
+ attr_accessor :ios_secret
636
+
637
+ # The phone number to send the verification code to in E.164 format.
638
+ # Corresponds to the JSON property `phoneNumber`
639
+ # @return [String]
640
+ attr_accessor :phone_number
641
+
642
+ # Recaptcha solution.
643
+ # Corresponds to the JSON property `recaptchaToken`
644
+ # @return [String]
645
+ attr_accessor :recaptcha_token
646
+
647
+ def initialize(**args)
648
+ update!(**args)
649
+ end
650
+
651
+ # Update properties of this object
652
+ def update!(**args)
653
+ @ios_receipt = args[:ios_receipt] if args.key?(:ios_receipt)
654
+ @ios_secret = args[:ios_secret] if args.key?(:ios_secret)
655
+ @phone_number = args[:phone_number] if args.key?(:phone_number)
656
+ @recaptcha_token = args[:recaptcha_token] if args.key?(:recaptcha_token)
657
+ end
658
+ end
659
+
660
+ # Response for Identitytoolkit-SendVerificationCode
661
+ class IdentitytoolkitRelyingpartySendVerificationCodeResponse
662
+ include Google::Apis::Core::Hashable
663
+
664
+ # Encrypted session information
665
+ # Corresponds to the JSON property `sessionInfo`
666
+ # @return [String]
667
+ attr_accessor :session_info
668
+
669
+ def initialize(**args)
670
+ update!(**args)
671
+ end
672
+
673
+ # Update properties of this object
674
+ def update!(**args)
675
+ @session_info = args[:session_info] if args.key?(:session_info)
676
+ end
677
+ end
678
+
623
679
  # Request to set the account information.
624
680
  class SetAccountInfoRequest
625
681
  include Google::Apis::Core::Hashable
@@ -639,6 +695,11 @@ module Google
639
695
  # @return [Fixnum]
640
696
  attr_accessor :created_at
641
697
 
698
+ # The custom attributes to be set in the user's id token.
699
+ # Corresponds to the JSON property `customAttributes`
700
+ # @return [String]
701
+ attr_accessor :custom_attributes
702
+
642
703
  # GCP project number of the requesting delegated app. Currently only intended
643
704
  # for Firebase V1 migration.
644
705
  # Corresponds to the JSON property `delegatedProjectNumber`
@@ -748,6 +809,7 @@ module Google
748
809
  @captcha_challenge = args[:captcha_challenge] if args.key?(:captcha_challenge)
749
810
  @captcha_response = args[:captcha_response] if args.key?(:captcha_response)
750
811
  @created_at = args[:created_at] if args.key?(:created_at)
812
+ @custom_attributes = args[:custom_attributes] if args.key?(:custom_attributes)
751
813
  @delegated_project_number = args[:delegated_project_number] if args.key?(:delegated_project_number)
752
814
  @delete_attribute = args[:delete_attribute] if args.key?(:delete_attribute)
753
815
  @delete_provider = args[:delete_provider] if args.key?(:delete_provider)
@@ -1279,6 +1341,135 @@ module Google
1279
1341
  end
1280
1342
  end
1281
1343
 
1344
+ # Request for Identitytoolkit-VerifyPhoneNumber
1345
+ class IdentitytoolkitRelyingpartyVerifyPhoneNumberRequest
1346
+ include Google::Apis::Core::Hashable
1347
+
1348
+ #
1349
+ # Corresponds to the JSON property `code`
1350
+ # @return [String]
1351
+ attr_accessor :code
1352
+
1353
+ #
1354
+ # Corresponds to the JSON property `idToken`
1355
+ # @return [String]
1356
+ attr_accessor :id_token
1357
+
1358
+ #
1359
+ # Corresponds to the JSON property `operation`
1360
+ # @return [String]
1361
+ attr_accessor :operation
1362
+
1363
+ #
1364
+ # Corresponds to the JSON property `phoneNumber`
1365
+ # @return [String]
1366
+ attr_accessor :phone_number
1367
+
1368
+ # The session info previously returned by IdentityToolkit-SendVerificationCode.
1369
+ # Corresponds to the JSON property `sessionInfo`
1370
+ # @return [String]
1371
+ attr_accessor :session_info
1372
+
1373
+ #
1374
+ # Corresponds to the JSON property `temporaryProof`
1375
+ # @return [String]
1376
+ attr_accessor :temporary_proof
1377
+
1378
+ #
1379
+ # Corresponds to the JSON property `verificationProof`
1380
+ # @return [String]
1381
+ attr_accessor :verification_proof
1382
+
1383
+ def initialize(**args)
1384
+ update!(**args)
1385
+ end
1386
+
1387
+ # Update properties of this object
1388
+ def update!(**args)
1389
+ @code = args[:code] if args.key?(:code)
1390
+ @id_token = args[:id_token] if args.key?(:id_token)
1391
+ @operation = args[:operation] if args.key?(:operation)
1392
+ @phone_number = args[:phone_number] if args.key?(:phone_number)
1393
+ @session_info = args[:session_info] if args.key?(:session_info)
1394
+ @temporary_proof = args[:temporary_proof] if args.key?(:temporary_proof)
1395
+ @verification_proof = args[:verification_proof] if args.key?(:verification_proof)
1396
+ end
1397
+ end
1398
+
1399
+ # Response for Identitytoolkit-VerifyPhoneNumber
1400
+ class IdentitytoolkitRelyingpartyVerifyPhoneNumberResponse
1401
+ include Google::Apis::Core::Hashable
1402
+
1403
+ #
1404
+ # Corresponds to the JSON property `expiresIn`
1405
+ # @return [Fixnum]
1406
+ attr_accessor :expires_in
1407
+
1408
+ #
1409
+ # Corresponds to the JSON property `idToken`
1410
+ # @return [String]
1411
+ attr_accessor :id_token
1412
+
1413
+ #
1414
+ # Corresponds to the JSON property `isNewUser`
1415
+ # @return [Boolean]
1416
+ attr_accessor :is_new_user
1417
+ alias_method :is_new_user?, :is_new_user
1418
+
1419
+ #
1420
+ # Corresponds to the JSON property `localId`
1421
+ # @return [String]
1422
+ attr_accessor :local_id
1423
+
1424
+ #
1425
+ # Corresponds to the JSON property `phoneNumber`
1426
+ # @return [String]
1427
+ attr_accessor :phone_number
1428
+
1429
+ #
1430
+ # Corresponds to the JSON property `refreshToken`
1431
+ # @return [String]
1432
+ attr_accessor :refresh_token
1433
+
1434
+ #
1435
+ # Corresponds to the JSON property `temporaryProof`
1436
+ # @return [String]
1437
+ attr_accessor :temporary_proof
1438
+
1439
+ #
1440
+ # Corresponds to the JSON property `temporaryProofExpiresIn`
1441
+ # @return [Fixnum]
1442
+ attr_accessor :temporary_proof_expires_in
1443
+
1444
+ #
1445
+ # Corresponds to the JSON property `verificationProof`
1446
+ # @return [String]
1447
+ attr_accessor :verification_proof
1448
+
1449
+ #
1450
+ # Corresponds to the JSON property `verificationProofExpiresIn`
1451
+ # @return [Fixnum]
1452
+ attr_accessor :verification_proof_expires_in
1453
+
1454
+ def initialize(**args)
1455
+ update!(**args)
1456
+ end
1457
+
1458
+ # Update properties of this object
1459
+ def update!(**args)
1460
+ @expires_in = args[:expires_in] if args.key?(:expires_in)
1461
+ @id_token = args[:id_token] if args.key?(:id_token)
1462
+ @is_new_user = args[:is_new_user] if args.key?(:is_new_user)
1463
+ @local_id = args[:local_id] if args.key?(:local_id)
1464
+ @phone_number = args[:phone_number] if args.key?(:phone_number)
1465
+ @refresh_token = args[:refresh_token] if args.key?(:refresh_token)
1466
+ @temporary_proof = args[:temporary_proof] if args.key?(:temporary_proof)
1467
+ @temporary_proof_expires_in = args[:temporary_proof_expires_in] if args.key?(:temporary_proof_expires_in)
1468
+ @verification_proof = args[:verification_proof] if args.key?(:verification_proof)
1469
+ @verification_proof_expires_in = args[:verification_proof_expires_in] if args.key?(:verification_proof_expires_in)
1470
+ end
1471
+ end
1472
+
1282
1473
  # Template for a single idp configuration.
1283
1474
  class IdpConfig
1284
1475
  include Google::Apis::Core::Hashable
@@ -1717,6 +1908,11 @@ module Google
1717
1908
  # @return [Fixnum]
1718
1909
  attr_accessor :created_at
1719
1910
 
1911
+ # The custom attributes to be set in the user's id token.
1912
+ # Corresponds to the JSON property `customAttributes`
1913
+ # @return [String]
1914
+ attr_accessor :custom_attributes
1915
+
1720
1916
  # Whether the user is authenticated by the developer.
1721
1917
  # Corresponds to the JSON property `customAuth`
1722
1918
  # @return [Boolean]
@@ -1814,6 +2010,7 @@ module Google
1814
2010
  # Update properties of this object
1815
2011
  def update!(**args)
1816
2012
  @created_at = args[:created_at] if args.key?(:created_at)
2013
+ @custom_attributes = args[:custom_attributes] if args.key?(:custom_attributes)
1817
2014
  @custom_auth = args[:custom_auth] if args.key?(:custom_auth)
1818
2015
  @disabled = args[:disabled] if args.key?(:disabled)
1819
2016
  @display_name = args[:display_name] if args.key?(:display_name)
@@ -2176,6 +2373,12 @@ module Google
2176
2373
  # @return [String]
2177
2374
  attr_accessor :id_token
2178
2375
 
2376
+ # True if it's a new user sign-in, false if it's a returning user.
2377
+ # Corresponds to the JSON property `isNewUser`
2378
+ # @return [Boolean]
2379
+ attr_accessor :is_new_user
2380
+ alias_method :is_new_user?, :is_new_user
2381
+
2179
2382
  # The fixed string "identitytoolkit#VerifyCustomTokenResponse".
2180
2383
  # Corresponds to the JSON property `kind`
2181
2384
  # @return [String]
@@ -2194,6 +2397,7 @@ module Google
2194
2397
  def update!(**args)
2195
2398
  @expires_in = args[:expires_in] if args.key?(:expires_in)
2196
2399
  @id_token = args[:id_token] if args.key?(:id_token)
2400
+ @is_new_user = args[:is_new_user] if args.key?(:is_new_user)
2197
2401
  @kind = args[:kind] if args.key?(:kind)
2198
2402
  @refresh_token = args[:refresh_token] if args.key?(:refresh_token)
2199
2403
  end
@@ -100,6 +100,18 @@ module Google
100
100
  include Google::Apis::Core::JsonObjectSupport
101
101
  end
102
102
 
103
+ class IdentitytoolkitRelyingpartySendVerificationCodeRequest
104
+ class Representation < Google::Apis::Core::JsonRepresentation; end
105
+
106
+ include Google::Apis::Core::JsonObjectSupport
107
+ end
108
+
109
+ class IdentitytoolkitRelyingpartySendVerificationCodeResponse
110
+ class Representation < Google::Apis::Core::JsonRepresentation; end
111
+
112
+ include Google::Apis::Core::JsonObjectSupport
113
+ end
114
+
103
115
  class SetAccountInfoRequest
104
116
  class Representation < Google::Apis::Core::JsonRepresentation; end
105
117
 
@@ -160,6 +172,18 @@ module Google
160
172
  include Google::Apis::Core::JsonObjectSupport
161
173
  end
162
174
 
175
+ class IdentitytoolkitRelyingpartyVerifyPhoneNumberRequest
176
+ class Representation < Google::Apis::Core::JsonRepresentation; end
177
+
178
+ include Google::Apis::Core::JsonObjectSupport
179
+ end
180
+
181
+ class IdentitytoolkitRelyingpartyVerifyPhoneNumberResponse
182
+ class Representation < Google::Apis::Core::JsonRepresentation; end
183
+
184
+ include Google::Apis::Core::JsonObjectSupport
185
+ end
186
+
163
187
  class IdpConfig
164
188
  class Representation < Google::Apis::Core::JsonRepresentation; end
165
189
 
@@ -391,12 +415,30 @@ module Google
391
415
  end
392
416
  end
393
417
 
418
+ class IdentitytoolkitRelyingpartySendVerificationCodeRequest
419
+ # @private
420
+ class Representation < Google::Apis::Core::JsonRepresentation
421
+ property :ios_receipt, as: 'iosReceipt'
422
+ property :ios_secret, as: 'iosSecret'
423
+ property :phone_number, as: 'phoneNumber'
424
+ property :recaptcha_token, as: 'recaptchaToken'
425
+ end
426
+ end
427
+
428
+ class IdentitytoolkitRelyingpartySendVerificationCodeResponse
429
+ # @private
430
+ class Representation < Google::Apis::Core::JsonRepresentation
431
+ property :session_info, as: 'sessionInfo'
432
+ end
433
+ end
434
+
394
435
  class SetAccountInfoRequest
395
436
  # @private
396
437
  class Representation < Google::Apis::Core::JsonRepresentation
397
438
  property :captcha_challenge, as: 'captchaChallenge'
398
439
  property :captcha_response, as: 'captchaResponse'
399
440
  property :created_at, :numeric_string => true, as: 'createdAt'
441
+ property :custom_attributes, as: 'customAttributes'
400
442
  property :delegated_project_number, :numeric_string => true, as: 'delegatedProjectNumber'
401
443
  collection :delete_attribute, as: 'deleteAttribute'
402
444
  collection :delete_provider, as: 'deleteProvider'
@@ -540,6 +582,35 @@ module Google
540
582
  end
541
583
  end
542
584
 
585
+ class IdentitytoolkitRelyingpartyVerifyPhoneNumberRequest
586
+ # @private
587
+ class Representation < Google::Apis::Core::JsonRepresentation
588
+ property :code, as: 'code'
589
+ property :id_token, as: 'idToken'
590
+ property :operation, as: 'operation'
591
+ property :phone_number, as: 'phoneNumber'
592
+ property :session_info, as: 'sessionInfo'
593
+ property :temporary_proof, as: 'temporaryProof'
594
+ property :verification_proof, as: 'verificationProof'
595
+ end
596
+ end
597
+
598
+ class IdentitytoolkitRelyingpartyVerifyPhoneNumberResponse
599
+ # @private
600
+ class Representation < Google::Apis::Core::JsonRepresentation
601
+ property :expires_in, :numeric_string => true, as: 'expiresIn'
602
+ property :id_token, as: 'idToken'
603
+ property :is_new_user, as: 'isNewUser'
604
+ property :local_id, as: 'localId'
605
+ property :phone_number, as: 'phoneNumber'
606
+ property :refresh_token, as: 'refreshToken'
607
+ property :temporary_proof, as: 'temporaryProof'
608
+ property :temporary_proof_expires_in, :numeric_string => true, as: 'temporaryProofExpiresIn'
609
+ property :verification_proof, as: 'verificationProof'
610
+ property :verification_proof_expires_in, :numeric_string => true, as: 'verificationProofExpiresIn'
611
+ end
612
+ end
613
+
543
614
  class IdpConfig
544
615
  # @private
545
616
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -646,6 +717,7 @@ module Google
646
717
  # @private
647
718
  class Representation < Google::Apis::Core::JsonRepresentation
648
719
  property :created_at, :numeric_string => true, as: 'createdAt'
720
+ property :custom_attributes, as: 'customAttributes'
649
721
  property :custom_auth, as: 'customAuth'
650
722
  property :disabled, as: 'disabled'
651
723
  property :display_name, as: 'displayName'
@@ -731,6 +803,7 @@ module Google
731
803
  class Representation < Google::Apis::Core::JsonRepresentation
732
804
  property :expires_in, :numeric_string => true, as: 'expiresIn'
733
805
  property :id_token, as: 'idToken'
806
+ property :is_new_user, as: 'isNewUser'
734
807
  property :kind, as: 'kind'
735
808
  property :refresh_token, as: 'refreshToken'
736
809
  end
@@ -365,6 +365,41 @@ module Google
365
365
  execute_or_queue_command(command, &block)
366
366
  end
367
367
 
368
+ # Send SMS verification code.
369
+ # @param [Google::Apis::IdentitytoolkitV3::IdentitytoolkitRelyingpartySendVerificationCodeRequest] identitytoolkit_relyingparty_send_verification_code_request_object
370
+ # @param [String] fields
371
+ # Selector specifying which fields to include in a partial response.
372
+ # @param [String] quota_user
373
+ # Available to use for quota purposes for server-side applications. Can be any
374
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
375
+ # Overrides userIp if both are provided.
376
+ # @param [String] user_ip
377
+ # IP address of the site where the request originates. Use this if you want to
378
+ # enforce per-user limits.
379
+ # @param [Google::Apis::RequestOptions] options
380
+ # Request-specific options
381
+ #
382
+ # @yield [result, err] Result & error if block supplied
383
+ # @yieldparam result [Google::Apis::IdentitytoolkitV3::IdentitytoolkitRelyingpartySendVerificationCodeResponse] parsed result object
384
+ # @yieldparam err [StandardError] error object if request failed
385
+ #
386
+ # @return [Google::Apis::IdentitytoolkitV3::IdentitytoolkitRelyingpartySendVerificationCodeResponse]
387
+ #
388
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
389
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
390
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
391
+ def send_relyingparty_verification_code(identitytoolkit_relyingparty_send_verification_code_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
392
+ command = make_simple_command(:post, 'sendVerificationCode', options)
393
+ command.request_representation = Google::Apis::IdentitytoolkitV3::IdentitytoolkitRelyingpartySendVerificationCodeRequest::Representation
394
+ command.request_object = identitytoolkit_relyingparty_send_verification_code_request_object
395
+ command.response_representation = Google::Apis::IdentitytoolkitV3::IdentitytoolkitRelyingpartySendVerificationCodeResponse::Representation
396
+ command.response_class = Google::Apis::IdentitytoolkitV3::IdentitytoolkitRelyingpartySendVerificationCodeResponse
397
+ command.query['fields'] = fields unless fields.nil?
398
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
399
+ command.query['userIp'] = user_ip unless user_ip.nil?
400
+ execute_or_queue_command(command, &block)
401
+ end
402
+
368
403
  # Set account info for a user.
369
404
  # @param [Google::Apis::IdentitytoolkitV3::SetAccountInfoRequest] set_account_info_request_object
370
405
  # @param [String] fields
@@ -644,6 +679,42 @@ module Google
644
679
  command.query['userIp'] = user_ip unless user_ip.nil?
645
680
  execute_or_queue_command(command, &block)
646
681
  end
682
+
683
+ # Verifies ownership of a phone number and creates/updates the user account
684
+ # accordingly.
685
+ # @param [Google::Apis::IdentitytoolkitV3::IdentitytoolkitRelyingpartyVerifyPhoneNumberRequest] identitytoolkit_relyingparty_verify_phone_number_request_object
686
+ # @param [String] fields
687
+ # Selector specifying which fields to include in a partial response.
688
+ # @param [String] quota_user
689
+ # Available to use for quota purposes for server-side applications. Can be any
690
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
691
+ # Overrides userIp if both are provided.
692
+ # @param [String] user_ip
693
+ # IP address of the site where the request originates. Use this if you want to
694
+ # enforce per-user limits.
695
+ # @param [Google::Apis::RequestOptions] options
696
+ # Request-specific options
697
+ #
698
+ # @yield [result, err] Result & error if block supplied
699
+ # @yieldparam result [Google::Apis::IdentitytoolkitV3::IdentitytoolkitRelyingpartyVerifyPhoneNumberResponse] parsed result object
700
+ # @yieldparam err [StandardError] error object if request failed
701
+ #
702
+ # @return [Google::Apis::IdentitytoolkitV3::IdentitytoolkitRelyingpartyVerifyPhoneNumberResponse]
703
+ #
704
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
705
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
706
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
707
+ def verify_relyingparty_phone_number(identitytoolkit_relyingparty_verify_phone_number_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
708
+ command = make_simple_command(:post, 'verifyPhoneNumber', options)
709
+ command.request_representation = Google::Apis::IdentitytoolkitV3::IdentitytoolkitRelyingpartyVerifyPhoneNumberRequest::Representation
710
+ command.request_object = identitytoolkit_relyingparty_verify_phone_number_request_object
711
+ command.response_representation = Google::Apis::IdentitytoolkitV3::IdentitytoolkitRelyingpartyVerifyPhoneNumberResponse::Representation
712
+ command.response_class = Google::Apis::IdentitytoolkitV3::IdentitytoolkitRelyingpartyVerifyPhoneNumberResponse
713
+ command.query['fields'] = fields unless fields.nil?
714
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
715
+ command.query['userIp'] = user_ip unless user_ip.nil?
716
+ execute_or_queue_command(command, &block)
717
+ end
647
718
 
648
719
  protected
649
720
 
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/youtube/partner/
26
26
  module YoutubePartnerV1
27
27
  VERSION = 'V1'
28
- REVISION = '20170814'
28
+ REVISION = '20170821'
29
29
 
30
30
  # View and manage your assets and associated content on YouTube
31
31
  AUTH_YOUTUBEPARTNER = 'https://www.googleapis.com/auth/youtubepartner'
@@ -15,7 +15,7 @@
15
15
  module Google
16
16
  module Apis
17
17
  # Client library version
18
- VERSION = '0.13.3'
18
+ VERSION = '0.13.4'
19
19
 
20
20
  # Current operating system
21
21
  # @private
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-api-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.13.3
4
+ version: 0.13.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steven Bazyl
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2017-08-26 00:00:00.000000000 Z
14
+ date: 2017-08-28 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: representable