discoveryapis_generator library
Classes
- ApisResource
- DirectoryList
- DirectoryListItems
- DirectoryListItemsIcons
- Links to 16x16 and 32x32 icons representing the API.
- DiscoveryApi
- Provides information about other Google APIs, such as what APIs are available, the resource, and method details for each API.
- GenerateResult
- JsonSchema
- JsonSchemaAnnotations
- Additional information about this property.
- JsonSchemaVariant
- In a variant data type, the value of one property is used to determine how to interpret the entire entity.
- JsonSchemaVariantMap
- Pubspec
- Specification of the pubspec.yaml for a generated package.
- RestDescription
- RestDescriptionAuth
- Authentication information.
- RestDescriptionAuthOauth2
- OAuth 2.0 authentication information.
- RestDescriptionAuthOauth2ScopesValue
- The scope value.
- RestDescriptionIcons
- Links to 16x16 and 32x32 icons representing the API.
- RestMethod
- RestMethodMediaUpload
- Media upload parameters.
- RestMethodMediaUploadProtocols
- Supported upload protocols.
- RestMethodMediaUploadProtocolsResumable
- Supports the Resumable Media Upload protocol.
- RestMethodMediaUploadProtocolsSimple
- Supports uploading as a single HTTP request.
- RestMethodRequest
- The schema for the request.
- RestMethodResponse
- The schema for the response.
- RestResource
Properties
-
requestHeaders
→ Map<
String, String> -
final
Functions
-
generateAllLibraries(
String inputDirectory, String outputDirectory, Pubspec pubspec, {bool deleteExisting = true}) → List< GenerateResult> -
generateApiFiles(
String inputDirectory, String outputDirectory, {bool updatePubspec = false, bool? useCorePrefixes = true}) → List< GenerateResult> -
generateApiPackage(
List< RestDescription> descriptions, String outputDirectory, Pubspec pubspec, {bool deleteExisting = true}) → List<GenerateResult>
Exceptions / Errors
- ApiRequestError
- Represents a general error reported by the API endpoint.
- DetailedApiRequestError
- Represents a specific error reported by the API endpoint.