Class: Google::Apis::PartnersV2::CompanyRelation
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::PartnersV2::CompanyRelation
 
- 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
- 
  
    
      #address  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The primary address for this company. 
- 
  
    
      #badge_tier  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Whether the company is a Partner. 
- 
  
    
      #company_admin  ⇒ Boolean 
    
    
      (also: #company_admin?)
    
  
  
  
  
    
    
  
  
  
  
  
  
    Indicates if the user is an admin for this company. 
- 
  
    
      #company_id  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The ID of the company. 
- 
  
    
      #creation_time  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The timestamp of when affiliation was requested. 
- 
  
    
      #internal_company_id  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The internal company ID. 
- 
  
    
      #is_pending  ⇒ Boolean 
    
    
      (also: #is_pending?)
    
  
  
  
  
    
    
  
  
  
  
  
  
    The flag that indicates if the company is pending verification. 
- 
  
    
      #logo_url  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    A URL to a profile photo, e.g. 
- 
  
    
      #manager_account  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The AdWords manager account # associated this company. 
- 
  
    
      #name  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The name (in the company's primary language) for the company. 
- 
  
    
      #phone_number  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The phone number for the company's primary address. 
- 
  
    
      #primary_address  ⇒ Google::Apis::PartnersV2::Location 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    A location with address and geographic coordinates. 
- 
  
    
      #primary_country_code  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The primary country code of the company. 
- 
  
    
      #primary_language_code  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The primary language code of the company. 
- 
  
    
      #resolved_timestamp  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The timestamp when the user was approved. 
- 
  
    
      #segment  ⇒ Array<String> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The segment the company is classified as. 
- 
  
    
      #specialization_status  ⇒ Array<Google::Apis::PartnersV2::SpecializationStatus> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The list of Google Partners specialization statuses for the company. 
- 
  
    
      #state  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The state of relationship, in terms of approvals. 
- 
  
    
      #website  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The website URL for this company. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ CompanyRelation 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of CompanyRelation. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ CompanyRelation
Returns a new instance of CompanyRelation
| 605 606 607 | # File 'generated/google/apis/partners_v2/classes.rb', line 605 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#address ⇒ String
The primary address for this company.
Corresponds to the JSON property address
| 506 507 508 | # File 'generated/google/apis/partners_v2/classes.rb', line 506 def address @address end | 
#badge_tier ⇒ String
Whether the company is a Partner.
Corresponds to the JSON property badgeTier
| 511 512 513 | # File 'generated/google/apis/partners_v2/classes.rb', line 511 def badge_tier @badge_tier end | 
#company_admin ⇒ Boolean Also known as: company_admin?
Indicates if the user is an admin for this company.
Corresponds to the JSON property companyAdmin
| 516 517 518 | # File 'generated/google/apis/partners_v2/classes.rb', line 516 def company_admin @company_admin end | 
#company_id ⇒ String
The ID of the company. There may be no id if this is a
pending company.5
Corresponds to the JSON property companyId
| 523 524 525 | # File 'generated/google/apis/partners_v2/classes.rb', line 523 def company_id @company_id end | 
#creation_time ⇒ String
The timestamp of when affiliation was requested.
Corresponds to the JSON property creationTime
| 529 530 531 | # File 'generated/google/apis/partners_v2/classes.rb', line 529 def creation_time @creation_time end | 
#internal_company_id ⇒ String
The internal company ID.
Only available for a whitelisted set of api clients.
Corresponds to the JSON property internalCompanyId
| 535 536 537 | # File 'generated/google/apis/partners_v2/classes.rb', line 535 def internal_company_id @internal_company_id end | 
#is_pending ⇒ Boolean Also known as: is_pending?
The flag that indicates if the company is pending verification.
Corresponds to the JSON property isPending
| 540 541 542 | # File 'generated/google/apis/partners_v2/classes.rb', line 540 def is_pending @is_pending end | 
#logo_url ⇒ String
A URL to a profile photo, e.g. a G+ profile photo.
Corresponds to the JSON property logoUrl
| 546 547 548 | # File 'generated/google/apis/partners_v2/classes.rb', line 546 def logo_url @logo_url end | 
#manager_account ⇒ Fixnum
The AdWords manager account # associated this company.
Corresponds to the JSON property managerAccount
| 551 552 553 | # File 'generated/google/apis/partners_v2/classes.rb', line 551 def manager_account @manager_account end | 
#name ⇒ String
The name (in the company's primary language) for the company.
Corresponds to the JSON property name
| 556 557 558 | # File 'generated/google/apis/partners_v2/classes.rb', line 556 def name @name end | 
#phone_number ⇒ String
The phone number for the company's primary address.
Corresponds to the JSON property phoneNumber
| 561 562 563 | # File 'generated/google/apis/partners_v2/classes.rb', line 561 def phone_number @phone_number end | 
#primary_address ⇒ Google::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
| 567 568 569 | # File 'generated/google/apis/partners_v2/classes.rb', line 567 def primary_address @primary_address end | 
#primary_country_code ⇒ String
The primary country code of the company.
Corresponds to the JSON property primaryCountryCode
| 572 573 574 | # File 'generated/google/apis/partners_v2/classes.rb', line 572 def primary_country_code @primary_country_code end | 
#primary_language_code ⇒ String
The primary language code of the company.
Corresponds to the JSON property primaryLanguageCode
| 577 578 579 | # File 'generated/google/apis/partners_v2/classes.rb', line 577 def primary_language_code @primary_language_code end | 
#resolved_timestamp ⇒ String
The timestamp when the user was approved.
Corresponds to the JSON property resolvedTimestamp
| 583 584 585 | # File 'generated/google/apis/partners_v2/classes.rb', line 583 def @resolved_timestamp end | 
#segment ⇒ Array<String>
The segment the company is classified as.
Corresponds to the JSON property segment
| 588 589 590 | # File 'generated/google/apis/partners_v2/classes.rb', line 588 def segment @segment end | 
#specialization_status ⇒ Array<Google::Apis::PartnersV2::SpecializationStatus>
The list of Google Partners specialization statuses for the company.
Corresponds to the JSON property specializationStatus
| 593 594 595 | # File 'generated/google/apis/partners_v2/classes.rb', line 593 def specialization_status @specialization_status end | 
#state ⇒ String
The state of relationship, in terms of approvals.
Corresponds to the JSON property state
| 598 599 600 | # File 'generated/google/apis/partners_v2/classes.rb', line 598 def state @state end | 
#website ⇒ String
The website URL for this company.
Corresponds to the JSON property website
| 603 604 605 | # File 'generated/google/apis/partners_v2/classes.rb', line 603 def website @website end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 | # File 'generated/google/apis/partners_v2/classes.rb', line 610 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 |