Class: Google::Apis::IdentitytoolkitV3::SignupNewUserResponse

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

Response of signing up new user, creating anonymous user or anonymous user reauth.

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) ⇒ SignupNewUserResponse

Returns a new instance of SignupNewUserResponse



1836
1837
1838
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 1836

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

Instance Attribute Details

#display_nameString

The name of the user. Corresponds to the JSON property displayName

Returns:

  • (String)


1803
1804
1805
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 1803

def display_name
  @display_name
end

#emailString

The email of the user. Corresponds to the JSON property email

Returns:

  • (String)


1808
1809
1810
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 1808

def email
  @email
end

#expires_inFixnum

If idToken is STS id token, then this field will be expiration time of STS id token in seconds. Corresponds to the JSON property expiresIn

Returns:

  • (Fixnum)


1814
1815
1816
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 1814

def expires_in
  @expires_in
end

#id_tokenString

The Gitkit id token to login the newly sign up user. Corresponds to the JSON property idToken

Returns:

  • (String)


1819
1820
1821
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 1819

def id_token
  @id_token
end

#kindString

The fixed string "identitytoolkit#SignupNewUserResponse". Corresponds to the JSON property kind

Returns:

  • (String)


1824
1825
1826
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 1824

def kind
  @kind
end

#local_idString

The RP local ID of the user. Corresponds to the JSON property localId

Returns:

  • (String)


1829
1830
1831
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 1829

def local_id
  @local_id
end

#refresh_tokenString

If idToken is STS id token, then this field will be refresh token. Corresponds to the JSON property refreshToken

Returns:

  • (String)


1834
1835
1836
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 1834

def refresh_token
  @refresh_token
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1841
1842
1843
1844
1845
1846
1847
1848
1849
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 1841

def update!(**args)
  @display_name = args[:display_name] if args.key?(:display_name)
  @email = args[:email] if args.key?(:email)
  @expires_in = args[:expires_in] if args.key?(:expires_in)
  @id_token = args[:id_token] if args.key?(:id_token)
  @kind = args[:kind] if args.key?(:kind)
  @local_id = args[:local_id] if args.key?(:local_id)
  @refresh_token = args[:refresh_token] if args.key?(:refresh_token)
end