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



613
614
615
# File 'generated/google/apis/partners_v2/classes.rb', line 613

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

Instance Attribute Details

#addressString

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

Returns:

  • (String)


514
515
516
# File 'generated/google/apis/partners_v2/classes.rb', line 514

def address
  @address
end

#badge_tierString

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

Returns:

  • (String)


519
520
521
# File 'generated/google/apis/partners_v2/classes.rb', line 519

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)


524
525
526
# File 'generated/google/apis/partners_v2/classes.rb', line 524

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)


531
532
533
# File 'generated/google/apis/partners_v2/classes.rb', line 531

def company_id
  @company_id
end

#creation_timeString

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

Returns:

  • (String)


537
538
539
# File 'generated/google/apis/partners_v2/classes.rb', line 537

def creation_time
  @creation_time
end

#internal_company_idString

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

Returns:

  • (String)


543
544
545
# File 'generated/google/apis/partners_v2/classes.rb', line 543

def internal_company_id
  @internal_company_id
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)


548
549
550
# File 'generated/google/apis/partners_v2/classes.rb', line 548

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)


554
555
556
# File 'generated/google/apis/partners_v2/classes.rb', line 554

def logo_url
  @logo_url
end

#manager_accountFixnum

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

Returns:

  • (Fixnum)


559
560
561
# File 'generated/google/apis/partners_v2/classes.rb', line 559

def 
  @manager_account
end

#nameString

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

Returns:

  • (String)


564
565
566
# File 'generated/google/apis/partners_v2/classes.rb', line 564

def name
  @name
end

#phone_numberString

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

Returns:

  • (String)


569
570
571
# File 'generated/google/apis/partners_v2/classes.rb', line 569

def phone_number
  @phone_number
end

#primary_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 primaryAddress



575
576
577
# File 'generated/google/apis/partners_v2/classes.rb', line 575

def primary_address
  @primary_address
end

#primary_country_codeString

The primary country code of the company. Corresponds to the JSON property primaryCountryCode

Returns:

  • (String)


580
581
582
# File 'generated/google/apis/partners_v2/classes.rb', line 580

def primary_country_code
  @primary_country_code
end

#primary_language_codeString

The primary language code of the company. Corresponds to the JSON property primaryLanguageCode

Returns:

  • (String)


585
586
587
# File 'generated/google/apis/partners_v2/classes.rb', line 585

def primary_language_code
  @primary_language_code
end

#resolved_timestampString

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

Returns:

  • (String)


591
592
593
# File 'generated/google/apis/partners_v2/classes.rb', line 591

def resolved_timestamp
  @resolved_timestamp
end

#segmentArray<String>

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

Returns:

  • (Array<String>)


596
597
598
# File 'generated/google/apis/partners_v2/classes.rb', line 596

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



601
602
603
# File 'generated/google/apis/partners_v2/classes.rb', line 601

def specialization_status
  @specialization_status
end

#stateString

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

Returns:

  • (String)


606
607
608
# File 'generated/google/apis/partners_v2/classes.rb', line 606

def state
  @state
end

#websiteString

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

Returns:

  • (String)


611
612
613
# File 'generated/google/apis/partners_v2/classes.rb', line 611

def website
  @website
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
# File 'generated/google/apis/partners_v2/classes.rb', line 618

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