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 customer resource in the zero-touch enrollment API.
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.
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
140 141 142 |
# File 'generated/google/apis/androiddeviceprovisioning_v1/classes.rb', line 140 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
112 113 114 |
# File 'generated/google/apis/androiddeviceprovisioning_v1/classes.rb', line 112 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
117 118 119 |
# File 'generated/google/apis/androiddeviceprovisioning_v1/classes.rb', line 117 def company_id @company_id end |
#company_name ⇒ String
Required. The name of the company. For example XYZ Corp. Characters
allowed are: Latin letters, numerals, hyphens, and spaces. Displayed to the
customer's employees in the zero-touch enrollment portal.
Corresponds to the JSON property companyName
124 125 126 |
# File 'generated/google/apis/androiddeviceprovisioning_v1/classes.rb', line 124 def company_name @company_name end |
#name ⇒ String
Output only. The API resource name of the company in the format
partners/[PARTNER_ID]/customers/[CUSTOMER_ID]
. Assigned by the server.
Corresponds to the JSON property name
130 131 132 |
# File 'generated/google/apis/androiddeviceprovisioning_v1/classes.rb', line 130 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
138 139 140 |
# File 'generated/google/apis/androiddeviceprovisioning_v1/classes.rb', line 138 def owner_emails @owner_emails end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
145 146 147 148 149 150 151 |
# File 'generated/google/apis/androiddeviceprovisioning_v1/classes.rb', line 145 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) end |