Class CustomersResource.EnrollmentTokensResource.CreateRequest
Creates a new enrollment token for a browser device. Creation fails if there is already an active token for this customer under the same org unit.
Inheritance
CustomersResource.EnrollmentTokensResource.CreateRequest
Implements
Inherited Members
Namespace: Google.Apis.ChromeManagement.v1
Assembly: Google.Apis.ChromeManagement.v1.dll
Syntax
public class CustomersResource.EnrollmentTokensResource.CreateRequest : ChromeManagementBaseServiceRequest<GoogleChromeManagementVersionsV1EnrollmentToken>, IClientServiceRequest<GoogleChromeManagementVersionsV1EnrollmentToken>, IClientServiceRequest
Constructors
CreateRequest(IClientService, GoogleChromeManagementVersionsV1EnrollmentToken, string)
Constructs a new Create request.
Declaration
public CreateRequest(IClientService service, GoogleChromeManagementVersionsV1EnrollmentToken body, string parent)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service | |
| GoogleChromeManagementVersionsV1EnrollmentToken | body | |
| string | parent |
Properties
EnrollmentTokenId
Optional. The ID to use for the enrollment token, which will become the final component of the
enrollment token's resource name. This value must be local-unique under the customer and is
optional. If not provided, it will be auto-generated. If provided, it must be 1-63 characters long
and match the regular expression [a-zA-Z0-9._-]+.
Declaration
[RequestParameter("enrollmentTokenId", RequestParameterType.Query)]
public virtual string EnrollmentTokenId { get; set; }
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
Parent
Required. The parent resource where this enrollment token will be created. Format: customers/{customer}
Declaration
[RequestParameter("parent", RequestParameterType.Path)]
public virtual string Parent { get; }
Property Value
| Type | Description |
|---|---|
| string |
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 Create parameter list.
Declaration
protected override void InitParameters()
Overrides
ChromeManagementBaseServiceRequest<GoogleChromeManagementVersionsV1EnrollmentToken>.InitParameters()