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



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

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

Instance Attribute Details

#admin_emailsArray<String>

Admin email. Admins will be 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

REST Resource name. Corresponds to the JSON property name

Returns:

  • (String)


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

def name
  @name
end

#owner_emailsArray<String>

Owner email. Owner is able to operate on the portal, and modify admins and other owners. This field is a WRITE-only field at creation time. Corresponds to the JSON property ownerEmails

Returns:

  • (Array<String>)


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

def owner_emails
  @owner_emails
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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