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

Company

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



135
136
137
# File 'generated/google/apis/androiddeviceprovisioning_v1/classes.rb', line 135

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

Instance Attribute Details

#admin_emailsArray<String>

Admin emails. Admins are able to operate on the portal. This field is a write-only field at creation time. Corresponds to the JSON property adminEmails

Returns:

  • (Array<String>)


110
111
112
# File 'generated/google/apis/androiddeviceprovisioning_v1/classes.rb', line 110

def admin_emails
  @admin_emails
end

#company_idFixnum

Company ID. Corresponds to the JSON property companyId

Returns:

  • (Fixnum)


115
116
117
# File 'generated/google/apis/androiddeviceprovisioning_v1/classes.rb', line 115

def company_id
  @company_id
end

#company_nameString

Company name. Corresponds to the JSON property companyName

Returns:

  • (String)


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

def company_name
  @company_name
end

#nameString

The API resource name of the company in the format partners/[PARTNER_ID]/customers/[CUSTOMER_ID]. Corresponds to the JSON property name

Returns:

  • (String)


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

def name
  @name
end

#owner_emailsArray<String>

Owner emails. Owners are able to operate on the portal, and modify admins or other owners. This field is a write-only field at creation time. Corresponds to the JSON property ownerEmails

Returns:

  • (Array<String>)


133
134
135
# File 'generated/google/apis/androiddeviceprovisioning_v1/classes.rb', line 133

def owner_emails
  @owner_emails
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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