Class LabelsResource.EnableRequest
Enable a disabled Label and restore it to its published state. This will result in a new published revision based on the current disabled published revision. If there is an existing disabled draft revision, a new revision will be created based on that draft and will be enabled.
Inheritance
LabelsResource.EnableRequest
Inherited Members
Namespace: Google.Apis.DriveLabels.v2
Assembly: Google.Apis.DriveLabels.v2.dll
Syntax
public class LabelsResource.EnableRequest : DriveLabelsBaseServiceRequest<GoogleAppsDriveLabelsV2Label>, IClientServiceRequest<GoogleAppsDriveLabelsV2Label>, IClientServiceRequest
Constructors
EnableRequest(IClientService, GoogleAppsDriveLabelsV2EnableLabelRequest, string)
Constructs a new Enable request.
Declaration
public EnableRequest(IClientService service, GoogleAppsDriveLabelsV2EnableLabelRequest body, string name)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
GoogleAppsDriveLabelsV2EnableLabelRequest | body | |
string | name |
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.v2.Data.GoogleAppsDriveLabelsV2Label>.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.v2.Data.GoogleAppsDriveLabelsV2Label>.MethodName
Name
Required. Label resource name.
Declaration
[RequestParameter("name", RequestParameterType.Path)]
public virtual string Name { 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.v2.Data.GoogleAppsDriveLabelsV2Label>.RestPath
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.v2.Data.GoogleAppsDriveLabelsV2Label>.GetBody()
InitParameters()
Initializes Enable parameter list.
Declaration
protected override void InitParameters()