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

Returns a new instance of UploadAccountRequest



1129
1130
1131
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 1129

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

Returns:

  • (Boolean)


1075
1076
1077
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 1075

def allow_overwrite
  @allow_overwrite
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

Returns:

  • (Fixnum)


1082
1083
1084
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 1082

def delegated_project_number
  @delegated_project_number
end

#hash_algorithmString

The password hash algorithm. Corresponds to the JSON property hashAlgorithm

Returns:

  • (String)


1087
1088
1089
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 1087

def hash_algorithm
  @hash_algorithm
end

#memory_costFixnum

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

Returns:

  • (Fixnum)


1092
1093
1094
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 1092

def memory_cost
  @memory_cost
end

#roundsFixnum

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

Returns:

  • (Fixnum)


1097
1098
1099
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 1097

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.

Returns:

  • (String)


1103
1104
1105
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 1103

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

Returns:

  • (Boolean)


1109
1110
1111
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 1109

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.

Returns:

  • (String)


1116
1117
1118
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 1116

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

Returns:

  • (String)


1122
1123
1124
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 1122

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



1127
1128
1129
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 1127

def users
  @users
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 1134

def update!(**args)
  @allow_overwrite = args[:allow_overwrite] if args.key?(:allow_overwrite)
  @delegated_project_number = args[:delegated_project_number] if args.key?(:delegated_project_number)
  @hash_algorithm = args[:hash_algorithm] if args.key?(:hash_algorithm)
  @memory_cost = args[:memory_cost] if args.key?(:memory_cost)
  @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