Class: Google::Apis::IdentitytoolkitV1::GoogleCloudIdentitytoolkitV1GetOobCodeRequest
- Inherits:
-
Object
- Object
- Google::Apis::IdentitytoolkitV1::GoogleCloudIdentitytoolkitV1GetOobCodeRequest
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/identitytoolkit_v1/classes.rb,
lib/google/apis/identitytoolkit_v1/representations.rb,
lib/google/apis/identitytoolkit_v1/representations.rb
Overview
Request message for GetOobCode.
Instance Attribute Summary collapse
-
#android_install_app ⇒ Boolean
(also: #android_install_app?)
If an associated android app can handle the OOB code, whether or not to install the android app on the device where the link is opened if the app is not already installed.
-
#android_minimum_version ⇒ String
If an associated android app can handle the OOB code, the minimum version of the app.
-
#android_package_name ⇒ String
If an associated android app can handle the OOB code, the Android package name of the android app that will handle the callback when this OOB code is used.
-
#can_handle_code_in_app ⇒ Boolean
(also: #can_handle_code_in_app?)
When set to true, the OOB code link will be be sent as a Universal Link or an Android App Link and will be opened by the corresponding app if installed.
-
#captcha_resp ⇒ String
For a PASSWORD_RESET request, a reCaptcha response is required when the system detects possible abuse activity.
-
#challenge ⇒ String
Corresponds to the JSON property
challenge. -
#continue_url ⇒ String
The Url to continue after user clicks the link sent in email.
-
#dynamic_link_domain ⇒ String
In order to ensure that the url used can be easily opened up in iOS or android, we create a Firebase Dynamic Link.
-
#email ⇒ String
The account's email address to send the OOB code to, and generally the email address of the account that needs to be updated.
-
#i_os_app_store_id ⇒ String
If an associated iOS app can handle the OOB code, the App Store id of this app.
-
#i_os_bundle_id ⇒ String
If an associated iOS app can handle the OOB code, the iOS bundle id of this app.
-
#id_token ⇒ String
An ID token for the account.
-
#new_email ⇒ String
The email address the account is being updated to.
-
#request_type ⇒ String
Required.
-
#return_oob_link ⇒ Boolean
(also: #return_oob_link?)
Whether the confirmation link containing the OOB code should be returned in the response (no email is sent).
-
#target_project_id ⇒ String
The Project ID of the Identity Platform project which the account belongs to.
-
#tenant_id ⇒ String
The tenant ID of the Identity Platform tenant the account belongs to.
-
#user_ip ⇒ String
The IP address of the caller.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudIdentitytoolkitV1GetOobCodeRequest
constructor
A new instance of GoogleCloudIdentitytoolkitV1GetOobCodeRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudIdentitytoolkitV1GetOobCodeRequest
Returns a new instance of GoogleCloudIdentitytoolkitV1GetOobCodeRequest.
924 925 926 |
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 924 def initialize(**args) update!(**args) end |
Instance Attribute Details
#android_install_app ⇒ Boolean Also known as: android_install_app?
If an associated android app can handle the OOB code, whether or not to
install the android app on the device where the link is opened if the app is
not already installed.
Corresponds to the JSON property androidInstallApp
800 801 802 |
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 800 def android_install_app @android_install_app end |
#android_minimum_version ⇒ String
If an associated android app can handle the OOB code, the minimum version of
the app. If the version on the device is lower than this version then the user
is taken to Google Play Store to upgrade the app.
Corresponds to the JSON property androidMinimumVersion
808 809 810 |
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 808 def android_minimum_version @android_minimum_version end |
#android_package_name ⇒ String
If an associated android app can handle the OOB code, the Android package name
of the android app that will handle the callback when this OOB code is used.
This will allow the correct app to open if it is already installed, or allow
Google Play Store to open to the correct app if it is not yet installed.
Corresponds to the JSON property androidPackageName
816 817 818 |
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 816 def android_package_name @android_package_name end |
#can_handle_code_in_app ⇒ Boolean Also known as: can_handle_code_in_app?
When set to true, the OOB code link will be be sent as a Universal Link or an
Android App Link and will be opened by the corresponding app if installed. If
not set, or set to false, the OOB code will be sent to the web widget first
and then on continue will redirect to the app if installed.
Corresponds to the JSON property canHandleCodeInApp
824 825 826 |
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 824 def can_handle_code_in_app @can_handle_code_in_app end |
#captcha_resp ⇒ String
For a PASSWORD_RESET request, a reCaptcha response is required when the system
detects possible abuse activity. In those cases, this is the response from the
reCaptcha challenge used to verify the caller.
Corresponds to the JSON property captchaResp
832 833 834 |
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 832 def captcha_resp @captcha_resp end |
#challenge ⇒ String
Corresponds to the JSON property challenge
837 838 839 |
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 837 def challenge @challenge end |
#continue_url ⇒ String
The Url to continue after user clicks the link sent in email. This is the url
that will allow the web widget to handle the OOB code.
Corresponds to the JSON property continueUrl
843 844 845 |
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 843 def continue_url @continue_url end |
#dynamic_link_domain ⇒ String
In order to ensure that the url used can be easily opened up in iOS or android,
we create a Firebase Dynamic Link. Most Identity Platform projects will only have one Dynamic Link domain
enabled, and can leave this field blank. This field contains a specified
Dynamic Link domain for projects that have multiple enabled.
Corresponds to the JSON property dynamicLinkDomain
852 853 854 |
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 852 def dynamic_link_domain @dynamic_link_domain end |
#email ⇒ String
The account's email address to send the OOB code to, and generally the email
address of the account that needs to be updated. Required for PASSWORD_RESET,
EMAIL_SIGNIN, and VERIFY_EMAIL. Only required for VERIFY_AND_CHANGE_EMAIL
requests when return_oob_link is set to true. In this case, it is the original
email of the user.
Corresponds to the JSON property email
861 862 863 |
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 861 def email @email end |
#i_os_app_store_id ⇒ String
If an associated iOS app can handle the OOB code, the App Store id of this app.
This will allow App Store to open to the correct app if the app is not yet
installed.
Corresponds to the JSON property iOSAppStoreId
868 869 870 |
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 868 def i_os_app_store_id @i_os_app_store_id end |
#i_os_bundle_id ⇒ String
If an associated iOS app can handle the OOB code, the iOS bundle id of this
app. This will allow the correct app to open if it is already installed.
Corresponds to the JSON property iOSBundleId
874 875 876 |
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 874 def i_os_bundle_id @i_os_bundle_id end |
#id_token ⇒ String
An ID token for the account. It is required for VERIFY_AND_CHANGE_EMAIL and
VERIFY_EMAIL requests unless return_oob_link is set to true.
Corresponds to the JSON property idToken
880 881 882 |
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 880 def id_token @id_token end |
#new_email ⇒ String
The email address the account is being updated to. Required only for
VERIFY_AND_CHANGE_EMAIL requests.
Corresponds to the JSON property newEmail
886 887 888 |
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 886 def new_email @new_email end |
#request_type ⇒ String
Required. The type of out-of-band (OOB) code to send. Depending on this value,
other fields in this request will be required and/or have different meanings.
There are 4 different OOB codes that can be sent: * PASSWORD_RESET *
EMAIL_SIGNIN * VERIFY_EMAIL * VERIFY_AND_CHANGE_EMAIL
Corresponds to the JSON property requestType
894 895 896 |
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 894 def request_type @request_type end |
#return_oob_link ⇒ Boolean Also known as: return_oob_link?
Whether the confirmation link containing the OOB code should be returned in
the response (no email is sent). Used when a developer wants to construct the
email template and send it on their own. By default this is false; to specify
this field, and to set it to true, it requires a Google OAuth 2.0 credential
with proper permissions
Corresponds to the JSON property returnOobLink
904 905 906 |
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 904 def return_oob_link @return_oob_link end |
#target_project_id ⇒ String
The Project ID of the Identity Platform project which the account belongs to.
To specify this field, it requires a Google OAuth 2.0 credential with proper
permissions.
Corresponds to the JSON property targetProjectId
912 913 914 |
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 912 def target_project_id @target_project_id end |
#tenant_id ⇒ String
The tenant ID of the Identity Platform tenant the account belongs to.
Corresponds to the JSON property tenantId
917 918 919 |
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 917 def tenant_id @tenant_id end |
#user_ip ⇒ String
The IP address of the caller. Required only for PASSWORD_RESET requests.
Corresponds to the JSON property userIp
922 923 924 |
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 922 def user_ip @user_ip end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 |
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 929 def update!(**args) @android_install_app = args[:android_install_app] if args.key?(:android_install_app) @android_minimum_version = args[:android_minimum_version] if args.key?(:android_minimum_version) @android_package_name = args[:android_package_name] if args.key?(:android_package_name) @can_handle_code_in_app = args[:can_handle_code_in_app] if args.key?(:can_handle_code_in_app) @captcha_resp = args[:captcha_resp] if args.key?(:captcha_resp) @challenge = args[:challenge] if args.key?(:challenge) @continue_url = args[:continue_url] if args.key?(:continue_url) @dynamic_link_domain = args[:dynamic_link_domain] if args.key?(:dynamic_link_domain) @email = args[:email] if args.key?(:email) @i_os_app_store_id = args[:i_os_app_store_id] if args.key?(:i_os_app_store_id) @i_os_bundle_id = args[:i_os_bundle_id] if args.key?(:i_os_bundle_id) @id_token = args[:id_token] if args.key?(:id_token) @new_email = args[:new_email] if args.key?(:new_email) @request_type = args[:request_type] if args.key?(:request_type) @return_oob_link = args[:return_oob_link] if args.key?(:return_oob_link) @target_project_id = args[:target_project_id] if args.key?(:target_project_id) @tenant_id = args[:tenant_id] if args.key?(:tenant_id) @user_ip = args[:user_ip] if args.key?(:user_ip) end |