Show / Hide Table of Contents

Class LabelsResource.RevisionsResource.PermissionsResource.CreateRequest

Updates a Label's permissions. If a permission for the indicated principal doesn't exist, a new Label Permission is created, otherwise the existing permission is updated. Permissions affect the Label resource as a whole, are not revisioned, and do not require publishing.

Inheritance
object
ClientServiceRequest
ClientServiceRequest<GoogleAppsDriveLabelsV2LabelPermission>
DriveLabelsBaseServiceRequest<GoogleAppsDriveLabelsV2LabelPermission>
LabelsResource.RevisionsResource.PermissionsResource.CreateRequest
Implements
IClientServiceRequest<GoogleAppsDriveLabelsV2LabelPermission>
IClientServiceRequest
Inherited Members
DriveLabelsBaseServiceRequest<GoogleAppsDriveLabelsV2LabelPermission>.Xgafv
DriveLabelsBaseServiceRequest<GoogleAppsDriveLabelsV2LabelPermission>.AccessToken
DriveLabelsBaseServiceRequest<GoogleAppsDriveLabelsV2LabelPermission>.Alt
DriveLabelsBaseServiceRequest<GoogleAppsDriveLabelsV2LabelPermission>.Callback
DriveLabelsBaseServiceRequest<GoogleAppsDriveLabelsV2LabelPermission>.Fields
DriveLabelsBaseServiceRequest<GoogleAppsDriveLabelsV2LabelPermission>.Key
DriveLabelsBaseServiceRequest<GoogleAppsDriveLabelsV2LabelPermission>.OauthToken
DriveLabelsBaseServiceRequest<GoogleAppsDriveLabelsV2LabelPermission>.PrettyPrint
DriveLabelsBaseServiceRequest<GoogleAppsDriveLabelsV2LabelPermission>.QuotaUser
DriveLabelsBaseServiceRequest<GoogleAppsDriveLabelsV2LabelPermission>.UploadType
DriveLabelsBaseServiceRequest<GoogleAppsDriveLabelsV2LabelPermission>.UploadProtocol
ClientServiceRequest<GoogleAppsDriveLabelsV2LabelPermission>.Execute()
ClientServiceRequest<GoogleAppsDriveLabelsV2LabelPermission>.ExecuteAsStream()
ClientServiceRequest<GoogleAppsDriveLabelsV2LabelPermission>.ExecuteAsync()
ClientServiceRequest<GoogleAppsDriveLabelsV2LabelPermission>.ExecuteAsync(CancellationToken)
ClientServiceRequest<GoogleAppsDriveLabelsV2LabelPermission>.ExecuteAsStreamAsync()
ClientServiceRequest<GoogleAppsDriveLabelsV2LabelPermission>.ExecuteAsStreamAsync(CancellationToken)
ClientServiceRequest<GoogleAppsDriveLabelsV2LabelPermission>.CreateRequest(bool?)
ClientServiceRequest<GoogleAppsDriveLabelsV2LabelPermission>.GenerateRequestUri()
ClientServiceRequest<GoogleAppsDriveLabelsV2LabelPermission>.GetDefaultETagAction(string)
ClientServiceRequest<GoogleAppsDriveLabelsV2LabelPermission>.ETagAction
ClientServiceRequest<GoogleAppsDriveLabelsV2LabelPermission>.ModifyRequest
ClientServiceRequest<GoogleAppsDriveLabelsV2LabelPermission>.ValidateParameters
ClientServiceRequest<GoogleAppsDriveLabelsV2LabelPermission>.ApiVersion
ClientServiceRequest<GoogleAppsDriveLabelsV2LabelPermission>.RequestParameters
ClientServiceRequest<GoogleAppsDriveLabelsV2LabelPermission>.Service
ClientServiceRequest._unsuccessfulResponseHandlers
ClientServiceRequest._exceptionHandlers
ClientServiceRequest._executeInterceptors
ClientServiceRequest.AddUnsuccessfulResponseHandler(IHttpUnsuccessfulResponseHandler)
ClientServiceRequest.AddExceptionHandler(IHttpExceptionHandler)
ClientServiceRequest.AddExecuteInterceptor(IHttpExecuteInterceptor)
ClientServiceRequest.Credential
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.DriveLabels.v2
Assembly: Google.Apis.DriveLabels.v2.dll
Syntax
public class LabelsResource.RevisionsResource.PermissionsResource.CreateRequest : DriveLabelsBaseServiceRequest<GoogleAppsDriveLabelsV2LabelPermission>, IClientServiceRequest<GoogleAppsDriveLabelsV2LabelPermission>, IClientServiceRequest

Constructors

CreateRequest(IClientService, GoogleAppsDriveLabelsV2LabelPermission, string)

Constructs a new Create request.

Declaration
public CreateRequest(IClientService service, GoogleAppsDriveLabelsV2LabelPermission body, string parent)
Parameters
Type Name Description
IClientService service
GoogleAppsDriveLabelsV2LabelPermission body
string parent

Properties

HttpMethod

Gets the HTTP method.

Declaration
public override string HttpMethod { get; }
Property Value
Type Description
string
Overrides
ClientServiceRequest<GoogleAppsDriveLabelsV2LabelPermission>.HttpMethod

MethodName

Gets the method name.

Declaration
public override string MethodName { get; }
Property Value
Type Description
string
Overrides
ClientServiceRequest<GoogleAppsDriveLabelsV2LabelPermission>.MethodName

Parent

Required. The parent Label resource name on the Label Permission is created. Format: labels/{label}

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
ClientServiceRequest<GoogleAppsDriveLabelsV2LabelPermission>.RestPath

UseAdminAccess

Set to true in order to use the user's admin credentials. The server will verify the user is an admin for the Label 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
ClientServiceRequest<GoogleAppsDriveLabelsV2LabelPermission>.GetBody()

InitParameters()

Initializes Create parameter list.

Declaration
protected override void InitParameters()
Overrides
DriveLabelsBaseServiceRequest<GoogleAppsDriveLabelsV2LabelPermission>.InitParameters()

Implements

IClientServiceRequest<TResponse>
IClientServiceRequest
In this article
Back to top Generated by DocFX