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
137 138 139 |
# File 'generated/google/apis/androiddeviceprovisioning_v1/classes.rb', line 137 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
109 110 111 |
# File 'generated/google/apis/androiddeviceprovisioning_v1/classes.rb', line 109 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
114 115 116 |
# File 'generated/google/apis/androiddeviceprovisioning_v1/classes.rb', line 114 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
121 122 123 |
# File 'generated/google/apis/androiddeviceprovisioning_v1/classes.rb', line 121 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
127 128 129 |
# File 'generated/google/apis/androiddeviceprovisioning_v1/classes.rb', line 127 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
135 136 137 |
# File 'generated/google/apis/androiddeviceprovisioning_v1/classes.rb', line 135 def owner_emails @owner_emails end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
142 143 144 145 146 147 148 |
# File 'generated/google/apis/androiddeviceprovisioning_v1/classes.rb', line 142 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 |