Class EnterprisesResource.CreateEnrollmentTokenRequest
Returns a token for device enrollment. The DPC can encode this token within the QR/NFC/zero-touch enrollment payload or fetch it before calling the on-device API to authenticate the user. The token can be generated for each device or reused across multiple devices.
Inheritance
EnterprisesResource.CreateEnrollmentTokenRequest
Inherited Members
Namespace: Google.Apis.AndroidEnterprise.v1
Assembly: Google.Apis.AndroidEnterprise.v1.dll
Syntax
public class EnterprisesResource.CreateEnrollmentTokenRequest : AndroidEnterpriseBaseServiceRequest<CreateEnrollmentTokenResponse>, IClientServiceRequest<CreateEnrollmentTokenResponse>, IClientServiceRequest
Constructors
CreateEnrollmentTokenRequest(IClientService, string)
Constructs a new CreateEnrollmentToken request.
Declaration
public CreateEnrollmentTokenRequest(IClientService service, string enterpriseId)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
string | enterpriseId |
Properties
DeviceType
Whether it’s a dedicated device or a knowledge worker device.
Declaration
[RequestParameter("deviceType", RequestParameterType.Query)]
public virtual EnterprisesResource.CreateEnrollmentTokenRequest.DeviceTypeEnum? DeviceType { get; set; }
Property Value
Type | Description |
---|---|
EnterprisesResource.CreateEnrollmentTokenRequest.DeviceTypeEnum? |
EnterpriseId
The ID of the enterprise.
Declaration
[RequestParameter("enterpriseId", RequestParameterType.Path)]
public virtual string EnterpriseId { get; }
Property Value
Type | Description |
---|---|
string |
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Methods
InitParameters()
Initializes CreateEnrollmentToken parameter list.
Declaration
protected override void InitParameters()