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<EnrollmentToken>, IClientServiceRequest<EnrollmentToken>, IClientServiceRequest
Constructors
CreateEnrollmentTokenRequest(IClientService, EnrollmentToken, string)
Constructs a new CreateEnrollmentToken request.
Declaration
public CreateEnrollmentTokenRequest(IClientService service, EnrollmentToken body, string enterpriseId)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
EnrollmentToken | body | |
string | enterpriseId |
Properties
EnterpriseId
Required. 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
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
Type | Description |
---|---|
object |
Overrides
InitParameters()
Initializes CreateEnrollmentToken parameter list.
Declaration
protected override void InitParameters()