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 reseller, vendor, or customer in the zero-touch reseller and customer APIs.

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



158
159
160
# File 'generated/google/apis/androiddeviceprovisioning_v1/classes.rb', line 158

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


120
121
122
# File 'generated/google/apis/androiddeviceprovisioning_v1/classes.rb', line 120

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)


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

def company_id
  @company_id
end

#company_nameString

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

Returns:

  • (String)


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

def company_name
  @company_name
end

#nameString

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

Returns:

  • (String)


141
142
143
# File 'generated/google/apis/androiddeviceprovisioning_v1/classes.rb', line 141

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


149
150
151
# File 'generated/google/apis/androiddeviceprovisioning_v1/classes.rb', line 149

def owner_emails
  @owner_emails
end

#terms_statusString

Output only. Whether any user from the company has accepted the latest Terms of Service (ToS). See TermsStatus. Corresponds to the JSON property termsStatus

Returns:

  • (String)


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