Class: Google::Apis::AndroiddeviceprovisioningV1::Company
- Inherits:
-
Object
- Object
- Google::Apis::AndroiddeviceprovisioningV1::Company
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/androiddeviceprovisioning_v1/classes.rb,
generated/google/apis/androiddeviceprovisioning_v1/representations.rb,
generated/google/apis/androiddeviceprovisioning_v1/representations.rb
Overview
A reseller, vendor, or customer in the zero-touch reseller and customer APIs.
Instance Attribute Summary collapse
-
#admin_emails ⇒ Array<String>
Optional.
-
#company_id ⇒ Fixnum
Output only.
-
#company_name ⇒ String
Required.
-
#name ⇒ String
Output only.
-
#owner_emails ⇒ Array<String>
Required.
-
#terms_status ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Company
constructor
A new instance of Company.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Company
Returns a new instance of Company.
155 156 157 |
# File 'generated/google/apis/androiddeviceprovisioning_v1/classes.rb', line 155 def initialize(**args) update!(**args) end |
Instance Attribute Details
#admin_emails ⇒ Array<String>
Optional. Email address of customer's users in the admin role. Each email
address must be associated with a Google Account.
Corresponds to the JSON property adminEmails
120 121 122 |
# File 'generated/google/apis/androiddeviceprovisioning_v1/classes.rb', line 120 def admin_emails @admin_emails end |
#company_id ⇒ Fixnum
Output only. The ID of the company. Assigned by the server.
Corresponds to the JSON property companyId
125 126 127 |
# File 'generated/google/apis/androiddeviceprovisioning_v1/classes.rb', line 125 def company_id @company_id end |
#company_name ⇒ String
Required. The name of the company. For example XYZ Corp. Displayed to the
company's employees in the zero-touch enrollment portal.
Corresponds to the JSON property companyName
131 132 133 |
# File 'generated/google/apis/androiddeviceprovisioning_v1/classes.rb', line 131 def company_name @company_name end |
#name ⇒ String
Output only. The API resource name of the company. The resource name is one of
the following formats: * partners/[PARTNER_ID]/customers/[CUSTOMER_ID]
*
partners/[PARTNER_ID]/vendors/[VENDOR_ID]
* partners/[PARTNER_ID]/vendors/[
VENDOR_ID]/customers/[CUSTOMER_ID]
Assigned by the server.
Corresponds to the JSON property name
139 140 141 |
# File 'generated/google/apis/androiddeviceprovisioning_v1/classes.rb', line 139 def name @name end |
#owner_emails ⇒ Array<String>
Required. Input only. Email address of customer's users in the owner role. At
least one owner_email
is required. Each email address must be associated
with a Google Account. Owners share the same access as admins but can also add,
delete, and edit your organization's portal users.
Corresponds to the JSON property ownerEmails
147 148 149 |
# File 'generated/google/apis/androiddeviceprovisioning_v1/classes.rb', line 147 def owner_emails @owner_emails end |
#terms_status ⇒ String
Output only. Whether any user from the company has accepted the latest Terms
of Service (ToS). See TermsStatus.
Corresponds to the JSON property termsStatus
153 154 155 |
# File 'generated/google/apis/androiddeviceprovisioning_v1/classes.rb', line 153 def terms_status @terms_status end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
160 161 162 163 164 165 166 167 |
# File 'generated/google/apis/androiddeviceprovisioning_v1/classes.rb', line 160 def update!(**args) @admin_emails = args[:admin_emails] if args.key?(:admin_emails) @company_id = args[:company_id] if args.key?(:company_id) @company_name = args[:company_name] if args.key?(:company_name) @name = args[:name] if args.key?(:name) @owner_emails = args[:owner_emails] if args.key?(:owner_emails) @terms_status = args[:terms_status] if args.key?(:terms_status) end |