Class: Google::Apis::IdentitytoolkitV3::UploadAccountRequest
- Inherits:
-
Object
- Object
- Google::Apis::IdentitytoolkitV3::UploadAccountRequest
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/identitytoolkit_v3/classes.rb,
generated/google/apis/identitytoolkit_v3/representations.rb,
generated/google/apis/identitytoolkit_v3/representations.rb
Overview
Request to upload user account in batch.
Instance Attribute Summary collapse
-
#allow_overwrite ⇒ Boolean
(also: #allow_overwrite?)
Whether allow overwrite existing account when user local_id exists.
-
#block_size ⇒ Fixnum
Corresponds to the JSON property
blockSize
. -
#cpu_mem_cost ⇒ Fixnum
The following 4 fields are for standard scrypt algorithm.
-
#delegated_project_number ⇒ Fixnum
GCP project number of the requesting delegated app.
-
#dk_len ⇒ Fixnum
Corresponds to the JSON property
dkLen
. -
#hash_algorithm ⇒ String
The password hash algorithm.
-
#memory_cost ⇒ Fixnum
Memory cost for hash calculation.
-
#parallelization ⇒ Fixnum
Corresponds to the JSON property
parallelization
. -
#rounds ⇒ Fixnum
Rounds for hash calculation.
-
#salt_separator ⇒ String
The salt separator.
-
#sanity_check ⇒ Boolean
(also: #sanity_check?)
If true, backend will do sanity check(including duplicate email and federated id) when uploading account.
-
#signer_key ⇒ String
The key for to hash the password.
-
#target_project_id ⇒ String
Specify which project (field value is actually project id) to operate.
-
#users ⇒ Array<Google::Apis::IdentitytoolkitV3::UserInfo>
The account info to be stored.
Instance Method Summary collapse
-
#initialize(**args) ⇒ UploadAccountRequest
constructor
A new instance of UploadAccountRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ UploadAccountRequest
Returns a new instance of UploadAccountRequest
1149 1150 1151 |
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 1149 def initialize(**args) update!(**args) end |
Instance Attribute Details
#allow_overwrite ⇒ Boolean Also known as: allow_overwrite?
Whether allow overwrite existing account when user local_id exists.
Corresponds to the JSON property allowOverwrite
1075 1076 1077 |
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 1075 def allow_overwrite @allow_overwrite end |
#block_size ⇒ Fixnum
Corresponds to the JSON property blockSize
1081 1082 1083 |
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 1081 def block_size @block_size end |
#cpu_mem_cost ⇒ Fixnum
The following 4 fields are for standard scrypt algorithm.
Corresponds to the JSON property cpuMemCost
1086 1087 1088 |
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 1086 def cpu_mem_cost @cpu_mem_cost end |
#delegated_project_number ⇒ Fixnum
GCP project number of the requesting delegated app. Currently only intended
for Firebase V1 migration.
Corresponds to the JSON property delegatedProjectNumber
1092 1093 1094 |
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 1092 def delegated_project_number @delegated_project_number end |
#dk_len ⇒ Fixnum
Corresponds to the JSON property dkLen
1097 1098 1099 |
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 1097 def dk_len @dk_len end |
#hash_algorithm ⇒ String
The password hash algorithm.
Corresponds to the JSON property hashAlgorithm
1102 1103 1104 |
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 1102 def hash_algorithm @hash_algorithm end |
#memory_cost ⇒ Fixnum
Memory cost for hash calculation. Used by scrypt similar algorithms.
Corresponds to the JSON property memoryCost
1107 1108 1109 |
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 1107 def memory_cost @memory_cost end |
#parallelization ⇒ Fixnum
Corresponds to the JSON property parallelization
1112 1113 1114 |
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 1112 def parallelization @parallelization end |
#rounds ⇒ Fixnum
Rounds for hash calculation. Used by scrypt and similar algorithms.
Corresponds to the JSON property rounds
1117 1118 1119 |
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 1117 def rounds @rounds end |
#salt_separator ⇒ String
The salt separator.
Corresponds to the JSON property saltSeparator
NOTE: Values are automatically base64 encoded/decoded in the client library.
1123 1124 1125 |
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 1123 def salt_separator @salt_separator end |
#sanity_check ⇒ Boolean Also known as: sanity_check?
If true, backend will do sanity check(including duplicate email and federated
id) when uploading account.
Corresponds to the JSON property sanityCheck
1129 1130 1131 |
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 1129 def sanity_check @sanity_check end |
#signer_key ⇒ String
The key for to hash the password.
Corresponds to the JSON property signerKey
NOTE: Values are automatically base64 encoded/decoded in the client library.
1136 1137 1138 |
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 1136 def signer_key @signer_key end |
#target_project_id ⇒ String
Specify which project (field value is actually project id) to operate. Only
used when provided credential.
Corresponds to the JSON property targetProjectId
1142 1143 1144 |
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 1142 def target_project_id @target_project_id end |
#users ⇒ Array<Google::Apis::IdentitytoolkitV3::UserInfo>
The account info to be stored.
Corresponds to the JSON property users
1147 1148 1149 |
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 1147 def users @users end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 |
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 1154 def update!(**args) @allow_overwrite = args[:allow_overwrite] if args.key?(:allow_overwrite) @block_size = args[:block_size] if args.key?(:block_size) @cpu_mem_cost = args[:cpu_mem_cost] if args.key?(:cpu_mem_cost) @delegated_project_number = args[:delegated_project_number] if args.key?(:delegated_project_number) @dk_len = args[:dk_len] if args.key?(:dk_len) @hash_algorithm = args[:hash_algorithm] if args.key?(:hash_algorithm) @memory_cost = args[:memory_cost] if args.key?(:memory_cost) @parallelization = args[:parallelization] if args.key?(:parallelization) @rounds = args[:rounds] if args.key?(:rounds) @salt_separator = args[:salt_separator] if args.key?(:salt_separator) @sanity_check = args[:sanity_check] if args.key?(:sanity_check) @signer_key = args[:signer_key] if args.key?(:signer_key) @target_project_id = args[:target_project_id] if args.key?(:target_project_id) @users = args[:users] if args.key?(:users) end |