Class LabelsResource.CreateRequest
Creates a new Label.
Inheritance
LabelsResource.CreateRequest
Inherited Members
Namespace: Google.Apis.DriveLabels.v2beta
Assembly: Google.Apis.DriveLabels.v2beta.dll
Syntax
public class LabelsResource.CreateRequest : DriveLabelsBaseServiceRequest<GoogleAppsDriveLabelsV2betaLabel>, IClientServiceRequest<GoogleAppsDriveLabelsV2betaLabel>, IClientServiceRequest
Constructors
CreateRequest(IClientService, GoogleAppsDriveLabelsV2betaLabel)
Constructs a new Create request.
Declaration
public CreateRequest(IClientService service, GoogleAppsDriveLabelsV2betaLabel body)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
GoogleAppsDriveLabelsV2betaLabel | body |
Properties
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.DriveLabels.v2beta.Data.GoogleAppsDriveLabelsV2betaLabel>.HttpMethod
LanguageCode
The BCP-47 language code to use for evaluating localized Field labels in response. When not specified, values in the default configured language will be used.
Declaration
[RequestParameter("languageCode", RequestParameterType.Query)]
public virtual string LanguageCode { get; set; }
Property Value
Type | Description |
---|---|
string |
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.DriveLabels.v2beta.Data.GoogleAppsDriveLabelsV2betaLabel>.MethodName
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.DriveLabels.v2beta.Data.GoogleAppsDriveLabelsV2betaLabel>.RestPath
UseAdminAccess
Set to true
in order to use the user's admin privileges. The server will verify the user is an admin
before allowing access.
Declaration
[RequestParameter("useAdminAccess", RequestParameterType.Query)]
public virtual bool? UseAdminAccess { get; set; }
Property Value
Type | Description |
---|---|
bool? |
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
Type | Description |
---|---|
object |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.DriveLabels.v2beta.Data.GoogleAppsDriveLabelsV2betaLabel>.GetBody()
InitParameters()
Initializes Create parameter list.
Declaration
protected override void InitParameters()