Class: Google::Apis::PartnersV2::User

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/partners_v2/classes.rb,
generated/google/apis/partners_v2/representations.rb,
generated/google/apis/partners_v2/representations.rb

Overview

A resource representing a user of the Partners platform.

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

Returns a new instance of User



1562
1563
1564
# File 'generated/google/apis/partners_v2/classes.rb', line 1562

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

Instance Attribute Details

#available_adwords_manager_accountsArray<Google::Apis::PartnersV2::AdWordsManagerAccountInfo>

This is the list of AdWords Manager Accounts the user has edit access to. If the user has edit access to multiple accounts, the user can choose the preferred account and we use this when a personal account is needed. Can be empty meaning the user has access to no accounts. Corresponds to the JSON property availableAdwordsManagerAccounts



1508
1509
1510
# File 'generated/google/apis/partners_v2/classes.rb', line 1508

def available_adwords_manager_accounts
  @available_adwords_manager_accounts
end

#certification_statusArray<Google::Apis::PartnersV2::Certification>

The list of achieved certifications. These are calculated based on exam results and other requirements. Corresponds to the JSON property certificationStatus



1543
1544
1545
# File 'generated/google/apis/partners_v2/classes.rb', line 1543

def certification_status
  @certification_status
end

#companyGoogle::Apis::PartnersV2::CompanyRelation

A CompanyRelation resource representing information about a user's affiliation and standing with a company in Partners. Corresponds to the JSON property company



1554
1555
1556
# File 'generated/google/apis/partners_v2/classes.rb', line 1554

def company
  @company
end

#company_verification_emailString

The email address used by the user used for company verification. Corresponds to the JSON property companyVerificationEmail

Returns:

  • (String)


1536
1537
1538
# File 'generated/google/apis/partners_v2/classes.rb', line 1536

def company_verification_email
  @company_verification_email
end

#exam_statusArray<Google::Apis::PartnersV2::ExamStatus>

The list of exams the user ever taken. For each type of exam, only one entry is listed. Corresponds to the JSON property examStatus



1520
1521
1522
# File 'generated/google/apis/partners_v2/classes.rb', line 1520

def exam_status
  @exam_status
end

#idString

The ID of the user. Corresponds to the JSON property id

Returns:

  • (String)


1525
1526
1527
# File 'generated/google/apis/partners_v2/classes.rb', line 1525

def id
  @id
end

#internal_idString

The internal user ID. Only available for a whitelisted set of api clients. Corresponds to the JSON property internalId

Returns:

  • (String)


1514
1515
1516
# File 'generated/google/apis/partners_v2/classes.rb', line 1514

def internal_id
  @internal_id
end

#last_access_timeString

The most recent time the user interacted with the Partners site. Corresponds to the JSON property lastAccessTime

Returns:

  • (String)


1560
1561
1562
# File 'generated/google/apis/partners_v2/classes.rb', line 1560

def last_access_time
  @last_access_time
end

#primary_emailsArray<String>

The list of emails the user has access to/can select as primary. Corresponds to the JSON property primaryEmails

Returns:

  • (Array<String>)


1499
1500
1501
# File 'generated/google/apis/partners_v2/classes.rb', line 1499

def primary_emails
  @primary_emails
end

#profileGoogle::Apis::PartnersV2::UserProfile

The profile information of a Partners user. Corresponds to the JSON property profile



1548
1549
1550
# File 'generated/google/apis/partners_v2/classes.rb', line 1548

def profile
  @profile
end

#public_profileGoogle::Apis::PartnersV2::PublicProfile

Basic information from a public profile. Corresponds to the JSON property publicProfile



1530
1531
1532
# File 'generated/google/apis/partners_v2/classes.rb', line 1530

def public_profile
  @public_profile
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
# File 'generated/google/apis/partners_v2/classes.rb', line 1567

def update!(**args)
  @primary_emails = args[:primary_emails] if args.key?(:primary_emails)
  @available_adwords_manager_accounts = args[:available_adwords_manager_accounts] if args.key?(:available_adwords_manager_accounts)
  @internal_id = args[:internal_id] if args.key?(:internal_id)
  @exam_status = args[:exam_status] if args.key?(:exam_status)
  @id = args[:id] if args.key?(:id)
  @public_profile = args[:public_profile] if args.key?(:public_profile)
  @company_verification_email = args[:company_verification_email] if args.key?(:company_verification_email)
  @certification_status = args[:certification_status] if args.key?(:certification_status)
  @profile = args[:profile] if args.key?(:profile)
  @company = args[:company] if args.key?(:company)
  @last_access_time = args[:last_access_time] if args.key?(:last_access_time)
end