diff --git a/api_names_out.yaml b/api_names_out.yaml index a5da5a451..0023b10f7 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -27446,6 +27446,7 @@ "/content:v2/content.accounts.delete": delete_account "/content:v2/content.accounts.delete/accountId": account_id "/content:v2/content.accounts.delete/dryRun": dry_run +"/content:v2/content.accounts.delete/force": force "/content:v2/content.accounts.delete/merchantId": merchant_id "/content:v2/content.accounts.get": get_account "/content:v2/content.accounts.get/accountId": account_id @@ -42098,10 +42099,18 @@ "/identitytoolkit:v3/IdentitytoolkitRelyingpartyResetPasswordRequest/newPassword": new_password "/identitytoolkit:v3/IdentitytoolkitRelyingpartyResetPasswordRequest/oldPassword": old_password "/identitytoolkit:v3/IdentitytoolkitRelyingpartyResetPasswordRequest/oobCode": oob_code +"/identitytoolkit:v3/IdentitytoolkitRelyingpartySendVerificationCodeRequest": identitytoolkit_relyingparty_send_verification_code_request +"/identitytoolkit:v3/IdentitytoolkitRelyingpartySendVerificationCodeRequest/iosReceipt": ios_receipt +"/identitytoolkit:v3/IdentitytoolkitRelyingpartySendVerificationCodeRequest/iosSecret": ios_secret +"/identitytoolkit:v3/IdentitytoolkitRelyingpartySendVerificationCodeRequest/phoneNumber": phone_number +"/identitytoolkit:v3/IdentitytoolkitRelyingpartySendVerificationCodeRequest/recaptchaToken": recaptcha_token +"/identitytoolkit:v3/IdentitytoolkitRelyingpartySendVerificationCodeResponse": identitytoolkit_relyingparty_send_verification_code_response +"/identitytoolkit:v3/IdentitytoolkitRelyingpartySendVerificationCodeResponse/sessionInfo": session_info "/identitytoolkit:v3/IdentitytoolkitRelyingpartySetAccountInfoRequest": set_account_info_request "/identitytoolkit:v3/IdentitytoolkitRelyingpartySetAccountInfoRequest/captchaChallenge": captcha_challenge "/identitytoolkit:v3/IdentitytoolkitRelyingpartySetAccountInfoRequest/captchaResponse": captcha_response "/identitytoolkit:v3/IdentitytoolkitRelyingpartySetAccountInfoRequest/createdAt": created_at +"/identitytoolkit:v3/IdentitytoolkitRelyingpartySetAccountInfoRequest/customAttributes": custom_attributes "/identitytoolkit:v3/IdentitytoolkitRelyingpartySetAccountInfoRequest/delegatedProjectNumber": delegated_project_number "/identitytoolkit:v3/IdentitytoolkitRelyingpartySetAccountInfoRequest/deleteAttribute": delete_attribute "/identitytoolkit:v3/IdentitytoolkitRelyingpartySetAccountInfoRequest/deleteAttribute/delete_attribute": delete_attribute @@ -42197,6 +42206,25 @@ "/identitytoolkit:v3/IdentitytoolkitRelyingpartyVerifyPasswordRequest/password": password "/identitytoolkit:v3/IdentitytoolkitRelyingpartyVerifyPasswordRequest/pendingIdToken": pending_id_token "/identitytoolkit:v3/IdentitytoolkitRelyingpartyVerifyPasswordRequest/returnSecureToken": return_secure_token +"/identitytoolkit:v3/IdentitytoolkitRelyingpartyVerifyPhoneNumberRequest": identitytoolkit_relyingparty_verify_phone_number_request +"/identitytoolkit:v3/IdentitytoolkitRelyingpartyVerifyPhoneNumberRequest/code": code +"/identitytoolkit:v3/IdentitytoolkitRelyingpartyVerifyPhoneNumberRequest/idToken": id_token +"/identitytoolkit:v3/IdentitytoolkitRelyingpartyVerifyPhoneNumberRequest/operation": operation +"/identitytoolkit:v3/IdentitytoolkitRelyingpartyVerifyPhoneNumberRequest/phoneNumber": phone_number +"/identitytoolkit:v3/IdentitytoolkitRelyingpartyVerifyPhoneNumberRequest/sessionInfo": session_info +"/identitytoolkit:v3/IdentitytoolkitRelyingpartyVerifyPhoneNumberRequest/temporaryProof": temporary_proof +"/identitytoolkit:v3/IdentitytoolkitRelyingpartyVerifyPhoneNumberRequest/verificationProof": verification_proof +"/identitytoolkit:v3/IdentitytoolkitRelyingpartyVerifyPhoneNumberResponse": identitytoolkit_relyingparty_verify_phone_number_response +"/identitytoolkit:v3/IdentitytoolkitRelyingpartyVerifyPhoneNumberResponse/expiresIn": expires_in +"/identitytoolkit:v3/IdentitytoolkitRelyingpartyVerifyPhoneNumberResponse/idToken": id_token +"/identitytoolkit:v3/IdentitytoolkitRelyingpartyVerifyPhoneNumberResponse/isNewUser": is_new_user +"/identitytoolkit:v3/IdentitytoolkitRelyingpartyVerifyPhoneNumberResponse/localId": local_id +"/identitytoolkit:v3/IdentitytoolkitRelyingpartyVerifyPhoneNumberResponse/phoneNumber": phone_number +"/identitytoolkit:v3/IdentitytoolkitRelyingpartyVerifyPhoneNumberResponse/refreshToken": refresh_token +"/identitytoolkit:v3/IdentitytoolkitRelyingpartyVerifyPhoneNumberResponse/temporaryProof": temporary_proof +"/identitytoolkit:v3/IdentitytoolkitRelyingpartyVerifyPhoneNumberResponse/temporaryProofExpiresIn": temporary_proof_expires_in +"/identitytoolkit:v3/IdentitytoolkitRelyingpartyVerifyPhoneNumberResponse/verificationProof": verification_proof +"/identitytoolkit:v3/IdentitytoolkitRelyingpartyVerifyPhoneNumberResponse/verificationProofExpiresIn": verification_proof_expires_in "/identitytoolkit:v3/IdpConfig": idp_config "/identitytoolkit:v3/IdpConfig/clientId": client_id "/identitytoolkit:v3/IdpConfig/enabled": enabled @@ -42260,6 +42288,7 @@ "/identitytoolkit:v3/UploadAccountResponse/kind": kind "/identitytoolkit:v3/UserInfo": user_info "/identitytoolkit:v3/UserInfo/createdAt": created_at +"/identitytoolkit:v3/UserInfo/customAttributes": custom_attributes "/identitytoolkit:v3/UserInfo/customAuth": custom_auth "/identitytoolkit:v3/UserInfo/disabled": disabled "/identitytoolkit:v3/UserInfo/displayName": display_name @@ -42330,6 +42359,7 @@ "/identitytoolkit:v3/VerifyCustomTokenResponse": verify_custom_token_response "/identitytoolkit:v3/VerifyCustomTokenResponse/expiresIn": expires_in "/identitytoolkit:v3/VerifyCustomTokenResponse/idToken": id_token +"/identitytoolkit:v3/VerifyCustomTokenResponse/isNewUser": is_new_user "/identitytoolkit:v3/VerifyCustomTokenResponse/kind": kind "/identitytoolkit:v3/VerifyCustomTokenResponse/refreshToken": refresh_token "/identitytoolkit:v3/VerifyPasswordResponse": verify_password_response @@ -42357,6 +42387,7 @@ "/identitytoolkit:v3/identitytoolkit.relyingparty.getPublicKeys": get_public_keys "/identitytoolkit:v3/identitytoolkit.relyingparty.getRecaptchaParam": get_recaptcha_param "/identitytoolkit:v3/identitytoolkit.relyingparty.resetPassword": reset_password +"/identitytoolkit:v3/identitytoolkit.relyingparty.sendVerificationCode": send_relyingparty_verification_code "/identitytoolkit:v3/identitytoolkit.relyingparty.setAccountInfo": set_account_info "/identitytoolkit:v3/identitytoolkit.relyingparty.setProjectConfig": set_relyingparty_project_config "/identitytoolkit:v3/identitytoolkit.relyingparty.signOutUser": sign_out_user @@ -42365,6 +42396,7 @@ "/identitytoolkit:v3/identitytoolkit.relyingparty.verifyAssertion": verify_assertion "/identitytoolkit:v3/identitytoolkit.relyingparty.verifyCustomToken": verify_custom_token "/identitytoolkit:v3/identitytoolkit.relyingparty.verifyPassword": verify_password +"/identitytoolkit:v3/identitytoolkit.relyingparty.verifyPhoneNumber": verify_relyingparty_phone_number "/identitytoolkit:v3/key": key "/identitytoolkit:v3/quotaUser": quota_user "/identitytoolkit:v3/userIp": user_ip diff --git a/generated/google/apis/books_v1/service.rb b/generated/google/apis/books_v1/service.rb index 39cff3cb0..f9e33410b 100644 --- a/generated/google/apis/books_v1/service.rb +++ b/generated/google/apis/books_v1/service.rb @@ -50,7 +50,7 @@ module Google def initialize super('https://www.googleapis.com/', 'books/v1/') - @batch_path = 'batch' + @batch_path = 'batch/books/v1' end # Retrieves metadata for a specific bookshelf for the specified user. diff --git a/generated/google/apis/compute_alpha.rb b/generated/google/apis/compute_alpha.rb index e2cd10723..55cfdcc85 100644 --- a/generated/google/apis/compute_alpha.rb +++ b/generated/google/apis/compute_alpha.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/compute/docs/reference/latest/ module ComputeAlpha VERSION = 'Alpha' - REVISION = '20170816' + REVISION = '20170821' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/content_v2.rb b/generated/google/apis/content_v2.rb index fb1d594d8..d5fdc8bdd 100644 --- a/generated/google/apis/content_v2.rb +++ b/generated/google/apis/content_v2.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/shopping-content module ContentV2 VERSION = 'V2' - REVISION = '20170803' + REVISION = '20170822' # Manage your product listings and accounts for Google Shopping AUTH_CONTENT = 'https://www.googleapis.com/auth/content' diff --git a/generated/google/apis/content_v2/service.rb b/generated/google/apis/content_v2/service.rb index 597fd8a20..295b317c1 100644 --- a/generated/google/apis/content_v2/service.rb +++ b/generated/google/apis/content_v2/service.rb @@ -95,8 +95,9 @@ module Google # @param [Fixnum] account_id # The ID of the account whose website is claimed. # @param [Boolean] overwrite - # Flag to remove any existing claim on the requested website by another account - # and replace it with a claim from this account. + # Only available to selected merchants. When set to True, this flag removes any + # existing claim on the requested website by another account and replaces it + # with a claim from this account. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -178,6 +179,9 @@ module Google # The ID of the account. # @param [Boolean] dry_run # Flag to run the request in dry-run mode. + # @param [Boolean] force + # Flag to delete sub-accounts with products. The default value of false will + # become active on September 28, 2017. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -199,11 +203,12 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def delete_account(merchant_id, account_id, dry_run: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def delete_account(merchant_id, account_id, dry_run: nil, force: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:delete, '{merchantId}/accounts/{accountId}', options) command.params['merchantId'] = merchant_id unless merchant_id.nil? command.params['accountId'] = account_id unless account_id.nil? command.query['dryRun'] = dry_run unless dry_run.nil? + command.query['force'] = force unless force.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? diff --git a/generated/google/apis/drive_v2.rb b/generated/google/apis/drive_v2.rb index 9383f68a1..80e930c07 100644 --- a/generated/google/apis/drive_v2.rb +++ b/generated/google/apis/drive_v2.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/drive/ module DriveV2 VERSION = 'V2' - REVISION = '20170616' + REVISION = '20170811' # View and manage the files in your Google Drive AUTH_DRIVE = 'https://www.googleapis.com/auth/drive' diff --git a/generated/google/apis/drive_v3.rb b/generated/google/apis/drive_v3.rb index b6a016b08..41278e7ea 100644 --- a/generated/google/apis/drive_v3.rb +++ b/generated/google/apis/drive_v3.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/drive/ module DriveV3 VERSION = 'V3' - REVISION = '20170616' + REVISION = '20170811' # View and manage the files in your Google Drive AUTH_DRIVE = 'https://www.googleapis.com/auth/drive' diff --git a/generated/google/apis/identitytoolkit_v3.rb b/generated/google/apis/identitytoolkit_v3.rb index 86dce961d..c4cc3cf15 100644 --- a/generated/google/apis/identitytoolkit_v3.rb +++ b/generated/google/apis/identitytoolkit_v3.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/identity-toolkit/v3/ module IdentitytoolkitV3 VERSION = 'V3' - REVISION = '20170614' + REVISION = '20170817' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/identitytoolkit_v3/classes.rb b/generated/google/apis/identitytoolkit_v3/classes.rb index c76bc56c2..86be78a20 100644 --- a/generated/google/apis/identitytoolkit_v3/classes.rb +++ b/generated/google/apis/identitytoolkit_v3/classes.rb @@ -620,6 +620,62 @@ module Google end end + # Request for Identitytoolkit-SendVerificationCode + class IdentitytoolkitRelyingpartySendVerificationCodeRequest + include Google::Apis::Core::Hashable + + # Receipt of successful app token validation with APNS. + # Corresponds to the JSON property `iosReceipt` + # @return [String] + attr_accessor :ios_receipt + + # Secret delivered to iOS app via APNS. + # Corresponds to the JSON property `iosSecret` + # @return [String] + attr_accessor :ios_secret + + # The phone number to send the verification code to in E.164 format. + # Corresponds to the JSON property `phoneNumber` + # @return [String] + attr_accessor :phone_number + + # Recaptcha solution. + # Corresponds to the JSON property `recaptchaToken` + # @return [String] + attr_accessor :recaptcha_token + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @ios_receipt = args[:ios_receipt] if args.key?(:ios_receipt) + @ios_secret = args[:ios_secret] if args.key?(:ios_secret) + @phone_number = args[:phone_number] if args.key?(:phone_number) + @recaptcha_token = args[:recaptcha_token] if args.key?(:recaptcha_token) + end + end + + # Response for Identitytoolkit-SendVerificationCode + class IdentitytoolkitRelyingpartySendVerificationCodeResponse + include Google::Apis::Core::Hashable + + # Encrypted session information + # Corresponds to the JSON property `sessionInfo` + # @return [String] + attr_accessor :session_info + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @session_info = args[:session_info] if args.key?(:session_info) + end + end + # Request to set the account information. class SetAccountInfoRequest include Google::Apis::Core::Hashable @@ -639,6 +695,11 @@ module Google # @return [Fixnum] attr_accessor :created_at + # The custom attributes to be set in the user's id token. + # Corresponds to the JSON property `customAttributes` + # @return [String] + attr_accessor :custom_attributes + # GCP project number of the requesting delegated app. Currently only intended # for Firebase V1 migration. # Corresponds to the JSON property `delegatedProjectNumber` @@ -748,6 +809,7 @@ module Google @captcha_challenge = args[:captcha_challenge] if args.key?(:captcha_challenge) @captcha_response = args[:captcha_response] if args.key?(:captcha_response) @created_at = args[:created_at] if args.key?(:created_at) + @custom_attributes = args[:custom_attributes] if args.key?(:custom_attributes) @delegated_project_number = args[:delegated_project_number] if args.key?(:delegated_project_number) @delete_attribute = args[:delete_attribute] if args.key?(:delete_attribute) @delete_provider = args[:delete_provider] if args.key?(:delete_provider) @@ -1279,6 +1341,135 @@ module Google end end + # Request for Identitytoolkit-VerifyPhoneNumber + class IdentitytoolkitRelyingpartyVerifyPhoneNumberRequest + include Google::Apis::Core::Hashable + + # + # Corresponds to the JSON property `code` + # @return [String] + attr_accessor :code + + # + # Corresponds to the JSON property `idToken` + # @return [String] + attr_accessor :id_token + + # + # Corresponds to the JSON property `operation` + # @return [String] + attr_accessor :operation + + # + # Corresponds to the JSON property `phoneNumber` + # @return [String] + attr_accessor :phone_number + + # The session info previously returned by IdentityToolkit-SendVerificationCode. + # Corresponds to the JSON property `sessionInfo` + # @return [String] + attr_accessor :session_info + + # + # Corresponds to the JSON property `temporaryProof` + # @return [String] + attr_accessor :temporary_proof + + # + # Corresponds to the JSON property `verificationProof` + # @return [String] + attr_accessor :verification_proof + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @code = args[:code] if args.key?(:code) + @id_token = args[:id_token] if args.key?(:id_token) + @operation = args[:operation] if args.key?(:operation) + @phone_number = args[:phone_number] if args.key?(:phone_number) + @session_info = args[:session_info] if args.key?(:session_info) + @temporary_proof = args[:temporary_proof] if args.key?(:temporary_proof) + @verification_proof = args[:verification_proof] if args.key?(:verification_proof) + end + end + + # Response for Identitytoolkit-VerifyPhoneNumber + class IdentitytoolkitRelyingpartyVerifyPhoneNumberResponse + include Google::Apis::Core::Hashable + + # + # Corresponds to the JSON property `expiresIn` + # @return [Fixnum] + attr_accessor :expires_in + + # + # Corresponds to the JSON property `idToken` + # @return [String] + attr_accessor :id_token + + # + # Corresponds to the JSON property `isNewUser` + # @return [Boolean] + attr_accessor :is_new_user + alias_method :is_new_user?, :is_new_user + + # + # Corresponds to the JSON property `localId` + # @return [String] + attr_accessor :local_id + + # + # Corresponds to the JSON property `phoneNumber` + # @return [String] + attr_accessor :phone_number + + # + # Corresponds to the JSON property `refreshToken` + # @return [String] + attr_accessor :refresh_token + + # + # Corresponds to the JSON property `temporaryProof` + # @return [String] + attr_accessor :temporary_proof + + # + # Corresponds to the JSON property `temporaryProofExpiresIn` + # @return [Fixnum] + attr_accessor :temporary_proof_expires_in + + # + # Corresponds to the JSON property `verificationProof` + # @return [String] + attr_accessor :verification_proof + + # + # Corresponds to the JSON property `verificationProofExpiresIn` + # @return [Fixnum] + attr_accessor :verification_proof_expires_in + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @expires_in = args[:expires_in] if args.key?(:expires_in) + @id_token = args[:id_token] if args.key?(:id_token) + @is_new_user = args[:is_new_user] if args.key?(:is_new_user) + @local_id = args[:local_id] if args.key?(:local_id) + @phone_number = args[:phone_number] if args.key?(:phone_number) + @refresh_token = args[:refresh_token] if args.key?(:refresh_token) + @temporary_proof = args[:temporary_proof] if args.key?(:temporary_proof) + @temporary_proof_expires_in = args[:temporary_proof_expires_in] if args.key?(:temporary_proof_expires_in) + @verification_proof = args[:verification_proof] if args.key?(:verification_proof) + @verification_proof_expires_in = args[:verification_proof_expires_in] if args.key?(:verification_proof_expires_in) + end + end + # Template for a single idp configuration. class IdpConfig include Google::Apis::Core::Hashable @@ -1717,6 +1908,11 @@ module Google # @return [Fixnum] attr_accessor :created_at + # The custom attributes to be set in the user's id token. + # Corresponds to the JSON property `customAttributes` + # @return [String] + attr_accessor :custom_attributes + # Whether the user is authenticated by the developer. # Corresponds to the JSON property `customAuth` # @return [Boolean] @@ -1814,6 +2010,7 @@ module Google # Update properties of this object def update!(**args) @created_at = args[:created_at] if args.key?(:created_at) + @custom_attributes = args[:custom_attributes] if args.key?(:custom_attributes) @custom_auth = args[:custom_auth] if args.key?(:custom_auth) @disabled = args[:disabled] if args.key?(:disabled) @display_name = args[:display_name] if args.key?(:display_name) @@ -2176,6 +2373,12 @@ module Google # @return [String] attr_accessor :id_token + # True if it's a new user sign-in, false if it's a returning user. + # Corresponds to the JSON property `isNewUser` + # @return [Boolean] + attr_accessor :is_new_user + alias_method :is_new_user?, :is_new_user + # The fixed string "identitytoolkit#VerifyCustomTokenResponse". # Corresponds to the JSON property `kind` # @return [String] @@ -2194,6 +2397,7 @@ module Google def update!(**args) @expires_in = args[:expires_in] if args.key?(:expires_in) @id_token = args[:id_token] if args.key?(:id_token) + @is_new_user = args[:is_new_user] if args.key?(:is_new_user) @kind = args[:kind] if args.key?(:kind) @refresh_token = args[:refresh_token] if args.key?(:refresh_token) end diff --git a/generated/google/apis/identitytoolkit_v3/representations.rb b/generated/google/apis/identitytoolkit_v3/representations.rb index 0a7abef7f..3f8107b4a 100644 --- a/generated/google/apis/identitytoolkit_v3/representations.rb +++ b/generated/google/apis/identitytoolkit_v3/representations.rb @@ -100,6 +100,18 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class IdentitytoolkitRelyingpartySendVerificationCodeRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class IdentitytoolkitRelyingpartySendVerificationCodeResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class SetAccountInfoRequest class Representation < Google::Apis::Core::JsonRepresentation; end @@ -160,6 +172,18 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class IdentitytoolkitRelyingpartyVerifyPhoneNumberRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class IdentitytoolkitRelyingpartyVerifyPhoneNumberResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class IdpConfig class Representation < Google::Apis::Core::JsonRepresentation; end @@ -391,12 +415,30 @@ module Google end end + class IdentitytoolkitRelyingpartySendVerificationCodeRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :ios_receipt, as: 'iosReceipt' + property :ios_secret, as: 'iosSecret' + property :phone_number, as: 'phoneNumber' + property :recaptcha_token, as: 'recaptchaToken' + end + end + + class IdentitytoolkitRelyingpartySendVerificationCodeResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :session_info, as: 'sessionInfo' + end + end + class SetAccountInfoRequest # @private class Representation < Google::Apis::Core::JsonRepresentation property :captcha_challenge, as: 'captchaChallenge' property :captcha_response, as: 'captchaResponse' property :created_at, :numeric_string => true, as: 'createdAt' + property :custom_attributes, as: 'customAttributes' property :delegated_project_number, :numeric_string => true, as: 'delegatedProjectNumber' collection :delete_attribute, as: 'deleteAttribute' collection :delete_provider, as: 'deleteProvider' @@ -540,6 +582,35 @@ module Google end end + class IdentitytoolkitRelyingpartyVerifyPhoneNumberRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :code, as: 'code' + property :id_token, as: 'idToken' + property :operation, as: 'operation' + property :phone_number, as: 'phoneNumber' + property :session_info, as: 'sessionInfo' + property :temporary_proof, as: 'temporaryProof' + property :verification_proof, as: 'verificationProof' + end + end + + class IdentitytoolkitRelyingpartyVerifyPhoneNumberResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :expires_in, :numeric_string => true, as: 'expiresIn' + property :id_token, as: 'idToken' + property :is_new_user, as: 'isNewUser' + property :local_id, as: 'localId' + property :phone_number, as: 'phoneNumber' + property :refresh_token, as: 'refreshToken' + property :temporary_proof, as: 'temporaryProof' + property :temporary_proof_expires_in, :numeric_string => true, as: 'temporaryProofExpiresIn' + property :verification_proof, as: 'verificationProof' + property :verification_proof_expires_in, :numeric_string => true, as: 'verificationProofExpiresIn' + end + end + class IdpConfig # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -646,6 +717,7 @@ module Google # @private class Representation < Google::Apis::Core::JsonRepresentation property :created_at, :numeric_string => true, as: 'createdAt' + property :custom_attributes, as: 'customAttributes' property :custom_auth, as: 'customAuth' property :disabled, as: 'disabled' property :display_name, as: 'displayName' @@ -731,6 +803,7 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation property :expires_in, :numeric_string => true, as: 'expiresIn' property :id_token, as: 'idToken' + property :is_new_user, as: 'isNewUser' property :kind, as: 'kind' property :refresh_token, as: 'refreshToken' end diff --git a/generated/google/apis/identitytoolkit_v3/service.rb b/generated/google/apis/identitytoolkit_v3/service.rb index 882faf43c..e8ccaaf51 100644 --- a/generated/google/apis/identitytoolkit_v3/service.rb +++ b/generated/google/apis/identitytoolkit_v3/service.rb @@ -365,6 +365,41 @@ module Google execute_or_queue_command(command, &block) end + # Send SMS verification code. + # @param [Google::Apis::IdentitytoolkitV3::IdentitytoolkitRelyingpartySendVerificationCodeRequest] identitytoolkit_relyingparty_send_verification_code_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::IdentitytoolkitV3::IdentitytoolkitRelyingpartySendVerificationCodeResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::IdentitytoolkitV3::IdentitytoolkitRelyingpartySendVerificationCodeResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def send_relyingparty_verification_code(identitytoolkit_relyingparty_send_verification_code_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, 'sendVerificationCode', options) + command.request_representation = Google::Apis::IdentitytoolkitV3::IdentitytoolkitRelyingpartySendVerificationCodeRequest::Representation + command.request_object = identitytoolkit_relyingparty_send_verification_code_request_object + command.response_representation = Google::Apis::IdentitytoolkitV3::IdentitytoolkitRelyingpartySendVerificationCodeResponse::Representation + command.response_class = Google::Apis::IdentitytoolkitV3::IdentitytoolkitRelyingpartySendVerificationCodeResponse + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + # Set account info for a user. # @param [Google::Apis::IdentitytoolkitV3::SetAccountInfoRequest] set_account_info_request_object # @param [String] fields @@ -644,6 +679,42 @@ module Google command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end + + # Verifies ownership of a phone number and creates/updates the user account + # accordingly. + # @param [Google::Apis::IdentitytoolkitV3::IdentitytoolkitRelyingpartyVerifyPhoneNumberRequest] identitytoolkit_relyingparty_verify_phone_number_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::IdentitytoolkitV3::IdentitytoolkitRelyingpartyVerifyPhoneNumberResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::IdentitytoolkitV3::IdentitytoolkitRelyingpartyVerifyPhoneNumberResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def verify_relyingparty_phone_number(identitytoolkit_relyingparty_verify_phone_number_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, 'verifyPhoneNumber', options) + command.request_representation = Google::Apis::IdentitytoolkitV3::IdentitytoolkitRelyingpartyVerifyPhoneNumberRequest::Representation + command.request_object = identitytoolkit_relyingparty_verify_phone_number_request_object + command.response_representation = Google::Apis::IdentitytoolkitV3::IdentitytoolkitRelyingpartyVerifyPhoneNumberResponse::Representation + command.response_class = Google::Apis::IdentitytoolkitV3::IdentitytoolkitRelyingpartyVerifyPhoneNumberResponse + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end protected diff --git a/generated/google/apis/youtube_partner_v1.rb b/generated/google/apis/youtube_partner_v1.rb index 006647063..b62a4191b 100644 --- a/generated/google/apis/youtube_partner_v1.rb +++ b/generated/google/apis/youtube_partner_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/youtube/partner/ module YoutubePartnerV1 VERSION = 'V1' - REVISION = '20170814' + REVISION = '20170821' # View and manage your assets and associated content on YouTube AUTH_YOUTUBEPARTNER = 'https://www.googleapis.com/auth/youtubepartner'