RestMethod class

Constructors

RestMethod({String? apiVersion, bool? deprecated, String? description, bool? etagRequired, String? flatPath, String? httpMethod, String? id, RestMethodMediaUpload? mediaUpload, List<String>? parameterOrder, Map<String, JsonSchema>? parameters, String? path, RestMethodRequest? request, RestMethodResponse? response, List<String>? scopes, bool? supportsMediaDownload, bool? supportsMediaUpload, bool? supportsSubscription, bool? useMediaDownloadService})
RestMethod.fromJson(Map json_)

Properties

apiVersion String?
The API Version of this method, as passed in via the X-Goog-Api-Version header or $apiVersion query parameter.
getter/setter pair
deprecated bool?
Whether this method is deprecated.
getter/setter pair
description String?
Description of this method.
getter/setter pair
etagRequired bool?
Whether this method requires an ETag to be specified.
getter/setter pair
flatPath String?
The URI path of this REST method in (RFC 6570) format without level 2 features ({+var}).
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
httpMethod String?
HTTP method used by this method.
getter/setter pair
id String?
A unique ID for this method.
getter/setter pair
mediaUpload RestMethodMediaUpload?
Media upload parameters.
getter/setter pair
parameterOrder List<String>?
Ordered list of required parameters, serves as a hint to clients on how to structure their method signatures.
getter/setter pair
parameters Map<String, JsonSchema>?
Details for all parameters in this method.
getter/setter pair
path String?
The URI path of this REST method.
getter/setter pair
request RestMethodRequest?
The schema for the request.
getter/setter pair
response RestMethodResponse?
The schema for the response.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scopes List<String>?
OAuth 2.0 scopes applicable to this method.
getter/setter pair
supportsMediaDownload bool?
Whether this method supports media downloads.
getter/setter pair
supportsMediaUpload bool?
Whether this method supports media uploads.
getter/setter pair
supportsSubscription bool?
Whether this method supports subscriptions.
getter/setter pair
useMediaDownloadService bool?
Indicates that downloads from this method should use the download service URL (i.e. "/download").
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited