Class LabelsResource.UpdatePermissionsRequest
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
LabelsResource.UpdatePermissionsRequest
Inherited Members
Namespace: Google.Apis.DriveLabels.v2beta
Assembly: Google.Apis.DriveLabels.v2beta.dll
Syntax
public class LabelsResource.UpdatePermissionsRequest : DriveLabelsBaseServiceRequest<GoogleAppsDriveLabelsV2betaLabelPermission>, IClientServiceRequest<GoogleAppsDriveLabelsV2betaLabelPermission>, IClientServiceRequest
Constructors
UpdatePermissionsRequest(IClientService, GoogleAppsDriveLabelsV2betaLabelPermission, string)
Constructs a new UpdatePermissions request.
Declaration
public UpdatePermissionsRequest(IClientService service, GoogleAppsDriveLabelsV2betaLabelPermission body, string parent)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
GoogleAppsDriveLabelsV2betaLabelPermission | body | |
string | parent |
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.GoogleAppsDriveLabelsV2betaLabelPermission>.HttpMethod
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.GoogleAppsDriveLabelsV2betaLabelPermission>.MethodName
Parent
Required. The parent Label resource name.
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
Google.Apis.Requests.ClientServiceRequest<Google.Apis.DriveLabels.v2beta.Data.GoogleAppsDriveLabelsV2betaLabelPermission>.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
Google.Apis.Requests.ClientServiceRequest<Google.Apis.DriveLabels.v2beta.Data.GoogleAppsDriveLabelsV2betaLabelPermission>.GetBody()
InitParameters()
Initializes UpdatePermissions parameter list.
Declaration
protected override void InitParameters()