Class: Google::Apis::PartnersV2::CompanyRelation

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 CompanyRelation resource representing information about a user's affiliation and standing with a company in Partners.

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

Returns a new instance of CompanyRelation



1304
1305
1306
# File 'generated/google/apis/partners_v2/classes.rb', line 1304

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

Instance Attribute Details

#addressString

The primary address for this company. Corresponds to the JSON property address

Returns:

  • (String)


1233
1234
1235
# File 'generated/google/apis/partners_v2/classes.rb', line 1233

def address
  @address
end

#badge_tierString

Whether the company is a Partner. Corresponds to the JSON property badgeTier

Returns:

  • (String)


1275
1276
1277
# File 'generated/google/apis/partners_v2/classes.rb', line 1275

def badge_tier
  @badge_tier
end

#company_adminBoolean Also known as: company_admin?

Indicates if the user is an admin for this company. Corresponds to the JSON property companyAdmin

Returns:

  • (Boolean)


1227
1228
1229
# File 'generated/google/apis/partners_v2/classes.rb', line 1227

def company_admin
  @company_admin
end

#company_idString

The ID of the company. There may be no id if this is a pending company.5 Corresponds to the JSON property companyId

Returns:

  • (String)


1291
1292
1293
# File 'generated/google/apis/partners_v2/classes.rb', line 1291

def company_id
  @company_id
end

#creation_timeString

The timestamp of when affiliation was requested. Corresponds to the JSON property creationTime

Returns:

  • (String)


1245
1246
1247
# File 'generated/google/apis/partners_v2/classes.rb', line 1245

def creation_time
  @creation_time
end

#is_pendingBoolean Also known as: is_pending?

The flag that indicates if the company is pending verification. Corresponds to the JSON property isPending

Returns:

  • (Boolean)


1238
1239
1240
# File 'generated/google/apis/partners_v2/classes.rb', line 1238

def is_pending
  @is_pending
end

#logo_urlString

A URL to a profile photo, e.g. a G+ profile photo. Corresponds to the JSON property logoUrl

Returns:

  • (String)


1296
1297
1298
# File 'generated/google/apis/partners_v2/classes.rb', line 1296

def logo_url
  @logo_url
end

#manager_accountFixnum

The AdWords manager account # associated this company. Corresponds to the JSON property managerAccount

Returns:

  • (Fixnum)


1260
1261
1262
# File 'generated/google/apis/partners_v2/classes.rb', line 1260

def 
  @manager_account
end

#nameString

The name (in the company's primary language) for the company. Corresponds to the JSON property name

Returns:

  • (String)


1255
1256
1257
# File 'generated/google/apis/partners_v2/classes.rb', line 1255

def name
  @name
end

#phone_numberString

The phone number for the company's primary address. Corresponds to the JSON property phoneNumber

Returns:

  • (String)


1280
1281
1282
# File 'generated/google/apis/partners_v2/classes.rb', line 1280

def phone_number
  @phone_number
end

#resolved_timestampString

The timestamp when the user was approved. Corresponds to the JSON property resolvedTimestamp

Returns:

  • (String)


1302
1303
1304
# File 'generated/google/apis/partners_v2/classes.rb', line 1302

def resolved_timestamp
  @resolved_timestamp
end

#segmentArray<String>

The segment the company is classified as. Corresponds to the JSON property segment

Returns:

  • (Array<String>)


1265
1266
1267
# File 'generated/google/apis/partners_v2/classes.rb', line 1265

def segment
  @segment
end

#specialization_statusArray<Google::Apis::PartnersV2::SpecializationStatus>

The list of Google Partners specialization statuses for the company. Corresponds to the JSON property specializationStatus



1270
1271
1272
# File 'generated/google/apis/partners_v2/classes.rb', line 1270

def specialization_status
  @specialization_status
end

#stateString

The state of relationship, in terms of approvals. Corresponds to the JSON property state

Returns:

  • (String)


1250
1251
1252
# File 'generated/google/apis/partners_v2/classes.rb', line 1250

def state
  @state
end

#websiteString

The website URL for this company. Corresponds to the JSON property website

Returns:

  • (String)


1285
1286
1287
# File 'generated/google/apis/partners_v2/classes.rb', line 1285

def website
  @website
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
# File 'generated/google/apis/partners_v2/classes.rb', line 1309

def update!(**args)
  @company_admin = args[:company_admin] if args.key?(:company_admin)
  @address = args[:address] if args.key?(:address)
  @is_pending = args[:is_pending] if args.key?(:is_pending)
  @creation_time = args[:creation_time] if args.key?(:creation_time)
  @state = args[:state] if args.key?(:state)
  @name = args[:name] if args.key?(:name)
  @manager_account = args[:manager_account] if args.key?(:manager_account)
  @segment = args[:segment] if args.key?(:segment)
  @specialization_status = args[:specialization_status] if args.key?(:specialization_status)
  @badge_tier = args[:badge_tier] if args.key?(:badge_tier)
  @phone_number = args[:phone_number] if args.key?(:phone_number)
  @website = args[:website] if args.key?(:website)
  @company_id = args[:company_id] if args.key?(:company_id)
  @logo_url = args[:logo_url] if args.key?(:logo_url)
  @resolved_timestamp = args[:resolved_timestamp] if args.key?(:resolved_timestamp)
end