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

Constructor Details

#initialize(**args) ⇒ Company

Returns a new instance of Company.



155
156
157
# File 'generated/google/apis/androiddeviceprovisioning_v1/classes.rb', line 155

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

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

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)


139
140
141
# File 'generated/google/apis/androiddeviceprovisioning_v1/classes.rb', line 139

def name
  @name
end

#owner_emailsArray<String>

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


147
148
149
# File 'generated/google/apis/androiddeviceprovisioning_v1/classes.rb', line 147

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)


153
154
155
# File 'generated/google/apis/androiddeviceprovisioning_v1/classes.rb', line 153

def terms_status
  @terms_status
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



160
161
162
163
164
165
166
167
# File 'generated/google/apis/androiddeviceprovisioning_v1/classes.rb', line 160

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