Class: Google::Apis::IdentitytoolkitV1::GoogleCloudIdentitytoolkitV1GetAccountInfoRequest

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudIdentitytoolkitV1GetAccountInfoRequest

Returns a new instance of GoogleCloudIdentitytoolkitV1GetAccountInfoRequest.



747
748
749
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 747

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

Instance Attribute Details

#delegated_project_numberFixnum

Corresponds to the JSON property delegatedProjectNumber

Returns:

  • (Fixnum)


685
686
687
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 685

def delegated_project_number
  @delegated_project_number
end

#emailArray<String>

The email address of one or more accounts to fetch. The length of email should be less than 256 characters and in the format of name@domain.tld. The email should also match the RFC 822 addr-spec production. Should only be specified by authenticated requests from a developer. Corresponds to the JSON property email

Returns:

  • (Array<String>)


694
695
696
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 694

def email
  @email
end

#federated_user_idArray<Google::Apis::IdentitytoolkitV1::GoogleCloudIdentitytoolkitV1FederatedUserIdentifier>

The federated user identifier of one or more accounts to fetch. Should only be specified by authenticated requests bearing a Google OAuth 2.0 credential with proper permissions. Corresponds to the JSON property federatedUserId



702
703
704
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 702

def federated_user_id
  @federated_user_id
end

#id_tokenString

The Identity Platform ID token of the account to fetch. Require to be specified for requests from end users. Corresponds to the JSON property idToken

Returns:

  • (String)


708
709
710
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 708

def id_token
  @id_token
end

#initial_emailArray<String>

The initial email of one or more accounts to fetch. The length of email should be less than 256 characters and in the format of name@domain.tld. The email should also match the RFC 822 addr-spec production. Should only be specified by authenticated requests from a developer. Corresponds to the JSON property initialEmail

Returns:

  • (Array<String>)


717
718
719
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 717

def initial_email
  @initial_email
end

#local_idArray<String>

The ID of one or more accounts to fetch. Should only be specified by authenticated requests bearing a Google OAuth 2.0 credential with proper permissions. Corresponds to the JSON property localId

Returns:

  • (Array<String>)


724
725
726
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 724

def local_id
  @local_id
end

#phone_numberArray<String>

The phone number of one or more accounts to fetch. Should only be specified by authenticated requests from a developer and should be in E.164 format, for example, +15555555555. Corresponds to the JSON property phoneNumber

Returns:

  • (Array<String>)


731
732
733
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 731

def phone_number
  @phone_number
end

#target_project_idString

The ID of the Google Cloud project that the account or the Identity Platform tenant specified by tenant_id belongs to. Should only be specified by authenticated requests bearing a Google OAuth 2.0 credential with proper permissions. Corresponds to the JSON property targetProjectId

Returns:

  • (String)


739
740
741
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 739

def target_project_id
  @target_project_id
end

#tenant_idString

The ID of the tenant that the account belongs to. Should only be specified by authenticated requests from a developer. Corresponds to the JSON property tenantId

Returns:

  • (String)


745
746
747
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 745

def tenant_id
  @tenant_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



752
753
754
755
756
757
758
759
760
761
762
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 752

def update!(**args)
  @delegated_project_number = args[:delegated_project_number] if args.key?(:delegated_project_number)
  @email = args[:email] if args.key?(:email)
  @federated_user_id = args[:federated_user_id] if args.key?(:federated_user_id)
  @id_token = args[:id_token] if args.key?(:id_token)
  @initial_email = args[:initial_email] if args.key?(:initial_email)
  @local_id = args[:local_id] if args.key?(:local_id)
  @phone_number = args[:phone_number] if args.key?(:phone_number)
  @target_project_id = args[:target_project_id] if args.key?(:target_project_id)
  @tenant_id = args[:tenant_id] if args.key?(:tenant_id)
end