Switch to using the dep tool and update all the dependencies
This commit is contained in:
parent
5135ff73cb
commit
98c2d2c41b
5321 changed files with 4483201 additions and 5922 deletions
11
vendor/google.golang.org/api/.hgignore
generated
vendored
Normal file
11
vendor/google.golang.org/api/.hgignore
generated
vendored
Normal file
|
@ -0,0 +1,11 @@
|
|||
_obj
|
||||
_testmain.go
|
||||
clientid.dat
|
||||
clientsecret.dat
|
||||
google-api-go-generator/google-api-go-gen
|
||||
|
||||
syntax:glob
|
||||
*.6
|
||||
*.8
|
||||
*~
|
||||
*.out
|
1
vendor/google.golang.org/api/.hgtags
generated
vendored
Normal file
1
vendor/google.golang.org/api/.hgtags
generated
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
b571b553f8c057cb6952ce817dfb09b6e34a8c0b release
|
16
vendor/google.golang.org/api/.travis.yml
generated
vendored
Normal file
16
vendor/google.golang.org/api/.travis.yml
generated
vendored
Normal file
|
@ -0,0 +1,16 @@
|
|||
sudo: false
|
||||
|
||||
language: go
|
||||
|
||||
go:
|
||||
- 1.6
|
||||
- 1.7
|
||||
|
||||
before_install:
|
||||
- openssl aes-256-cbc -K $encrypted_7fd28a0c5534_key -iv $encrypted_7fd28a0c5534_iv -in key.json.enc -out key.json -d
|
||||
|
||||
install:
|
||||
- go get -v google.golang.org/api/...
|
||||
|
||||
script:
|
||||
- GCLOUD_TESTS_GOLANG_PROJECT_ID="dulcet-port-762" GCLOUD_TESTS_GOLANG_DESTRUCTIVE_TEST_BUCKET_NAME="dulcet-port-762-api-go-client-storage-integration-test" GCLOUD_TESTS_GOLANG_KEY="$(pwd)/key.json" go test -v -tags=integration google.golang.org/api/...
|
484
vendor/google.golang.org/api/CONTRIBUTING.md
generated
vendored
Normal file
484
vendor/google.golang.org/api/CONTRIBUTING.md
generated
vendored
Normal file
|
@ -0,0 +1,484 @@
|
|||
# Contributing to the Google API Go Client
|
||||
|
||||
## Master git repo
|
||||
|
||||
Our master git repo is https://code.googlesource.com/google-api-go-client
|
||||
|
||||
## Pull Requests
|
||||
|
||||
We do **NOT** use Github pull requests. We use Gerrit instead
|
||||
with the same workflow as Go. See below.
|
||||
|
||||
## The source tree
|
||||
|
||||
Most of this project is auto-generated.
|
||||
|
||||
The notable directories which are not auto-generated:
|
||||
|
||||
```
|
||||
google-api-go-generator/ -- the generator itself
|
||||
googleapi/ -- shared common code, used by auto-generated code
|
||||
examples/ -- sample code
|
||||
```
|
||||
|
||||
# Contribution Guidelines
|
||||
|
||||
## Introduction
|
||||
|
||||
This document explains how to contribute changes to the google-api-go-client project.
|
||||
|
||||
## Testing redux
|
||||
|
||||
You've written and tested your code, but
|
||||
before sending code out for review, run all the tests for the whole
|
||||
tree to make sure the changes don't break other packages or programs:
|
||||
|
||||
```
|
||||
$ make cached
|
||||
$ go test ./...
|
||||
...
|
||||
ok google.golang.org/api/google-api-go-generator 0.226s
|
||||
ok google.golang.org/api/googleapi 0.015s
|
||||
...
|
||||
```
|
||||
|
||||
Ideally, you will add unit tests to one of the above directories to
|
||||
demonstrate the changes you are making and include the tests with your
|
||||
code review.
|
||||
|
||||
## Code review
|
||||
|
||||
Changes to google-api-go-client must be reviewed before they are submitted,
|
||||
no matter who makes the change.
|
||||
A custom git command called `git-codereview`,
|
||||
discussed below, helps manage the code review process through a Google-hosted
|
||||
[instance](https://code-review.googlesource.com/) of the code review
|
||||
system called [Gerrit](https://code.google.com/p/gerrit/).
|
||||
|
||||
### Set up authentication for code review
|
||||
|
||||
The Git code hosting server and Gerrit code review server both use a Google
|
||||
Account to authenticate. You therefore need a Google Account to proceed.
|
||||
(If you can use the account to
|
||||
[sign in at google.com](https://www.google.com/accounts/Login),
|
||||
you can use it to sign in to the code review server.)
|
||||
The email address you use with the code review system
|
||||
needs to be added to the [`CONTRIBUTORS`](/CONTRIBUTORS) file
|
||||
with your first code review.
|
||||
You can [create a Google Account](https://www.google.com/accounts/NewAccount)
|
||||
associated with any address where you receive email.
|
||||
|
||||
Visit the site [code.googlesource.com](https://code.googlesource.com)
|
||||
and log in using your Google Account.
|
||||
Click on the "Generate Password" link that appears at the top of the page.
|
||||
|
||||
Click the radio button that says "Only `code.googlesource.com`"
|
||||
to use this authentication token only for the google-api-go-client project.
|
||||
|
||||
Further down the page is a box containing commands to install
|
||||
the authentication cookie in file called `.gitcookies` in your home
|
||||
directory.
|
||||
Copy the text for the commands into a Unix shell window to execute it.
|
||||
That will install the authentication token.
|
||||
|
||||
(If you are on a Windows computer, you should instead follow the instructions
|
||||
in the yellow box to run the command.)
|
||||
|
||||
### Register with Gerrit
|
||||
|
||||
Now that you have a Google account and the authentication token,
|
||||
you need to register your account with Gerrit, the code review system.
|
||||
To do this, visit [golang.org/cl](https://golang.org/cl)
|
||||
and log in using the same Google Account you used above.
|
||||
That is all that is required.
|
||||
|
||||
### Install the git-codereview command
|
||||
|
||||
Now install the `git-codereview` command by running,
|
||||
|
||||
```
|
||||
go get -u golang.org/x/review/git-codereview
|
||||
```
|
||||
|
||||
Make sure `git-codereview` is installed in your shell path, so that the
|
||||
`git` command can find it. Check that
|
||||
|
||||
```
|
||||
$ git codereview help
|
||||
```
|
||||
|
||||
prints help text, not an error.
|
||||
|
||||
Note to Git aficionados: The `git-codereview` command is not required to
|
||||
upload and manage Gerrit code reviews. For those who prefer plain Git, the text
|
||||
below gives the Git equivalent of each git-codereview command. If you do use plain
|
||||
Git, note that you still need the commit hooks that the git-codereview command
|
||||
configures; those hooks add a Gerrit `Change-Id` line to the commit
|
||||
message and check that all Go source files have been formatted with gofmt. Even
|
||||
if you intend to use plain Git for daily work, install the hooks in a new Git
|
||||
checkout by running `git-codereview hooks`.
|
||||
|
||||
### Set up git aliases
|
||||
|
||||
The `git-codereview` command can be run directly from the shell
|
||||
by typing, for instance,
|
||||
|
||||
```
|
||||
$ git codereview sync
|
||||
```
|
||||
|
||||
but it is more convenient to set up aliases for `git-codereview`'s own
|
||||
subcommands, so that the above becomes,
|
||||
|
||||
```
|
||||
$ git sync
|
||||
```
|
||||
|
||||
The `git-codereview` subcommands have been chosen to be distinct from
|
||||
Git's own, so it's safe to do so.
|
||||
|
||||
The aliases are optional, but in the rest of this document we will assume
|
||||
they are installed.
|
||||
To install them, copy this text into your Git configuration file
|
||||
(usually `.gitconfig` in your home directory):
|
||||
|
||||
```
|
||||
[alias]
|
||||
change = codereview change
|
||||
gofmt = codereview gofmt
|
||||
mail = codereview mail
|
||||
pending = codereview pending
|
||||
submit = codereview submit
|
||||
sync = codereview sync
|
||||
```
|
||||
|
||||
### Understanding the git-codereview command
|
||||
|
||||
After installing the `git-codereview` command, you can run
|
||||
|
||||
```
|
||||
$ git codereview help
|
||||
```
|
||||
|
||||
to learn more about its commands.
|
||||
You can also read the [command documentation](https://godoc.org/golang.org/x/review/git-codereview).
|
||||
|
||||
### Switch to the master branch
|
||||
|
||||
New changes should
|
||||
only be made based on the master branch.
|
||||
Before making a change, make sure you start on the master branch:
|
||||
|
||||
```
|
||||
$ git checkout master
|
||||
$ git sync
|
||||
````
|
||||
|
||||
(In Git terms, `git sync` runs
|
||||
`git pull -r`.)
|
||||
|
||||
### Make a change
|
||||
|
||||
The entire checked-out tree is writable.
|
||||
Once you have edited files, you must tell Git that they have been modified.
|
||||
You must also tell Git about any files that are added, removed, or renamed files.
|
||||
These operations are done with the usual Git commands,
|
||||
`git add`,
|
||||
`git rm`,
|
||||
and
|
||||
`git mv`.
|
||||
|
||||
If you wish to checkpoint your work, or are ready to send the code out for review, run
|
||||
|
||||
```
|
||||
$ git change <branch>
|
||||
```
|
||||
|
||||
from any directory in your google-api-go-client repository to commit the changes so far.
|
||||
The name `<branch>` is an arbitrary one you choose to identify the
|
||||
local branch containing your changes.
|
||||
|
||||
(In Git terms, `git change <branch>`
|
||||
runs `git checkout -b branch`,
|
||||
then `git branch --set-upstream-to origin/master`,
|
||||
then `git commit`.)
|
||||
|
||||
Git will open a change description file in your editor.
|
||||
(It uses the editor named by the `$EDITOR` environment variable,
|
||||
`vi` by default.)
|
||||
The file will look like:
|
||||
|
||||
```
|
||||
# Please enter the commit message for your changes. Lines starting
|
||||
# with '#' will be ignored, and an empty message aborts the commit.
|
||||
# On branch foo
|
||||
# Changes not staged for commit:
|
||||
# modified: editedfile.go
|
||||
#
|
||||
```
|
||||
|
||||
At the beginning of this file is a blank line; replace it
|
||||
with a thorough description of your change.
|
||||
The first line of the change description is conventionally a one-line
|
||||
summary of the change, prefixed by `google-api-go-client:`,
|
||||
and is used as the subject for code review mail.
|
||||
The rest of the
|
||||
description elaborates and should provide context for the
|
||||
change and explain what it does.
|
||||
If there is a helpful reference, mention it here.
|
||||
|
||||
After editing, the template might now read:
|
||||
|
||||
```
|
||||
math: improved Sin, Cos and Tan precision for very large arguments
|
||||
|
||||
The existing implementation has poor numerical properties for
|
||||
large arguments, so use the McGillicutty algorithm to improve
|
||||
accuracy above 1e10.
|
||||
|
||||
The algorithm is described at http://wikipedia.org/wiki/McGillicutty_Algorithm
|
||||
|
||||
Fixes #54
|
||||
|
||||
# Please enter the commit message for your changes. Lines starting
|
||||
# with '#' will be ignored, and an empty message aborts the commit.
|
||||
# On branch foo
|
||||
# Changes not staged for commit:
|
||||
# modified: editedfile.go
|
||||
#
|
||||
```
|
||||
|
||||
The commented section of the file lists all the modified files in your client.
|
||||
It is best to keep unrelated changes in different change lists,
|
||||
so if you see a file listed that should not be included, abort
|
||||
the command and move that file to a different branch.
|
||||
|
||||
The special notation "Fixes #54" associates the change with issue 54 in the
|
||||
[google-api-go-client issue tracker](https://github.com/google/google-api-go-client/issues/54).
|
||||
When this change is eventually submitted, the issue
|
||||
tracker will automatically mark the issue as fixed.
|
||||
(There are several such conventions, described in detail in the
|
||||
[GitHub Issue Tracker documentation](https://help.github.com/articles/closing-issues-via-commit-messages/).)
|
||||
|
||||
Once you have finished writing the commit message,
|
||||
save the file and exit the editor.
|
||||
|
||||
If you wish to do more editing, re-stage your changes using
|
||||
`git add`, and then run
|
||||
|
||||
```
|
||||
$ git change
|
||||
```
|
||||
|
||||
to update the change description and incorporate the staged changes. The
|
||||
change description contains a `Change-Id` line near the bottom,
|
||||
added by a Git commit hook during the initial
|
||||
`git change`.
|
||||
That line is used by Gerrit to match successive uploads of the same change.
|
||||
Do not edit or delete it.
|
||||
|
||||
(In Git terms, `git change` with no branch name
|
||||
runs `git commit --amend`.)
|
||||
|
||||
### Mail the change for review
|
||||
|
||||
Once the change is ready, mail it out for review:
|
||||
|
||||
```
|
||||
$ git mail
|
||||
```
|
||||
|
||||
You can specify a reviewer or CC interested parties
|
||||
using the `-r` or `-cc` options.
|
||||
Both accept a comma-separated list of email addresses:
|
||||
|
||||
```
|
||||
$ git mail -r joe@golang.org -cc mabel@example.com,math-nuts@swtch.com
|
||||
```
|
||||
|
||||
Unless explicitly told otherwise, such as in the discussion leading
|
||||
up to sending in the change list, please specify
|
||||
`bradfitz@golang.org`, `gmlewis@google.com`, or
|
||||
`mcgreevy@golang.org` as a reviewer.
|
||||
|
||||
(In Git terms, `git mail` pushes the local committed
|
||||
changes to Gerrit using `git push origin HEAD:refs/for/master`.)
|
||||
|
||||
If your change relates to an open issue, please add a comment to the issue
|
||||
announcing your proposed fix, including a link to your CL.
|
||||
|
||||
The code review server assigns your change an issue number and URL,
|
||||
which `git mail` will print, something like:
|
||||
|
||||
```
|
||||
remote: New Changes:
|
||||
remote: https://code-review.googlesource.com/99999 math: improved Sin, Cos and Tan precision for very large arguments
|
||||
```
|
||||
|
||||
### Reviewing code
|
||||
|
||||
Running `git mail` will send an email to you and the
|
||||
reviewers asking them to visit the issue's URL and make comments on the change.
|
||||
When done, the reviewer adds comments through the Gerrit user interface
|
||||
and clicks "Reply" to send comments back.
|
||||
You will receive a mail notification when this happens.
|
||||
You must reply through the web interface.
|
||||
|
||||
### Revise and upload
|
||||
|
||||
You must respond to review comments through the web interface.
|
||||
|
||||
When you have revised the code and are ready for another round of review,
|
||||
stage those changes and use `git change` to update the
|
||||
commit.
|
||||
To send the update change list for another round of review,
|
||||
run `git mail` again.
|
||||
|
||||
The reviewer can comment on the new copy, and the process repeats.
|
||||
The reviewer approves the change by giving it a positive score
|
||||
(+1 or +2) and replying `LGTM`: looks good to me.
|
||||
|
||||
You can see a list of your pending changes by running
|
||||
`git pending`, and switch between change branches with
|
||||
`git change <branch>`.
|
||||
|
||||
### Synchronize your client
|
||||
|
||||
While you were working, others might have submitted changes to the repository.
|
||||
To update your local branch, run
|
||||
|
||||
```
|
||||
$ git sync
|
||||
```
|
||||
|
||||
(In git terms, `git sync` runs
|
||||
`git pull -r`.)
|
||||
|
||||
If files you were editing have changed, Git does its best to merge the
|
||||
remote changes into your local changes.
|
||||
It may leave some files to merge by hand.
|
||||
|
||||
For example, suppose you have edited `sin.go` but
|
||||
someone else has committed an independent change.
|
||||
When you run `git sync`,
|
||||
you will get the (scary-looking) output:
|
||||
|
||||
```
|
||||
$ git sync
|
||||
Failed to merge in the changes.
|
||||
Patch failed at 0023 math: improved Sin, Cos and Tan precision for very large arguments
|
||||
The copy of the patch that failed is found in:
|
||||
/home/you/repo/.git/rebase-apply/patch
|
||||
|
||||
When you have resolved this problem, run "git rebase --continue".
|
||||
If you prefer to skip this patch, run "git rebase --skip" instead.
|
||||
To check out the original branch and stop rebasing, run "git rebase --abort".
|
||||
```
|
||||
|
||||
|
||||
If this happens, run
|
||||
|
||||
```
|
||||
$ git status
|
||||
```
|
||||
|
||||
to see which files failed to merge.
|
||||
The output will look something like this:
|
||||
|
||||
```
|
||||
rebase in progress; onto a24c3eb
|
||||
You are currently rebasing branch 'mcgillicutty' on 'a24c3eb'.
|
||||
(fix conflicts and then run "git rebase --continue")
|
||||
(use "git rebase --skip" to skip this patch)
|
||||
(use "git rebase --abort" to check out the original branch)
|
||||
|
||||
Unmerged paths:
|
||||
(use "git reset HEAD <file>..." to unstage)
|
||||
(use "git add <file>..." to mark resolution)
|
||||
|
||||
_both modified: sin.go_
|
||||
```
|
||||
|
||||
|
||||
The only important part in that transcript is the italicized "both modified"
|
||||
line: Git failed to merge your changes with the conflicting change.
|
||||
When this happens, Git leaves both sets of edits in the file,
|
||||
with conflicts marked by `<<<<<<<` and
|
||||
`>>>>>>>`.
|
||||
It is now your job to edit the file to combine them.
|
||||
Continuing the example, searching for those strings in `sin.go`
|
||||
might turn up:
|
||||
|
||||
```
|
||||
arg = scale(arg)
|
||||
<<<<<<< HEAD
|
||||
if arg > 1e9 {
|
||||
=======
|
||||
if arg > 1e10 {
|
||||
>>>>>>> mcgillicutty
|
||||
largeReduce(arg)
|
||||
```
|
||||
|
||||
Git doesn't show it, but suppose the original text that both edits
|
||||
started with was 1e8; you changed it to 1e10 and the other change to 1e9,
|
||||
so the correct answer might now be 1e10. First, edit the section
|
||||
to remove the markers and leave the correct code:
|
||||
|
||||
```
|
||||
arg = scale(arg)
|
||||
if arg > 1e10 {
|
||||
largeReduce(arg)
|
||||
```
|
||||
|
||||
Then tell Git that the conflict is resolved by running
|
||||
|
||||
```
|
||||
$ git add sin.go
|
||||
```
|
||||
|
||||
If you had been editing the file, say for debugging, but do not
|
||||
care to preserve your changes, you can run
|
||||
`git reset HEAD sin.go`
|
||||
to abandon your changes.
|
||||
Then run `git rebase --continue` to
|
||||
restore the change commit.
|
||||
|
||||
### Reviewing code by others
|
||||
|
||||
You can import a change proposed by someone else into your local Git repository.
|
||||
On the Gerrit review page, click the "Download ▼" link in the upper right
|
||||
corner, copy the "Checkout" command and run it from your local Git repo.
|
||||
It should look something like this:
|
||||
|
||||
```
|
||||
$ git fetch https://code.googlesource.com/review refs/changes/21/1221/1 && git checkout FETCH_HEAD
|
||||
```
|
||||
|
||||
To revert, change back to the branch you were working in.
|
||||
|
||||
### Submit the change after the review
|
||||
|
||||
After the code has been `LGTM`'ed, an approver may
|
||||
submit it to the master branch using the Gerrit UI.
|
||||
There is a "Submit" button on the web page for the change
|
||||
that appears once the change is approved (marked +2).
|
||||
|
||||
This checks the change into the repository.
|
||||
The change description will include a link to the code review,
|
||||
and the code review will be updated with a link to the change
|
||||
in the repository.
|
||||
Since the method used to integrate the changes is "Cherry Pick",
|
||||
the commit hashes in the repository will be changed by
|
||||
the submit operation.
|
||||
|
||||
### More information
|
||||
|
||||
In addition to the information here, the Go community maintains a [CodeReview](https://golang.org/wiki/CodeReview) wiki page.
|
||||
Feel free to contribute to this page as you learn the review process.
|
||||
|
||||
## Contributors
|
||||
|
||||
Files in the google-api-go-client repository don't list author names,
|
||||
both to avoid clutter and to avoid having to keep the lists up to date.
|
||||
Instead, please add your name to the [`CONTRIBUTORS`](/CONTRIBUTORS)
|
||||
file as your first code review, keeping the names in sorted order.
|
130
vendor/google.golang.org/api/GettingStarted.md
generated
vendored
Normal file
130
vendor/google.golang.org/api/GettingStarted.md
generated
vendored
Normal file
|
@ -0,0 +1,130 @@
|
|||
# Getting Started with the Google APIs for Go
|
||||
|
||||
## Getting Started
|
||||
|
||||
This is a quick walk-through of how to get started with the Google APIs for Go.
|
||||
|
||||
## Background
|
||||
|
||||
The first thing to understand is that the Google API libraries are auto-generated for
|
||||
each language, including Go, so they may not feel like 100% natural for any language.
|
||||
The Go versions are pretty natural, but please forgive any small non-idiomatic things.
|
||||
(Suggestions welcome, though!)
|
||||
|
||||
## Installing
|
||||
|
||||
Pick an API and a version of that API to install.
|
||||
You can find the complete list by looking at the
|
||||
[directories here](https://github.com/google/google-api-go-client/tree/master/).
|
||||
|
||||
For example, let's install the
|
||||
[urlshortener's version 1 API](https://godoc.org/google.golang.org/api/urlshortener/v1):
|
||||
|
||||
```
|
||||
$ go get -u google.golang.org/api/urlshortener/v1
|
||||
```
|
||||
|
||||
Now it's ready for use in your code.
|
||||
|
||||
## Using
|
||||
|
||||
Once you've installed a library, you import it like this:
|
||||
|
||||
```go
|
||||
package main
|
||||
|
||||
import (
|
||||
"golang.org/x/net/context"
|
||||
"golang.org/x/oauth2"
|
||||
"golang.org/x/oauth2/google"
|
||||
"google.golang.org/api/urlshortener/v1"
|
||||
)
|
||||
```
|
||||
|
||||
The package name, if you don't override it on your import line, is the name of the
|
||||
API without the version number. In the case above, just `urlshortener`.
|
||||
|
||||
## Instantiating
|
||||
|
||||
Each API has a `New` function taking an `*http.Client` and returning an API-specific `*Service`.
|
||||
|
||||
You create the service like:
|
||||
|
||||
```go
|
||||
svc, err := urlshortener.New(httpClient)
|
||||
```
|
||||
|
||||
## OAuth HTTP Client
|
||||
|
||||
The HTTP client you pass in to the service must be one that automatically adds
|
||||
Google-supported Authorization information to the requests.
|
||||
|
||||
There are several ways to do authentication. They will all involve the package
|
||||
[golang.org/x/oauth2](https://godoc.org/golang.org/x/oauth2) in some way.
|
||||
|
||||
### 3-legged OAuth
|
||||
|
||||
For 3-legged OAuth (your application redirecting a user through a website to get a
|
||||
token giving your application access to that user's resources), you will need to
|
||||
create an oauth2.Config,
|
||||
|
||||
|
||||
```go
|
||||
var config = &oauth2.Config{
|
||||
ClientID: "", // from https://console.developers.google.com/project/<your-project-id>/apiui/credential
|
||||
ClientSecret: "", // from https://console.developers.google.com/project/<your-project-id>/apiui/credential
|
||||
Endpoint: google.Endpoint,
|
||||
Scopes: []string{urlshortener.UrlshortenerScope},
|
||||
}
|
||||
```
|
||||
|
||||
... and then use the AuthCodeURL, Exchange, and Client methods on it.
|
||||
For an example, see: https://godoc.org/golang.org/x/oauth2#example-Config
|
||||
|
||||
For the redirect URL, see
|
||||
https://developers.google.com/identity/protocols/OAuth2InstalledApp#choosingredirecturi
|
||||
|
||||
### Service Accounts
|
||||
|
||||
To use a Google service account, or the GCE metadata service, see
|
||||
the [golang.org/x/oauth2/google](https://godoc.org/golang.org/x/oauth2/google) package.
|
||||
In particular, see [google.DefaultClient](https://godoc.org/golang.org/x/oauth2/google#DefaultClient).
|
||||
|
||||
### Using API Keys
|
||||
|
||||
Some APIs require passing API keys from your application.
|
||||
To do this, you can use
|
||||
[transport.APIKey](https://godoc.org/google.golang.org/api/googleapi/transport#APIKey):
|
||||
|
||||
```go
|
||||
ctx := context.WithValue(context.Background(), oauth2.HTTPClient, &http.Client{
|
||||
Transport: &transport.APIKey{Key: developerKey},
|
||||
})
|
||||
oauthConfig := &oauth2.Config{ .... }
|
||||
var token *oauth2.Token = .... // via cache, or oauthConfig.Exchange
|
||||
httpClient := oauthConfig.Client(ctx, token)
|
||||
svc, err := urlshortener.New(httpClient)
|
||||
...
|
||||
```
|
||||
|
||||
## Using the Service
|
||||
|
||||
Each service contains zero or more methods and zero or more sub-services.
|
||||
The sub-services related to a specific type of "Resource".
|
||||
|
||||
Those sub-services then contain their own methods.
|
||||
|
||||
For instance, the urlshortener API has just the "Url" sub-service:
|
||||
|
||||
```go
|
||||
url, err := svc.Url.Get(shortURL).Do()
|
||||
if err != nil {
|
||||
...
|
||||
}
|
||||
fmt.Printf("The URL %s goes to %s\n", shortURL, url.LongUrl)
|
||||
```
|
||||
|
||||
For a more complete example, see
|
||||
[urlshortener.go](https://github.com/google/google-api-go-client/tree/master/examples/urlshortener.go)
|
||||
in the [examples directory](https://github.com/google/google-api-go-client/tree/master/examples/).
|
||||
(the examples use some functions in `main.go` in the same directory)
|
27
vendor/google.golang.org/api/Makefile
generated
vendored
Normal file
27
vendor/google.golang.org/api/Makefile
generated
vendored
Normal file
|
@ -0,0 +1,27 @@
|
|||
API_JSON = $(wildcard */*/*-api.json */*/*/*-api.json)
|
||||
|
||||
# Download all API specifications and rebuild Go bindings.
|
||||
# All downloaded files are cached in $TMPDIR for reuse with 'cached' below.
|
||||
all: generator
|
||||
$(GOPATH)/bin/google-api-go-generator -cache=false -install -api=*
|
||||
|
||||
# Reuse cached API specifications in $TMPDIR and rebuild Go bindings.
|
||||
cached: generator
|
||||
$(GOPATH)/bin/google-api-go-generator -cache=true -install -api=*
|
||||
|
||||
# Only rebuild Go bindings, do not modify API specifications.
|
||||
# For every existing */*/*-api.json file, */*/*-gen.go will be built.
|
||||
local: $(API_JSON:-api.json=-gen.go)
|
||||
|
||||
# Pattern rule for the 'local' target.
|
||||
# Translates otherwise unnamed targets with a -gen.go suffix into the
|
||||
# matching input file with a -api.json suffix. $< is the input file.
|
||||
%-gen.go: %-api.json generator
|
||||
$(GOPATH)/bin/google-api-go-generator -api_json_file=$<
|
||||
|
||||
# Rebuild and install $(GOPATH)/bin/google-api-go-generator
|
||||
generator:
|
||||
go install google.golang.org/api/googleapi
|
||||
go install google.golang.org/api/google-api-go-generator
|
||||
|
||||
.PHONY: all cached local generator
|
13
vendor/google.golang.org/api/NOTES
generated
vendored
Normal file
13
vendor/google.golang.org/api/NOTES
generated
vendored
Normal file
|
@ -0,0 +1,13 @@
|
|||
Discovery Service:
|
||||
https://developers.google.com/discovery/
|
||||
https://developers.google.com/discovery/v1/reference/
|
||||
|
||||
The "type" key:
|
||||
http://tools.ietf.org/html/draft-zyp-json-schema-03#section-5.1
|
||||
|
||||
The "format" key:
|
||||
http://tools.ietf.org/html/draft-zyp-json-schema-03#section-5.23
|
||||
https://developers.google.com/discovery/v1/type-format
|
||||
|
||||
Google JSON format docs:
|
||||
http://google-styleguide.googlecode.com/svn/trunk/jsoncstyleguide.xml
|
92
vendor/google.golang.org/api/README.md
generated
vendored
Normal file
92
vendor/google.golang.org/api/README.md
generated
vendored
Normal file
|
@ -0,0 +1,92 @@
|
|||
# Google APIs Client Library for Go
|
||||
|
||||
## Status
|
||||
[](https://travis-ci.org/google/google-api-go-client)
|
||||
|
||||
These are auto-generated Go libraries from the Google Discovery Service's JSON description files of the available "new style" Google APIs.
|
||||
|
||||
Due to the auto-generated nature of this collection of libraries, complete APIs or specific versions can appear or go away without notice.
|
||||
As a result, you should always locally vendor any API(s) that your code relies upon.
|
||||
|
||||
Announcement email:
|
||||
|
||||
* http://groups.google.com/group/golang-nuts/browse_thread/thread/6c7281450be9a21e
|
||||
|
||||
Getting started documentation:
|
||||
|
||||
* https://github.com/google/google-api-go-client/blob/master/GettingStarted.md
|
||||
|
||||
In summary:
|
||||
|
||||
```
|
||||
$ go get google.golang.org/api/storage/v1
|
||||
$ go get google.golang.org/api/tasks/v1
|
||||
$ go get google.golang.org/api/moderator/v1
|
||||
... etc ...
|
||||
```
|
||||
|
||||
For docs, see e.g.:
|
||||
|
||||
* https://godoc.org/google.golang.org/api/storage/v1
|
||||
|
||||
The package of a given import is the second-to-last component, before the version number.
|
||||
|
||||
For examples, see:
|
||||
|
||||
* https://github.com/google/google-api-go-client/tree/master/examples
|
||||
|
||||
For support, use the golang-nuts@ mailing list:
|
||||
|
||||
* https://groups.google.com/group/golang-nuts
|
||||
|
||||
## Application Default Credentials Example
|
||||
|
||||
Application Default Credentials provide a simplified way to obtain credentials
|
||||
for authenticating with Google APIs.
|
||||
|
||||
The Application Default Credentials authenticate as the application itself,
|
||||
which make them great for working with Google Cloud APIs like Storage or
|
||||
Datastore. They are the recommended form of authentication when building
|
||||
applications that run on Google Compute Engine or Google App Engine.
|
||||
|
||||
Default credentials are provided by the `golang.org/x/oauth2/google` package. To use them, add the following import:
|
||||
|
||||
```
|
||||
import "golang.org/x/oauth2/google"
|
||||
```
|
||||
|
||||
Some credentials types require you to specify scopes, and service entry points may not inject them. If you encounter this situation you may need to specify scopes as follows:
|
||||
|
||||
```
|
||||
import (
|
||||
"golang.org/x/net/context"
|
||||
"golang.org/x/oauth2/google"
|
||||
"google.golang.org/api/compute/v1"
|
||||
)
|
||||
|
||||
func main() {
|
||||
// Use oauth2.NoContext if there isn't a good context to pass in.
|
||||
ctx := context.Background()
|
||||
|
||||
client, err := google.DefaultClient(ctx, compute.ComputeScope)
|
||||
if err != nil {
|
||||
//...
|
||||
}
|
||||
computeService, err := compute.New(client)
|
||||
if err != nil {
|
||||
//...
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
If you need a `oauth2.TokenSource`, use the `DefaultTokenSource` function:
|
||||
|
||||
```
|
||||
ts, err := google.DefaultTokenSource(ctx, scope1, scope2, ...)
|
||||
if err != nil {
|
||||
//...
|
||||
}
|
||||
client := oauth2.NewClient(ctx, ts)
|
||||
```
|
||||
|
||||
See also: [golang.org/x/oauth2/google](https://godoc.org/golang.org/x/oauth2/google) package documentation.
|
2
vendor/google.golang.org/api/TODO
generated
vendored
Normal file
2
vendor/google.golang.org/api/TODO
generated
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
Moved to:
|
||||
https://github.com/google/google-api-go-client/issues
|
236
vendor/google.golang.org/api/acceleratedmobilepageurl/v1/acceleratedmobilepageurl-api.json
generated
vendored
Normal file
236
vendor/google.golang.org/api/acceleratedmobilepageurl/v1/acceleratedmobilepageurl-api.json
generated
vendored
Normal file
|
@ -0,0 +1,236 @@
|
|||
{
|
||||
"discoveryVersion": "v1",
|
||||
"ownerName": "Google",
|
||||
"version_module": "True",
|
||||
"resources": {
|
||||
"ampUrls": {
|
||||
"methods": {
|
||||
"batchGet": {
|
||||
"response": {
|
||||
"$ref": "BatchGetAmpUrlsResponse"
|
||||
},
|
||||
"parameterOrder": [],
|
||||
"httpMethod": "POST",
|
||||
"parameters": {},
|
||||
"flatPath": "v1/ampUrls:batchGet",
|
||||
"path": "v1/ampUrls:batchGet",
|
||||
"id": "acceleratedmobilepageurl.ampUrls.batchGet",
|
||||
"request": {
|
||||
"$ref": "BatchGetAmpUrlsRequest"
|
||||
},
|
||||
"description": "Returns AMP URL(s) and equivalent\n[AMP Cache URL(s)](/amp/cache/overview#amp-cache-url-format)."
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"parameters": {
|
||||
"pp": {
|
||||
"location": "query",
|
||||
"description": "Pretty-print response.",
|
||||
"type": "boolean",
|
||||
"default": "true"
|
||||
},
|
||||
"bearer_token": {
|
||||
"location": "query",
|
||||
"description": "OAuth bearer token.",
|
||||
"type": "string"
|
||||
},
|
||||
"oauth_token": {
|
||||
"location": "query",
|
||||
"description": "OAuth 2.0 token for the current user.",
|
||||
"type": "string"
|
||||
},
|
||||
"upload_protocol": {
|
||||
"description": "Upload protocol for media (e.g. \"raw\", \"multipart\").",
|
||||
"type": "string",
|
||||
"location": "query"
|
||||
},
|
||||
"prettyPrint": {
|
||||
"description": "Returns response with indentations and line breaks.",
|
||||
"type": "boolean",
|
||||
"default": "true",
|
||||
"location": "query"
|
||||
},
|
||||
"fields": {
|
||||
"location": "query",
|
||||
"description": "Selector specifying which fields to include in a partial response.",
|
||||
"type": "string"
|
||||
},
|
||||
"uploadType": {
|
||||
"location": "query",
|
||||
"description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
|
||||
"type": "string"
|
||||
},
|
||||
"callback": {
|
||||
"description": "JSONP",
|
||||
"type": "string",
|
||||
"location": "query"
|
||||
},
|
||||
"$.xgafv": {
|
||||
"enum": [
|
||||
"1",
|
||||
"2"
|
||||
],
|
||||
"description": "V1 error format.",
|
||||
"type": "string",
|
||||
"enumDescriptions": [
|
||||
"v1 error format",
|
||||
"v2 error format"
|
||||
],
|
||||
"location": "query"
|
||||
},
|
||||
"alt": {
|
||||
"enumDescriptions": [
|
||||
"Responses with Content-Type of application/json",
|
||||
"Media download with context-dependent Content-Type",
|
||||
"Responses with Content-Type of application/x-protobuf"
|
||||
],
|
||||
"location": "query",
|
||||
"description": "Data format for response.",
|
||||
"default": "json",
|
||||
"enum": [
|
||||
"json",
|
||||
"media",
|
||||
"proto"
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
"access_token": {
|
||||
"location": "query",
|
||||
"description": "OAuth access token.",
|
||||
"type": "string"
|
||||
},
|
||||
"key": {
|
||||
"location": "query",
|
||||
"description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.",
|
||||
"type": "string"
|
||||
},
|
||||
"quotaUser": {
|
||||
"description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.",
|
||||
"type": "string",
|
||||
"location": "query"
|
||||
}
|
||||
},
|
||||
"schemas": {
|
||||
"BatchGetAmpUrlsResponse": {
|
||||
"properties": {
|
||||
"ampUrls": {
|
||||
"description": "For each URL in BatchAmpUrlsRequest, the URL response. The response might\nnot be in the same order as URLs in the batch request.\nIf BatchAmpUrlsRequest contains duplicate URLs, AmpUrl is generated\nonly once.",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "AmpUrl"
|
||||
}
|
||||
},
|
||||
"urlErrors": {
|
||||
"description": "The errors for requested URLs that have no AMP URL.",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "AmpUrlError"
|
||||
}
|
||||
}
|
||||
},
|
||||
"id": "BatchGetAmpUrlsResponse",
|
||||
"description": "Batch AMP URL response.",
|
||||
"type": "object"
|
||||
},
|
||||
"AmpUrl": {
|
||||
"description": "AMP URL response for a requested URL.",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"cdnAmpUrl": {
|
||||
"description": "The [AMP Cache URL](/amp/cache/overview#amp-cache-url-format) pointing to\nthe cached document in the Google AMP Cache.",
|
||||
"type": "string"
|
||||
},
|
||||
"originalUrl": {
|
||||
"description": "The original non-AMP URL.",
|
||||
"type": "string"
|
||||
},
|
||||
"ampUrl": {
|
||||
"description": "The AMP URL pointing to the publisher's web server.",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"id": "AmpUrl"
|
||||
},
|
||||
"AmpUrlError": {
|
||||
"description": "AMP URL Error resource for a requested URL that couldn't be found.",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"errorMessage": {
|
||||
"description": "An optional descriptive error message.",
|
||||
"type": "string"
|
||||
},
|
||||
"errorCode": {
|
||||
"enumDescriptions": [
|
||||
"Not specified error.",
|
||||
"Indicates the requested URL is not found in the index, possibly because\nit's unable to be found, not able to be accessed by Googlebot, or some\nother error.",
|
||||
"Indicates no AMP URL has been found that corresponds to the requested\nURL.",
|
||||
"Indicates some kind of application error occurred at the server.\nClient advised to retry.",
|
||||
"DEPRECATED: Indicates the requested URL is a valid AMP URL. This is a\nnon-error state, should not be relied upon as a sign of success or\nfailure. It will be removed in future versions of the API.",
|
||||
"Indicates that an AMP URL has been found that corresponds to the request\nURL, but it is not valid AMP HTML."
|
||||
],
|
||||
"enum": [
|
||||
"ERROR_CODE_UNSPECIFIED",
|
||||
"INPUT_URL_NOT_FOUND",
|
||||
"NO_AMP_URL",
|
||||
"APPLICATION_ERROR",
|
||||
"URL_IS_VALID_AMP",
|
||||
"URL_IS_INVALID_AMP"
|
||||
],
|
||||
"description": "The error code of an API call.",
|
||||
"type": "string"
|
||||
},
|
||||
"originalUrl": {
|
||||
"description": "The original non-AMP URL.",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"id": "AmpUrlError"
|
||||
},
|
||||
"BatchGetAmpUrlsRequest": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"urls": {
|
||||
"description": "List of URLs to look up for the paired AMP URLs.\nThe URLs are case-sensitive. Up to 50 URLs per lookup\n(see [Usage Limits](/amp/cache/reference/limits)).",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"lookupStrategy": {
|
||||
"type": "string",
|
||||
"enumDescriptions": [
|
||||
"FETCH_LIVE_DOC strategy involves live document fetch of URLs not found in\nthe index. Any request URL not found in the index is crawled in realtime\nto validate if there is a corresponding AMP URL. This strategy has higher\ncoverage but with extra latency introduced by realtime crawling. This is\nthe default strategy. Applications using this strategy should set higher\nHTTP timeouts of the API calls.",
|
||||
"IN_INDEX_DOC strategy skips fetching live documents of URL(s) not found\nin index. For applications which need low latency use of IN_INDEX_DOC\nstrategy is recommended."
|
||||
],
|
||||
"enum": [
|
||||
"FETCH_LIVE_DOC",
|
||||
"IN_INDEX_DOC"
|
||||
],
|
||||
"description": "The lookup_strategy being requested."
|
||||
}
|
||||
},
|
||||
"id": "BatchGetAmpUrlsRequest",
|
||||
"description": "AMP URL request for a batch of URLs."
|
||||
}
|
||||
},
|
||||
"protocol": "rest",
|
||||
"icons": {
|
||||
"x32": "http://www.google.com/images/icons/product/search-32.gif",
|
||||
"x16": "http://www.google.com/images/icons/product/search-16.gif"
|
||||
},
|
||||
"version": "v1",
|
||||
"baseUrl": "https://acceleratedmobilepageurl.googleapis.com/",
|
||||
"kind": "discovery#restDescription",
|
||||
"description": "Retrieves the list of AMP URL (and equivalent AMP Cache URL) for a given list of public URL(s).\n",
|
||||
"servicePath": "",
|
||||
"rootUrl": "https://acceleratedmobilepageurl.googleapis.com/",
|
||||
"basePath": "",
|
||||
"ownerDomain": "google.com",
|
||||
"name": "acceleratedmobilepageurl",
|
||||
"batchPath": "batch",
|
||||
"revision": "20170504",
|
||||
"documentationLink": "https://developers.google.com/amp/cache/",
|
||||
"id": "acceleratedmobilepageurl:v1",
|
||||
"title": "Accelerated Mobile Pages (AMP) URL API"
|
||||
}
|
382
vendor/google.golang.org/api/acceleratedmobilepageurl/v1/acceleratedmobilepageurl-gen.go
generated
vendored
Normal file
382
vendor/google.golang.org/api/acceleratedmobilepageurl/v1/acceleratedmobilepageurl-gen.go
generated
vendored
Normal file
|
@ -0,0 +1,382 @@
|
|||
// Package acceleratedmobilepageurl provides access to the Accelerated Mobile Pages (AMP) URL API.
|
||||
//
|
||||
// See https://developers.google.com/amp/cache/
|
||||
//
|
||||
// Usage example:
|
||||
//
|
||||
// import "google.golang.org/api/acceleratedmobilepageurl/v1"
|
||||
// ...
|
||||
// acceleratedmobilepageurlService, err := acceleratedmobilepageurl.New(oauthHttpClient)
|
||||
package acceleratedmobilepageurl // import "google.golang.org/api/acceleratedmobilepageurl/v1"
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"fmt"
|
||||
context "golang.org/x/net/context"
|
||||
ctxhttp "golang.org/x/net/context/ctxhttp"
|
||||
gensupport "google.golang.org/api/gensupport"
|
||||
googleapi "google.golang.org/api/googleapi"
|
||||
"io"
|
||||
"net/http"
|
||||
"net/url"
|
||||
"strconv"
|
||||
"strings"
|
||||
)
|
||||
|
||||
// Always reference these packages, just in case the auto-generated code
|
||||
// below doesn't.
|
||||
var _ = bytes.NewBuffer
|
||||
var _ = strconv.Itoa
|
||||
var _ = fmt.Sprintf
|
||||
var _ = json.NewDecoder
|
||||
var _ = io.Copy
|
||||
var _ = url.Parse
|
||||
var _ = gensupport.MarshalJSON
|
||||
var _ = googleapi.Version
|
||||
var _ = errors.New
|
||||
var _ = strings.Replace
|
||||
var _ = context.Canceled
|
||||
var _ = ctxhttp.Do
|
||||
|
||||
const apiId = "acceleratedmobilepageurl:v1"
|
||||
const apiName = "acceleratedmobilepageurl"
|
||||
const apiVersion = "v1"
|
||||
const basePath = "https://acceleratedmobilepageurl.googleapis.com/"
|
||||
|
||||
func New(client *http.Client) (*Service, error) {
|
||||
if client == nil {
|
||||
return nil, errors.New("client is nil")
|
||||
}
|
||||
s := &Service{client: client, BasePath: basePath}
|
||||
s.AmpUrls = NewAmpUrlsService(s)
|
||||
return s, nil
|
||||
}
|
||||
|
||||
type Service struct {
|
||||
client *http.Client
|
||||
BasePath string // API endpoint base URL
|
||||
UserAgent string // optional additional User-Agent fragment
|
||||
|
||||
AmpUrls *AmpUrlsService
|
||||
}
|
||||
|
||||
func (s *Service) userAgent() string {
|
||||
if s.UserAgent == "" {
|
||||
return googleapi.UserAgent
|
||||
}
|
||||
return googleapi.UserAgent + " " + s.UserAgent
|
||||
}
|
||||
|
||||
func NewAmpUrlsService(s *Service) *AmpUrlsService {
|
||||
rs := &AmpUrlsService{s: s}
|
||||
return rs
|
||||
}
|
||||
|
||||
type AmpUrlsService struct {
|
||||
s *Service
|
||||
}
|
||||
|
||||
// AmpUrl: AMP URL response for a requested URL.
|
||||
type AmpUrl struct {
|
||||
// AmpUrl: The AMP URL pointing to the publisher's web server.
|
||||
AmpUrl string `json:"ampUrl,omitempty"`
|
||||
|
||||
// CdnAmpUrl: The [AMP Cache
|
||||
// URL](/amp/cache/overview#amp-cache-url-format) pointing to
|
||||
// the cached document in the Google AMP Cache.
|
||||
CdnAmpUrl string `json:"cdnAmpUrl,omitempty"`
|
||||
|
||||
// OriginalUrl: The original non-AMP URL.
|
||||
OriginalUrl string `json:"originalUrl,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "AmpUrl") to
|
||||
// unconditionally include in API requests. By default, fields with
|
||||
// empty values are omitted from API requests. However, any non-pointer,
|
||||
// non-interface field appearing in ForceSendFields will be sent to the
|
||||
// server regardless of whether the field is empty or not. This may be
|
||||
// used to include empty fields in Patch requests.
|
||||
ForceSendFields []string `json:"-"`
|
||||
|
||||
// NullFields is a list of field names (e.g. "AmpUrl") to include in API
|
||||
// requests with the JSON null value. By default, fields with empty
|
||||
// values are omitted from API requests. However, any field with an
|
||||
// empty value appearing in NullFields will be sent to the server as
|
||||
// null. It is an error if a field in this list has a non-empty value.
|
||||
// This may be used to include null fields in Patch requests.
|
||||
NullFields []string `json:"-"`
|
||||
}
|
||||
|
||||
func (s *AmpUrl) MarshalJSON() ([]byte, error) {
|
||||
type noMethod AmpUrl
|
||||
raw := noMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// AmpUrlError: AMP URL Error resource for a requested URL that couldn't
|
||||
// be found.
|
||||
type AmpUrlError struct {
|
||||
// ErrorCode: The error code of an API call.
|
||||
//
|
||||
// Possible values:
|
||||
// "ERROR_CODE_UNSPECIFIED" - Not specified error.
|
||||
// "INPUT_URL_NOT_FOUND" - Indicates the requested URL is not found in
|
||||
// the index, possibly because
|
||||
// it's unable to be found, not able to be accessed by Googlebot, or
|
||||
// some
|
||||
// other error.
|
||||
// "NO_AMP_URL" - Indicates no AMP URL has been found that corresponds
|
||||
// to the requested
|
||||
// URL.
|
||||
// "APPLICATION_ERROR" - Indicates some kind of application error
|
||||
// occurred at the server.
|
||||
// Client advised to retry.
|
||||
// "URL_IS_VALID_AMP" - DEPRECATED: Indicates the requested URL is a
|
||||
// valid AMP URL. This is a
|
||||
// non-error state, should not be relied upon as a sign of success
|
||||
// or
|
||||
// failure. It will be removed in future versions of the API.
|
||||
// "URL_IS_INVALID_AMP" - Indicates that an AMP URL has been found
|
||||
// that corresponds to the request
|
||||
// URL, but it is not valid AMP HTML.
|
||||
ErrorCode string `json:"errorCode,omitempty"`
|
||||
|
||||
// ErrorMessage: An optional descriptive error message.
|
||||
ErrorMessage string `json:"errorMessage,omitempty"`
|
||||
|
||||
// OriginalUrl: The original non-AMP URL.
|
||||
OriginalUrl string `json:"originalUrl,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "ErrorCode") to
|
||||
// unconditionally include in API requests. By default, fields with
|
||||
// empty values are omitted from API requests. However, any non-pointer,
|
||||
// non-interface field appearing in ForceSendFields will be sent to the
|
||||
// server regardless of whether the field is empty or not. This may be
|
||||
// used to include empty fields in Patch requests.
|
||||
ForceSendFields []string `json:"-"`
|
||||
|
||||
// NullFields is a list of field names (e.g. "ErrorCode") to include in
|
||||
// API requests with the JSON null value. By default, fields with empty
|
||||
// values are omitted from API requests. However, any field with an
|
||||
// empty value appearing in NullFields will be sent to the server as
|
||||
// null. It is an error if a field in this list has a non-empty value.
|
||||
// This may be used to include null fields in Patch requests.
|
||||
NullFields []string `json:"-"`
|
||||
}
|
||||
|
||||
func (s *AmpUrlError) MarshalJSON() ([]byte, error) {
|
||||
type noMethod AmpUrlError
|
||||
raw := noMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// BatchGetAmpUrlsRequest: AMP URL request for a batch of URLs.
|
||||
type BatchGetAmpUrlsRequest struct {
|
||||
// LookupStrategy: The lookup_strategy being requested.
|
||||
//
|
||||
// Possible values:
|
||||
// "FETCH_LIVE_DOC" - FETCH_LIVE_DOC strategy involves live document
|
||||
// fetch of URLs not found in
|
||||
// the index. Any request URL not found in the index is crawled in
|
||||
// realtime
|
||||
// to validate if there is a corresponding AMP URL. This strategy has
|
||||
// higher
|
||||
// coverage but with extra latency introduced by realtime crawling. This
|
||||
// is
|
||||
// the default strategy. Applications using this strategy should set
|
||||
// higher
|
||||
// HTTP timeouts of the API calls.
|
||||
// "IN_INDEX_DOC" - IN_INDEX_DOC strategy skips fetching live
|
||||
// documents of URL(s) not found
|
||||
// in index. For applications which need low latency use of
|
||||
// IN_INDEX_DOC
|
||||
// strategy is recommended.
|
||||
LookupStrategy string `json:"lookupStrategy,omitempty"`
|
||||
|
||||
// Urls: List of URLs to look up for the paired AMP URLs.
|
||||
// The URLs are case-sensitive. Up to 50 URLs per lookup
|
||||
// (see [Usage Limits](/amp/cache/reference/limits)).
|
||||
Urls []string `json:"urls,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "LookupStrategy") to
|
||||
// unconditionally include in API requests. By default, fields with
|
||||
// empty values are omitted from API requests. However, any non-pointer,
|
||||
// non-interface field appearing in ForceSendFields will be sent to the
|
||||
// server regardless of whether the field is empty or not. This may be
|
||||
// used to include empty fields in Patch requests.
|
||||
ForceSendFields []string `json:"-"`
|
||||
|
||||
// NullFields is a list of field names (e.g. "LookupStrategy") to
|
||||
// include in API requests with the JSON null value. By default, fields
|
||||
// with empty values are omitted from API requests. However, any field
|
||||
// with an empty value appearing in NullFields will be sent to the
|
||||
// server as null. It is an error if a field in this list has a
|
||||
// non-empty value. This may be used to include null fields in Patch
|
||||
// requests.
|
||||
NullFields []string `json:"-"`
|
||||
}
|
||||
|
||||
func (s *BatchGetAmpUrlsRequest) MarshalJSON() ([]byte, error) {
|
||||
type noMethod BatchGetAmpUrlsRequest
|
||||
raw := noMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// BatchGetAmpUrlsResponse: Batch AMP URL response.
|
||||
type BatchGetAmpUrlsResponse struct {
|
||||
// AmpUrls: For each URL in BatchAmpUrlsRequest, the URL response. The
|
||||
// response might
|
||||
// not be in the same order as URLs in the batch request.
|
||||
// If BatchAmpUrlsRequest contains duplicate URLs, AmpUrl is
|
||||
// generated
|
||||
// only once.
|
||||
AmpUrls []*AmpUrl `json:"ampUrls,omitempty"`
|
||||
|
||||
// UrlErrors: The errors for requested URLs that have no AMP URL.
|
||||
UrlErrors []*AmpUrlError `json:"urlErrors,omitempty"`
|
||||
|
||||
// ServerResponse contains the HTTP response code and headers from the
|
||||
// server.
|
||||
googleapi.ServerResponse `json:"-"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "AmpUrls") to
|
||||
// unconditionally include in API requests. By default, fields with
|
||||
// empty values are omitted from API requests. However, any non-pointer,
|
||||
// non-interface field appearing in ForceSendFields will be sent to the
|
||||
// server regardless of whether the field is empty or not. This may be
|
||||
// used to include empty fields in Patch requests.
|
||||
ForceSendFields []string `json:"-"`
|
||||
|
||||
// NullFields is a list of field names (e.g. "AmpUrls") to include in
|
||||
// API requests with the JSON null value. By default, fields with empty
|
||||
// values are omitted from API requests. However, any field with an
|
||||
// empty value appearing in NullFields will be sent to the server as
|
||||
// null. It is an error if a field in this list has a non-empty value.
|
||||
// This may be used to include null fields in Patch requests.
|
||||
NullFields []string `json:"-"`
|
||||
}
|
||||
|
||||
func (s *BatchGetAmpUrlsResponse) MarshalJSON() ([]byte, error) {
|
||||
type noMethod BatchGetAmpUrlsResponse
|
||||
raw := noMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// method id "acceleratedmobilepageurl.ampUrls.batchGet":
|
||||
|
||||
type AmpUrlsBatchGetCall struct {
|
||||
s *Service
|
||||
batchgetampurlsrequest *BatchGetAmpUrlsRequest
|
||||
urlParams_ gensupport.URLParams
|
||||
ctx_ context.Context
|
||||
header_ http.Header
|
||||
}
|
||||
|
||||
// BatchGet: Returns AMP URL(s) and equivalent
|
||||
// [AMP Cache URL(s)](/amp/cache/overview#amp-cache-url-format).
|
||||
func (r *AmpUrlsService) BatchGet(batchgetampurlsrequest *BatchGetAmpUrlsRequest) *AmpUrlsBatchGetCall {
|
||||
c := &AmpUrlsBatchGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.batchgetampurlsrequest = batchgetampurlsrequest
|
||||
return c
|
||||
}
|
||||
|
||||
// Fields allows partial responses to be retrieved. See
|
||||
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
|
||||
// for more information.
|
||||
func (c *AmpUrlsBatchGetCall) Fields(s ...googleapi.Field) *AmpUrlsBatchGetCall {
|
||||
c.urlParams_.Set("fields", googleapi.CombineFields(s))
|
||||
return c
|
||||
}
|
||||
|
||||
// Context sets the context to be used in this call's Do method. Any
|
||||
// pending HTTP request will be aborted if the provided context is
|
||||
// canceled.
|
||||
func (c *AmpUrlsBatchGetCall) Context(ctx context.Context) *AmpUrlsBatchGetCall {
|
||||
c.ctx_ = ctx
|
||||
return c
|
||||
}
|
||||
|
||||
// Header returns an http.Header that can be modified by the caller to
|
||||
// add HTTP headers to the request.
|
||||
func (c *AmpUrlsBatchGetCall) Header() http.Header {
|
||||
if c.header_ == nil {
|
||||
c.header_ = make(http.Header)
|
||||
}
|
||||
return c.header_
|
||||
}
|
||||
|
||||
func (c *AmpUrlsBatchGetCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
reqHeaders.Set("User-Agent", c.s.userAgent())
|
||||
var body io.Reader = nil
|
||||
body, err := googleapi.WithoutDataWrapper.JSONReader(c.batchgetampurlsrequest)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
reqHeaders.Set("Content-Type", "application/json")
|
||||
c.urlParams_.Set("alt", alt)
|
||||
urls := googleapi.ResolveRelative(c.s.BasePath, "v1/ampUrls:batchGet")
|
||||
urls += "?" + c.urlParams_.Encode()
|
||||
req, _ := http.NewRequest("POST", urls, body)
|
||||
req.Header = reqHeaders
|
||||
return gensupport.SendRequest(c.ctx_, c.s.client, req)
|
||||
}
|
||||
|
||||
// Do executes the "acceleratedmobilepageurl.ampUrls.batchGet" call.
|
||||
// Exactly one of *BatchGetAmpUrlsResponse or error will be non-nil. Any
|
||||
// non-2xx status code is an error. Response headers are in either
|
||||
// *BatchGetAmpUrlsResponse.ServerResponse.Header or (if a response was
|
||||
// returned at all) in error.(*googleapi.Error).Header. Use
|
||||
// googleapi.IsNotModified to check whether the returned error was
|
||||
// because http.StatusNotModified was returned.
|
||||
func (c *AmpUrlsBatchGetCall) Do(opts ...googleapi.CallOption) (*BatchGetAmpUrlsResponse, error) {
|
||||
gensupport.SetOptions(c.urlParams_, opts...)
|
||||
res, err := c.doRequest("json")
|
||||
if res != nil && res.StatusCode == http.StatusNotModified {
|
||||
if res.Body != nil {
|
||||
res.Body.Close()
|
||||
}
|
||||
return nil, &googleapi.Error{
|
||||
Code: res.StatusCode,
|
||||
Header: res.Header,
|
||||
}
|
||||
}
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
defer googleapi.CloseBody(res)
|
||||
if err := googleapi.CheckResponse(res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
ret := &BatchGetAmpUrlsResponse{
|
||||
ServerResponse: googleapi.ServerResponse{
|
||||
Header: res.Header,
|
||||
HTTPStatusCode: res.StatusCode,
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
// {
|
||||
// "description": "Returns AMP URL(s) and equivalent\n[AMP Cache URL(s)](/amp/cache/overview#amp-cache-url-format).",
|
||||
// "flatPath": "v1/ampUrls:batchGet",
|
||||
// "httpMethod": "POST",
|
||||
// "id": "acceleratedmobilepageurl.ampUrls.batchGet",
|
||||
// "parameterOrder": [],
|
||||
// "parameters": {},
|
||||
// "path": "v1/ampUrls:batchGet",
|
||||
// "request": {
|
||||
// "$ref": "BatchGetAmpUrlsRequest"
|
||||
// },
|
||||
// "response": {
|
||||
// "$ref": "BatchGetAmpUrlsResponse"
|
||||
// }
|
||||
// }
|
||||
|
||||
}
|
596
vendor/google.golang.org/api/adexchangebuyer/v1.2/adexchangebuyer-api.json
generated
vendored
Normal file
596
vendor/google.golang.org/api/adexchangebuyer/v1.2/adexchangebuyer-api.json
generated
vendored
Normal file
|
@ -0,0 +1,596 @@
|
|||
{
|
||||
"kind": "discovery#restDescription",
|
||||
"etag": "\"ye6orv2F-1npMW3u9suM3a7C5Bo/D9alDxtbvUeWpOHmptYNh69Xd00\"",
|
||||
"discoveryVersion": "v1",
|
||||
"id": "adexchangebuyer:v1.2",
|
||||
"name": "adexchangebuyer",
|
||||
"canonicalName": "Ad Exchange Buyer",
|
||||
"version": "v1.2",
|
||||
"revision": "20151102",
|
||||
"title": "Ad Exchange Buyer API",
|
||||
"description": "Accesses your bidding-account information, submits creatives for validation, finds available direct deals, and retrieves performance reports.",
|
||||
"ownerDomain": "google.com",
|
||||
"ownerName": "Google",
|
||||
"icons": {
|
||||
"x16": "https://www.google.com/images/icons/product/doubleclick-16.gif",
|
||||
"x32": "https://www.google.com/images/icons/product/doubleclick-32.gif"
|
||||
},
|
||||
"documentationLink": "https://developers.google.com/ad-exchange/buyer-rest",
|
||||
"protocol": "rest",
|
||||
"baseUrl": "https://www.googleapis.com/adexchangebuyer/v1.2/",
|
||||
"basePath": "/adexchangebuyer/v1.2/",
|
||||
"rootUrl": "https://www.googleapis.com/",
|
||||
"servicePath": "adexchangebuyer/v1.2/",
|
||||
"batchPath": "batch",
|
||||
"parameters": {
|
||||
"alt": {
|
||||
"type": "string",
|
||||
"description": "Data format for the response.",
|
||||
"default": "json",
|
||||
"enum": [
|
||||
"json"
|
||||
],
|
||||
"enumDescriptions": [
|
||||
"Responses with Content-Type of application/json"
|
||||
],
|
||||
"location": "query"
|
||||
},
|
||||
"fields": {
|
||||
"type": "string",
|
||||
"description": "Selector specifying which fields to include in a partial response.",
|
||||
"location": "query"
|
||||
},
|
||||
"key": {
|
||||
"type": "string",
|
||||
"description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.",
|
||||
"location": "query"
|
||||
},
|
||||
"oauth_token": {
|
||||
"type": "string",
|
||||
"description": "OAuth 2.0 token for the current user.",
|
||||
"location": "query"
|
||||
},
|
||||
"prettyPrint": {
|
||||
"type": "boolean",
|
||||
"description": "Returns response with indentations and line breaks.",
|
||||
"default": "true",
|
||||
"location": "query"
|
||||
},
|
||||
"quotaUser": {
|
||||
"type": "string",
|
||||
"description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.",
|
||||
"location": "query"
|
||||
},
|
||||
"userIp": {
|
||||
"type": "string",
|
||||
"description": "IP address of the site where the request originates. Use this if you want to enforce per-user limits.",
|
||||
"location": "query"
|
||||
}
|
||||
},
|
||||
"auth": {
|
||||
"oauth2": {
|
||||
"scopes": {
|
||||
"https://www.googleapis.com/auth/adexchange.buyer": {
|
||||
"description": "Manage your Ad Exchange buyer account configuration"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"schemas": {
|
||||
"Account": {
|
||||
"id": "Account",
|
||||
"type": "object",
|
||||
"description": "Configuration data for an Ad Exchange buyer account.",
|
||||
"properties": {
|
||||
"bidderLocation": {
|
||||
"type": "array",
|
||||
"description": "Your bidder locations that have distinct URLs.",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"maximumQps": {
|
||||
"type": "integer",
|
||||
"description": "The maximum queries per second the Ad Exchange will send.",
|
||||
"format": "int32"
|
||||
},
|
||||
"region": {
|
||||
"type": "string",
|
||||
"description": "The geographical region the Ad Exchange should send requests from. Only used by some quota systems, but always setting the value is recommended. Allowed values: \n- ASIA \n- EUROPE \n- US_EAST \n- US_WEST"
|
||||
},
|
||||
"url": {
|
||||
"type": "string",
|
||||
"description": "The URL to which the Ad Exchange will send bid requests."
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"cookieMatchingNid": {
|
||||
"type": "string",
|
||||
"description": "The nid parameter value used in cookie match requests. Please contact your technical account manager if you need to change this."
|
||||
},
|
||||
"cookieMatchingUrl": {
|
||||
"type": "string",
|
||||
"description": "The base URL used in cookie match requests."
|
||||
},
|
||||
"id": {
|
||||
"type": "integer",
|
||||
"description": "Account id.",
|
||||
"format": "int32"
|
||||
},
|
||||
"kind": {
|
||||
"type": "string",
|
||||
"description": "Resource type.",
|
||||
"default": "adexchangebuyer#account"
|
||||
},
|
||||
"maximumActiveCreatives": {
|
||||
"type": "integer",
|
||||
"description": "The maximum number of active creatives that an account can have, where a creative is active if it was inserted or bid with in the last 30 days. Please contact your technical account manager if you need to change this.",
|
||||
"format": "int32"
|
||||
},
|
||||
"maximumTotalQps": {
|
||||
"type": "integer",
|
||||
"description": "The sum of all bidderLocation.maximumQps values cannot exceed this. Please contact your technical account manager if you need to change this.",
|
||||
"format": "int32"
|
||||
},
|
||||
"numberActiveCreatives": {
|
||||
"type": "integer",
|
||||
"description": "The number of creatives that this account inserted or bid with in the last 30 days.",
|
||||
"format": "int32"
|
||||
}
|
||||
}
|
||||
},
|
||||
"AccountsList": {
|
||||
"id": "AccountsList",
|
||||
"type": "object",
|
||||
"description": "An account feed lists Ad Exchange buyer accounts that the user has access to. Each entry in the feed corresponds to a single buyer account.",
|
||||
"properties": {
|
||||
"items": {
|
||||
"type": "array",
|
||||
"description": "A list of accounts.",
|
||||
"items": {
|
||||
"$ref": "Account"
|
||||
}
|
||||
},
|
||||
"kind": {
|
||||
"type": "string",
|
||||
"description": "Resource type.",
|
||||
"default": "adexchangebuyer#accountsList"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Creative": {
|
||||
"id": "Creative",
|
||||
"type": "object",
|
||||
"description": "A creative and its classification data.",
|
||||
"properties": {
|
||||
"HTMLSnippet": {
|
||||
"type": "string",
|
||||
"description": "The HTML snippet that displays the ad when inserted in the web page. If set, videoURL should not be set."
|
||||
},
|
||||
"accountId": {
|
||||
"type": "integer",
|
||||
"description": "Account id.",
|
||||
"format": "int32",
|
||||
"annotations": {
|
||||
"required": [
|
||||
"adexchangebuyer.creatives.insert"
|
||||
]
|
||||
}
|
||||
},
|
||||
"advertiserId": {
|
||||
"type": "array",
|
||||
"description": "Detected advertiser id, if any. Read-only. This field should not be set in requests.",
|
||||
"items": {
|
||||
"type": "string",
|
||||
"format": "int64"
|
||||
}
|
||||
},
|
||||
"advertiserName": {
|
||||
"type": "string",
|
||||
"description": "The name of the company being advertised in the creative.",
|
||||
"annotations": {
|
||||
"required": [
|
||||
"adexchangebuyer.creatives.insert"
|
||||
]
|
||||
}
|
||||
},
|
||||
"agencyId": {
|
||||
"type": "string",
|
||||
"description": "The agency id for this creative.",
|
||||
"format": "int64"
|
||||
},
|
||||
"apiUploadTimestamp": {
|
||||
"type": "string",
|
||||
"description": "The last upload timestamp of this creative if it was uploaded via API. Read-only. The value of this field is generated, and will be ignored for uploads. (formatted RFC 3339 timestamp).",
|
||||
"format": "date-time"
|
||||
},
|
||||
"attribute": {
|
||||
"type": "array",
|
||||
"description": "All attributes for the ads that may be shown from this snippet.",
|
||||
"items": {
|
||||
"type": "integer",
|
||||
"format": "int32"
|
||||
}
|
||||
},
|
||||
"buyerCreativeId": {
|
||||
"type": "string",
|
||||
"description": "A buyer-specific id identifying the creative in this ad.",
|
||||
"annotations": {
|
||||
"required": [
|
||||
"adexchangebuyer.creatives.insert"
|
||||
]
|
||||
}
|
||||
},
|
||||
"clickThroughUrl": {
|
||||
"type": "array",
|
||||
"description": "The set of destination urls for the snippet.",
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"annotations": {
|
||||
"required": [
|
||||
"adexchangebuyer.creatives.insert"
|
||||
]
|
||||
}
|
||||
},
|
||||
"corrections": {
|
||||
"type": "array",
|
||||
"description": "Shows any corrections that were applied to this creative. Read-only. This field should not be set in requests.",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"details": {
|
||||
"type": "array",
|
||||
"description": "Additional details about the correction.",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"reason": {
|
||||
"type": "string",
|
||||
"description": "The type of correction that was applied to the creative."
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"disapprovalReasons": {
|
||||
"type": "array",
|
||||
"description": "The reasons for disapproval, if any. Note that not all disapproval reasons may be categorized, so it is possible for the creative to have a status of DISAPPROVED with an empty list for disapproval_reasons. In this case, please reach out to your TAM to help debug the issue. Read-only. This field should not be set in requests.",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"details": {
|
||||
"type": "array",
|
||||
"description": "Additional details about the reason for disapproval.",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"reason": {
|
||||
"type": "string",
|
||||
"description": "The categorized reason for disapproval."
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"filteringReasons": {
|
||||
"type": "object",
|
||||
"description": "The filtering reasons for the creative. Read-only. This field should not be set in requests.",
|
||||
"properties": {
|
||||
"date": {
|
||||
"type": "string",
|
||||
"description": "The date in ISO 8601 format for the data. The data is collected from 00:00:00 to 23:59:59 in PST."
|
||||
},
|
||||
"reasons": {
|
||||
"type": "array",
|
||||
"description": "The filtering reasons.",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"filteringCount": {
|
||||
"type": "string",
|
||||
"description": "The number of times the creative was filtered for the status. The count is aggregated across all publishers on the exchange.",
|
||||
"format": "int64"
|
||||
},
|
||||
"filteringStatus": {
|
||||
"type": "integer",
|
||||
"description": "The filtering status code. Please refer to the creative-status-codes.txt file for different statuses.",
|
||||
"format": "int32"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"height": {
|
||||
"type": "integer",
|
||||
"description": "Ad height.",
|
||||
"format": "int32",
|
||||
"annotations": {
|
||||
"required": [
|
||||
"adexchangebuyer.creatives.insert"
|
||||
]
|
||||
}
|
||||
},
|
||||
"impressionTrackingUrl": {
|
||||
"type": "array",
|
||||
"description": "The set of urls to be called to record an impression.",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"kind": {
|
||||
"type": "string",
|
||||
"description": "Resource type.",
|
||||
"default": "adexchangebuyer#creative"
|
||||
},
|
||||
"productCategories": {
|
||||
"type": "array",
|
||||
"description": "Detected product categories, if any. Read-only. This field should not be set in requests.",
|
||||
"items": {
|
||||
"type": "integer",
|
||||
"format": "int32"
|
||||
}
|
||||
},
|
||||
"restrictedCategories": {
|
||||
"type": "array",
|
||||
"description": "All restricted categories for the ads that may be shown from this snippet.",
|
||||
"items": {
|
||||
"type": "integer",
|
||||
"format": "int32"
|
||||
}
|
||||
},
|
||||
"sensitiveCategories": {
|
||||
"type": "array",
|
||||
"description": "Detected sensitive categories, if any. Read-only. This field should not be set in requests.",
|
||||
"items": {
|
||||
"type": "integer",
|
||||
"format": "int32"
|
||||
}
|
||||
},
|
||||
"status": {
|
||||
"type": "string",
|
||||
"description": "Creative serving status. Read-only. This field should not be set in requests."
|
||||
},
|
||||
"vendorType": {
|
||||
"type": "array",
|
||||
"description": "All vendor types for the ads that may be shown from this snippet.",
|
||||
"items": {
|
||||
"type": "integer",
|
||||
"format": "int32"
|
||||
}
|
||||
},
|
||||
"version": {
|
||||
"type": "integer",
|
||||
"description": "The version for this creative. Read-only. This field should not be set in requests.",
|
||||
"format": "int32"
|
||||
},
|
||||
"videoURL": {
|
||||
"type": "string",
|
||||
"description": "The url to fetch a video ad. If set, HTMLSnippet should not be set."
|
||||
},
|
||||
"width": {
|
||||
"type": "integer",
|
||||
"description": "Ad width.",
|
||||
"format": "int32",
|
||||
"annotations": {
|
||||
"required": [
|
||||
"adexchangebuyer.creatives.insert"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"CreativesList": {
|
||||
"id": "CreativesList",
|
||||
"type": "object",
|
||||
"description": "The creatives feed lists the active creatives for the Ad Exchange buyer accounts that the user has access to. Each entry in the feed corresponds to a single creative.",
|
||||
"properties": {
|
||||
"items": {
|
||||
"type": "array",
|
||||
"description": "A list of creatives.",
|
||||
"items": {
|
||||
"$ref": "Creative"
|
||||
}
|
||||
},
|
||||
"kind": {
|
||||
"type": "string",
|
||||
"description": "Resource type.",
|
||||
"default": "adexchangebuyer#creativesList"
|
||||
},
|
||||
"nextPageToken": {
|
||||
"type": "string",
|
||||
"description": "Continuation token used to page through creatives. To retrieve the next page of results, set the next request's \"pageToken\" value to this."
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"resources": {
|
||||
"accounts": {
|
||||
"methods": {
|
||||
"get": {
|
||||
"id": "adexchangebuyer.accounts.get",
|
||||
"path": "accounts/{id}",
|
||||
"httpMethod": "GET",
|
||||
"description": "Gets one account by ID.",
|
||||
"parameters": {
|
||||
"id": {
|
||||
"type": "integer",
|
||||
"description": "The account id",
|
||||
"required": true,
|
||||
"format": "int32",
|
||||
"location": "path"
|
||||
}
|
||||
},
|
||||
"parameterOrder": [
|
||||
"id"
|
||||
],
|
||||
"response": {
|
||||
"$ref": "Account"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/adexchange.buyer"
|
||||
]
|
||||
},
|
||||
"list": {
|
||||
"id": "adexchangebuyer.accounts.list",
|
||||
"path": "accounts",
|
||||
"httpMethod": "GET",
|
||||
"description": "Retrieves the authenticated user's list of accounts.",
|
||||
"response": {
|
||||
"$ref": "AccountsList"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/adexchange.buyer"
|
||||
]
|
||||
},
|
||||
"patch": {
|
||||
"id": "adexchangebuyer.accounts.patch",
|
||||
"path": "accounts/{id}",
|
||||
"httpMethod": "PATCH",
|
||||
"description": "Updates an existing account. This method supports patch semantics.",
|
||||
"parameters": {
|
||||
"id": {
|
||||
"type": "integer",
|
||||
"description": "The account id",
|
||||
"required": true,
|
||||
"format": "int32",
|
||||
"location": "path"
|
||||
}
|
||||
},
|
||||
"parameterOrder": [
|
||||
"id"
|
||||
],
|
||||
"request": {
|
||||
"$ref": "Account"
|
||||
},
|
||||
"response": {
|
||||
"$ref": "Account"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/adexchange.buyer"
|
||||
]
|
||||
},
|
||||
"update": {
|
||||
"id": "adexchangebuyer.accounts.update",
|
||||
"path": "accounts/{id}",
|
||||
"httpMethod": "PUT",
|
||||
"description": "Updates an existing account.",
|
||||
"parameters": {
|
||||
"id": {
|
||||
"type": "integer",
|
||||
"description": "The account id",
|
||||
"required": true,
|
||||
"format": "int32",
|
||||
"location": "path"
|
||||
}
|
||||
},
|
||||
"parameterOrder": [
|
||||
"id"
|
||||
],
|
||||
"request": {
|
||||
"$ref": "Account"
|
||||
},
|
||||
"response": {
|
||||
"$ref": "Account"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/adexchange.buyer"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"creatives": {
|
||||
"methods": {
|
||||
"get": {
|
||||
"id": "adexchangebuyer.creatives.get",
|
||||
"path": "creatives/{accountId}/{buyerCreativeId}",
|
||||
"httpMethod": "GET",
|
||||
"description": "Gets the status for a single creative. A creative will be available 30-40 minutes after submission.",
|
||||
"parameters": {
|
||||
"accountId": {
|
||||
"type": "integer",
|
||||
"description": "The id for the account that will serve this creative.",
|
||||
"required": true,
|
||||
"format": "int32",
|
||||
"location": "path"
|
||||
},
|
||||
"buyerCreativeId": {
|
||||
"type": "string",
|
||||
"description": "The buyer-specific id for this creative.",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
}
|
||||
},
|
||||
"parameterOrder": [
|
||||
"accountId",
|
||||
"buyerCreativeId"
|
||||
],
|
||||
"response": {
|
||||
"$ref": "Creative"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/adexchange.buyer"
|
||||
]
|
||||
},
|
||||
"insert": {
|
||||
"id": "adexchangebuyer.creatives.insert",
|
||||
"path": "creatives",
|
||||
"httpMethod": "POST",
|
||||
"description": "Submit a new creative.",
|
||||
"request": {
|
||||
"$ref": "Creative"
|
||||
},
|
||||
"response": {
|
||||
"$ref": "Creative"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/adexchange.buyer"
|
||||
]
|
||||
},
|
||||
"list": {
|
||||
"id": "adexchangebuyer.creatives.list",
|
||||
"path": "creatives",
|
||||
"httpMethod": "GET",
|
||||
"description": "Retrieves a list of the authenticated user's active creatives. A creative will be available 30-40 minutes after submission.",
|
||||
"parameters": {
|
||||
"maxResults": {
|
||||
"type": "integer",
|
||||
"description": "Maximum number of entries returned on one result page. If not set, the default is 100. Optional.",
|
||||
"format": "uint32",
|
||||
"minimum": "1",
|
||||
"maximum": "1000",
|
||||
"location": "query"
|
||||
},
|
||||
"pageToken": {
|
||||
"type": "string",
|
||||
"description": "A continuation token, used to page through ad clients. To retrieve the next page, set this parameter to the value of \"nextPageToken\" from the previous response. Optional.",
|
||||
"location": "query"
|
||||
},
|
||||
"statusFilter": {
|
||||
"type": "string",
|
||||
"description": "When specified, only creatives having the given status are returned.",
|
||||
"enum": [
|
||||
"approved",
|
||||
"disapproved",
|
||||
"not_checked"
|
||||
],
|
||||
"enumDescriptions": [
|
||||
"Creatives which have been approved.",
|
||||
"Creatives which have been disapproved.",
|
||||
"Creatives whose status is not yet checked."
|
||||
],
|
||||
"location": "query"
|
||||
}
|
||||
},
|
||||
"response": {
|
||||
"$ref": "CreativesList"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/adexchange.buyer"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
1521
vendor/google.golang.org/api/adexchangebuyer/v1.2/adexchangebuyer-gen.go
generated
vendored
Normal file
1521
vendor/google.golang.org/api/adexchangebuyer/v1.2/adexchangebuyer-gen.go
generated
vendored
Normal file
File diff suppressed because it is too large
Load diff
1668
vendor/google.golang.org/api/adexchangebuyer/v1.3/adexchangebuyer-api.json
generated
vendored
Normal file
1668
vendor/google.golang.org/api/adexchangebuyer/v1.3/adexchangebuyer-api.json
generated
vendored
Normal file
File diff suppressed because it is too large
Load diff
4453
vendor/google.golang.org/api/adexchangebuyer/v1.3/adexchangebuyer-gen.go
generated
vendored
Normal file
4453
vendor/google.golang.org/api/adexchangebuyer/v1.3/adexchangebuyer-gen.go
generated
vendored
Normal file
File diff suppressed because it is too large
Load diff
3640
vendor/google.golang.org/api/adexchangebuyer/v1.4/adexchangebuyer-api.json
generated
vendored
Normal file
3640
vendor/google.golang.org/api/adexchangebuyer/v1.4/adexchangebuyer-api.json
generated
vendored
Normal file
File diff suppressed because it is too large
Load diff
9129
vendor/google.golang.org/api/adexchangebuyer/v1.4/adexchangebuyer-gen.go
generated
vendored
Normal file
9129
vendor/google.golang.org/api/adexchangebuyer/v1.4/adexchangebuyer-gen.go
generated
vendored
Normal file
File diff suppressed because it is too large
Load diff
1991
vendor/google.golang.org/api/adexchangebuyer2/v2beta1/adexchangebuyer2-api.json
generated
vendored
Normal file
1991
vendor/google.golang.org/api/adexchangebuyer2/v2beta1/adexchangebuyer2-api.json
generated
vendored
Normal file
File diff suppressed because it is too large
Load diff
4945
vendor/google.golang.org/api/adexchangebuyer2/v2beta1/adexchangebuyer2-gen.go
generated
vendored
Normal file
4945
vendor/google.golang.org/api/adexchangebuyer2/v2beta1/adexchangebuyer2-gen.go
generated
vendored
Normal file
File diff suppressed because it is too large
Load diff
1241
vendor/google.golang.org/api/adexchangeseller/v1.1/adexchangeseller-api.json
generated
vendored
Normal file
1241
vendor/google.golang.org/api/adexchangeseller/v1.1/adexchangeseller-api.json
generated
vendored
Normal file
File diff suppressed because it is too large
Load diff
3981
vendor/google.golang.org/api/adexchangeseller/v1.1/adexchangeseller-gen.go
generated
vendored
Normal file
3981
vendor/google.golang.org/api/adexchangeseller/v1.1/adexchangeseller-gen.go
generated
vendored
Normal file
File diff suppressed because it is too large
Load diff
918
vendor/google.golang.org/api/adexchangeseller/v1/adexchangeseller-api.json
generated
vendored
Normal file
918
vendor/google.golang.org/api/adexchangeseller/v1/adexchangeseller-api.json
generated
vendored
Normal file
|
@ -0,0 +1,918 @@
|
|||
{
|
||||
"kind": "discovery#restDescription",
|
||||
"etag": "\"C5oy1hgQsABtYOYIOXWcR3BgYqU/EberIAMM9RntL16aqUh0FmyQxWY\"",
|
||||
"discoveryVersion": "v1",
|
||||
"id": "adexchangeseller:v1",
|
||||
"name": "adexchangeseller",
|
||||
"canonicalName": "Ad Exchange Seller",
|
||||
"version": "v1",
|
||||
"revision": "20160805",
|
||||
"title": "Ad Exchange Seller API",
|
||||
"description": "Accesses the inventory of Ad Exchange seller users and generates reports.",
|
||||
"ownerDomain": "google.com",
|
||||
"ownerName": "Google",
|
||||
"icons": {
|
||||
"x16": "https://www.google.com/images/icons/product/doubleclick-16.gif",
|
||||
"x32": "https://www.google.com/images/icons/product/doubleclick-32.gif"
|
||||
},
|
||||
"documentationLink": "https://developers.google.com/ad-exchange/seller-rest/",
|
||||
"protocol": "rest",
|
||||
"baseUrl": "https://www.googleapis.com/adexchangeseller/v1/",
|
||||
"basePath": "/adexchangeseller/v1/",
|
||||
"rootUrl": "https://www.googleapis.com/",
|
||||
"servicePath": "adexchangeseller/v1/",
|
||||
"batchPath": "batch",
|
||||
"parameters": {
|
||||
"alt": {
|
||||
"type": "string",
|
||||
"description": "Data format for the response.",
|
||||
"default": "json",
|
||||
"enum": [
|
||||
"csv",
|
||||
"json"
|
||||
],
|
||||
"enumDescriptions": [
|
||||
"Responses with Content-Type of text/csv",
|
||||
"Responses with Content-Type of application/json"
|
||||
],
|
||||
"location": "query"
|
||||
},
|
||||
"fields": {
|
||||
"type": "string",
|
||||
"description": "Selector specifying which fields to include in a partial response.",
|
||||
"location": "query"
|
||||
},
|
||||
"key": {
|
||||
"type": "string",
|
||||
"description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.",
|
||||
"location": "query"
|
||||
},
|
||||
"oauth_token": {
|
||||
"type": "string",
|
||||
"description": "OAuth 2.0 token for the current user.",
|
||||
"location": "query"
|
||||
},
|
||||
"prettyPrint": {
|
||||
"type": "boolean",
|
||||
"description": "Returns response with indentations and line breaks.",
|
||||
"default": "true",
|
||||
"location": "query"
|
||||
},
|
||||
"quotaUser": {
|
||||
"type": "string",
|
||||
"description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.",
|
||||
"location": "query"
|
||||
},
|
||||
"userIp": {
|
||||
"type": "string",
|
||||
"description": "IP address of the site where the request originates. Use this if you want to enforce per-user limits.",
|
||||
"location": "query"
|
||||
}
|
||||
},
|
||||
"auth": {
|
||||
"oauth2": {
|
||||
"scopes": {
|
||||
"https://www.googleapis.com/auth/adexchange.seller": {
|
||||
"description": "View and manage your Ad Exchange data"
|
||||
},
|
||||
"https://www.googleapis.com/auth/adexchange.seller.readonly": {
|
||||
"description": "View your Ad Exchange data"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"schemas": {
|
||||
"AdClient": {
|
||||
"id": "AdClient",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"arcOptIn": {
|
||||
"type": "boolean",
|
||||
"description": "Whether this ad client is opted in to ARC."
|
||||
},
|
||||
"id": {
|
||||
"type": "string",
|
||||
"description": "Unique identifier of this ad client."
|
||||
},
|
||||
"kind": {
|
||||
"type": "string",
|
||||
"description": "Kind of resource this is, in this case adexchangeseller#adClient.",
|
||||
"default": "adexchangeseller#adClient"
|
||||
},
|
||||
"productCode": {
|
||||
"type": "string",
|
||||
"description": "This ad client's product code, which corresponds to the PRODUCT_CODE report dimension."
|
||||
},
|
||||
"supportsReporting": {
|
||||
"type": "boolean",
|
||||
"description": "Whether this ad client supports being reported on."
|
||||
}
|
||||
}
|
||||
},
|
||||
"AdClients": {
|
||||
"id": "AdClients",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"etag": {
|
||||
"type": "string",
|
||||
"description": "ETag of this response for caching purposes."
|
||||
},
|
||||
"items": {
|
||||
"type": "array",
|
||||
"description": "The ad clients returned in this list response.",
|
||||
"items": {
|
||||
"$ref": "AdClient"
|
||||
}
|
||||
},
|
||||
"kind": {
|
||||
"type": "string",
|
||||
"description": "Kind of list this is, in this case adexchangeseller#adClients.",
|
||||
"default": "adexchangeseller#adClients"
|
||||
},
|
||||
"nextPageToken": {
|
||||
"type": "string",
|
||||
"description": "Continuation token used to page through ad clients. To retrieve the next page of results, set the next request's \"pageToken\" value to this."
|
||||
}
|
||||
}
|
||||
},
|
||||
"AdUnit": {
|
||||
"id": "AdUnit",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"code": {
|
||||
"type": "string",
|
||||
"description": "Identity code of this ad unit, not necessarily unique across ad clients."
|
||||
},
|
||||
"id": {
|
||||
"type": "string",
|
||||
"description": "Unique identifier of this ad unit. This should be considered an opaque identifier; it is not safe to rely on it being in any particular format."
|
||||
},
|
||||
"kind": {
|
||||
"type": "string",
|
||||
"description": "Kind of resource this is, in this case adexchangeseller#adUnit.",
|
||||
"default": "adexchangeseller#adUnit"
|
||||
},
|
||||
"name": {
|
||||
"type": "string",
|
||||
"description": "Name of this ad unit."
|
||||
},
|
||||
"status": {
|
||||
"type": "string",
|
||||
"description": "Status of this ad unit. Possible values are:\nNEW: Indicates that the ad unit was created within the last seven days and does not yet have any activity associated with it.\n\nACTIVE: Indicates that there has been activity on this ad unit in the last seven days.\n\nINACTIVE: Indicates that there has been no activity on this ad unit in the last seven days."
|
||||
}
|
||||
}
|
||||
},
|
||||
"AdUnits": {
|
||||
"id": "AdUnits",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"etag": {
|
||||
"type": "string",
|
||||
"description": "ETag of this response for caching purposes."
|
||||
},
|
||||
"items": {
|
||||
"type": "array",
|
||||
"description": "The ad units returned in this list response.",
|
||||
"items": {
|
||||
"$ref": "AdUnit"
|
||||
}
|
||||
},
|
||||
"kind": {
|
||||
"type": "string",
|
||||
"description": "Kind of list this is, in this case adexchangeseller#adUnits.",
|
||||
"default": "adexchangeseller#adUnits"
|
||||
},
|
||||
"nextPageToken": {
|
||||
"type": "string",
|
||||
"description": "Continuation token used to page through ad units. To retrieve the next page of results, set the next request's \"pageToken\" value to this."
|
||||
}
|
||||
}
|
||||
},
|
||||
"CustomChannel": {
|
||||
"id": "CustomChannel",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"code": {
|
||||
"type": "string",
|
||||
"description": "Code of this custom channel, not necessarily unique across ad clients."
|
||||
},
|
||||
"id": {
|
||||
"type": "string",
|
||||
"description": "Unique identifier of this custom channel. This should be considered an opaque identifier; it is not safe to rely on it being in any particular format."
|
||||
},
|
||||
"kind": {
|
||||
"type": "string",
|
||||
"description": "Kind of resource this is, in this case adexchangeseller#customChannel.",
|
||||
"default": "adexchangeseller#customChannel"
|
||||
},
|
||||
"name": {
|
||||
"type": "string",
|
||||
"description": "Name of this custom channel."
|
||||
},
|
||||
"targetingInfo": {
|
||||
"type": "object",
|
||||
"description": "The targeting information of this custom channel, if activated.",
|
||||
"properties": {
|
||||
"adsAppearOn": {
|
||||
"type": "string",
|
||||
"description": "The name used to describe this channel externally."
|
||||
},
|
||||
"description": {
|
||||
"type": "string",
|
||||
"description": "The external description of the channel."
|
||||
},
|
||||
"location": {
|
||||
"type": "string",
|
||||
"description": "The locations in which ads appear. (Only valid for content and mobile content ads). Acceptable values for content ads are: TOP_LEFT, TOP_CENTER, TOP_RIGHT, MIDDLE_LEFT, MIDDLE_CENTER, MIDDLE_RIGHT, BOTTOM_LEFT, BOTTOM_CENTER, BOTTOM_RIGHT, MULTIPLE_LOCATIONS. Acceptable values for mobile content ads are: TOP, MIDDLE, BOTTOM, MULTIPLE_LOCATIONS."
|
||||
},
|
||||
"siteLanguage": {
|
||||
"type": "string",
|
||||
"description": "The language of the sites ads will be displayed on."
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"CustomChannels": {
|
||||
"id": "CustomChannels",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"etag": {
|
||||
"type": "string",
|
||||
"description": "ETag of this response for caching purposes."
|
||||
},
|
||||
"items": {
|
||||
"type": "array",
|
||||
"description": "The custom channels returned in this list response.",
|
||||
"items": {
|
||||
"$ref": "CustomChannel"
|
||||
}
|
||||
},
|
||||
"kind": {
|
||||
"type": "string",
|
||||
"description": "Kind of list this is, in this case adexchangeseller#customChannels.",
|
||||
"default": "adexchangeseller#customChannels"
|
||||
},
|
||||
"nextPageToken": {
|
||||
"type": "string",
|
||||
"description": "Continuation token used to page through custom channels. To retrieve the next page of results, set the next request's \"pageToken\" value to this."
|
||||
}
|
||||
}
|
||||
},
|
||||
"Report": {
|
||||
"id": "Report",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"averages": {
|
||||
"type": "array",
|
||||
"description": "The averages of the report. This is the same length as any other row in the report; cells corresponding to dimension columns are empty.",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"headers": {
|
||||
"type": "array",
|
||||
"description": "The header information of the columns requested in the report. This is a list of headers; one for each dimension in the request, followed by one for each metric in the request.",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"currency": {
|
||||
"type": "string",
|
||||
"description": "The currency of this column. Only present if the header type is METRIC_CURRENCY."
|
||||
},
|
||||
"name": {
|
||||
"type": "string",
|
||||
"description": "The name of the header."
|
||||
},
|
||||
"type": {
|
||||
"type": "string",
|
||||
"description": "The type of the header; one of DIMENSION, METRIC_TALLY, METRIC_RATIO, or METRIC_CURRENCY."
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"kind": {
|
||||
"type": "string",
|
||||
"description": "Kind this is, in this case adexchangeseller#report.",
|
||||
"default": "adexchangeseller#report"
|
||||
},
|
||||
"rows": {
|
||||
"type": "array",
|
||||
"description": "The output rows of the report. Each row is a list of cells; one for each dimension in the request, followed by one for each metric in the request. The dimension cells contain strings, and the metric cells contain numbers.",
|
||||
"items": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"totalMatchedRows": {
|
||||
"type": "string",
|
||||
"description": "The total number of rows matched by the report request. Fewer rows may be returned in the response due to being limited by the row count requested or the report row limit.",
|
||||
"format": "int64"
|
||||
},
|
||||
"totals": {
|
||||
"type": "array",
|
||||
"description": "The totals of the report. This is the same length as any other row in the report; cells corresponding to dimension columns are empty.",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"warnings": {
|
||||
"type": "array",
|
||||
"description": "Any warnings associated with generation of the report.",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"SavedReport": {
|
||||
"id": "SavedReport",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "string",
|
||||
"description": "Unique identifier of this saved report."
|
||||
},
|
||||
"kind": {
|
||||
"type": "string",
|
||||
"description": "Kind of resource this is, in this case adexchangeseller#savedReport.",
|
||||
"default": "adexchangeseller#savedReport"
|
||||
},
|
||||
"name": {
|
||||
"type": "string",
|
||||
"description": "This saved report's name."
|
||||
}
|
||||
}
|
||||
},
|
||||
"SavedReports": {
|
||||
"id": "SavedReports",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"etag": {
|
||||
"type": "string",
|
||||
"description": "ETag of this response for caching purposes."
|
||||
},
|
||||
"items": {
|
||||
"type": "array",
|
||||
"description": "The saved reports returned in this list response.",
|
||||
"items": {
|
||||
"$ref": "SavedReport"
|
||||
}
|
||||
},
|
||||
"kind": {
|
||||
"type": "string",
|
||||
"description": "Kind of list this is, in this case adexchangeseller#savedReports.",
|
||||
"default": "adexchangeseller#savedReports"
|
||||
},
|
||||
"nextPageToken": {
|
||||
"type": "string",
|
||||
"description": "Continuation token used to page through saved reports. To retrieve the next page of results, set the next request's \"pageToken\" value to this."
|
||||
}
|
||||
}
|
||||
},
|
||||
"UrlChannel": {
|
||||
"id": "UrlChannel",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "string",
|
||||
"description": "Unique identifier of this URL channel. This should be considered an opaque identifier; it is not safe to rely on it being in any particular format."
|
||||
},
|
||||
"kind": {
|
||||
"type": "string",
|
||||
"description": "Kind of resource this is, in this case adexchangeseller#urlChannel.",
|
||||
"default": "adexchangeseller#urlChannel"
|
||||
},
|
||||
"urlPattern": {
|
||||
"type": "string",
|
||||
"description": "URL Pattern of this URL channel. Does not include \"http://\" or \"https://\". Example: www.example.com/home"
|
||||
}
|
||||
}
|
||||
},
|
||||
"UrlChannels": {
|
||||
"id": "UrlChannels",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"etag": {
|
||||
"type": "string",
|
||||
"description": "ETag of this response for caching purposes."
|
||||
},
|
||||
"items": {
|
||||
"type": "array",
|
||||
"description": "The URL channels returned in this list response.",
|
||||
"items": {
|
||||
"$ref": "UrlChannel"
|
||||
}
|
||||
},
|
||||
"kind": {
|
||||
"type": "string",
|
||||
"description": "Kind of list this is, in this case adexchangeseller#urlChannels.",
|
||||
"default": "adexchangeseller#urlChannels"
|
||||
},
|
||||
"nextPageToken": {
|
||||
"type": "string",
|
||||
"description": "Continuation token used to page through URL channels. To retrieve the next page of results, set the next request's \"pageToken\" value to this."
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"resources": {
|
||||
"adclients": {
|
||||
"methods": {
|
||||
"list": {
|
||||
"id": "adexchangeseller.adclients.list",
|
||||
"path": "adclients",
|
||||
"httpMethod": "GET",
|
||||
"description": "List all ad clients in this Ad Exchange account.",
|
||||
"parameters": {
|
||||
"maxResults": {
|
||||
"type": "integer",
|
||||
"description": "The maximum number of ad clients to include in the response, used for paging.",
|
||||
"format": "uint32",
|
||||
"minimum": "0",
|
||||
"maximum": "10000",
|
||||
"location": "query"
|
||||
},
|
||||
"pageToken": {
|
||||
"type": "string",
|
||||
"description": "A continuation token, used to page through ad clients. To retrieve the next page, set this parameter to the value of \"nextPageToken\" from the previous response.",
|
||||
"location": "query"
|
||||
}
|
||||
},
|
||||
"response": {
|
||||
"$ref": "AdClients"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/adexchange.seller",
|
||||
"https://www.googleapis.com/auth/adexchange.seller.readonly"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"adunits": {
|
||||
"methods": {
|
||||
"get": {
|
||||
"id": "adexchangeseller.adunits.get",
|
||||
"path": "adclients/{adClientId}/adunits/{adUnitId}",
|
||||
"httpMethod": "GET",
|
||||
"description": "Gets the specified ad unit in the specified ad client.",
|
||||
"parameters": {
|
||||
"adClientId": {
|
||||
"type": "string",
|
||||
"description": "Ad client for which to get the ad unit.",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
},
|
||||
"adUnitId": {
|
||||
"type": "string",
|
||||
"description": "Ad unit to retrieve.",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
}
|
||||
},
|
||||
"parameterOrder": [
|
||||
"adClientId",
|
||||
"adUnitId"
|
||||
],
|
||||
"response": {
|
||||
"$ref": "AdUnit"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/adexchange.seller",
|
||||
"https://www.googleapis.com/auth/adexchange.seller.readonly"
|
||||
]
|
||||
},
|
||||
"list": {
|
||||
"id": "adexchangeseller.adunits.list",
|
||||
"path": "adclients/{adClientId}/adunits",
|
||||
"httpMethod": "GET",
|
||||
"description": "List all ad units in the specified ad client for this Ad Exchange account.",
|
||||
"parameters": {
|
||||
"adClientId": {
|
||||
"type": "string",
|
||||
"description": "Ad client for which to list ad units.",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
},
|
||||
"includeInactive": {
|
||||
"type": "boolean",
|
||||
"description": "Whether to include inactive ad units. Default: true.",
|
||||
"location": "query"
|
||||
},
|
||||
"maxResults": {
|
||||
"type": "integer",
|
||||
"description": "The maximum number of ad units to include in the response, used for paging.",
|
||||
"format": "uint32",
|
||||
"minimum": "0",
|
||||
"maximum": "10000",
|
||||
"location": "query"
|
||||
},
|
||||
"pageToken": {
|
||||
"type": "string",
|
||||
"description": "A continuation token, used to page through ad units. To retrieve the next page, set this parameter to the value of \"nextPageToken\" from the previous response.",
|
||||
"location": "query"
|
||||
}
|
||||
},
|
||||
"parameterOrder": [
|
||||
"adClientId"
|
||||
],
|
||||
"response": {
|
||||
"$ref": "AdUnits"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/adexchange.seller",
|
||||
"https://www.googleapis.com/auth/adexchange.seller.readonly"
|
||||
]
|
||||
}
|
||||
},
|
||||
"resources": {
|
||||
"customchannels": {
|
||||
"methods": {
|
||||
"list": {
|
||||
"id": "adexchangeseller.adunits.customchannels.list",
|
||||
"path": "adclients/{adClientId}/adunits/{adUnitId}/customchannels",
|
||||
"httpMethod": "GET",
|
||||
"description": "List all custom channels which the specified ad unit belongs to.",
|
||||
"parameters": {
|
||||
"adClientId": {
|
||||
"type": "string",
|
||||
"description": "Ad client which contains the ad unit.",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
},
|
||||
"adUnitId": {
|
||||
"type": "string",
|
||||
"description": "Ad unit for which to list custom channels.",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
},
|
||||
"maxResults": {
|
||||
"type": "integer",
|
||||
"description": "The maximum number of custom channels to include in the response, used for paging.",
|
||||
"format": "uint32",
|
||||
"minimum": "0",
|
||||
"maximum": "10000",
|
||||
"location": "query"
|
||||
},
|
||||
"pageToken": {
|
||||
"type": "string",
|
||||
"description": "A continuation token, used to page through custom channels. To retrieve the next page, set this parameter to the value of \"nextPageToken\" from the previous response.",
|
||||
"location": "query"
|
||||
}
|
||||
},
|
||||
"parameterOrder": [
|
||||
"adClientId",
|
||||
"adUnitId"
|
||||
],
|
||||
"response": {
|
||||
"$ref": "CustomChannels"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/adexchange.seller",
|
||||
"https://www.googleapis.com/auth/adexchange.seller.readonly"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"customchannels": {
|
||||
"methods": {
|
||||
"get": {
|
||||
"id": "adexchangeseller.customchannels.get",
|
||||
"path": "adclients/{adClientId}/customchannels/{customChannelId}",
|
||||
"httpMethod": "GET",
|
||||
"description": "Get the specified custom channel from the specified ad client.",
|
||||
"parameters": {
|
||||
"adClientId": {
|
||||
"type": "string",
|
||||
"description": "Ad client which contains the custom channel.",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
},
|
||||
"customChannelId": {
|
||||
"type": "string",
|
||||
"description": "Custom channel to retrieve.",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
}
|
||||
},
|
||||
"parameterOrder": [
|
||||
"adClientId",
|
||||
"customChannelId"
|
||||
],
|
||||
"response": {
|
||||
"$ref": "CustomChannel"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/adexchange.seller",
|
||||
"https://www.googleapis.com/auth/adexchange.seller.readonly"
|
||||
]
|
||||
},
|
||||
"list": {
|
||||
"id": "adexchangeseller.customchannels.list",
|
||||
"path": "adclients/{adClientId}/customchannels",
|
||||
"httpMethod": "GET",
|
||||
"description": "List all custom channels in the specified ad client for this Ad Exchange account.",
|
||||
"parameters": {
|
||||
"adClientId": {
|
||||
"type": "string",
|
||||
"description": "Ad client for which to list custom channels.",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
},
|
||||
"maxResults": {
|
||||
"type": "integer",
|
||||
"description": "The maximum number of custom channels to include in the response, used for paging.",
|
||||
"format": "uint32",
|
||||
"minimum": "0",
|
||||
"maximum": "10000",
|
||||
"location": "query"
|
||||
},
|
||||
"pageToken": {
|
||||
"type": "string",
|
||||
"description": "A continuation token, used to page through custom channels. To retrieve the next page, set this parameter to the value of \"nextPageToken\" from the previous response.",
|
||||
"location": "query"
|
||||
}
|
||||
},
|
||||
"parameterOrder": [
|
||||
"adClientId"
|
||||
],
|
||||
"response": {
|
||||
"$ref": "CustomChannels"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/adexchange.seller",
|
||||
"https://www.googleapis.com/auth/adexchange.seller.readonly"
|
||||
]
|
||||
}
|
||||
},
|
||||
"resources": {
|
||||
"adunits": {
|
||||
"methods": {
|
||||
"list": {
|
||||
"id": "adexchangeseller.customchannels.adunits.list",
|
||||
"path": "adclients/{adClientId}/customchannels/{customChannelId}/adunits",
|
||||
"httpMethod": "GET",
|
||||
"description": "List all ad units in the specified custom channel.",
|
||||
"parameters": {
|
||||
"adClientId": {
|
||||
"type": "string",
|
||||
"description": "Ad client which contains the custom channel.",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
},
|
||||
"customChannelId": {
|
||||
"type": "string",
|
||||
"description": "Custom channel for which to list ad units.",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
},
|
||||
"includeInactive": {
|
||||
"type": "boolean",
|
||||
"description": "Whether to include inactive ad units. Default: true.",
|
||||
"location": "query"
|
||||
},
|
||||
"maxResults": {
|
||||
"type": "integer",
|
||||
"description": "The maximum number of ad units to include in the response, used for paging.",
|
||||
"format": "uint32",
|
||||
"minimum": "0",
|
||||
"maximum": "10000",
|
||||
"location": "query"
|
||||
},
|
||||
"pageToken": {
|
||||
"type": "string",
|
||||
"description": "A continuation token, used to page through ad units. To retrieve the next page, set this parameter to the value of \"nextPageToken\" from the previous response.",
|
||||
"location": "query"
|
||||
}
|
||||
},
|
||||
"parameterOrder": [
|
||||
"adClientId",
|
||||
"customChannelId"
|
||||
],
|
||||
"response": {
|
||||
"$ref": "AdUnits"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/adexchange.seller",
|
||||
"https://www.googleapis.com/auth/adexchange.seller.readonly"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"reports": {
|
||||
"methods": {
|
||||
"generate": {
|
||||
"id": "adexchangeseller.reports.generate",
|
||||
"path": "reports",
|
||||
"httpMethod": "GET",
|
||||
"description": "Generate an Ad Exchange report based on the report request sent in the query parameters. Returns the result as JSON; to retrieve output in CSV format specify \"alt=csv\" as a query parameter.",
|
||||
"parameters": {
|
||||
"dimension": {
|
||||
"type": "string",
|
||||
"description": "Dimensions to base the report on.",
|
||||
"pattern": "[a-zA-Z_]+",
|
||||
"repeated": true,
|
||||
"location": "query"
|
||||
},
|
||||
"endDate": {
|
||||
"type": "string",
|
||||
"description": "End of the date range to report on in \"YYYY-MM-DD\" format, inclusive.",
|
||||
"required": true,
|
||||
"pattern": "\\d{4}-\\d{2}-\\d{2}|(today|startOfMonth|startOfYear)(([\\-\\+]\\d+[dwmy]){0,3}?)",
|
||||
"location": "query"
|
||||
},
|
||||
"filter": {
|
||||
"type": "string",
|
||||
"description": "Filters to be run on the report.",
|
||||
"pattern": "[a-zA-Z_]+(==|=@).+",
|
||||
"repeated": true,
|
||||
"location": "query"
|
||||
},
|
||||
"locale": {
|
||||
"type": "string",
|
||||
"description": "Optional locale to use for translating report output to a local language. Defaults to \"en_US\" if not specified.",
|
||||
"pattern": "[a-zA-Z_]+",
|
||||
"location": "query"
|
||||
},
|
||||
"maxResults": {
|
||||
"type": "integer",
|
||||
"description": "The maximum number of rows of report data to return.",
|
||||
"format": "uint32",
|
||||
"minimum": "0",
|
||||
"maximum": "50000",
|
||||
"location": "query"
|
||||
},
|
||||
"metric": {
|
||||
"type": "string",
|
||||
"description": "Numeric columns to include in the report.",
|
||||
"pattern": "[a-zA-Z_]+",
|
||||
"repeated": true,
|
||||
"location": "query"
|
||||
},
|
||||
"sort": {
|
||||
"type": "string",
|
||||
"description": "The name of a dimension or metric to sort the resulting report on, optionally prefixed with \"+\" to sort ascending or \"-\" to sort descending. If no prefix is specified, the column is sorted ascending.",
|
||||
"pattern": "(\\+|-)?[a-zA-Z_]+",
|
||||
"repeated": true,
|
||||
"location": "query"
|
||||
},
|
||||
"startDate": {
|
||||
"type": "string",
|
||||
"description": "Start of the date range to report on in \"YYYY-MM-DD\" format, inclusive.",
|
||||
"required": true,
|
||||
"pattern": "\\d{4}-\\d{2}-\\d{2}|(today|startOfMonth|startOfYear)(([\\-\\+]\\d+[dwmy]){0,3}?)",
|
||||
"location": "query"
|
||||
},
|
||||
"startIndex": {
|
||||
"type": "integer",
|
||||
"description": "Index of the first row of report data to return.",
|
||||
"format": "uint32",
|
||||
"minimum": "0",
|
||||
"maximum": "5000",
|
||||
"location": "query"
|
||||
}
|
||||
},
|
||||
"parameterOrder": [
|
||||
"startDate",
|
||||
"endDate"
|
||||
],
|
||||
"response": {
|
||||
"$ref": "Report"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/adexchange.seller",
|
||||
"https://www.googleapis.com/auth/adexchange.seller.readonly"
|
||||
],
|
||||
"supportsMediaDownload": true
|
||||
}
|
||||
},
|
||||
"resources": {
|
||||
"saved": {
|
||||
"methods": {
|
||||
"generate": {
|
||||
"id": "adexchangeseller.reports.saved.generate",
|
||||
"path": "reports/{savedReportId}",
|
||||
"httpMethod": "GET",
|
||||
"description": "Generate an Ad Exchange report based on the saved report ID sent in the query parameters.",
|
||||
"parameters": {
|
||||
"locale": {
|
||||
"type": "string",
|
||||
"description": "Optional locale to use for translating report output to a local language. Defaults to \"en_US\" if not specified.",
|
||||
"pattern": "[a-zA-Z_]+",
|
||||
"location": "query"
|
||||
},
|
||||
"maxResults": {
|
||||
"type": "integer",
|
||||
"description": "The maximum number of rows of report data to return.",
|
||||
"format": "int32",
|
||||
"minimum": "0",
|
||||
"maximum": "50000",
|
||||
"location": "query"
|
||||
},
|
||||
"savedReportId": {
|
||||
"type": "string",
|
||||
"description": "The saved report to retrieve.",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
},
|
||||
"startIndex": {
|
||||
"type": "integer",
|
||||
"description": "Index of the first row of report data to return.",
|
||||
"format": "int32",
|
||||
"minimum": "0",
|
||||
"maximum": "5000",
|
||||
"location": "query"
|
||||
}
|
||||
},
|
||||
"parameterOrder": [
|
||||
"savedReportId"
|
||||
],
|
||||
"response": {
|
||||
"$ref": "Report"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/adexchange.seller",
|
||||
"https://www.googleapis.com/auth/adexchange.seller.readonly"
|
||||
]
|
||||
},
|
||||
"list": {
|
||||
"id": "adexchangeseller.reports.saved.list",
|
||||
"path": "reports/saved",
|
||||
"httpMethod": "GET",
|
||||
"description": "List all saved reports in this Ad Exchange account.",
|
||||
"parameters": {
|
||||
"maxResults": {
|
||||
"type": "integer",
|
||||
"description": "The maximum number of saved reports to include in the response, used for paging.",
|
||||
"format": "int32",
|
||||
"minimum": "0",
|
||||
"maximum": "100",
|
||||
"location": "query"
|
||||
},
|
||||
"pageToken": {
|
||||
"type": "string",
|
||||
"description": "A continuation token, used to page through saved reports. To retrieve the next page, set this parameter to the value of \"nextPageToken\" from the previous response.",
|
||||
"location": "query"
|
||||
}
|
||||
},
|
||||
"response": {
|
||||
"$ref": "SavedReports"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/adexchange.seller",
|
||||
"https://www.googleapis.com/auth/adexchange.seller.readonly"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"urlchannels": {
|
||||
"methods": {
|
||||
"list": {
|
||||
"id": "adexchangeseller.urlchannels.list",
|
||||
"path": "adclients/{adClientId}/urlchannels",
|
||||
"httpMethod": "GET",
|
||||
"description": "List all URL channels in the specified ad client for this Ad Exchange account.",
|
||||
"parameters": {
|
||||
"adClientId": {
|
||||
"type": "string",
|
||||
"description": "Ad client for which to list URL channels.",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
},
|
||||
"maxResults": {
|
||||
"type": "integer",
|
||||
"description": "The maximum number of URL channels to include in the response, used for paging.",
|
||||
"format": "uint32",
|
||||
"minimum": "0",
|
||||
"maximum": "10000",
|
||||
"location": "query"
|
||||
},
|
||||
"pageToken": {
|
||||
"type": "string",
|
||||
"description": "A continuation token, used to page through URL channels. To retrieve the next page, set this parameter to the value of \"nextPageToken\" from the previous response.",
|
||||
"location": "query"
|
||||
}
|
||||
},
|
||||
"parameterOrder": [
|
||||
"adClientId"
|
||||
],
|
||||
"response": {
|
||||
"$ref": "UrlChannels"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/adexchange.seller",
|
||||
"https://www.googleapis.com/auth/adexchange.seller.readonly"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
2819
vendor/google.golang.org/api/adexchangeseller/v1/adexchangeseller-gen.go
generated
vendored
Normal file
2819
vendor/google.golang.org/api/adexchangeseller/v1/adexchangeseller-gen.go
generated
vendored
Normal file
File diff suppressed because it is too large
Load diff
1164
vendor/google.golang.org/api/adexchangeseller/v2.0/adexchangeseller-api.json
generated
vendored
Normal file
1164
vendor/google.golang.org/api/adexchangeseller/v2.0/adexchangeseller-api.json
generated
vendored
Normal file
File diff suppressed because it is too large
Load diff
3458
vendor/google.golang.org/api/adexchangeseller/v2.0/adexchangeseller-gen.go
generated
vendored
Normal file
3458
vendor/google.golang.org/api/adexchangeseller/v2.0/adexchangeseller-gen.go
generated
vendored
Normal file
File diff suppressed because it is too large
Load diff
411
vendor/google.golang.org/api/admin/datatransfer/v1/admin-api.json
generated
vendored
Normal file
411
vendor/google.golang.org/api/admin/datatransfer/v1/admin-api.json
generated
vendored
Normal file
|
@ -0,0 +1,411 @@
|
|||
{
|
||||
"kind": "discovery#restDescription",
|
||||
"etag": "\"tbys6C40o18GZwyMen5GMkdK-3s/69RNEuIs-2cMvhRHgpkaoTAmcFU\"",
|
||||
"discoveryVersion": "v1",
|
||||
"id": "admin:datatransfer_v1",
|
||||
"name": "admin",
|
||||
"canonicalName": "DataTransfer",
|
||||
"version": "datatransfer_v1",
|
||||
"revision": "20160223",
|
||||
"title": "Admin Data Transfer API",
|
||||
"description": "Transfers user data from one user to another.",
|
||||
"ownerDomain": "google.com",
|
||||
"ownerName": "Google",
|
||||
"packagePath": "admin",
|
||||
"icons": {
|
||||
"x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png",
|
||||
"x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png"
|
||||
},
|
||||
"documentationLink": "https://developers.google.com/admin-sdk/data-transfer/",
|
||||
"protocol": "rest",
|
||||
"baseUrl": "https://www.googleapis.com/admin/datatransfer/v1/",
|
||||
"basePath": "/admin/datatransfer/v1/",
|
||||
"rootUrl": "https://www.googleapis.com/",
|
||||
"servicePath": "admin/datatransfer/v1/",
|
||||
"batchPath": "batch",
|
||||
"parameters": {
|
||||
"alt": {
|
||||
"type": "string",
|
||||
"description": "Data format for the response.",
|
||||
"default": "json",
|
||||
"enum": [
|
||||
"json"
|
||||
],
|
||||
"enumDescriptions": [
|
||||
"Responses with Content-Type of application/json"
|
||||
],
|
||||
"location": "query"
|
||||
},
|
||||
"fields": {
|
||||
"type": "string",
|
||||
"description": "Selector specifying which fields to include in a partial response.",
|
||||
"location": "query"
|
||||
},
|
||||
"key": {
|
||||
"type": "string",
|
||||
"description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.",
|
||||
"location": "query"
|
||||
},
|
||||
"oauth_token": {
|
||||
"type": "string",
|
||||
"description": "OAuth 2.0 token for the current user.",
|
||||
"location": "query"
|
||||
},
|
||||
"prettyPrint": {
|
||||
"type": "boolean",
|
||||
"description": "Returns response with indentations and line breaks.",
|
||||
"default": "true",
|
||||
"location": "query"
|
||||
},
|
||||
"quotaUser": {
|
||||
"type": "string",
|
||||
"description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.",
|
||||
"location": "query"
|
||||
},
|
||||
"userIp": {
|
||||
"type": "string",
|
||||
"description": "IP address of the site where the request originates. Use this if you want to enforce per-user limits.",
|
||||
"location": "query"
|
||||
}
|
||||
},
|
||||
"auth": {
|
||||
"oauth2": {
|
||||
"scopes": {
|
||||
"https://www.googleapis.com/auth/admin.datatransfer": {
|
||||
"description": "View and manage data transfers between users in your organization"
|
||||
},
|
||||
"https://www.googleapis.com/auth/admin.datatransfer.readonly": {
|
||||
"description": "View data transfers between users in your organization"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"schemas": {
|
||||
"Application": {
|
||||
"id": "Application",
|
||||
"type": "object",
|
||||
"description": "The JSON template for an Application resource.",
|
||||
"properties": {
|
||||
"etag": {
|
||||
"type": "string",
|
||||
"description": "Etag of the resource."
|
||||
},
|
||||
"id": {
|
||||
"type": "string",
|
||||
"description": "The application's ID.",
|
||||
"format": "int64"
|
||||
},
|
||||
"kind": {
|
||||
"type": "string",
|
||||
"description": "Identifies the resource as a DataTransfer Application Resource.",
|
||||
"default": "admin#datatransfer#ApplicationResource"
|
||||
},
|
||||
"name": {
|
||||
"type": "string",
|
||||
"description": "The application's name."
|
||||
},
|
||||
"transferParams": {
|
||||
"type": "array",
|
||||
"description": "The list of all possible transfer parameters for this application. These parameters can be used to select the data of the user in this application to be transfered.",
|
||||
"items": {
|
||||
"$ref": "ApplicationTransferParam"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"ApplicationDataTransfer": {
|
||||
"id": "ApplicationDataTransfer",
|
||||
"type": "object",
|
||||
"description": "Template to map fields of ApplicationDataTransfer resource.",
|
||||
"properties": {
|
||||
"applicationId": {
|
||||
"type": "string",
|
||||
"description": "The application's ID.",
|
||||
"format": "int64"
|
||||
},
|
||||
"applicationTransferParams": {
|
||||
"type": "array",
|
||||
"description": "The transfer parameters for the application. These parameters are used to select the data which will get transfered in context of this application.",
|
||||
"items": {
|
||||
"$ref": "ApplicationTransferParam"
|
||||
}
|
||||
},
|
||||
"applicationTransferStatus": {
|
||||
"type": "string",
|
||||
"description": "Current status of transfer for this application. (Read-only)"
|
||||
}
|
||||
}
|
||||
},
|
||||
"ApplicationTransferParam": {
|
||||
"id": "ApplicationTransferParam",
|
||||
"type": "object",
|
||||
"description": "Template for application transfer parameters.",
|
||||
"properties": {
|
||||
"key": {
|
||||
"type": "string",
|
||||
"description": "The type of the transfer parameter. eg: 'PRIVACY_LEVEL'"
|
||||
},
|
||||
"value": {
|
||||
"type": "array",
|
||||
"description": "The value of the coressponding transfer parameter. eg: 'PRIVATE' or 'SHARED'",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"ApplicationsListResponse": {
|
||||
"id": "ApplicationsListResponse",
|
||||
"type": "object",
|
||||
"description": "Template for a collection of Applications.",
|
||||
"properties": {
|
||||
"applications": {
|
||||
"type": "array",
|
||||
"description": "List of applications that support data transfer and are also installed for the customer.",
|
||||
"items": {
|
||||
"$ref": "Application"
|
||||
}
|
||||
},
|
||||
"etag": {
|
||||
"type": "string",
|
||||
"description": "ETag of the resource."
|
||||
},
|
||||
"kind": {
|
||||
"type": "string",
|
||||
"description": "Identifies the resource as a collection of Applications.",
|
||||
"default": "admin#datatransfer#applicationsList"
|
||||
},
|
||||
"nextPageToken": {
|
||||
"type": "string",
|
||||
"description": "Continuation token which will be used to specify next page in list API."
|
||||
}
|
||||
}
|
||||
},
|
||||
"DataTransfer": {
|
||||
"id": "DataTransfer",
|
||||
"type": "object",
|
||||
"description": "The JSON template for a DataTransfer resource.",
|
||||
"properties": {
|
||||
"applicationDataTransfers": {
|
||||
"type": "array",
|
||||
"description": "List of per application data transfer resources. It contains data transfer details of the applications associated with this transfer resource. Note that this list is also used to specify the applications for which data transfer has to be done at the time of the transfer resource creation.",
|
||||
"items": {
|
||||
"$ref": "ApplicationDataTransfer"
|
||||
}
|
||||
},
|
||||
"etag": {
|
||||
"type": "string",
|
||||
"description": "ETag of the resource."
|
||||
},
|
||||
"id": {
|
||||
"type": "string",
|
||||
"description": "The transfer's ID (Read-only)."
|
||||
},
|
||||
"kind": {
|
||||
"type": "string",
|
||||
"description": "Identifies the resource as a DataTransfer request.",
|
||||
"default": "admin#datatransfer#DataTransfer"
|
||||
},
|
||||
"newOwnerUserId": {
|
||||
"type": "string",
|
||||
"description": "ID of the user to whom the data is being transfered."
|
||||
},
|
||||
"oldOwnerUserId": {
|
||||
"type": "string",
|
||||
"description": "ID of the user whose data is being transfered."
|
||||
},
|
||||
"overallTransferStatusCode": {
|
||||
"type": "string",
|
||||
"description": "Overall transfer status (Read-only)."
|
||||
},
|
||||
"requestTime": {
|
||||
"type": "string",
|
||||
"description": "The time at which the data transfer was requested (Read-only).",
|
||||
"format": "date-time"
|
||||
}
|
||||
}
|
||||
},
|
||||
"DataTransfersListResponse": {
|
||||
"id": "DataTransfersListResponse",
|
||||
"type": "object",
|
||||
"description": "Template for a collection of DataTransfer resources.",
|
||||
"properties": {
|
||||
"dataTransfers": {
|
||||
"type": "array",
|
||||
"description": "List of data transfer requests.",
|
||||
"items": {
|
||||
"$ref": "DataTransfer"
|
||||
}
|
||||
},
|
||||
"etag": {
|
||||
"type": "string",
|
||||
"description": "ETag of the resource."
|
||||
},
|
||||
"kind": {
|
||||
"type": "string",
|
||||
"description": "Identifies the resource as a collection of data transfer requests.",
|
||||
"default": "admin#datatransfer#dataTransfersList"
|
||||
},
|
||||
"nextPageToken": {
|
||||
"type": "string",
|
||||
"description": "Continuation token which will be used to specify next page in list API."
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"resources": {
|
||||
"applications": {
|
||||
"methods": {
|
||||
"get": {
|
||||
"id": "datatransfer.applications.get",
|
||||
"path": "applications/{applicationId}",
|
||||
"httpMethod": "GET",
|
||||
"description": "Retrieves information about an application for the given application ID.",
|
||||
"parameters": {
|
||||
"applicationId": {
|
||||
"type": "string",
|
||||
"description": "ID of the application resource to be retrieved.",
|
||||
"required": true,
|
||||
"format": "int64",
|
||||
"location": "path"
|
||||
}
|
||||
},
|
||||
"parameterOrder": [
|
||||
"applicationId"
|
||||
],
|
||||
"response": {
|
||||
"$ref": "Application"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/admin.datatransfer",
|
||||
"https://www.googleapis.com/auth/admin.datatransfer.readonly"
|
||||
]
|
||||
},
|
||||
"list": {
|
||||
"id": "datatransfer.applications.list",
|
||||
"path": "applications",
|
||||
"httpMethod": "GET",
|
||||
"description": "Lists the applications available for data transfer for a customer.",
|
||||
"parameters": {
|
||||
"customerId": {
|
||||
"type": "string",
|
||||
"description": "Immutable ID of the Google Apps account.",
|
||||
"location": "query"
|
||||
},
|
||||
"maxResults": {
|
||||
"type": "integer",
|
||||
"description": "Maximum number of results to return. Default is 100.",
|
||||
"format": "int32",
|
||||
"minimum": "1",
|
||||
"maximum": "500",
|
||||
"location": "query"
|
||||
},
|
||||
"pageToken": {
|
||||
"type": "string",
|
||||
"description": "Token to specify next page in the list.",
|
||||
"location": "query"
|
||||
}
|
||||
},
|
||||
"response": {
|
||||
"$ref": "ApplicationsListResponse"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/admin.datatransfer",
|
||||
"https://www.googleapis.com/auth/admin.datatransfer.readonly"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"transfers": {
|
||||
"methods": {
|
||||
"get": {
|
||||
"id": "datatransfer.transfers.get",
|
||||
"path": "transfers/{dataTransferId}",
|
||||
"httpMethod": "GET",
|
||||
"description": "Retrieves a data transfer request by its resource ID.",
|
||||
"parameters": {
|
||||
"dataTransferId": {
|
||||
"type": "string",
|
||||
"description": "ID of the resource to be retrieved. This is returned in the response from the insert method.",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
}
|
||||
},
|
||||
"parameterOrder": [
|
||||
"dataTransferId"
|
||||
],
|
||||
"response": {
|
||||
"$ref": "DataTransfer"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/admin.datatransfer",
|
||||
"https://www.googleapis.com/auth/admin.datatransfer.readonly"
|
||||
]
|
||||
},
|
||||
"insert": {
|
||||
"id": "datatransfer.transfers.insert",
|
||||
"path": "transfers",
|
||||
"httpMethod": "POST",
|
||||
"description": "Inserts a data transfer request.",
|
||||
"request": {
|
||||
"$ref": "DataTransfer"
|
||||
},
|
||||
"response": {
|
||||
"$ref": "DataTransfer"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/admin.datatransfer"
|
||||
]
|
||||
},
|
||||
"list": {
|
||||
"id": "datatransfer.transfers.list",
|
||||
"path": "transfers",
|
||||
"httpMethod": "GET",
|
||||
"description": "Lists the transfers for a customer by source user, destination user, or status.",
|
||||
"parameters": {
|
||||
"customerId": {
|
||||
"type": "string",
|
||||
"description": "Immutable ID of the Google Apps account.",
|
||||
"location": "query"
|
||||
},
|
||||
"maxResults": {
|
||||
"type": "integer",
|
||||
"description": "Maximum number of results to return. Default is 100.",
|
||||
"format": "int32",
|
||||
"minimum": "1",
|
||||
"maximum": "500",
|
||||
"location": "query"
|
||||
},
|
||||
"newOwnerUserId": {
|
||||
"type": "string",
|
||||
"description": "Destination user's profile ID.",
|
||||
"location": "query"
|
||||
},
|
||||
"oldOwnerUserId": {
|
||||
"type": "string",
|
||||
"description": "Source user's profile ID.",
|
||||
"location": "query"
|
||||
},
|
||||
"pageToken": {
|
||||
"type": "string",
|
||||
"description": "Token to specify the next page in the list.",
|
||||
"location": "query"
|
||||
},
|
||||
"status": {
|
||||
"type": "string",
|
||||
"description": "Status of the transfer.",
|
||||
"location": "query"
|
||||
}
|
||||
},
|
||||
"response": {
|
||||
"$ref": "DataTransfersListResponse"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/admin.datatransfer",
|
||||
"https://www.googleapis.com/auth/admin.datatransfer.readonly"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
1164
vendor/google.golang.org/api/admin/datatransfer/v1/admin-gen.go
generated
vendored
Normal file
1164
vendor/google.golang.org/api/admin/datatransfer/v1/admin-gen.go
generated
vendored
Normal file
File diff suppressed because it is too large
Load diff
5791
vendor/google.golang.org/api/admin/directory/v1/admin-api.json
generated
vendored
Normal file
5791
vendor/google.golang.org/api/admin/directory/v1/admin-api.json
generated
vendored
Normal file
File diff suppressed because it is too large
Load diff
17435
vendor/google.golang.org/api/admin/directory/v1/admin-gen.go
generated
vendored
Normal file
17435
vendor/google.golang.org/api/admin/directory/v1/admin-gen.go
generated
vendored
Normal file
File diff suppressed because it is too large
Load diff
173
vendor/google.golang.org/api/admin/email_migration/v2/admin-api.json
generated
vendored
Normal file
173
vendor/google.golang.org/api/admin/email_migration/v2/admin-api.json
generated
vendored
Normal file
|
@ -0,0 +1,173 @@
|
|||
{
|
||||
"kind": "discovery#restDescription",
|
||||
"etag": "\"ye6orv2F-1npMW3u9suM3a7C5Bo/_VRzIG5q4_x1FzCCxocLHIuiUhw\"",
|
||||
"discoveryVersion": "v1",
|
||||
"id": "admin:email_migration_v2",
|
||||
"name": "admin",
|
||||
"version": "email_migration_v2",
|
||||
"revision": "20150303",
|
||||
"title": "Email Migration API v2",
|
||||
"description": "Email Migration API lets you migrate emails of users to Google backends.",
|
||||
"ownerDomain": "google.com",
|
||||
"ownerName": "Google",
|
||||
"icons": {
|
||||
"x16": "https://www.google.com/images/icons/product/googlemail-16.png",
|
||||
"x32": "https://www.google.com/images/icons/product/googlemail-32.png"
|
||||
},
|
||||
"documentationLink": "https://developers.google.com/admin-sdk/email-migration/v2/",
|
||||
"protocol": "rest",
|
||||
"baseUrl": "https://www.googleapis.com/email/v2/users/",
|
||||
"basePath": "/email/v2/users/",
|
||||
"rootUrl": "https://www.googleapis.com/",
|
||||
"servicePath": "email/v2/users/",
|
||||
"batchPath": "batch",
|
||||
"parameters": {
|
||||
"alt": {
|
||||
"type": "string",
|
||||
"description": "Data format for the response.",
|
||||
"default": "json",
|
||||
"enum": [
|
||||
"json"
|
||||
],
|
||||
"enumDescriptions": [
|
||||
"Responses with Content-Type of application/json"
|
||||
],
|
||||
"location": "query"
|
||||
},
|
||||
"fields": {
|
||||
"type": "string",
|
||||
"description": "Selector specifying which fields to include in a partial response.",
|
||||
"location": "query"
|
||||
},
|
||||
"key": {
|
||||
"type": "string",
|
||||
"description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.",
|
||||
"location": "query"
|
||||
},
|
||||
"oauth_token": {
|
||||
"type": "string",
|
||||
"description": "OAuth 2.0 token for the current user.",
|
||||
"location": "query"
|
||||
},
|
||||
"prettyPrint": {
|
||||
"type": "boolean",
|
||||
"description": "Returns response with indentations and line breaks.",
|
||||
"default": "true",
|
||||
"location": "query"
|
||||
},
|
||||
"quotaUser": {
|
||||
"type": "string",
|
||||
"description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.",
|
||||
"location": "query"
|
||||
},
|
||||
"userIp": {
|
||||
"type": "string",
|
||||
"description": "IP address of the site where the request originates. Use this if you want to enforce per-user limits.",
|
||||
"location": "query"
|
||||
}
|
||||
},
|
||||
"auth": {
|
||||
"oauth2": {
|
||||
"scopes": {
|
||||
"https://www.googleapis.com/auth/email.migration": {
|
||||
"description": "Manage email messages of users on your domain"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"schemas": {
|
||||
"MailItem": {
|
||||
"id": "MailItem",
|
||||
"type": "object",
|
||||
"description": "JSON template for MailItem object in Email Migration API.",
|
||||
"properties": {
|
||||
"isDeleted": {
|
||||
"type": "boolean",
|
||||
"description": "Boolean indicating if the mail is deleted (used in Vault)"
|
||||
},
|
||||
"isDraft": {
|
||||
"type": "boolean",
|
||||
"description": "Boolean indicating if the mail is draft"
|
||||
},
|
||||
"isInbox": {
|
||||
"type": "boolean",
|
||||
"description": "Boolean indicating if the mail is in inbox"
|
||||
},
|
||||
"isSent": {
|
||||
"type": "boolean",
|
||||
"description": "Boolean indicating if the mail is in 'sent mails'"
|
||||
},
|
||||
"isStarred": {
|
||||
"type": "boolean",
|
||||
"description": "Boolean indicating if the mail is starred"
|
||||
},
|
||||
"isTrash": {
|
||||
"type": "boolean",
|
||||
"description": "Boolean indicating if the mail is in trash"
|
||||
},
|
||||
"isUnread": {
|
||||
"type": "boolean",
|
||||
"description": "Boolean indicating if the mail is unread"
|
||||
},
|
||||
"kind": {
|
||||
"type": "string",
|
||||
"description": "Kind of resource this is.",
|
||||
"default": "mailItem"
|
||||
},
|
||||
"labels": {
|
||||
"type": "array",
|
||||
"description": "List of labels (strings)",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"resources": {
|
||||
"mail": {
|
||||
"methods": {
|
||||
"insert": {
|
||||
"id": "emailMigration.mail.insert",
|
||||
"path": "{userKey}/mail",
|
||||
"httpMethod": "POST",
|
||||
"description": "Insert Mail into Google's Gmail backends",
|
||||
"parameters": {
|
||||
"userKey": {
|
||||
"type": "string",
|
||||
"description": "The email or immutable id of the user",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
}
|
||||
},
|
||||
"parameterOrder": [
|
||||
"userKey"
|
||||
],
|
||||
"request": {
|
||||
"$ref": "MailItem"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/email.migration"
|
||||
],
|
||||
"supportsMediaUpload": true,
|
||||
"mediaUpload": {
|
||||
"accept": [
|
||||
"message/rfc822"
|
||||
],
|
||||
"maxSize": "35MB",
|
||||
"protocols": {
|
||||
"simple": {
|
||||
"multipart": true,
|
||||
"path": "/upload/email/v2/users/{userKey}/mail"
|
||||
},
|
||||
"resumable": {
|
||||
"multipart": true,
|
||||
"path": "/resumable/upload/email/v2/users/{userKey}/mail"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
347
vendor/google.golang.org/api/admin/email_migration/v2/admin-gen.go
generated
vendored
Normal file
347
vendor/google.golang.org/api/admin/email_migration/v2/admin-gen.go
generated
vendored
Normal file
|
@ -0,0 +1,347 @@
|
|||
// Package admin provides access to the Email Migration API v2.
|
||||
//
|
||||
// See https://developers.google.com/admin-sdk/email-migration/v2/
|
||||
//
|
||||
// Usage example:
|
||||
//
|
||||
// import "google.golang.org/api/admin/email_migration/v2"
|
||||
// ...
|
||||
// adminService, err := admin.New(oauthHttpClient)
|
||||
package admin // import "google.golang.org/api/admin/email_migration/v2"
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"fmt"
|
||||
context "golang.org/x/net/context"
|
||||
ctxhttp "golang.org/x/net/context/ctxhttp"
|
||||
gensupport "google.golang.org/api/gensupport"
|
||||
googleapi "google.golang.org/api/googleapi"
|
||||
"io"
|
||||
"net/http"
|
||||
"net/url"
|
||||
"strconv"
|
||||
"strings"
|
||||
)
|
||||
|
||||
// Always reference these packages, just in case the auto-generated code
|
||||
// below doesn't.
|
||||
var _ = bytes.NewBuffer
|
||||
var _ = strconv.Itoa
|
||||
var _ = fmt.Sprintf
|
||||
var _ = json.NewDecoder
|
||||
var _ = io.Copy
|
||||
var _ = url.Parse
|
||||
var _ = gensupport.MarshalJSON
|
||||
var _ = googleapi.Version
|
||||
var _ = errors.New
|
||||
var _ = strings.Replace
|
||||
var _ = context.Canceled
|
||||
var _ = ctxhttp.Do
|
||||
|
||||
const apiId = "admin:email_migration_v2"
|
||||
const apiName = "admin"
|
||||
const apiVersion = "email_migration_v2"
|
||||
const basePath = "https://www.googleapis.com/email/v2/users/"
|
||||
|
||||
// OAuth2 scopes used by this API.
|
||||
const (
|
||||
// Manage email messages of users on your domain
|
||||
EmailMigrationScope = "https://www.googleapis.com/auth/email.migration"
|
||||
)
|
||||
|
||||
func New(client *http.Client) (*Service, error) {
|
||||
if client == nil {
|
||||
return nil, errors.New("client is nil")
|
||||
}
|
||||
s := &Service{client: client, BasePath: basePath}
|
||||
s.Mail = NewMailService(s)
|
||||
return s, nil
|
||||
}
|
||||
|
||||
type Service struct {
|
||||
client *http.Client
|
||||
BasePath string // API endpoint base URL
|
||||
UserAgent string // optional additional User-Agent fragment
|
||||
|
||||
Mail *MailService
|
||||
}
|
||||
|
||||
func (s *Service) userAgent() string {
|
||||
if s.UserAgent == "" {
|
||||
return googleapi.UserAgent
|
||||
}
|
||||
return googleapi.UserAgent + " " + s.UserAgent
|
||||
}
|
||||
|
||||
func NewMailService(s *Service) *MailService {
|
||||
rs := &MailService{s: s}
|
||||
return rs
|
||||
}
|
||||
|
||||
type MailService struct {
|
||||
s *Service
|
||||
}
|
||||
|
||||
// MailItem: JSON template for MailItem object in Email Migration API.
|
||||
type MailItem struct {
|
||||
// IsDeleted: Boolean indicating if the mail is deleted (used in Vault)
|
||||
IsDeleted bool `json:"isDeleted,omitempty"`
|
||||
|
||||
// IsDraft: Boolean indicating if the mail is draft
|
||||
IsDraft bool `json:"isDraft,omitempty"`
|
||||
|
||||
// IsInbox: Boolean indicating if the mail is in inbox
|
||||
IsInbox bool `json:"isInbox,omitempty"`
|
||||
|
||||
// IsSent: Boolean indicating if the mail is in 'sent mails'
|
||||
IsSent bool `json:"isSent,omitempty"`
|
||||
|
||||
// IsStarred: Boolean indicating if the mail is starred
|
||||
IsStarred bool `json:"isStarred,omitempty"`
|
||||
|
||||
// IsTrash: Boolean indicating if the mail is in trash
|
||||
IsTrash bool `json:"isTrash,omitempty"`
|
||||
|
||||
// IsUnread: Boolean indicating if the mail is unread
|
||||
IsUnread bool `json:"isUnread,omitempty"`
|
||||
|
||||
// Kind: Kind of resource this is.
|
||||
Kind string `json:"kind,omitempty"`
|
||||
|
||||
// Labels: List of labels (strings)
|
||||
Labels []string `json:"labels,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "IsDeleted") to
|
||||
// unconditionally include in API requests. By default, fields with
|
||||
// empty values are omitted from API requests. However, any non-pointer,
|
||||
// non-interface field appearing in ForceSendFields will be sent to the
|
||||
// server regardless of whether the field is empty or not. This may be
|
||||
// used to include empty fields in Patch requests.
|
||||
ForceSendFields []string `json:"-"`
|
||||
|
||||
// NullFields is a list of field names (e.g. "IsDeleted") to include in
|
||||
// API requests with the JSON null value. By default, fields with empty
|
||||
// values are omitted from API requests. However, any field with an
|
||||
// empty value appearing in NullFields will be sent to the server as
|
||||
// null. It is an error if a field in this list has a non-empty value.
|
||||
// This may be used to include null fields in Patch requests.
|
||||
NullFields []string `json:"-"`
|
||||
}
|
||||
|
||||
func (s *MailItem) MarshalJSON() ([]byte, error) {
|
||||
type noMethod MailItem
|
||||
raw := noMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// method id "emailMigration.mail.insert":
|
||||
|
||||
type MailInsertCall struct {
|
||||
s *Service
|
||||
userKey string
|
||||
mailitem *MailItem
|
||||
urlParams_ gensupport.URLParams
|
||||
media_ io.Reader
|
||||
mediaBuffer_ *gensupport.MediaBuffer
|
||||
mediaType_ string
|
||||
mediaSize_ int64 // mediaSize, if known. Used only for calls to progressUpdater_.
|
||||
progressUpdater_ googleapi.ProgressUpdater
|
||||
ctx_ context.Context
|
||||
}
|
||||
|
||||
// Insert: Insert Mail into Google's Gmail backends
|
||||
func (r *MailService) Insert(userKey string, mailitem *MailItem) *MailInsertCall {
|
||||
c := &MailInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.userKey = userKey
|
||||
c.mailitem = mailitem
|
||||
return c
|
||||
}
|
||||
|
||||
// Media specifies the media to upload in one or more chunks. The chunk
|
||||
// size may be controlled by supplying a MediaOption generated by
|
||||
// googleapi.ChunkSize. The chunk size defaults to
|
||||
// googleapi.DefaultUploadChunkSize.The Content-Type header used in the
|
||||
// upload request will be determined by sniffing the contents of r,
|
||||
// unless a MediaOption generated by googleapi.ContentType is
|
||||
// supplied.
|
||||
// At most one of Media and ResumableMedia may be set.
|
||||
func (c *MailInsertCall) Media(r io.Reader, options ...googleapi.MediaOption) *MailInsertCall {
|
||||
opts := googleapi.ProcessMediaOptions(options)
|
||||
chunkSize := opts.ChunkSize
|
||||
if !opts.ForceEmptyContentType {
|
||||
r, c.mediaType_ = gensupport.DetermineContentType(r, opts.ContentType)
|
||||
}
|
||||
c.media_, c.mediaBuffer_ = gensupport.PrepareUpload(r, chunkSize)
|
||||
return c
|
||||
}
|
||||
|
||||
// ResumableMedia specifies the media to upload in chunks and can be
|
||||
// canceled with ctx.
|
||||
//
|
||||
// Deprecated: use Media instead.
|
||||
//
|
||||
// At most one of Media and ResumableMedia may be set. mediaType
|
||||
// identifies the MIME media type of the upload, such as "image/png". If
|
||||
// mediaType is "", it will be auto-detected. The provided ctx will
|
||||
// supersede any context previously provided to the Context method.
|
||||
func (c *MailInsertCall) ResumableMedia(ctx context.Context, r io.ReaderAt, size int64, mediaType string) *MailInsertCall {
|
||||
c.ctx_ = ctx
|
||||
rdr := gensupport.ReaderAtToReader(r, size)
|
||||
rdr, c.mediaType_ = gensupport.DetermineContentType(rdr, mediaType)
|
||||
c.mediaBuffer_ = gensupport.NewMediaBuffer(rdr, googleapi.DefaultUploadChunkSize)
|
||||
c.media_ = nil
|
||||
c.mediaSize_ = size
|
||||
return c
|
||||
}
|
||||
|
||||
// ProgressUpdater provides a callback function that will be called
|
||||
// after every chunk. It should be a low-latency function in order to
|
||||
// not slow down the upload operation. This should only be called when
|
||||
// using ResumableMedia (as opposed to Media).
|
||||
func (c *MailInsertCall) ProgressUpdater(pu googleapi.ProgressUpdater) *MailInsertCall {
|
||||
c.progressUpdater_ = pu
|
||||
return c
|
||||
}
|
||||
|
||||
// Fields allows partial responses to be retrieved. See
|
||||
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
|
||||
// for more information.
|
||||
func (c *MailInsertCall) Fields(s ...googleapi.Field) *MailInsertCall {
|
||||
c.urlParams_.Set("fields", googleapi.CombineFields(s))
|
||||
return c
|
||||
}
|
||||
|
||||
// Context sets the context to be used in this call's Do method. Any
|
||||
// pending HTTP request will be aborted if the provided context is
|
||||
// canceled.
|
||||
// This context will supersede any context previously provided to the
|
||||
// ResumableMedia method.
|
||||
func (c *MailInsertCall) Context(ctx context.Context) *MailInsertCall {
|
||||
c.ctx_ = ctx
|
||||
return c
|
||||
}
|
||||
|
||||
func (c *MailInsertCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("User-Agent", c.s.userAgent())
|
||||
var body io.Reader = nil
|
||||
body, err := googleapi.WithoutDataWrapper.JSONReader(c.mailitem)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
reqHeaders.Set("Content-Type", "application/json")
|
||||
c.urlParams_.Set("alt", alt)
|
||||
urls := googleapi.ResolveRelative(c.s.BasePath, "{userKey}/mail")
|
||||
if c.media_ != nil || c.mediaBuffer_ != nil {
|
||||
urls = strings.Replace(urls, "https://www.googleapis.com/", "https://www.googleapis.com/upload/", 1)
|
||||
protocol := "multipart"
|
||||
if c.mediaBuffer_ != nil {
|
||||
protocol = "resumable"
|
||||
}
|
||||
c.urlParams_.Set("uploadType", protocol)
|
||||
}
|
||||
if body == nil {
|
||||
body = new(bytes.Buffer)
|
||||
reqHeaders.Set("Content-Type", "application/json")
|
||||
}
|
||||
if c.media_ != nil {
|
||||
combined, ctype := gensupport.CombineBodyMedia(body, "application/json", c.media_, c.mediaType_)
|
||||
defer combined.Close()
|
||||
reqHeaders.Set("Content-Type", ctype)
|
||||
body = combined
|
||||
}
|
||||
if c.mediaBuffer_ != nil && c.mediaType_ != "" {
|
||||
reqHeaders.Set("X-Upload-Content-Type", c.mediaType_)
|
||||
}
|
||||
urls += "?" + c.urlParams_.Encode()
|
||||
req, _ := http.NewRequest("POST", urls, body)
|
||||
req.Header = reqHeaders
|
||||
googleapi.Expand(req.URL, map[string]string{
|
||||
"userKey": c.userKey,
|
||||
})
|
||||
return gensupport.SendRequest(c.ctx_, c.s.client, req)
|
||||
}
|
||||
|
||||
// Do executes the "emailMigration.mail.insert" call.
|
||||
func (c *MailInsertCall) Do(opts ...googleapi.CallOption) error {
|
||||
gensupport.SetOptions(c.urlParams_, opts...)
|
||||
res, err := c.doRequest("json")
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
defer googleapi.CloseBody(res)
|
||||
if err := googleapi.CheckResponse(res); err != nil {
|
||||
return err
|
||||
}
|
||||
if c.mediaBuffer_ != nil {
|
||||
loc := res.Header.Get("Location")
|
||||
rx := &gensupport.ResumableUpload{
|
||||
Client: c.s.client,
|
||||
UserAgent: c.s.userAgent(),
|
||||
URI: loc,
|
||||
Media: c.mediaBuffer_,
|
||||
MediaType: c.mediaType_,
|
||||
Callback: func(curr int64) {
|
||||
if c.progressUpdater_ != nil {
|
||||
c.progressUpdater_(curr, c.mediaSize_)
|
||||
}
|
||||
},
|
||||
}
|
||||
ctx := c.ctx_
|
||||
if ctx == nil {
|
||||
ctx = context.TODO()
|
||||
}
|
||||
res, err = rx.Upload(ctx)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
defer res.Body.Close()
|
||||
if err := googleapi.CheckResponse(res); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
return nil
|
||||
// {
|
||||
// "description": "Insert Mail into Google's Gmail backends",
|
||||
// "httpMethod": "POST",
|
||||
// "id": "emailMigration.mail.insert",
|
||||
// "mediaUpload": {
|
||||
// "accept": [
|
||||
// "message/rfc822"
|
||||
// ],
|
||||
// "maxSize": "35MB",
|
||||
// "protocols": {
|
||||
// "resumable": {
|
||||
// "multipart": true,
|
||||
// "path": "/resumable/upload/email/v2/users/{userKey}/mail"
|
||||
// },
|
||||
// "simple": {
|
||||
// "multipart": true,
|
||||
// "path": "/upload/email/v2/users/{userKey}/mail"
|
||||
// }
|
||||
// }
|
||||
// },
|
||||
// "parameterOrder": [
|
||||
// "userKey"
|
||||
// ],
|
||||
// "parameters": {
|
||||
// "userKey": {
|
||||
// "description": "The email or immutable id of the user",
|
||||
// "location": "path",
|
||||
// "required": true,
|
||||
// "type": "string"
|
||||
// }
|
||||
// },
|
||||
// "path": "{userKey}/mail",
|
||||
// "request": {
|
||||
// "$ref": "MailItem"
|
||||
// },
|
||||
// "scopes": [
|
||||
// "https://www.googleapis.com/auth/email.migration"
|
||||
// ],
|
||||
// "supportsMediaUpload": true
|
||||
// }
|
||||
|
||||
}
|
744
vendor/google.golang.org/api/admin/reports/v1/admin-api.json
generated
vendored
Normal file
744
vendor/google.golang.org/api/admin/reports/v1/admin-api.json
generated
vendored
Normal file
|
@ -0,0 +1,744 @@
|
|||
{
|
||||
"kind": "discovery#restDescription",
|
||||
"etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/-tkaOVzArVVhbxGreMOY21mRaV8\"",
|
||||
"discoveryVersion": "v1",
|
||||
"id": "admin:reports_v1",
|
||||
"name": "admin",
|
||||
"canonicalName": "reports",
|
||||
"version": "reports_v1",
|
||||
"revision": "20170320",
|
||||
"title": "Admin Reports API",
|
||||
"description": "Fetches reports for the administrators of G Suite customers about the usage, collaboration, security, and risk for their users.",
|
||||
"ownerDomain": "google.com",
|
||||
"ownerName": "Google",
|
||||
"packagePath": "admin",
|
||||
"icons": {
|
||||
"x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png",
|
||||
"x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png"
|
||||
},
|
||||
"documentationLink": "https://developers.google.com/admin-sdk/reports/",
|
||||
"protocol": "rest",
|
||||
"baseUrl": "https://www.googleapis.com/admin/reports/v1/",
|
||||
"basePath": "/admin/reports/v1/",
|
||||
"rootUrl": "https://www.googleapis.com/",
|
||||
"servicePath": "admin/reports/v1/",
|
||||
"batchPath": "batch",
|
||||
"parameters": {
|
||||
"alt": {
|
||||
"type": "string",
|
||||
"description": "Data format for the response.",
|
||||
"default": "json",
|
||||
"enum": [
|
||||
"json"
|
||||
],
|
||||
"enumDescriptions": [
|
||||
"Responses with Content-Type of application/json"
|
||||
],
|
||||
"location": "query"
|
||||
},
|
||||
"fields": {
|
||||
"type": "string",
|
||||
"description": "Selector specifying which fields to include in a partial response.",
|
||||
"location": "query"
|
||||
},
|
||||
"key": {
|
||||
"type": "string",
|
||||
"description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.",
|
||||
"location": "query"
|
||||
},
|
||||
"oauth_token": {
|
||||
"type": "string",
|
||||
"description": "OAuth 2.0 token for the current user.",
|
||||
"location": "query"
|
||||
},
|
||||
"prettyPrint": {
|
||||
"type": "boolean",
|
||||
"description": "Returns response with indentations and line breaks.",
|
||||
"default": "true",
|
||||
"location": "query"
|
||||
},
|
||||
"quotaUser": {
|
||||
"type": "string",
|
||||
"description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.",
|
||||
"location": "query"
|
||||
},
|
||||
"userIp": {
|
||||
"type": "string",
|
||||
"description": "IP address of the site where the request originates. Use this if you want to enforce per-user limits.",
|
||||
"location": "query"
|
||||
}
|
||||
},
|
||||
"auth": {
|
||||
"oauth2": {
|
||||
"scopes": {
|
||||
"https://www.googleapis.com/auth/admin.reports.audit.readonly": {
|
||||
"description": "View audit reports for your G Suite domain"
|
||||
},
|
||||
"https://www.googleapis.com/auth/admin.reports.usage.readonly": {
|
||||
"description": "View usage reports for your G Suite domain"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"schemas": {
|
||||
"Activities": {
|
||||
"id": "Activities",
|
||||
"type": "object",
|
||||
"description": "JSON template for a collection of activites.",
|
||||
"properties": {
|
||||
"etag": {
|
||||
"type": "string",
|
||||
"description": "ETag of the resource."
|
||||
},
|
||||
"items": {
|
||||
"type": "array",
|
||||
"description": "Each record in read response.",
|
||||
"items": {
|
||||
"$ref": "Activity"
|
||||
}
|
||||
},
|
||||
"kind": {
|
||||
"type": "string",
|
||||
"description": "Kind of list response this is.",
|
||||
"default": "admin#reports#activities"
|
||||
},
|
||||
"nextPageToken": {
|
||||
"type": "string",
|
||||
"description": "Token for retrieving the next page"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Activity": {
|
||||
"id": "Activity",
|
||||
"type": "object",
|
||||
"description": "JSON template for the activity resource.",
|
||||
"properties": {
|
||||
"actor": {
|
||||
"type": "object",
|
||||
"description": "User doing the action.",
|
||||
"properties": {
|
||||
"callerType": {
|
||||
"type": "string",
|
||||
"description": "User or OAuth 2LO request."
|
||||
},
|
||||
"email": {
|
||||
"type": "string",
|
||||
"description": "Email address of the user."
|
||||
},
|
||||
"key": {
|
||||
"type": "string",
|
||||
"description": "For OAuth 2LO API requests, consumer_key of the requestor."
|
||||
},
|
||||
"profileId": {
|
||||
"type": "string",
|
||||
"description": "Obfuscated user id of the user."
|
||||
}
|
||||
}
|
||||
},
|
||||
"etag": {
|
||||
"type": "string",
|
||||
"description": "ETag of the entry."
|
||||
},
|
||||
"events": {
|
||||
"type": "array",
|
||||
"description": "Activity events.",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"name": {
|
||||
"type": "string",
|
||||
"description": "Name of event."
|
||||
},
|
||||
"parameters": {
|
||||
"type": "array",
|
||||
"description": "Parameter value pairs for various applications.",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"boolValue": {
|
||||
"type": "boolean",
|
||||
"description": "Boolean value of the parameter."
|
||||
},
|
||||
"intValue": {
|
||||
"type": "string",
|
||||
"description": "Integral value of the parameter.",
|
||||
"format": "int64"
|
||||
},
|
||||
"multiIntValue": {
|
||||
"type": "array",
|
||||
"description": "Multi-int value of the parameter.",
|
||||
"items": {
|
||||
"type": "string",
|
||||
"format": "int64"
|
||||
}
|
||||
},
|
||||
"multiValue": {
|
||||
"type": "array",
|
||||
"description": "Multi-string value of the parameter.",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"name": {
|
||||
"type": "string",
|
||||
"description": "The name of the parameter."
|
||||
},
|
||||
"value": {
|
||||
"type": "string",
|
||||
"description": "String value of the parameter."
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"type": {
|
||||
"type": "string",
|
||||
"description": "Type of event."
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"id": {
|
||||
"type": "object",
|
||||
"description": "Unique identifier for each activity record.",
|
||||
"properties": {
|
||||
"applicationName": {
|
||||
"type": "string",
|
||||
"description": "Application name to which the event belongs."
|
||||
},
|
||||
"customerId": {
|
||||
"type": "string",
|
||||
"description": "Obfuscated customer ID of the source customer."
|
||||
},
|
||||
"time": {
|
||||
"type": "string",
|
||||
"description": "Time of occurrence of the activity.",
|
||||
"format": "date-time"
|
||||
},
|
||||
"uniqueQualifier": {
|
||||
"type": "string",
|
||||
"description": "Unique qualifier if multiple events have the same time.",
|
||||
"format": "int64"
|
||||
}
|
||||
}
|
||||
},
|
||||
"ipAddress": {
|
||||
"type": "string",
|
||||
"description": "IP Address of the user doing the action."
|
||||
},
|
||||
"kind": {
|
||||
"type": "string",
|
||||
"description": "Kind of resource this is.",
|
||||
"default": "admin#reports#activity"
|
||||
},
|
||||
"ownerDomain": {
|
||||
"type": "string",
|
||||
"description": "Domain of source customer."
|
||||
}
|
||||
}
|
||||
},
|
||||
"Channel": {
|
||||
"id": "Channel",
|
||||
"type": "object",
|
||||
"description": "An notification channel used to watch for resource changes.",
|
||||
"properties": {
|
||||
"address": {
|
||||
"type": "string",
|
||||
"description": "The address where notifications are delivered for this channel."
|
||||
},
|
||||
"expiration": {
|
||||
"type": "string",
|
||||
"description": "Date and time of notification channel expiration, expressed as a Unix timestamp, in milliseconds. Optional.",
|
||||
"format": "int64"
|
||||
},
|
||||
"id": {
|
||||
"type": "string",
|
||||
"description": "A UUID or similar unique string that identifies this channel."
|
||||
},
|
||||
"kind": {
|
||||
"type": "string",
|
||||
"description": "Identifies this as a notification channel used to watch for changes to a resource. Value: the fixed string \"api#channel\".",
|
||||
"default": "api#channel"
|
||||
},
|
||||
"params": {
|
||||
"type": "object",
|
||||
"description": "Additional parameters controlling delivery channel behavior. Optional.",
|
||||
"additionalProperties": {
|
||||
"type": "string",
|
||||
"description": "Declares a new parameter by name."
|
||||
}
|
||||
},
|
||||
"payload": {
|
||||
"type": "boolean",
|
||||
"description": "A Boolean value to indicate whether payload is wanted. Optional."
|
||||
},
|
||||
"resourceId": {
|
||||
"type": "string",
|
||||
"description": "An opaque ID that identifies the resource being watched on this channel. Stable across different API versions."
|
||||
},
|
||||
"resourceUri": {
|
||||
"type": "string",
|
||||
"description": "A version-specific identifier for the watched resource."
|
||||
},
|
||||
"token": {
|
||||
"type": "string",
|
||||
"description": "An arbitrary string delivered to the target address with each notification delivered over this channel. Optional."
|
||||
},
|
||||
"type": {
|
||||
"type": "string",
|
||||
"description": "The type of delivery mechanism used for this channel."
|
||||
}
|
||||
}
|
||||
},
|
||||
"UsageReport": {
|
||||
"id": "UsageReport",
|
||||
"type": "object",
|
||||
"description": "JSON template for a usage report.",
|
||||
"properties": {
|
||||
"date": {
|
||||
"type": "string",
|
||||
"description": "The date to which the record belongs.",
|
||||
"readOnly": true
|
||||
},
|
||||
"entity": {
|
||||
"type": "object",
|
||||
"description": "Information about the type of the item.",
|
||||
"readOnly": true,
|
||||
"properties": {
|
||||
"customerId": {
|
||||
"type": "string",
|
||||
"description": "Obfuscated customer id for the record.",
|
||||
"readOnly": true
|
||||
},
|
||||
"profileId": {
|
||||
"type": "string",
|
||||
"description": "Obfuscated user id for the record.",
|
||||
"readOnly": true
|
||||
},
|
||||
"type": {
|
||||
"type": "string",
|
||||
"description": "The type of item, can be a customer or user.",
|
||||
"readOnly": true
|
||||
},
|
||||
"userEmail": {
|
||||
"type": "string",
|
||||
"description": "user's email.",
|
||||
"readOnly": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"etag": {
|
||||
"type": "string",
|
||||
"description": "ETag of the resource."
|
||||
},
|
||||
"kind": {
|
||||
"type": "string",
|
||||
"description": "The kind of object.",
|
||||
"default": "admin#reports#usageReport"
|
||||
},
|
||||
"parameters": {
|
||||
"type": "array",
|
||||
"description": "Parameter value pairs for various applications.",
|
||||
"readOnly": true,
|
||||
"items": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"boolValue": {
|
||||
"type": "boolean",
|
||||
"description": "Boolean value of the parameter.",
|
||||
"readOnly": true
|
||||
},
|
||||
"datetimeValue": {
|
||||
"type": "string",
|
||||
"description": "RFC 3339 formatted value of the parameter.",
|
||||
"format": "date-time",
|
||||
"readOnly": true
|
||||
},
|
||||
"intValue": {
|
||||
"type": "string",
|
||||
"description": "Integral value of the parameter.",
|
||||
"format": "int64",
|
||||
"readOnly": true
|
||||
},
|
||||
"msgValue": {
|
||||
"type": "array",
|
||||
"description": "Nested message value of the parameter.",
|
||||
"readOnly": true,
|
||||
"items": {
|
||||
"type": "object",
|
||||
"additionalProperties": {
|
||||
"type": "any"
|
||||
}
|
||||
}
|
||||
},
|
||||
"name": {
|
||||
"type": "string",
|
||||
"description": "The name of the parameter."
|
||||
},
|
||||
"stringValue": {
|
||||
"type": "string",
|
||||
"description": "String value of the parameter.",
|
||||
"readOnly": true
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"UsageReports": {
|
||||
"id": "UsageReports",
|
||||
"type": "object",
|
||||
"description": "JSON template for a collection of usage reports.",
|
||||
"properties": {
|
||||
"etag": {
|
||||
"type": "string",
|
||||
"description": "ETag of the resource."
|
||||
},
|
||||
"kind": {
|
||||
"type": "string",
|
||||
"description": "The kind of object.",
|
||||
"default": "admin#reports#usageReports"
|
||||
},
|
||||
"nextPageToken": {
|
||||
"type": "string",
|
||||
"description": "Token for retrieving the next page"
|
||||
},
|
||||
"usageReports": {
|
||||
"type": "array",
|
||||
"description": "Various application parameter records.",
|
||||
"items": {
|
||||
"$ref": "UsageReport"
|
||||
}
|
||||
},
|
||||
"warnings": {
|
||||
"type": "array",
|
||||
"description": "Warnings if any.",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"code": {
|
||||
"type": "string",
|
||||
"description": "Machine readable code / warning type."
|
||||
},
|
||||
"data": {
|
||||
"type": "array",
|
||||
"description": "Key-Value pairs to give detailed information on the warning.",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"key": {
|
||||
"type": "string",
|
||||
"description": "Key associated with a key-value pair to give detailed information on the warning."
|
||||
},
|
||||
"value": {
|
||||
"type": "string",
|
||||
"description": "Value associated with a key-value pair to give detailed information on the warning."
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"message": {
|
||||
"type": "string",
|
||||
"description": "Human readable message for the warning."
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"resources": {
|
||||
"activities": {
|
||||
"methods": {
|
||||
"list": {
|
||||
"id": "reports.activities.list",
|
||||
"path": "activity/users/{userKey}/applications/{applicationName}",
|
||||
"httpMethod": "GET",
|
||||
"description": "Retrieves a list of activities for a specific customer and application.",
|
||||
"parameters": {
|
||||
"actorIpAddress": {
|
||||
"type": "string",
|
||||
"description": "IP Address of host where the event was performed. Supports both IPv4 and IPv6 addresses.",
|
||||
"location": "query"
|
||||
},
|
||||
"applicationName": {
|
||||
"type": "string",
|
||||
"description": "Application name for which the events are to be retrieved.",
|
||||
"required": true,
|
||||
"pattern": "(admin)|(calendar)|(drive)|(login)|(mobile)|(token)|(groups)|(saml)|(chat)",
|
||||
"location": "path"
|
||||
},
|
||||
"customerId": {
|
||||
"type": "string",
|
||||
"description": "Represents the customer for which the data is to be fetched.",
|
||||
"pattern": "C.+",
|
||||
"location": "query"
|
||||
},
|
||||
"endTime": {
|
||||
"type": "string",
|
||||
"description": "Return events which occurred at or before this time.",
|
||||
"pattern": "(\\d\\d\\d\\d)-(\\d\\d)-(\\d\\d)T(\\d\\d):(\\d\\d):(\\d\\d)(?:\\.(\\d+))?(?:(Z)|([-+])(\\d\\d):(\\d\\d))",
|
||||
"location": "query"
|
||||
},
|
||||
"eventName": {
|
||||
"type": "string",
|
||||
"description": "Name of the event being queried.",
|
||||
"location": "query"
|
||||
},
|
||||
"filters": {
|
||||
"type": "string",
|
||||
"description": "Event parameters in the form [parameter1 name][operator][parameter1 value],[parameter2 name][operator][parameter2 value],...",
|
||||
"pattern": "(.+[\u003c,\u003c=,==,\u003e=,\u003e,\u003c\u003e].+,)*(.+[\u003c,\u003c=,==,\u003e=,\u003e,\u003c\u003e].+)",
|
||||
"location": "query"
|
||||
},
|
||||
"maxResults": {
|
||||
"type": "integer",
|
||||
"description": "Number of activity records to be shown in each page.",
|
||||
"format": "int32",
|
||||
"minimum": "1",
|
||||
"maximum": "1000",
|
||||
"location": "query"
|
||||
},
|
||||
"pageToken": {
|
||||
"type": "string",
|
||||
"description": "Token to specify next page.",
|
||||
"location": "query"
|
||||
},
|
||||
"startTime": {
|
||||
"type": "string",
|
||||
"description": "Return events which occurred at or after this time.",
|
||||
"pattern": "(\\d\\d\\d\\d)-(\\d\\d)-(\\d\\d)T(\\d\\d):(\\d\\d):(\\d\\d)(?:\\.(\\d+))?(?:(Z)|([-+])(\\d\\d):(\\d\\d))",
|
||||
"location": "query"
|
||||
},
|
||||
"userKey": {
|
||||
"type": "string",
|
||||
"description": "Represents the profile id or the user email for which the data should be filtered. When 'all' is specified as the userKey, it returns usageReports for all users.",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
}
|
||||
},
|
||||
"parameterOrder": [
|
||||
"userKey",
|
||||
"applicationName"
|
||||
],
|
||||
"response": {
|
||||
"$ref": "Activities"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/admin.reports.audit.readonly"
|
||||
],
|
||||
"supportsSubscription": true
|
||||
},
|
||||
"watch": {
|
||||
"id": "reports.activities.watch",
|
||||
"path": "activity/users/{userKey}/applications/{applicationName}/watch",
|
||||
"httpMethod": "POST",
|
||||
"description": "Push changes to activities",
|
||||
"parameters": {
|
||||
"actorIpAddress": {
|
||||
"type": "string",
|
||||
"description": "IP Address of host where the event was performed. Supports both IPv4 and IPv6 addresses.",
|
||||
"location": "query"
|
||||
},
|
||||
"applicationName": {
|
||||
"type": "string",
|
||||
"description": "Application name for which the events are to be retrieved.",
|
||||
"required": true,
|
||||
"pattern": "(admin)|(calendar)|(drive)|(login)|(mobile)|(token)|(groups)|(saml)|(chat)",
|
||||
"location": "path"
|
||||
},
|
||||
"customerId": {
|
||||
"type": "string",
|
||||
"description": "Represents the customer for which the data is to be fetched.",
|
||||
"pattern": "C.+",
|
||||
"location": "query"
|
||||
},
|
||||
"endTime": {
|
||||
"type": "string",
|
||||
"description": "Return events which occurred at or before this time.",
|
||||
"pattern": "(\\d\\d\\d\\d)-(\\d\\d)-(\\d\\d)T(\\d\\d):(\\d\\d):(\\d\\d)(?:\\.(\\d+))?(?:(Z)|([-+])(\\d\\d):(\\d\\d))",
|
||||
"location": "query"
|
||||
},
|
||||
"eventName": {
|
||||
"type": "string",
|
||||
"description": "Name of the event being queried.",
|
||||
"location": "query"
|
||||
},
|
||||
"filters": {
|
||||
"type": "string",
|
||||
"description": "Event parameters in the form [parameter1 name][operator][parameter1 value],[parameter2 name][operator][parameter2 value],...",
|
||||
"pattern": "(.+[\u003c,\u003c=,==,\u003e=,\u003e,\u003c\u003e].+,)*(.+[\u003c,\u003c=,==,\u003e=,\u003e,\u003c\u003e].+)",
|
||||
"location": "query"
|
||||
},
|
||||
"maxResults": {
|
||||
"type": "integer",
|
||||
"description": "Number of activity records to be shown in each page.",
|
||||
"format": "int32",
|
||||
"minimum": "1",
|
||||
"maximum": "1000",
|
||||
"location": "query"
|
||||
},
|
||||
"pageToken": {
|
||||
"type": "string",
|
||||
"description": "Token to specify next page.",
|
||||
"location": "query"
|
||||
},
|
||||
"startTime": {
|
||||
"type": "string",
|
||||
"description": "Return events which occurred at or after this time.",
|
||||
"pattern": "(\\d\\d\\d\\d)-(\\d\\d)-(\\d\\d)T(\\d\\d):(\\d\\d):(\\d\\d)(?:\\.(\\d+))?(?:(Z)|([-+])(\\d\\d):(\\d\\d))",
|
||||
"location": "query"
|
||||
},
|
||||
"userKey": {
|
||||
"type": "string",
|
||||
"description": "Represents the profile id or the user email for which the data should be filtered. When 'all' is specified as the userKey, it returns usageReports for all users.",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
}
|
||||
},
|
||||
"parameterOrder": [
|
||||
"userKey",
|
||||
"applicationName"
|
||||
],
|
||||
"request": {
|
||||
"$ref": "Channel",
|
||||
"parameterName": "resource"
|
||||
},
|
||||
"response": {
|
||||
"$ref": "Channel"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/admin.reports.audit.readonly"
|
||||
],
|
||||
"supportsSubscription": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"channels": {
|
||||
"methods": {
|
||||
"stop": {
|
||||
"id": "admin.channels.stop",
|
||||
"path": "/admin/reports_v1/channels/stop",
|
||||
"httpMethod": "POST",
|
||||
"description": "Stop watching resources through this channel",
|
||||
"request": {
|
||||
"$ref": "Channel",
|
||||
"parameterName": "resource"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/admin.reports.audit.readonly"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"customerUsageReports": {
|
||||
"methods": {
|
||||
"get": {
|
||||
"id": "reports.customerUsageReports.get",
|
||||
"path": "usage/dates/{date}",
|
||||
"httpMethod": "GET",
|
||||
"description": "Retrieves a report which is a collection of properties / statistics for a specific customer.",
|
||||
"parameters": {
|
||||
"customerId": {
|
||||
"type": "string",
|
||||
"description": "Represents the customer for which the data is to be fetched.",
|
||||
"pattern": "C.+",
|
||||
"location": "query"
|
||||
},
|
||||
"date": {
|
||||
"type": "string",
|
||||
"description": "Represents the date in yyyy-mm-dd format for which the data is to be fetched.",
|
||||
"required": true,
|
||||
"pattern": "(\\d){4}-(\\d){2}-(\\d){2}",
|
||||
"location": "path"
|
||||
},
|
||||
"pageToken": {
|
||||
"type": "string",
|
||||
"description": "Token to specify next page.",
|
||||
"location": "query"
|
||||
},
|
||||
"parameters": {
|
||||
"type": "string",
|
||||
"description": "Represents the application name, parameter name pairs to fetch in csv as app_name1:param_name1, app_name2:param_name2.",
|
||||
"pattern": "(((accounts)|(classroom)|(cros)|(gmail)|(calendar)|(docs)|(gplus)|(sites)|(device_management)|(drive)):[^,]+,)*(((accounts)|(classroom)|(cros)|(gmail)|(calendar)|(docs)|(gplus)|(sites)|(device_management)|(drive)):[^,]+)",
|
||||
"location": "query"
|
||||
}
|
||||
},
|
||||
"parameterOrder": [
|
||||
"date"
|
||||
],
|
||||
"response": {
|
||||
"$ref": "UsageReports"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/admin.reports.usage.readonly"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"userUsageReport": {
|
||||
"methods": {
|
||||
"get": {
|
||||
"id": "reports.userUsageReport.get",
|
||||
"path": "usage/users/{userKey}/dates/{date}",
|
||||
"httpMethod": "GET",
|
||||
"description": "Retrieves a report which is a collection of properties / statistics for a set of users.",
|
||||
"parameters": {
|
||||
"customerId": {
|
||||
"type": "string",
|
||||
"description": "Represents the customer for which the data is to be fetched.",
|
||||
"pattern": "C.+",
|
||||
"location": "query"
|
||||
},
|
||||
"date": {
|
||||
"type": "string",
|
||||
"description": "Represents the date in yyyy-mm-dd format for which the data is to be fetched.",
|
||||
"required": true,
|
||||
"pattern": "(\\d){4}-(\\d){2}-(\\d){2}",
|
||||
"location": "path"
|
||||
},
|
||||
"filters": {
|
||||
"type": "string",
|
||||
"description": "Represents the set of filters including parameter operator value.",
|
||||
"pattern": "(((accounts)|(classroom)|(cros)|(gmail)|(calendar)|(docs)|(gplus)|(sites)|(device_management)|(drive)):[a-z0-9_]+[\u003c,\u003c=,==,\u003e=,\u003e,!=][^,]+,)*(((accounts)|(classroom)|(cros)|(gmail)|(calendar)|(docs)|(gplus)|(sites)|(device_management)|(drive)):[a-z0-9_]+[\u003c,\u003c=,==,\u003e=,\u003e,!=][^,]+)",
|
||||
"location": "query"
|
||||
},
|
||||
"maxResults": {
|
||||
"type": "integer",
|
||||
"description": "Maximum number of results to return. Maximum allowed is 1000",
|
||||
"format": "uint32",
|
||||
"maximum": "1000",
|
||||
"location": "query"
|
||||
},
|
||||
"pageToken": {
|
||||
"type": "string",
|
||||
"description": "Token to specify next page.",
|
||||
"location": "query"
|
||||
},
|
||||
"parameters": {
|
||||
"type": "string",
|
||||
"description": "Represents the application name, parameter name pairs to fetch in csv as app_name1:param_name1, app_name2:param_name2.",
|
||||
"pattern": "(((accounts)|(classroom)|(cros)|(gmail)|(calendar)|(docs)|(gplus)|(sites)|(device_management)|(drive)):[^,]+,)*(((accounts)|(classroom)|(cros)|(gmail)|(calendar)|(docs)|(gplus)|(sites)|(device_management)|(drive)):[^,]+)",
|
||||
"location": "query"
|
||||
},
|
||||
"userKey": {
|
||||
"type": "string",
|
||||
"description": "Represents the profile id or the user email for which the data should be filtered.",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
}
|
||||
},
|
||||
"parameterOrder": [
|
||||
"userKey",
|
||||
"date"
|
||||
],
|
||||
"response": {
|
||||
"$ref": "UsageReports"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/admin.reports.usage.readonly"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
1708
vendor/google.golang.org/api/admin/reports/v1/admin-gen.go
generated
vendored
Normal file
1708
vendor/google.golang.org/api/admin/reports/v1/admin-gen.go
generated
vendored
Normal file
File diff suppressed because it is too large
Load diff
1949
vendor/google.golang.org/api/adsense/v1.2/adsense-api.json
generated
vendored
Normal file
1949
vendor/google.golang.org/api/adsense/v1.2/adsense-api.json
generated
vendored
Normal file
File diff suppressed because it is too large
Load diff
6248
vendor/google.golang.org/api/adsense/v1.2/adsense-gen.go
generated
vendored
Normal file
6248
vendor/google.golang.org/api/adsense/v1.2/adsense-gen.go
generated
vendored
Normal file
File diff suppressed because it is too large
Load diff
2250
vendor/google.golang.org/api/adsense/v1.3/adsense-api.json
generated
vendored
Normal file
2250
vendor/google.golang.org/api/adsense/v1.3/adsense-api.json
generated
vendored
Normal file
File diff suppressed because it is too large
Load diff
7750
vendor/google.golang.org/api/adsense/v1.3/adsense-gen.go
generated
vendored
Normal file
7750
vendor/google.golang.org/api/adsense/v1.3/adsense-gen.go
generated
vendored
Normal file
File diff suppressed because it is too large
Load diff
2407
vendor/google.golang.org/api/adsense/v1.4/adsense-api.json
generated
vendored
Normal file
2407
vendor/google.golang.org/api/adsense/v1.4/adsense-api.json
generated
vendored
Normal file
File diff suppressed because it is too large
Load diff
8326
vendor/google.golang.org/api/adsense/v1.4/adsense-gen.go
generated
vendored
Normal file
8326
vendor/google.golang.org/api/adsense/v1.4/adsense-gen.go
generated
vendored
Normal file
File diff suppressed because it is too large
Load diff
1569
vendor/google.golang.org/api/adsensehost/v4.1/adsensehost-api.json
generated
vendored
Normal file
1569
vendor/google.golang.org/api/adsensehost/v4.1/adsensehost-api.json
generated
vendored
Normal file
File diff suppressed because it is too large
Load diff
5231
vendor/google.golang.org/api/adsensehost/v4.1/adsensehost-gen.go
generated
vendored
Normal file
5231
vendor/google.golang.org/api/adsensehost/v4.1/adsensehost-gen.go
generated
vendored
Normal file
File diff suppressed because it is too large
Load diff
366
vendor/google.golang.org/api/analytics/v2.4/analytics-api.json
generated
vendored
Normal file
366
vendor/google.golang.org/api/analytics/v2.4/analytics-api.json
generated
vendored
Normal file
|
@ -0,0 +1,366 @@
|
|||
{
|
||||
"kind": "discovery#restDescription",
|
||||
"etag": "\"bRFOOrZKfO9LweMbPqu0kcu6De8/ha01xiJ2F_tfXi994F2t-6KbS0Y\"",
|
||||
"discoveryVersion": "v1",
|
||||
"id": "analytics:v2.4",
|
||||
"name": "analytics",
|
||||
"version": "v2.4",
|
||||
"revision": "20160308",
|
||||
"title": "Google Analytics API",
|
||||
"description": "Views and manages your Google Analytics data.",
|
||||
"ownerDomain": "google.com",
|
||||
"ownerName": "Google",
|
||||
"icons": {
|
||||
"x16": "https://www.google.com/images/icons/product/analytics-16.png",
|
||||
"x32": "https://www.google.com/images/icons/product/analytics-32.png"
|
||||
},
|
||||
"documentationLink": "https://developers.google.com/analytics/",
|
||||
"protocol": "rest",
|
||||
"baseUrl": "https://www.googleapis.com/analytics/v2.4/",
|
||||
"basePath": "/analytics/v2.4/",
|
||||
"rootUrl": "https://www.googleapis.com/",
|
||||
"servicePath": "analytics/v2.4/",
|
||||
"batchPath": "batch",
|
||||
"parameters": {
|
||||
"alt": {
|
||||
"type": "string",
|
||||
"description": "Data format for the response.",
|
||||
"default": "atom",
|
||||
"enum": [
|
||||
"atom"
|
||||
],
|
||||
"enumDescriptions": [
|
||||
"Responses with Content-Type of application/atom+xml"
|
||||
],
|
||||
"location": "query"
|
||||
},
|
||||
"fields": {
|
||||
"type": "string",
|
||||
"description": "Selector specifying which fields to include in a partial response.",
|
||||
"location": "query"
|
||||
},
|
||||
"key": {
|
||||
"type": "string",
|
||||
"description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.",
|
||||
"location": "query"
|
||||
},
|
||||
"oauth_token": {
|
||||
"type": "string",
|
||||
"description": "OAuth 2.0 token for the current user.",
|
||||
"location": "query"
|
||||
},
|
||||
"prettyPrint": {
|
||||
"type": "boolean",
|
||||
"description": "Returns response with indentations and line breaks.",
|
||||
"default": "false",
|
||||
"location": "query"
|
||||
},
|
||||
"quotaUser": {
|
||||
"type": "string",
|
||||
"description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.",
|
||||
"location": "query"
|
||||
},
|
||||
"userIp": {
|
||||
"type": "string",
|
||||
"description": "IP address of the site where the request originates. Use this if you want to enforce per-user limits.",
|
||||
"location": "query"
|
||||
}
|
||||
},
|
||||
"auth": {
|
||||
"oauth2": {
|
||||
"scopes": {
|
||||
"https://www.googleapis.com/auth/analytics": {
|
||||
"description": "View and manage your Google Analytics data"
|
||||
},
|
||||
"https://www.googleapis.com/auth/analytics.readonly": {
|
||||
"description": "View your Google Analytics data"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"resources": {
|
||||
"data": {
|
||||
"methods": {
|
||||
"get": {
|
||||
"id": "analytics.data.get",
|
||||
"path": "data",
|
||||
"httpMethod": "GET",
|
||||
"description": "Returns Analytics report data for a view (profile).",
|
||||
"parameters": {
|
||||
"dimensions": {
|
||||
"type": "string",
|
||||
"description": "A comma-separated list of Analytics dimensions. E.g., 'ga:browser,ga:city'.",
|
||||
"pattern": "(ga:.+)?",
|
||||
"location": "query"
|
||||
},
|
||||
"end-date": {
|
||||
"type": "string",
|
||||
"description": "End date for fetching report data. All requests should specify an end date formatted as YYYY-MM-DD.",
|
||||
"required": true,
|
||||
"pattern": "[0-9]{4}-[0-9]{2}-[0-9]{2}",
|
||||
"location": "query"
|
||||
},
|
||||
"filters": {
|
||||
"type": "string",
|
||||
"description": "A comma-separated list of dimension or metric filters to be applied to the report data.",
|
||||
"pattern": "ga:.+",
|
||||
"location": "query"
|
||||
},
|
||||
"ids": {
|
||||
"type": "string",
|
||||
"description": "Unique table ID for retrieving report data. Table ID is of the form ga:XXXX, where XXXX is the Analytics view (profile) ID.",
|
||||
"required": true,
|
||||
"pattern": "ga:[0-9]+",
|
||||
"location": "query"
|
||||
},
|
||||
"max-results": {
|
||||
"type": "integer",
|
||||
"description": "The maximum number of entries to include in this feed.",
|
||||
"format": "int32",
|
||||
"location": "query"
|
||||
},
|
||||
"metrics": {
|
||||
"type": "string",
|
||||
"description": "A comma-separated list of Analytics metrics. E.g., 'ga:sessions,ga:pageviews'. At least one metric must be specified to retrieve a valid Analytics report.",
|
||||
"required": true,
|
||||
"pattern": "ga:.+",
|
||||
"location": "query"
|
||||
},
|
||||
"segment": {
|
||||
"type": "string",
|
||||
"description": "An Analytics advanced segment to be applied to the report data.",
|
||||
"location": "query"
|
||||
},
|
||||
"sort": {
|
||||
"type": "string",
|
||||
"description": "A comma-separated list of dimensions or metrics that determine the sort order for the report data.",
|
||||
"pattern": "(-)?ga:.+",
|
||||
"location": "query"
|
||||
},
|
||||
"start-date": {
|
||||
"type": "string",
|
||||
"description": "Start date for fetching report data. All requests should specify a start date formatted as YYYY-MM-DD.",
|
||||
"required": true,
|
||||
"pattern": "[0-9]{4}-[0-9]{2}-[0-9]{2}",
|
||||
"location": "query"
|
||||
},
|
||||
"start-index": {
|
||||
"type": "integer",
|
||||
"description": "An index of the first entity to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.",
|
||||
"format": "int32",
|
||||
"minimum": "1",
|
||||
"location": "query"
|
||||
}
|
||||
},
|
||||
"parameterOrder": [
|
||||
"ids",
|
||||
"start-date",
|
||||
"end-date",
|
||||
"metrics"
|
||||
],
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/analytics",
|
||||
"https://www.googleapis.com/auth/analytics.readonly"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"management": {
|
||||
"resources": {
|
||||
"accounts": {
|
||||
"methods": {
|
||||
"list": {
|
||||
"id": "analytics.management.accounts.list",
|
||||
"path": "management/accounts",
|
||||
"httpMethod": "GET",
|
||||
"description": "Lists all accounts to which the user has access.",
|
||||
"parameters": {
|
||||
"max-results": {
|
||||
"type": "integer",
|
||||
"description": "The maximum number of accounts to include in this response.",
|
||||
"format": "int32",
|
||||
"location": "query"
|
||||
},
|
||||
"start-index": {
|
||||
"type": "integer",
|
||||
"description": "An index of the first account to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.",
|
||||
"format": "int32",
|
||||
"minimum": "1",
|
||||
"location": "query"
|
||||
}
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/analytics",
|
||||
"https://www.googleapis.com/auth/analytics.readonly"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"goals": {
|
||||
"methods": {
|
||||
"list": {
|
||||
"id": "analytics.management.goals.list",
|
||||
"path": "management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/goals",
|
||||
"httpMethod": "GET",
|
||||
"description": "Lists goals to which the user has access.",
|
||||
"parameters": {
|
||||
"accountId": {
|
||||
"type": "string",
|
||||
"description": "Account ID to retrieve goals for. Can either be a specific account ID or '~all', which refers to all the accounts that user has access to.",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
},
|
||||
"max-results": {
|
||||
"type": "integer",
|
||||
"description": "The maximum number of goals to include in this response.",
|
||||
"format": "int32",
|
||||
"location": "query"
|
||||
},
|
||||
"profileId": {
|
||||
"type": "string",
|
||||
"description": "View (Profile) ID to retrieve goals for. Can either be a specific view (profile) ID or '~all', which refers to all the views (profiles) that user has access to.",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
},
|
||||
"start-index": {
|
||||
"type": "integer",
|
||||
"description": "An index of the first goal to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.",
|
||||
"format": "int32",
|
||||
"minimum": "1",
|
||||
"location": "query"
|
||||
},
|
||||
"webPropertyId": {
|
||||
"type": "string",
|
||||
"description": "Web property ID to retrieve goals for. Can either be a specific web property ID or '~all', which refers to all the web properties that user has access to.",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
}
|
||||
},
|
||||
"parameterOrder": [
|
||||
"accountId",
|
||||
"webPropertyId",
|
||||
"profileId"
|
||||
],
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/analytics",
|
||||
"https://www.googleapis.com/auth/analytics.readonly"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"profiles": {
|
||||
"methods": {
|
||||
"list": {
|
||||
"id": "analytics.management.profiles.list",
|
||||
"path": "management/accounts/{accountId}/webproperties/{webPropertyId}/profiles",
|
||||
"httpMethod": "GET",
|
||||
"description": "Lists views (profiles) to which the user has access.",
|
||||
"parameters": {
|
||||
"accountId": {
|
||||
"type": "string",
|
||||
"description": "Account ID for the views (profiles) to retrieve. Can either be a specific account ID or '~all', which refers to all the accounts to which the user has access.",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
},
|
||||
"max-results": {
|
||||
"type": "integer",
|
||||
"description": "The maximum number of views (profiles) to include in this response.",
|
||||
"format": "int32",
|
||||
"location": "query"
|
||||
},
|
||||
"start-index": {
|
||||
"type": "integer",
|
||||
"description": "An index of the first entity to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.",
|
||||
"format": "int32",
|
||||
"minimum": "1",
|
||||
"location": "query"
|
||||
},
|
||||
"webPropertyId": {
|
||||
"type": "string",
|
||||
"description": "Web property ID for the views (profiles) to retrieve. Can either be a specific web property ID or '~all', which refers to all the web properties to which the user has access.",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
}
|
||||
},
|
||||
"parameterOrder": [
|
||||
"accountId",
|
||||
"webPropertyId"
|
||||
],
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/analytics",
|
||||
"https://www.googleapis.com/auth/analytics.readonly"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"segments": {
|
||||
"methods": {
|
||||
"list": {
|
||||
"id": "analytics.management.segments.list",
|
||||
"path": "management/segments",
|
||||
"httpMethod": "GET",
|
||||
"description": "Lists advanced segments to which the user has access.",
|
||||
"parameters": {
|
||||
"max-results": {
|
||||
"type": "integer",
|
||||
"description": "The maximum number of advanced segments to include in this response.",
|
||||
"format": "int32",
|
||||
"location": "query"
|
||||
},
|
||||
"start-index": {
|
||||
"type": "integer",
|
||||
"description": "An index of the first advanced segment to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.",
|
||||
"format": "int32",
|
||||
"minimum": "1",
|
||||
"location": "query"
|
||||
}
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/analytics",
|
||||
"https://www.googleapis.com/auth/analytics.readonly"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"webproperties": {
|
||||
"methods": {
|
||||
"list": {
|
||||
"id": "analytics.management.webproperties.list",
|
||||
"path": "management/accounts/{accountId}/webproperties",
|
||||
"httpMethod": "GET",
|
||||
"description": "Lists web properties to which the user has access.",
|
||||
"parameters": {
|
||||
"accountId": {
|
||||
"type": "string",
|
||||
"description": "Account ID to retrieve web properties for. Can either be a specific account ID or '~all', which refers to all the accounts that user has access to.",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
},
|
||||
"max-results": {
|
||||
"type": "integer",
|
||||
"description": "The maximum number of web properties to include in this response.",
|
||||
"format": "int32",
|
||||
"location": "query"
|
||||
},
|
||||
"start-index": {
|
||||
"type": "integer",
|
||||
"description": "An index of the first entity to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.",
|
||||
"format": "int32",
|
||||
"minimum": "1",
|
||||
"location": "query"
|
||||
}
|
||||
},
|
||||
"parameterOrder": [
|
||||
"accountId"
|
||||
],
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/analytics",
|
||||
"https://www.googleapis.com/auth/analytics.readonly"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
1067
vendor/google.golang.org/api/analytics/v2.4/analytics-gen.go
generated
vendored
Normal file
1067
vendor/google.golang.org/api/analytics/v2.4/analytics-gen.go
generated
vendored
Normal file
File diff suppressed because it is too large
Load diff
7220
vendor/google.golang.org/api/analytics/v3/analytics-api.json
generated
vendored
Normal file
7220
vendor/google.golang.org/api/analytics/v3/analytics-api.json
generated
vendored
Normal file
File diff suppressed because it is too large
Load diff
19082
vendor/google.golang.org/api/analytics/v3/analytics-gen.go
generated
vendored
Normal file
19082
vendor/google.golang.org/api/analytics/v3/analytics-gen.go
generated
vendored
Normal file
File diff suppressed because it is too large
Load diff
1163
vendor/google.golang.org/api/analyticsreporting/v4/analyticsreporting-api.json
generated
vendored
Normal file
1163
vendor/google.golang.org/api/analyticsreporting/v4/analyticsreporting-api.json
generated
vendored
Normal file
File diff suppressed because it is too large
Load diff
2146
vendor/google.golang.org/api/analyticsreporting/v4/analyticsreporting-gen.go
generated
vendored
Normal file
2146
vendor/google.golang.org/api/analyticsreporting/v4/analyticsreporting-gen.go
generated
vendored
Normal file
File diff suppressed because it is too large
Load diff
3953
vendor/google.golang.org/api/androidenterprise/v1/androidenterprise-api.json
generated
vendored
Normal file
3953
vendor/google.golang.org/api/androidenterprise/v1/androidenterprise-api.json
generated
vendored
Normal file
File diff suppressed because it is too large
Load diff
13913
vendor/google.golang.org/api/androidenterprise/v1/androidenterprise-gen.go
generated
vendored
Normal file
13913
vendor/google.golang.org/api/androidenterprise/v1/androidenterprise-gen.go
generated
vendored
Normal file
File diff suppressed because it is too large
Load diff
256
vendor/google.golang.org/api/androidpublisher/v1.1/androidpublisher-api.json
generated
vendored
Normal file
256
vendor/google.golang.org/api/androidpublisher/v1.1/androidpublisher-api.json
generated
vendored
Normal file
|
@ -0,0 +1,256 @@
|
|||
{
|
||||
"kind": "discovery#restDescription",
|
||||
"etag": "\"C5oy1hgQsABtYOYIOXWcR3BgYqU/pZoln3VTirzMcP9u12GQ--6eh1U\"",
|
||||
"discoveryVersion": "v1",
|
||||
"id": "androidpublisher:v1.1",
|
||||
"name": "androidpublisher",
|
||||
"canonicalName": "Android Publisher",
|
||||
"version": "v1.1",
|
||||
"revision": "20160722",
|
||||
"title": "Google Play Developer API",
|
||||
"description": "Lets Android application developers access their Google Play accounts.",
|
||||
"ownerDomain": "google.com",
|
||||
"ownerName": "Google",
|
||||
"icons": {
|
||||
"x16": "https://www.google.com/images/icons/product/android-16.png",
|
||||
"x32": "https://www.google.com/images/icons/product/android-32.png"
|
||||
},
|
||||
"documentationLink": "https://developers.google.com/android-publisher",
|
||||
"protocol": "rest",
|
||||
"baseUrl": "https://www.googleapis.com/androidpublisher/v1.1/applications/",
|
||||
"basePath": "/androidpublisher/v1.1/applications/",
|
||||
"rootUrl": "https://www.googleapis.com/",
|
||||
"servicePath": "androidpublisher/v1.1/applications/",
|
||||
"batchPath": "batch",
|
||||
"parameters": {
|
||||
"alt": {
|
||||
"type": "string",
|
||||
"description": "Data format for the response.",
|
||||
"default": "json",
|
||||
"enum": [
|
||||
"json"
|
||||
],
|
||||
"enumDescriptions": [
|
||||
"Responses with Content-Type of application/json"
|
||||
],
|
||||
"location": "query"
|
||||
},
|
||||
"fields": {
|
||||
"type": "string",
|
||||
"description": "Selector specifying which fields to include in a partial response.",
|
||||
"location": "query"
|
||||
},
|
||||
"key": {
|
||||
"type": "string",
|
||||
"description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.",
|
||||
"location": "query"
|
||||
},
|
||||
"oauth_token": {
|
||||
"type": "string",
|
||||
"description": "OAuth 2.0 token for the current user.",
|
||||
"location": "query"
|
||||
},
|
||||
"prettyPrint": {
|
||||
"type": "boolean",
|
||||
"description": "Returns response with indentations and line breaks.",
|
||||
"default": "true",
|
||||
"location": "query"
|
||||
},
|
||||
"quotaUser": {
|
||||
"type": "string",
|
||||
"description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.",
|
||||
"location": "query"
|
||||
},
|
||||
"userIp": {
|
||||
"type": "string",
|
||||
"description": "IP address of the site where the request originates. Use this if you want to enforce per-user limits.",
|
||||
"location": "query"
|
||||
}
|
||||
},
|
||||
"auth": {
|
||||
"oauth2": {
|
||||
"scopes": {
|
||||
"https://www.googleapis.com/auth/androidpublisher": {
|
||||
"description": "View and manage your Google Play Developer account"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"schemas": {
|
||||
"InappPurchase": {
|
||||
"id": "InappPurchase",
|
||||
"type": "object",
|
||||
"description": "An InappPurchase resource indicates the status of a user's inapp product purchase.",
|
||||
"properties": {
|
||||
"consumptionState": {
|
||||
"type": "integer",
|
||||
"description": "The consumption state of the inapp product. Possible values are: \n- Yet to be consumed \n- Consumed",
|
||||
"format": "int32"
|
||||
},
|
||||
"developerPayload": {
|
||||
"type": "string",
|
||||
"description": "A developer-specified string that contains supplemental information about an order."
|
||||
},
|
||||
"kind": {
|
||||
"type": "string",
|
||||
"description": "This kind represents an inappPurchase object in the androidpublisher service.",
|
||||
"default": "androidpublisher#inappPurchase"
|
||||
},
|
||||
"purchaseState": {
|
||||
"type": "integer",
|
||||
"description": "The purchase state of the order. Possible values are: \n- Purchased \n- Cancelled",
|
||||
"format": "int32"
|
||||
},
|
||||
"purchaseTime": {
|
||||
"type": "string",
|
||||
"description": "The time the product was purchased, in milliseconds since the epoch (Jan 1, 1970).",
|
||||
"format": "int64"
|
||||
}
|
||||
}
|
||||
},
|
||||
"SubscriptionPurchase": {
|
||||
"id": "SubscriptionPurchase",
|
||||
"type": "object",
|
||||
"description": "A SubscriptionPurchase resource indicates the status of a user's subscription purchase.",
|
||||
"properties": {
|
||||
"autoRenewing": {
|
||||
"type": "boolean",
|
||||
"description": "Whether the subscription will automatically be renewed when it reaches its current expiry time."
|
||||
},
|
||||
"initiationTimestampMsec": {
|
||||
"type": "string",
|
||||
"description": "Time at which the subscription was granted, in milliseconds since the Epoch.",
|
||||
"format": "int64"
|
||||
},
|
||||
"kind": {
|
||||
"type": "string",
|
||||
"description": "This kind represents a subscriptionPurchase object in the androidpublisher service.",
|
||||
"default": "androidpublisher#subscriptionPurchase"
|
||||
},
|
||||
"validUntilTimestampMsec": {
|
||||
"type": "string",
|
||||
"description": "Time at which the subscription will expire, in milliseconds since the Epoch.",
|
||||
"format": "int64"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"resources": {
|
||||
"inapppurchases": {
|
||||
"methods": {
|
||||
"get": {
|
||||
"id": "androidpublisher.inapppurchases.get",
|
||||
"path": "{packageName}/inapp/{productId}/purchases/{token}",
|
||||
"httpMethod": "GET",
|
||||
"description": "Checks the purchase and consumption status of an inapp item.",
|
||||
"parameters": {
|
||||
"packageName": {
|
||||
"type": "string",
|
||||
"description": "The package name of the application the inapp product was sold in (for example, 'com.some.thing').",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
},
|
||||
"productId": {
|
||||
"type": "string",
|
||||
"description": "The inapp product SKU (for example, 'com.some.thing.inapp1').",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
},
|
||||
"token": {
|
||||
"type": "string",
|
||||
"description": "The token provided to the user's device when the inapp product was purchased.",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
}
|
||||
},
|
||||
"parameterOrder": [
|
||||
"packageName",
|
||||
"productId",
|
||||
"token"
|
||||
],
|
||||
"response": {
|
||||
"$ref": "InappPurchase"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/androidpublisher"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"purchases": {
|
||||
"methods": {
|
||||
"cancel": {
|
||||
"id": "androidpublisher.purchases.cancel",
|
||||
"path": "{packageName}/subscriptions/{subscriptionId}/purchases/{token}/cancel",
|
||||
"httpMethod": "POST",
|
||||
"description": "Cancels a user's subscription purchase. The subscription remains valid until its expiration time.",
|
||||
"parameters": {
|
||||
"packageName": {
|
||||
"type": "string",
|
||||
"description": "The package name of the application for which this subscription was purchased (for example, 'com.some.thing').",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
},
|
||||
"subscriptionId": {
|
||||
"type": "string",
|
||||
"description": "The purchased subscription ID (for example, 'monthly001').",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
},
|
||||
"token": {
|
||||
"type": "string",
|
||||
"description": "The token provided to the user's device when the subscription was purchased.",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
}
|
||||
},
|
||||
"parameterOrder": [
|
||||
"packageName",
|
||||
"subscriptionId",
|
||||
"token"
|
||||
],
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/androidpublisher"
|
||||
]
|
||||
},
|
||||
"get": {
|
||||
"id": "androidpublisher.purchases.get",
|
||||
"path": "{packageName}/subscriptions/{subscriptionId}/purchases/{token}",
|
||||
"httpMethod": "GET",
|
||||
"description": "Checks whether a user's subscription purchase is valid and returns its expiry time.",
|
||||
"parameters": {
|
||||
"packageName": {
|
||||
"type": "string",
|
||||
"description": "The package name of the application for which this subscription was purchased (for example, 'com.some.thing').",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
},
|
||||
"subscriptionId": {
|
||||
"type": "string",
|
||||
"description": "The purchased subscription ID (for example, 'monthly001').",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
},
|
||||
"token": {
|
||||
"type": "string",
|
||||
"description": "The token provided to the user's device when the subscription was purchased.",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
}
|
||||
},
|
||||
"parameterOrder": [
|
||||
"packageName",
|
||||
"subscriptionId",
|
||||
"token"
|
||||
],
|
||||
"response": {
|
||||
"$ref": "SubscriptionPurchase"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/androidpublisher"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
629
vendor/google.golang.org/api/androidpublisher/v1.1/androidpublisher-gen.go
generated
vendored
Normal file
629
vendor/google.golang.org/api/androidpublisher/v1.1/androidpublisher-gen.go
generated
vendored
Normal file
|
@ -0,0 +1,629 @@
|
|||
// Package androidpublisher provides access to the Google Play Developer API.
|
||||
//
|
||||
// See https://developers.google.com/android-publisher
|
||||
//
|
||||
// Usage example:
|
||||
//
|
||||
// import "google.golang.org/api/androidpublisher/v1.1"
|
||||
// ...
|
||||
// androidpublisherService, err := androidpublisher.New(oauthHttpClient)
|
||||
package androidpublisher // import "google.golang.org/api/androidpublisher/v1.1"
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"fmt"
|
||||
context "golang.org/x/net/context"
|
||||
ctxhttp "golang.org/x/net/context/ctxhttp"
|
||||
gensupport "google.golang.org/api/gensupport"
|
||||
googleapi "google.golang.org/api/googleapi"
|
||||
"io"
|
||||
"net/http"
|
||||
"net/url"
|
||||
"strconv"
|
||||
"strings"
|
||||
)
|
||||
|
||||
// Always reference these packages, just in case the auto-generated code
|
||||
// below doesn't.
|
||||
var _ = bytes.NewBuffer
|
||||
var _ = strconv.Itoa
|
||||
var _ = fmt.Sprintf
|
||||
var _ = json.NewDecoder
|
||||
var _ = io.Copy
|
||||
var _ = url.Parse
|
||||
var _ = gensupport.MarshalJSON
|
||||
var _ = googleapi.Version
|
||||
var _ = errors.New
|
||||
var _ = strings.Replace
|
||||
var _ = context.Canceled
|
||||
var _ = ctxhttp.Do
|
||||
|
||||
const apiId = "androidpublisher:v1.1"
|
||||
const apiName = "androidpublisher"
|
||||
const apiVersion = "v1.1"
|
||||
const basePath = "https://www.googleapis.com/androidpublisher/v1.1/applications/"
|
||||
|
||||
// OAuth2 scopes used by this API.
|
||||
const (
|
||||
// View and manage your Google Play Developer account
|
||||
AndroidpublisherScope = "https://www.googleapis.com/auth/androidpublisher"
|
||||
)
|
||||
|
||||
func New(client *http.Client) (*Service, error) {
|
||||
if client == nil {
|
||||
return nil, errors.New("client is nil")
|
||||
}
|
||||
s := &Service{client: client, BasePath: basePath}
|
||||
s.Inapppurchases = NewInapppurchasesService(s)
|
||||
s.Purchases = NewPurchasesService(s)
|
||||
return s, nil
|
||||
}
|
||||
|
||||
type Service struct {
|
||||
client *http.Client
|
||||
BasePath string // API endpoint base URL
|
||||
UserAgent string // optional additional User-Agent fragment
|
||||
|
||||
Inapppurchases *InapppurchasesService
|
||||
|
||||
Purchases *PurchasesService
|
||||
}
|
||||
|
||||
func (s *Service) userAgent() string {
|
||||
if s.UserAgent == "" {
|
||||
return googleapi.UserAgent
|
||||
}
|
||||
return googleapi.UserAgent + " " + s.UserAgent
|
||||
}
|
||||
|
||||
func NewInapppurchasesService(s *Service) *InapppurchasesService {
|
||||
rs := &InapppurchasesService{s: s}
|
||||
return rs
|
||||
}
|
||||
|
||||
type InapppurchasesService struct {
|
||||
s *Service
|
||||
}
|
||||
|
||||
func NewPurchasesService(s *Service) *PurchasesService {
|
||||
rs := &PurchasesService{s: s}
|
||||
return rs
|
||||
}
|
||||
|
||||
type PurchasesService struct {
|
||||
s *Service
|
||||
}
|
||||
|
||||
// InappPurchase: An InappPurchase resource indicates the status of a
|
||||
// user's inapp product purchase.
|
||||
type InappPurchase struct {
|
||||
// ConsumptionState: The consumption state of the inapp product.
|
||||
// Possible values are:
|
||||
// - Yet to be consumed
|
||||
// - Consumed
|
||||
ConsumptionState int64 `json:"consumptionState,omitempty"`
|
||||
|
||||
// DeveloperPayload: A developer-specified string that contains
|
||||
// supplemental information about an order.
|
||||
DeveloperPayload string `json:"developerPayload,omitempty"`
|
||||
|
||||
// Kind: This kind represents an inappPurchase object in the
|
||||
// androidpublisher service.
|
||||
Kind string `json:"kind,omitempty"`
|
||||
|
||||
// PurchaseState: The purchase state of the order. Possible values are:
|
||||
//
|
||||
// - Purchased
|
||||
// - Cancelled
|
||||
PurchaseState int64 `json:"purchaseState,omitempty"`
|
||||
|
||||
// PurchaseTime: The time the product was purchased, in milliseconds
|
||||
// since the epoch (Jan 1, 1970).
|
||||
PurchaseTime int64 `json:"purchaseTime,omitempty,string"`
|
||||
|
||||
// ServerResponse contains the HTTP response code and headers from the
|
||||
// server.
|
||||
googleapi.ServerResponse `json:"-"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "ConsumptionState") to
|
||||
// unconditionally include in API requests. By default, fields with
|
||||
// empty values are omitted from API requests. However, any non-pointer,
|
||||
// non-interface field appearing in ForceSendFields will be sent to the
|
||||
// server regardless of whether the field is empty or not. This may be
|
||||
// used to include empty fields in Patch requests.
|
||||
ForceSendFields []string `json:"-"`
|
||||
|
||||
// NullFields is a list of field names (e.g. "ConsumptionState") to
|
||||
// include in API requests with the JSON null value. By default, fields
|
||||
// with empty values are omitted from API requests. However, any field
|
||||
// with an empty value appearing in NullFields will be sent to the
|
||||
// server as null. It is an error if a field in this list has a
|
||||
// non-empty value. This may be used to include null fields in Patch
|
||||
// requests.
|
||||
NullFields []string `json:"-"`
|
||||
}
|
||||
|
||||
func (s *InappPurchase) MarshalJSON() ([]byte, error) {
|
||||
type noMethod InappPurchase
|
||||
raw := noMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// SubscriptionPurchase: A SubscriptionPurchase resource indicates the
|
||||
// status of a user's subscription purchase.
|
||||
type SubscriptionPurchase struct {
|
||||
// AutoRenewing: Whether the subscription will automatically be renewed
|
||||
// when it reaches its current expiry time.
|
||||
AutoRenewing bool `json:"autoRenewing,omitempty"`
|
||||
|
||||
// InitiationTimestampMsec: Time at which the subscription was granted,
|
||||
// in milliseconds since the Epoch.
|
||||
InitiationTimestampMsec int64 `json:"initiationTimestampMsec,omitempty,string"`
|
||||
|
||||
// Kind: This kind represents a subscriptionPurchase object in the
|
||||
// androidpublisher service.
|
||||
Kind string `json:"kind,omitempty"`
|
||||
|
||||
// ValidUntilTimestampMsec: Time at which the subscription will expire,
|
||||
// in milliseconds since the Epoch.
|
||||
ValidUntilTimestampMsec int64 `json:"validUntilTimestampMsec,omitempty,string"`
|
||||
|
||||
// ServerResponse contains the HTTP response code and headers from the
|
||||
// server.
|
||||
googleapi.ServerResponse `json:"-"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "AutoRenewing") to
|
||||
// unconditionally include in API requests. By default, fields with
|
||||
// empty values are omitted from API requests. However, any non-pointer,
|
||||
// non-interface field appearing in ForceSendFields will be sent to the
|
||||
// server regardless of whether the field is empty or not. This may be
|
||||
// used to include empty fields in Patch requests.
|
||||
ForceSendFields []string `json:"-"`
|
||||
|
||||
// NullFields is a list of field names (e.g. "AutoRenewing") to include
|
||||
// in API requests with the JSON null value. By default, fields with
|
||||
// empty values are omitted from API requests. However, any field with
|
||||
// an empty value appearing in NullFields will be sent to the server as
|
||||
// null. It is an error if a field in this list has a non-empty value.
|
||||
// This may be used to include null fields in Patch requests.
|
||||
NullFields []string `json:"-"`
|
||||
}
|
||||
|
||||
func (s *SubscriptionPurchase) MarshalJSON() ([]byte, error) {
|
||||
type noMethod SubscriptionPurchase
|
||||
raw := noMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// method id "androidpublisher.inapppurchases.get":
|
||||
|
||||
type InapppurchasesGetCall struct {
|
||||
s *Service
|
||||
packageName string
|
||||
productId string
|
||||
token string
|
||||
urlParams_ gensupport.URLParams
|
||||
ifNoneMatch_ string
|
||||
ctx_ context.Context
|
||||
header_ http.Header
|
||||
}
|
||||
|
||||
// Get: Checks the purchase and consumption status of an inapp item.
|
||||
func (r *InapppurchasesService) Get(packageName string, productId string, token string) *InapppurchasesGetCall {
|
||||
c := &InapppurchasesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.packageName = packageName
|
||||
c.productId = productId
|
||||
c.token = token
|
||||
return c
|
||||
}
|
||||
|
||||
// Fields allows partial responses to be retrieved. See
|
||||
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
|
||||
// for more information.
|
||||
func (c *InapppurchasesGetCall) Fields(s ...googleapi.Field) *InapppurchasesGetCall {
|
||||
c.urlParams_.Set("fields", googleapi.CombineFields(s))
|
||||
return c
|
||||
}
|
||||
|
||||
// IfNoneMatch sets the optional parameter which makes the operation
|
||||
// fail if the object's ETag matches the given value. This is useful for
|
||||
// getting updates only after the object has changed since the last
|
||||
// request. Use googleapi.IsNotModified to check whether the response
|
||||
// error from Do is the result of In-None-Match.
|
||||
func (c *InapppurchasesGetCall) IfNoneMatch(entityTag string) *InapppurchasesGetCall {
|
||||
c.ifNoneMatch_ = entityTag
|
||||
return c
|
||||
}
|
||||
|
||||
// Context sets the context to be used in this call's Do method. Any
|
||||
// pending HTTP request will be aborted if the provided context is
|
||||
// canceled.
|
||||
func (c *InapppurchasesGetCall) Context(ctx context.Context) *InapppurchasesGetCall {
|
||||
c.ctx_ = ctx
|
||||
return c
|
||||
}
|
||||
|
||||
// Header returns an http.Header that can be modified by the caller to
|
||||
// add HTTP headers to the request.
|
||||
func (c *InapppurchasesGetCall) Header() http.Header {
|
||||
if c.header_ == nil {
|
||||
c.header_ = make(http.Header)
|
||||
}
|
||||
return c.header_
|
||||
}
|
||||
|
||||
func (c *InapppurchasesGetCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
reqHeaders.Set("User-Agent", c.s.userAgent())
|
||||
if c.ifNoneMatch_ != "" {
|
||||
reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
|
||||
}
|
||||
var body io.Reader = nil
|
||||
c.urlParams_.Set("alt", alt)
|
||||
urls := googleapi.ResolveRelative(c.s.BasePath, "{packageName}/inapp/{productId}/purchases/{token}")
|
||||
urls += "?" + c.urlParams_.Encode()
|
||||
req, _ := http.NewRequest("GET", urls, body)
|
||||
req.Header = reqHeaders
|
||||
googleapi.Expand(req.URL, map[string]string{
|
||||
"packageName": c.packageName,
|
||||
"productId": c.productId,
|
||||
"token": c.token,
|
||||
})
|
||||
return gensupport.SendRequest(c.ctx_, c.s.client, req)
|
||||
}
|
||||
|
||||
// Do executes the "androidpublisher.inapppurchases.get" call.
|
||||
// Exactly one of *InappPurchase or error will be non-nil. Any non-2xx
|
||||
// status code is an error. Response headers are in either
|
||||
// *InappPurchase.ServerResponse.Header or (if a response was returned
|
||||
// at all) in error.(*googleapi.Error).Header. Use
|
||||
// googleapi.IsNotModified to check whether the returned error was
|
||||
// because http.StatusNotModified was returned.
|
||||
func (c *InapppurchasesGetCall) Do(opts ...googleapi.CallOption) (*InappPurchase, error) {
|
||||
gensupport.SetOptions(c.urlParams_, opts...)
|
||||
res, err := c.doRequest("json")
|
||||
if res != nil && res.StatusCode == http.StatusNotModified {
|
||||
if res.Body != nil {
|
||||
res.Body.Close()
|
||||
}
|
||||
return nil, &googleapi.Error{
|
||||
Code: res.StatusCode,
|
||||
Header: res.Header,
|
||||
}
|
||||
}
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
defer googleapi.CloseBody(res)
|
||||
if err := googleapi.CheckResponse(res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
ret := &InappPurchase{
|
||||
ServerResponse: googleapi.ServerResponse{
|
||||
Header: res.Header,
|
||||
HTTPStatusCode: res.StatusCode,
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
// {
|
||||
// "description": "Checks the purchase and consumption status of an inapp item.",
|
||||
// "httpMethod": "GET",
|
||||
// "id": "androidpublisher.inapppurchases.get",
|
||||
// "parameterOrder": [
|
||||
// "packageName",
|
||||
// "productId",
|
||||
// "token"
|
||||
// ],
|
||||
// "parameters": {
|
||||
// "packageName": {
|
||||
// "description": "The package name of the application the inapp product was sold in (for example, 'com.some.thing').",
|
||||
// "location": "path",
|
||||
// "required": true,
|
||||
// "type": "string"
|
||||
// },
|
||||
// "productId": {
|
||||
// "description": "The inapp product SKU (for example, 'com.some.thing.inapp1').",
|
||||
// "location": "path",
|
||||
// "required": true,
|
||||
// "type": "string"
|
||||
// },
|
||||
// "token": {
|
||||
// "description": "The token provided to the user's device when the inapp product was purchased.",
|
||||
// "location": "path",
|
||||
// "required": true,
|
||||
// "type": "string"
|
||||
// }
|
||||
// },
|
||||
// "path": "{packageName}/inapp/{productId}/purchases/{token}",
|
||||
// "response": {
|
||||
// "$ref": "InappPurchase"
|
||||
// },
|
||||
// "scopes": [
|
||||
// "https://www.googleapis.com/auth/androidpublisher"
|
||||
// ]
|
||||
// }
|
||||
|
||||
}
|
||||
|
||||
// method id "androidpublisher.purchases.cancel":
|
||||
|
||||
type PurchasesCancelCall struct {
|
||||
s *Service
|
||||
packageName string
|
||||
subscriptionId string
|
||||
token string
|
||||
urlParams_ gensupport.URLParams
|
||||
ctx_ context.Context
|
||||
header_ http.Header
|
||||
}
|
||||
|
||||
// Cancel: Cancels a user's subscription purchase. The subscription
|
||||
// remains valid until its expiration time.
|
||||
func (r *PurchasesService) Cancel(packageName string, subscriptionId string, token string) *PurchasesCancelCall {
|
||||
c := &PurchasesCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.packageName = packageName
|
||||
c.subscriptionId = subscriptionId
|
||||
c.token = token
|
||||
return c
|
||||
}
|
||||
|
||||
// Fields allows partial responses to be retrieved. See
|
||||
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
|
||||
// for more information.
|
||||
func (c *PurchasesCancelCall) Fields(s ...googleapi.Field) *PurchasesCancelCall {
|
||||
c.urlParams_.Set("fields", googleapi.CombineFields(s))
|
||||
return c
|
||||
}
|
||||
|
||||
// Context sets the context to be used in this call's Do method. Any
|
||||
// pending HTTP request will be aborted if the provided context is
|
||||
// canceled.
|
||||
func (c *PurchasesCancelCall) Context(ctx context.Context) *PurchasesCancelCall {
|
||||
c.ctx_ = ctx
|
||||
return c
|
||||
}
|
||||
|
||||
// Header returns an http.Header that can be modified by the caller to
|
||||
// add HTTP headers to the request.
|
||||
func (c *PurchasesCancelCall) Header() http.Header {
|
||||
if c.header_ == nil {
|
||||
c.header_ = make(http.Header)
|
||||
}
|
||||
return c.header_
|
||||
}
|
||||
|
||||
func (c *PurchasesCancelCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
reqHeaders.Set("User-Agent", c.s.userAgent())
|
||||
var body io.Reader = nil
|
||||
c.urlParams_.Set("alt", alt)
|
||||
urls := googleapi.ResolveRelative(c.s.BasePath, "{packageName}/subscriptions/{subscriptionId}/purchases/{token}/cancel")
|
||||
urls += "?" + c.urlParams_.Encode()
|
||||
req, _ := http.NewRequest("POST", urls, body)
|
||||
req.Header = reqHeaders
|
||||
googleapi.Expand(req.URL, map[string]string{
|
||||
"packageName": c.packageName,
|
||||
"subscriptionId": c.subscriptionId,
|
||||
"token": c.token,
|
||||
})
|
||||
return gensupport.SendRequest(c.ctx_, c.s.client, req)
|
||||
}
|
||||
|
||||
// Do executes the "androidpublisher.purchases.cancel" call.
|
||||
func (c *PurchasesCancelCall) Do(opts ...googleapi.CallOption) error {
|
||||
gensupport.SetOptions(c.urlParams_, opts...)
|
||||
res, err := c.doRequest("json")
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
defer googleapi.CloseBody(res)
|
||||
if err := googleapi.CheckResponse(res); err != nil {
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
// {
|
||||
// "description": "Cancels a user's subscription purchase. The subscription remains valid until its expiration time.",
|
||||
// "httpMethod": "POST",
|
||||
// "id": "androidpublisher.purchases.cancel",
|
||||
// "parameterOrder": [
|
||||
// "packageName",
|
||||
// "subscriptionId",
|
||||
// "token"
|
||||
// ],
|
||||
// "parameters": {
|
||||
// "packageName": {
|
||||
// "description": "The package name of the application for which this subscription was purchased (for example, 'com.some.thing').",
|
||||
// "location": "path",
|
||||
// "required": true,
|
||||
// "type": "string"
|
||||
// },
|
||||
// "subscriptionId": {
|
||||
// "description": "The purchased subscription ID (for example, 'monthly001').",
|
||||
// "location": "path",
|
||||
// "required": true,
|
||||
// "type": "string"
|
||||
// },
|
||||
// "token": {
|
||||
// "description": "The token provided to the user's device when the subscription was purchased.",
|
||||
// "location": "path",
|
||||
// "required": true,
|
||||
// "type": "string"
|
||||
// }
|
||||
// },
|
||||
// "path": "{packageName}/subscriptions/{subscriptionId}/purchases/{token}/cancel",
|
||||
// "scopes": [
|
||||
// "https://www.googleapis.com/auth/androidpublisher"
|
||||
// ]
|
||||
// }
|
||||
|
||||
}
|
||||
|
||||
// method id "androidpublisher.purchases.get":
|
||||
|
||||
type PurchasesGetCall struct {
|
||||
s *Service
|
||||
packageName string
|
||||
subscriptionId string
|
||||
token string
|
||||
urlParams_ gensupport.URLParams
|
||||
ifNoneMatch_ string
|
||||
ctx_ context.Context
|
||||
header_ http.Header
|
||||
}
|
||||
|
||||
// Get: Checks whether a user's subscription purchase is valid and
|
||||
// returns its expiry time.
|
||||
func (r *PurchasesService) Get(packageName string, subscriptionId string, token string) *PurchasesGetCall {
|
||||
c := &PurchasesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.packageName = packageName
|
||||
c.subscriptionId = subscriptionId
|
||||
c.token = token
|
||||
return c
|
||||
}
|
||||
|
||||
// Fields allows partial responses to be retrieved. See
|
||||
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
|
||||
// for more information.
|
||||
func (c *PurchasesGetCall) Fields(s ...googleapi.Field) *PurchasesGetCall {
|
||||
c.urlParams_.Set("fields", googleapi.CombineFields(s))
|
||||
return c
|
||||
}
|
||||
|
||||
// IfNoneMatch sets the optional parameter which makes the operation
|
||||
// fail if the object's ETag matches the given value. This is useful for
|
||||
// getting updates only after the object has changed since the last
|
||||
// request. Use googleapi.IsNotModified to check whether the response
|
||||
// error from Do is the result of In-None-Match.
|
||||
func (c *PurchasesGetCall) IfNoneMatch(entityTag string) *PurchasesGetCall {
|
||||
c.ifNoneMatch_ = entityTag
|
||||
return c
|
||||
}
|
||||
|
||||
// Context sets the context to be used in this call's Do method. Any
|
||||
// pending HTTP request will be aborted if the provided context is
|
||||
// canceled.
|
||||
func (c *PurchasesGetCall) Context(ctx context.Context) *PurchasesGetCall {
|
||||
c.ctx_ = ctx
|
||||
return c
|
||||
}
|
||||
|
||||
// Header returns an http.Header that can be modified by the caller to
|
||||
// add HTTP headers to the request.
|
||||
func (c *PurchasesGetCall) Header() http.Header {
|
||||
if c.header_ == nil {
|
||||
c.header_ = make(http.Header)
|
||||
}
|
||||
return c.header_
|
||||
}
|
||||
|
||||
func (c *PurchasesGetCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
reqHeaders.Set("User-Agent", c.s.userAgent())
|
||||
if c.ifNoneMatch_ != "" {
|
||||
reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
|
||||
}
|
||||
var body io.Reader = nil
|
||||
c.urlParams_.Set("alt", alt)
|
||||
urls := googleapi.ResolveRelative(c.s.BasePath, "{packageName}/subscriptions/{subscriptionId}/purchases/{token}")
|
||||
urls += "?" + c.urlParams_.Encode()
|
||||
req, _ := http.NewRequest("GET", urls, body)
|
||||
req.Header = reqHeaders
|
||||
googleapi.Expand(req.URL, map[string]string{
|
||||
"packageName": c.packageName,
|
||||
"subscriptionId": c.subscriptionId,
|
||||
"token": c.token,
|
||||
})
|
||||
return gensupport.SendRequest(c.ctx_, c.s.client, req)
|
||||
}
|
||||
|
||||
// Do executes the "androidpublisher.purchases.get" call.
|
||||
// Exactly one of *SubscriptionPurchase or error will be non-nil. Any
|
||||
// non-2xx status code is an error. Response headers are in either
|
||||
// *SubscriptionPurchase.ServerResponse.Header or (if a response was
|
||||
// returned at all) in error.(*googleapi.Error).Header. Use
|
||||
// googleapi.IsNotModified to check whether the returned error was
|
||||
// because http.StatusNotModified was returned.
|
||||
func (c *PurchasesGetCall) Do(opts ...googleapi.CallOption) (*SubscriptionPurchase, error) {
|
||||
gensupport.SetOptions(c.urlParams_, opts...)
|
||||
res, err := c.doRequest("json")
|
||||
if res != nil && res.StatusCode == http.StatusNotModified {
|
||||
if res.Body != nil {
|
||||
res.Body.Close()
|
||||
}
|
||||
return nil, &googleapi.Error{
|
||||
Code: res.StatusCode,
|
||||
Header: res.Header,
|
||||
}
|
||||
}
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
defer googleapi.CloseBody(res)
|
||||
if err := googleapi.CheckResponse(res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
ret := &SubscriptionPurchase{
|
||||
ServerResponse: googleapi.ServerResponse{
|
||||
Header: res.Header,
|
||||
HTTPStatusCode: res.StatusCode,
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
// {
|
||||
// "description": "Checks whether a user's subscription purchase is valid and returns its expiry time.",
|
||||
// "httpMethod": "GET",
|
||||
// "id": "androidpublisher.purchases.get",
|
||||
// "parameterOrder": [
|
||||
// "packageName",
|
||||
// "subscriptionId",
|
||||
// "token"
|
||||
// ],
|
||||
// "parameters": {
|
||||
// "packageName": {
|
||||
// "description": "The package name of the application for which this subscription was purchased (for example, 'com.some.thing').",
|
||||
// "location": "path",
|
||||
// "required": true,
|
||||
// "type": "string"
|
||||
// },
|
||||
// "subscriptionId": {
|
||||
// "description": "The purchased subscription ID (for example, 'monthly001').",
|
||||
// "location": "path",
|
||||
// "required": true,
|
||||
// "type": "string"
|
||||
// },
|
||||
// "token": {
|
||||
// "description": "The token provided to the user's device when the subscription was purchased.",
|
||||
// "location": "path",
|
||||
// "required": true,
|
||||
// "type": "string"
|
||||
// }
|
||||
// },
|
||||
// "path": "{packageName}/subscriptions/{subscriptionId}/purchases/{token}",
|
||||
// "response": {
|
||||
// "$ref": "SubscriptionPurchase"
|
||||
// },
|
||||
// "scopes": [
|
||||
// "https://www.googleapis.com/auth/androidpublisher"
|
||||
// ]
|
||||
// }
|
||||
|
||||
}
|
184
vendor/google.golang.org/api/androidpublisher/v1/androidpublisher-api.json
generated
vendored
Normal file
184
vendor/google.golang.org/api/androidpublisher/v1/androidpublisher-api.json
generated
vendored
Normal file
|
@ -0,0 +1,184 @@
|
|||
{
|
||||
"kind": "discovery#restDescription",
|
||||
"etag": "\"C5oy1hgQsABtYOYIOXWcR3BgYqU/-S9kxgdQT4cuFfcjtElZbFgO3uc\"",
|
||||
"discoveryVersion": "v1",
|
||||
"id": "androidpublisher:v1",
|
||||
"name": "androidpublisher",
|
||||
"canonicalName": "Android Publisher",
|
||||
"version": "v1",
|
||||
"revision": "20160722",
|
||||
"title": "Google Play Developer API",
|
||||
"description": "Lets Android application developers access their Google Play accounts.",
|
||||
"ownerDomain": "google.com",
|
||||
"ownerName": "Google",
|
||||
"icons": {
|
||||
"x16": "https://www.google.com/images/icons/product/android-16.png",
|
||||
"x32": "https://www.google.com/images/icons/product/android-32.png"
|
||||
},
|
||||
"documentationLink": "https://developers.google.com/android-publisher",
|
||||
"protocol": "rest",
|
||||
"baseUrl": "https://www.googleapis.com/androidpublisher/v1/applications/",
|
||||
"basePath": "/androidpublisher/v1/applications/",
|
||||
"rootUrl": "https://www.googleapis.com/",
|
||||
"servicePath": "androidpublisher/v1/applications/",
|
||||
"batchPath": "batch",
|
||||
"parameters": {
|
||||
"alt": {
|
||||
"type": "string",
|
||||
"description": "Data format for the response.",
|
||||
"default": "json",
|
||||
"enum": [
|
||||
"json"
|
||||
],
|
||||
"enumDescriptions": [
|
||||
"Responses with Content-Type of application/json"
|
||||
],
|
||||
"location": "query"
|
||||
},
|
||||
"fields": {
|
||||
"type": "string",
|
||||
"description": "Selector specifying which fields to include in a partial response.",
|
||||
"location": "query"
|
||||
},
|
||||
"key": {
|
||||
"type": "string",
|
||||
"description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.",
|
||||
"location": "query"
|
||||
},
|
||||
"oauth_token": {
|
||||
"type": "string",
|
||||
"description": "OAuth 2.0 token for the current user.",
|
||||
"location": "query"
|
||||
},
|
||||
"prettyPrint": {
|
||||
"type": "boolean",
|
||||
"description": "Returns response with indentations and line breaks.",
|
||||
"default": "true",
|
||||
"location": "query"
|
||||
},
|
||||
"quotaUser": {
|
||||
"type": "string",
|
||||
"description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.",
|
||||
"location": "query"
|
||||
},
|
||||
"userIp": {
|
||||
"type": "string",
|
||||
"description": "IP address of the site where the request originates. Use this if you want to enforce per-user limits.",
|
||||
"location": "query"
|
||||
}
|
||||
},
|
||||
"auth": {
|
||||
"oauth2": {
|
||||
"scopes": {
|
||||
"https://www.googleapis.com/auth/androidpublisher": {
|
||||
"description": "View and manage your Google Play Developer account"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"schemas": {
|
||||
"SubscriptionPurchase": {
|
||||
"id": "SubscriptionPurchase",
|
||||
"type": "object",
|
||||
"description": "A SubscriptionPurchase resource indicates the status of a user's subscription purchase.",
|
||||
"properties": {
|
||||
"autoRenewing": {
|
||||
"type": "boolean",
|
||||
"description": "Whether the subscription will automatically be renewed when it reaches its current expiry time."
|
||||
},
|
||||
"initiationTimestampMsec": {
|
||||
"type": "string",
|
||||
"description": "Time at which the subscription was granted, in milliseconds since the Epoch.",
|
||||
"format": "int64"
|
||||
},
|
||||
"kind": {
|
||||
"type": "string",
|
||||
"description": "This kind represents a subscriptionPurchase object in the androidpublisher service.",
|
||||
"default": "androidpublisher#subscriptionPurchase"
|
||||
},
|
||||
"validUntilTimestampMsec": {
|
||||
"type": "string",
|
||||
"description": "Time at which the subscription will expire, in milliseconds since the Epoch.",
|
||||
"format": "int64"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"resources": {
|
||||
"purchases": {
|
||||
"methods": {
|
||||
"cancel": {
|
||||
"id": "androidpublisher.purchases.cancel",
|
||||
"path": "{packageName}/subscriptions/{subscriptionId}/purchases/{token}/cancel",
|
||||
"httpMethod": "POST",
|
||||
"description": "Cancels a user's subscription purchase. The subscription remains valid until its expiration time.",
|
||||
"parameters": {
|
||||
"packageName": {
|
||||
"type": "string",
|
||||
"description": "The package name of the application for which this subscription was purchased (for example, 'com.some.thing').",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
},
|
||||
"subscriptionId": {
|
||||
"type": "string",
|
||||
"description": "The purchased subscription ID (for example, 'monthly001').",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
},
|
||||
"token": {
|
||||
"type": "string",
|
||||
"description": "The token provided to the user's device when the subscription was purchased.",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
}
|
||||
},
|
||||
"parameterOrder": [
|
||||
"packageName",
|
||||
"subscriptionId",
|
||||
"token"
|
||||
],
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/androidpublisher"
|
||||
]
|
||||
},
|
||||
"get": {
|
||||
"id": "androidpublisher.purchases.get",
|
||||
"path": "{packageName}/subscriptions/{subscriptionId}/purchases/{token}",
|
||||
"httpMethod": "GET",
|
||||
"description": "Checks whether a user's subscription purchase is valid and returns its expiry time.",
|
||||
"parameters": {
|
||||
"packageName": {
|
||||
"type": "string",
|
||||
"description": "The package name of the application for which this subscription was purchased (for example, 'com.some.thing').",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
},
|
||||
"subscriptionId": {
|
||||
"type": "string",
|
||||
"description": "The purchased subscription ID (for example, 'monthly001').",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
},
|
||||
"token": {
|
||||
"type": "string",
|
||||
"description": "The token provided to the user's device when the subscription was purchased.",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
}
|
||||
},
|
||||
"parameterOrder": [
|
||||
"packageName",
|
||||
"subscriptionId",
|
||||
"token"
|
||||
],
|
||||
"response": {
|
||||
"$ref": "SubscriptionPurchase"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/androidpublisher"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
405
vendor/google.golang.org/api/androidpublisher/v1/androidpublisher-gen.go
generated
vendored
Normal file
405
vendor/google.golang.org/api/androidpublisher/v1/androidpublisher-gen.go
generated
vendored
Normal file
|
@ -0,0 +1,405 @@
|
|||
// Package androidpublisher provides access to the Google Play Developer API.
|
||||
//
|
||||
// See https://developers.google.com/android-publisher
|
||||
//
|
||||
// Usage example:
|
||||
//
|
||||
// import "google.golang.org/api/androidpublisher/v1"
|
||||
// ...
|
||||
// androidpublisherService, err := androidpublisher.New(oauthHttpClient)
|
||||
package androidpublisher // import "google.golang.org/api/androidpublisher/v1"
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"fmt"
|
||||
context "golang.org/x/net/context"
|
||||
ctxhttp "golang.org/x/net/context/ctxhttp"
|
||||
gensupport "google.golang.org/api/gensupport"
|
||||
googleapi "google.golang.org/api/googleapi"
|
||||
"io"
|
||||
"net/http"
|
||||
"net/url"
|
||||
"strconv"
|
||||
"strings"
|
||||
)
|
||||
|
||||
// Always reference these packages, just in case the auto-generated code
|
||||
// below doesn't.
|
||||
var _ = bytes.NewBuffer
|
||||
var _ = strconv.Itoa
|
||||
var _ = fmt.Sprintf
|
||||
var _ = json.NewDecoder
|
||||
var _ = io.Copy
|
||||
var _ = url.Parse
|
||||
var _ = gensupport.MarshalJSON
|
||||
var _ = googleapi.Version
|
||||
var _ = errors.New
|
||||
var _ = strings.Replace
|
||||
var _ = context.Canceled
|
||||
var _ = ctxhttp.Do
|
||||
|
||||
const apiId = "androidpublisher:v1"
|
||||
const apiName = "androidpublisher"
|
||||
const apiVersion = "v1"
|
||||
const basePath = "https://www.googleapis.com/androidpublisher/v1/applications/"
|
||||
|
||||
// OAuth2 scopes used by this API.
|
||||
const (
|
||||
// View and manage your Google Play Developer account
|
||||
AndroidpublisherScope = "https://www.googleapis.com/auth/androidpublisher"
|
||||
)
|
||||
|
||||
func New(client *http.Client) (*Service, error) {
|
||||
if client == nil {
|
||||
return nil, errors.New("client is nil")
|
||||
}
|
||||
s := &Service{client: client, BasePath: basePath}
|
||||
s.Purchases = NewPurchasesService(s)
|
||||
return s, nil
|
||||
}
|
||||
|
||||
type Service struct {
|
||||
client *http.Client
|
||||
BasePath string // API endpoint base URL
|
||||
UserAgent string // optional additional User-Agent fragment
|
||||
|
||||
Purchases *PurchasesService
|
||||
}
|
||||
|
||||
func (s *Service) userAgent() string {
|
||||
if s.UserAgent == "" {
|
||||
return googleapi.UserAgent
|
||||
}
|
||||
return googleapi.UserAgent + " " + s.UserAgent
|
||||
}
|
||||
|
||||
func NewPurchasesService(s *Service) *PurchasesService {
|
||||
rs := &PurchasesService{s: s}
|
||||
return rs
|
||||
}
|
||||
|
||||
type PurchasesService struct {
|
||||
s *Service
|
||||
}
|
||||
|
||||
// SubscriptionPurchase: A SubscriptionPurchase resource indicates the
|
||||
// status of a user's subscription purchase.
|
||||
type SubscriptionPurchase struct {
|
||||
// AutoRenewing: Whether the subscription will automatically be renewed
|
||||
// when it reaches its current expiry time.
|
||||
AutoRenewing bool `json:"autoRenewing,omitempty"`
|
||||
|
||||
// InitiationTimestampMsec: Time at which the subscription was granted,
|
||||
// in milliseconds since the Epoch.
|
||||
InitiationTimestampMsec int64 `json:"initiationTimestampMsec,omitempty,string"`
|
||||
|
||||
// Kind: This kind represents a subscriptionPurchase object in the
|
||||
// androidpublisher service.
|
||||
Kind string `json:"kind,omitempty"`
|
||||
|
||||
// ValidUntilTimestampMsec: Time at which the subscription will expire,
|
||||
// in milliseconds since the Epoch.
|
||||
ValidUntilTimestampMsec int64 `json:"validUntilTimestampMsec,omitempty,string"`
|
||||
|
||||
// ServerResponse contains the HTTP response code and headers from the
|
||||
// server.
|
||||
googleapi.ServerResponse `json:"-"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "AutoRenewing") to
|
||||
// unconditionally include in API requests. By default, fields with
|
||||
// empty values are omitted from API requests. However, any non-pointer,
|
||||
// non-interface field appearing in ForceSendFields will be sent to the
|
||||
// server regardless of whether the field is empty or not. This may be
|
||||
// used to include empty fields in Patch requests.
|
||||
ForceSendFields []string `json:"-"`
|
||||
|
||||
// NullFields is a list of field names (e.g. "AutoRenewing") to include
|
||||
// in API requests with the JSON null value. By default, fields with
|
||||
// empty values are omitted from API requests. However, any field with
|
||||
// an empty value appearing in NullFields will be sent to the server as
|
||||
// null. It is an error if a field in this list has a non-empty value.
|
||||
// This may be used to include null fields in Patch requests.
|
||||
NullFields []string `json:"-"`
|
||||
}
|
||||
|
||||
func (s *SubscriptionPurchase) MarshalJSON() ([]byte, error) {
|
||||
type noMethod SubscriptionPurchase
|
||||
raw := noMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// method id "androidpublisher.purchases.cancel":
|
||||
|
||||
type PurchasesCancelCall struct {
|
||||
s *Service
|
||||
packageName string
|
||||
subscriptionId string
|
||||
token string
|
||||
urlParams_ gensupport.URLParams
|
||||
ctx_ context.Context
|
||||
header_ http.Header
|
||||
}
|
||||
|
||||
// Cancel: Cancels a user's subscription purchase. The subscription
|
||||
// remains valid until its expiration time.
|
||||
func (r *PurchasesService) Cancel(packageName string, subscriptionId string, token string) *PurchasesCancelCall {
|
||||
c := &PurchasesCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.packageName = packageName
|
||||
c.subscriptionId = subscriptionId
|
||||
c.token = token
|
||||
return c
|
||||
}
|
||||
|
||||
// Fields allows partial responses to be retrieved. See
|
||||
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
|
||||
// for more information.
|
||||
func (c *PurchasesCancelCall) Fields(s ...googleapi.Field) *PurchasesCancelCall {
|
||||
c.urlParams_.Set("fields", googleapi.CombineFields(s))
|
||||
return c
|
||||
}
|
||||
|
||||
// Context sets the context to be used in this call's Do method. Any
|
||||
// pending HTTP request will be aborted if the provided context is
|
||||
// canceled.
|
||||
func (c *PurchasesCancelCall) Context(ctx context.Context) *PurchasesCancelCall {
|
||||
c.ctx_ = ctx
|
||||
return c
|
||||
}
|
||||
|
||||
// Header returns an http.Header that can be modified by the caller to
|
||||
// add HTTP headers to the request.
|
||||
func (c *PurchasesCancelCall) Header() http.Header {
|
||||
if c.header_ == nil {
|
||||
c.header_ = make(http.Header)
|
||||
}
|
||||
return c.header_
|
||||
}
|
||||
|
||||
func (c *PurchasesCancelCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
reqHeaders.Set("User-Agent", c.s.userAgent())
|
||||
var body io.Reader = nil
|
||||
c.urlParams_.Set("alt", alt)
|
||||
urls := googleapi.ResolveRelative(c.s.BasePath, "{packageName}/subscriptions/{subscriptionId}/purchases/{token}/cancel")
|
||||
urls += "?" + c.urlParams_.Encode()
|
||||
req, _ := http.NewRequest("POST", urls, body)
|
||||
req.Header = reqHeaders
|
||||
googleapi.Expand(req.URL, map[string]string{
|
||||
"packageName": c.packageName,
|
||||
"subscriptionId": c.subscriptionId,
|
||||
"token": c.token,
|
||||
})
|
||||
return gensupport.SendRequest(c.ctx_, c.s.client, req)
|
||||
}
|
||||
|
||||
// Do executes the "androidpublisher.purchases.cancel" call.
|
||||
func (c *PurchasesCancelCall) Do(opts ...googleapi.CallOption) error {
|
||||
gensupport.SetOptions(c.urlParams_, opts...)
|
||||
res, err := c.doRequest("json")
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
defer googleapi.CloseBody(res)
|
||||
if err := googleapi.CheckResponse(res); err != nil {
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
// {
|
||||
// "description": "Cancels a user's subscription purchase. The subscription remains valid until its expiration time.",
|
||||
// "httpMethod": "POST",
|
||||
// "id": "androidpublisher.purchases.cancel",
|
||||
// "parameterOrder": [
|
||||
// "packageName",
|
||||
// "subscriptionId",
|
||||
// "token"
|
||||
// ],
|
||||
// "parameters": {
|
||||
// "packageName": {
|
||||
// "description": "The package name of the application for which this subscription was purchased (for example, 'com.some.thing').",
|
||||
// "location": "path",
|
||||
// "required": true,
|
||||
// "type": "string"
|
||||
// },
|
||||
// "subscriptionId": {
|
||||
// "description": "The purchased subscription ID (for example, 'monthly001').",
|
||||
// "location": "path",
|
||||
// "required": true,
|
||||
// "type": "string"
|
||||
// },
|
||||
// "token": {
|
||||
// "description": "The token provided to the user's device when the subscription was purchased.",
|
||||
// "location": "path",
|
||||
// "required": true,
|
||||
// "type": "string"
|
||||
// }
|
||||
// },
|
||||
// "path": "{packageName}/subscriptions/{subscriptionId}/purchases/{token}/cancel",
|
||||
// "scopes": [
|
||||
// "https://www.googleapis.com/auth/androidpublisher"
|
||||
// ]
|
||||
// }
|
||||
|
||||
}
|
||||
|
||||
// method id "androidpublisher.purchases.get":
|
||||
|
||||
type PurchasesGetCall struct {
|
||||
s *Service
|
||||
packageName string
|
||||
subscriptionId string
|
||||
token string
|
||||
urlParams_ gensupport.URLParams
|
||||
ifNoneMatch_ string
|
||||
ctx_ context.Context
|
||||
header_ http.Header
|
||||
}
|
||||
|
||||
// Get: Checks whether a user's subscription purchase is valid and
|
||||
// returns its expiry time.
|
||||
func (r *PurchasesService) Get(packageName string, subscriptionId string, token string) *PurchasesGetCall {
|
||||
c := &PurchasesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.packageName = packageName
|
||||
c.subscriptionId = subscriptionId
|
||||
c.token = token
|
||||
return c
|
||||
}
|
||||
|
||||
// Fields allows partial responses to be retrieved. See
|
||||
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
|
||||
// for more information.
|
||||
func (c *PurchasesGetCall) Fields(s ...googleapi.Field) *PurchasesGetCall {
|
||||
c.urlParams_.Set("fields", googleapi.CombineFields(s))
|
||||
return c
|
||||
}
|
||||
|
||||
// IfNoneMatch sets the optional parameter which makes the operation
|
||||
// fail if the object's ETag matches the given value. This is useful for
|
||||
// getting updates only after the object has changed since the last
|
||||
// request. Use googleapi.IsNotModified to check whether the response
|
||||
// error from Do is the result of In-None-Match.
|
||||
func (c *PurchasesGetCall) IfNoneMatch(entityTag string) *PurchasesGetCall {
|
||||
c.ifNoneMatch_ = entityTag
|
||||
return c
|
||||
}
|
||||
|
||||
// Context sets the context to be used in this call's Do method. Any
|
||||
// pending HTTP request will be aborted if the provided context is
|
||||
// canceled.
|
||||
func (c *PurchasesGetCall) Context(ctx context.Context) *PurchasesGetCall {
|
||||
c.ctx_ = ctx
|
||||
return c
|
||||
}
|
||||
|
||||
// Header returns an http.Header that can be modified by the caller to
|
||||
// add HTTP headers to the request.
|
||||
func (c *PurchasesGetCall) Header() http.Header {
|
||||
if c.header_ == nil {
|
||||
c.header_ = make(http.Header)
|
||||
}
|
||||
return c.header_
|
||||
}
|
||||
|
||||
func (c *PurchasesGetCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
reqHeaders.Set("User-Agent", c.s.userAgent())
|
||||
if c.ifNoneMatch_ != "" {
|
||||
reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
|
||||
}
|
||||
var body io.Reader = nil
|
||||
c.urlParams_.Set("alt", alt)
|
||||
urls := googleapi.ResolveRelative(c.s.BasePath, "{packageName}/subscriptions/{subscriptionId}/purchases/{token}")
|
||||
urls += "?" + c.urlParams_.Encode()
|
||||
req, _ := http.NewRequest("GET", urls, body)
|
||||
req.Header = reqHeaders
|
||||
googleapi.Expand(req.URL, map[string]string{
|
||||
"packageName": c.packageName,
|
||||
"subscriptionId": c.subscriptionId,
|
||||
"token": c.token,
|
||||
})
|
||||
return gensupport.SendRequest(c.ctx_, c.s.client, req)
|
||||
}
|
||||
|
||||
// Do executes the "androidpublisher.purchases.get" call.
|
||||
// Exactly one of *SubscriptionPurchase or error will be non-nil. Any
|
||||
// non-2xx status code is an error. Response headers are in either
|
||||
// *SubscriptionPurchase.ServerResponse.Header or (if a response was
|
||||
// returned at all) in error.(*googleapi.Error).Header. Use
|
||||
// googleapi.IsNotModified to check whether the returned error was
|
||||
// because http.StatusNotModified was returned.
|
||||
func (c *PurchasesGetCall) Do(opts ...googleapi.CallOption) (*SubscriptionPurchase, error) {
|
||||
gensupport.SetOptions(c.urlParams_, opts...)
|
||||
res, err := c.doRequest("json")
|
||||
if res != nil && res.StatusCode == http.StatusNotModified {
|
||||
if res.Body != nil {
|
||||
res.Body.Close()
|
||||
}
|
||||
return nil, &googleapi.Error{
|
||||
Code: res.StatusCode,
|
||||
Header: res.Header,
|
||||
}
|
||||
}
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
defer googleapi.CloseBody(res)
|
||||
if err := googleapi.CheckResponse(res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
ret := &SubscriptionPurchase{
|
||||
ServerResponse: googleapi.ServerResponse{
|
||||
Header: res.Header,
|
||||
HTTPStatusCode: res.StatusCode,
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
// {
|
||||
// "description": "Checks whether a user's subscription purchase is valid and returns its expiry time.",
|
||||
// "httpMethod": "GET",
|
||||
// "id": "androidpublisher.purchases.get",
|
||||
// "parameterOrder": [
|
||||
// "packageName",
|
||||
// "subscriptionId",
|
||||
// "token"
|
||||
// ],
|
||||
// "parameters": {
|
||||
// "packageName": {
|
||||
// "description": "The package name of the application for which this subscription was purchased (for example, 'com.some.thing').",
|
||||
// "location": "path",
|
||||
// "required": true,
|
||||
// "type": "string"
|
||||
// },
|
||||
// "subscriptionId": {
|
||||
// "description": "The purchased subscription ID (for example, 'monthly001').",
|
||||
// "location": "path",
|
||||
// "required": true,
|
||||
// "type": "string"
|
||||
// },
|
||||
// "token": {
|
||||
// "description": "The token provided to the user's device when the subscription was purchased.",
|
||||
// "location": "path",
|
||||
// "required": true,
|
||||
// "type": "string"
|
||||
// }
|
||||
// },
|
||||
// "path": "{packageName}/subscriptions/{subscriptionId}/purchases/{token}",
|
||||
// "response": {
|
||||
// "$ref": "SubscriptionPurchase"
|
||||
// },
|
||||
// "scopes": [
|
||||
// "https://www.googleapis.com/auth/androidpublisher"
|
||||
// ]
|
||||
// }
|
||||
|
||||
}
|
3650
vendor/google.golang.org/api/androidpublisher/v2/androidpublisher-api.json
generated
vendored
Normal file
3650
vendor/google.golang.org/api/androidpublisher/v2/androidpublisher-api.json
generated
vendored
Normal file
File diff suppressed because it is too large
Load diff
11561
vendor/google.golang.org/api/androidpublisher/v2/androidpublisher-gen.go
generated
vendored
Normal file
11561
vendor/google.golang.org/api/androidpublisher/v2/androidpublisher-gen.go
generated
vendored
Normal file
File diff suppressed because it is too large
Load diff
2717
vendor/google.golang.org/api/api-list.json
generated
vendored
Normal file
2717
vendor/google.golang.org/api/api-list.json
generated
vendored
Normal file
File diff suppressed because it is too large
Load diff
2505
vendor/google.golang.org/api/appengine/v1/appengine-api.json
generated
vendored
Normal file
2505
vendor/google.golang.org/api/appengine/v1/appengine-api.json
generated
vendored
Normal file
File diff suppressed because it is too large
Load diff
6092
vendor/google.golang.org/api/appengine/v1/appengine-gen.go
generated
vendored
Normal file
6092
vendor/google.golang.org/api/appengine/v1/appengine-gen.go
generated
vendored
Normal file
File diff suppressed because it is too large
Load diff
606
vendor/google.golang.org/api/appengine/v1alpha/appengine-api.json
generated
vendored
Normal file
606
vendor/google.golang.org/api/appengine/v1alpha/appengine-api.json
generated
vendored
Normal file
|
@ -0,0 +1,606 @@
|
|||
{
|
||||
"auth": {
|
||||
"oauth2": {
|
||||
"scopes": {
|
||||
"https://www.googleapis.com/auth/appengine.admin": {
|
||||
"description": "View and manage your applications deployed on Google App Engine"
|
||||
},
|
||||
"https://www.googleapis.com/auth/cloud-platform.read-only": {
|
||||
"description": "View your data across Google Cloud Platform services"
|
||||
},
|
||||
"https://www.googleapis.com/auth/cloud-platform": {
|
||||
"description": "View and manage your data across Google Cloud Platform services"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"kind": "discovery#restDescription",
|
||||
"description": "The App Engine Admin API enables developers to provision and manage their App Engine applications.",
|
||||
"servicePath": "",
|
||||
"rootUrl": "https://appengine.googleapis.com/",
|
||||
"basePath": "",
|
||||
"ownerDomain": "google.com",
|
||||
"name": "appengine",
|
||||
"batchPath": "batch",
|
||||
"revision": "20170426",
|
||||
"documentationLink": "https://cloud.google.com/appengine/docs/admin-api/",
|
||||
"id": "appengine:v1alpha",
|
||||
"title": "Google App Engine Admin API",
|
||||
"ownerName": "Google",
|
||||
"discoveryVersion": "v1",
|
||||
"resources": {
|
||||
"apps": {
|
||||
"resources": {
|
||||
"operations": {
|
||||
"methods": {
|
||||
"list": {
|
||||
"description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns UNIMPLEMENTED.NOTE: the name binding below allows API services to override the binding to use different resource name schemes, such as users/*/operations.",
|
||||
"response": {
|
||||
"$ref": "ListOperationsResponse"
|
||||
},
|
||||
"parameterOrder": [
|
||||
"appsId"
|
||||
],
|
||||
"httpMethod": "GET",
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/appengine.admin",
|
||||
"https://www.googleapis.com/auth/cloud-platform",
|
||||
"https://www.googleapis.com/auth/cloud-platform.read-only"
|
||||
],
|
||||
"parameters": {
|
||||
"filter": {
|
||||
"location": "query",
|
||||
"description": "The standard list filter.",
|
||||
"type": "string"
|
||||
},
|
||||
"appsId": {
|
||||
"location": "path",
|
||||
"description": "Part of `name`. The name of the operation collection.",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
},
|
||||
"pageToken": {
|
||||
"location": "query",
|
||||
"description": "The standard list page token.",
|
||||
"type": "string"
|
||||
},
|
||||
"pageSize": {
|
||||
"location": "query",
|
||||
"description": "The standard list page size.",
|
||||
"format": "int32",
|
||||
"type": "integer"
|
||||
}
|
||||
},
|
||||
"flatPath": "v1alpha/apps/{appsId}/operations",
|
||||
"path": "v1alpha/apps/{appsId}/operations",
|
||||
"id": "appengine.apps.operations.list"
|
||||
},
|
||||
"get": {
|
||||
"description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.",
|
||||
"response": {
|
||||
"$ref": "Operation"
|
||||
},
|
||||
"parameterOrder": [
|
||||
"appsId",
|
||||
"operationsId"
|
||||
],
|
||||
"httpMethod": "GET",
|
||||
"parameters": {
|
||||
"appsId": {
|
||||
"description": "Part of `name`. The name of the operation resource.",
|
||||
"required": true,
|
||||
"type": "string",
|
||||
"location": "path"
|
||||
},
|
||||
"operationsId": {
|
||||
"location": "path",
|
||||
"description": "Part of `name`. See documentation of `appsId`.",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/appengine.admin",
|
||||
"https://www.googleapis.com/auth/cloud-platform",
|
||||
"https://www.googleapis.com/auth/cloud-platform.read-only"
|
||||
],
|
||||
"flatPath": "v1alpha/apps/{appsId}/operations/{operationsId}",
|
||||
"path": "v1alpha/apps/{appsId}/operations/{operationsId}",
|
||||
"id": "appengine.apps.operations.get"
|
||||
}
|
||||
}
|
||||
},
|
||||
"locations": {
|
||||
"methods": {
|
||||
"list": {
|
||||
"path": "v1alpha/apps/{appsId}/locations",
|
||||
"id": "appengine.apps.locations.list",
|
||||
"description": "Lists information about the supported locations for this service.",
|
||||
"response": {
|
||||
"$ref": "ListLocationsResponse"
|
||||
},
|
||||
"parameterOrder": [
|
||||
"appsId"
|
||||
],
|
||||
"httpMethod": "GET",
|
||||
"parameters": {
|
||||
"pageSize": {
|
||||
"description": "The standard list page size.",
|
||||
"format": "int32",
|
||||
"type": "integer",
|
||||
"location": "query"
|
||||
},
|
||||
"filter": {
|
||||
"location": "query",
|
||||
"description": "The standard list filter.",
|
||||
"type": "string"
|
||||
},
|
||||
"appsId": {
|
||||
"location": "path",
|
||||
"description": "Part of `name`. The resource that owns the locations collection, if applicable.",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
},
|
||||
"pageToken": {
|
||||
"location": "query",
|
||||
"description": "The standard list page token.",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/appengine.admin",
|
||||
"https://www.googleapis.com/auth/cloud-platform",
|
||||
"https://www.googleapis.com/auth/cloud-platform.read-only"
|
||||
],
|
||||
"flatPath": "v1alpha/apps/{appsId}/locations"
|
||||
},
|
||||
"get": {
|
||||
"flatPath": "v1alpha/apps/{appsId}/locations/{locationsId}",
|
||||
"path": "v1alpha/apps/{appsId}/locations/{locationsId}",
|
||||
"id": "appengine.apps.locations.get",
|
||||
"description": "Get information about a location.",
|
||||
"parameterOrder": [
|
||||
"appsId",
|
||||
"locationsId"
|
||||
],
|
||||
"response": {
|
||||
"$ref": "Location"
|
||||
},
|
||||
"httpMethod": "GET",
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/appengine.admin",
|
||||
"https://www.googleapis.com/auth/cloud-platform",
|
||||
"https://www.googleapis.com/auth/cloud-platform.read-only"
|
||||
],
|
||||
"parameters": {
|
||||
"locationsId": {
|
||||
"description": "Part of `name`. See documentation of `appsId`.",
|
||||
"required": true,
|
||||
"type": "string",
|
||||
"location": "path"
|
||||
},
|
||||
"appsId": {
|
||||
"description": "Part of `name`. Resource name for the location.",
|
||||
"required": true,
|
||||
"type": "string",
|
||||
"location": "path"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"parameters": {
|
||||
"upload_protocol": {
|
||||
"description": "Upload protocol for media (e.g. \"raw\", \"multipart\").",
|
||||
"type": "string",
|
||||
"location": "query"
|
||||
},
|
||||
"prettyPrint": {
|
||||
"location": "query",
|
||||
"description": "Returns response with indentations and line breaks.",
|
||||
"type": "boolean",
|
||||
"default": "true"
|
||||
},
|
||||
"uploadType": {
|
||||
"location": "query",
|
||||
"description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
|
||||
"type": "string"
|
||||
},
|
||||
"fields": {
|
||||
"description": "Selector specifying which fields to include in a partial response.",
|
||||
"type": "string",
|
||||
"location": "query"
|
||||
},
|
||||
"callback": {
|
||||
"location": "query",
|
||||
"description": "JSONP",
|
||||
"type": "string"
|
||||
},
|
||||
"$.xgafv": {
|
||||
"enumDescriptions": [
|
||||
"v1 error format",
|
||||
"v2 error format"
|
||||
],
|
||||
"location": "query",
|
||||
"enum": [
|
||||
"1",
|
||||
"2"
|
||||
],
|
||||
"description": "V1 error format.",
|
||||
"type": "string"
|
||||
},
|
||||
"alt": {
|
||||
"type": "string",
|
||||
"enumDescriptions": [
|
||||
"Responses with Content-Type of application/json",
|
||||
"Media download with context-dependent Content-Type",
|
||||
"Responses with Content-Type of application/x-protobuf"
|
||||
],
|
||||
"location": "query",
|
||||
"description": "Data format for response.",
|
||||
"default": "json",
|
||||
"enum": [
|
||||
"json",
|
||||
"media",
|
||||
"proto"
|
||||
]
|
||||
},
|
||||
"key": {
|
||||
"description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.",
|
||||
"type": "string",
|
||||
"location": "query"
|
||||
},
|
||||
"access_token": {
|
||||
"description": "OAuth access token.",
|
||||
"type": "string",
|
||||
"location": "query"
|
||||
},
|
||||
"quotaUser": {
|
||||
"description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.",
|
||||
"type": "string",
|
||||
"location": "query"
|
||||
},
|
||||
"pp": {
|
||||
"location": "query",
|
||||
"description": "Pretty-print response.",
|
||||
"type": "boolean",
|
||||
"default": "true"
|
||||
},
|
||||
"bearer_token": {
|
||||
"description": "OAuth bearer token.",
|
||||
"type": "string",
|
||||
"location": "query"
|
||||
},
|
||||
"oauth_token": {
|
||||
"location": "query",
|
||||
"description": "OAuth 2.0 token for the current user.",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"schemas": {
|
||||
"OperationMetadata": {
|
||||
"description": "Metadata for the given google.longrunning.Operation.",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"insertTime": {
|
||||
"description": "Timestamp that this operation was created.@OutputOnly",
|
||||
"format": "google-datetime",
|
||||
"type": "string"
|
||||
},
|
||||
"user": {
|
||||
"description": "User who requested this operation.@OutputOnly",
|
||||
"type": "string"
|
||||
},
|
||||
"target": {
|
||||
"description": "Name of the resource that this operation is acting on. Example: apps/myapp/modules/default.@OutputOnly",
|
||||
"type": "string"
|
||||
},
|
||||
"method": {
|
||||
"description": "API method that initiated this operation. Example: google.appengine.v1beta4.Version.CreateVersion.@OutputOnly",
|
||||
"type": "string"
|
||||
},
|
||||
"endTime": {
|
||||
"description": "Timestamp that this operation completed.@OutputOnly",
|
||||
"format": "google-datetime",
|
||||
"type": "string"
|
||||
},
|
||||
"operationType": {
|
||||
"description": "Type of this operation. Deprecated, use method field instead. Example: \"create_version\".@OutputOnly",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"id": "OperationMetadata"
|
||||
},
|
||||
"OperationMetadataExperimental": {
|
||||
"description": "Metadata for the given google.longrunning.Operation.",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"method": {
|
||||
"description": "API method that initiated this operation. Example: google.appengine.experimental.CustomDomains.CreateCustomDomain.@OutputOnly",
|
||||
"type": "string"
|
||||
},
|
||||
"insertTime": {
|
||||
"description": "Time that this operation was created.@OutputOnly",
|
||||
"format": "google-datetime",
|
||||
"type": "string"
|
||||
},
|
||||
"endTime": {
|
||||
"description": "Time that this operation completed.@OutputOnly",
|
||||
"format": "google-datetime",
|
||||
"type": "string"
|
||||
},
|
||||
"user": {
|
||||
"description": "User who requested this operation.@OutputOnly",
|
||||
"type": "string"
|
||||
},
|
||||
"target": {
|
||||
"description": "Name of the resource that this operation is acting on. Example: apps/myapp/customDomains/example.com.@OutputOnly",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"id": "OperationMetadataExperimental"
|
||||
},
|
||||
"OperationMetadataV1Beta5": {
|
||||
"description": "Metadata for the given google.longrunning.Operation.",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"user": {
|
||||
"description": "User who requested this operation.@OutputOnly",
|
||||
"type": "string"
|
||||
},
|
||||
"target": {
|
||||
"description": "Name of the resource that this operation is acting on. Example: apps/myapp/services/default.@OutputOnly",
|
||||
"type": "string"
|
||||
},
|
||||
"method": {
|
||||
"description": "API method name that initiated this operation. Example: google.appengine.v1beta5.Version.CreateVersion.@OutputOnly",
|
||||
"type": "string"
|
||||
},
|
||||
"insertTime": {
|
||||
"description": "Timestamp that this operation was created.@OutputOnly",
|
||||
"format": "google-datetime",
|
||||
"type": "string"
|
||||
},
|
||||
"endTime": {
|
||||
"description": "Timestamp that this operation completed.@OutputOnly",
|
||||
"format": "google-datetime",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"id": "OperationMetadataV1Beta5"
|
||||
},
|
||||
"Status": {
|
||||
"description": "The Status type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by gRPC (https://github.com/grpc). The error model is designed to be:\nSimple to use and understand for most users\nFlexible enough to meet unexpected needsOverviewThe Status message contains three pieces of data: error code, error message, and error details. The error code should be an enum value of google.rpc.Code, but it may accept additional error codes if needed. The error message should be a developer-facing English message that helps developers understand and resolve the error. If a localized user-facing error message is needed, put the localized message in the error details or localize it in the client. The optional error details may contain arbitrary information about the error. There is a predefined set of error detail types in the package google.rpc which can be used for common error conditions.Language mappingThe Status message is the logical representation of the error model, but it is not necessarily the actual wire format. When the Status message is exposed in different client libraries and different wire protocols, it can be mapped differently. For example, it will likely be mapped to some exceptions in Java, but more likely mapped to some error codes in C.Other usesThe error model and the Status message can be used in a variety of environments, either with or without APIs, to provide a consistent developer experience across different environments.Example uses of this error model include:\nPartial errors. If a service needs to return partial errors to the client, it may embed the Status in the normal response to indicate the partial errors.\nWorkflow errors. A typical workflow has multiple steps. Each step may have a Status message for error reporting purpose.\nBatch operations. If a client uses batch request and batch response, the Status message should be used directly inside batch response, one for each error sub-response.\nAsynchronous operations. If an API call embeds asynchronous operation results in its response, the status of those operations should be represented directly using the Status message.\nLogging. If some API errors are stored in logs, the message Status could be used directly after any stripping needed for security/privacy reasons.",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"code": {
|
||||
"description": "The status code, which should be an enum value of google.rpc.Code.",
|
||||
"format": "int32",
|
||||
"type": "integer"
|
||||
},
|
||||
"message": {
|
||||
"description": "A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.",
|
||||
"type": "string"
|
||||
},
|
||||
"details": {
|
||||
"description": "A list of messages that carry the error details. There will be a common set of message types for APIs to use.",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"additionalProperties": {
|
||||
"description": "Properties of the object. Contains field @type with type URL.",
|
||||
"type": "any"
|
||||
},
|
||||
"type": "object"
|
||||
}
|
||||
}
|
||||
},
|
||||
"id": "Status"
|
||||
},
|
||||
"LocationMetadata": {
|
||||
"properties": {
|
||||
"standardEnvironmentAvailable": {
|
||||
"description": "App Engine Standard Environment is available in the given location.@OutputOnly",
|
||||
"type": "boolean"
|
||||
},
|
||||
"flexibleEnvironmentAvailable": {
|
||||
"description": "App Engine Flexible Environment is available in the given location.@OutputOnly",
|
||||
"type": "boolean"
|
||||
}
|
||||
},
|
||||
"id": "LocationMetadata",
|
||||
"description": "Metadata for the given google.cloud.location.Location.",
|
||||
"type": "object"
|
||||
},
|
||||
"ListLocationsResponse": {
|
||||
"description": "The response message for Locations.ListLocations.",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"nextPageToken": {
|
||||
"description": "The standard List next-page token.",
|
||||
"type": "string"
|
||||
},
|
||||
"locations": {
|
||||
"description": "A list of locations that matches the specified filter in the request.",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "Location"
|
||||
}
|
||||
}
|
||||
},
|
||||
"id": "ListLocationsResponse"
|
||||
},
|
||||
"OperationMetadataV1Beta": {
|
||||
"description": "Metadata for the given google.longrunning.Operation.",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"warning": {
|
||||
"description": "Durable messages that persist on every operation poll. @OutputOnly",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"insertTime": {
|
||||
"description": "Time that this operation was created.@OutputOnly",
|
||||
"format": "google-datetime",
|
||||
"type": "string"
|
||||
},
|
||||
"user": {
|
||||
"description": "User who requested this operation.@OutputOnly",
|
||||
"type": "string"
|
||||
},
|
||||
"target": {
|
||||
"description": "Name of the resource that this operation is acting on. Example: apps/myapp/services/default.@OutputOnly",
|
||||
"type": "string"
|
||||
},
|
||||
"ephemeralMessage": {
|
||||
"description": "Ephemeral message that may change every time the operation is polled. @OutputOnly",
|
||||
"type": "string"
|
||||
},
|
||||
"method": {
|
||||
"description": "API method that initiated this operation. Example: google.appengine.v1beta.Versions.CreateVersion.@OutputOnly",
|
||||
"type": "string"
|
||||
},
|
||||
"endTime": {
|
||||
"description": "Time that this operation completed.@OutputOnly",
|
||||
"format": "google-datetime",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"id": "OperationMetadataV1Beta"
|
||||
},
|
||||
"Location": {
|
||||
"description": "A resource that represents Google Cloud Platform location.",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"labels": {
|
||||
"additionalProperties": {
|
||||
"type": "string"
|
||||
},
|
||||
"description": "Cross-service attributes for the location. For example\n{\"cloud.googleapis.com/region\": \"us-east1\"}\n",
|
||||
"type": "object"
|
||||
},
|
||||
"name": {
|
||||
"description": "Resource name for the location, which may vary between implementations. For example: \"projects/example-project/locations/us-east1\"",
|
||||
"type": "string"
|
||||
},
|
||||
"locationId": {
|
||||
"description": "The canonical id for this location. For example: \"us-east1\".",
|
||||
"type": "string"
|
||||
},
|
||||
"metadata": {
|
||||
"additionalProperties": {
|
||||
"description": "Properties of the object. Contains field @type with type URL.",
|
||||
"type": "any"
|
||||
},
|
||||
"description": "Service-specific metadata. For example the available capacity at the given location.",
|
||||
"type": "object"
|
||||
}
|
||||
},
|
||||
"id": "Location"
|
||||
},
|
||||
"OperationMetadataV1": {
|
||||
"description": "Metadata for the given google.longrunning.Operation.",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"warning": {
|
||||
"description": "Durable messages that persist on every operation poll. @OutputOnly",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"insertTime": {
|
||||
"description": "Time that this operation was created.@OutputOnly",
|
||||
"format": "google-datetime",
|
||||
"type": "string"
|
||||
},
|
||||
"user": {
|
||||
"description": "User who requested this operation.@OutputOnly",
|
||||
"type": "string"
|
||||
},
|
||||
"target": {
|
||||
"description": "Name of the resource that this operation is acting on. Example: apps/myapp/services/default.@OutputOnly",
|
||||
"type": "string"
|
||||
},
|
||||
"ephemeralMessage": {
|
||||
"description": "Ephemeral message that may change every time the operation is polled. @OutputOnly",
|
||||
"type": "string"
|
||||
},
|
||||
"method": {
|
||||
"description": "API method that initiated this operation. Example: google.appengine.v1.Versions.CreateVersion.@OutputOnly",
|
||||
"type": "string"
|
||||
},
|
||||
"endTime": {
|
||||
"description": "Time that this operation completed.@OutputOnly",
|
||||
"format": "google-datetime",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"id": "OperationMetadataV1"
|
||||
},
|
||||
"Operation": {
|
||||
"properties": {
|
||||
"done": {
|
||||
"description": "If the value is false, it means the operation is still in progress. If true, the operation is completed, and either error or response is available.",
|
||||
"type": "boolean"
|
||||
},
|
||||
"response": {
|
||||
"additionalProperties": {
|
||||
"description": "Properties of the object. Contains field @type with type URL.",
|
||||
"type": "any"
|
||||
},
|
||||
"description": "The normal response of the operation in case of success. If the original method returns no data on success, such as Delete, the response is google.protobuf.Empty. If the original method is standard Get/Create/Update, the response should be the resource. For other methods, the response should have the type XxxResponse, where Xxx is the original method name. For example, if the original method name is TakeSnapshot(), the inferred response type is TakeSnapshotResponse.",
|
||||
"type": "object"
|
||||
},
|
||||
"name": {
|
||||
"description": "The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the name should have the format of operations/some/unique/name.",
|
||||
"type": "string"
|
||||
},
|
||||
"error": {
|
||||
"description": "The error result of the operation in case of failure or cancellation.",
|
||||
"$ref": "Status"
|
||||
},
|
||||
"metadata": {
|
||||
"additionalProperties": {
|
||||
"description": "Properties of the object. Contains field @type with type URL.",
|
||||
"type": "any"
|
||||
},
|
||||
"description": "Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.",
|
||||
"type": "object"
|
||||
}
|
||||
},
|
||||
"id": "Operation",
|
||||
"description": "This resource represents a long-running operation that is the result of a network API call.",
|
||||
"type": "object"
|
||||
},
|
||||
"ListOperationsResponse": {
|
||||
"description": "The response message for Operations.ListOperations.",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"nextPageToken": {
|
||||
"description": "The standard List next-page token.",
|
||||
"type": "string"
|
||||
},
|
||||
"operations": {
|
||||
"description": "A list of operations that matches the specified filter in the request.",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "Operation"
|
||||
}
|
||||
}
|
||||
},
|
||||
"id": "ListOperationsResponse"
|
||||
}
|
||||
},
|
||||
"icons": {
|
||||
"x16": "http://www.google.com/images/icons/product/search-16.gif",
|
||||
"x32": "http://www.google.com/images/icons/product/search-32.gif"
|
||||
},
|
||||
"protocol": "rest",
|
||||
"version": "v1alpha",
|
||||
"baseUrl": "https://appengine.googleapis.com/"
|
||||
}
|
1349
vendor/google.golang.org/api/appengine/v1alpha/appengine-gen.go
generated
vendored
Normal file
1349
vendor/google.golang.org/api/appengine/v1alpha/appengine-gen.go
generated
vendored
Normal file
File diff suppressed because it is too large
Load diff
3101
vendor/google.golang.org/api/appengine/v1beta/appengine-api.json
generated
vendored
Normal file
3101
vendor/google.golang.org/api/appengine/v1beta/appengine-api.json
generated
vendored
Normal file
File diff suppressed because it is too large
Load diff
8275
vendor/google.golang.org/api/appengine/v1beta/appengine-gen.go
generated
vendored
Normal file
8275
vendor/google.golang.org/api/appengine/v1beta/appengine-gen.go
generated
vendored
Normal file
File diff suppressed because it is too large
Load diff
2378
vendor/google.golang.org/api/appengine/v1beta4/appengine-api.json
generated
vendored
Normal file
2378
vendor/google.golang.org/api/appengine/v1beta4/appengine-api.json
generated
vendored
Normal file
File diff suppressed because it is too large
Load diff
5833
vendor/google.golang.org/api/appengine/v1beta4/appengine-gen.go
generated
vendored
Normal file
5833
vendor/google.golang.org/api/appengine/v1beta4/appengine-gen.go
generated
vendored
Normal file
File diff suppressed because it is too large
Load diff
2367
vendor/google.golang.org/api/appengine/v1beta5/appengine-api.json
generated
vendored
Normal file
2367
vendor/google.golang.org/api/appengine/v1beta5/appengine-api.json
generated
vendored
Normal file
File diff suppressed because it is too large
Load diff
5837
vendor/google.golang.org/api/appengine/v1beta5/appengine-gen.go
generated
vendored
Normal file
5837
vendor/google.golang.org/api/appengine/v1beta5/appengine-gen.go
generated
vendored
Normal file
File diff suppressed because it is too large
Load diff
489
vendor/google.golang.org/api/appsactivity/v1/appsactivity-api.json
generated
vendored
Normal file
489
vendor/google.golang.org/api/appsactivity/v1/appsactivity-api.json
generated
vendored
Normal file
|
@ -0,0 +1,489 @@
|
|||
{
|
||||
"kind": "discovery#restDescription",
|
||||
"etag": "\"tbys6C40o18GZwyMen5GMkdK-3s/y29Ei9gfsS6BekrALyS-uw4tzTU\"",
|
||||
"discoveryVersion": "v1",
|
||||
"id": "appsactivity:v1",
|
||||
"name": "appsactivity",
|
||||
"version": "v1",
|
||||
"revision": "20170215",
|
||||
"title": "G Suite Activity API",
|
||||
"description": "Provides a historical view of activity.",
|
||||
"ownerDomain": "google.com",
|
||||
"ownerName": "Google",
|
||||
"icons": {
|
||||
"x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png",
|
||||
"x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png"
|
||||
},
|
||||
"documentationLink": "https://developers.google.com/google-apps/activity/",
|
||||
"protocol": "rest",
|
||||
"baseUrl": "https://www.googleapis.com/appsactivity/v1/",
|
||||
"basePath": "/appsactivity/v1/",
|
||||
"rootUrl": "https://www.googleapis.com/",
|
||||
"servicePath": "appsactivity/v1/",
|
||||
"batchPath": "batch",
|
||||
"parameters": {
|
||||
"alt": {
|
||||
"type": "string",
|
||||
"description": "Data format for the response.",
|
||||
"default": "json",
|
||||
"enum": [
|
||||
"json"
|
||||
],
|
||||
"enumDescriptions": [
|
||||
"Responses with Content-Type of application/json"
|
||||
],
|
||||
"location": "query"
|
||||
},
|
||||
"fields": {
|
||||
"type": "string",
|
||||
"description": "Selector specifying which fields to include in a partial response.",
|
||||
"location": "query"
|
||||
},
|
||||
"key": {
|
||||
"type": "string",
|
||||
"description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.",
|
||||
"location": "query"
|
||||
},
|
||||
"oauth_token": {
|
||||
"type": "string",
|
||||
"description": "OAuth 2.0 token for the current user.",
|
||||
"location": "query"
|
||||
},
|
||||
"prettyPrint": {
|
||||
"type": "boolean",
|
||||
"description": "Returns response with indentations and line breaks.",
|
||||
"default": "true",
|
||||
"location": "query"
|
||||
},
|
||||
"quotaUser": {
|
||||
"type": "string",
|
||||
"description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.",
|
||||
"location": "query"
|
||||
},
|
||||
"userIp": {
|
||||
"type": "string",
|
||||
"description": "IP address of the site where the request originates. Use this if you want to enforce per-user limits.",
|
||||
"location": "query"
|
||||
}
|
||||
},
|
||||
"auth": {
|
||||
"oauth2": {
|
||||
"scopes": {
|
||||
"https://www.googleapis.com/auth/activity": {
|
||||
"description": "View the activity history of your Google apps"
|
||||
},
|
||||
"https://www.googleapis.com/auth/drive": {
|
||||
"description": "View and manage the files in your Google Drive"
|
||||
},
|
||||
"https://www.googleapis.com/auth/drive.metadata": {
|
||||
"description": "View and manage metadata of files in your Google Drive"
|
||||
},
|
||||
"https://www.googleapis.com/auth/drive.metadata.readonly": {
|
||||
"description": "View metadata for files in your Google Drive"
|
||||
},
|
||||
"https://www.googleapis.com/auth/drive.readonly": {
|
||||
"description": "View the files in your Google Drive"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"schemas": {
|
||||
"Activity": {
|
||||
"id": "Activity",
|
||||
"type": "object",
|
||||
"description": "An Activity resource is a combined view of multiple events. An activity has a list of individual events and a combined view of the common fields among all events.",
|
||||
"properties": {
|
||||
"combinedEvent": {
|
||||
"$ref": "Event",
|
||||
"description": "The fields common to all of the singleEvents that make up the Activity."
|
||||
},
|
||||
"singleEvents": {
|
||||
"type": "array",
|
||||
"description": "A list of all the Events that make up the Activity.",
|
||||
"items": {
|
||||
"$ref": "Event"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"Event": {
|
||||
"id": "Event",
|
||||
"type": "object",
|
||||
"description": "Represents the changes associated with an action taken by a user.",
|
||||
"properties": {
|
||||
"additionalEventTypes": {
|
||||
"type": "array",
|
||||
"description": "Additional event types. Some events may have multiple types when multiple actions are part of a single event. For example, creating a document, renaming it, and sharing it may be part of a single file-creation event.",
|
||||
"items": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"comment",
|
||||
"create",
|
||||
"edit",
|
||||
"emptyTrash",
|
||||
"move",
|
||||
"permissionChange",
|
||||
"rename",
|
||||
"trash",
|
||||
"unknown",
|
||||
"untrash",
|
||||
"upload"
|
||||
],
|
||||
"enumDescriptions": [
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
""
|
||||
]
|
||||
}
|
||||
},
|
||||
"eventTimeMillis": {
|
||||
"type": "string",
|
||||
"description": "The time at which the event occurred formatted as Unix time in milliseconds.",
|
||||
"format": "uint64"
|
||||
},
|
||||
"fromUserDeletion": {
|
||||
"type": "boolean",
|
||||
"description": "Whether this event is caused by a user being deleted."
|
||||
},
|
||||
"move": {
|
||||
"$ref": "Move",
|
||||
"description": "Extra information for move type events, such as changes in an object's parents."
|
||||
},
|
||||
"permissionChanges": {
|
||||
"type": "array",
|
||||
"description": "Extra information for permissionChange type events, such as the user or group the new permission applies to.",
|
||||
"items": {
|
||||
"$ref": "PermissionChange"
|
||||
}
|
||||
},
|
||||
"primaryEventType": {
|
||||
"type": "string",
|
||||
"description": "The main type of event that occurred.",
|
||||
"enum": [
|
||||
"comment",
|
||||
"create",
|
||||
"edit",
|
||||
"emptyTrash",
|
||||
"move",
|
||||
"permissionChange",
|
||||
"rename",
|
||||
"trash",
|
||||
"unknown",
|
||||
"untrash",
|
||||
"upload"
|
||||
],
|
||||
"enumDescriptions": [
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
""
|
||||
]
|
||||
},
|
||||
"rename": {
|
||||
"$ref": "Rename",
|
||||
"description": "Extra information for rename type events, such as the old and new names."
|
||||
},
|
||||
"target": {
|
||||
"$ref": "Target",
|
||||
"description": "Information specific to the Target object modified by the event."
|
||||
},
|
||||
"user": {
|
||||
"$ref": "User",
|
||||
"description": "Represents the user responsible for the event."
|
||||
}
|
||||
}
|
||||
},
|
||||
"ListActivitiesResponse": {
|
||||
"id": "ListActivitiesResponse",
|
||||
"type": "object",
|
||||
"description": "The response from the list request. Contains a list of activities and a token to retrieve the next page of results.",
|
||||
"properties": {
|
||||
"activities": {
|
||||
"type": "array",
|
||||
"description": "List of activities.",
|
||||
"items": {
|
||||
"$ref": "Activity"
|
||||
}
|
||||
},
|
||||
"nextPageToken": {
|
||||
"type": "string",
|
||||
"description": "Token for the next page of results."
|
||||
}
|
||||
}
|
||||
},
|
||||
"Move": {
|
||||
"id": "Move",
|
||||
"type": "object",
|
||||
"description": "Contains information about changes in an object's parents as a result of a move type event.",
|
||||
"properties": {
|
||||
"addedParents": {
|
||||
"type": "array",
|
||||
"description": "The added parent(s).",
|
||||
"items": {
|
||||
"$ref": "Parent"
|
||||
}
|
||||
},
|
||||
"removedParents": {
|
||||
"type": "array",
|
||||
"description": "The removed parent(s).",
|
||||
"items": {
|
||||
"$ref": "Parent"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"Parent": {
|
||||
"id": "Parent",
|
||||
"type": "object",
|
||||
"description": "Contains information about a parent object. For example, a folder in Drive is a parent for all files within it.",
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "string",
|
||||
"description": "The parent's ID."
|
||||
},
|
||||
"isRoot": {
|
||||
"type": "boolean",
|
||||
"description": "Whether this is the root folder."
|
||||
},
|
||||
"title": {
|
||||
"type": "string",
|
||||
"description": "The parent's title."
|
||||
}
|
||||
}
|
||||
},
|
||||
"Permission": {
|
||||
"id": "Permission",
|
||||
"type": "object",
|
||||
"description": "Contains information about the permissions and type of access allowed with regards to a Google Drive object. This is a subset of the fields contained in a corresponding Drive Permissions object.",
|
||||
"properties": {
|
||||
"name": {
|
||||
"type": "string",
|
||||
"description": "The name of the user or group the permission applies to."
|
||||
},
|
||||
"permissionId": {
|
||||
"type": "string",
|
||||
"description": "The ID for this permission. Corresponds to the Drive API's permission ID returned as part of the Drive Permissions resource."
|
||||
},
|
||||
"role": {
|
||||
"type": "string",
|
||||
"description": "Indicates the Google Drive permissions role. The role determines a user's ability to read, write, or comment on the file.",
|
||||
"enum": [
|
||||
"commenter",
|
||||
"owner",
|
||||
"reader",
|
||||
"writer"
|
||||
],
|
||||
"enumDescriptions": [
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
""
|
||||
]
|
||||
},
|
||||
"type": {
|
||||
"type": "string",
|
||||
"description": "Indicates how widely permissions are granted.",
|
||||
"enum": [
|
||||
"anyone",
|
||||
"domain",
|
||||
"group",
|
||||
"user"
|
||||
],
|
||||
"enumDescriptions": [
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
""
|
||||
]
|
||||
},
|
||||
"user": {
|
||||
"$ref": "User",
|
||||
"description": "The user's information if the type is USER."
|
||||
},
|
||||
"withLink": {
|
||||
"type": "boolean",
|
||||
"description": "Whether the permission requires a link to the file."
|
||||
}
|
||||
}
|
||||
},
|
||||
"PermissionChange": {
|
||||
"id": "PermissionChange",
|
||||
"type": "object",
|
||||
"description": "Contains information about a Drive object's permissions that changed as a result of a permissionChange type event.",
|
||||
"properties": {
|
||||
"addedPermissions": {
|
||||
"type": "array",
|
||||
"description": "Lists all Permission objects added.",
|
||||
"items": {
|
||||
"$ref": "Permission"
|
||||
}
|
||||
},
|
||||
"removedPermissions": {
|
||||
"type": "array",
|
||||
"description": "Lists all Permission objects removed.",
|
||||
"items": {
|
||||
"$ref": "Permission"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"Photo": {
|
||||
"id": "Photo",
|
||||
"type": "object",
|
||||
"description": "Photo information for a user.",
|
||||
"properties": {
|
||||
"url": {
|
||||
"type": "string",
|
||||
"description": "The URL of the photo."
|
||||
}
|
||||
}
|
||||
},
|
||||
"Rename": {
|
||||
"id": "Rename",
|
||||
"type": "object",
|
||||
"description": "Contains information about a renametype event.",
|
||||
"properties": {
|
||||
"newTitle": {
|
||||
"type": "string",
|
||||
"description": "The new title."
|
||||
},
|
||||
"oldTitle": {
|
||||
"type": "string",
|
||||
"description": "The old title."
|
||||
}
|
||||
}
|
||||
},
|
||||
"Target": {
|
||||
"id": "Target",
|
||||
"type": "object",
|
||||
"description": "Information about the object modified by the event.",
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "string",
|
||||
"description": "The ID of the target. For example, in Google Drive, this is the file or folder ID."
|
||||
},
|
||||
"mimeType": {
|
||||
"type": "string",
|
||||
"description": "The MIME type of the target."
|
||||
},
|
||||
"name": {
|
||||
"type": "string",
|
||||
"description": "The name of the target. For example, in Google Drive, this is the title of the file."
|
||||
}
|
||||
}
|
||||
},
|
||||
"User": {
|
||||
"id": "User",
|
||||
"type": "object",
|
||||
"description": "A representation of a user.",
|
||||
"properties": {
|
||||
"isDeleted": {
|
||||
"type": "boolean",
|
||||
"description": "A boolean which indicates whether the specified User was deleted. If true, name, photo and permission_id will be omitted."
|
||||
},
|
||||
"isMe": {
|
||||
"type": "boolean",
|
||||
"description": "Whether the user is the authenticated user."
|
||||
},
|
||||
"name": {
|
||||
"type": "string",
|
||||
"description": "The displayable name of the user."
|
||||
},
|
||||
"permissionId": {
|
||||
"type": "string",
|
||||
"description": "The permission ID associated with this user. Equivalent to the Drive API's permission ID for this user, returned as part of the Drive Permissions resource."
|
||||
},
|
||||
"photo": {
|
||||
"$ref": "Photo",
|
||||
"description": "The profile photo of the user. Not present if the user has no profile photo."
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"resources": {
|
||||
"activities": {
|
||||
"methods": {
|
||||
"list": {
|
||||
"id": "appsactivity.activities.list",
|
||||
"path": "activities",
|
||||
"httpMethod": "GET",
|
||||
"description": "Returns a list of activities visible to the current logged in user. Visible activities are determined by the visiblity settings of the object that was acted on, e.g. Drive files a user can see. An activity is a record of past events. Multiple events may be merged if they are similar. A request is scoped to activities from a given Google service using the source parameter.",
|
||||
"parameters": {
|
||||
"drive.ancestorId": {
|
||||
"type": "string",
|
||||
"description": "Identifies the Drive folder containing the items for which to return activities.",
|
||||
"location": "query"
|
||||
},
|
||||
"drive.fileId": {
|
||||
"type": "string",
|
||||
"description": "Identifies the Drive item to return activities for.",
|
||||
"location": "query"
|
||||
},
|
||||
"groupingStrategy": {
|
||||
"type": "string",
|
||||
"description": "Indicates the strategy to use when grouping singleEvents items in the associated combinedEvent object.",
|
||||
"default": "driveUi",
|
||||
"enum": [
|
||||
"driveUi",
|
||||
"none"
|
||||
],
|
||||
"enumDescriptions": [
|
||||
"",
|
||||
""
|
||||
],
|
||||
"location": "query"
|
||||
},
|
||||
"pageSize": {
|
||||
"type": "integer",
|
||||
"description": "The maximum number of events to return on a page. The response includes a continuation token if there are more events.",
|
||||
"default": "50",
|
||||
"format": "int32",
|
||||
"location": "query"
|
||||
},
|
||||
"pageToken": {
|
||||
"type": "string",
|
||||
"description": "A token to retrieve a specific page of results.",
|
||||
"location": "query"
|
||||
},
|
||||
"source": {
|
||||
"type": "string",
|
||||
"description": "The Google service from which to return activities. Possible values of source are: \n- drive.google.com",
|
||||
"location": "query"
|
||||
},
|
||||
"userId": {
|
||||
"type": "string",
|
||||
"description": "Indicates the user to return activity for. Use the special value me to indicate the currently authenticated user.",
|
||||
"default": "me",
|
||||
"location": "query"
|
||||
}
|
||||
},
|
||||
"response": {
|
||||
"$ref": "ListActivitiesResponse"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/activity",
|
||||
"https://www.googleapis.com/auth/drive",
|
||||
"https://www.googleapis.com/auth/drive.metadata",
|
||||
"https://www.googleapis.com/auth/drive.metadata.readonly",
|
||||
"https://www.googleapis.com/auth/drive.readonly"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
817
vendor/google.golang.org/api/appsactivity/v1/appsactivity-gen.go
generated
vendored
Normal file
817
vendor/google.golang.org/api/appsactivity/v1/appsactivity-gen.go
generated
vendored
Normal file
|
@ -0,0 +1,817 @@
|
|||
// Package appsactivity provides access to the G Suite Activity API.
|
||||
//
|
||||
// See https://developers.google.com/google-apps/activity/
|
||||
//
|
||||
// Usage example:
|
||||
//
|
||||
// import "google.golang.org/api/appsactivity/v1"
|
||||
// ...
|
||||
// appsactivityService, err := appsactivity.New(oauthHttpClient)
|
||||
package appsactivity // import "google.golang.org/api/appsactivity/v1"
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"fmt"
|
||||
context "golang.org/x/net/context"
|
||||
ctxhttp "golang.org/x/net/context/ctxhttp"
|
||||
gensupport "google.golang.org/api/gensupport"
|
||||
googleapi "google.golang.org/api/googleapi"
|
||||
"io"
|
||||
"net/http"
|
||||
"net/url"
|
||||
"strconv"
|
||||
"strings"
|
||||
)
|
||||
|
||||
// Always reference these packages, just in case the auto-generated code
|
||||
// below doesn't.
|
||||
var _ = bytes.NewBuffer
|
||||
var _ = strconv.Itoa
|
||||
var _ = fmt.Sprintf
|
||||
var _ = json.NewDecoder
|
||||
var _ = io.Copy
|
||||
var _ = url.Parse
|
||||
var _ = gensupport.MarshalJSON
|
||||
var _ = googleapi.Version
|
||||
var _ = errors.New
|
||||
var _ = strings.Replace
|
||||
var _ = context.Canceled
|
||||
var _ = ctxhttp.Do
|
||||
|
||||
const apiId = "appsactivity:v1"
|
||||
const apiName = "appsactivity"
|
||||
const apiVersion = "v1"
|
||||
const basePath = "https://www.googleapis.com/appsactivity/v1/"
|
||||
|
||||
// OAuth2 scopes used by this API.
|
||||
const (
|
||||
// View the activity history of your Google apps
|
||||
ActivityScope = "https://www.googleapis.com/auth/activity"
|
||||
|
||||
// View and manage the files in your Google Drive
|
||||
DriveScope = "https://www.googleapis.com/auth/drive"
|
||||
|
||||
// View and manage metadata of files in your Google Drive
|
||||
DriveMetadataScope = "https://www.googleapis.com/auth/drive.metadata"
|
||||
|
||||
// View metadata for files in your Google Drive
|
||||
DriveMetadataReadonlyScope = "https://www.googleapis.com/auth/drive.metadata.readonly"
|
||||
|
||||
// View the files in your Google Drive
|
||||
DriveReadonlyScope = "https://www.googleapis.com/auth/drive.readonly"
|
||||
)
|
||||
|
||||
func New(client *http.Client) (*Service, error) {
|
||||
if client == nil {
|
||||
return nil, errors.New("client is nil")
|
||||
}
|
||||
s := &Service{client: client, BasePath: basePath}
|
||||
s.Activities = NewActivitiesService(s)
|
||||
return s, nil
|
||||
}
|
||||
|
||||
type Service struct {
|
||||
client *http.Client
|
||||
BasePath string // API endpoint base URL
|
||||
UserAgent string // optional additional User-Agent fragment
|
||||
|
||||
Activities *ActivitiesService
|
||||
}
|
||||
|
||||
func (s *Service) userAgent() string {
|
||||
if s.UserAgent == "" {
|
||||
return googleapi.UserAgent
|
||||
}
|
||||
return googleapi.UserAgent + " " + s.UserAgent
|
||||
}
|
||||
|
||||
func NewActivitiesService(s *Service) *ActivitiesService {
|
||||
rs := &ActivitiesService{s: s}
|
||||
return rs
|
||||
}
|
||||
|
||||
type ActivitiesService struct {
|
||||
s *Service
|
||||
}
|
||||
|
||||
// Activity: An Activity resource is a combined view of multiple events.
|
||||
// An activity has a list of individual events and a combined view of
|
||||
// the common fields among all events.
|
||||
type Activity struct {
|
||||
// CombinedEvent: The fields common to all of the singleEvents that make
|
||||
// up the Activity.
|
||||
CombinedEvent *Event `json:"combinedEvent,omitempty"`
|
||||
|
||||
// SingleEvents: A list of all the Events that make up the Activity.
|
||||
SingleEvents []*Event `json:"singleEvents,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "CombinedEvent") to
|
||||
// unconditionally include in API requests. By default, fields with
|
||||
// empty values are omitted from API requests. However, any non-pointer,
|
||||
// non-interface field appearing in ForceSendFields will be sent to the
|
||||
// server regardless of whether the field is empty or not. This may be
|
||||
// used to include empty fields in Patch requests.
|
||||
ForceSendFields []string `json:"-"`
|
||||
|
||||
// NullFields is a list of field names (e.g. "CombinedEvent") to include
|
||||
// in API requests with the JSON null value. By default, fields with
|
||||
// empty values are omitted from API requests. However, any field with
|
||||
// an empty value appearing in NullFields will be sent to the server as
|
||||
// null. It is an error if a field in this list has a non-empty value.
|
||||
// This may be used to include null fields in Patch requests.
|
||||
NullFields []string `json:"-"`
|
||||
}
|
||||
|
||||
func (s *Activity) MarshalJSON() ([]byte, error) {
|
||||
type noMethod Activity
|
||||
raw := noMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// Event: Represents the changes associated with an action taken by a
|
||||
// user.
|
||||
type Event struct {
|
||||
// AdditionalEventTypes: Additional event types. Some events may have
|
||||
// multiple types when multiple actions are part of a single event. For
|
||||
// example, creating a document, renaming it, and sharing it may be part
|
||||
// of a single file-creation event.
|
||||
//
|
||||
// Possible values:
|
||||
// "comment"
|
||||
// "create"
|
||||
// "edit"
|
||||
// "emptyTrash"
|
||||
// "move"
|
||||
// "permissionChange"
|
||||
// "rename"
|
||||
// "trash"
|
||||
// "unknown"
|
||||
// "untrash"
|
||||
// "upload"
|
||||
AdditionalEventTypes []string `json:"additionalEventTypes,omitempty"`
|
||||
|
||||
// EventTimeMillis: The time at which the event occurred formatted as
|
||||
// Unix time in milliseconds.
|
||||
EventTimeMillis uint64 `json:"eventTimeMillis,omitempty,string"`
|
||||
|
||||
// FromUserDeletion: Whether this event is caused by a user being
|
||||
// deleted.
|
||||
FromUserDeletion bool `json:"fromUserDeletion,omitempty"`
|
||||
|
||||
// Move: Extra information for move type events, such as changes in an
|
||||
// object's parents.
|
||||
Move *Move `json:"move,omitempty"`
|
||||
|
||||
// PermissionChanges: Extra information for permissionChange type
|
||||
// events, such as the user or group the new permission applies to.
|
||||
PermissionChanges []*PermissionChange `json:"permissionChanges,omitempty"`
|
||||
|
||||
// PrimaryEventType: The main type of event that occurred.
|
||||
//
|
||||
// Possible values:
|
||||
// "comment"
|
||||
// "create"
|
||||
// "edit"
|
||||
// "emptyTrash"
|
||||
// "move"
|
||||
// "permissionChange"
|
||||
// "rename"
|
||||
// "trash"
|
||||
// "unknown"
|
||||
// "untrash"
|
||||
// "upload"
|
||||
PrimaryEventType string `json:"primaryEventType,omitempty"`
|
||||
|
||||
// Rename: Extra information for rename type events, such as the old and
|
||||
// new names.
|
||||
Rename *Rename `json:"rename,omitempty"`
|
||||
|
||||
// Target: Information specific to the Target object modified by the
|
||||
// event.
|
||||
Target *Target `json:"target,omitempty"`
|
||||
|
||||
// User: Represents the user responsible for the event.
|
||||
User *User `json:"user,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g.
|
||||
// "AdditionalEventTypes") to unconditionally include in API requests.
|
||||
// By default, fields with empty values are omitted from API requests.
|
||||
// However, any non-pointer, non-interface field appearing in
|
||||
// ForceSendFields will be sent to the server regardless of whether the
|
||||
// field is empty or not. This may be used to include empty fields in
|
||||
// Patch requests.
|
||||
ForceSendFields []string `json:"-"`
|
||||
|
||||
// NullFields is a list of field names (e.g. "AdditionalEventTypes") to
|
||||
// include in API requests with the JSON null value. By default, fields
|
||||
// with empty values are omitted from API requests. However, any field
|
||||
// with an empty value appearing in NullFields will be sent to the
|
||||
// server as null. It is an error if a field in this list has a
|
||||
// non-empty value. This may be used to include null fields in Patch
|
||||
// requests.
|
||||
NullFields []string `json:"-"`
|
||||
}
|
||||
|
||||
func (s *Event) MarshalJSON() ([]byte, error) {
|
||||
type noMethod Event
|
||||
raw := noMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// ListActivitiesResponse: The response from the list request. Contains
|
||||
// a list of activities and a token to retrieve the next page of
|
||||
// results.
|
||||
type ListActivitiesResponse struct {
|
||||
// Activities: List of activities.
|
||||
Activities []*Activity `json:"activities,omitempty"`
|
||||
|
||||
// NextPageToken: Token for the next page of results.
|
||||
NextPageToken string `json:"nextPageToken,omitempty"`
|
||||
|
||||
// ServerResponse contains the HTTP response code and headers from the
|
||||
// server.
|
||||
googleapi.ServerResponse `json:"-"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "Activities") to
|
||||
// unconditionally include in API requests. By default, fields with
|
||||
// empty values are omitted from API requests. However, any non-pointer,
|
||||
// non-interface field appearing in ForceSendFields will be sent to the
|
||||
// server regardless of whether the field is empty or not. This may be
|
||||
// used to include empty fields in Patch requests.
|
||||
ForceSendFields []string `json:"-"`
|
||||
|
||||
// NullFields is a list of field names (e.g. "Activities") to include in
|
||||
// API requests with the JSON null value. By default, fields with empty
|
||||
// values are omitted from API requests. However, any field with an
|
||||
// empty value appearing in NullFields will be sent to the server as
|
||||
// null. It is an error if a field in this list has a non-empty value.
|
||||
// This may be used to include null fields in Patch requests.
|
||||
NullFields []string `json:"-"`
|
||||
}
|
||||
|
||||
func (s *ListActivitiesResponse) MarshalJSON() ([]byte, error) {
|
||||
type noMethod ListActivitiesResponse
|
||||
raw := noMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// Move: Contains information about changes in an object's parents as a
|
||||
// result of a move type event.
|
||||
type Move struct {
|
||||
// AddedParents: The added parent(s).
|
||||
AddedParents []*Parent `json:"addedParents,omitempty"`
|
||||
|
||||
// RemovedParents: The removed parent(s).
|
||||
RemovedParents []*Parent `json:"removedParents,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "AddedParents") to
|
||||
// unconditionally include in API requests. By default, fields with
|
||||
// empty values are omitted from API requests. However, any non-pointer,
|
||||
// non-interface field appearing in ForceSendFields will be sent to the
|
||||
// server regardless of whether the field is empty or not. This may be
|
||||
// used to include empty fields in Patch requests.
|
||||
ForceSendFields []string `json:"-"`
|
||||
|
||||
// NullFields is a list of field names (e.g. "AddedParents") to include
|
||||
// in API requests with the JSON null value. By default, fields with
|
||||
// empty values are omitted from API requests. However, any field with
|
||||
// an empty value appearing in NullFields will be sent to the server as
|
||||
// null. It is an error if a field in this list has a non-empty value.
|
||||
// This may be used to include null fields in Patch requests.
|
||||
NullFields []string `json:"-"`
|
||||
}
|
||||
|
||||
func (s *Move) MarshalJSON() ([]byte, error) {
|
||||
type noMethod Move
|
||||
raw := noMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// Parent: Contains information about a parent object. For example, a
|
||||
// folder in Drive is a parent for all files within it.
|
||||
type Parent struct {
|
||||
// Id: The parent's ID.
|
||||
Id string `json:"id,omitempty"`
|
||||
|
||||
// IsRoot: Whether this is the root folder.
|
||||
IsRoot bool `json:"isRoot,omitempty"`
|
||||
|
||||
// Title: The parent's title.
|
||||
Title string `json:"title,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "Id") to
|
||||
// unconditionally include in API requests. By default, fields with
|
||||
// empty values are omitted from API requests. However, any non-pointer,
|
||||
// non-interface field appearing in ForceSendFields will be sent to the
|
||||
// server regardless of whether the field is empty or not. This may be
|
||||
// used to include empty fields in Patch requests.
|
||||
ForceSendFields []string `json:"-"`
|
||||
|
||||
// NullFields is a list of field names (e.g. "Id") to include in API
|
||||
// requests with the JSON null value. By default, fields with empty
|
||||
// values are omitted from API requests. However, any field with an
|
||||
// empty value appearing in NullFields will be sent to the server as
|
||||
// null. It is an error if a field in this list has a non-empty value.
|
||||
// This may be used to include null fields in Patch requests.
|
||||
NullFields []string `json:"-"`
|
||||
}
|
||||
|
||||
func (s *Parent) MarshalJSON() ([]byte, error) {
|
||||
type noMethod Parent
|
||||
raw := noMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// Permission: Contains information about the permissions and type of
|
||||
// access allowed with regards to a Google Drive object. This is a
|
||||
// subset of the fields contained in a corresponding Drive Permissions
|
||||
// object.
|
||||
type Permission struct {
|
||||
// Name: The name of the user or group the permission applies to.
|
||||
Name string `json:"name,omitempty"`
|
||||
|
||||
// PermissionId: The ID for this permission. Corresponds to the Drive
|
||||
// API's permission ID returned as part of the Drive Permissions
|
||||
// resource.
|
||||
PermissionId string `json:"permissionId,omitempty"`
|
||||
|
||||
// Role: Indicates the Google Drive permissions role. The role
|
||||
// determines a user's ability to read, write, or comment on the file.
|
||||
//
|
||||
// Possible values:
|
||||
// "commenter"
|
||||
// "owner"
|
||||
// "reader"
|
||||
// "writer"
|
||||
Role string `json:"role,omitempty"`
|
||||
|
||||
// Type: Indicates how widely permissions are granted.
|
||||
//
|
||||
// Possible values:
|
||||
// "anyone"
|
||||
// "domain"
|
||||
// "group"
|
||||
// "user"
|
||||
Type string `json:"type,omitempty"`
|
||||
|
||||
// User: The user's information if the type is USER.
|
||||
User *User `json:"user,omitempty"`
|
||||
|
||||
// WithLink: Whether the permission requires a link to the file.
|
||||
WithLink bool `json:"withLink,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "Name") to
|
||||
// unconditionally include in API requests. By default, fields with
|
||||
// empty values are omitted from API requests. However, any non-pointer,
|
||||
// non-interface field appearing in ForceSendFields will be sent to the
|
||||
// server regardless of whether the field is empty or not. This may be
|
||||
// used to include empty fields in Patch requests.
|
||||
ForceSendFields []string `json:"-"`
|
||||
|
||||
// NullFields is a list of field names (e.g. "Name") to include in API
|
||||
// requests with the JSON null value. By default, fields with empty
|
||||
// values are omitted from API requests. However, any field with an
|
||||
// empty value appearing in NullFields will be sent to the server as
|
||||
// null. It is an error if a field in this list has a non-empty value.
|
||||
// This may be used to include null fields in Patch requests.
|
||||
NullFields []string `json:"-"`
|
||||
}
|
||||
|
||||
func (s *Permission) MarshalJSON() ([]byte, error) {
|
||||
type noMethod Permission
|
||||
raw := noMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// PermissionChange: Contains information about a Drive object's
|
||||
// permissions that changed as a result of a permissionChange type
|
||||
// event.
|
||||
type PermissionChange struct {
|
||||
// AddedPermissions: Lists all Permission objects added.
|
||||
AddedPermissions []*Permission `json:"addedPermissions,omitempty"`
|
||||
|
||||
// RemovedPermissions: Lists all Permission objects removed.
|
||||
RemovedPermissions []*Permission `json:"removedPermissions,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "AddedPermissions") to
|
||||
// unconditionally include in API requests. By default, fields with
|
||||
// empty values are omitted from API requests. However, any non-pointer,
|
||||
// non-interface field appearing in ForceSendFields will be sent to the
|
||||
// server regardless of whether the field is empty or not. This may be
|
||||
// used to include empty fields in Patch requests.
|
||||
ForceSendFields []string `json:"-"`
|
||||
|
||||
// NullFields is a list of field names (e.g. "AddedPermissions") to
|
||||
// include in API requests with the JSON null value. By default, fields
|
||||
// with empty values are omitted from API requests. However, any field
|
||||
// with an empty value appearing in NullFields will be sent to the
|
||||
// server as null. It is an error if a field in this list has a
|
||||
// non-empty value. This may be used to include null fields in Patch
|
||||
// requests.
|
||||
NullFields []string `json:"-"`
|
||||
}
|
||||
|
||||
func (s *PermissionChange) MarshalJSON() ([]byte, error) {
|
||||
type noMethod PermissionChange
|
||||
raw := noMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// Photo: Photo information for a user.
|
||||
type Photo struct {
|
||||
// Url: The URL of the photo.
|
||||
Url string `json:"url,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "Url") to
|
||||
// unconditionally include in API requests. By default, fields with
|
||||
// empty values are omitted from API requests. However, any non-pointer,
|
||||
// non-interface field appearing in ForceSendFields will be sent to the
|
||||
// server regardless of whether the field is empty or not. This may be
|
||||
// used to include empty fields in Patch requests.
|
||||
ForceSendFields []string `json:"-"`
|
||||
|
||||
// NullFields is a list of field names (e.g. "Url") to include in API
|
||||
// requests with the JSON null value. By default, fields with empty
|
||||
// values are omitted from API requests. However, any field with an
|
||||
// empty value appearing in NullFields will be sent to the server as
|
||||
// null. It is an error if a field in this list has a non-empty value.
|
||||
// This may be used to include null fields in Patch requests.
|
||||
NullFields []string `json:"-"`
|
||||
}
|
||||
|
||||
func (s *Photo) MarshalJSON() ([]byte, error) {
|
||||
type noMethod Photo
|
||||
raw := noMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// Rename: Contains information about a renametype event.
|
||||
type Rename struct {
|
||||
// NewTitle: The new title.
|
||||
NewTitle string `json:"newTitle,omitempty"`
|
||||
|
||||
// OldTitle: The old title.
|
||||
OldTitle string `json:"oldTitle,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "NewTitle") to
|
||||
// unconditionally include in API requests. By default, fields with
|
||||
// empty values are omitted from API requests. However, any non-pointer,
|
||||
// non-interface field appearing in ForceSendFields will be sent to the
|
||||
// server regardless of whether the field is empty or not. This may be
|
||||
// used to include empty fields in Patch requests.
|
||||
ForceSendFields []string `json:"-"`
|
||||
|
||||
// NullFields is a list of field names (e.g. "NewTitle") to include in
|
||||
// API requests with the JSON null value. By default, fields with empty
|
||||
// values are omitted from API requests. However, any field with an
|
||||
// empty value appearing in NullFields will be sent to the server as
|
||||
// null. It is an error if a field in this list has a non-empty value.
|
||||
// This may be used to include null fields in Patch requests.
|
||||
NullFields []string `json:"-"`
|
||||
}
|
||||
|
||||
func (s *Rename) MarshalJSON() ([]byte, error) {
|
||||
type noMethod Rename
|
||||
raw := noMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// Target: Information about the object modified by the event.
|
||||
type Target struct {
|
||||
// Id: The ID of the target. For example, in Google Drive, this is the
|
||||
// file or folder ID.
|
||||
Id string `json:"id,omitempty"`
|
||||
|
||||
// MimeType: The MIME type of the target.
|
||||
MimeType string `json:"mimeType,omitempty"`
|
||||
|
||||
// Name: The name of the target. For example, in Google Drive, this is
|
||||
// the title of the file.
|
||||
Name string `json:"name,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "Id") to
|
||||
// unconditionally include in API requests. By default, fields with
|
||||
// empty values are omitted from API requests. However, any non-pointer,
|
||||
// non-interface field appearing in ForceSendFields will be sent to the
|
||||
// server regardless of whether the field is empty or not. This may be
|
||||
// used to include empty fields in Patch requests.
|
||||
ForceSendFields []string `json:"-"`
|
||||
|
||||
// NullFields is a list of field names (e.g. "Id") to include in API
|
||||
// requests with the JSON null value. By default, fields with empty
|
||||
// values are omitted from API requests. However, any field with an
|
||||
// empty value appearing in NullFields will be sent to the server as
|
||||
// null. It is an error if a field in this list has a non-empty value.
|
||||
// This may be used to include null fields in Patch requests.
|
||||
NullFields []string `json:"-"`
|
||||
}
|
||||
|
||||
func (s *Target) MarshalJSON() ([]byte, error) {
|
||||
type noMethod Target
|
||||
raw := noMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// User: A representation of a user.
|
||||
type User struct {
|
||||
// IsDeleted: A boolean which indicates whether the specified User was
|
||||
// deleted. If true, name, photo and permission_id will be omitted.
|
||||
IsDeleted bool `json:"isDeleted,omitempty"`
|
||||
|
||||
// IsMe: Whether the user is the authenticated user.
|
||||
IsMe bool `json:"isMe,omitempty"`
|
||||
|
||||
// Name: The displayable name of the user.
|
||||
Name string `json:"name,omitempty"`
|
||||
|
||||
// PermissionId: The permission ID associated with this user. Equivalent
|
||||
// to the Drive API's permission ID for this user, returned as part of
|
||||
// the Drive Permissions resource.
|
||||
PermissionId string `json:"permissionId,omitempty"`
|
||||
|
||||
// Photo: The profile photo of the user. Not present if the user has no
|
||||
// profile photo.
|
||||
Photo *Photo `json:"photo,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "IsDeleted") to
|
||||
// unconditionally include in API requests. By default, fields with
|
||||
// empty values are omitted from API requests. However, any non-pointer,
|
||||
// non-interface field appearing in ForceSendFields will be sent to the
|
||||
// server regardless of whether the field is empty or not. This may be
|
||||
// used to include empty fields in Patch requests.
|
||||
ForceSendFields []string `json:"-"`
|
||||
|
||||
// NullFields is a list of field names (e.g. "IsDeleted") to include in
|
||||
// API requests with the JSON null value. By default, fields with empty
|
||||
// values are omitted from API requests. However, any field with an
|
||||
// empty value appearing in NullFields will be sent to the server as
|
||||
// null. It is an error if a field in this list has a non-empty value.
|
||||
// This may be used to include null fields in Patch requests.
|
||||
NullFields []string `json:"-"`
|
||||
}
|
||||
|
||||
func (s *User) MarshalJSON() ([]byte, error) {
|
||||
type noMethod User
|
||||
raw := noMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// method id "appsactivity.activities.list":
|
||||
|
||||
type ActivitiesListCall struct {
|
||||
s *Service
|
||||
urlParams_ gensupport.URLParams
|
||||
ifNoneMatch_ string
|
||||
ctx_ context.Context
|
||||
header_ http.Header
|
||||
}
|
||||
|
||||
// List: Returns a list of activities visible to the current logged in
|
||||
// user. Visible activities are determined by the visiblity settings of
|
||||
// the object that was acted on, e.g. Drive files a user can see. An
|
||||
// activity is a record of past events. Multiple events may be merged if
|
||||
// they are similar. A request is scoped to activities from a given
|
||||
// Google service using the source parameter.
|
||||
func (r *ActivitiesService) List() *ActivitiesListCall {
|
||||
c := &ActivitiesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
return c
|
||||
}
|
||||
|
||||
// DriveAncestorId sets the optional parameter "drive.ancestorId":
|
||||
// Identifies the Drive folder containing the items for which to return
|
||||
// activities.
|
||||
func (c *ActivitiesListCall) DriveAncestorId(driveAncestorId string) *ActivitiesListCall {
|
||||
c.urlParams_.Set("drive.ancestorId", driveAncestorId)
|
||||
return c
|
||||
}
|
||||
|
||||
// DriveFileId sets the optional parameter "drive.fileId": Identifies
|
||||
// the Drive item to return activities for.
|
||||
func (c *ActivitiesListCall) DriveFileId(driveFileId string) *ActivitiesListCall {
|
||||
c.urlParams_.Set("drive.fileId", driveFileId)
|
||||
return c
|
||||
}
|
||||
|
||||
// GroupingStrategy sets the optional parameter "groupingStrategy":
|
||||
// Indicates the strategy to use when grouping singleEvents items in the
|
||||
// associated combinedEvent object.
|
||||
//
|
||||
// Possible values:
|
||||
// "driveUi" (default)
|
||||
// "none"
|
||||
func (c *ActivitiesListCall) GroupingStrategy(groupingStrategy string) *ActivitiesListCall {
|
||||
c.urlParams_.Set("groupingStrategy", groupingStrategy)
|
||||
return c
|
||||
}
|
||||
|
||||
// PageSize sets the optional parameter "pageSize": The maximum number
|
||||
// of events to return on a page. The response includes a continuation
|
||||
// token if there are more events.
|
||||
func (c *ActivitiesListCall) PageSize(pageSize int64) *ActivitiesListCall {
|
||||
c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
|
||||
return c
|
||||
}
|
||||
|
||||
// PageToken sets the optional parameter "pageToken": A token to
|
||||
// retrieve a specific page of results.
|
||||
func (c *ActivitiesListCall) PageToken(pageToken string) *ActivitiesListCall {
|
||||
c.urlParams_.Set("pageToken", pageToken)
|
||||
return c
|
||||
}
|
||||
|
||||
// Source sets the optional parameter "source": The Google service from
|
||||
// which to return activities. Possible values of source are:
|
||||
// - drive.google.com
|
||||
func (c *ActivitiesListCall) Source(source string) *ActivitiesListCall {
|
||||
c.urlParams_.Set("source", source)
|
||||
return c
|
||||
}
|
||||
|
||||
// UserId sets the optional parameter "userId": Indicates the user to
|
||||
// return activity for. Use the special value me to indicate the
|
||||
// currently authenticated user.
|
||||
func (c *ActivitiesListCall) UserId(userId string) *ActivitiesListCall {
|
||||
c.urlParams_.Set("userId", userId)
|
||||
return c
|
||||
}
|
||||
|
||||
// Fields allows partial responses to be retrieved. See
|
||||
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
|
||||
// for more information.
|
||||
func (c *ActivitiesListCall) Fields(s ...googleapi.Field) *ActivitiesListCall {
|
||||
c.urlParams_.Set("fields", googleapi.CombineFields(s))
|
||||
return c
|
||||
}
|
||||
|
||||
// IfNoneMatch sets the optional parameter which makes the operation
|
||||
// fail if the object's ETag matches the given value. This is useful for
|
||||
// getting updates only after the object has changed since the last
|
||||
// request. Use googleapi.IsNotModified to check whether the response
|
||||
// error from Do is the result of In-None-Match.
|
||||
func (c *ActivitiesListCall) IfNoneMatch(entityTag string) *ActivitiesListCall {
|
||||
c.ifNoneMatch_ = entityTag
|
||||
return c
|
||||
}
|
||||
|
||||
// Context sets the context to be used in this call's Do method. Any
|
||||
// pending HTTP request will be aborted if the provided context is
|
||||
// canceled.
|
||||
func (c *ActivitiesListCall) Context(ctx context.Context) *ActivitiesListCall {
|
||||
c.ctx_ = ctx
|
||||
return c
|
||||
}
|
||||
|
||||
// Header returns an http.Header that can be modified by the caller to
|
||||
// add HTTP headers to the request.
|
||||
func (c *ActivitiesListCall) Header() http.Header {
|
||||
if c.header_ == nil {
|
||||
c.header_ = make(http.Header)
|
||||
}
|
||||
return c.header_
|
||||
}
|
||||
|
||||
func (c *ActivitiesListCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
reqHeaders.Set("User-Agent", c.s.userAgent())
|
||||
if c.ifNoneMatch_ != "" {
|
||||
reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
|
||||
}
|
||||
var body io.Reader = nil
|
||||
c.urlParams_.Set("alt", alt)
|
||||
urls := googleapi.ResolveRelative(c.s.BasePath, "activities")
|
||||
urls += "?" + c.urlParams_.Encode()
|
||||
req, _ := http.NewRequest("GET", urls, body)
|
||||
req.Header = reqHeaders
|
||||
return gensupport.SendRequest(c.ctx_, c.s.client, req)
|
||||
}
|
||||
|
||||
// Do executes the "appsactivity.activities.list" call.
|
||||
// Exactly one of *ListActivitiesResponse or error will be non-nil. Any
|
||||
// non-2xx status code is an error. Response headers are in either
|
||||
// *ListActivitiesResponse.ServerResponse.Header or (if a response was
|
||||
// returned at all) in error.(*googleapi.Error).Header. Use
|
||||
// googleapi.IsNotModified to check whether the returned error was
|
||||
// because http.StatusNotModified was returned.
|
||||
func (c *ActivitiesListCall) Do(opts ...googleapi.CallOption) (*ListActivitiesResponse, error) {
|
||||
gensupport.SetOptions(c.urlParams_, opts...)
|
||||
res, err := c.doRequest("json")
|
||||
if res != nil && res.StatusCode == http.StatusNotModified {
|
||||
if res.Body != nil {
|
||||
res.Body.Close()
|
||||
}
|
||||
return nil, &googleapi.Error{
|
||||
Code: res.StatusCode,
|
||||
Header: res.Header,
|
||||
}
|
||||
}
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
defer googleapi.CloseBody(res)
|
||||
if err := googleapi.CheckResponse(res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
ret := &ListActivitiesResponse{
|
||||
ServerResponse: googleapi.ServerResponse{
|
||||
Header: res.Header,
|
||||
HTTPStatusCode: res.StatusCode,
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
// {
|
||||
// "description": "Returns a list of activities visible to the current logged in user. Visible activities are determined by the visiblity settings of the object that was acted on, e.g. Drive files a user can see. An activity is a record of past events. Multiple events may be merged if they are similar. A request is scoped to activities from a given Google service using the source parameter.",
|
||||
// "httpMethod": "GET",
|
||||
// "id": "appsactivity.activities.list",
|
||||
// "parameters": {
|
||||
// "drive.ancestorId": {
|
||||
// "description": "Identifies the Drive folder containing the items for which to return activities.",
|
||||
// "location": "query",
|
||||
// "type": "string"
|
||||
// },
|
||||
// "drive.fileId": {
|
||||
// "description": "Identifies the Drive item to return activities for.",
|
||||
// "location": "query",
|
||||
// "type": "string"
|
||||
// },
|
||||
// "groupingStrategy": {
|
||||
// "default": "driveUi",
|
||||
// "description": "Indicates the strategy to use when grouping singleEvents items in the associated combinedEvent object.",
|
||||
// "enum": [
|
||||
// "driveUi",
|
||||
// "none"
|
||||
// ],
|
||||
// "enumDescriptions": [
|
||||
// "",
|
||||
// ""
|
||||
// ],
|
||||
// "location": "query",
|
||||
// "type": "string"
|
||||
// },
|
||||
// "pageSize": {
|
||||
// "default": "50",
|
||||
// "description": "The maximum number of events to return on a page. The response includes a continuation token if there are more events.",
|
||||
// "format": "int32",
|
||||
// "location": "query",
|
||||
// "type": "integer"
|
||||
// },
|
||||
// "pageToken": {
|
||||
// "description": "A token to retrieve a specific page of results.",
|
||||
// "location": "query",
|
||||
// "type": "string"
|
||||
// },
|
||||
// "source": {
|
||||
// "description": "The Google service from which to return activities. Possible values of source are: \n- drive.google.com",
|
||||
// "location": "query",
|
||||
// "type": "string"
|
||||
// },
|
||||
// "userId": {
|
||||
// "default": "me",
|
||||
// "description": "Indicates the user to return activity for. Use the special value me to indicate the currently authenticated user.",
|
||||
// "location": "query",
|
||||
// "type": "string"
|
||||
// }
|
||||
// },
|
||||
// "path": "activities",
|
||||
// "response": {
|
||||
// "$ref": "ListActivitiesResponse"
|
||||
// },
|
||||
// "scopes": [
|
||||
// "https://www.googleapis.com/auth/activity",
|
||||
// "https://www.googleapis.com/auth/drive",
|
||||
// "https://www.googleapis.com/auth/drive.metadata",
|
||||
// "https://www.googleapis.com/auth/drive.metadata.readonly",
|
||||
// "https://www.googleapis.com/auth/drive.readonly"
|
||||
// ]
|
||||
// }
|
||||
|
||||
}
|
||||
|
||||
// Pages invokes f for each page of results.
|
||||
// A non-nil error returned from f will halt the iteration.
|
||||
// The provided context supersedes any context provided to the Context method.
|
||||
func (c *ActivitiesListCall) Pages(ctx context.Context, f func(*ListActivitiesResponse) error) error {
|
||||
c.ctx_ = ctx
|
||||
defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
|
||||
for {
|
||||
x, err := c.Do()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if err := f(x); err != nil {
|
||||
return err
|
||||
}
|
||||
if x.NextPageToken == "" {
|
||||
return nil
|
||||
}
|
||||
c.PageToken(x.NextPageToken)
|
||||
}
|
||||
}
|
307
vendor/google.golang.org/api/appstate/v1/appstate-api.json
generated
vendored
Normal file
307
vendor/google.golang.org/api/appstate/v1/appstate-api.json
generated
vendored
Normal file
|
@ -0,0 +1,307 @@
|
|||
{
|
||||
"kind": "discovery#restDescription",
|
||||
"etag": "\"tbys6C40o18GZwyMen5GMkdK-3s/_SxG1uYND7rQdynfLthiEVVDubk\"",
|
||||
"discoveryVersion": "v1",
|
||||
"id": "appstate:v1",
|
||||
"name": "appstate",
|
||||
"canonicalName": "App State",
|
||||
"version": "v1",
|
||||
"revision": "20161103",
|
||||
"title": "Google App State API",
|
||||
"description": "The Google App State API.",
|
||||
"ownerDomain": "google.com",
|
||||
"ownerName": "Google",
|
||||
"icons": {
|
||||
"x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png",
|
||||
"x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png"
|
||||
},
|
||||
"documentationLink": "https://developers.google.com/games/services/web/api/states",
|
||||
"protocol": "rest",
|
||||
"baseUrl": "https://www.googleapis.com/appstate/v1/",
|
||||
"basePath": "/appstate/v1/",
|
||||
"rootUrl": "https://www.googleapis.com/",
|
||||
"servicePath": "appstate/v1/",
|
||||
"batchPath": "batch",
|
||||
"parameters": {
|
||||
"alt": {
|
||||
"type": "string",
|
||||
"description": "Data format for the response.",
|
||||
"default": "json",
|
||||
"enum": [
|
||||
"json"
|
||||
],
|
||||
"enumDescriptions": [
|
||||
"Responses with Content-Type of application/json"
|
||||
],
|
||||
"location": "query"
|
||||
},
|
||||
"fields": {
|
||||
"type": "string",
|
||||
"description": "Selector specifying which fields to include in a partial response.",
|
||||
"location": "query"
|
||||
},
|
||||
"key": {
|
||||
"type": "string",
|
||||
"description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.",
|
||||
"location": "query"
|
||||
},
|
||||
"oauth_token": {
|
||||
"type": "string",
|
||||
"description": "OAuth 2.0 token for the current user.",
|
||||
"location": "query"
|
||||
},
|
||||
"prettyPrint": {
|
||||
"type": "boolean",
|
||||
"description": "Returns response with indentations and line breaks.",
|
||||
"default": "true",
|
||||
"location": "query"
|
||||
},
|
||||
"quotaUser": {
|
||||
"type": "string",
|
||||
"description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.",
|
||||
"location": "query"
|
||||
},
|
||||
"userIp": {
|
||||
"type": "string",
|
||||
"description": "IP address of the site where the request originates. Use this if you want to enforce per-user limits.",
|
||||
"location": "query"
|
||||
}
|
||||
},
|
||||
"auth": {
|
||||
"oauth2": {
|
||||
"scopes": {
|
||||
"https://www.googleapis.com/auth/appstate": {
|
||||
"description": "View and manage your data for this application"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"schemas": {
|
||||
"GetResponse": {
|
||||
"id": "GetResponse",
|
||||
"type": "object",
|
||||
"description": "This is a JSON template for an app state resource.",
|
||||
"properties": {
|
||||
"currentStateVersion": {
|
||||
"type": "string",
|
||||
"description": "The current app state version."
|
||||
},
|
||||
"data": {
|
||||
"type": "string",
|
||||
"description": "The requested data."
|
||||
},
|
||||
"kind": {
|
||||
"type": "string",
|
||||
"description": "Uniquely identifies the type of this resource. Value is always the fixed string appstate#getResponse.",
|
||||
"default": "appstate#getResponse"
|
||||
},
|
||||
"stateKey": {
|
||||
"type": "integer",
|
||||
"description": "The key for the data.",
|
||||
"format": "int32"
|
||||
}
|
||||
}
|
||||
},
|
||||
"ListResponse": {
|
||||
"id": "ListResponse",
|
||||
"type": "object",
|
||||
"description": "This is a JSON template to convert a list-response for app state.",
|
||||
"properties": {
|
||||
"items": {
|
||||
"type": "array",
|
||||
"description": "The app state data.",
|
||||
"items": {
|
||||
"$ref": "GetResponse"
|
||||
}
|
||||
},
|
||||
"kind": {
|
||||
"type": "string",
|
||||
"description": "Uniquely identifies the type of this resource. Value is always the fixed string appstate#listResponse.",
|
||||
"default": "appstate#listResponse"
|
||||
},
|
||||
"maximumKeyCount": {
|
||||
"type": "integer",
|
||||
"description": "The maximum number of keys allowed for this user.",
|
||||
"format": "int32"
|
||||
}
|
||||
}
|
||||
},
|
||||
"UpdateRequest": {
|
||||
"id": "UpdateRequest",
|
||||
"type": "object",
|
||||
"description": "This is a JSON template for a requests which update app state",
|
||||
"properties": {
|
||||
"data": {
|
||||
"type": "string",
|
||||
"description": "The new app state data that your application is trying to update with."
|
||||
},
|
||||
"kind": {
|
||||
"type": "string",
|
||||
"description": "Uniquely identifies the type of this resource. Value is always the fixed string appstate#updateRequest.",
|
||||
"default": "appstate#updateRequest"
|
||||
}
|
||||
}
|
||||
},
|
||||
"WriteResult": {
|
||||
"id": "WriteResult",
|
||||
"type": "object",
|
||||
"description": "This is a JSON template for an app state write result.",
|
||||
"properties": {
|
||||
"currentStateVersion": {
|
||||
"type": "string",
|
||||
"description": "The version of the data for this key on the server."
|
||||
},
|
||||
"kind": {
|
||||
"type": "string",
|
||||
"description": "Uniquely identifies the type of this resource. Value is always the fixed string appstate#writeResult.",
|
||||
"default": "appstate#writeResult"
|
||||
},
|
||||
"stateKey": {
|
||||
"type": "integer",
|
||||
"description": "The written key.",
|
||||
"format": "int32"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"resources": {
|
||||
"states": {
|
||||
"methods": {
|
||||
"clear": {
|
||||
"id": "appstate.states.clear",
|
||||
"path": "states/{stateKey}/clear",
|
||||
"httpMethod": "POST",
|
||||
"description": "Clears (sets to empty) the data for the passed key if and only if the passed version matches the currently stored version. This method results in a conflict error on version mismatch.",
|
||||
"parameters": {
|
||||
"currentDataVersion": {
|
||||
"type": "string",
|
||||
"description": "The version of the data to be cleared. Version strings are returned by the server.",
|
||||
"location": "query"
|
||||
},
|
||||
"stateKey": {
|
||||
"type": "integer",
|
||||
"description": "The key for the data to be retrieved.",
|
||||
"required": true,
|
||||
"format": "int32",
|
||||
"minimum": "0",
|
||||
"maximum": "3",
|
||||
"location": "path"
|
||||
}
|
||||
},
|
||||
"parameterOrder": [
|
||||
"stateKey"
|
||||
],
|
||||
"response": {
|
||||
"$ref": "WriteResult"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/appstate"
|
||||
]
|
||||
},
|
||||
"delete": {
|
||||
"id": "appstate.states.delete",
|
||||
"path": "states/{stateKey}",
|
||||
"httpMethod": "DELETE",
|
||||
"description": "Deletes a key and the data associated with it. The key is removed and no longer counts against the key quota. Note that since this method is not safe in the face of concurrent modifications, it should only be used for development and testing purposes. Invoking this method in shipping code can result in data loss and data corruption.",
|
||||
"parameters": {
|
||||
"stateKey": {
|
||||
"type": "integer",
|
||||
"description": "The key for the data to be retrieved.",
|
||||
"required": true,
|
||||
"format": "int32",
|
||||
"minimum": "0",
|
||||
"maximum": "3",
|
||||
"location": "path"
|
||||
}
|
||||
},
|
||||
"parameterOrder": [
|
||||
"stateKey"
|
||||
],
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/appstate"
|
||||
]
|
||||
},
|
||||
"get": {
|
||||
"id": "appstate.states.get",
|
||||
"path": "states/{stateKey}",
|
||||
"httpMethod": "GET",
|
||||
"description": "Retrieves the data corresponding to the passed key. If the key does not exist on the server, an HTTP 404 will be returned.",
|
||||
"parameters": {
|
||||
"stateKey": {
|
||||
"type": "integer",
|
||||
"description": "The key for the data to be retrieved.",
|
||||
"required": true,
|
||||
"format": "int32",
|
||||
"minimum": "0",
|
||||
"maximum": "3",
|
||||
"location": "path"
|
||||
}
|
||||
},
|
||||
"parameterOrder": [
|
||||
"stateKey"
|
||||
],
|
||||
"response": {
|
||||
"$ref": "GetResponse"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/appstate"
|
||||
]
|
||||
},
|
||||
"list": {
|
||||
"id": "appstate.states.list",
|
||||
"path": "states",
|
||||
"httpMethod": "GET",
|
||||
"description": "Lists all the states keys, and optionally the state data.",
|
||||
"parameters": {
|
||||
"includeData": {
|
||||
"type": "boolean",
|
||||
"description": "Whether to include the full data in addition to the version number",
|
||||
"default": "false",
|
||||
"location": "query"
|
||||
}
|
||||
},
|
||||
"response": {
|
||||
"$ref": "ListResponse"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/appstate"
|
||||
]
|
||||
},
|
||||
"update": {
|
||||
"id": "appstate.states.update",
|
||||
"path": "states/{stateKey}",
|
||||
"httpMethod": "PUT",
|
||||
"description": "Update the data associated with the input key if and only if the passed version matches the currently stored version. This method is safe in the face of concurrent writes. Maximum per-key size is 128KB.",
|
||||
"parameters": {
|
||||
"currentStateVersion": {
|
||||
"type": "string",
|
||||
"description": "The version of the app state your application is attempting to update. If this does not match the current version, this method will return a conflict error. If there is no data stored on the server for this key, the update will succeed irrespective of the value of this parameter.",
|
||||
"location": "query"
|
||||
},
|
||||
"stateKey": {
|
||||
"type": "integer",
|
||||
"description": "The key for the data to be retrieved.",
|
||||
"required": true,
|
||||
"format": "int32",
|
||||
"minimum": "0",
|
||||
"maximum": "3",
|
||||
"location": "path"
|
||||
}
|
||||
},
|
||||
"parameterOrder": [
|
||||
"stateKey"
|
||||
],
|
||||
"request": {
|
||||
"$ref": "UpdateRequest"
|
||||
},
|
||||
"response": {
|
||||
"$ref": "WriteResult"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/appstate"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
919
vendor/google.golang.org/api/appstate/v1/appstate-gen.go
generated
vendored
Normal file
919
vendor/google.golang.org/api/appstate/v1/appstate-gen.go
generated
vendored
Normal file
|
@ -0,0 +1,919 @@
|
|||
// Package appstate provides access to the Google App State API.
|
||||
//
|
||||
// See https://developers.google.com/games/services/web/api/states
|
||||
//
|
||||
// Usage example:
|
||||
//
|
||||
// import "google.golang.org/api/appstate/v1"
|
||||
// ...
|
||||
// appstateService, err := appstate.New(oauthHttpClient)
|
||||
package appstate // import "google.golang.org/api/appstate/v1"
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"fmt"
|
||||
context "golang.org/x/net/context"
|
||||
ctxhttp "golang.org/x/net/context/ctxhttp"
|
||||
gensupport "google.golang.org/api/gensupport"
|
||||
googleapi "google.golang.org/api/googleapi"
|
||||
"io"
|
||||
"net/http"
|
||||
"net/url"
|
||||
"strconv"
|
||||
"strings"
|
||||
)
|
||||
|
||||
// Always reference these packages, just in case the auto-generated code
|
||||
// below doesn't.
|
||||
var _ = bytes.NewBuffer
|
||||
var _ = strconv.Itoa
|
||||
var _ = fmt.Sprintf
|
||||
var _ = json.NewDecoder
|
||||
var _ = io.Copy
|
||||
var _ = url.Parse
|
||||
var _ = gensupport.MarshalJSON
|
||||
var _ = googleapi.Version
|
||||
var _ = errors.New
|
||||
var _ = strings.Replace
|
||||
var _ = context.Canceled
|
||||
var _ = ctxhttp.Do
|
||||
|
||||
const apiId = "appstate:v1"
|
||||
const apiName = "appstate"
|
||||
const apiVersion = "v1"
|
||||
const basePath = "https://www.googleapis.com/appstate/v1/"
|
||||
|
||||
// OAuth2 scopes used by this API.
|
||||
const (
|
||||
// View and manage your data for this application
|
||||
AppstateScope = "https://www.googleapis.com/auth/appstate"
|
||||
)
|
||||
|
||||
func New(client *http.Client) (*Service, error) {
|
||||
if client == nil {
|
||||
return nil, errors.New("client is nil")
|
||||
}
|
||||
s := &Service{client: client, BasePath: basePath}
|
||||
s.States = NewStatesService(s)
|
||||
return s, nil
|
||||
}
|
||||
|
||||
type Service struct {
|
||||
client *http.Client
|
||||
BasePath string // API endpoint base URL
|
||||
UserAgent string // optional additional User-Agent fragment
|
||||
|
||||
States *StatesService
|
||||
}
|
||||
|
||||
func (s *Service) userAgent() string {
|
||||
if s.UserAgent == "" {
|
||||
return googleapi.UserAgent
|
||||
}
|
||||
return googleapi.UserAgent + " " + s.UserAgent
|
||||
}
|
||||
|
||||
func NewStatesService(s *Service) *StatesService {
|
||||
rs := &StatesService{s: s}
|
||||
return rs
|
||||
}
|
||||
|
||||
type StatesService struct {
|
||||
s *Service
|
||||
}
|
||||
|
||||
// GetResponse: This is a JSON template for an app state resource.
|
||||
type GetResponse struct {
|
||||
// CurrentStateVersion: The current app state version.
|
||||
CurrentStateVersion string `json:"currentStateVersion,omitempty"`
|
||||
|
||||
// Data: The requested data.
|
||||
Data string `json:"data,omitempty"`
|
||||
|
||||
// Kind: Uniquely identifies the type of this resource. Value is always
|
||||
// the fixed string appstate#getResponse.
|
||||
Kind string `json:"kind,omitempty"`
|
||||
|
||||
// StateKey: The key for the data.
|
||||
StateKey int64 `json:"stateKey,omitempty"`
|
||||
|
||||
// ServerResponse contains the HTTP response code and headers from the
|
||||
// server.
|
||||
googleapi.ServerResponse `json:"-"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "CurrentStateVersion")
|
||||
// to unconditionally include in API requests. By default, fields with
|
||||
// empty values are omitted from API requests. However, any non-pointer,
|
||||
// non-interface field appearing in ForceSendFields will be sent to the
|
||||
// server regardless of whether the field is empty or not. This may be
|
||||
// used to include empty fields in Patch requests.
|
||||
ForceSendFields []string `json:"-"`
|
||||
|
||||
// NullFields is a list of field names (e.g. "CurrentStateVersion") to
|
||||
// include in API requests with the JSON null value. By default, fields
|
||||
// with empty values are omitted from API requests. However, any field
|
||||
// with an empty value appearing in NullFields will be sent to the
|
||||
// server as null. It is an error if a field in this list has a
|
||||
// non-empty value. This may be used to include null fields in Patch
|
||||
// requests.
|
||||
NullFields []string `json:"-"`
|
||||
}
|
||||
|
||||
func (s *GetResponse) MarshalJSON() ([]byte, error) {
|
||||
type noMethod GetResponse
|
||||
raw := noMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// ListResponse: This is a JSON template to convert a list-response for
|
||||
// app state.
|
||||
type ListResponse struct {
|
||||
// Items: The app state data.
|
||||
Items []*GetResponse `json:"items,omitempty"`
|
||||
|
||||
// Kind: Uniquely identifies the type of this resource. Value is always
|
||||
// the fixed string appstate#listResponse.
|
||||
Kind string `json:"kind,omitempty"`
|
||||
|
||||
// MaximumKeyCount: The maximum number of keys allowed for this user.
|
||||
MaximumKeyCount int64 `json:"maximumKeyCount,omitempty"`
|
||||
|
||||
// ServerResponse contains the HTTP response code and headers from the
|
||||
// server.
|
||||
googleapi.ServerResponse `json:"-"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "Items") to
|
||||
// unconditionally include in API requests. By default, fields with
|
||||
// empty values are omitted from API requests. However, any non-pointer,
|
||||
// non-interface field appearing in ForceSendFields will be sent to the
|
||||
// server regardless of whether the field is empty or not. This may be
|
||||
// used to include empty fields in Patch requests.
|
||||
ForceSendFields []string `json:"-"`
|
||||
|
||||
// NullFields is a list of field names (e.g. "Items") to include in API
|
||||
// requests with the JSON null value. By default, fields with empty
|
||||
// values are omitted from API requests. However, any field with an
|
||||
// empty value appearing in NullFields will be sent to the server as
|
||||
// null. It is an error if a field in this list has a non-empty value.
|
||||
// This may be used to include null fields in Patch requests.
|
||||
NullFields []string `json:"-"`
|
||||
}
|
||||
|
||||
func (s *ListResponse) MarshalJSON() ([]byte, error) {
|
||||
type noMethod ListResponse
|
||||
raw := noMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// UpdateRequest: This is a JSON template for a requests which update
|
||||
// app state
|
||||
type UpdateRequest struct {
|
||||
// Data: The new app state data that your application is trying to
|
||||
// update with.
|
||||
Data string `json:"data,omitempty"`
|
||||
|
||||
// Kind: Uniquely identifies the type of this resource. Value is always
|
||||
// the fixed string appstate#updateRequest.
|
||||
Kind string `json:"kind,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "Data") to
|
||||
// unconditionally include in API requests. By default, fields with
|
||||
// empty values are omitted from API requests. However, any non-pointer,
|
||||
// non-interface field appearing in ForceSendFields will be sent to the
|
||||
// server regardless of whether the field is empty or not. This may be
|
||||
// used to include empty fields in Patch requests.
|
||||
ForceSendFields []string `json:"-"`
|
||||
|
||||
// NullFields is a list of field names (e.g. "Data") to include in API
|
||||
// requests with the JSON null value. By default, fields with empty
|
||||
// values are omitted from API requests. However, any field with an
|
||||
// empty value appearing in NullFields will be sent to the server as
|
||||
// null. It is an error if a field in this list has a non-empty value.
|
||||
// This may be used to include null fields in Patch requests.
|
||||
NullFields []string `json:"-"`
|
||||
}
|
||||
|
||||
func (s *UpdateRequest) MarshalJSON() ([]byte, error) {
|
||||
type noMethod UpdateRequest
|
||||
raw := noMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// WriteResult: This is a JSON template for an app state write result.
|
||||
type WriteResult struct {
|
||||
// CurrentStateVersion: The version of the data for this key on the
|
||||
// server.
|
||||
CurrentStateVersion string `json:"currentStateVersion,omitempty"`
|
||||
|
||||
// Kind: Uniquely identifies the type of this resource. Value is always
|
||||
// the fixed string appstate#writeResult.
|
||||
Kind string `json:"kind,omitempty"`
|
||||
|
||||
// StateKey: The written key.
|
||||
StateKey int64 `json:"stateKey,omitempty"`
|
||||
|
||||
// ServerResponse contains the HTTP response code and headers from the
|
||||
// server.
|
||||
googleapi.ServerResponse `json:"-"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "CurrentStateVersion")
|
||||
// to unconditionally include in API requests. By default, fields with
|
||||
// empty values are omitted from API requests. However, any non-pointer,
|
||||
// non-interface field appearing in ForceSendFields will be sent to the
|
||||
// server regardless of whether the field is empty or not. This may be
|
||||
// used to include empty fields in Patch requests.
|
||||
ForceSendFields []string `json:"-"`
|
||||
|
||||
// NullFields is a list of field names (e.g. "CurrentStateVersion") to
|
||||
// include in API requests with the JSON null value. By default, fields
|
||||
// with empty values are omitted from API requests. However, any field
|
||||
// with an empty value appearing in NullFields will be sent to the
|
||||
// server as null. It is an error if a field in this list has a
|
||||
// non-empty value. This may be used to include null fields in Patch
|
||||
// requests.
|
||||
NullFields []string `json:"-"`
|
||||
}
|
||||
|
||||
func (s *WriteResult) MarshalJSON() ([]byte, error) {
|
||||
type noMethod WriteResult
|
||||
raw := noMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// method id "appstate.states.clear":
|
||||
|
||||
type StatesClearCall struct {
|
||||
s *Service
|
||||
stateKey int64
|
||||
urlParams_ gensupport.URLParams
|
||||
ctx_ context.Context
|
||||
header_ http.Header
|
||||
}
|
||||
|
||||
// Clear: Clears (sets to empty) the data for the passed key if and only
|
||||
// if the passed version matches the currently stored version. This
|
||||
// method results in a conflict error on version mismatch.
|
||||
func (r *StatesService) Clear(stateKey int64) *StatesClearCall {
|
||||
c := &StatesClearCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.stateKey = stateKey
|
||||
return c
|
||||
}
|
||||
|
||||
// CurrentDataVersion sets the optional parameter "currentDataVersion":
|
||||
// The version of the data to be cleared. Version strings are returned
|
||||
// by the server.
|
||||
func (c *StatesClearCall) CurrentDataVersion(currentDataVersion string) *StatesClearCall {
|
||||
c.urlParams_.Set("currentDataVersion", currentDataVersion)
|
||||
return c
|
||||
}
|
||||
|
||||
// Fields allows partial responses to be retrieved. See
|
||||
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
|
||||
// for more information.
|
||||
func (c *StatesClearCall) Fields(s ...googleapi.Field) *StatesClearCall {
|
||||
c.urlParams_.Set("fields", googleapi.CombineFields(s))
|
||||
return c
|
||||
}
|
||||
|
||||
// Context sets the context to be used in this call's Do method. Any
|
||||
// pending HTTP request will be aborted if the provided context is
|
||||
// canceled.
|
||||
func (c *StatesClearCall) Context(ctx context.Context) *StatesClearCall {
|
||||
c.ctx_ = ctx
|
||||
return c
|
||||
}
|
||||
|
||||
// Header returns an http.Header that can be modified by the caller to
|
||||
// add HTTP headers to the request.
|
||||
func (c *StatesClearCall) Header() http.Header {
|
||||
if c.header_ == nil {
|
||||
c.header_ = make(http.Header)
|
||||
}
|
||||
return c.header_
|
||||
}
|
||||
|
||||
func (c *StatesClearCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
reqHeaders.Set("User-Agent", c.s.userAgent())
|
||||
var body io.Reader = nil
|
||||
c.urlParams_.Set("alt", alt)
|
||||
urls := googleapi.ResolveRelative(c.s.BasePath, "states/{stateKey}/clear")
|
||||
urls += "?" + c.urlParams_.Encode()
|
||||
req, _ := http.NewRequest("POST", urls, body)
|
||||
req.Header = reqHeaders
|
||||
googleapi.Expand(req.URL, map[string]string{
|
||||
"stateKey": strconv.FormatInt(c.stateKey, 10),
|
||||
})
|
||||
return gensupport.SendRequest(c.ctx_, c.s.client, req)
|
||||
}
|
||||
|
||||
// Do executes the "appstate.states.clear" call.
|
||||
// Exactly one of *WriteResult or error will be non-nil. Any non-2xx
|
||||
// status code is an error. Response headers are in either
|
||||
// *WriteResult.ServerResponse.Header or (if a response was returned at
|
||||
// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified
|
||||
// to check whether the returned error was because
|
||||
// http.StatusNotModified was returned.
|
||||
func (c *StatesClearCall) Do(opts ...googleapi.CallOption) (*WriteResult, error) {
|
||||
gensupport.SetOptions(c.urlParams_, opts...)
|
||||
res, err := c.doRequest("json")
|
||||
if res != nil && res.StatusCode == http.StatusNotModified {
|
||||
if res.Body != nil {
|
||||
res.Body.Close()
|
||||
}
|
||||
return nil, &googleapi.Error{
|
||||
Code: res.StatusCode,
|
||||
Header: res.Header,
|
||||
}
|
||||
}
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
defer googleapi.CloseBody(res)
|
||||
if err := googleapi.CheckResponse(res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
ret := &WriteResult{
|
||||
ServerResponse: googleapi.ServerResponse{
|
||||
Header: res.Header,
|
||||
HTTPStatusCode: res.StatusCode,
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
// {
|
||||
// "description": "Clears (sets to empty) the data for the passed key if and only if the passed version matches the currently stored version. This method results in a conflict error on version mismatch.",
|
||||
// "httpMethod": "POST",
|
||||
// "id": "appstate.states.clear",
|
||||
// "parameterOrder": [
|
||||
// "stateKey"
|
||||
// ],
|
||||
// "parameters": {
|
||||
// "currentDataVersion": {
|
||||
// "description": "The version of the data to be cleared. Version strings are returned by the server.",
|
||||
// "location": "query",
|
||||
// "type": "string"
|
||||
// },
|
||||
// "stateKey": {
|
||||
// "description": "The key for the data to be retrieved.",
|
||||
// "format": "int32",
|
||||
// "location": "path",
|
||||
// "maximum": "3",
|
||||
// "minimum": "0",
|
||||
// "required": true,
|
||||
// "type": "integer"
|
||||
// }
|
||||
// },
|
||||
// "path": "states/{stateKey}/clear",
|
||||
// "response": {
|
||||
// "$ref": "WriteResult"
|
||||
// },
|
||||
// "scopes": [
|
||||
// "https://www.googleapis.com/auth/appstate"
|
||||
// ]
|
||||
// }
|
||||
|
||||
}
|
||||
|
||||
// method id "appstate.states.delete":
|
||||
|
||||
type StatesDeleteCall struct {
|
||||
s *Service
|
||||
stateKey int64
|
||||
urlParams_ gensupport.URLParams
|
||||
ctx_ context.Context
|
||||
header_ http.Header
|
||||
}
|
||||
|
||||
// Delete: Deletes a key and the data associated with it. The key is
|
||||
// removed and no longer counts against the key quota. Note that since
|
||||
// this method is not safe in the face of concurrent modifications, it
|
||||
// should only be used for development and testing purposes. Invoking
|
||||
// this method in shipping code can result in data loss and data
|
||||
// corruption.
|
||||
func (r *StatesService) Delete(stateKey int64) *StatesDeleteCall {
|
||||
c := &StatesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.stateKey = stateKey
|
||||
return c
|
||||
}
|
||||
|
||||
// Fields allows partial responses to be retrieved. See
|
||||
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
|
||||
// for more information.
|
||||
func (c *StatesDeleteCall) Fields(s ...googleapi.Field) *StatesDeleteCall {
|
||||
c.urlParams_.Set("fields", googleapi.CombineFields(s))
|
||||
return c
|
||||
}
|
||||
|
||||
// Context sets the context to be used in this call's Do method. Any
|
||||
// pending HTTP request will be aborted if the provided context is
|
||||
// canceled.
|
||||
func (c *StatesDeleteCall) Context(ctx context.Context) *StatesDeleteCall {
|
||||
c.ctx_ = ctx
|
||||
return c
|
||||
}
|
||||
|
||||
// Header returns an http.Header that can be modified by the caller to
|
||||
// add HTTP headers to the request.
|
||||
func (c *StatesDeleteCall) Header() http.Header {
|
||||
if c.header_ == nil {
|
||||
c.header_ = make(http.Header)
|
||||
}
|
||||
return c.header_
|
||||
}
|
||||
|
||||
func (c *StatesDeleteCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
reqHeaders.Set("User-Agent", c.s.userAgent())
|
||||
var body io.Reader = nil
|
||||
c.urlParams_.Set("alt", alt)
|
||||
urls := googleapi.ResolveRelative(c.s.BasePath, "states/{stateKey}")
|
||||
urls += "?" + c.urlParams_.Encode()
|
||||
req, _ := http.NewRequest("DELETE", urls, body)
|
||||
req.Header = reqHeaders
|
||||
googleapi.Expand(req.URL, map[string]string{
|
||||
"stateKey": strconv.FormatInt(c.stateKey, 10),
|
||||
})
|
||||
return gensupport.SendRequest(c.ctx_, c.s.client, req)
|
||||
}
|
||||
|
||||
// Do executes the "appstate.states.delete" call.
|
||||
func (c *StatesDeleteCall) Do(opts ...googleapi.CallOption) error {
|
||||
gensupport.SetOptions(c.urlParams_, opts...)
|
||||
res, err := c.doRequest("json")
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
defer googleapi.CloseBody(res)
|
||||
if err := googleapi.CheckResponse(res); err != nil {
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
// {
|
||||
// "description": "Deletes a key and the data associated with it. The key is removed and no longer counts against the key quota. Note that since this method is not safe in the face of concurrent modifications, it should only be used for development and testing purposes. Invoking this method in shipping code can result in data loss and data corruption.",
|
||||
// "httpMethod": "DELETE",
|
||||
// "id": "appstate.states.delete",
|
||||
// "parameterOrder": [
|
||||
// "stateKey"
|
||||
// ],
|
||||
// "parameters": {
|
||||
// "stateKey": {
|
||||
// "description": "The key for the data to be retrieved.",
|
||||
// "format": "int32",
|
||||
// "location": "path",
|
||||
// "maximum": "3",
|
||||
// "minimum": "0",
|
||||
// "required": true,
|
||||
// "type": "integer"
|
||||
// }
|
||||
// },
|
||||
// "path": "states/{stateKey}",
|
||||
// "scopes": [
|
||||
// "https://www.googleapis.com/auth/appstate"
|
||||
// ]
|
||||
// }
|
||||
|
||||
}
|
||||
|
||||
// method id "appstate.states.get":
|
||||
|
||||
type StatesGetCall struct {
|
||||
s *Service
|
||||
stateKey int64
|
||||
urlParams_ gensupport.URLParams
|
||||
ifNoneMatch_ string
|
||||
ctx_ context.Context
|
||||
header_ http.Header
|
||||
}
|
||||
|
||||
// Get: Retrieves the data corresponding to the passed key. If the key
|
||||
// does not exist on the server, an HTTP 404 will be returned.
|
||||
func (r *StatesService) Get(stateKey int64) *StatesGetCall {
|
||||
c := &StatesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.stateKey = stateKey
|
||||
return c
|
||||
}
|
||||
|
||||
// Fields allows partial responses to be retrieved. See
|
||||
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
|
||||
// for more information.
|
||||
func (c *StatesGetCall) Fields(s ...googleapi.Field) *StatesGetCall {
|
||||
c.urlParams_.Set("fields", googleapi.CombineFields(s))
|
||||
return c
|
||||
}
|
||||
|
||||
// IfNoneMatch sets the optional parameter which makes the operation
|
||||
// fail if the object's ETag matches the given value. This is useful for
|
||||
// getting updates only after the object has changed since the last
|
||||
// request. Use googleapi.IsNotModified to check whether the response
|
||||
// error from Do is the result of In-None-Match.
|
||||
func (c *StatesGetCall) IfNoneMatch(entityTag string) *StatesGetCall {
|
||||
c.ifNoneMatch_ = entityTag
|
||||
return c
|
||||
}
|
||||
|
||||
// Context sets the context to be used in this call's Do method. Any
|
||||
// pending HTTP request will be aborted if the provided context is
|
||||
// canceled.
|
||||
func (c *StatesGetCall) Context(ctx context.Context) *StatesGetCall {
|
||||
c.ctx_ = ctx
|
||||
return c
|
||||
}
|
||||
|
||||
// Header returns an http.Header that can be modified by the caller to
|
||||
// add HTTP headers to the request.
|
||||
func (c *StatesGetCall) Header() http.Header {
|
||||
if c.header_ == nil {
|
||||
c.header_ = make(http.Header)
|
||||
}
|
||||
return c.header_
|
||||
}
|
||||
|
||||
func (c *StatesGetCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
reqHeaders.Set("User-Agent", c.s.userAgent())
|
||||
if c.ifNoneMatch_ != "" {
|
||||
reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
|
||||
}
|
||||
var body io.Reader = nil
|
||||
c.urlParams_.Set("alt", alt)
|
||||
urls := googleapi.ResolveRelative(c.s.BasePath, "states/{stateKey}")
|
||||
urls += "?" + c.urlParams_.Encode()
|
||||
req, _ := http.NewRequest("GET", urls, body)
|
||||
req.Header = reqHeaders
|
||||
googleapi.Expand(req.URL, map[string]string{
|
||||
"stateKey": strconv.FormatInt(c.stateKey, 10),
|
||||
})
|
||||
return gensupport.SendRequest(c.ctx_, c.s.client, req)
|
||||
}
|
||||
|
||||
// Do executes the "appstate.states.get" call.
|
||||
// Exactly one of *GetResponse or error will be non-nil. Any non-2xx
|
||||
// status code is an error. Response headers are in either
|
||||
// *GetResponse.ServerResponse.Header or (if a response was returned at
|
||||
// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified
|
||||
// to check whether the returned error was because
|
||||
// http.StatusNotModified was returned.
|
||||
func (c *StatesGetCall) Do(opts ...googleapi.CallOption) (*GetResponse, error) {
|
||||
gensupport.SetOptions(c.urlParams_, opts...)
|
||||
res, err := c.doRequest("json")
|
||||
if res != nil && res.StatusCode == http.StatusNotModified {
|
||||
if res.Body != nil {
|
||||
res.Body.Close()
|
||||
}
|
||||
return nil, &googleapi.Error{
|
||||
Code: res.StatusCode,
|
||||
Header: res.Header,
|
||||
}
|
||||
}
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
defer googleapi.CloseBody(res)
|
||||
if err := googleapi.CheckResponse(res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
ret := &GetResponse{
|
||||
ServerResponse: googleapi.ServerResponse{
|
||||
Header: res.Header,
|
||||
HTTPStatusCode: res.StatusCode,
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
// {
|
||||
// "description": "Retrieves the data corresponding to the passed key. If the key does not exist on the server, an HTTP 404 will be returned.",
|
||||
// "httpMethod": "GET",
|
||||
// "id": "appstate.states.get",
|
||||
// "parameterOrder": [
|
||||
// "stateKey"
|
||||
// ],
|
||||
// "parameters": {
|
||||
// "stateKey": {
|
||||
// "description": "The key for the data to be retrieved.",
|
||||
// "format": "int32",
|
||||
// "location": "path",
|
||||
// "maximum": "3",
|
||||
// "minimum": "0",
|
||||
// "required": true,
|
||||
// "type": "integer"
|
||||
// }
|
||||
// },
|
||||
// "path": "states/{stateKey}",
|
||||
// "response": {
|
||||
// "$ref": "GetResponse"
|
||||
// },
|
||||
// "scopes": [
|
||||
// "https://www.googleapis.com/auth/appstate"
|
||||
// ]
|
||||
// }
|
||||
|
||||
}
|
||||
|
||||
// method id "appstate.states.list":
|
||||
|
||||
type StatesListCall struct {
|
||||
s *Service
|
||||
urlParams_ gensupport.URLParams
|
||||
ifNoneMatch_ string
|
||||
ctx_ context.Context
|
||||
header_ http.Header
|
||||
}
|
||||
|
||||
// List: Lists all the states keys, and optionally the state data.
|
||||
func (r *StatesService) List() *StatesListCall {
|
||||
c := &StatesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
return c
|
||||
}
|
||||
|
||||
// IncludeData sets the optional parameter "includeData": Whether to
|
||||
// include the full data in addition to the version number
|
||||
func (c *StatesListCall) IncludeData(includeData bool) *StatesListCall {
|
||||
c.urlParams_.Set("includeData", fmt.Sprint(includeData))
|
||||
return c
|
||||
}
|
||||
|
||||
// Fields allows partial responses to be retrieved. See
|
||||
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
|
||||
// for more information.
|
||||
func (c *StatesListCall) Fields(s ...googleapi.Field) *StatesListCall {
|
||||
c.urlParams_.Set("fields", googleapi.CombineFields(s))
|
||||
return c
|
||||
}
|
||||
|
||||
// IfNoneMatch sets the optional parameter which makes the operation
|
||||
// fail if the object's ETag matches the given value. This is useful for
|
||||
// getting updates only after the object has changed since the last
|
||||
// request. Use googleapi.IsNotModified to check whether the response
|
||||
// error from Do is the result of In-None-Match.
|
||||
func (c *StatesListCall) IfNoneMatch(entityTag string) *StatesListCall {
|
||||
c.ifNoneMatch_ = entityTag
|
||||
return c
|
||||
}
|
||||
|
||||
// Context sets the context to be used in this call's Do method. Any
|
||||
// pending HTTP request will be aborted if the provided context is
|
||||
// canceled.
|
||||
func (c *StatesListCall) Context(ctx context.Context) *StatesListCall {
|
||||
c.ctx_ = ctx
|
||||
return c
|
||||
}
|
||||
|
||||
// Header returns an http.Header that can be modified by the caller to
|
||||
// add HTTP headers to the request.
|
||||
func (c *StatesListCall) Header() http.Header {
|
||||
if c.header_ == nil {
|
||||
c.header_ = make(http.Header)
|
||||
}
|
||||
return c.header_
|
||||
}
|
||||
|
||||
func (c *StatesListCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
reqHeaders.Set("User-Agent", c.s.userAgent())
|
||||
if c.ifNoneMatch_ != "" {
|
||||
reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
|
||||
}
|
||||
var body io.Reader = nil
|
||||
c.urlParams_.Set("alt", alt)
|
||||
urls := googleapi.ResolveRelative(c.s.BasePath, "states")
|
||||
urls += "?" + c.urlParams_.Encode()
|
||||
req, _ := http.NewRequest("GET", urls, body)
|
||||
req.Header = reqHeaders
|
||||
return gensupport.SendRequest(c.ctx_, c.s.client, req)
|
||||
}
|
||||
|
||||
// Do executes the "appstate.states.list" call.
|
||||
// Exactly one of *ListResponse or error will be non-nil. Any non-2xx
|
||||
// status code is an error. Response headers are in either
|
||||
// *ListResponse.ServerResponse.Header or (if a response was returned at
|
||||
// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified
|
||||
// to check whether the returned error was because
|
||||
// http.StatusNotModified was returned.
|
||||
func (c *StatesListCall) Do(opts ...googleapi.CallOption) (*ListResponse, error) {
|
||||
gensupport.SetOptions(c.urlParams_, opts...)
|
||||
res, err := c.doRequest("json")
|
||||
if res != nil && res.StatusCode == http.StatusNotModified {
|
||||
if res.Body != nil {
|
||||
res.Body.Close()
|
||||
}
|
||||
return nil, &googleapi.Error{
|
||||
Code: res.StatusCode,
|
||||
Header: res.Header,
|
||||
}
|
||||
}
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
defer googleapi.CloseBody(res)
|
||||
if err := googleapi.CheckResponse(res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
ret := &ListResponse{
|
||||
ServerResponse: googleapi.ServerResponse{
|
||||
Header: res.Header,
|
||||
HTTPStatusCode: res.StatusCode,
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
// {
|
||||
// "description": "Lists all the states keys, and optionally the state data.",
|
||||
// "httpMethod": "GET",
|
||||
// "id": "appstate.states.list",
|
||||
// "parameters": {
|
||||
// "includeData": {
|
||||
// "default": "false",
|
||||
// "description": "Whether to include the full data in addition to the version number",
|
||||
// "location": "query",
|
||||
// "type": "boolean"
|
||||
// }
|
||||
// },
|
||||
// "path": "states",
|
||||
// "response": {
|
||||
// "$ref": "ListResponse"
|
||||
// },
|
||||
// "scopes": [
|
||||
// "https://www.googleapis.com/auth/appstate"
|
||||
// ]
|
||||
// }
|
||||
|
||||
}
|
||||
|
||||
// method id "appstate.states.update":
|
||||
|
||||
type StatesUpdateCall struct {
|
||||
s *Service
|
||||
stateKey int64
|
||||
updaterequest *UpdateRequest
|
||||
urlParams_ gensupport.URLParams
|
||||
ctx_ context.Context
|
||||
header_ http.Header
|
||||
}
|
||||
|
||||
// Update: Update the data associated with the input key if and only if
|
||||
// the passed version matches the currently stored version. This method
|
||||
// is safe in the face of concurrent writes. Maximum per-key size is
|
||||
// 128KB.
|
||||
func (r *StatesService) Update(stateKey int64, updaterequest *UpdateRequest) *StatesUpdateCall {
|
||||
c := &StatesUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.stateKey = stateKey
|
||||
c.updaterequest = updaterequest
|
||||
return c
|
||||
}
|
||||
|
||||
// CurrentStateVersion sets the optional parameter
|
||||
// "currentStateVersion": The version of the app state your application
|
||||
// is attempting to update. If this does not match the current version,
|
||||
// this method will return a conflict error. If there is no data stored
|
||||
// on the server for this key, the update will succeed irrespective of
|
||||
// the value of this parameter.
|
||||
func (c *StatesUpdateCall) CurrentStateVersion(currentStateVersion string) *StatesUpdateCall {
|
||||
c.urlParams_.Set("currentStateVersion", currentStateVersion)
|
||||
return c
|
||||
}
|
||||
|
||||
// Fields allows partial responses to be retrieved. See
|
||||
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
|
||||
// for more information.
|
||||
func (c *StatesUpdateCall) Fields(s ...googleapi.Field) *StatesUpdateCall {
|
||||
c.urlParams_.Set("fields", googleapi.CombineFields(s))
|
||||
return c
|
||||
}
|
||||
|
||||
// Context sets the context to be used in this call's Do method. Any
|
||||
// pending HTTP request will be aborted if the provided context is
|
||||
// canceled.
|
||||
func (c *StatesUpdateCall) Context(ctx context.Context) *StatesUpdateCall {
|
||||
c.ctx_ = ctx
|
||||
return c
|
||||
}
|
||||
|
||||
// Header returns an http.Header that can be modified by the caller to
|
||||
// add HTTP headers to the request.
|
||||
func (c *StatesUpdateCall) Header() http.Header {
|
||||
if c.header_ == nil {
|
||||
c.header_ = make(http.Header)
|
||||
}
|
||||
return c.header_
|
||||
}
|
||||
|
||||
func (c *StatesUpdateCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
reqHeaders.Set("User-Agent", c.s.userAgent())
|
||||
var body io.Reader = nil
|
||||
body, err := googleapi.WithoutDataWrapper.JSONReader(c.updaterequest)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
reqHeaders.Set("Content-Type", "application/json")
|
||||
c.urlParams_.Set("alt", alt)
|
||||
urls := googleapi.ResolveRelative(c.s.BasePath, "states/{stateKey}")
|
||||
urls += "?" + c.urlParams_.Encode()
|
||||
req, _ := http.NewRequest("PUT", urls, body)
|
||||
req.Header = reqHeaders
|
||||
googleapi.Expand(req.URL, map[string]string{
|
||||
"stateKey": strconv.FormatInt(c.stateKey, 10),
|
||||
})
|
||||
return gensupport.SendRequest(c.ctx_, c.s.client, req)
|
||||
}
|
||||
|
||||
// Do executes the "appstate.states.update" call.
|
||||
// Exactly one of *WriteResult or error will be non-nil. Any non-2xx
|
||||
// status code is an error. Response headers are in either
|
||||
// *WriteResult.ServerResponse.Header or (if a response was returned at
|
||||
// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified
|
||||
// to check whether the returned error was because
|
||||
// http.StatusNotModified was returned.
|
||||
func (c *StatesUpdateCall) Do(opts ...googleapi.CallOption) (*WriteResult, error) {
|
||||
gensupport.SetOptions(c.urlParams_, opts...)
|
||||
res, err := c.doRequest("json")
|
||||
if res != nil && res.StatusCode == http.StatusNotModified {
|
||||
if res.Body != nil {
|
||||
res.Body.Close()
|
||||
}
|
||||
return nil, &googleapi.Error{
|
||||
Code: res.StatusCode,
|
||||
Header: res.Header,
|
||||
}
|
||||
}
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
defer googleapi.CloseBody(res)
|
||||
if err := googleapi.CheckResponse(res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
ret := &WriteResult{
|
||||
ServerResponse: googleapi.ServerResponse{
|
||||
Header: res.Header,
|
||||
HTTPStatusCode: res.StatusCode,
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
// {
|
||||
// "description": "Update the data associated with the input key if and only if the passed version matches the currently stored version. This method is safe in the face of concurrent writes. Maximum per-key size is 128KB.",
|
||||
// "httpMethod": "PUT",
|
||||
// "id": "appstate.states.update",
|
||||
// "parameterOrder": [
|
||||
// "stateKey"
|
||||
// ],
|
||||
// "parameters": {
|
||||
// "currentStateVersion": {
|
||||
// "description": "The version of the app state your application is attempting to update. If this does not match the current version, this method will return a conflict error. If there is no data stored on the server for this key, the update will succeed irrespective of the value of this parameter.",
|
||||
// "location": "query",
|
||||
// "type": "string"
|
||||
// },
|
||||
// "stateKey": {
|
||||
// "description": "The key for the data to be retrieved.",
|
||||
// "format": "int32",
|
||||
// "location": "path",
|
||||
// "maximum": "3",
|
||||
// "minimum": "0",
|
||||
// "required": true,
|
||||
// "type": "integer"
|
||||
// }
|
||||
// },
|
||||
// "path": "states/{stateKey}",
|
||||
// "request": {
|
||||
// "$ref": "UpdateRequest"
|
||||
// },
|
||||
// "response": {
|
||||
// "$ref": "WriteResult"
|
||||
// },
|
||||
// "scopes": [
|
||||
// "https://www.googleapis.com/auth/appstate"
|
||||
// ]
|
||||
// }
|
||||
|
||||
}
|
869
vendor/google.golang.org/api/autoscaler/v1beta2/autoscaler-api.json
generated
vendored
Normal file
869
vendor/google.golang.org/api/autoscaler/v1beta2/autoscaler-api.json
generated
vendored
Normal file
|
@ -0,0 +1,869 @@
|
|||
{
|
||||
"kind": "discovery#restDescription",
|
||||
"etag": "\"jQLIOHBVnDZie4rQHGH1WJF-INE/0eE1-oXZzmJsWsHoXDgI_xuj0vA\"",
|
||||
"discoveryVersion": "v1",
|
||||
"id": "autoscaler:v1beta2",
|
||||
"name": "autoscaler",
|
||||
"version": "v1beta2",
|
||||
"revision": "20160511",
|
||||
"title": "Google Compute Engine Autoscaler API",
|
||||
"description": "The Google Compute Engine Autoscaler API provides autoscaling for groups of Cloud VMs.",
|
||||
"ownerDomain": "google.com",
|
||||
"ownerName": "Google",
|
||||
"icons": {
|
||||
"x16": "http://www.google.com/images/icons/product/search-16.gif",
|
||||
"x32": "http://www.google.com/images/icons/product/search-32.gif"
|
||||
},
|
||||
"documentationLink": "http://developers.google.com/compute/docs/autoscaler",
|
||||
"labels": [
|
||||
"limited_availability"
|
||||
],
|
||||
"protocol": "rest",
|
||||
"baseUrl": "https://www.googleapis.com/autoscaler/v1beta2/",
|
||||
"basePath": "/autoscaler/v1beta2/",
|
||||
"rootUrl": "https://www.googleapis.com/",
|
||||
"servicePath": "autoscaler/v1beta2/",
|
||||
"batchPath": "batch",
|
||||
"parameters": {
|
||||
"alt": {
|
||||
"type": "string",
|
||||
"description": "Data format for the response.",
|
||||
"default": "json",
|
||||
"enum": [
|
||||
"json"
|
||||
],
|
||||
"enumDescriptions": [
|
||||
"Responses with Content-Type of application/json"
|
||||
],
|
||||
"location": "query"
|
||||
},
|
||||
"fields": {
|
||||
"type": "string",
|
||||
"description": "Selector specifying which fields to include in a partial response.",
|
||||
"location": "query"
|
||||
},
|
||||
"key": {
|
||||
"type": "string",
|
||||
"description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.",
|
||||
"location": "query"
|
||||
},
|
||||
"oauth_token": {
|
||||
"type": "string",
|
||||
"description": "OAuth 2.0 token for the current user.",
|
||||
"location": "query"
|
||||
},
|
||||
"prettyPrint": {
|
||||
"type": "boolean",
|
||||
"description": "Returns response with indentations and line breaks.",
|
||||
"default": "true",
|
||||
"location": "query"
|
||||
},
|
||||
"quotaUser": {
|
||||
"type": "string",
|
||||
"description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.",
|
||||
"location": "query"
|
||||
},
|
||||
"userIp": {
|
||||
"type": "string",
|
||||
"description": "IP address of the site where the request originates. Use this if you want to enforce per-user limits.",
|
||||
"location": "query"
|
||||
}
|
||||
},
|
||||
"auth": {
|
||||
"oauth2": {
|
||||
"scopes": {
|
||||
"https://www.googleapis.com/auth/compute": {
|
||||
"description": "View and manage your Google Compute Engine resources"
|
||||
},
|
||||
"https://www.googleapis.com/auth/compute.readonly": {
|
||||
"description": "View your Google Compute Engine resources"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"schemas": {
|
||||
"Autoscaler": {
|
||||
"id": "Autoscaler",
|
||||
"type": "object",
|
||||
"description": "Cloud Autoscaler resource.",
|
||||
"properties": {
|
||||
"autoscalingPolicy": {
|
||||
"$ref": "AutoscalingPolicy",
|
||||
"description": "Configuration parameters for autoscaling algorithm."
|
||||
},
|
||||
"creationTimestamp": {
|
||||
"type": "string",
|
||||
"description": "[Output Only] Creation timestamp in RFC3339 text format."
|
||||
},
|
||||
"description": {
|
||||
"type": "string",
|
||||
"description": "An optional textual description of the resource provided by the client."
|
||||
},
|
||||
"id": {
|
||||
"type": "string",
|
||||
"description": "[Output Only] Unique identifier for the resource; defined by the server.",
|
||||
"format": "uint64"
|
||||
},
|
||||
"kind": {
|
||||
"type": "string",
|
||||
"description": "Type of resource.",
|
||||
"default": "compute#autoscaler"
|
||||
},
|
||||
"name": {
|
||||
"type": "string",
|
||||
"description": "Name of the Autoscaler resource. Must be unique per project and zone."
|
||||
},
|
||||
"selfLink": {
|
||||
"type": "string",
|
||||
"description": "[Output Only] A self-link to the Autoscaler configuration resource."
|
||||
},
|
||||
"target": {
|
||||
"type": "string",
|
||||
"description": "URL to the entity which will be autoscaled. Currently the only supported value is ReplicaPool?s URL. Note: it is illegal to specify multiple Autoscalers for the same target."
|
||||
}
|
||||
}
|
||||
},
|
||||
"AutoscalerListResponse": {
|
||||
"id": "AutoscalerListResponse",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"items": {
|
||||
"type": "array",
|
||||
"description": "Autoscaler resources.",
|
||||
"items": {
|
||||
"$ref": "Autoscaler"
|
||||
}
|
||||
},
|
||||
"kind": {
|
||||
"type": "string",
|
||||
"description": "Type of resource.",
|
||||
"default": "compute#autoscalerList"
|
||||
},
|
||||
"nextPageToken": {
|
||||
"type": "string",
|
||||
"description": "[Output only] A token used to continue a truncated list request."
|
||||
}
|
||||
}
|
||||
},
|
||||
"AutoscalingPolicy": {
|
||||
"id": "AutoscalingPolicy",
|
||||
"type": "object",
|
||||
"description": "Cloud Autoscaler policy.",
|
||||
"properties": {
|
||||
"coolDownPeriodSec": {
|
||||
"type": "integer",
|
||||
"description": "The number of seconds that the Autoscaler should wait between two succeeding changes to the number of virtual machines. You should define an interval that is at least as long as the initialization time of a virtual machine and the time it may take for replica pool to create the virtual machine. The default is 60 seconds.",
|
||||
"format": "int32"
|
||||
},
|
||||
"cpuUtilization": {
|
||||
"$ref": "AutoscalingPolicyCpuUtilization",
|
||||
"description": "Configuration parameters of CPU based autoscaling policy."
|
||||
},
|
||||
"customMetricUtilizations": {
|
||||
"type": "array",
|
||||
"description": "Configuration parameters of autoscaling based on custom metric.",
|
||||
"items": {
|
||||
"$ref": "AutoscalingPolicyCustomMetricUtilization"
|
||||
}
|
||||
},
|
||||
"loadBalancingUtilization": {
|
||||
"$ref": "AutoscalingPolicyLoadBalancingUtilization",
|
||||
"description": "Configuration parameters of autoscaling based on load balancer."
|
||||
},
|
||||
"maxNumReplicas": {
|
||||
"type": "integer",
|
||||
"description": "The maximum number of replicas that the Autoscaler can scale up to.",
|
||||
"format": "int32"
|
||||
},
|
||||
"minNumReplicas": {
|
||||
"type": "integer",
|
||||
"description": "The minimum number of replicas that the Autoscaler can scale down to.",
|
||||
"format": "int32"
|
||||
}
|
||||
}
|
||||
},
|
||||
"AutoscalingPolicyCpuUtilization": {
|
||||
"id": "AutoscalingPolicyCpuUtilization",
|
||||
"type": "object",
|
||||
"description": "CPU utilization policy.",
|
||||
"properties": {
|
||||
"utilizationTarget": {
|
||||
"type": "number",
|
||||
"description": "The target utilization that the Autoscaler should maintain. It is represented as a fraction of used cores. For example: 6 cores used in 8-core VM are represented here as 0.75. Must be a float value between (0, 1]. If not defined, the default is 0.8.",
|
||||
"format": "double"
|
||||
}
|
||||
}
|
||||
},
|
||||
"AutoscalingPolicyCustomMetricUtilization": {
|
||||
"id": "AutoscalingPolicyCustomMetricUtilization",
|
||||
"type": "object",
|
||||
"description": "Custom utilization metric policy.",
|
||||
"properties": {
|
||||
"metric": {
|
||||
"type": "string",
|
||||
"description": "Identifier of the metric. It should be a Cloud Monitoring metric. The metric can not have negative values. The metric should be an utilization metric (increasing number of VMs handling requests x times should reduce average value of the metric roughly x times). For example you could use: compute.googleapis.com/instance/network/received_bytes_count."
|
||||
},
|
||||
"utilizationTarget": {
|
||||
"type": "number",
|
||||
"description": "Target value of the metric which Autoscaler should maintain. Must be a positive value.",
|
||||
"format": "double"
|
||||
},
|
||||
"utilizationTargetType": {
|
||||
"type": "string",
|
||||
"description": "Defines type in which utilization_target is expressed."
|
||||
}
|
||||
}
|
||||
},
|
||||
"AutoscalingPolicyLoadBalancingUtilization": {
|
||||
"id": "AutoscalingPolicyLoadBalancingUtilization",
|
||||
"type": "object",
|
||||
"description": "Load balancing utilization policy.",
|
||||
"properties": {
|
||||
"utilizationTarget": {
|
||||
"type": "number",
|
||||
"description": "Fraction of backend capacity utilization (set in HTTP load balancing configuration) that Autoscaler should maintain. Must be a positive float value. If not defined, the default is 0.8. For example if your maxRatePerInstance capacity (in HTTP Load Balancing configuration) is set at 10 and you would like to keep number of instances such that each instance receives 7 QPS on average, set this to 0.7.",
|
||||
"format": "double"
|
||||
}
|
||||
}
|
||||
},
|
||||
"DeprecationStatus": {
|
||||
"id": "DeprecationStatus",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"deleted": {
|
||||
"type": "string"
|
||||
},
|
||||
"deprecated": {
|
||||
"type": "string"
|
||||
},
|
||||
"obsolete": {
|
||||
"type": "string"
|
||||
},
|
||||
"replacement": {
|
||||
"type": "string"
|
||||
},
|
||||
"state": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Operation": {
|
||||
"id": "Operation",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"clientOperationId": {
|
||||
"type": "string"
|
||||
},
|
||||
"creationTimestamp": {
|
||||
"type": "string"
|
||||
},
|
||||
"description": {
|
||||
"type": "string"
|
||||
},
|
||||
"endTime": {
|
||||
"type": "string"
|
||||
},
|
||||
"error": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"errors": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"code": {
|
||||
"type": "string"
|
||||
},
|
||||
"location": {
|
||||
"type": "string"
|
||||
},
|
||||
"message": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"httpErrorMessage": {
|
||||
"type": "string"
|
||||
},
|
||||
"httpErrorStatusCode": {
|
||||
"type": "integer",
|
||||
"format": "int32"
|
||||
},
|
||||
"id": {
|
||||
"type": "string",
|
||||
"format": "uint64"
|
||||
},
|
||||
"insertTime": {
|
||||
"type": "string"
|
||||
},
|
||||
"kind": {
|
||||
"type": "string",
|
||||
"description": "[Output Only] Type of the resource. Always compute#operation for Operation resources.",
|
||||
"default": "autoscaler#operation"
|
||||
},
|
||||
"name": {
|
||||
"type": "string"
|
||||
},
|
||||
"operationType": {
|
||||
"type": "string"
|
||||
},
|
||||
"progress": {
|
||||
"type": "integer",
|
||||
"format": "int32"
|
||||
},
|
||||
"region": {
|
||||
"type": "string"
|
||||
},
|
||||
"selfLink": {
|
||||
"type": "string"
|
||||
},
|
||||
"startTime": {
|
||||
"type": "string"
|
||||
},
|
||||
"status": {
|
||||
"type": "string"
|
||||
},
|
||||
"statusMessage": {
|
||||
"type": "string"
|
||||
},
|
||||
"targetId": {
|
||||
"type": "string",
|
||||
"format": "uint64"
|
||||
},
|
||||
"targetLink": {
|
||||
"type": "string"
|
||||
},
|
||||
"user": {
|
||||
"type": "string"
|
||||
},
|
||||
"warnings": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"code": {
|
||||
"type": "string"
|
||||
},
|
||||
"data": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"key": {
|
||||
"type": "string"
|
||||
},
|
||||
"value": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"message": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"zone": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"OperationList": {
|
||||
"id": "OperationList",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "string"
|
||||
},
|
||||
"items": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "Operation"
|
||||
}
|
||||
},
|
||||
"kind": {
|
||||
"type": "string",
|
||||
"description": "[Output Only] Type of resource. Always compute#operations for Operations resource.",
|
||||
"default": "autoscaler#operationList"
|
||||
},
|
||||
"nextPageToken": {
|
||||
"type": "string"
|
||||
},
|
||||
"selfLink": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Zone": {
|
||||
"id": "Zone",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"creationTimestamp": {
|
||||
"type": "string"
|
||||
},
|
||||
"deprecated": {
|
||||
"$ref": "DeprecationStatus"
|
||||
},
|
||||
"description": {
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"type": "string",
|
||||
"format": "uint64"
|
||||
},
|
||||
"kind": {
|
||||
"type": "string",
|
||||
"description": "[Output Only] Type of the resource. Always compute#zone for zones.",
|
||||
"default": "autoscaler#zone"
|
||||
},
|
||||
"name": {
|
||||
"type": "string"
|
||||
},
|
||||
"region": {
|
||||
"type": "string"
|
||||
},
|
||||
"selfLink": {
|
||||
"type": "string"
|
||||
},
|
||||
"status": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"ZoneList": {
|
||||
"id": "ZoneList",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "string"
|
||||
},
|
||||
"items": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "Zone"
|
||||
}
|
||||
},
|
||||
"kind": {
|
||||
"type": "string",
|
||||
"description": "Type of resource.",
|
||||
"default": "autoscaler#zoneList"
|
||||
},
|
||||
"nextPageToken": {
|
||||
"type": "string"
|
||||
},
|
||||
"selfLink": {
|
||||
"type": "string",
|
||||
"description": "[Output Only] Server-defined URL for this resource."
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"resources": {
|
||||
"autoscalers": {
|
||||
"methods": {
|
||||
"delete": {
|
||||
"id": "autoscaler.autoscalers.delete",
|
||||
"path": "projects/{project}/zones/{zone}/autoscalers/{autoscaler}",
|
||||
"httpMethod": "DELETE",
|
||||
"description": "Deletes the specified Autoscaler resource.",
|
||||
"parameters": {
|
||||
"autoscaler": {
|
||||
"type": "string",
|
||||
"description": "Name of the Autoscaler resource.",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
},
|
||||
"project": {
|
||||
"type": "string",
|
||||
"description": "Project ID of Autoscaler resource.",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
},
|
||||
"zone": {
|
||||
"type": "string",
|
||||
"description": "Zone name of Autoscaler resource.",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
}
|
||||
},
|
||||
"parameterOrder": [
|
||||
"project",
|
||||
"zone",
|
||||
"autoscaler"
|
||||
],
|
||||
"response": {
|
||||
"$ref": "Operation"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/compute"
|
||||
]
|
||||
},
|
||||
"get": {
|
||||
"id": "autoscaler.autoscalers.get",
|
||||
"path": "projects/{project}/zones/{zone}/autoscalers/{autoscaler}",
|
||||
"httpMethod": "GET",
|
||||
"description": "Gets the specified Autoscaler resource.",
|
||||
"parameters": {
|
||||
"autoscaler": {
|
||||
"type": "string",
|
||||
"description": "Name of the Autoscaler resource.",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
},
|
||||
"project": {
|
||||
"type": "string",
|
||||
"description": "Project ID of Autoscaler resource.",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
},
|
||||
"zone": {
|
||||
"type": "string",
|
||||
"description": "Zone name of Autoscaler resource.",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
}
|
||||
},
|
||||
"parameterOrder": [
|
||||
"project",
|
||||
"zone",
|
||||
"autoscaler"
|
||||
],
|
||||
"response": {
|
||||
"$ref": "Autoscaler"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/compute",
|
||||
"https://www.googleapis.com/auth/compute.readonly"
|
||||
]
|
||||
},
|
||||
"insert": {
|
||||
"id": "autoscaler.autoscalers.insert",
|
||||
"path": "projects/{project}/zones/{zone}/autoscalers",
|
||||
"httpMethod": "POST",
|
||||
"description": "Adds new Autoscaler resource.",
|
||||
"parameters": {
|
||||
"project": {
|
||||
"type": "string",
|
||||
"description": "Project ID of Autoscaler resource.",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
},
|
||||
"zone": {
|
||||
"type": "string",
|
||||
"description": "Zone name of Autoscaler resource.",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
}
|
||||
},
|
||||
"parameterOrder": [
|
||||
"project",
|
||||
"zone"
|
||||
],
|
||||
"request": {
|
||||
"$ref": "Autoscaler"
|
||||
},
|
||||
"response": {
|
||||
"$ref": "Operation"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/compute"
|
||||
]
|
||||
},
|
||||
"list": {
|
||||
"id": "autoscaler.autoscalers.list",
|
||||
"path": "projects/{project}/zones/{zone}/autoscalers",
|
||||
"httpMethod": "GET",
|
||||
"description": "Lists all Autoscaler resources in this zone.",
|
||||
"parameters": {
|
||||
"filter": {
|
||||
"type": "string",
|
||||
"location": "query"
|
||||
},
|
||||
"maxResults": {
|
||||
"type": "integer",
|
||||
"default": "500",
|
||||
"format": "uint32",
|
||||
"minimum": "0",
|
||||
"maximum": "500",
|
||||
"location": "query"
|
||||
},
|
||||
"pageToken": {
|
||||
"type": "string",
|
||||
"location": "query"
|
||||
},
|
||||
"project": {
|
||||
"type": "string",
|
||||
"description": "Project ID of Autoscaler resource.",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
},
|
||||
"zone": {
|
||||
"type": "string",
|
||||
"description": "Zone name of Autoscaler resource.",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
}
|
||||
},
|
||||
"parameterOrder": [
|
||||
"project",
|
||||
"zone"
|
||||
],
|
||||
"response": {
|
||||
"$ref": "AutoscalerListResponse"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/compute",
|
||||
"https://www.googleapis.com/auth/compute.readonly"
|
||||
]
|
||||
},
|
||||
"patch": {
|
||||
"id": "autoscaler.autoscalers.patch",
|
||||
"path": "projects/{project}/zones/{zone}/autoscalers/{autoscaler}",
|
||||
"httpMethod": "PATCH",
|
||||
"description": "Update the entire content of the Autoscaler resource. This method supports patch semantics.",
|
||||
"parameters": {
|
||||
"autoscaler": {
|
||||
"type": "string",
|
||||
"description": "Name of the Autoscaler resource.",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
},
|
||||
"project": {
|
||||
"type": "string",
|
||||
"description": "Project ID of Autoscaler resource.",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
},
|
||||
"zone": {
|
||||
"type": "string",
|
||||
"description": "Zone name of Autoscaler resource.",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
}
|
||||
},
|
||||
"parameterOrder": [
|
||||
"project",
|
||||
"zone",
|
||||
"autoscaler"
|
||||
],
|
||||
"request": {
|
||||
"$ref": "Autoscaler"
|
||||
},
|
||||
"response": {
|
||||
"$ref": "Operation"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/compute"
|
||||
]
|
||||
},
|
||||
"update": {
|
||||
"id": "autoscaler.autoscalers.update",
|
||||
"path": "projects/{project}/zones/{zone}/autoscalers/{autoscaler}",
|
||||
"httpMethod": "PUT",
|
||||
"description": "Update the entire content of the Autoscaler resource.",
|
||||
"parameters": {
|
||||
"autoscaler": {
|
||||
"type": "string",
|
||||
"description": "Name of the Autoscaler resource.",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
},
|
||||
"project": {
|
||||
"type": "string",
|
||||
"description": "Project ID of Autoscaler resource.",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
},
|
||||
"zone": {
|
||||
"type": "string",
|
||||
"description": "Zone name of Autoscaler resource.",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
}
|
||||
},
|
||||
"parameterOrder": [
|
||||
"project",
|
||||
"zone",
|
||||
"autoscaler"
|
||||
],
|
||||
"request": {
|
||||
"$ref": "Autoscaler"
|
||||
},
|
||||
"response": {
|
||||
"$ref": "Operation"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/compute"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"zoneOperations": {
|
||||
"methods": {
|
||||
"delete": {
|
||||
"id": "autoscaler.zoneOperations.delete",
|
||||
"path": "{project}/zones/{zone}/operations/{operation}",
|
||||
"httpMethod": "DELETE",
|
||||
"description": "Deletes the specified zone-specific operation resource.",
|
||||
"parameters": {
|
||||
"operation": {
|
||||
"type": "string",
|
||||
"required": true,
|
||||
"pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?",
|
||||
"location": "path"
|
||||
},
|
||||
"project": {
|
||||
"type": "string",
|
||||
"required": true,
|
||||
"pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))",
|
||||
"location": "path"
|
||||
},
|
||||
"zone": {
|
||||
"type": "string",
|
||||
"required": true,
|
||||
"pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?",
|
||||
"location": "path"
|
||||
}
|
||||
},
|
||||
"parameterOrder": [
|
||||
"project",
|
||||
"zone",
|
||||
"operation"
|
||||
],
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/compute"
|
||||
]
|
||||
},
|
||||
"get": {
|
||||
"id": "autoscaler.zoneOperations.get",
|
||||
"path": "{project}/zones/{zone}/operations/{operation}",
|
||||
"httpMethod": "GET",
|
||||
"description": "Retrieves the specified zone-specific operation resource.",
|
||||
"parameters": {
|
||||
"operation": {
|
||||
"type": "string",
|
||||
"required": true,
|
||||
"pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?",
|
||||
"location": "path"
|
||||
},
|
||||
"project": {
|
||||
"type": "string",
|
||||
"required": true,
|
||||
"pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))",
|
||||
"location": "path"
|
||||
},
|
||||
"zone": {
|
||||
"type": "string",
|
||||
"required": true,
|
||||
"pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?",
|
||||
"location": "path"
|
||||
}
|
||||
},
|
||||
"parameterOrder": [
|
||||
"project",
|
||||
"zone",
|
||||
"operation"
|
||||
],
|
||||
"response": {
|
||||
"$ref": "Operation"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/compute",
|
||||
"https://www.googleapis.com/auth/compute.readonly"
|
||||
]
|
||||
},
|
||||
"list": {
|
||||
"id": "autoscaler.zoneOperations.list",
|
||||
"path": "{project}/zones/{zone}/operations",
|
||||
"httpMethod": "GET",
|
||||
"description": "Retrieves the list of operation resources contained within the specified zone.",
|
||||
"parameters": {
|
||||
"filter": {
|
||||
"type": "string",
|
||||
"location": "query"
|
||||
},
|
||||
"maxResults": {
|
||||
"type": "integer",
|
||||
"default": "500",
|
||||
"format": "uint32",
|
||||
"minimum": "0",
|
||||
"maximum": "500",
|
||||
"location": "query"
|
||||
},
|
||||
"pageToken": {
|
||||
"type": "string",
|
||||
"location": "query"
|
||||
},
|
||||
"project": {
|
||||
"type": "string",
|
||||
"required": true,
|
||||
"pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))",
|
||||
"location": "path"
|
||||
},
|
||||
"zone": {
|
||||
"type": "string",
|
||||
"required": true,
|
||||
"pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?",
|
||||
"location": "path"
|
||||
}
|
||||
},
|
||||
"parameterOrder": [
|
||||
"project",
|
||||
"zone"
|
||||
],
|
||||
"response": {
|
||||
"$ref": "OperationList"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/compute",
|
||||
"https://www.googleapis.com/auth/compute.readonly"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"zones": {
|
||||
"methods": {
|
||||
"list": {
|
||||
"id": "autoscaler.zones.list",
|
||||
"path": "zones",
|
||||
"httpMethod": "GET",
|
||||
"description": "",
|
||||
"parameters": {
|
||||
"filter": {
|
||||
"type": "string",
|
||||
"location": "query"
|
||||
},
|
||||
"maxResults": {
|
||||
"type": "integer",
|
||||
"default": "500",
|
||||
"format": "uint32",
|
||||
"minimum": "0",
|
||||
"maximum": "500",
|
||||
"location": "query"
|
||||
},
|
||||
"pageToken": {
|
||||
"type": "string",
|
||||
"location": "query"
|
||||
},
|
||||
"project": {
|
||||
"type": "string",
|
||||
"pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))",
|
||||
"location": "query"
|
||||
}
|
||||
},
|
||||
"response": {
|
||||
"$ref": "ZoneList"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/compute",
|
||||
"https://www.googleapis.com/auth/compute.readonly"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
2217
vendor/google.golang.org/api/autoscaler/v1beta2/autoscaler-gen.go
generated
vendored
Normal file
2217
vendor/google.golang.org/api/autoscaler/v1beta2/autoscaler-gen.go
generated
vendored
Normal file
File diff suppressed because it is too large
Load diff
2798
vendor/google.golang.org/api/bigquery/v2/bigquery-api.json
generated
vendored
Normal file
2798
vendor/google.golang.org/api/bigquery/v2/bigquery-api.json
generated
vendored
Normal file
File diff suppressed because it is too large
Load diff
6687
vendor/google.golang.org/api/bigquery/v2/bigquery-gen.go
generated
vendored
Normal file
6687
vendor/google.golang.org/api/bigquery/v2/bigquery-gen.go
generated
vendored
Normal file
File diff suppressed because it is too large
Load diff
1200
vendor/google.golang.org/api/bigquerydatatransfer/v1/bigquerydatatransfer-api.json
generated
vendored
Normal file
1200
vendor/google.golang.org/api/bigquerydatatransfer/v1/bigquerydatatransfer-api.json
generated
vendored
Normal file
File diff suppressed because it is too large
Load diff
3452
vendor/google.golang.org/api/bigquerydatatransfer/v1/bigquerydatatransfer-gen.go
generated
vendored
Normal file
3452
vendor/google.golang.org/api/bigquerydatatransfer/v1/bigquerydatatransfer-gen.go
generated
vendored
Normal file
File diff suppressed because it is too large
Load diff
923
vendor/google.golang.org/api/blogger/v2/blogger-api.json
generated
vendored
Normal file
923
vendor/google.golang.org/api/blogger/v2/blogger-api.json
generated
vendored
Normal file
|
@ -0,0 +1,923 @@
|
|||
{
|
||||
"kind": "discovery#restDescription",
|
||||
"etag": "\"uUWyYHXmEn-ab7WLvo8qNz2S8ws/sAKs5msKBJR7SX4fg3Ahfyr5uno\"",
|
||||
"discoveryVersion": "v1",
|
||||
"id": "blogger:v2",
|
||||
"name": "blogger",
|
||||
"version": "v2",
|
||||
"revision": "20140827",
|
||||
"title": "Blogger API",
|
||||
"description": "API for access to the data within Blogger.",
|
||||
"ownerDomain": "google.com",
|
||||
"ownerName": "Google",
|
||||
"icons": {
|
||||
"x16": "https://www.google.com/images/icons/product/blogger-16.png",
|
||||
"x32": "https://www.google.com/images/icons/product/blogger-32.png"
|
||||
},
|
||||
"documentationLink": "https://developers.google.com/blogger/docs/2.0/json/getting_started",
|
||||
"labels": [
|
||||
"limited_availability"
|
||||
],
|
||||
"protocol": "rest",
|
||||
"baseUrl": "https://www.googleapis.com/blogger/v2/",
|
||||
"basePath": "/blogger/v2/",
|
||||
"rootUrl": "https://www.googleapis.com/",
|
||||
"servicePath": "blogger/v2/",
|
||||
"batchPath": "batch",
|
||||
"parameters": {
|
||||
"alt": {
|
||||
"type": "string",
|
||||
"description": "Data format for the response.",
|
||||
"default": "json",
|
||||
"enum": [
|
||||
"json"
|
||||
],
|
||||
"enumDescriptions": [
|
||||
"Responses with Content-Type of application/json"
|
||||
],
|
||||
"location": "query"
|
||||
},
|
||||
"fields": {
|
||||
"type": "string",
|
||||
"description": "Selector specifying which fields to include in a partial response.",
|
||||
"location": "query"
|
||||
},
|
||||
"key": {
|
||||
"type": "string",
|
||||
"description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.",
|
||||
"location": "query"
|
||||
},
|
||||
"oauth_token": {
|
||||
"type": "string",
|
||||
"description": "OAuth 2.0 token for the current user.",
|
||||
"location": "query"
|
||||
},
|
||||
"prettyPrint": {
|
||||
"type": "boolean",
|
||||
"description": "Returns response with indentations and line breaks.",
|
||||
"default": "true",
|
||||
"location": "query"
|
||||
},
|
||||
"quotaUser": {
|
||||
"type": "string",
|
||||
"description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.",
|
||||
"location": "query"
|
||||
},
|
||||
"userIp": {
|
||||
"type": "string",
|
||||
"description": "IP address of the site where the request originates. Use this if you want to enforce per-user limits.",
|
||||
"location": "query"
|
||||
}
|
||||
},
|
||||
"auth": {
|
||||
"oauth2": {
|
||||
"scopes": {
|
||||
"https://www.googleapis.com/auth/blogger": {
|
||||
"description": "Manage your Blogger account"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"schemas": {
|
||||
"Blog": {
|
||||
"id": "Blog",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"description": {
|
||||
"type": "string",
|
||||
"description": "The description of this blog. This is displayed underneath the title."
|
||||
},
|
||||
"id": {
|
||||
"type": "string",
|
||||
"description": "The identifier for this resource.",
|
||||
"format": "int64"
|
||||
},
|
||||
"kind": {
|
||||
"type": "string",
|
||||
"description": "The kind of this entry. Always blogger#blog",
|
||||
"default": "blogger#blog"
|
||||
},
|
||||
"locale": {
|
||||
"type": "object",
|
||||
"description": "The locale this Blog is set to.",
|
||||
"properties": {
|
||||
"country": {
|
||||
"type": "string",
|
||||
"description": "The country this blog's locale is set to."
|
||||
},
|
||||
"language": {
|
||||
"type": "string",
|
||||
"description": "The language this blog is authored in."
|
||||
},
|
||||
"variant": {
|
||||
"type": "string",
|
||||
"description": "The language variant this blog is authored in."
|
||||
}
|
||||
}
|
||||
},
|
||||
"name": {
|
||||
"type": "string",
|
||||
"description": "The name of this blog. This is displayed as the title."
|
||||
},
|
||||
"pages": {
|
||||
"type": "object",
|
||||
"description": "The container of pages in this blog.",
|
||||
"properties": {
|
||||
"selfLink": {
|
||||
"type": "string",
|
||||
"description": "The URL of the container for pages in this blog."
|
||||
},
|
||||
"totalItems": {
|
||||
"type": "integer",
|
||||
"description": "The count of pages in this blog.",
|
||||
"format": "int32"
|
||||
}
|
||||
}
|
||||
},
|
||||
"posts": {
|
||||
"type": "object",
|
||||
"description": "The container of posts in this blog.",
|
||||
"properties": {
|
||||
"selfLink": {
|
||||
"type": "string",
|
||||
"description": "The URL of the container for posts in this blog."
|
||||
},
|
||||
"totalItems": {
|
||||
"type": "integer",
|
||||
"description": "The count of posts in this blog.",
|
||||
"format": "int32"
|
||||
}
|
||||
}
|
||||
},
|
||||
"published": {
|
||||
"type": "string",
|
||||
"description": "RFC 3339 date-time when this blog was published.",
|
||||
"format": "date-time"
|
||||
},
|
||||
"selfLink": {
|
||||
"type": "string",
|
||||
"description": "The API REST URL to fetch this resource from."
|
||||
},
|
||||
"updated": {
|
||||
"type": "string",
|
||||
"description": "RFC 3339 date-time when this blog was last updated.",
|
||||
"format": "date-time"
|
||||
},
|
||||
"url": {
|
||||
"type": "string",
|
||||
"description": "The URL where this blog is published."
|
||||
}
|
||||
}
|
||||
},
|
||||
"BlogList": {
|
||||
"id": "BlogList",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"items": {
|
||||
"type": "array",
|
||||
"description": "The list of Blogs this user has Authorship or Admin rights over.",
|
||||
"items": {
|
||||
"$ref": "Blog"
|
||||
}
|
||||
},
|
||||
"kind": {
|
||||
"type": "string",
|
||||
"description": "The kind of this entity. Always blogger#blogList",
|
||||
"default": "blogger#blogList"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Comment": {
|
||||
"id": "Comment",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"author": {
|
||||
"type": "object",
|
||||
"description": "The author of this Comment.",
|
||||
"properties": {
|
||||
"displayName": {
|
||||
"type": "string",
|
||||
"description": "The display name."
|
||||
},
|
||||
"id": {
|
||||
"type": "string",
|
||||
"description": "The identifier of the Comment creator."
|
||||
},
|
||||
"image": {
|
||||
"type": "object",
|
||||
"description": "The comment creator's avatar.",
|
||||
"properties": {
|
||||
"url": {
|
||||
"type": "string",
|
||||
"description": "The comment creator's avatar URL."
|
||||
}
|
||||
}
|
||||
},
|
||||
"url": {
|
||||
"type": "string",
|
||||
"description": "The URL of the Comment creator's Profile page."
|
||||
}
|
||||
}
|
||||
},
|
||||
"blog": {
|
||||
"type": "object",
|
||||
"description": "Data about the blog containing this comment.",
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "string",
|
||||
"description": "The identifier of the blog containing this comment.",
|
||||
"format": "int64"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content": {
|
||||
"type": "string",
|
||||
"description": "The actual content of the comment. May include HTML markup."
|
||||
},
|
||||
"id": {
|
||||
"type": "string",
|
||||
"description": "The identifier for this resource.",
|
||||
"format": "int64"
|
||||
},
|
||||
"inReplyTo": {
|
||||
"type": "object",
|
||||
"description": "Data about the comment this is in reply to.",
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "string",
|
||||
"description": "The identified of the parent of this comment.",
|
||||
"format": "int64"
|
||||
}
|
||||
}
|
||||
},
|
||||
"kind": {
|
||||
"type": "string",
|
||||
"description": "The kind of this entry. Always blogger#comment",
|
||||
"default": "blogger#comment"
|
||||
},
|
||||
"post": {
|
||||
"type": "object",
|
||||
"description": "Data about the post containing this comment.",
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "string",
|
||||
"description": "The identifier of the post containing this comment.",
|
||||
"format": "int64"
|
||||
}
|
||||
}
|
||||
},
|
||||
"published": {
|
||||
"type": "string",
|
||||
"description": "RFC 3339 date-time when this comment was published.",
|
||||
"format": "date-time"
|
||||
},
|
||||
"selfLink": {
|
||||
"type": "string",
|
||||
"description": "The API REST URL to fetch this resource from."
|
||||
},
|
||||
"updated": {
|
||||
"type": "string",
|
||||
"description": "RFC 3339 date-time when this comment was last updated.",
|
||||
"format": "date-time"
|
||||
}
|
||||
}
|
||||
},
|
||||
"CommentList": {
|
||||
"id": "CommentList",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"items": {
|
||||
"type": "array",
|
||||
"description": "The List of Comments for a Post.",
|
||||
"items": {
|
||||
"$ref": "Comment"
|
||||
}
|
||||
},
|
||||
"kind": {
|
||||
"type": "string",
|
||||
"description": "The kind of this entry. Always blogger#commentList",
|
||||
"default": "blogger#commentList"
|
||||
},
|
||||
"nextPageToken": {
|
||||
"type": "string",
|
||||
"description": "Pagination token to fetch the next page, if one exists."
|
||||
},
|
||||
"prevPageToken": {
|
||||
"type": "string",
|
||||
"description": "Pagination token to fetch the previous page, if one exists."
|
||||
}
|
||||
}
|
||||
},
|
||||
"Page": {
|
||||
"id": "Page",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"author": {
|
||||
"type": "object",
|
||||
"description": "The author of this Page.",
|
||||
"properties": {
|
||||
"displayName": {
|
||||
"type": "string",
|
||||
"description": "The display name."
|
||||
},
|
||||
"id": {
|
||||
"type": "string",
|
||||
"description": "The identifier of the Page creator."
|
||||
},
|
||||
"image": {
|
||||
"type": "object",
|
||||
"description": "The page author's avatar.",
|
||||
"properties": {
|
||||
"url": {
|
||||
"type": "string",
|
||||
"description": "The page author's avatar URL."
|
||||
}
|
||||
}
|
||||
},
|
||||
"url": {
|
||||
"type": "string",
|
||||
"description": "The URL of the Page creator's Profile page."
|
||||
}
|
||||
}
|
||||
},
|
||||
"blog": {
|
||||
"type": "object",
|
||||
"description": "Data about the blog containing this Page.",
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "string",
|
||||
"description": "The identifier of the blog containing this page.",
|
||||
"format": "int64"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content": {
|
||||
"type": "string",
|
||||
"description": "The body content of this Page, in HTML."
|
||||
},
|
||||
"id": {
|
||||
"type": "string",
|
||||
"description": "The identifier for this resource.",
|
||||
"format": "int64"
|
||||
},
|
||||
"kind": {
|
||||
"type": "string",
|
||||
"description": "The kind of this entity. Always blogger#page",
|
||||
"default": "blogger#page"
|
||||
},
|
||||
"published": {
|
||||
"type": "string",
|
||||
"description": "RFC 3339 date-time when this Page was published.",
|
||||
"format": "date-time"
|
||||
},
|
||||
"selfLink": {
|
||||
"type": "string",
|
||||
"description": "The API REST URL to fetch this resource from."
|
||||
},
|
||||
"title": {
|
||||
"type": "string",
|
||||
"description": "The title of this entity. This is the name displayed in the Admin user interface."
|
||||
},
|
||||
"updated": {
|
||||
"type": "string",
|
||||
"description": "RFC 3339 date-time when this Page was last updated.",
|
||||
"format": "date-time"
|
||||
},
|
||||
"url": {
|
||||
"type": "string",
|
||||
"description": "The URL that this Page is displayed at."
|
||||
}
|
||||
}
|
||||
},
|
||||
"PageList": {
|
||||
"id": "PageList",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"items": {
|
||||
"type": "array",
|
||||
"description": "The list of Pages for a Blog.",
|
||||
"items": {
|
||||
"$ref": "Page"
|
||||
}
|
||||
},
|
||||
"kind": {
|
||||
"type": "string",
|
||||
"description": "The kind of this entity. Always blogger#pageList",
|
||||
"default": "blogger#pageList"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Post": {
|
||||
"id": "Post",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"author": {
|
||||
"type": "object",
|
||||
"description": "The author of this Post.",
|
||||
"properties": {
|
||||
"displayName": {
|
||||
"type": "string",
|
||||
"description": "The display name."
|
||||
},
|
||||
"id": {
|
||||
"type": "string",
|
||||
"description": "The identifier of the Post creator."
|
||||
},
|
||||
"image": {
|
||||
"type": "object",
|
||||
"description": "The Post author's avatar.",
|
||||
"properties": {
|
||||
"url": {
|
||||
"type": "string",
|
||||
"description": "The Post author's avatar URL."
|
||||
}
|
||||
}
|
||||
},
|
||||
"url": {
|
||||
"type": "string",
|
||||
"description": "The URL of the Post creator's Profile page."
|
||||
}
|
||||
}
|
||||
},
|
||||
"blog": {
|
||||
"type": "object",
|
||||
"description": "Data about the blog containing this Post.",
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "string",
|
||||
"description": "The identifier of the Blog that contains this Post.",
|
||||
"format": "int64"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content": {
|
||||
"type": "string",
|
||||
"description": "The content of the Post. May contain HTML markup."
|
||||
},
|
||||
"id": {
|
||||
"type": "string",
|
||||
"description": "The identifier of this Post.",
|
||||
"format": "int64"
|
||||
},
|
||||
"kind": {
|
||||
"type": "string",
|
||||
"description": "The kind of this entity. Always blogger#post",
|
||||
"default": "blogger#post"
|
||||
},
|
||||
"labels": {
|
||||
"type": "array",
|
||||
"description": "The list of labels this Post was tagged with.",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"published": {
|
||||
"type": "string",
|
||||
"description": "RFC 3339 date-time when this Post was published.",
|
||||
"format": "date-time"
|
||||
},
|
||||
"replies": {
|
||||
"type": "object",
|
||||
"description": "The container of comments on this Post.",
|
||||
"properties": {
|
||||
"selfLink": {
|
||||
"type": "string",
|
||||
"description": "The URL of the comments on this post."
|
||||
},
|
||||
"totalItems": {
|
||||
"type": "string",
|
||||
"description": "The count of comments on this post.",
|
||||
"format": "int64"
|
||||
}
|
||||
}
|
||||
},
|
||||
"selfLink": {
|
||||
"type": "string",
|
||||
"description": "The API REST URL to fetch this resource from."
|
||||
},
|
||||
"title": {
|
||||
"type": "string",
|
||||
"description": "The title of the Post."
|
||||
},
|
||||
"updated": {
|
||||
"type": "string",
|
||||
"description": "RFC 3339 date-time when this Post was last updated.",
|
||||
"format": "date-time"
|
||||
},
|
||||
"url": {
|
||||
"type": "string",
|
||||
"description": "The URL where this Post is displayed."
|
||||
}
|
||||
}
|
||||
},
|
||||
"PostList": {
|
||||
"id": "PostList",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"items": {
|
||||
"type": "array",
|
||||
"description": "The list of Posts for this Blog.",
|
||||
"items": {
|
||||
"$ref": "Post"
|
||||
}
|
||||
},
|
||||
"kind": {
|
||||
"type": "string",
|
||||
"description": "The kind of this entity. Always blogger#postList",
|
||||
"default": "blogger#postList"
|
||||
},
|
||||
"nextPageToken": {
|
||||
"type": "string",
|
||||
"description": "Pagination token to fetch the next page, if one exists."
|
||||
},
|
||||
"prevPageToken": {
|
||||
"type": "string",
|
||||
"description": "Pagination token to fetch the previous page, if one exists."
|
||||
}
|
||||
}
|
||||
},
|
||||
"User": {
|
||||
"id": "User",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"about": {
|
||||
"type": "string",
|
||||
"description": "Profile summary information."
|
||||
},
|
||||
"blogs": {
|
||||
"type": "object",
|
||||
"description": "The container of blogs for this user.",
|
||||
"properties": {
|
||||
"selfLink": {
|
||||
"type": "string",
|
||||
"description": "The URL of the Blogs for this user."
|
||||
}
|
||||
}
|
||||
},
|
||||
"created": {
|
||||
"type": "string",
|
||||
"description": "The timestamp of when this profile was created, in seconds since epoch.",
|
||||
"format": "date-time"
|
||||
},
|
||||
"displayName": {
|
||||
"type": "string",
|
||||
"description": "The display name."
|
||||
},
|
||||
"id": {
|
||||
"type": "string",
|
||||
"description": "The identifier for this User."
|
||||
},
|
||||
"kind": {
|
||||
"type": "string",
|
||||
"description": "The kind of this entity. Always blogger#user",
|
||||
"default": "blogger#user"
|
||||
},
|
||||
"locale": {
|
||||
"type": "object",
|
||||
"description": "This user's locale",
|
||||
"properties": {
|
||||
"country": {
|
||||
"type": "string",
|
||||
"description": "The user's country setting."
|
||||
},
|
||||
"language": {
|
||||
"type": "string",
|
||||
"description": "The user's language setting."
|
||||
},
|
||||
"variant": {
|
||||
"type": "string",
|
||||
"description": "The user's language variant setting."
|
||||
}
|
||||
}
|
||||
},
|
||||
"selfLink": {
|
||||
"type": "string",
|
||||
"description": "The API REST URL to fetch this resource from."
|
||||
},
|
||||
"url": {
|
||||
"type": "string",
|
||||
"description": "The user's profile page."
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"resources": {
|
||||
"blogs": {
|
||||
"methods": {
|
||||
"get": {
|
||||
"id": "blogger.blogs.get",
|
||||
"path": "blogs/{blogId}",
|
||||
"httpMethod": "GET",
|
||||
"description": "Gets one blog by id.",
|
||||
"parameters": {
|
||||
"blogId": {
|
||||
"type": "string",
|
||||
"description": "The ID of the blog to get.",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
}
|
||||
},
|
||||
"parameterOrder": [
|
||||
"blogId"
|
||||
],
|
||||
"response": {
|
||||
"$ref": "Blog"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/blogger"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"comments": {
|
||||
"methods": {
|
||||
"get": {
|
||||
"id": "blogger.comments.get",
|
||||
"path": "blogs/{blogId}/posts/{postId}/comments/{commentId}",
|
||||
"httpMethod": "GET",
|
||||
"description": "Gets one comment by id.",
|
||||
"parameters": {
|
||||
"blogId": {
|
||||
"type": "string",
|
||||
"description": "ID of the blog to containing the comment.",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
},
|
||||
"commentId": {
|
||||
"type": "string",
|
||||
"description": "The ID of the comment to get.",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
},
|
||||
"postId": {
|
||||
"type": "string",
|
||||
"description": "ID of the post to fetch posts from.",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
}
|
||||
},
|
||||
"parameterOrder": [
|
||||
"blogId",
|
||||
"postId",
|
||||
"commentId"
|
||||
],
|
||||
"response": {
|
||||
"$ref": "Comment"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/blogger"
|
||||
]
|
||||
},
|
||||
"list": {
|
||||
"id": "blogger.comments.list",
|
||||
"path": "blogs/{blogId}/posts/{postId}/comments",
|
||||
"httpMethod": "GET",
|
||||
"description": "Retrieves the comments for a blog, possibly filtered.",
|
||||
"parameters": {
|
||||
"blogId": {
|
||||
"type": "string",
|
||||
"description": "ID of the blog to fetch comments from.",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
},
|
||||
"fetchBodies": {
|
||||
"type": "boolean",
|
||||
"description": "Whether the body content of the comments is included.",
|
||||
"location": "query"
|
||||
},
|
||||
"maxResults": {
|
||||
"type": "integer",
|
||||
"description": "Maximum number of comments to include in the result.",
|
||||
"format": "uint32",
|
||||
"location": "query"
|
||||
},
|
||||
"pageToken": {
|
||||
"type": "string",
|
||||
"description": "Continuation token if request is paged.",
|
||||
"location": "query"
|
||||
},
|
||||
"postId": {
|
||||
"type": "string",
|
||||
"description": "ID of the post to fetch posts from.",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
},
|
||||
"startDate": {
|
||||
"type": "string",
|
||||
"description": "Earliest date of comment to fetch, a date-time with RFC 3339 formatting.",
|
||||
"format": "date-time",
|
||||
"location": "query"
|
||||
}
|
||||
},
|
||||
"parameterOrder": [
|
||||
"blogId",
|
||||
"postId"
|
||||
],
|
||||
"response": {
|
||||
"$ref": "CommentList"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/blogger"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"pages": {
|
||||
"methods": {
|
||||
"get": {
|
||||
"id": "blogger.pages.get",
|
||||
"path": "blogs/{blogId}/pages/{pageId}",
|
||||
"httpMethod": "GET",
|
||||
"description": "Gets one blog page by id.",
|
||||
"parameters": {
|
||||
"blogId": {
|
||||
"type": "string",
|
||||
"description": "ID of the blog containing the page.",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
},
|
||||
"pageId": {
|
||||
"type": "string",
|
||||
"description": "The ID of the page to get.",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
}
|
||||
},
|
||||
"parameterOrder": [
|
||||
"blogId",
|
||||
"pageId"
|
||||
],
|
||||
"response": {
|
||||
"$ref": "Page"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/blogger"
|
||||
]
|
||||
},
|
||||
"list": {
|
||||
"id": "blogger.pages.list",
|
||||
"path": "blogs/{blogId}/pages",
|
||||
"httpMethod": "GET",
|
||||
"description": "Retrieves pages for a blog, possibly filtered.",
|
||||
"parameters": {
|
||||
"blogId": {
|
||||
"type": "string",
|
||||
"description": "ID of the blog to fetch pages from.",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
},
|
||||
"fetchBodies": {
|
||||
"type": "boolean",
|
||||
"description": "Whether to retrieve the Page bodies.",
|
||||
"location": "query"
|
||||
}
|
||||
},
|
||||
"parameterOrder": [
|
||||
"blogId"
|
||||
],
|
||||
"response": {
|
||||
"$ref": "PageList"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/blogger"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"posts": {
|
||||
"methods": {
|
||||
"get": {
|
||||
"id": "blogger.posts.get",
|
||||
"path": "blogs/{blogId}/posts/{postId}",
|
||||
"httpMethod": "GET",
|
||||
"description": "Get a post by id.",
|
||||
"parameters": {
|
||||
"blogId": {
|
||||
"type": "string",
|
||||
"description": "ID of the blog to fetch the post from.",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
},
|
||||
"postId": {
|
||||
"type": "string",
|
||||
"description": "The ID of the post",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
}
|
||||
},
|
||||
"parameterOrder": [
|
||||
"blogId",
|
||||
"postId"
|
||||
],
|
||||
"response": {
|
||||
"$ref": "Post"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/blogger"
|
||||
]
|
||||
},
|
||||
"list": {
|
||||
"id": "blogger.posts.list",
|
||||
"path": "blogs/{blogId}/posts",
|
||||
"httpMethod": "GET",
|
||||
"description": "Retrieves a list of posts, possibly filtered.",
|
||||
"parameters": {
|
||||
"blogId": {
|
||||
"type": "string",
|
||||
"description": "ID of the blog to fetch posts from.",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
},
|
||||
"fetchBodies": {
|
||||
"type": "boolean",
|
||||
"description": "Whether the body content of posts is included.",
|
||||
"location": "query"
|
||||
},
|
||||
"maxResults": {
|
||||
"type": "integer",
|
||||
"description": "Maximum number of posts to fetch.",
|
||||
"format": "uint32",
|
||||
"location": "query"
|
||||
},
|
||||
"pageToken": {
|
||||
"type": "string",
|
||||
"description": "Continuation token if the request is paged.",
|
||||
"location": "query"
|
||||
},
|
||||
"startDate": {
|
||||
"type": "string",
|
||||
"description": "Earliest post date to fetch, a date-time with RFC 3339 formatting.",
|
||||
"format": "date-time",
|
||||
"location": "query"
|
||||
}
|
||||
},
|
||||
"parameterOrder": [
|
||||
"blogId"
|
||||
],
|
||||
"response": {
|
||||
"$ref": "PostList"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/blogger"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"users": {
|
||||
"methods": {
|
||||
"get": {
|
||||
"id": "blogger.users.get",
|
||||
"path": "users/{userId}",
|
||||
"httpMethod": "GET",
|
||||
"description": "Gets one user by id.",
|
||||
"parameters": {
|
||||
"userId": {
|
||||
"type": "string",
|
||||
"description": "The ID of the user to get.",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
}
|
||||
},
|
||||
"parameterOrder": [
|
||||
"userId"
|
||||
],
|
||||
"response": {
|
||||
"$ref": "User"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/blogger"
|
||||
]
|
||||
}
|
||||
},
|
||||
"resources": {
|
||||
"blogs": {
|
||||
"methods": {
|
||||
"list": {
|
||||
"id": "blogger.users.blogs.list",
|
||||
"path": "users/{userId}/blogs",
|
||||
"httpMethod": "GET",
|
||||
"description": "Retrieves a list of blogs, possibly filtered.",
|
||||
"parameters": {
|
||||
"userId": {
|
||||
"type": "string",
|
||||
"description": "ID of the user whose blogs are to be fetched. Either the word 'self' (sans quote marks) or the user's profile identifier.",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
}
|
||||
},
|
||||
"parameterOrder": [
|
||||
"userId"
|
||||
],
|
||||
"response": {
|
||||
"$ref": "BlogList"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/blogger"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
2558
vendor/google.golang.org/api/blogger/v2/blogger-gen.go
generated
vendored
Normal file
2558
vendor/google.golang.org/api/blogger/v2/blogger-gen.go
generated
vendored
Normal file
File diff suppressed because it is too large
Load diff
2507
vendor/google.golang.org/api/blogger/v3/blogger-api.json
generated
vendored
Normal file
2507
vendor/google.golang.org/api/blogger/v3/blogger-api.json
generated
vendored
Normal file
File diff suppressed because it is too large
Load diff
7517
vendor/google.golang.org/api/blogger/v3/blogger-gen.go
generated
vendored
Normal file
7517
vendor/google.golang.org/api/blogger/v3/blogger-gen.go
generated
vendored
Normal file
File diff suppressed because it is too large
Load diff
4618
vendor/google.golang.org/api/books/v1/books-api.json
generated
vendored
Normal file
4618
vendor/google.golang.org/api/books/v1/books-api.json
generated
vendored
Normal file
File diff suppressed because it is too large
Load diff
13030
vendor/google.golang.org/api/books/v1/books-gen.go
generated
vendored
Normal file
13030
vendor/google.golang.org/api/books/v1/books-gen.go
generated
vendored
Normal file
File diff suppressed because it is too large
Load diff
2772
vendor/google.golang.org/api/calendar/v3/calendar-api.json
generated
vendored
Normal file
2772
vendor/google.golang.org/api/calendar/v3/calendar-api.json
generated
vendored
Normal file
File diff suppressed because it is too large
Load diff
8292
vendor/google.golang.org/api/calendar/v3/calendar-gen.go
generated
vendored
Normal file
8292
vendor/google.golang.org/api/calendar/v3/calendar-gen.go
generated
vendored
Normal file
File diff suppressed because it is too large
Load diff
1281
vendor/google.golang.org/api/civicinfo/v2/civicinfo-api.json
generated
vendored
Normal file
1281
vendor/google.golang.org/api/civicinfo/v2/civicinfo-api.json
generated
vendored
Normal file
File diff suppressed because it is too large
Load diff
2381
vendor/google.golang.org/api/civicinfo/v2/civicinfo-gen.go
generated
vendored
Normal file
2381
vendor/google.golang.org/api/civicinfo/v2/civicinfo-gen.go
generated
vendored
Normal file
File diff suppressed because it is too large
Load diff
2710
vendor/google.golang.org/api/classroom/v1/classroom-api.json
generated
vendored
Normal file
2710
vendor/google.golang.org/api/classroom/v1/classroom-api.json
generated
vendored
Normal file
File diff suppressed because it is too large
Load diff
9694
vendor/google.golang.org/api/classroom/v1/classroom-gen.go
generated
vendored
Normal file
9694
vendor/google.golang.org/api/classroom/v1/classroom-gen.go
generated
vendored
Normal file
File diff suppressed because it is too large
Load diff
357
vendor/google.golang.org/api/cloudbilling/v1/cloudbilling-api.json
generated
vendored
Normal file
357
vendor/google.golang.org/api/cloudbilling/v1/cloudbilling-api.json
generated
vendored
Normal file
|
@ -0,0 +1,357 @@
|
|||
{
|
||||
"id": "cloudbilling:v1",
|
||||
"auth": {
|
||||
"oauth2": {
|
||||
"scopes": {
|
||||
"https://www.googleapis.com/auth/cloud-platform": {
|
||||
"description": "View and manage your data across Google Cloud Platform services"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Allows developers to manage billing for their Google Cloud Platform projects\n programmatically.",
|
||||
"protocol": "rest",
|
||||
"title": "Google Cloud Billing API",
|
||||
"resources": {
|
||||
"projects": {
|
||||
"methods": {
|
||||
"updateBillingInfo": {
|
||||
"id": "cloudbilling.projects.updateBillingInfo",
|
||||
"response": {
|
||||
"$ref": "ProjectBillingInfo"
|
||||
},
|
||||
"parameterOrder": [
|
||||
"name"
|
||||
],
|
||||
"description": "Sets or updates the billing account associated with a project. You specify\nthe new billing account by setting the `billing_account_name` in the\n`ProjectBillingInfo` resource to the resource name of a billing account.\nAssociating a project with an open billing account enables billing on the\nproject and allows charges for resource usage. If the project already had a\nbilling account, this method changes the billing account used for resource\nusage charges.\n\n*Note:* Incurred charges that have not yet been reported in the transaction\nhistory of the Google Cloud Console may be billed to the new billing\naccount, even if the charge occurred before the new billing account was\nassigned to the project.\n\nThe current authenticated user must have ownership privileges for both the\n[project](https://cloud.google.com/docs/permissions-overview#h.bgs0oxofvnoo\n) and the [billing\naccount](https://support.google.com/cloud/answer/4430947).\n\nYou can disable billing on the project by setting the\n`billing_account_name` field to empty. This action disassociates the\ncurrent billing account from the project. Any billable activity of your\nin-use services will stop, and your application could stop functioning as\nexpected. Any unbilled charges to date will be billed to the previously\nassociated account. The current authenticated user must be either an owner\nof the project or an owner of the billing account for the project.\n\nNote that associating a project with a *closed* billing account will have\nmuch the same effect as disabling billing on the project: any paid\nresources used by the project will be shut down. Thus, unless you wish to\ndisable billing, you should always call this method with the name of an\n*open* billing account.",
|
||||
"request": {
|
||||
"$ref": "ProjectBillingInfo"
|
||||
},
|
||||
"flatPath": "v1/projects/{projectsId}/billingInfo",
|
||||
"httpMethod": "PUT",
|
||||
"parameters": {
|
||||
"name": {
|
||||
"description": "The resource name of the project associated with the billing information\nthat you want to update. For example, `projects/tokyo-rain-123`.",
|
||||
"required": true,
|
||||
"pattern": "^projects/[^/]+$",
|
||||
"location": "path",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"path": "v1/{+name}/billingInfo",
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/cloud-platform"
|
||||
]
|
||||
},
|
||||
"getBillingInfo": {
|
||||
"id": "cloudbilling.projects.getBillingInfo",
|
||||
"response": {
|
||||
"$ref": "ProjectBillingInfo"
|
||||
},
|
||||
"parameterOrder": [
|
||||
"name"
|
||||
],
|
||||
"description": "Gets the billing information for a project. The current authenticated user\nmust have [permission to view the\nproject](https://cloud.google.com/docs/permissions-overview#h.bgs0oxofvnoo\n).",
|
||||
"flatPath": "v1/projects/{projectsId}/billingInfo",
|
||||
"httpMethod": "GET",
|
||||
"parameters": {
|
||||
"name": {
|
||||
"description": "The resource name of the project for which billing information is\nretrieved. For example, `projects/tokyo-rain-123`.",
|
||||
"required": true,
|
||||
"pattern": "^projects/[^/]+$",
|
||||
"location": "path",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"path": "v1/{+name}/billingInfo",
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/cloud-platform"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"billingAccounts": {
|
||||
"resources": {
|
||||
"projects": {
|
||||
"methods": {
|
||||
"list": {
|
||||
"id": "cloudbilling.billingAccounts.projects.list",
|
||||
"response": {
|
||||
"$ref": "ListProjectBillingInfoResponse"
|
||||
},
|
||||
"parameterOrder": [
|
||||
"name"
|
||||
],
|
||||
"description": "Lists the projects associated with a billing account. The current\nauthenticated user must be an [owner of the billing\naccount](https://support.google.com/cloud/answer/4430947).",
|
||||
"flatPath": "v1/billingAccounts/{billingAccountsId}/projects",
|
||||
"httpMethod": "GET",
|
||||
"parameters": {
|
||||
"pageSize": {
|
||||
"description": "Requested page size. The maximum page size is 100; this is also the\ndefault.",
|
||||
"location": "query",
|
||||
"type": "integer",
|
||||
"format": "int32"
|
||||
},
|
||||
"name": {
|
||||
"description": "The resource name of the billing account associated with the projects that\nyou want to list. For example, `billingAccounts/012345-567890-ABCDEF`.",
|
||||
"required": true,
|
||||
"pattern": "^billingAccounts/[^/]+$",
|
||||
"location": "path",
|
||||
"type": "string"
|
||||
},
|
||||
"pageToken": {
|
||||
"description": "A token identifying a page of results to be returned. This should be a\n`next_page_token` value returned from a previous `ListProjectBillingInfo`\ncall. If unspecified, the first page of results is returned.",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"path": "v1/{+name}/projects",
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/cloud-platform"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"methods": {
|
||||
"get": {
|
||||
"id": "cloudbilling.billingAccounts.get",
|
||||
"response": {
|
||||
"$ref": "BillingAccount"
|
||||
},
|
||||
"parameterOrder": [
|
||||
"name"
|
||||
],
|
||||
"description": "Gets information about a billing account. The current authenticated user\nmust be an [owner of the billing\naccount](https://support.google.com/cloud/answer/4430947).",
|
||||
"flatPath": "v1/billingAccounts/{billingAccountsId}",
|
||||
"httpMethod": "GET",
|
||||
"parameters": {
|
||||
"name": {
|
||||
"description": "The resource name of the billing account to retrieve. For example,\n`billingAccounts/012345-567890-ABCDEF`.",
|
||||
"required": true,
|
||||
"pattern": "^billingAccounts/[^/]+$",
|
||||
"location": "path",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"path": "v1/{+name}",
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/cloud-platform"
|
||||
]
|
||||
},
|
||||
"list": {
|
||||
"id": "cloudbilling.billingAccounts.list",
|
||||
"response": {
|
||||
"$ref": "ListBillingAccountsResponse"
|
||||
},
|
||||
"parameterOrder": [],
|
||||
"description": "Lists the billing accounts that the current authenticated user\n[owns](https://support.google.com/cloud/answer/4430947).",
|
||||
"flatPath": "v1/billingAccounts",
|
||||
"httpMethod": "GET",
|
||||
"parameters": {
|
||||
"pageSize": {
|
||||
"description": "Requested page size. The maximum page size is 100; this is also the\ndefault.",
|
||||
"location": "query",
|
||||
"type": "integer",
|
||||
"format": "int32"
|
||||
},
|
||||
"pageToken": {
|
||||
"description": "A token identifying a page of results to return. This should be a\n`next_page_token` value returned from a previous `ListBillingAccounts`\ncall. If unspecified, the first page of results is returned.",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"path": "v1/billingAccounts",
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/cloud-platform"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"schemas": {
|
||||
"ProjectBillingInfo": {
|
||||
"description": "Encapsulation of billing information for a Cloud Console project. A project\nhas at most one associated billing account at a time (but a billing account\ncan be assigned to multiple projects).",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"billingEnabled": {
|
||||
"description": "True if the project is associated with an open billing account, to which\nusage on the project is charged. False if the project is associated with a\nclosed billing account, or no billing account at all, and therefore cannot\nuse paid services. This field is read-only.",
|
||||
"type": "boolean"
|
||||
},
|
||||
"name": {
|
||||
"description": "The resource name for the `ProjectBillingInfo`; has the form\n`projects/{project_id}/billingInfo`. For example, the resource name for the\nbilling information for project `tokyo-rain-123` would be\n`projects/tokyo-rain-123/billingInfo`. This field is read-only.",
|
||||
"type": "string"
|
||||
},
|
||||
"projectId": {
|
||||
"description": "The ID of the project that this `ProjectBillingInfo` represents, such as\n`tokyo-rain-123`. This is a convenience field so that you don't need to\nparse the `name` field to obtain a project ID. This field is read-only.",
|
||||
"type": "string"
|
||||
},
|
||||
"billingAccountName": {
|
||||
"description": "The resource name of the billing account associated with the project, if\nany. For example, `billingAccounts/012345-567890-ABCDEF`.",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"id": "ProjectBillingInfo"
|
||||
},
|
||||
"ListProjectBillingInfoResponse": {
|
||||
"description": "Request message for `ListProjectBillingInfoResponse`.",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"nextPageToken": {
|
||||
"description": "A token to retrieve the next page of results. To retrieve the next page,\ncall `ListProjectBillingInfo` again with the `page_token` field set to this\nvalue. This field is empty if there are no more results to retrieve.",
|
||||
"type": "string"
|
||||
},
|
||||
"projectBillingInfo": {
|
||||
"description": "A list of `ProjectBillingInfo` resources representing the projects\nassociated with the billing account.",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "ProjectBillingInfo"
|
||||
}
|
||||
}
|
||||
},
|
||||
"id": "ListProjectBillingInfoResponse"
|
||||
},
|
||||
"ListBillingAccountsResponse": {
|
||||
"description": "Response message for `ListBillingAccounts`.",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"nextPageToken": {
|
||||
"description": "A token to retrieve the next page of results. To retrieve the next page,\ncall `ListBillingAccounts` again with the `page_token` field set to this\nvalue. This field is empty if there are no more results to retrieve.",
|
||||
"type": "string"
|
||||
},
|
||||
"billingAccounts": {
|
||||
"description": "A list of billing accounts.",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "BillingAccount"
|
||||
}
|
||||
}
|
||||
},
|
||||
"id": "ListBillingAccountsResponse"
|
||||
},
|
||||
"BillingAccount": {
|
||||
"description": "A billing account in [Google Cloud\nConsole](https://console.cloud.google.com/). You can assign a billing account\nto one or more projects.",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"displayName": {
|
||||
"description": "The display name given to the billing account, such as `My Billing\nAccount`. This name is displayed in the Google Cloud Console.",
|
||||
"type": "string"
|
||||
},
|
||||
"open": {
|
||||
"description": "True if the billing account is open, and will therefore be charged for any\nusage on associated projects. False if the billing account is closed, and\ntherefore projects associated with it will be unable to use paid services.",
|
||||
"type": "boolean"
|
||||
},
|
||||
"name": {
|
||||
"description": "The resource name of the billing account. The resource name has the form\n`billingAccounts/{billing_account_id}`. For example,\n`billingAccounts/012345-567890-ABCDEF` would be the resource name for\nbilling account `012345-567890-ABCDEF`.",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"id": "BillingAccount"
|
||||
}
|
||||
},
|
||||
"revision": "20170210",
|
||||
"basePath": "",
|
||||
"icons": {
|
||||
"x32": "http://www.google.com/images/icons/product/search-32.gif",
|
||||
"x16": "http://www.google.com/images/icons/product/search-16.gif"
|
||||
},
|
||||
"discoveryVersion": "v1",
|
||||
"baseUrl": "https://cloudbilling.googleapis.com/",
|
||||
"name": "cloudbilling",
|
||||
"parameters": {
|
||||
"access_token": {
|
||||
"description": "OAuth access token.",
|
||||
"type": "string",
|
||||
"location": "query"
|
||||
},
|
||||
"prettyPrint": {
|
||||
"description": "Returns response with indentations and line breaks.",
|
||||
"default": "true",
|
||||
"type": "boolean",
|
||||
"location": "query"
|
||||
},
|
||||
"key": {
|
||||
"description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.",
|
||||
"type": "string",
|
||||
"location": "query"
|
||||
},
|
||||
"quotaUser": {
|
||||
"description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.",
|
||||
"type": "string",
|
||||
"location": "query"
|
||||
},
|
||||
"pp": {
|
||||
"description": "Pretty-print response.",
|
||||
"default": "true",
|
||||
"type": "boolean",
|
||||
"location": "query"
|
||||
},
|
||||
"fields": {
|
||||
"description": "Selector specifying which fields to include in a partial response.",
|
||||
"type": "string",
|
||||
"location": "query"
|
||||
},
|
||||
"alt": {
|
||||
"description": "Data format for response.",
|
||||
"location": "query",
|
||||
"enum": [
|
||||
"json",
|
||||
"media",
|
||||
"proto"
|
||||
],
|
||||
"default": "json",
|
||||
"enumDescriptions": [
|
||||
"Responses with Content-Type of application/json",
|
||||
"Media download with context-dependent Content-Type",
|
||||
"Responses with Content-Type of application/x-protobuf"
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
"$.xgafv": {
|
||||
"description": "V1 error format.",
|
||||
"enum": [
|
||||
"1",
|
||||
"2"
|
||||
],
|
||||
"enumDescriptions": [
|
||||
"v1 error format",
|
||||
"v2 error format"
|
||||
],
|
||||
"type": "string",
|
||||
"location": "query"
|
||||
},
|
||||
"callback": {
|
||||
"description": "JSONP",
|
||||
"type": "string",
|
||||
"location": "query"
|
||||
},
|
||||
"oauth_token": {
|
||||
"description": "OAuth 2.0 token for the current user.",
|
||||
"type": "string",
|
||||
"location": "query"
|
||||
},
|
||||
"uploadType": {
|
||||
"description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
|
||||
"type": "string",
|
||||
"location": "query"
|
||||
},
|
||||
"bearer_token": {
|
||||
"description": "OAuth bearer token.",
|
||||
"type": "string",
|
||||
"location": "query"
|
||||
},
|
||||
"upload_protocol": {
|
||||
"description": "Upload protocol for media (e.g. \"raw\", \"multipart\").",
|
||||
"type": "string",
|
||||
"location": "query"
|
||||
}
|
||||
},
|
||||
"documentationLink": "https://cloud.google.com/billing/",
|
||||
"ownerDomain": "google.com",
|
||||
"batchPath": "batch",
|
||||
"servicePath": "",
|
||||
"ownerName": "Google",
|
||||
"version": "v1",
|
||||
"rootUrl": "https://cloudbilling.googleapis.com/",
|
||||
"kind": "discovery#restDescription"
|
||||
}
|
1162
vendor/google.golang.org/api/cloudbilling/v1/cloudbilling-gen.go
generated
vendored
Normal file
1162
vendor/google.golang.org/api/cloudbilling/v1/cloudbilling-gen.go
generated
vendored
Normal file
File diff suppressed because it is too large
Load diff
1054
vendor/google.golang.org/api/cloudbuild/v1/cloudbuild-api.json
generated
vendored
Normal file
1054
vendor/google.golang.org/api/cloudbuild/v1/cloudbuild-api.json
generated
vendored
Normal file
File diff suppressed because it is too large
Load diff
3010
vendor/google.golang.org/api/cloudbuild/v1/cloudbuild-gen.go
generated
vendored
Normal file
3010
vendor/google.golang.org/api/cloudbuild/v1/cloudbuild-gen.go
generated
vendored
Normal file
File diff suppressed because it is too large
Load diff
1059
vendor/google.golang.org/api/clouddebugger/v2/clouddebugger-api.json
generated
vendored
Normal file
1059
vendor/google.golang.org/api/clouddebugger/v2/clouddebugger-api.json
generated
vendored
Normal file
File diff suppressed because it is too large
Load diff
2804
vendor/google.golang.org/api/clouddebugger/v2/clouddebugger-gen.go
generated
vendored
Normal file
2804
vendor/google.golang.org/api/clouddebugger/v2/clouddebugger-gen.go
generated
vendored
Normal file
File diff suppressed because it is too large
Load diff
750
vendor/google.golang.org/api/clouderrorreporting/v1beta1/clouderrorreporting-api.json
generated
vendored
Normal file
750
vendor/google.golang.org/api/clouderrorreporting/v1beta1/clouderrorreporting-api.json
generated
vendored
Normal file
|
@ -0,0 +1,750 @@
|
|||
{
|
||||
"version_module": "True",
|
||||
"schemas": {
|
||||
"ReportErrorEventResponse": {
|
||||
"description": "Response for reporting an individual error event.\nData may be added to this message in the future.",
|
||||
"type": "object",
|
||||
"properties": {},
|
||||
"id": "ReportErrorEventResponse"
|
||||
},
|
||||
"HttpRequestContext": {
|
||||
"description": "HTTP request data that is related to a reported error.\nThis data should be provided by the application when reporting an error,\nunless the\nerror report has been generated automatically from Google App Engine logs.",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"responseStatusCode": {
|
||||
"description": "The HTTP response status code for the request.",
|
||||
"format": "int32",
|
||||
"type": "integer"
|
||||
},
|
||||
"method": {
|
||||
"description": "The type of HTTP request, such as `GET`, `POST`, etc.",
|
||||
"type": "string"
|
||||
},
|
||||
"remoteIp": {
|
||||
"description": "The IP address from which the request originated.\nThis can be IPv4, IPv6, or a token which is derived from the\nIP address, depending on the data that has been provided\nin the error report.",
|
||||
"type": "string"
|
||||
},
|
||||
"referrer": {
|
||||
"description": "The referrer information that is provided with the request.",
|
||||
"type": "string"
|
||||
},
|
||||
"userAgent": {
|
||||
"description": "The user agent information that is provided with the request.",
|
||||
"type": "string"
|
||||
},
|
||||
"url": {
|
||||
"description": "The URL of the request.",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"id": "HttpRequestContext"
|
||||
},
|
||||
"ListGroupStatsResponse": {
|
||||
"description": "Contains a set of requested error group stats.",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"errorGroupStats": {
|
||||
"description": "The error group stats which match the given request.",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "ErrorGroupStats"
|
||||
}
|
||||
},
|
||||
"nextPageToken": {
|
||||
"description": "If non-empty, more results are available.\nPass this token, along with the same query parameters as the first\nrequest, to view the next page of results.",
|
||||
"type": "string"
|
||||
},
|
||||
"timeRangeBegin": {
|
||||
"description": "The timestamp specifies the start time to which the request was restricted.\nThe start time is set based on the requested time range. It may be adjusted\nto a later time if a project has exceeded the storage quota and older data\nhas been deleted.",
|
||||
"format": "google-datetime",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"id": "ListGroupStatsResponse"
|
||||
},
|
||||
"DeleteEventsResponse": {
|
||||
"id": "DeleteEventsResponse",
|
||||
"description": "Response message for deleting error events.",
|
||||
"type": "object",
|
||||
"properties": {}
|
||||
},
|
||||
"SourceReference": {
|
||||
"description": "A reference to a particular snapshot of the source tree used to build and\ndeploy an application.",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"repository": {
|
||||
"description": "Optional. A URI string identifying the repository.\nExample: \"https://github.com/GoogleCloudPlatform/kubernetes.git\"",
|
||||
"type": "string"
|
||||
},
|
||||
"revisionId": {
|
||||
"description": "The canonical and persistent identifier of the deployed revision.\nExample (git): \"0035781c50ec7aa23385dc841529ce8a4b70db1b\"",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"id": "SourceReference"
|
||||
},
|
||||
"ErrorEvent": {
|
||||
"description": "An error event which is returned by the Error Reporting system.",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"message": {
|
||||
"description": "The stack trace that was reported or logged by the service.",
|
||||
"type": "string"
|
||||
},
|
||||
"serviceContext": {
|
||||
"$ref": "ServiceContext",
|
||||
"description": "The `ServiceContext` for which this error was reported."
|
||||
},
|
||||
"eventTime": {
|
||||
"description": "Time when the event occurred as provided in the error report.\nIf the report did not contain a timestamp, the time the error was received\nby the Error Reporting system is used.",
|
||||
"format": "google-datetime",
|
||||
"type": "string"
|
||||
},
|
||||
"context": {
|
||||
"description": "Data about the context in which the error occurred.",
|
||||
"$ref": "ErrorContext"
|
||||
}
|
||||
},
|
||||
"id": "ErrorEvent"
|
||||
},
|
||||
"ReportedErrorEvent": {
|
||||
"description": "An error event which is reported to the Error Reporting system.",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"eventTime": {
|
||||
"description": "[Optional] Time when the event occurred.\nIf not provided, the time when the event was received by the\nError Reporting system will be used.",
|
||||
"format": "google-datetime",
|
||||
"type": "string"
|
||||
},
|
||||
"context": {
|
||||
"$ref": "ErrorContext",
|
||||
"description": "[Optional] A description of the context in which the error occurred."
|
||||
},
|
||||
"message": {
|
||||
"description": "[Required] The error message.\nIf no `context.reportLocation` is provided, the message must contain a\nheader (typically consisting of the exception type name and an error\nmessage) and an exception stack trace in one of the supported programming\nlanguages and formats.\nSupported languages are Java, Python, JavaScript, Ruby, C#, PHP, and Go.\nSupported stack trace formats are:\n\n* **Java**: Must be the return value of [`Throwable.printStackTrace()`](https://docs.oracle.com/javase/7/docs/api/java/lang/Throwable.html#printStackTrace%28%29).\n* **Python**: Must be the return value of [`traceback.format_exc()`](https://docs.python.org/2/library/traceback.html#traceback.format_exc).\n* **JavaScript**: Must be the value of [`error.stack`](https://github.com/v8/v8/wiki/Stack-Trace-API)\nas returned by V8.\n* **Ruby**: Must contain frames returned by [`Exception.backtrace`](https://ruby-doc.org/core-2.2.0/Exception.html#method-i-backtrace).\n* **C#**: Must be the return value of [`Exception.ToString()`](https://msdn.microsoft.com/en-us/library/system.exception.tostring.aspx).\n* **PHP**: Must start with `PHP (Notice|Parse error|Fatal error|Warning)`\nand contain the result of [`(string)$exception`](http://php.net/manual/en/exception.tostring.php).\n* **Go**: Must be the return value of [`runtime.Stack()`](https://golang.org/pkg/runtime/debug/#Stack).",
|
||||
"type": "string"
|
||||
},
|
||||
"serviceContext": {
|
||||
"$ref": "ServiceContext",
|
||||
"description": "[Required] The service context in which this error has occurred."
|
||||
}
|
||||
},
|
||||
"id": "ReportedErrorEvent"
|
||||
},
|
||||
"ErrorContext": {
|
||||
"id": "ErrorContext",
|
||||
"description": "A description of the context in which an error occurred.\nThis data should be provided by the application when reporting an error,\nunless the\nerror report has been generated automatically from Google App Engine logs.",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"reportLocation": {
|
||||
"$ref": "SourceLocation",
|
||||
"description": "The location in the source code where the decision was made to\nreport the error, usually the place where it was logged.\nFor a logged exception this would be the source line where the\nexception is logged, usually close to the place where it was\ncaught. This value is in contrast to `Exception.cause_location`,\nwhich describes the source line where the exception was thrown."
|
||||
},
|
||||
"sourceReferences": {
|
||||
"description": "Source code that was used to build the executable which has\ncaused the given error message.",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "SourceReference"
|
||||
}
|
||||
},
|
||||
"httpRequest": {
|
||||
"$ref": "HttpRequestContext",
|
||||
"description": "The HTTP request which was processed when the error was\ntriggered."
|
||||
},
|
||||
"user": {
|
||||
"description": "The user who caused or was affected by the crash.\nThis can be a user ID, an email address, or an arbitrary token that\nuniquely identifies the user.\nWhen sending an error report, leave this field empty if the user was not\nlogged in. In this case the\nError Reporting system will use other data, such as remote IP address, to\ndistinguish affected users. See `affected_users_count` in\n`ErrorGroupStats`.",
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"TrackingIssue": {
|
||||
"id": "TrackingIssue",
|
||||
"description": "Information related to tracking the progress on resolving the error.",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"url": {
|
||||
"description": "A URL pointing to a related entry in an issue tracking system.\nExample: https://github.com/user/project/issues/4",
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"ErrorGroupStats": {
|
||||
"id": "ErrorGroupStats",
|
||||
"description": "Data extracted for a specific group based on certain filter criteria,\nsuch as a given time period and/or service filter.",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"numAffectedServices": {
|
||||
"description": "The total number of services with a non-zero error count for the given\nfilter criteria.",
|
||||
"format": "int32",
|
||||
"type": "integer"
|
||||
},
|
||||
"affectedServices": {
|
||||
"description": "Service contexts with a non-zero error count for the given filter\ncriteria. This list can be truncated if multiple services are affected.\nRefer to `num_affected_services` for the total count.",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "ServiceContext"
|
||||
}
|
||||
},
|
||||
"representative": {
|
||||
"description": "An arbitrary event that is chosen as representative for the whole group.\nThe representative event is intended to be used as a quick preview for\nthe whole group. Events in the group are usually sufficiently similar\nto each other such that showing an arbitrary representative provides\ninsight into the characteristics of the group as a whole.",
|
||||
"$ref": "ErrorEvent"
|
||||
},
|
||||
"timedCounts": {
|
||||
"description": "Approximate number of occurrences over time.\nTimed counts returned by ListGroups are guaranteed to be:\n\n- Inside the requested time interval\n- Non-overlapping, and\n- Ordered by ascending time.",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "TimedCount"
|
||||
}
|
||||
},
|
||||
"group": {
|
||||
"$ref": "ErrorGroup",
|
||||
"description": "Group data that is independent of the filter criteria."
|
||||
},
|
||||
"firstSeenTime": {
|
||||
"description": "Approximate first occurrence that was ever seen for this group\nand which matches the given filter criteria, ignoring the\ntime_range that was specified in the request.",
|
||||
"format": "google-datetime",
|
||||
"type": "string"
|
||||
},
|
||||
"count": {
|
||||
"description": "Approximate total number of events in the given group that match\nthe filter criteria.",
|
||||
"format": "int64",
|
||||
"type": "string"
|
||||
},
|
||||
"affectedUsersCount": {
|
||||
"description": "Approximate number of affected users in the given group that\nmatch the filter criteria.\nUsers are distinguished by data in the `ErrorContext` of the\nindividual error events, such as their login name or their remote\nIP address in case of HTTP requests.\nThe number of affected users can be zero even if the number of\nerrors is non-zero if no data was provided from which the\naffected user could be deduced.\nUsers are counted based on data in the request\ncontext that was provided in the error report. If more users are\nimplicitly affected, such as due to a crash of the whole service,\nthis is not reflected here.",
|
||||
"format": "int64",
|
||||
"type": "string"
|
||||
},
|
||||
"lastSeenTime": {
|
||||
"description": "Approximate last occurrence that was ever seen for this group and\nwhich matches the given filter criteria, ignoring the time_range\nthat was specified in the request.",
|
||||
"format": "google-datetime",
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"ListEventsResponse": {
|
||||
"description": "Contains a set of requested error events.",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"timeRangeBegin": {
|
||||
"description": "The timestamp specifies the start time to which the request was restricted.",
|
||||
"format": "google-datetime",
|
||||
"type": "string"
|
||||
},
|
||||
"errorEvents": {
|
||||
"description": "The error events which match the given request.",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "ErrorEvent"
|
||||
}
|
||||
},
|
||||
"nextPageToken": {
|
||||
"description": "If non-empty, more results are available.\nPass this token, along with the same query parameters as the first\nrequest, to view the next page of results.",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"id": "ListEventsResponse"
|
||||
},
|
||||
"TimedCount": {
|
||||
"id": "TimedCount",
|
||||
"description": "The number of errors in a given time period.\nAll numbers are approximate since the error events are sampled\nbefore counting them.",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"endTime": {
|
||||
"description": "End of the time period to which `count` refers (excluded).",
|
||||
"format": "google-datetime",
|
||||
"type": "string"
|
||||
},
|
||||
"count": {
|
||||
"description": "Approximate number of occurrences in the given time period.",
|
||||
"format": "int64",
|
||||
"type": "string"
|
||||
},
|
||||
"startTime": {
|
||||
"description": "Start of the time period to which `count` refers (included).",
|
||||
"format": "google-datetime",
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"ErrorGroup": {
|
||||
"id": "ErrorGroup",
|
||||
"description": "Description of a group of similar error events.",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"groupId": {
|
||||
"description": "Group IDs are unique for a given project. If the same kind of error\noccurs in different service contexts, it will receive the same group ID.",
|
||||
"type": "string"
|
||||
},
|
||||
"trackingIssues": {
|
||||
"description": "Associated tracking issues.",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "TrackingIssue"
|
||||
}
|
||||
},
|
||||
"name": {
|
||||
"description": "The group resource name.\nExample: \u003ccode\u003eprojects/my-project-123/groups/my-groupid\u003c/code\u003e",
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"ServiceContext": {
|
||||
"description": "Describes a running service that sends errors.\nIts version changes over time and multiple versions can run in parallel.",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"version": {
|
||||
"description": "Represents the source code version that the developer provided,\nwhich could represent a version label or a Git SHA-1 hash, for example.\nFor App Engine standard environment, the version is set to the version of\nthe app.",
|
||||
"type": "string"
|
||||
},
|
||||
"service": {
|
||||
"description": "An identifier of the service, such as the name of the\nexecutable, job, or Google App Engine service name. This field is expected\nto have a low number of values that are relatively stable over time, as\nopposed to `version`, which can be changed whenever new code is deployed.\n\nContains the service name for error reports extracted from Google\nApp Engine logs or `default` if the App Engine default service is used.",
|
||||
"type": "string"
|
||||
},
|
||||
"resourceType": {
|
||||
"description": "Type of the MonitoredResource. List of possible values:\nhttps://cloud.google.com/monitoring/api/resources\n\nValue is set automatically for incoming errors and must not be set when\nreporting errors.",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"id": "ServiceContext"
|
||||
},
|
||||
"SourceLocation": {
|
||||
"id": "SourceLocation",
|
||||
"description": "Indicates a location in the source code of the service for which errors are\nreported. `functionName` must be provided by the application when reporting\nan error, unless the error report contains a `message` with a supported\nexception stack trace. All fields are optional for the later case.",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"filePath": {
|
||||
"description": "The source code filename, which can include a truncated relative\npath, or a full path from a production machine.",
|
||||
"type": "string"
|
||||
},
|
||||
"lineNumber": {
|
||||
"description": "1-based. 0 indicates that the line number is unknown.",
|
||||
"format": "int32",
|
||||
"type": "integer"
|
||||
},
|
||||
"functionName": {
|
||||
"description": "Human-readable name of a function or method.\nThe value can include optional context like the class or package name.\nFor example, `my.package.MyClass.method` in case of Java.",
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"protocol": "rest",
|
||||
"icons": {
|
||||
"x16": "http://www.google.com/images/icons/product/search-16.gif",
|
||||
"x32": "http://www.google.com/images/icons/product/search-32.gif"
|
||||
},
|
||||
"canonicalName": "Clouderrorreporting",
|
||||
"auth": {
|
||||
"oauth2": {
|
||||
"scopes": {
|
||||
"https://www.googleapis.com/auth/cloud-platform": {
|
||||
"description": "View and manage your data across Google Cloud Platform services"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"rootUrl": "https://clouderrorreporting.googleapis.com/",
|
||||
"ownerDomain": "google.com",
|
||||
"name": "clouderrorreporting",
|
||||
"batchPath": "batch",
|
||||
"title": "Stackdriver Error Reporting API",
|
||||
"ownerName": "Google",
|
||||
"resources": {
|
||||
"projects": {
|
||||
"methods": {
|
||||
"deleteEvents": {
|
||||
"path": "v1beta1/{+projectName}/events",
|
||||
"id": "clouderrorreporting.projects.deleteEvents",
|
||||
"description": "Deletes all error events of a given project.",
|
||||
"response": {
|
||||
"$ref": "DeleteEventsResponse"
|
||||
},
|
||||
"parameterOrder": [
|
||||
"projectName"
|
||||
],
|
||||
"httpMethod": "DELETE",
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/cloud-platform"
|
||||
],
|
||||
"parameters": {
|
||||
"projectName": {
|
||||
"description": "[Required] The resource name of the Google Cloud Platform project. Written\nas `projects/` plus the\n[Google Cloud Platform project\nID](https://support.google.com/cloud/answer/6158840).\nExample: `projects/my-project-123`.",
|
||||
"required": true,
|
||||
"type": "string",
|
||||
"pattern": "^projects/[^/]+$",
|
||||
"location": "path"
|
||||
}
|
||||
},
|
||||
"flatPath": "v1beta1/projects/{projectsId}/events"
|
||||
}
|
||||
},
|
||||
"resources": {
|
||||
"groups": {
|
||||
"methods": {
|
||||
"get": {
|
||||
"path": "v1beta1/{+groupName}",
|
||||
"id": "clouderrorreporting.projects.groups.get",
|
||||
"description": "Get the specified group.",
|
||||
"response": {
|
||||
"$ref": "ErrorGroup"
|
||||
},
|
||||
"parameterOrder": [
|
||||
"groupName"
|
||||
],
|
||||
"httpMethod": "GET",
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/cloud-platform"
|
||||
],
|
||||
"parameters": {
|
||||
"groupName": {
|
||||
"description": "[Required] The group resource name. Written as\n\u003ccode\u003eprojects/\u003cvar\u003eprojectID\u003c/var\u003e/groups/\u003cvar\u003egroup_name\u003c/var\u003e\u003c/code\u003e.\nCall\n\u003ca href=\"/error-reporting/reference/rest/v1beta1/projects.groupStats/list\"\u003e\n\u003ccode\u003egroupStats.list\u003c/code\u003e\u003c/a\u003e to return a list of groups belonging to\nthis project.\n\nExample: \u003ccode\u003eprojects/my-project-123/groups/my-group\u003c/code\u003e",
|
||||
"required": true,
|
||||
"type": "string",
|
||||
"pattern": "^projects/[^/]+/groups/[^/]+$",
|
||||
"location": "path"
|
||||
}
|
||||
},
|
||||
"flatPath": "v1beta1/projects/{projectsId}/groups/{groupsId}"
|
||||
},
|
||||
"update": {
|
||||
"path": "v1beta1/{+name}",
|
||||
"id": "clouderrorreporting.projects.groups.update",
|
||||
"description": "Replace the data for the specified group.\nFails if the group does not exist.",
|
||||
"request": {
|
||||
"$ref": "ErrorGroup"
|
||||
},
|
||||
"response": {
|
||||
"$ref": "ErrorGroup"
|
||||
},
|
||||
"parameterOrder": [
|
||||
"name"
|
||||
],
|
||||
"httpMethod": "PUT",
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/cloud-platform"
|
||||
],
|
||||
"parameters": {
|
||||
"name": {
|
||||
"pattern": "^projects/[^/]+/groups/[^/]+$",
|
||||
"location": "path",
|
||||
"description": "The group resource name.\nExample: \u003ccode\u003eprojects/my-project-123/groups/my-groupid\u003c/code\u003e",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"flatPath": "v1beta1/projects/{projectsId}/groups/{groupsId}"
|
||||
}
|
||||
}
|
||||
},
|
||||
"groupStats": {
|
||||
"methods": {
|
||||
"list": {
|
||||
"description": "Lists the specified groups.",
|
||||
"response": {
|
||||
"$ref": "ListGroupStatsResponse"
|
||||
},
|
||||
"parameterOrder": [
|
||||
"projectName"
|
||||
],
|
||||
"httpMethod": "GET",
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/cloud-platform"
|
||||
],
|
||||
"parameters": {
|
||||
"projectName": {
|
||||
"description": "[Required] The resource name of the Google Cloud Platform project. Written\nas \u003ccode\u003eprojects/\u003c/code\u003e plus the\n\u003ca href=\"https://support.google.com/cloud/answer/6158840\"\u003eGoogle Cloud\nPlatform project ID\u003c/a\u003e.\n\nExample: \u003ccode\u003eprojects/my-project-123\u003c/code\u003e.",
|
||||
"required": true,
|
||||
"type": "string",
|
||||
"pattern": "^projects/[^/]+$",
|
||||
"location": "path"
|
||||
},
|
||||
"timedCountDuration": {
|
||||
"description": "[Optional] The preferred duration for a single returned `TimedCount`.\nIf not set, no timed counts are returned.",
|
||||
"format": "google-duration",
|
||||
"type": "string",
|
||||
"location": "query"
|
||||
},
|
||||
"pageToken": {
|
||||
"location": "query",
|
||||
"description": "[Optional] A `next_page_token` provided by a previous response. To view\nadditional results, pass this token along with the identical query\nparameters as the first request.",
|
||||
"type": "string"
|
||||
},
|
||||
"timeRange.period": {
|
||||
"location": "query",
|
||||
"enum": [
|
||||
"PERIOD_UNSPECIFIED",
|
||||
"PERIOD_1_HOUR",
|
||||
"PERIOD_6_HOURS",
|
||||
"PERIOD_1_DAY",
|
||||
"PERIOD_1_WEEK",
|
||||
"PERIOD_30_DAYS"
|
||||
],
|
||||
"description": "Restricts the query to the specified time range.",
|
||||
"type": "string"
|
||||
},
|
||||
"alignment": {
|
||||
"description": "[Optional] The alignment of the timed counts to be returned.\nDefault is `ALIGNMENT_EQUAL_AT_END`.",
|
||||
"type": "string",
|
||||
"location": "query",
|
||||
"enum": [
|
||||
"ERROR_COUNT_ALIGNMENT_UNSPECIFIED",
|
||||
"ALIGNMENT_EQUAL_ROUNDED",
|
||||
"ALIGNMENT_EQUAL_AT_END"
|
||||
]
|
||||
},
|
||||
"groupId": {
|
||||
"description": "[Optional] List all \u003ccode\u003eErrorGroupStats\u003c/code\u003e with these IDs.",
|
||||
"type": "string",
|
||||
"repeated": true,
|
||||
"location": "query"
|
||||
},
|
||||
"serviceFilter.service": {
|
||||
"description": "[Optional] The exact value to match against\n[`ServiceContext.service`](/error-reporting/reference/rest/v1beta1/ServiceContext#FIELDS.service).",
|
||||
"type": "string",
|
||||
"location": "query"
|
||||
},
|
||||
"pageSize": {
|
||||
"description": "[Optional] The maximum number of results to return per response.\nDefault is 20.",
|
||||
"format": "int32",
|
||||
"type": "integer",
|
||||
"location": "query"
|
||||
},
|
||||
"order": {
|
||||
"location": "query",
|
||||
"enum": [
|
||||
"GROUP_ORDER_UNSPECIFIED",
|
||||
"COUNT_DESC",
|
||||
"LAST_SEEN_DESC",
|
||||
"CREATED_DESC",
|
||||
"AFFECTED_USERS_DESC"
|
||||
],
|
||||
"description": "[Optional] The sort order in which the results are returned.\nDefault is `COUNT_DESC`.",
|
||||
"type": "string"
|
||||
},
|
||||
"serviceFilter.version": {
|
||||
"location": "query",
|
||||
"description": "[Optional] The exact value to match against\n[`ServiceContext.version`](/error-reporting/reference/rest/v1beta1/ServiceContext#FIELDS.version).",
|
||||
"type": "string"
|
||||
},
|
||||
"serviceFilter.resourceType": {
|
||||
"description": "[Optional] The exact value to match against\n[`ServiceContext.resource_type`](/error-reporting/reference/rest/v1beta1/ServiceContext#FIELDS.resource_type).",
|
||||
"type": "string",
|
||||
"location": "query"
|
||||
},
|
||||
"alignmentTime": {
|
||||
"location": "query",
|
||||
"description": "[Optional] Time where the timed counts shall be aligned if rounded\nalignment is chosen. Default is 00:00 UTC.",
|
||||
"format": "google-datetime",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"flatPath": "v1beta1/projects/{projectsId}/groupStats",
|
||||
"path": "v1beta1/{+projectName}/groupStats",
|
||||
"id": "clouderrorreporting.projects.groupStats.list"
|
||||
}
|
||||
}
|
||||
},
|
||||
"events": {
|
||||
"methods": {
|
||||
"list": {
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/cloud-platform"
|
||||
],
|
||||
"parameters": {
|
||||
"serviceFilter.resourceType": {
|
||||
"description": "[Optional] The exact value to match against\n[`ServiceContext.resource_type`](/error-reporting/reference/rest/v1beta1/ServiceContext#FIELDS.resource_type).",
|
||||
"type": "string",
|
||||
"location": "query"
|
||||
},
|
||||
"timeRange.period": {
|
||||
"description": "Restricts the query to the specified time range.",
|
||||
"type": "string",
|
||||
"location": "query",
|
||||
"enum": [
|
||||
"PERIOD_UNSPECIFIED",
|
||||
"PERIOD_1_HOUR",
|
||||
"PERIOD_6_HOURS",
|
||||
"PERIOD_1_DAY",
|
||||
"PERIOD_1_WEEK",
|
||||
"PERIOD_30_DAYS"
|
||||
]
|
||||
},
|
||||
"projectName": {
|
||||
"pattern": "^projects/[^/]+$",
|
||||
"location": "path",
|
||||
"description": "[Required] The resource name of the Google Cloud Platform project. Written\nas `projects/` plus the\n[Google Cloud Platform project\nID](https://support.google.com/cloud/answer/6158840).\nExample: `projects/my-project-123`.",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
},
|
||||
"groupId": {
|
||||
"description": "[Required] The group for which events shall be returned.",
|
||||
"type": "string",
|
||||
"location": "query"
|
||||
},
|
||||
"pageToken": {
|
||||
"description": "[Optional] A `next_page_token` provided by a previous response.",
|
||||
"type": "string",
|
||||
"location": "query"
|
||||
},
|
||||
"serviceFilter.service": {
|
||||
"description": "[Optional] The exact value to match against\n[`ServiceContext.service`](/error-reporting/reference/rest/v1beta1/ServiceContext#FIELDS.service).",
|
||||
"type": "string",
|
||||
"location": "query"
|
||||
},
|
||||
"pageSize": {
|
||||
"description": "[Optional] The maximum number of results to return per response.",
|
||||
"format": "int32",
|
||||
"type": "integer",
|
||||
"location": "query"
|
||||
},
|
||||
"serviceFilter.version": {
|
||||
"location": "query",
|
||||
"description": "[Optional] The exact value to match against\n[`ServiceContext.version`](/error-reporting/reference/rest/v1beta1/ServiceContext#FIELDS.version).",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"flatPath": "v1beta1/projects/{projectsId}/events",
|
||||
"path": "v1beta1/{+projectName}/events",
|
||||
"id": "clouderrorreporting.projects.events.list",
|
||||
"description": "Lists the specified events.",
|
||||
"response": {
|
||||
"$ref": "ListEventsResponse"
|
||||
},
|
||||
"parameterOrder": [
|
||||
"projectName"
|
||||
],
|
||||
"httpMethod": "GET"
|
||||
},
|
||||
"report": {
|
||||
"path": "v1beta1/{+projectName}/events:report",
|
||||
"id": "clouderrorreporting.projects.events.report",
|
||||
"request": {
|
||||
"$ref": "ReportedErrorEvent"
|
||||
},
|
||||
"description": "Report an individual error event.\n\nThis endpoint accepts \u003cstrong\u003eeither\u003c/strong\u003e an OAuth token,\n\u003cstrong\u003eor\u003c/strong\u003e an\n\u003ca href=\"https://support.google.com/cloud/answer/6158862\"\u003eAPI key\u003c/a\u003e\nfor authentication. To use an API key, append it to the URL as the value of\na `key` parameter. For example:\n\u003cpre\u003ePOST https://clouderrorreporting.googleapis.com/v1beta1/projects/example-project/events:report?key=123ABC456\u003c/pre\u003e",
|
||||
"response": {
|
||||
"$ref": "ReportErrorEventResponse"
|
||||
},
|
||||
"parameterOrder": [
|
||||
"projectName"
|
||||
],
|
||||
"httpMethod": "POST",
|
||||
"parameters": {
|
||||
"projectName": {
|
||||
"description": "[Required] The resource name of the Google Cloud Platform project. Written\nas `projects/` plus the\n[Google Cloud Platform project ID](https://support.google.com/cloud/answer/6158840).\nExample: `projects/my-project-123`.",
|
||||
"required": true,
|
||||
"type": "string",
|
||||
"pattern": "^projects/[^/]+$",
|
||||
"location": "path"
|
||||
}
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/cloud-platform"
|
||||
],
|
||||
"flatPath": "v1beta1/projects/{projectsId}/events:report"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"parameters": {
|
||||
"upload_protocol": {
|
||||
"description": "Upload protocol for media (e.g. \"raw\", \"multipart\").",
|
||||
"type": "string",
|
||||
"location": "query"
|
||||
},
|
||||
"prettyPrint": {
|
||||
"location": "query",
|
||||
"description": "Returns response with indentations and line breaks.",
|
||||
"type": "boolean",
|
||||
"default": "true"
|
||||
},
|
||||
"uploadType": {
|
||||
"location": "query",
|
||||
"description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
|
||||
"type": "string"
|
||||
},
|
||||
"fields": {
|
||||
"location": "query",
|
||||
"description": "Selector specifying which fields to include in a partial response.",
|
||||
"type": "string"
|
||||
},
|
||||
"callback": {
|
||||
"description": "JSONP",
|
||||
"type": "string",
|
||||
"location": "query"
|
||||
},
|
||||
"$.xgafv": {
|
||||
"description": "V1 error format.",
|
||||
"type": "string",
|
||||
"enumDescriptions": [
|
||||
"v1 error format",
|
||||
"v2 error format"
|
||||
],
|
||||
"location": "query",
|
||||
"enum": [
|
||||
"1",
|
||||
"2"
|
||||
]
|
||||
},
|
||||
"alt": {
|
||||
"enum": [
|
||||
"json",
|
||||
"media",
|
||||
"proto"
|
||||
],
|
||||
"type": "string",
|
||||
"enumDescriptions": [
|
||||
"Responses with Content-Type of application/json",
|
||||
"Media download with context-dependent Content-Type",
|
||||
"Responses with Content-Type of application/x-protobuf"
|
||||
],
|
||||
"location": "query",
|
||||
"description": "Data format for response.",
|
||||
"default": "json"
|
||||
},
|
||||
"access_token": {
|
||||
"description": "OAuth access token.",
|
||||
"type": "string",
|
||||
"location": "query"
|
||||
},
|
||||
"key": {
|
||||
"description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.",
|
||||
"type": "string",
|
||||
"location": "query"
|
||||
},
|
||||
"quotaUser": {
|
||||
"description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.",
|
||||
"type": "string",
|
||||
"location": "query"
|
||||
},
|
||||
"pp": {
|
||||
"location": "query",
|
||||
"description": "Pretty-print response.",
|
||||
"type": "boolean",
|
||||
"default": "true"
|
||||
},
|
||||
"bearer_token": {
|
||||
"location": "query",
|
||||
"description": "OAuth bearer token.",
|
||||
"type": "string"
|
||||
},
|
||||
"oauth_token": {
|
||||
"description": "OAuth 2.0 token for the current user.",
|
||||
"type": "string",
|
||||
"location": "query"
|
||||
}
|
||||
},
|
||||
"version": "v1beta1",
|
||||
"baseUrl": "https://clouderrorreporting.googleapis.com/",
|
||||
"kind": "discovery#restDescription",
|
||||
"description": "Groups and counts similar errors from cloud services and applications, reports new errors, and provides access to error groups and their associated errors.\n",
|
||||
"servicePath": "",
|
||||
"basePath": "",
|
||||
"revision": "20170501",
|
||||
"documentationLink": "https://cloud.google.com/error-reporting/",
|
||||
"id": "clouderrorreporting:v1beta1",
|
||||
"discoveryVersion": "v1"
|
||||
}
|
1983
vendor/google.golang.org/api/clouderrorreporting/v1beta1/clouderrorreporting-gen.go
generated
vendored
Normal file
1983
vendor/google.golang.org/api/clouderrorreporting/v1beta1/clouderrorreporting-gen.go
generated
vendored
Normal file
File diff suppressed because it is too large
Load diff
151
vendor/google.golang.org/api/cloudfunctions/v1/cloudfunctions-api.json
generated
vendored
Normal file
151
vendor/google.golang.org/api/cloudfunctions/v1/cloudfunctions-api.json
generated
vendored
Normal file
|
@ -0,0 +1,151 @@
|
|||
{
|
||||
"discoveryVersion": "v1",
|
||||
"ownerName": "Google",
|
||||
"version_module": "True",
|
||||
"resources": {},
|
||||
"parameters": {
|
||||
"upload_protocol": {
|
||||
"description": "Upload protocol for media (e.g. \"raw\", \"multipart\").",
|
||||
"type": "string",
|
||||
"location": "query"
|
||||
},
|
||||
"prettyPrint": {
|
||||
"location": "query",
|
||||
"description": "Returns response with indentations and line breaks.",
|
||||
"type": "boolean",
|
||||
"default": "true"
|
||||
},
|
||||
"uploadType": {
|
||||
"description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
|
||||
"type": "string",
|
||||
"location": "query"
|
||||
},
|
||||
"fields": {
|
||||
"description": "Selector specifying which fields to include in a partial response.",
|
||||
"type": "string",
|
||||
"location": "query"
|
||||
},
|
||||
"callback": {
|
||||
"description": "JSONP",
|
||||
"type": "string",
|
||||
"location": "query"
|
||||
},
|
||||
"$.xgafv": {
|
||||
"enum": [
|
||||
"1",
|
||||
"2"
|
||||
],
|
||||
"description": "V1 error format.",
|
||||
"type": "string",
|
||||
"enumDescriptions": [
|
||||
"v1 error format",
|
||||
"v2 error format"
|
||||
],
|
||||
"location": "query"
|
||||
},
|
||||
"alt": {
|
||||
"enumDescriptions": [
|
||||
"Responses with Content-Type of application/json",
|
||||
"Media download with context-dependent Content-Type",
|
||||
"Responses with Content-Type of application/x-protobuf"
|
||||
],
|
||||
"location": "query",
|
||||
"description": "Data format for response.",
|
||||
"default": "json",
|
||||
"enum": [
|
||||
"json",
|
||||
"media",
|
||||
"proto"
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
"key": {
|
||||
"description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.",
|
||||
"type": "string",
|
||||
"location": "query"
|
||||
},
|
||||
"access_token": {
|
||||
"description": "OAuth access token.",
|
||||
"type": "string",
|
||||
"location": "query"
|
||||
},
|
||||
"quotaUser": {
|
||||
"location": "query",
|
||||
"description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.",
|
||||
"type": "string"
|
||||
},
|
||||
"pp": {
|
||||
"location": "query",
|
||||
"description": "Pretty-print response.",
|
||||
"type": "boolean",
|
||||
"default": "true"
|
||||
},
|
||||
"bearer_token": {
|
||||
"location": "query",
|
||||
"description": "OAuth bearer token.",
|
||||
"type": "string"
|
||||
},
|
||||
"oauth_token": {
|
||||
"description": "OAuth 2.0 token for the current user.",
|
||||
"type": "string",
|
||||
"location": "query"
|
||||
}
|
||||
},
|
||||
"schemas": {
|
||||
"OperationMetadataV1Beta2": {
|
||||
"description": "Metadata describing an Operation",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"target": {
|
||||
"description": "Target of the operation - for example\nprojects/project-1/locations/region-1/functions/function-1",
|
||||
"type": "string"
|
||||
},
|
||||
"request": {
|
||||
"additionalProperties": {
|
||||
"description": "Properties of the object. Contains field @type with type URL.",
|
||||
"type": "any"
|
||||
},
|
||||
"description": "The original request that started the operation.",
|
||||
"type": "object"
|
||||
},
|
||||
"type": {
|
||||
"enumDescriptions": [
|
||||
"Unknown operation type.",
|
||||
"Triggered by CreateFunction call",
|
||||
"Triggered by UpdateFunction call",
|
||||
"Triggered by DeleteFunction call."
|
||||
],
|
||||
"enum": [
|
||||
"OPERATION_UNSPECIFIED",
|
||||
"CREATE_FUNCTION",
|
||||
"UPDATE_FUNCTION",
|
||||
"DELETE_FUNCTION"
|
||||
],
|
||||
"description": "Type of operation.",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"id": "OperationMetadataV1Beta2"
|
||||
}
|
||||
},
|
||||
"icons": {
|
||||
"x16": "http://www.google.com/images/icons/product/search-16.gif",
|
||||
"x32": "http://www.google.com/images/icons/product/search-32.gif"
|
||||
},
|
||||
"protocol": "rest",
|
||||
"version": "v1",
|
||||
"baseUrl": "https://cloudfunctions.googleapis.com/",
|
||||
"canonicalName": "Cloud Functions",
|
||||
"kind": "discovery#restDescription",
|
||||
"description": "API for managing lightweight user-provided functions executed in response to events.",
|
||||
"servicePath": "",
|
||||
"rootUrl": "https://cloudfunctions.googleapis.com/",
|
||||
"basePath": "",
|
||||
"ownerDomain": "google.com",
|
||||
"name": "cloudfunctions",
|
||||
"batchPath": "batch",
|
||||
"revision": "20170509",
|
||||
"documentationLink": "https://cloud.google.com/functions",
|
||||
"id": "cloudfunctions:v1",
|
||||
"title": "Google Cloud Functions API"
|
||||
}
|
109
vendor/google.golang.org/api/cloudfunctions/v1/cloudfunctions-gen.go
generated
vendored
Normal file
109
vendor/google.golang.org/api/cloudfunctions/v1/cloudfunctions-gen.go
generated
vendored
Normal file
|
@ -0,0 +1,109 @@
|
|||
// Package cloudfunctions provides access to the Google Cloud Functions API.
|
||||
//
|
||||
// See https://cloud.google.com/functions
|
||||
//
|
||||
// Usage example:
|
||||
//
|
||||
// import "google.golang.org/api/cloudfunctions/v1"
|
||||
// ...
|
||||
// cloudfunctionsService, err := cloudfunctions.New(oauthHttpClient)
|
||||
package cloudfunctions // import "google.golang.org/api/cloudfunctions/v1"
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"fmt"
|
||||
context "golang.org/x/net/context"
|
||||
ctxhttp "golang.org/x/net/context/ctxhttp"
|
||||
gensupport "google.golang.org/api/gensupport"
|
||||
googleapi "google.golang.org/api/googleapi"
|
||||
"io"
|
||||
"net/http"
|
||||
"net/url"
|
||||
"strconv"
|
||||
"strings"
|
||||
)
|
||||
|
||||
// Always reference these packages, just in case the auto-generated code
|
||||
// below doesn't.
|
||||
var _ = bytes.NewBuffer
|
||||
var _ = strconv.Itoa
|
||||
var _ = fmt.Sprintf
|
||||
var _ = json.NewDecoder
|
||||
var _ = io.Copy
|
||||
var _ = url.Parse
|
||||
var _ = gensupport.MarshalJSON
|
||||
var _ = googleapi.Version
|
||||
var _ = errors.New
|
||||
var _ = strings.Replace
|
||||
var _ = context.Canceled
|
||||
var _ = ctxhttp.Do
|
||||
|
||||
const apiId = "cloudfunctions:v1"
|
||||
const apiName = "cloudfunctions"
|
||||
const apiVersion = "v1"
|
||||
const basePath = "https://cloudfunctions.googleapis.com/"
|
||||
|
||||
func New(client *http.Client) (*Service, error) {
|
||||
if client == nil {
|
||||
return nil, errors.New("client is nil")
|
||||
}
|
||||
s := &Service{client: client, BasePath: basePath}
|
||||
return s, nil
|
||||
}
|
||||
|
||||
type Service struct {
|
||||
client *http.Client
|
||||
BasePath string // API endpoint base URL
|
||||
UserAgent string // optional additional User-Agent fragment
|
||||
}
|
||||
|
||||
func (s *Service) userAgent() string {
|
||||
if s.UserAgent == "" {
|
||||
return googleapi.UserAgent
|
||||
}
|
||||
return googleapi.UserAgent + " " + s.UserAgent
|
||||
}
|
||||
|
||||
// OperationMetadataV1Beta2: Metadata describing an Operation
|
||||
type OperationMetadataV1Beta2 struct {
|
||||
// Request: The original request that started the operation.
|
||||
Request googleapi.RawMessage `json:"request,omitempty"`
|
||||
|
||||
// Target: Target of the operation - for
|
||||
// example
|
||||
// projects/project-1/locations/region-1/functions/function-1
|
||||
Target string `json:"target,omitempty"`
|
||||
|
||||
// Type: Type of operation.
|
||||
//
|
||||
// Possible values:
|
||||
// "OPERATION_UNSPECIFIED" - Unknown operation type.
|
||||
// "CREATE_FUNCTION" - Triggered by CreateFunction call
|
||||
// "UPDATE_FUNCTION" - Triggered by UpdateFunction call
|
||||
// "DELETE_FUNCTION" - Triggered by DeleteFunction call.
|
||||
Type string `json:"type,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "Request") to
|
||||
// unconditionally include in API requests. By default, fields with
|
||||
// empty values are omitted from API requests. However, any non-pointer,
|
||||
// non-interface field appearing in ForceSendFields will be sent to the
|
||||
// server regardless of whether the field is empty or not. This may be
|
||||
// used to include empty fields in Patch requests.
|
||||
ForceSendFields []string `json:"-"`
|
||||
|
||||
// NullFields is a list of field names (e.g. "Request") to include in
|
||||
// API requests with the JSON null value. By default, fields with empty
|
||||
// values are omitted from API requests. However, any field with an
|
||||
// empty value appearing in NullFields will be sent to the server as
|
||||
// null. It is an error if a field in this list has a non-empty value.
|
||||
// This may be used to include null fields in Patch requests.
|
||||
NullFields []string `json:"-"`
|
||||
}
|
||||
|
||||
func (s *OperationMetadataV1Beta2) MarshalJSON() ([]byte, error) {
|
||||
type noMethod OperationMetadataV1Beta2
|
||||
raw := noMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
757
vendor/google.golang.org/api/cloudfunctions/v1beta2/cloudfunctions-api.json
generated
vendored
Normal file
757
vendor/google.golang.org/api/cloudfunctions/v1beta2/cloudfunctions-api.json
generated
vendored
Normal file
|
@ -0,0 +1,757 @@
|
|||
{
|
||||
"ownerDomain": "google.com",
|
||||
"name": "cloudfunctions",
|
||||
"batchPath": "batch",
|
||||
"title": "Google Cloud Functions API",
|
||||
"ownerName": "Google",
|
||||
"resources": {
|
||||
"projects": {
|
||||
"resources": {
|
||||
"locations": {
|
||||
"methods": {
|
||||
"list": {
|
||||
"description": "Lists information about the supported locations for this service.",
|
||||
"httpMethod": "GET",
|
||||
"parameterOrder": [
|
||||
"name"
|
||||
],
|
||||
"response": {
|
||||
"$ref": "ListLocationsResponse"
|
||||
},
|
||||
"parameters": {
|
||||
"pageSize": {
|
||||
"location": "query",
|
||||
"description": "The standard list page size.",
|
||||
"format": "int32",
|
||||
"type": "integer"
|
||||
},
|
||||
"filter": {
|
||||
"description": "The standard list filter.",
|
||||
"type": "string",
|
||||
"location": "query"
|
||||
},
|
||||
"name": {
|
||||
"location": "path",
|
||||
"description": "The resource that owns the locations collection, if applicable.",
|
||||
"required": true,
|
||||
"type": "string",
|
||||
"pattern": "^projects/[^/]+$"
|
||||
},
|
||||
"pageToken": {
|
||||
"location": "query",
|
||||
"description": "The standard list page token.",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/cloud-platform"
|
||||
],
|
||||
"flatPath": "v1beta2/projects/{projectsId}/locations",
|
||||
"id": "cloudfunctions.projects.locations.list",
|
||||
"path": "v1beta2/{+name}/locations"
|
||||
}
|
||||
},
|
||||
"resources": {
|
||||
"functions": {
|
||||
"methods": {
|
||||
"delete": {
|
||||
"id": "cloudfunctions.projects.locations.functions.delete",
|
||||
"path": "v1beta2/{+name}",
|
||||
"description": "Deletes a function with the given name from the specified project. If the\ngiven function is used by some trigger, the trigger will be updated to\nremove this function.",
|
||||
"httpMethod": "DELETE",
|
||||
"response": {
|
||||
"$ref": "Operation"
|
||||
},
|
||||
"parameterOrder": [
|
||||
"name"
|
||||
],
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/cloud-platform"
|
||||
],
|
||||
"parameters": {
|
||||
"name": {
|
||||
"pattern": "^projects/[^/]+/locations/[^/]+/functions/[^/]+$",
|
||||
"location": "path",
|
||||
"description": "The name of the function which should be deleted.",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"flatPath": "v1beta2/projects/{projectsId}/locations/{locationsId}/functions/{functionsId}"
|
||||
},
|
||||
"list": {
|
||||
"description": "Returns a list of functions that belong to the requested project.",
|
||||
"response": {
|
||||
"$ref": "ListFunctionsResponse"
|
||||
},
|
||||
"parameterOrder": [
|
||||
"location"
|
||||
],
|
||||
"httpMethod": "GET",
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/cloud-platform"
|
||||
],
|
||||
"parameters": {
|
||||
"location": {
|
||||
"pattern": "^projects/[^/]+/locations/[^/]+$",
|
||||
"location": "path",
|
||||
"description": "The project and location from which the function should be listed,\nspecified in the format `projects/*/locations/*`\nIf you want to list functions in all locations, use \"-\" in place of a\nlocation.",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
},
|
||||
"pageToken": {
|
||||
"location": "query",
|
||||
"description": "The value returned by the last\n`ListFunctionsResponse`; indicates that\nthis is a continuation of a prior `ListFunctions` call, and that the\nsystem should return the next page of data.",
|
||||
"type": "string"
|
||||
},
|
||||
"pageSize": {
|
||||
"location": "query",
|
||||
"description": "Maximum number of functions to return per call.",
|
||||
"format": "int32",
|
||||
"type": "integer"
|
||||
}
|
||||
},
|
||||
"flatPath": "v1beta2/projects/{projectsId}/locations/{locationsId}/functions",
|
||||
"path": "v1beta2/{+location}/functions",
|
||||
"id": "cloudfunctions.projects.locations.functions.list"
|
||||
},
|
||||
"call": {
|
||||
"description": "Invokes synchronously deployed function. To be used for testing, very\nlimited traffic allowed.",
|
||||
"request": {
|
||||
"$ref": "CallFunctionRequest"
|
||||
},
|
||||
"response": {
|
||||
"$ref": "CallFunctionResponse"
|
||||
},
|
||||
"parameterOrder": [
|
||||
"name"
|
||||
],
|
||||
"httpMethod": "POST",
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/cloud-platform"
|
||||
],
|
||||
"parameters": {
|
||||
"name": {
|
||||
"description": "The name of the function to be called.",
|
||||
"required": true,
|
||||
"type": "string",
|
||||
"pattern": "^projects/[^/]+/locations/[^/]+/functions/[^/]+$",
|
||||
"location": "path"
|
||||
}
|
||||
},
|
||||
"flatPath": "v1beta2/projects/{projectsId}/locations/{locationsId}/functions/{functionsId}:call",
|
||||
"path": "v1beta2/{+name}:call",
|
||||
"id": "cloudfunctions.projects.locations.functions.call"
|
||||
},
|
||||
"create": {
|
||||
"flatPath": "v1beta2/projects/{projectsId}/locations/{locationsId}/functions",
|
||||
"id": "cloudfunctions.projects.locations.functions.create",
|
||||
"path": "v1beta2/{+location}/functions",
|
||||
"description": "Creates a new function. If a function with the given name already exists in\nthe specified project, the long running operation will return\n`ALREADY_EXISTS` error.",
|
||||
"request": {
|
||||
"$ref": "CloudFunction"
|
||||
},
|
||||
"httpMethod": "POST",
|
||||
"parameterOrder": [
|
||||
"location"
|
||||
],
|
||||
"response": {
|
||||
"$ref": "Operation"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/cloud-platform"
|
||||
],
|
||||
"parameters": {
|
||||
"location": {
|
||||
"description": "The project and location in which the function should be created, specified\nin the format `projects/*/locations/*`",
|
||||
"required": true,
|
||||
"type": "string",
|
||||
"pattern": "^projects/[^/]+/locations/[^/]+$",
|
||||
"location": "path"
|
||||
}
|
||||
}
|
||||
},
|
||||
"get": {
|
||||
"description": "Returns a function with the given name from the requested project.",
|
||||
"httpMethod": "GET",
|
||||
"parameterOrder": [
|
||||
"name"
|
||||
],
|
||||
"response": {
|
||||
"$ref": "CloudFunction"
|
||||
},
|
||||
"parameters": {
|
||||
"name": {
|
||||
"location": "path",
|
||||
"description": "The name of the function which details should be obtained.",
|
||||
"required": true,
|
||||
"type": "string",
|
||||
"pattern": "^projects/[^/]+/locations/[^/]+/functions/[^/]+$"
|
||||
}
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/cloud-platform"
|
||||
],
|
||||
"flatPath": "v1beta2/projects/{projectsId}/locations/{locationsId}/functions/{functionsId}",
|
||||
"id": "cloudfunctions.projects.locations.functions.get",
|
||||
"path": "v1beta2/{+name}"
|
||||
},
|
||||
"update": {
|
||||
"response": {
|
||||
"$ref": "Operation"
|
||||
},
|
||||
"parameterOrder": [
|
||||
"name"
|
||||
],
|
||||
"httpMethod": "PUT",
|
||||
"parameters": {
|
||||
"name": {
|
||||
"location": "path",
|
||||
"description": "The name of the function to be updated.",
|
||||
"required": true,
|
||||
"type": "string",
|
||||
"pattern": "^projects/[^/]+/locations/[^/]+/functions/[^/]+$"
|
||||
}
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/cloud-platform"
|
||||
],
|
||||
"flatPath": "v1beta2/projects/{projectsId}/locations/{locationsId}/functions/{functionsId}",
|
||||
"path": "v1beta2/{+name}",
|
||||
"id": "cloudfunctions.projects.locations.functions.update",
|
||||
"request": {
|
||||
"$ref": "CloudFunction"
|
||||
},
|
||||
"description": "Updates existing function."
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"operations": {
|
||||
"methods": {
|
||||
"list": {
|
||||
"response": {
|
||||
"$ref": "ListOperationsResponse"
|
||||
},
|
||||
"parameterOrder": [],
|
||||
"httpMethod": "GET",
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/cloud-platform"
|
||||
],
|
||||
"parameters": {
|
||||
"filter": {
|
||||
"location": "query",
|
||||
"description": "The standard list filter.",
|
||||
"type": "string"
|
||||
},
|
||||
"name": {
|
||||
"location": "query",
|
||||
"description": "The name of the operation collection.",
|
||||
"type": "string"
|
||||
},
|
||||
"pageToken": {
|
||||
"location": "query",
|
||||
"description": "The standard list page token.",
|
||||
"type": "string"
|
||||
},
|
||||
"pageSize": {
|
||||
"location": "query",
|
||||
"description": "The standard list page size.",
|
||||
"format": "int32",
|
||||
"type": "integer"
|
||||
}
|
||||
},
|
||||
"flatPath": "v1beta2/operations",
|
||||
"path": "v1beta2/operations",
|
||||
"id": "cloudfunctions.operations.list",
|
||||
"description": "Lists operations that match the specified filter in the request. If the\nserver doesn't support this method, it returns `UNIMPLEMENTED`.\n\nNOTE: the `name` binding below allows API services to override the binding\nto use different resource name schemes, such as `users/*/operations`."
|
||||
},
|
||||
"get": {
|
||||
"flatPath": "v1beta2/operations/{operationsId}",
|
||||
"path": "v1beta2/{+name}",
|
||||
"id": "cloudfunctions.operations.get",
|
||||
"description": "Gets the latest state of a long-running operation. Clients can use this\nmethod to poll the operation result at intervals as recommended by the API\nservice.",
|
||||
"response": {
|
||||
"$ref": "Operation"
|
||||
},
|
||||
"parameterOrder": [
|
||||
"name"
|
||||
],
|
||||
"httpMethod": "GET",
|
||||
"parameters": {
|
||||
"name": {
|
||||
"required": true,
|
||||
"type": "string",
|
||||
"pattern": "^operations/[^/]+$",
|
||||
"location": "path",
|
||||
"description": "The name of the operation resource."
|
||||
}
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/cloud-platform"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"parameters": {
|
||||
"quotaUser": {
|
||||
"location": "query",
|
||||
"description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.",
|
||||
"type": "string"
|
||||
},
|
||||
"pp": {
|
||||
"description": "Pretty-print response.",
|
||||
"type": "boolean",
|
||||
"default": "true",
|
||||
"location": "query"
|
||||
},
|
||||
"oauth_token": {
|
||||
"location": "query",
|
||||
"description": "OAuth 2.0 token for the current user.",
|
||||
"type": "string"
|
||||
},
|
||||
"bearer_token": {
|
||||
"description": "OAuth bearer token.",
|
||||
"type": "string",
|
||||
"location": "query"
|
||||
},
|
||||
"upload_protocol": {
|
||||
"type": "string",
|
||||
"location": "query",
|
||||
"description": "Upload protocol for media (e.g. \"raw\", \"multipart\")."
|
||||
},
|
||||
"prettyPrint": {
|
||||
"location": "query",
|
||||
"description": "Returns response with indentations and line breaks.",
|
||||
"type": "boolean",
|
||||
"default": "true"
|
||||
},
|
||||
"uploadType": {
|
||||
"type": "string",
|
||||
"location": "query",
|
||||
"description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\")."
|
||||
},
|
||||
"fields": {
|
||||
"type": "string",
|
||||
"location": "query",
|
||||
"description": "Selector specifying which fields to include in a partial response."
|
||||
},
|
||||
"$.xgafv": {
|
||||
"description": "V1 error format.",
|
||||
"type": "string",
|
||||
"enumDescriptions": [
|
||||
"v1 error format",
|
||||
"v2 error format"
|
||||
],
|
||||
"location": "query",
|
||||
"enum": [
|
||||
"1",
|
||||
"2"
|
||||
]
|
||||
},
|
||||
"callback": {
|
||||
"location": "query",
|
||||
"description": "JSONP",
|
||||
"type": "string"
|
||||
},
|
||||
"alt": {
|
||||
"default": "json",
|
||||
"enum": [
|
||||
"json",
|
||||
"media",
|
||||
"proto"
|
||||
],
|
||||
"type": "string",
|
||||
"enumDescriptions": [
|
||||
"Responses with Content-Type of application/json",
|
||||
"Media download with context-dependent Content-Type",
|
||||
"Responses with Content-Type of application/x-protobuf"
|
||||
],
|
||||
"location": "query",
|
||||
"description": "Data format for response."
|
||||
},
|
||||
"key": {
|
||||
"description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.",
|
||||
"type": "string",
|
||||
"location": "query"
|
||||
},
|
||||
"access_token": {
|
||||
"type": "string",
|
||||
"location": "query",
|
||||
"description": "OAuth access token."
|
||||
}
|
||||
},
|
||||
"version": "v1beta2",
|
||||
"baseUrl": "https://cloudfunctions.googleapis.com/",
|
||||
"servicePath": "",
|
||||
"kind": "discovery#restDescription",
|
||||
"description": "API for managing lightweight user-provided functions executed in response to events.",
|
||||
"basePath": "",
|
||||
"id": "cloudfunctions:v1beta2",
|
||||
"documentationLink": "https://cloud.google.com/functions",
|
||||
"revision": "20170509",
|
||||
"discoveryVersion": "v1",
|
||||
"version_module": "True",
|
||||
"schemas": {
|
||||
"ListFunctionsResponse": {
|
||||
"id": "ListFunctionsResponse",
|
||||
"description": "Response for the `ListFunctions` method.",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"functions": {
|
||||
"description": "The functions that match the request.",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "CloudFunction"
|
||||
}
|
||||
},
|
||||
"nextPageToken": {
|
||||
"type": "string",
|
||||
"description": "If not empty, indicates that there may be more functions that match\nthe request; this value should be passed in a new\ngoogle.cloud.functions.v1beta2.ListFunctionsRequest\nto get more functions."
|
||||
}
|
||||
}
|
||||
},
|
||||
"CallFunctionResponse": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"executionId": {
|
||||
"type": "string",
|
||||
"description": "Execution id of function invocation."
|
||||
},
|
||||
"result": {
|
||||
"description": "Result populated for successful execution of synchronous function. Will\nnot be populated if function does not return a result through context.",
|
||||
"type": "string"
|
||||
},
|
||||
"error": {
|
||||
"description": "Either system or user-function generated error. Set if execution\nwas not successful.",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"id": "CallFunctionResponse",
|
||||
"description": "Response of `CallFunction` method."
|
||||
},
|
||||
"ListLocationsResponse": {
|
||||
"description": "The response message for Locations.ListLocations.",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"locations": {
|
||||
"description": "A list of locations that matches the specified filter in the request.",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "Location"
|
||||
}
|
||||
},
|
||||
"nextPageToken": {
|
||||
"description": "The standard List next-page token.",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"id": "ListLocationsResponse"
|
||||
},
|
||||
"EventTrigger": {
|
||||
"description": "Describes EventTrigger, used to request events be sent from another\nservice.",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"eventType": {
|
||||
"type": "string",
|
||||
"description": "`event_type` names contain the service that is sending an event and the\nkind of event that was fired. Must be of the form\n`providers/*/eventTypes/*` e.g. Directly handle a Message published to\nGoogle Cloud Pub/Sub `providers/cloud.pubsub/eventTypes/topic.publish`\n\n Handle an object changing in Google Cloud Storage\n `providers/cloud.storage/eventTypes/object.change`\n\n Handle a write to the Firebase Realtime Database\n `providers/firebase.database/eventTypes/data.write`"
|
||||
},
|
||||
"resource": {
|
||||
"description": "Which instance of the source's service should send events. E.g. for Pub/Sub\nthis would be a Pub/Sub topic at `projects/*/topics/*`. For Google Cloud\nStorage this would be a bucket at `projects/*/buckets/*`. For any source\nthat only supports one instance per-project, this should be the name of the\nproject (`projects/*`)",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"id": "EventTrigger"
|
||||
},
|
||||
"HTTPSTrigger": {
|
||||
"description": "Describes HTTPSTrigger, could be used to connect web hooks to function.",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"url": {
|
||||
"description": "Output only. The deployed url for the function.",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"id": "HTTPSTrigger"
|
||||
},
|
||||
"Operation": {
|
||||
"description": "This resource represents a long-running operation that is the result of a\nnetwork API call.",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"response": {
|
||||
"additionalProperties": {
|
||||
"description": "Properties of the object. Contains field @type with type URL.",
|
||||
"type": "any"
|
||||
},
|
||||
"description": "The normal response of the operation in case of success. If the original\nmethod returns no data on success, such as `Delete`, the response is\n`google.protobuf.Empty`. If the original method is standard\n`Get`/`Create`/`Update`, the response should be the resource. For other\nmethods, the response should have the type `XxxResponse`, where `Xxx`\nis the original method name. For example, if the original method name\nis `TakeSnapshot()`, the inferred response type is\n`TakeSnapshotResponse`.",
|
||||
"type": "object"
|
||||
},
|
||||
"name": {
|
||||
"description": "The server-assigned name, which is only unique within the same service that\noriginally returns it. If you use the default HTTP mapping, the\n`name` should have the format of `operations/some/unique/name`.",
|
||||
"type": "string"
|
||||
},
|
||||
"error": {
|
||||
"description": "The error result of the operation in case of failure or cancellation.",
|
||||
"$ref": "Status"
|
||||
},
|
||||
"metadata": {
|
||||
"description": "Service-specific metadata associated with the operation. It typically\ncontains progress information and common metadata such as create time.\nSome services might not provide such metadata. Any method that returns a\nlong-running operation should document the metadata type, if any.",
|
||||
"type": "object",
|
||||
"additionalProperties": {
|
||||
"description": "Properties of the object. Contains field @type with type URL.",
|
||||
"type": "any"
|
||||
}
|
||||
},
|
||||
"done": {
|
||||
"description": "If the value is `false`, it means the operation is still in progress.\nIf true, the operation is completed, and either `error` or `response` is\navailable.",
|
||||
"type": "boolean"
|
||||
}
|
||||
},
|
||||
"id": "Operation"
|
||||
},
|
||||
"OperationMetadataV1Beta2": {
|
||||
"description": "Metadata describing an Operation",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"target": {
|
||||
"description": "Target of the operation - for example\nprojects/project-1/locations/region-1/functions/function-1",
|
||||
"type": "string"
|
||||
},
|
||||
"request": {
|
||||
"description": "The original request that started the operation.",
|
||||
"type": "object",
|
||||
"additionalProperties": {
|
||||
"type": "any",
|
||||
"description": "Properties of the object. Contains field @type with type URL."
|
||||
}
|
||||
},
|
||||
"type": {
|
||||
"description": "Type of operation.",
|
||||
"type": "string",
|
||||
"enumDescriptions": [
|
||||
"Unknown operation type.",
|
||||
"Triggered by CreateFunction call",
|
||||
"Triggered by UpdateFunction call",
|
||||
"Triggered by DeleteFunction call."
|
||||
],
|
||||
"enum": [
|
||||
"OPERATION_UNSPECIFIED",
|
||||
"CREATE_FUNCTION",
|
||||
"UPDATE_FUNCTION",
|
||||
"DELETE_FUNCTION"
|
||||
]
|
||||
}
|
||||
},
|
||||
"id": "OperationMetadataV1Beta2"
|
||||
},
|
||||
"Status": {
|
||||
"description": "The `Status` type defines a logical error model that is suitable for different\nprogramming environments, including REST APIs and RPC APIs. It is used by\n[gRPC](https://github.com/grpc). The error model is designed to be:\n\n- Simple to use and understand for most users\n- Flexible enough to meet unexpected needs\n\n# Overview\n\nThe `Status` message contains three pieces of data: error code, error message,\nand error details. The error code should be an enum value of\ngoogle.rpc.Code, but it may accept additional error codes if needed. The\nerror message should be a developer-facing English message that helps\ndevelopers *understand* and *resolve* the error. If a localized user-facing\nerror message is needed, put the localized message in the error details or\nlocalize it in the client. The optional error details may contain arbitrary\ninformation about the error. There is a predefined set of error detail types\nin the package `google.rpc` which can be used for common error conditions.\n\n# Language mapping\n\nThe `Status` message is the logical representation of the error model, but it\nis not necessarily the actual wire format. When the `Status` message is\nexposed in different client libraries and different wire protocols, it can be\nmapped differently. For example, it will likely be mapped to some exceptions\nin Java, but more likely mapped to some error codes in C.\n\n# Other uses\n\nThe error model and the `Status` message can be used in a variety of\nenvironments, either with or without APIs, to provide a\nconsistent developer experience across different environments.\n\nExample uses of this error model include:\n\n- Partial errors. If a service needs to return partial errors to the client,\n it may embed the `Status` in the normal response to indicate the partial\n errors.\n\n- Workflow errors. A typical workflow has multiple steps. Each step may\n have a `Status` message for error reporting.\n\n- Batch operations. If a client uses batch request and batch response, the\n `Status` message should be used directly inside batch response, one for\n each error sub-response.\n\n- Asynchronous operations. If an API call embeds asynchronous operation\n results in its response, the status of those operations should be\n represented directly using the `Status` message.\n\n- Logging. If some API errors are stored in logs, the message `Status` could\n be used directly after any stripping needed for security/privacy reasons.",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"details": {
|
||||
"description": "A list of messages that carry the error details. There will be a\ncommon set of message types for APIs to use.",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"additionalProperties": {
|
||||
"description": "Properties of the object. Contains field @type with type URL.",
|
||||
"type": "any"
|
||||
},
|
||||
"type": "object"
|
||||
}
|
||||
},
|
||||
"code": {
|
||||
"description": "The status code, which should be an enum value of google.rpc.Code.",
|
||||
"format": "int32",
|
||||
"type": "integer"
|
||||
},
|
||||
"message": {
|
||||
"description": "A developer-facing error message, which should be in English. Any\nuser-facing error message should be localized and sent in the\ngoogle.rpc.Status.details field, or localized by the client.",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"id": "Status"
|
||||
},
|
||||
"CallFunctionRequest": {
|
||||
"id": "CallFunctionRequest",
|
||||
"description": "Request for the `CallFunction` method.",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"data": {
|
||||
"description": "Input to be passed to the function.",
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"SourceRepository": {
|
||||
"description": "Describes the location of the function source in a remote repository.",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"sourcePath": {
|
||||
"description": "The path within the repository where the function is defined. The path\nshould point to the directory where Cloud Functions files are located. Use\n\"/\" if the function is defined directly in the root directory of a\nrepository.",
|
||||
"type": "string"
|
||||
},
|
||||
"deployedRevision": {
|
||||
"description": "Output only. The id of the revision that was resolved at the moment of\nfunction creation or update. For example when a user deployed from a\nbranch, it will be the revision id of the latest change on this branch at\nthat time. If user deployed from revision then this value will be always\nequal to the revision specified by the user.",
|
||||
"type": "string"
|
||||
},
|
||||
"revision": {
|
||||
"description": "The id of the revision that captures the state of the repository from\nwhich the function should be fetched.",
|
||||
"type": "string"
|
||||
},
|
||||
"repositoryUrl": {
|
||||
"description": "URL to the hosted repository where the function is defined. Only paths in\nhttps://source.developers.google.com domain are supported. The path should\ncontain the name of the repository.",
|
||||
"type": "string"
|
||||
},
|
||||
"tag": {
|
||||
"description": "The name of the tag that captures the state of the repository from\nwhich the function should be fetched.",
|
||||
"type": "string"
|
||||
},
|
||||
"branch": {
|
||||
"description": "The name of the branch from which the function should be fetched.",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"id": "SourceRepository"
|
||||
},
|
||||
"CloudFunction": {
|
||||
"id": "CloudFunction",
|
||||
"description": "Describes a Cloud Function that contains user computation executed in\nresponse to an event. It encapsulate function and triggers configurations.",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"entryPoint": {
|
||||
"description": "The name of the function (as defined in source code) that will be\nexecuted. Defaults to the resource name suffix, if not specified. For\nbackward compatibility, if function with given name is not found, then the\nsystem will try to use function named \"function\".\nFor Node.js this is name of a function exported by the module specified\nin `source_location`.",
|
||||
"type": "string"
|
||||
},
|
||||
"updateTime": {
|
||||
"description": "Output only. The last update timestamp of a Cloud Function.",
|
||||
"format": "google-datetime",
|
||||
"type": "string"
|
||||
},
|
||||
"latestOperation": {
|
||||
"description": "Output only. Name of the most recent operation modifying the function. If\nthe function status is `DEPLOYING` or `DELETING`, then it points to the\nactive operation.",
|
||||
"type": "string"
|
||||
},
|
||||
"httpsTrigger": {
|
||||
"$ref": "HTTPSTrigger",
|
||||
"description": "An HTTPS endpoint type of source that can be triggered via URL."
|
||||
},
|
||||
"eventTrigger": {
|
||||
"$ref": "EventTrigger",
|
||||
"description": "A source that fires events in response to a condition in another service."
|
||||
},
|
||||
"status": {
|
||||
"description": "Output only. Status of the function deployment.",
|
||||
"type": "string",
|
||||
"enumDescriptions": [
|
||||
"Status not specified.",
|
||||
"Successfully deployed.",
|
||||
"Not deployed correctly - behavior is undefined. The item should be updated\nor deleted to move it out of this state.",
|
||||
"Creation or update in progress.",
|
||||
"Deletion in progress."
|
||||
],
|
||||
"enum": [
|
||||
"STATUS_UNSPECIFIED",
|
||||
"READY",
|
||||
"FAILED",
|
||||
"DEPLOYING",
|
||||
"DELETING"
|
||||
]
|
||||
},
|
||||
"timeout": {
|
||||
"description": "The function execution timeout. Execution is considered failed and\ncan be terminated if the function is not completed at the end of the\ntimeout period. Defaults to 60 seconds.",
|
||||
"format": "google-duration",
|
||||
"type": "string"
|
||||
},
|
||||
"availableMemoryMb": {
|
||||
"description": "The amount of memory in MB available for a function.\nDefaults to 256MB.",
|
||||
"format": "int32",
|
||||
"type": "integer"
|
||||
},
|
||||
"name": {
|
||||
"description": "A user-defined name of the function. Function names must be unique\nglobally and match pattern `projects/*/locations/*/functions/*`",
|
||||
"type": "string"
|
||||
},
|
||||
"serviceAccount": {
|
||||
"type": "string",
|
||||
"description": "Output only. The service account of the function."
|
||||
},
|
||||
"sourceArchiveUrl": {
|
||||
"description": "The Google Cloud Storage URL, starting with gs://, pointing to the zip\narchive which contains the function.",
|
||||
"type": "string"
|
||||
},
|
||||
"sourceRepository": {
|
||||
"description": "The hosted repository where the function is defined.",
|
||||
"$ref": "SourceRepository"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Location": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"name": {
|
||||
"description": "Resource name for the location, which may vary between implementations.\nFor example: `\"projects/example-project/locations/us-east1\"`",
|
||||
"type": "string"
|
||||
},
|
||||
"locationId": {
|
||||
"description": "The canonical id for this location. For example: `\"us-east1\"`.",
|
||||
"type": "string"
|
||||
},
|
||||
"metadata": {
|
||||
"additionalProperties": {
|
||||
"description": "Properties of the object. Contains field @type with type URL.",
|
||||
"type": "any"
|
||||
},
|
||||
"description": "Service-specific metadata. For example the available capacity at the given\nlocation.",
|
||||
"type": "object"
|
||||
},
|
||||
"labels": {
|
||||
"description": "Cross-service attributes for the location. For example\n\n {\"cloud.googleapis.com/region\": \"us-east1\"}",
|
||||
"type": "object",
|
||||
"additionalProperties": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"id": "Location",
|
||||
"description": "A resource that represents Google Cloud Platform location."
|
||||
},
|
||||
"ListOperationsResponse": {
|
||||
"description": "The response message for Operations.ListOperations.",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"nextPageToken": {
|
||||
"description": "The standard List next-page token.",
|
||||
"type": "string"
|
||||
},
|
||||
"operations": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "Operation"
|
||||
},
|
||||
"description": "A list of operations that matches the specified filter in the request."
|
||||
}
|
||||
},
|
||||
"id": "ListOperationsResponse"
|
||||
}
|
||||
},
|
||||
"icons": {
|
||||
"x32": "http://www.google.com/images/icons/product/search-32.gif",
|
||||
"x16": "http://www.google.com/images/icons/product/search-16.gif"
|
||||
},
|
||||
"protocol": "rest",
|
||||
"canonicalName": "Cloud Functions",
|
||||
"auth": {
|
||||
"oauth2": {
|
||||
"scopes": {
|
||||
"https://www.googleapis.com/auth/cloud-platform": {
|
||||
"description": "View and manage your data across Google Cloud Platform services"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"rootUrl": "https://cloudfunctions.googleapis.com/"
|
||||
}
|
2254
vendor/google.golang.org/api/cloudfunctions/v1beta2/cloudfunctions-gen.go
generated
vendored
Normal file
2254
vendor/google.golang.org/api/cloudfunctions/v1beta2/cloudfunctions-gen.go
generated
vendored
Normal file
File diff suppressed because it is too large
Load diff
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue