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>
Input only.
-
#company_id ⇒ Fixnum
Output only.
-
#company_name ⇒ String
Required.
-
#name ⇒ String
Output only.
-
#owner_emails ⇒ Array<String>
Input only.
-
#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.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Company
Returns a new instance of Company
158 159 160 |
# File 'generated/google/apis/androiddeviceprovisioning_v1/classes.rb', line 158 def initialize(**args) update!(**args) end |
Instance Attribute Details
#admin_emails ⇒ Array<String>
Input only. 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 propertyname
141 142 143 |
# File 'generated/google/apis/androiddeviceprovisioning_v1/classes.rb', line 141 def name @name end |
#owner_emails ⇒ Array<String>
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
149 150 151 |
# File 'generated/google/apis/androiddeviceprovisioning_v1/classes.rb', line 149 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
156 157 158 |
# File 'generated/google/apis/androiddeviceprovisioning_v1/classes.rb', line 156 def terms_status @terms_status end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
163 164 165 166 167 168 169 170 |
# File 'generated/google/apis/androiddeviceprovisioning_v1/classes.rb', line 163 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 |