Class LabelsResource.PublishRequest
Publish all draft changes to the label. Once published, the label may not return to its draft state. For
more information, see Create and publish a
label. Publishing a label will
result in a new published revision. All previous draft revisions will be deleted. Previous published
revisions will be kept but are subject to automated deletion as needed. For more information, see Label
lifecycle. Once published,
some changes are no longer permitted. Generally, any change that would invalidate or cause new restrictions
on existing metadata related to the label will be rejected. For example, the following changes to a label
will be rejected after the label is published: * The label cannot be directly deleted. It must be disabled
first, then deleted. * Field.FieldType cannot be changed. * Changes to field validation options cannot
reject something that was previously accepted. * Reducing the maximum entries.
Inheritance
Inherited Members
Namespace: Google.Apis.DriveLabels.v2beta
Assembly: Google.Apis.DriveLabels.v2beta.dll
Syntax
public class LabelsResource.PublishRequest : DriveLabelsBaseServiceRequest<GoogleAppsDriveLabelsV2betaLabel>, IClientServiceRequest<GoogleAppsDriveLabelsV2betaLabel>, IClientServiceRequest
Constructors
PublishRequest(IClientService, GoogleAppsDriveLabelsV2betaPublishLabelRequest, string)
Constructs a new Publish request.
Declaration
public PublishRequest(IClientService service, GoogleAppsDriveLabelsV2betaPublishLabelRequest body, string name)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service | |
| GoogleAppsDriveLabelsV2betaPublishLabelRequest | body | |
| string | name |
Properties
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
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
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
| Type | Description |
|---|---|
| object |
Overrides
InitParameters()
Initializes Publish parameter list.
Declaration
protected override void InitParameters()