(While Json .NET allows comments in JSON, other parsers are stricter.)
apis.json
lists all the APIs (and similar; some aren't strictly
APIs) that we generate project files for.
Fields:
id
: Name of the main generated library; matches top-level directory name and solution fileversion
: library version, e.g. 1.0.0 or 1.0.0-alpha01- Special value "project" is used to indicate a project reference within this repository.
- Special value "default" is used for external package references that are defaulted by the project generator. Currently valid for GAX and gRPC packages. The version number must be specified explicitly for stable projects.
description
: Used for NuGet package descriptiontags
: Any tags to use in NuGet in addition to Google and Cloudtype
: "rest", "grpc" or "other":- rest = REST-based API; implicitly depends on Google.Api.Gax.Rest
- grpc = GRPC-based API; implicitly depends on Google.Api.Gax.Grpc
targetFrameworks
: the frameworks to target in the production code; defaulted for rest and grpc projectsdependencies
: Dependencies in addition to defaults, for the production codetestDependencies
: Dependencies for all test projects. (This can lead to redundant dependencies, but it's simple.)productName
: Name of product to include when using doc templatesproductUrl
: Product home page URL to include when using doc templatesgenerator
: The generator type to use: "micro", "proto", "protogrpc"packageOwner
: Overrides the default NuGet package owner (google-cloud or googe-apis-packages depending on package ID)protoPath
: The path within thegoogleapis
repo to the API definitionserviceYaml
: (GAPIC generator only) The file (one directory aboveprotoPath
) containing the service definitionshortDescription
: Used when listing APIs (e.g. in README.md) if there's noproductName
and thedescription
is too longnoVersionHistory
: When set totrue
, the update-history release manager command skips the API. This is primarily used for libraries which are part of a bigger ecosystem, where another library typically has the version history (e.g. Spanner.Data for all Spanner libraries).