class Google::Apis::AndroidenterpriseV1::Enterprise

An enterprise resource represents a binding between an organization and their EMM. To create an enterprise, an admin of the enterprise must first go through a Play for Work sign-up flow. At the end of this the admin will be presented with a token (a short opaque alphanumeric string). They must then present this to the EMM, who then supplies it to the enroll method. Until this is done the EMM will not have any access to the enterprise. After calling enroll the EMM should call setAccount to specify the service account that will be allowed to act on behalf of the enterprise, which will be required for access to the enterprise's data through this API. Only one call of setAccount is allowed for a given enterprise; the only way to change the account later is to unenroll the enterprise and enroll it again (obtaining a new token). The EMM can unenroll an enterprise in order to sever the binding between them. Re-enrolling an enterprise is possible, but requires a new token to be retrieved. Enterprises.unenroll requires the EMM's credentials (as enroll does) , not the enterprise's. Enterprises.unenroll can only be used for enterprises that were previously enrolled with the enroll call. Any enterprises that were enrolled using the (deprecated) Enterprises.insert call must be unenrolled with Enterprises.delete and can then be re-enrolled using the Enterprises. enroll call. The ID for an enterprise is an opaque string. It is returned by insert and enroll and can also be retrieved if the enterprise's primary domain is known using the list method.

Attributes

id[RW]

The unique ID for the enterprise. Corresponds to the JSON property `id` @return [String]

kind[RW]

Identifies what kind of resource this is. Value: the fixed string “ androidenterprise#enterprise”. Corresponds to the JSON property `kind` @return [String]

name[RW]

The name of the enterprise, e.g. “Example Inc”. Corresponds to the JSON property `name` @return [String]

primary_domain[RW]

The enterprise's primary domain, e.g. “example.com”. Corresponds to the JSON property `primaryDomain` @return [String]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/androidenterprise_v1/classes.rb, line 467
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/androidenterprise_v1/classes.rb, line 472
def update!(**args)
  @id = args[:id] if args.key?(:id)
  @kind = args[:kind] if args.key?(:kind)
  @name = args[:name] if args.key?(:name)
  @primary_domain = args[:primary_domain] if args.key?(:primary_domain)
end