Class LabelsResource.GetRequest
Get a label by its resource name. Resource name may be any of: * labels/{id}
- See labels/{id}@latest
*
labels/{id}@latest
- Gets the latest revision of the label. * labels/{id}@published
- Gets the current
published revision of the label. * labels/{id}@{revision_id}
- Gets the label at the specified revision
ID.
Inheritance
Inherited Members
Namespace: Google.Apis.DriveLabels.v2beta
Assembly: Google.Apis.DriveLabels.v2beta.dll
Syntax
public class LabelsResource.GetRequest : DriveLabelsBaseServiceRequest<GoogleAppsDriveLabelsV2betaLabel>, IClientServiceRequest<GoogleAppsDriveLabelsV2betaLabel>, IClientServiceRequest
Constructors
GetRequest(IClientService, string)
Constructs a new Get request.
Declaration
public GetRequest(IClientService service, string name)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
string | name |
Properties
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
LanguageCode
The BCP-47 language code to use for evaluating localized field labels. When not specified, values in the default configured language are 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
Name
Required. Label resource name. May be any of: * labels/{id}
(equivalent to labels/{id}@latest) *
labels/{id}@latest
* labels/{id}@published
* labels/{id}@{revision_id}
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
UseAdminAccess
Set to true
in order to use the user's admin credentials. The server verifies that 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? |
View
When specified, only certain fields belonging to the indicated view are returned.
Declaration
[RequestParameter("view", RequestParameterType.Query)]
public virtual LabelsResource.GetRequest.ViewEnum? View { get; set; }
Property Value
Type | Description |
---|---|
LabelsResource.GetRequest.ViewEnum? |
Methods
InitParameters()
Initializes Get parameter list.
Declaration
protected override void InitParameters()