Class: Google::Apis::IdentitytoolkitV3::UploadAccountRequest

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ UploadAccountRequest


1270
1271
1272
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 1270

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#allow_overwriteBoolean Also known as: allow_overwrite?

Whether allow overwrite existing account when user local_id exists. Corresponds to the JSON property allowOverwrite


1196
1197
1198
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 1196

def allow_overwrite
  @allow_overwrite
end

#block_sizeFixnum

Corresponds to the JSON property blockSize


1202
1203
1204
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 1202

def block_size
  @block_size
end

#cpu_mem_costFixnum

The following 4 fields are for standard scrypt algorithm. Corresponds to the JSON property cpuMemCost


1207
1208
1209
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 1207

def cpu_mem_cost
  @cpu_mem_cost
end

#delegated_project_numberFixnum

GCP project number of the requesting delegated app. Currently only intended for Firebase V1 migration. Corresponds to the JSON property delegatedProjectNumber


1213
1214
1215
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 1213

def delegated_project_number
  @delegated_project_number
end

#dk_lenFixnum

Corresponds to the JSON property dkLen


1218
1219
1220
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 1218

def dk_len
  @dk_len
end

#hash_algorithmString

The password hash algorithm. Corresponds to the JSON property hashAlgorithm


1223
1224
1225
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 1223

def hash_algorithm
  @hash_algorithm
end

#memory_costFixnum

Memory cost for hash calculation. Used by scrypt similar algorithms. Corresponds to the JSON property memoryCost


1228
1229
1230
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 1228

def memory_cost
  @memory_cost
end

#parallelizationFixnum

Corresponds to the JSON property parallelization


1233
1234
1235
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 1233

def parallelization
  @parallelization
end

#roundsFixnum

Rounds for hash calculation. Used by scrypt and similar algorithms. Corresponds to the JSON property rounds


1238
1239
1240
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 1238

def rounds
  @rounds
end

#salt_separatorString

The salt separator. Corresponds to the JSON property saltSeparator NOTE: Values are automatically base64 encoded/decoded in the client library.


1244
1245
1246
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 1244

def salt_separator
  @salt_separator
end

#sanity_checkBoolean 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


1250
1251
1252
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 1250

def sanity_check
  @sanity_check
end

#signer_keyString

The key for to hash the password. Corresponds to the JSON property signerKey NOTE: Values are automatically base64 encoded/decoded in the client library.


1257
1258
1259
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 1257

def signer_key
  @signer_key
end

#target_project_idString

Specify which project (field value is actually project id) to operate. Only used when provided credential. Corresponds to the JSON property targetProjectId


1263
1264
1265
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 1263

def target_project_id
  @target_project_id
end

#usersArray<Google::Apis::IdentitytoolkitV3::UserInfo>

The account info to be stored. Corresponds to the JSON property users


1268
1269
1270
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 1268

def users
  @users
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 1275

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