Class: Google::Apis::AndroiddeviceprovisioningV1::Company
- Inherits:
-
Object
- Object
- Google::Apis::AndroiddeviceprovisioningV1::Company
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/androiddeviceprovisioning_v1/classes.rb,
lib/google/apis/androiddeviceprovisioning_v1/representations.rb,
lib/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.
-
#language_code ⇒ String
Input only.
-
#name ⇒ String
Output only.
-
#owner_emails ⇒ Array<String>
Required.
-
#skip_welcome_email ⇒ Boolean
(also: #skip_welcome_email?)
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.
Constructor Details
#initialize(**args) ⇒ Company
Returns a new instance of Company.
179 180 181 |
# File 'lib/google/apis/androiddeviceprovisioning_v1/classes.rb', line 179 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 'lib/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 'lib/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 'lib/google/apis/androiddeviceprovisioning_v1/classes.rb', line 131 def company_name @company_name end |
#language_code ⇒ String
Input only. The preferred locale of the customer represented as a BCP47
language code. This field is validated on input and requests containing
unsupported language codes will be rejected. Supported language codes: Arabic (
ar) Chinese (Hong Kong) (zh-HK) Chinese (Simplified) (zh-CN) Chinese (
Traditional) (zh-TW) Czech (cs) Danish (da) Dutch (nl) English (UK) (en-GB)
English (US) (en-US) Filipino (fil) Finnish (fi) French (fr) German (de)
Hebrew (iw) Hindi (hi) Hungarian (hu) Indonesian (id) Italian (it) Japanese (
ja) Korean (ko) Norwegian (Bokmal) (no) Polish (pl) Portuguese (Brazil) (pt-BR)
Portuguese (Portugal) (pt-PT) Russian (ru) Spanish (es) Spanish (Latin
America) (es-419) Swedish (sv) Thai (th) Turkish (tr) Ukrainian (uk)
Vietnamese (vi)
Corresponds to the JSON property languageCode
146 147 148 |
# File 'lib/google/apis/androiddeviceprovisioning_v1/classes.rb', line 146 def language_code @language_code 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
154 155 156 |
# File 'lib/google/apis/androiddeviceprovisioning_v1/classes.rb', line 154 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. 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
161 162 163 |
# File 'lib/google/apis/androiddeviceprovisioning_v1/classes.rb', line 161 def owner_emails @owner_emails end |
#skip_welcome_email ⇒ Boolean Also known as: skip_welcome_email?
Input only. If set to true, welcome email will not be sent to the customer. It
is recommended to skip the welcome email if devices will be claimed with
additional DEVICE_PROTECTION service, as the customer will receive separate
emails at device claim time. This field is ignored if this is not a Zero-touch
customer.
Corresponds to the JSON property skipWelcomeEmail
170 171 172 |
# File 'lib/google/apis/androiddeviceprovisioning_v1/classes.rb', line 170 def skip_welcome_email @skip_welcome_email 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
177 178 179 |
# File 'lib/google/apis/androiddeviceprovisioning_v1/classes.rb', line 177 def terms_status @terms_status end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
184 185 186 187 188 189 190 191 192 193 |
# File 'lib/google/apis/androiddeviceprovisioning_v1/classes.rb', line 184 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) @language_code = args[:language_code] if args.key?(:language_code) @name = args[:name] if args.key?(:name) @owner_emails = args[:owner_emails] if args.key?(:owner_emails) @skip_welcome_email = args[:skip_welcome_email] if args.key?(:skip_welcome_email) @terms_status = args[:terms_status] if args.key?(:terms_status) end |