Class: Google::Apis::AndroiddeviceprovisioningV1::Company

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

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_emailsArray<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

Returns:

  • (Array<String>)


112
113
114
# File 'generated/google/apis/androiddeviceprovisioning_v1/classes.rb', line 112

def admin_emails
  @admin_emails
end

#company_idFixnum

Output only. The ID of the company. Assigned by the server. Corresponds to the JSON property companyId

Returns:

  • (Fixnum)


117
118
119
# File 'generated/google/apis/androiddeviceprovisioning_v1/classes.rb', line 117

def company_id
  @company_id
end

#company_nameString

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

Returns:

  • (String)


124
125
126
# File 'generated/google/apis/androiddeviceprovisioning_v1/classes.rb', line 124

def company_name
  @company_name
end

#nameString

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

Returns:

  • (String)


130
131
132
# File 'generated/google/apis/androiddeviceprovisioning_v1/classes.rb', line 130

def name
  @name
end

#owner_emailsArray<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

Returns:

  • (Array<String>)


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