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.
-
#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 ⇒ String
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.
-
#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
1495 1496 1497 |
# File 'generated/google/apis/partners_v2/classes.rb', line 1495 def initialize(**args) update!(**args) end |
Instance Attribute Details
#address ⇒ String
The primary address for this company.
Corresponds to the JSON property address
1435 1436 1437 |
# File 'generated/google/apis/partners_v2/classes.rb', line 1435 def address @address end |
#badge_tier ⇒ String
Whether the company is a Partner.
Corresponds to the JSON property badgeTier
1477 1478 1479 |
# File 'generated/google/apis/partners_v2/classes.rb', line 1477 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
1429 1430 1431 |
# File 'generated/google/apis/partners_v2/classes.rb', line 1429 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
1493 1494 1495 |
# File 'generated/google/apis/partners_v2/classes.rb', line 1493 def company_id @company_id end |
#creation_time ⇒ String
The timestamp of when affiliation was requested.
Corresponds to the JSON property creationTime
1447 1448 1449 |
# File 'generated/google/apis/partners_v2/classes.rb', line 1447 def creation_time @creation_time 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
1440 1441 1442 |
# File 'generated/google/apis/partners_v2/classes.rb', line 1440 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
1418 1419 1420 |
# File 'generated/google/apis/partners_v2/classes.rb', line 1418 def logo_url @logo_url end |
#manager_account ⇒ String
The AdWords manager account # associated this company.
Corresponds to the JSON property managerAccount
1457 1458 1459 |
# File 'generated/google/apis/partners_v2/classes.rb', line 1457 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
1462 1463 1464 |
# File 'generated/google/apis/partners_v2/classes.rb', line 1462 def name @name end |
#phone_number ⇒ String
The phone number for the company's primary address.
Corresponds to the JSON property phoneNumber
1487 1488 1489 |
# File 'generated/google/apis/partners_v2/classes.rb', line 1487 def phone_number @phone_number end |
#resolved_timestamp ⇒ String
The timestamp when the user was approved.
Corresponds to the JSON property resolvedTimestamp
1424 1425 1426 |
# File 'generated/google/apis/partners_v2/classes.rb', line 1424 def @resolved_timestamp end |
#segment ⇒ Array<String>
The segment the company is classified as.
Corresponds to the JSON property segment
1467 1468 1469 |
# File 'generated/google/apis/partners_v2/classes.rb', line 1467 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
1472 1473 1474 |
# File 'generated/google/apis/partners_v2/classes.rb', line 1472 def specialization_status @specialization_status end |
#state ⇒ String
The state of relationship, in terms of approvals.
Corresponds to the JSON property state
1452 1453 1454 |
# File 'generated/google/apis/partners_v2/classes.rb', line 1452 def state @state end |
#website ⇒ String
The website URL for this company.
Corresponds to the JSON property website
1482 1483 1484 |
# File 'generated/google/apis/partners_v2/classes.rb', line 1482 def website @website end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 |
# File 'generated/google/apis/partners_v2/classes.rb', line 1500 def update!(**args) @logo_url = args[:logo_url] if args.key?(:logo_url) @resolved_timestamp = args[:resolved_timestamp] if args.key?(:resolved_timestamp) @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) @manager_account = args[:manager_account] if args.key?(:manager_account) @name = args[:name] if args.key?(:name) @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) @website = args[:website] if args.key?(:website) @phone_number = args[:phone_number] if args.key?(:phone_number) @company_id = args[:company_id] if args.key?(:company_id) end |