Show / Hide Table of Contents

Class RestMethod

Inheritance
object
RestMethod
Implements
IDirectResponseSchema
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.Discovery.v1.Data
Assembly: Google.Apis.Discovery.v1.dll
Syntax
public class RestMethod : IDirectResponseSchema

Properties

ApiVersion

The API Version of this method, as passed in via the X-Goog-Api-Version header or $apiVersion query parameter.

Declaration
[JsonProperty("apiVersion")]
public virtual string ApiVersion { get; set; }
Property Value
Type Description
string

Deprecated

Whether this method is deprecated.

Declaration
[JsonProperty("deprecated")]
public virtual bool? Deprecated { get; set; }
Property Value
Type Description
bool?

Description

Description of this method.

Declaration
[JsonProperty("description")]
public virtual string Description { get; set; }
Property Value
Type Description
string

ETag

The ETag of the item.

Declaration
public virtual string ETag { get; set; }
Property Value
Type Description
string

EtagRequired

Whether this method requires an ETag to be specified. The ETag is sent as an HTTP If-Match or If-None-Match header.

Declaration
[JsonProperty("etagRequired")]
public virtual bool? EtagRequired { get; set; }
Property Value
Type Description
bool?

FlatPath

The URI path of this REST method in (RFC 6570) format without level 2 features ({+var}). Supplementary to the path property.

Declaration
[JsonProperty("flatPath")]
public virtual string FlatPath { get; set; }
Property Value
Type Description
string

HttpMethod

HTTP method used by this method.

Declaration
[JsonProperty("httpMethod")]
public virtual string HttpMethod { get; set; }
Property Value
Type Description
string

Id

A unique ID for this method. This property can be used to match methods between different versions of Discovery.

Declaration
[JsonProperty("id")]
public virtual string Id { get; set; }
Property Value
Type Description
string

MediaUpload

Media upload parameters.

Declaration
[JsonProperty("mediaUpload")]
public virtual RestMethod.MediaUploadData MediaUpload { get; set; }
Property Value
Type Description
RestMethod.MediaUploadData

ParameterOrder

Ordered list of required parameters, serves as a hint to clients on how to structure their method signatures. The array is ordered such that the "most-significant" parameter appears first.

Declaration
[JsonProperty("parameterOrder")]
public virtual IList<string> ParameterOrder { get; set; }
Property Value
Type Description
IList<string>

Parameters

Details for all parameters in this method.

Declaration
[JsonProperty("parameters")]
public virtual IDictionary<string, JsonSchema> Parameters { get; set; }
Property Value
Type Description
IDictionary<string, JsonSchema>

Path

The URI path of this REST method. Should be used in conjunction with the basePath property at the api-level.

Declaration
[JsonProperty("path")]
public virtual string Path { get; set; }
Property Value
Type Description
string

Request

The schema for the request.

Declaration
[JsonProperty("request")]
public virtual RestMethod.RequestData Request { get; set; }
Property Value
Type Description
RestMethod.RequestData

Response

The schema for the response.

Declaration
[JsonProperty("response")]
public virtual RestMethod.ResponseData Response { get; set; }
Property Value
Type Description
RestMethod.ResponseData

Scopes

OAuth 2.0 scopes applicable to this method.

Declaration
[JsonProperty("scopes")]
public virtual IList<string> Scopes { get; set; }
Property Value
Type Description
IList<string>

SupportsMediaDownload

Whether this method supports media downloads.

Declaration
[JsonProperty("supportsMediaDownload")]
public virtual bool? SupportsMediaDownload { get; set; }
Property Value
Type Description
bool?

SupportsMediaUpload

Whether this method supports media uploads.

Declaration
[JsonProperty("supportsMediaUpload")]
public virtual bool? SupportsMediaUpload { get; set; }
Property Value
Type Description
bool?

SupportsSubscription

Whether this method supports subscriptions.

Declaration
[JsonProperty("supportsSubscription")]
public virtual bool? SupportsSubscription { get; set; }
Property Value
Type Description
bool?

UseMediaDownloadService

Indicates that downloads from this method should use the download service URL (i.e. "/download"). Only applies if the method supports media download.

Declaration
[JsonProperty("useMediaDownloadService")]
public virtual bool? UseMediaDownloadService { get; set; }
Property Value
Type Description
bool?

Implements

IDirectResponseSchema
In this article
Back to top Generated by DocFX