gendir (string): Directory to use to write out generated Go files
gensupport_pkg (string): Go package path of the 'api/internal/gensupport'
support package. (default "google.golang.org/api/internal/gensupport")
googleapi_pkg (string): Go package path of the 'api/googleapi' support
package. (default "google.golang.org/api/googleapi")
header_path (string): If non-empty, prepend the contents of this file to
generated services.
htransport_pkg (string): Go package path of the 'api/transport/http' support
package. (default "google.golang.org/api/transport/http")
install (bool): Install generated packages.
internal_pkg (string): Go package path of the 'internal' support package.
(default "google.golang.org/api/internal")
internaloption_pkg (string): Go package path of the
'api/option/internaloption' support package. (default
"google.golang.org/api/option/internaloption")
option_pkg (string): Go package path of the 'api/option' support package.
(default "google.golang.org/api/option")
output (string): (optional) Path to source output file. If not specified,
the API name and version are used to construct an output path (e.g. tasks/v1).
publiconly (bool): Only build public, released APIs. Only applicable for
Google employees. (default true)
Automated usage
This generator runs daily via the automated bash script:
discogen.sh.
Example local usage
Run same command the automation uses
make all
Generate a client from a local discovery document
go build -o google-api-go-generator && ./google-api-go-generator -cache=true -install -api_json_file=/path/to/file
Refresh an existing client
go build -o google-api-go-generator && ./google-api-go-generator -cache=false -install -api=sevicename:vsomething -gendir=..