Class: Google::Apis::PartnersV2::User
- Inherits:
-
Object
- Object
- Google::Apis::PartnersV2::User
- 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
-
#available_adwords_manager_accounts ⇒ Array<Google::Apis::PartnersV2::AdWordsManagerAccountInfo>
This is the list of AdWords Manager Accounts the user has edit access to.
-
#certification_status ⇒ Array<Google::Apis::PartnersV2::Certification>
The list of achieved certifications.
-
#company ⇒ Google::Apis::PartnersV2::CompanyRelation
A CompanyRelation resource representing information about a user's affiliation and standing with a company in Partners.
-
#company_verification_email ⇒ String
The email address used by the user used for company verification.
-
#exam_status ⇒ Array<Google::Apis::PartnersV2::ExamStatus>
The list of exams the user ever taken.
-
#id ⇒ String
The ID of the user.
-
#last_access_time ⇒ String
The most recent time the user interacted with the Partners site.
-
#primary_emails ⇒ Array<String>
The list of emails the user has access to/can select as primary.
-
#profile ⇒ Google::Apis::PartnersV2::UserProfile
The profile information of a Partners user.
-
#public_profile ⇒ Google::Apis::PartnersV2::PublicProfile
Basic information from a public profile.
Instance Method Summary collapse
-
#initialize(**args) ⇒ User
constructor
A new instance of User.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ User
Returns a new instance of User
1180 1181 1182 |
# File 'generated/google/apis/partners_v2/classes.rb', line 1180 def initialize(**args) update!(**args) end |
Instance Attribute Details
#available_adwords_manager_accounts ⇒ Array<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
1126 1127 1128 |
# File 'generated/google/apis/partners_v2/classes.rb', line 1126 def available_adwords_manager_accounts @available_adwords_manager_accounts end |
#certification_status ⇒ Array<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
1161 1162 1163 |
# File 'generated/google/apis/partners_v2/classes.rb', line 1161 def certification_status @certification_status end |
#company ⇒ Google::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
1167 1168 1169 |
# File 'generated/google/apis/partners_v2/classes.rb', line 1167 def company @company end |
#company_verification_email ⇒ String
The email address used by the user used for company verification.
Corresponds to the JSON property companyVerificationEmail
1154 1155 1156 |
# File 'generated/google/apis/partners_v2/classes.rb', line 1154 def company_verification_email @company_verification_email end |
#exam_status ⇒ Array<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
1138 1139 1140 |
# File 'generated/google/apis/partners_v2/classes.rb', line 1138 def exam_status @exam_status end |
#id ⇒ String
The ID of the user.
Corresponds to the JSON property id
1143 1144 1145 |
# File 'generated/google/apis/partners_v2/classes.rb', line 1143 def id @id end |
#last_access_time ⇒ String
The most recent time the user interacted with the Partners site.
Corresponds to the JSON property lastAccessTime
1178 1179 1180 |
# File 'generated/google/apis/partners_v2/classes.rb', line 1178 def last_access_time @last_access_time end |
#primary_emails ⇒ Array<String>
The list of emails the user has access to/can select as primary.
Corresponds to the JSON property primaryEmails
1132 1133 1134 |
# File 'generated/google/apis/partners_v2/classes.rb', line 1132 def primary_emails @primary_emails end |
#profile ⇒ Google::Apis::PartnersV2::UserProfile
The profile information of a Partners user.
Corresponds to the JSON property profile
1172 1173 1174 |
# File 'generated/google/apis/partners_v2/classes.rb', line 1172 def profile @profile end |
#public_profile ⇒ Google::Apis::PartnersV2::PublicProfile
Basic information from a public profile.
Corresponds to the JSON property publicProfile
1148 1149 1150 |
# File 'generated/google/apis/partners_v2/classes.rb', line 1148 def public_profile @public_profile end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 |
# File 'generated/google/apis/partners_v2/classes.rb', line 1185 def update!(**args) @available_adwords_manager_accounts = args[:available_adwords_manager_accounts] if args.key?(:available_adwords_manager_accounts) @primary_emails = args[:primary_emails] if args.key?(:primary_emails) @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) @company = args[:company] if args.key?(:company) @profile = args[:profile] if args.key?(:profile) @last_access_time = args[:last_access_time] if args.key?(:last_access_time) end |