Class: Google::Apis::PartnersV2::UserProfile

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

The profile information of a Partners user.

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

Returns a new instance of UserProfile



2196
2197
2198
# File 'generated/google/apis/partners_v2/classes.rb', line 2196

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

Instance Attribute Details

#addressGoogle::Apis::PartnersV2::Location

A location with address and geographic coordinates. May optionally contain a detailed (multi-field) version of the address. Corresponds to the JSON property address



2189
2190
2191
# File 'generated/google/apis/partners_v2/classes.rb', line 2189

def address
  @address
end

#adwords_manager_accountFixnum

If the user has edit access to multiple accounts, the user can choose the preferred account and it is used when a personal account is needed. Can be empty. Corresponds to the JSON property adwordsManagerAccount

Returns:

  • (Fixnum)


2152
2153
2154
# File 'generated/google/apis/partners_v2/classes.rb', line 2152

def 
  @adwords_manager_account
end

#channelsArray<String>

A list of ids representing which channels the user selected they were in. Corresponds to the JSON property channels

Returns:

  • (Array<String>)


2167
2168
2169
# File 'generated/google/apis/partners_v2/classes.rb', line 2167

def channels
  @channels
end

#email_addressString

The email address the user has selected on the Partners site as primary. Corresponds to the JSON property emailAddress

Returns:

  • (String)


2162
2163
2164
# File 'generated/google/apis/partners_v2/classes.rb', line 2162

def email_address
  @email_address
end

#email_opt_insGoogle::Apis::PartnersV2::OptIns

A set of opt-ins for a user. Corresponds to the JSON property emailOptIns



2135
2136
2137
# File 'generated/google/apis/partners_v2/classes.rb', line 2135

def email_opt_ins
  @email_opt_ins
end

#family_nameString

The user's family name. Corresponds to the JSON property familyName

Returns:

  • (String)


2130
2131
2132
# File 'generated/google/apis/partners_v2/classes.rb', line 2130

def family_name
  @family_name
end

#given_nameString

The user's given name. Corresponds to the JSON property givenName

Returns:

  • (String)


2183
2184
2185
# File 'generated/google/apis/partners_v2/classes.rb', line 2183

def given_name
  @given_name
end

#industriesArray<String>

A list of ids representing which industries the user selected. Corresponds to the JSON property industries

Returns:

  • (Array<String>)


2194
2195
2196
# File 'generated/google/apis/partners_v2/classes.rb', line 2194

def industries
  @industries
end

#job_functionsArray<String>

A list of ids represnting which job categories the user selected. Corresponds to the JSON property jobFunctions

Returns:

  • (Array<String>)


2178
2179
2180
# File 'generated/google/apis/partners_v2/classes.rb', line 2178

def job_functions
  @job_functions
end

#languagesArray<String>

The list of languages this user understands. Corresponds to the JSON property languages

Returns:

  • (Array<String>)


2125
2126
2127
# File 'generated/google/apis/partners_v2/classes.rb', line 2125

def languages
  @languages
end

#marketsArray<String>

A list of ids representing which markets the user was interested in. Corresponds to the JSON property markets

Returns:

  • (Array<String>)


2140
2141
2142
# File 'generated/google/apis/partners_v2/classes.rb', line 2140

def markets
  @markets
end

#phone_numberString

The user's phone number. Corresponds to the JSON property phoneNumber

Returns:

  • (String)


2145
2146
2147
# File 'generated/google/apis/partners_v2/classes.rb', line 2145

def phone_number
  @phone_number
end

#primary_country_codeString

The user's primary country, an ISO 2-character code. Corresponds to the JSON property primaryCountryCode

Returns:

  • (String)


2157
2158
2159
# File 'generated/google/apis/partners_v2/classes.rb', line 2157

def primary_country_code
  @primary_country_code
end

#profile_publicBoolean Also known as: profile_public?

Whether the user's public profile is visible to anyone with the URL. Corresponds to the JSON property profilePublic

Returns:

  • (Boolean)


2172
2173
2174
# File 'generated/google/apis/partners_v2/classes.rb', line 2172

def profile_public
  @profile_public
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
# File 'generated/google/apis/partners_v2/classes.rb', line 2201

def update!(**args)
  @languages = args[:languages] if args.key?(:languages)
  @family_name = args[:family_name] if args.key?(:family_name)
  @email_opt_ins = args[:email_opt_ins] if args.key?(:email_opt_ins)
  @markets = args[:markets] if args.key?(:markets)
  @phone_number = args[:phone_number] if args.key?(:phone_number)
  @adwords_manager_account = args[:adwords_manager_account] if args.key?(:adwords_manager_account)
  @primary_country_code = args[:primary_country_code] if args.key?(:primary_country_code)
  @email_address = args[:email_address] if args.key?(:email_address)
  @channels = args[:channels] if args.key?(:channels)
  @profile_public = args[:profile_public] if args.key?(:profile_public)
  @job_functions = args[:job_functions] if args.key?(:job_functions)
  @given_name = args[:given_name] if args.key?(:given_name)
  @address = args[:address] if args.key?(:address)
  @industries = args[:industries] if args.key?(:industries)
end