..
This commit is contained in:
14
backend/node_modules/googleapis/.github/CLOSE_ISSUE_TEMPLATE.md
generated
vendored
Normal file
14
backend/node_modules/googleapis/.github/CLOSE_ISSUE_TEMPLATE.md
generated
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
Closing as this does not appear to be an issue. If you are convinced that this is really a bug, please feel free to re-open the issue and add more information such as:
|
||||
|
||||
* Expected behavior
|
||||
* Actual behavior
|
||||
* Code samples
|
||||
* Version numbers
|
||||
* References docs or other links
|
||||
|
||||
Or, consider opening a Pull Request.
|
||||
|
||||
__Otherwise, support questions are handled on [Stack Overflow][stackoverflow].__ [![Ask a question on Stackoverflow][overflowimg]][stackoverflow]
|
||||
|
||||
[overflowimg]: https://googledrive.com/host/0ByfSjdPVs9MZbkhjeUhMYzRTeEE/stackoveflow-tag.png
|
||||
[stackoverflow]: http://stackoverflow.com/questions/tagged/google-api-nodejs-client
|
||||
85
backend/node_modules/googleapis/.github/CONTRIBUTING.md
generated
vendored
Normal file
85
backend/node_modules/googleapis/.github/CONTRIBUTING.md
generated
vendored
Normal file
@@ -0,0 +1,85 @@
|
||||
# Contributing
|
||||
|
||||
Before making any contributions, please sign one of the contributor
|
||||
license agreements below.
|
||||
|
||||
Fork the repo, develop and test your code changes.
|
||||
|
||||
Install all dependencies including development requirements by running:
|
||||
|
||||
``` sh
|
||||
$ npm install -d
|
||||
```
|
||||
|
||||
Tests are run using mocha. To run all tests just run:
|
||||
|
||||
``` sh
|
||||
$ npm test
|
||||
```
|
||||
|
||||
which looks for tests in the `test/` directory.
|
||||
|
||||
Your code should honor the [Google JavaScript Style Guide][js-guide].
|
||||
You can use [Closure Linter][c-linter] to detect style issues.
|
||||
|
||||
Submit a pull request. The repo owner will review your request. If it is
|
||||
approved, the change will be merged. If it needs additional work, the repo
|
||||
owner will respond with useful comments.
|
||||
|
||||
## Generating APIs
|
||||
|
||||
If you're a developer interested in contributing to this library, the following
|
||||
section will be useful for you. Each of the files in `apis/` is generated from
|
||||
the discovery docs available online. You can generate these files by running
|
||||
the following command:
|
||||
|
||||
``` sh
|
||||
npm run generate-apis
|
||||
```
|
||||
|
||||
You can pass in custom Discovery URLs or paths to discovery docs:
|
||||
|
||||
``` sh
|
||||
node scripts/generate http://discoveryurl.example.com /path/to/discoverydoc.json
|
||||
```
|
||||
|
||||
## Generating Documentation
|
||||
|
||||
You can generate the documentation for the APIs by running:
|
||||
|
||||
``` sh
|
||||
npm run generate-docs
|
||||
```
|
||||
|
||||
Documentation will be generated in `docs/`.
|
||||
|
||||
## Preparing for release
|
||||
|
||||
Before releasing a new version, you should generate all APIs, run tests,
|
||||
bump the version in `package.json` and create a git tag for the release. You
|
||||
can automate all this with a patch version bump (version += 0.0.1) by running:
|
||||
|
||||
``` sh
|
||||
npm run prepare
|
||||
```
|
||||
|
||||
## Contributor License Agreements
|
||||
|
||||
Before creating a pull request, please fill out either the individual or
|
||||
corporate Contributor License Agreement.
|
||||
|
||||
* If you are an individual writing original source code and you're sure you
|
||||
own the intellectual property, then you'll need to sign an
|
||||
[individual CLA][indv-cla].
|
||||
* If you work for a company that wants to allow you to contribute your work
|
||||
to this client library, then you'll need to sign a
|
||||
[corporate CLA][corp-cla].
|
||||
|
||||
Follow either of the two links above to access the appropriate CLA and
|
||||
instructions for how to sign and return it. Once we receive it, we'll add you
|
||||
to the official list of contributors and be able to accept your patches.
|
||||
|
||||
[js-guide]: https://google.github.io/styleguide/jsguide.html
|
||||
[c-linter]: https://code.google.com/p/closure-linter/
|
||||
[indv-cla]: https://developers.google.com/open-source/cla/individual
|
||||
[corp-cla]: https://developers.google.com/open-source/cla/corporate
|
||||
9
backend/node_modules/googleapis/.github/ISSUE_TEMPLATE.md
generated
vendored
Normal file
9
backend/node_modules/googleapis/.github/ISSUE_TEMPLATE.md
generated
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
**** DELETE THIS BLOCK ****
|
||||
|
||||
Thanks for filing an issue! Please keep keep issues limited to bug reports, feature requests, and other general issues. For support questions, please feel free to reach out on stack overflow: http://stackoverflow.com/questions/tagged/google-api-nodejs-client
|
||||
|
||||
**** /DELETE THIS BLOCK ****
|
||||
|
||||
<your detailed question and code samples go here>
|
||||
|
||||
Thanks!
|
||||
8
backend/node_modules/googleapis/.github/PULL_REQUEST_TEMPLATE.md
generated
vendored
Normal file
8
backend/node_modules/googleapis/.github/PULL_REQUEST_TEMPLATE.md
generated
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
Fixes #<issue_number_goes_here> (it's a good idea to open an issue first for discussion)
|
||||
|
||||
- [ ] `npm test` succeeds
|
||||
- [ ] Pull request has been squashed into 1 commit
|
||||
- [ ] I did NOT manually make changes to anything in `apis/`
|
||||
- [ ] Code coverage does not decrease (if any source code was changed)
|
||||
- [ ] Appropriate JSDoc comments were updated in source code (if applicable)
|
||||
- [ ] Approprate changes to readme/docs are included in PR
|
||||
9
backend/node_modules/googleapis/.npmignore
generated
vendored
Normal file
9
backend/node_modules/googleapis/.npmignore
generated
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
test
|
||||
samples
|
||||
doc
|
||||
node_modules
|
||||
coverage
|
||||
jsdoc-conf.json
|
||||
.travis.yml
|
||||
# Empty API
|
||||
apis/iam/v1alpha1.js
|
||||
1
backend/node_modules/googleapis/.nyc_output/24ce8f810f55beaf739ad3bd210860f2.json
generated
vendored
Normal file
1
backend/node_modules/googleapis/.nyc_output/24ce8f810f55beaf739ad3bd210860f2.json
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{}
|
||||
1
backend/node_modules/googleapis/.nyc_output/b2b0842b1faa7d145853bfebf85acc66.json
generated
vendored
Normal file
1
backend/node_modules/googleapis/.nyc_output/b2b0842b1faa7d145853bfebf85acc66.json
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
8
backend/node_modules/googleapis/AUTHORS
generated
vendored
Normal file
8
backend/node_modules/googleapis/AUTHORS
generated
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
# This is the official list of google-api-nodejs-client authors for copyright
|
||||
# purposes. This file is distinct from the CONTRIBUTORS files. See the latter
|
||||
# for an explanation.
|
||||
#
|
||||
# Names should be added to this file as:
|
||||
# Name or Organization <email address>
|
||||
# The email address is not required for organizations.
|
||||
Google Inc.
|
||||
941
backend/node_modules/googleapis/CHANGELOG.md
generated
vendored
Normal file
941
backend/node_modules/googleapis/CHANGELOG.md
generated
vendored
Normal file
@@ -0,0 +1,941 @@
|
||||
##### 22.2.0 - 25 September 2017
|
||||
|
||||
###### Backwards compatible changes
|
||||
- Updated `compute`
|
||||
- Updated `servicecontrol`
|
||||
|
||||
##### 22.1.0 - 22 September 2017
|
||||
|
||||
###### Backwards compatible changes
|
||||
- Updated `admin`
|
||||
- Updated `cloudtrace`
|
||||
- Updated `container`
|
||||
- Updated `content`
|
||||
- Updated `dataproc`
|
||||
- Updated `deploymentmanager`
|
||||
- Updated `streetviewpublish`
|
||||
- Updated `videointelligence`
|
||||
- Updated `youtube`
|
||||
|
||||
##### 22.0.0 - 22 September 2017
|
||||
|
||||
###### Breaking changes
|
||||
- Deleted `toolresults`
|
||||
|
||||
###### Backwards compatible changes
|
||||
- Added `cloudtasks`
|
||||
- Added `datastore`
|
||||
- Added `firebaseremoteconfig`
|
||||
- Added `oslogin`
|
||||
- Added `testing`
|
||||
- Updated `adexperiencereport`
|
||||
- Updated `androiddeviceprovisioning`
|
||||
- Updated `androidenterprise`
|
||||
- Updated `androidmanagement`
|
||||
- Updated `androidpublisher`
|
||||
- Updated `appengine`
|
||||
- Updated `bigquery`
|
||||
- Updated `bigquerydatatransfer`
|
||||
- Updated `cloudbilling`
|
||||
- Updated `cloudbuild`
|
||||
- Updated `clouddebugger`
|
||||
- Updated `cloudfunctions`
|
||||
- Updated `cloudkms`
|
||||
- Updated `cloudresourcemanager`
|
||||
- Updated `cloudtrace`
|
||||
- Updated `clouduseraccounts`
|
||||
- Updated `compute`
|
||||
- Updated `container`
|
||||
- Updated `content`
|
||||
- Updated `dataflow`
|
||||
- Updated `dataproc`
|
||||
- Updated `datastore`
|
||||
- Updated `deploymentmanager`
|
||||
- Updated `dfareporting`
|
||||
- Updated `dlp`
|
||||
- Updated `dns`
|
||||
- Updated `drive`
|
||||
- Updated `firebasedynamiclinks`
|
||||
- Updated `fitness`
|
||||
- Updated `genomics`
|
||||
- Updated `identitytoolkit`
|
||||
- Updated `language`
|
||||
- Updated `logging`
|
||||
- Updated `ml`
|
||||
- Updated `monitoring`
|
||||
- Updated `oslogin`
|
||||
- Updated `people`
|
||||
- Updated `prediction`
|
||||
- Updated `pubsub`
|
||||
- Updated `runtimeconfig`
|
||||
- Updated `servicecontrol`
|
||||
- Updated `servicemanagement`
|
||||
- Updated `serviceuser`
|
||||
- Updated `sheets`
|
||||
- Updated `slides`
|
||||
- Updated `sourcerepo`
|
||||
- Updated `spanner`
|
||||
- Updated `speech`
|
||||
- Updated `storage`
|
||||
- Updated `storagetransfer`
|
||||
- Updated `streetviewpublish`
|
||||
- Updated `tagmanager`
|
||||
- Updated `toolresults`
|
||||
- Updated `vault`
|
||||
- Updated `videointelligence`
|
||||
- Updated `vision`
|
||||
- Updated `youtube`
|
||||
|
||||
##### 21.3.0 - 28 August 2017
|
||||
|
||||
###### Backwards compatible changes
|
||||
- Updated `appengine:v1beta`
|
||||
- Updated `compute:alpha`
|
||||
- Updated `compute:beta`
|
||||
- Updated `compute:v1`
|
||||
- Updated `content:v2`
|
||||
- Updated `identitytoolkit:v3`
|
||||
- Updated `logging:v2`
|
||||
- Updated `script:v1`
|
||||
- Updated `streetviewpublish:v1`
|
||||
|
||||
##### 21.2.0 - 25 August 2017
|
||||
|
||||
###### Breaking changes
|
||||
- Deleted `adsense:v1.3`
|
||||
- Deleted `dataproc:v1beta1`
|
||||
- Deleted `ml:v1beta1`
|
||||
|
||||
###### Backwards compatible changes
|
||||
- Added `androiddeviceprovisioning:v1`
|
||||
- Added `androidmanagement:v1`
|
||||
- Added `container:v1beta1`
|
||||
- Added `playcustomapp:v1`
|
||||
- Added `vault:v1`
|
||||
- Updated `acceleratedmobilepageurl:v1`
|
||||
- Updated `adexchangebuyer2:v2beta1`
|
||||
- Updated `adexchangebuyer:v1.2`
|
||||
- Updated `adexchangebuyer:v1.3`
|
||||
- Updated `adexchangebuyer:v1.4`
|
||||
- Updated `adexchangeseller:v1`
|
||||
- Updated `adexchangeseller:v1.1`
|
||||
- Updated `adexchangeseller:v2.0`
|
||||
- Updated `adexperiencereport:v1`
|
||||
- Updated `admin:datatransfer_v1`
|
||||
- Updated `admin:directory_v1`
|
||||
- Updated `admin:reports_v1`
|
||||
- Updated `adsense:v1.4`
|
||||
- Updated `adsensehost:v4.1`
|
||||
- Updated `analytics:v2.4`
|
||||
- Updated `analytics:v3`
|
||||
- Updated `analyticsreporting:v4`
|
||||
- Updated `androidenterprise:v1`
|
||||
- Updated `androidpublisher:v1.1`
|
||||
- Updated `androidpublisher:v2`
|
||||
- Updated `appengine:v1`
|
||||
- Updated `appengine:v1alpha`
|
||||
- Updated `appengine:v1beta`
|
||||
- Updated `appengine:v1beta4`
|
||||
- Updated `appengine:v1beta5`
|
||||
- Updated `appsactivity:v1`
|
||||
- Updated `appstate:v1`
|
||||
- Updated `bigquery:v2`
|
||||
- Updated `bigquerydatatransfer:v1`
|
||||
- Updated `blogger:v2`
|
||||
- Updated `blogger:v3`
|
||||
- Updated `books:v1`
|
||||
- Updated `calendar:v3`
|
||||
- Updated `civicinfo:v2`
|
||||
- Updated `classroom:v1`
|
||||
- Updated `cloudbilling:v1`
|
||||
- Updated `cloudbuild:v1`
|
||||
- Updated `clouddebugger:v2`
|
||||
- Updated `clouderrorreporting:v1beta1`
|
||||
- Updated `cloudfunctions:v1`
|
||||
- Updated `cloudfunctions:v1beta2`
|
||||
- Updated `cloudkms:v1`
|
||||
- Updated `cloudmonitoring:v2beta2`
|
||||
- Updated `cloudresourcemanager:v1`
|
||||
- Updated `cloudresourcemanager:v1beta1`
|
||||
- Updated `cloudresourcemanager:v2beta1`
|
||||
- Updated `cloudtrace:v1`
|
||||
- Updated `cloudtrace:v2`
|
||||
- Updated `clouduseraccounts:alpha`
|
||||
- Updated `clouduseraccounts:beta`
|
||||
- Updated `clouduseraccounts:vm_alpha`
|
||||
- Updated `clouduseraccounts:vm_beta`
|
||||
- Updated `compute:alpha`
|
||||
- Updated `compute:beta`
|
||||
- Updated `compute:v1`
|
||||
- Updated `consumersurveys:v2`
|
||||
- Updated `container:v1`
|
||||
- Updated `content:v2`
|
||||
- Updated `content:v2sandbox`
|
||||
- Updated `customsearch:v1`
|
||||
- Updated `dataflow:v1b3`
|
||||
- Updated `dataproc:v1`
|
||||
- Updated `dataproc:v1beta2`
|
||||
- Updated `datastore:v1`
|
||||
- Updated `datastore:v1beta3`
|
||||
- Updated `deploymentmanager:alpha`
|
||||
- Updated `deploymentmanager:v2`
|
||||
- Updated `deploymentmanager:v2beta`
|
||||
- Updated `dfareporting:v2.7`
|
||||
- Updated `dfareporting:v2.8`
|
||||
- Updated `discovery:v1`
|
||||
- Updated `dlp:v2beta1`
|
||||
- Updated `dns:v1`
|
||||
- Updated `dns:v2beta1`
|
||||
- Updated `doubleclickbidmanager:v1`
|
||||
- Updated `doubleclicksearch:v2`
|
||||
- Updated `drive:v2`
|
||||
- Updated `drive:v3`
|
||||
- Updated `firebasedynamiclinks:v1`
|
||||
- Updated `firebaserules:v1`
|
||||
- Updated `fitness:v1`
|
||||
- Updated `fusiontables:v1`
|
||||
- Updated `fusiontables:v2`
|
||||
- Updated `games:v1`
|
||||
- Updated `gamesConfiguration:v1configuration`
|
||||
- Updated `gamesManagement:v1management`
|
||||
- Updated `genomics:v1`
|
||||
- Updated `genomics:v1alpha2`
|
||||
- Updated `gmail:v1`
|
||||
- Updated `iam:v1`
|
||||
- Updated `identitytoolkit:v3`
|
||||
- Updated `kgsearch:v1`
|
||||
- Updated `language:v1`
|
||||
- Updated `language:v1beta1`
|
||||
- Updated `language:v1beta2`
|
||||
- Updated `licensing:v1`
|
||||
- Updated `logging:v2`
|
||||
- Updated `logging:v2beta1`
|
||||
- Updated `manufacturers:v1`
|
||||
- Updated `mirror:v1`
|
||||
- Updated `ml:v1`
|
||||
- Updated `monitoring:v3`
|
||||
- Updated `oauth2:v1`
|
||||
- Updated `oauth2:v2`
|
||||
- Updated `oslogin:v1alpha`
|
||||
- Updated `pagespeedonline:v2`
|
||||
- Updated `partners:v2`
|
||||
- Updated `people:v1`
|
||||
- Updated `playmoviespartner:v1`
|
||||
- Updated `plus:v1`
|
||||
- Updated `plusDomains:v1`
|
||||
- Updated `prediction:v1.2`
|
||||
- Updated `prediction:v1.3`
|
||||
- Updated `prediction:v1.4`
|
||||
- Updated `prediction:v1.5`
|
||||
- Updated `prediction:v1.6`
|
||||
- Updated `proximitybeacon:v1beta1`
|
||||
- Updated `pubsub:v1`
|
||||
- Updated `pubsub:v1beta1a`
|
||||
- Updated `pubsub:v1beta2`
|
||||
- Updated `qpxExpress:v1`
|
||||
- Updated `replicapool:v1beta1`
|
||||
- Updated `replicapool:v1beta2`
|
||||
- Updated `replicapoolupdater:v1beta1`
|
||||
- Updated `reseller:v1`
|
||||
- Updated `resourceviews:v1beta1`
|
||||
- Updated `resourceviews:v1beta2`
|
||||
- Updated `runtimeconfig:v1`
|
||||
- Updated `runtimeconfig:v1beta1`
|
||||
- Updated `safebrowsing:v4`
|
||||
- Updated `script:v1`
|
||||
- Updated `searchconsole:v1`
|
||||
- Updated `servicecontrol:v1`
|
||||
- Updated `servicemanagement:v1`
|
||||
- Updated `serviceuser:v1`
|
||||
- Updated `sheets:v4`
|
||||
- Updated `siteVerification:v1`
|
||||
- Updated `slides:v1`
|
||||
- Updated `sourcerepo:v1`
|
||||
- Updated `spanner:v1`
|
||||
- Updated `spectrum:v1explorer`
|
||||
- Updated `speech:v1`
|
||||
- Updated `speech:v1beta1`
|
||||
- Updated `sqladmin:v1beta3`
|
||||
- Updated `sqladmin:v1beta4`
|
||||
- Updated `storage:v1`
|
||||
- Updated `storage:v1beta1`
|
||||
- Updated `storage:v1beta2`
|
||||
- Updated `storagetransfer:v1`
|
||||
- Updated `streetviewpublish:v1`
|
||||
- Updated `surveys:v2`
|
||||
- Updated `tagmanager:v1`
|
||||
- Updated `tagmanager:v2`
|
||||
- Updated `taskqueue:v1beta1`
|
||||
- Updated `taskqueue:v1beta2`
|
||||
- Updated `tasks:v1`
|
||||
- Updated `toolresults:v1beta3`
|
||||
- Updated `toolresults:v1beta3firstparty`
|
||||
- Updated `translate:v2`
|
||||
- Updated `urlshortener:v1`
|
||||
- Updated `videointelligence:v1beta1`
|
||||
- Updated `vision:v1`
|
||||
- Updated `webfonts:v1`
|
||||
- Updated `webmasters:v3`
|
||||
- Updated `youtube:v3`
|
||||
- Updated `youtubeAnalytics:v1`
|
||||
- Updated `youtubeAnalytics:v1beta1`
|
||||
- Updated `youtubereporting:v1`
|
||||
|
||||
##### 20.2.0 - 24 August 2017
|
||||
|
||||
- Light refactoring and doc improvements
|
||||
|
||||
##### 20.1.0 - 11 July 2017
|
||||
|
||||
- Regenerated
|
||||
|
||||
##### 20.0.0 - 27 June 2017
|
||||
|
||||
- Regenerated
|
||||
|
||||
###### Breaking changes
|
||||
- Deleted `dataproc` `v1alpha1` API
|
||||
- Deleted `dfareporting` `v2.6` API
|
||||
- Deleted `tracing` `v2` API
|
||||
|
||||
###### Backwards compatible changes
|
||||
- Added the `adexperiencereport` `v1` API
|
||||
- Added the `cloudresourcemanager` `v2beta1` API
|
||||
- Added the `cloudtrace` `v2` API
|
||||
- Added the `oslogin` `v1alpha` API
|
||||
- Added the `videointelligence` `v1beta1` API
|
||||
|
||||
##### 19.0.0 - 10 April 2017
|
||||
|
||||
- Regenerated
|
||||
|
||||
##### 18.1.0 - 13 March 2017
|
||||
|
||||
- Regenerated
|
||||
|
||||
##### 18.0.0 - 10 March 2017
|
||||
|
||||
- Regenerated
|
||||
|
||||
##### 17.1.0 - 22 February 2017
|
||||
|
||||
- Regenerated
|
||||
|
||||
##### 17.0.0 - 22 February 2017
|
||||
|
||||
- Regenerated
|
||||
|
||||
##### 16.1.0 - 11 January 2017
|
||||
|
||||
###### Backwards compatible changes
|
||||
- Added `cloudkms` `v1beta1` API
|
||||
- Added methods to the `classroom` `v1` API
|
||||
|
||||
##### 16.0.0 - 29 December 2016
|
||||
|
||||
###### Breaking changes
|
||||
- Upgraded to google-auth-library-nodejs 0.10.0, which has a breaking bug fix
|
||||
|
||||
##### 15.1.0 - 28 December 2016
|
||||
|
||||
###### Backwards compatible changes
|
||||
- Added new methods to the `androidpublisher` `v2` API
|
||||
- Added new methods to the `compute` `alpha` API
|
||||
- Added new methods to the `sqladmin` `v1beta4` API
|
||||
|
||||
##### 15.0.0 - 05 December 2016
|
||||
|
||||
###### Breaking changes
|
||||
- Deleted `dfareporting` `v2.4` API
|
||||
- Deleted `genomics` `v1beta2` API
|
||||
- Deleted some methods from the `youtubeanalytics` `v1` API
|
||||
- Deleted some methods from the `youtubeanalytics` `v1beta1` API
|
||||
|
||||
###### Backwards compatible changes
|
||||
- Added new methods to the `cloudbuild` `v1` API
|
||||
- Added new methods to the `compute` `alpha` API
|
||||
- Added new methods to the `compute` `beta` API
|
||||
- Added new methods to the `gmail` `v1` API
|
||||
- Added the `language` `v1` API
|
||||
- Added new methods to the `language` `v1beta1` API
|
||||
- Added new methods to the `logging` `v2` API
|
||||
- Added new methods to the `logging` `v2beta1` API
|
||||
- Added new methods to the `runtimeconfig` `v1beta1` API
|
||||
|
||||
##### 14.2.0 - 08 November 2016
|
||||
|
||||
###### Backwards compatible changes
|
||||
- Added `dfareporting` `v2.7` API
|
||||
- Added `manufacturers` `v1` API
|
||||
- Added `slides` `v1` API
|
||||
- Added `apps.create` to `appengine` `v1` API
|
||||
- Added `hosts.aggregatedList` to `compute` `alpha` API
|
||||
- Added `hosts.delete` to `compute` `alpha` API
|
||||
- Added `hosts.get` to `compute` `alpha` API
|
||||
- Added `hosts.insert` to `compute` `alpha` API
|
||||
- Added `hosts.list` to `compute` `alpha` API
|
||||
- Added `backendBuckets.delete` to `compute` `beta` API
|
||||
- Added `backendBuckets.get` to `compute` `beta` API
|
||||
- Added `backendBuckets.insert` to `compute` `beta` API
|
||||
- Added `backendBuckets.list` to `compute` `beta` API
|
||||
- Added `backendBuckets.patch` to `compute` `beta` API
|
||||
- Added `backendBuckets.update` to `compute` `beta` API
|
||||
- Added `subnetworks.getIamPolicy` to `compute` `beta` API
|
||||
- Added `subnetworks.setIamPolicy` to `compute` `beta` API
|
||||
- Added `networks.switchToCustomMode` to `compute` `v1` API
|
||||
- Added `subnetworks.expandIpCidrRange` to `compute` `v1` API
|
||||
- Added `projects.locations.jobs.create` to `dataflow` `v1b3` API
|
||||
- Added `projects.locations.jobs.get` to `dataflow` `v1b3` API
|
||||
- Added `projects.locations.jobs.update` to `dataflow` `v1b3` API
|
||||
- Added `projects.locations.jobs.list` to `dataflow` `v1b3` API
|
||||
- Added `projects.locations.jobs.getMetrics` to `dataflow` `v1b3` API
|
||||
- Added `projects.locations.jobs.messages.list` to `dataflow` `v1b3` API
|
||||
- Added `projects.locations.jobs.workItems.reportStatus` to `dataflow` `v1b3` API
|
||||
- Added `projects.locations.jobs.workItems.lease` to `dataflow` `v1b3` API
|
||||
- Added `folders.logs.delete` to `logging` `v2` API
|
||||
- Added `folders.sinks.update` to `logging` `v2` API
|
||||
- Added `folders.sinks.get` to `logging` `v2` API
|
||||
- Added `folders.sinks.create` to `logging` `v2` API
|
||||
- Added `folders.sinks.list` to `logging` `v2` API
|
||||
- Added `folders.sinks.delete` to `logging` `v2` API
|
||||
- Added `organizations.sinks.update` to `logging` `v2` API
|
||||
- Added `organizations.sinks.get` to `logging` `v2` API
|
||||
- Added `organizations.sinks.create` to `logging` `v2` API
|
||||
- Added `organizations.sinks.list` to `logging` `v2` API
|
||||
- Added `organizations.sinks.delete` to `logging` `v2` API
|
||||
- Added `billingAccounts.sinks.update` to `logging` `v2` API
|
||||
- Added `billingAccounts.sinks.get` to `logging` `v2` API
|
||||
- Added `billingAccounts.sinks.create` to `logging` `v2` API
|
||||
- Added `billingAccounts.sinks.list` to `logging` `v2` API
|
||||
- Added `billingAccounts.sinks.delete` to `logging` `v2` API
|
||||
|
||||
##### 14.1.0 - 19 October 2016
|
||||
|
||||
###### Backwards compatible changes
|
||||
- Upgraded to `google-auth-library` version `0.9.9`
|
||||
- Added `logging` `v2` API
|
||||
- Added `runtimeconfig` `v1` API
|
||||
- Added `surveys` `v2` API
|
||||
- Added `creatives.listDeals` to `addexchangebuyer` `v1.4` API
|
||||
- Added `chromeosdevices.action` to `admin` `directory_v1` API
|
||||
- Added `enterprises.createWebToken` to `androidenterprise` `v1` API
|
||||
- Added `edits.deobfuscationfiles.upload` to `androidpublisher` `v2` API
|
||||
- Added `experimental.apps.operations.get` to `appengine` `v1` API
|
||||
- Added `experimental.apps.operations.list` to `appengine` `v1` API
|
||||
- Added `apps.patch` to `appengine` `v1` API
|
||||
- Added `apps.patch` to `appengine` `v1beta4` API
|
||||
- Added `apps.patch` to `appengine` `v1beta5` API
|
||||
- Added `hosts.getIamPolicy` to `compute` `alpha` API
|
||||
- Added `hosts.setIamPolicy` to `compute` `alpha` API
|
||||
- Added `hosts.testIamPermissions` to `compute` `alpha` API
|
||||
- Added `instances.updateAccessConfig` to `compute` `alpha` API
|
||||
- Added `projects.snapshots.getIamPolicy` to `pubsub` `v1` API
|
||||
- Added `projects.snapshots.setIamPolicy` to `pubsub` `v1` API
|
||||
- Added `projects.snapshots.testIamPermissions` to `pubsub` `v1` API
|
||||
|
||||
##### 14.0.0 - 03 October 2016
|
||||
|
||||
###### Breaking changes
|
||||
- Removed `adsense` `v1.2` API
|
||||
- Removed `dfareporting` `v2.2` API
|
||||
- Removed `dfareporting` `v2.3` API
|
||||
- Removed `rubicon.notifyproposalchange` from `doubleclickbidmanager` `v1` API
|
||||
|
||||
###### Backwards compatible changes
|
||||
- Added `firebasedynamiclinks` `v1` API
|
||||
- Added `ml` `v1beta1` API
|
||||
- Added `organizations.search` to `cloudresourcemanager` `v1` API
|
||||
- Added `organizations.get` to `cloudresourcemanager` `v1` API
|
||||
- Added `organizations.setIamPolicy` to `cloudresourcemanager` `v1` API
|
||||
- Added `organizations.getIamPolicy` to `cloudresourcemanager` `v1` API
|
||||
- Added `organizations.testIamPermissions` to `cloudresourcemanager` `v1` API
|
||||
- Added `projects.create` to `cloudresourcemanager` `v1` API
|
||||
- Added `projects.setDefaultServiceAccount` to `compute` `alpha` API
|
||||
- Added `subnetworks.setPrivateIpGoogleAccess` to `compute` `alpha` API
|
||||
- Added `targetTcpProxies.delete` to `compute` `alpha` API
|
||||
- Added `targetTcpProxies.get` to `compute` `alpha` API
|
||||
- Added `targetTcpProxies.insert` to `compute` `alpha` API
|
||||
- Added `targetTcpProxies.list` to `compute` `alpha` API
|
||||
- Added `targetTcpProxies.setBackendService` to `compute` `alpha` API
|
||||
- Added `targetTcpProxies.setProxyHeader` to `compute` `alpha` API
|
||||
- Added `targetTcpProxies.testIamPermissions` to `compute` `alpha` API
|
||||
- Added `regionInstanceGroupManagers.update` to `compute` `beta` API
|
||||
- Added `deployments.getIamPolicy` to `deploymentmanager` `v2` API
|
||||
- Added `deployments.setIamPolicy` to `deploymentmanager` `v2` API
|
||||
- Added `deployments.testIamPermissions` to `deploymentmanager` `v2` API
|
||||
- Added `sdf.download` to `doubleclickbidmanager` `v1` API
|
||||
- Added `roles.queryGrantableRoles` to `iam` `v1` API
|
||||
- Added `organizations.logs.delete` to `logging` `v2beta1` API
|
||||
- Added `billingAccounts.logs.delete` to `logging` `v2beta1` API
|
||||
|
||||
##### 13.0.0 - 12 September 2016
|
||||
|
||||
###### Breaking changes
|
||||
- Removed `freebase` `v1` API
|
||||
|
||||
###### Backwards compatible changes
|
||||
- Added `backendServices.aggregatedList` to `compute` `beta` API
|
||||
- Added `regionBackendServices.delete` to `compute` `beta` API
|
||||
- Added `regionBackendServices.get` to `compute` `beta` API
|
||||
- Added `regionBackendServices.getHealth` to `compute` `beta` API
|
||||
- Added `regionBackendServices.insert` to `compute` `beta` API
|
||||
- Added `regionBackendServices.list` to `compute` `beta` API
|
||||
- Added `regionBackendServices.patch` to `compute` `beta` API
|
||||
- Added `regionBackendServices.testIamPermissions` to `compute` `beta` API
|
||||
- Added `regionBackendServices.update` to `compute` `beta` API
|
||||
- Added `healthChecks.delete` to `compute` `v1` API
|
||||
- Added `healthChecks.get` to `compute` `v1` API
|
||||
- Added `healthChecks.insert` to `compute` `v1` API
|
||||
- Added `healthChecks.list` to `compute` `v1` API
|
||||
- Added `healthChecks.patch` to `compute` `v1` API
|
||||
- Added `healthChecks.update` to `compute` `v1` API
|
||||
- Added `targetSslProxies.delete` to `compute` `v1` API
|
||||
- Added `targetSslProxies.get` to `compute` `v1` API
|
||||
- Added `targetSslProxies.insert` to `compute` `v1` API
|
||||
- Added `targetSslProxies.list` to `compute` `v1` API
|
||||
- Added `targetSslProxies.setBackendService` to `compute` `v1` API
|
||||
- Added `targetSslProxies.setProxyHeader` to `compute` `v1` API
|
||||
- Added `targetSslProxies.setSslCertificates` to `compute` `v1` API
|
||||
|
||||
##### 12.4.0 - 23 August 2016
|
||||
|
||||
###### Backwards compatible changes
|
||||
- #623 - Add support for overriding request options.
|
||||
|
||||
##### 12.3.0 - 17 August 2016
|
||||
|
||||
###### Backwards compatible changes
|
||||
- Added `management.remarketingAudience.get` to `analytics` `v3` API
|
||||
- Added `management.remarketingAudience.insert` to `analytics` `v3` API
|
||||
- Added `management.remarketingAudience.list` to `analytics` `v3` API
|
||||
- Added `management.remarketingAudience.patch` to `analytics` `v3` API
|
||||
- Added `management.remarketingAudience.update` to `analytics` `v3` API
|
||||
- Added `userProfiles.guardianInvitations.list` to `classroom` `v1` API
|
||||
- Added `userProfiles.guardianInvitations.get` to `classroom` `v1` API
|
||||
- Added `userProfiles.guardianInvitations.create` to `classroom` `v1` API
|
||||
- Added `userProfiles.guardianInvitations.patch` to `classroom` `v1` API
|
||||
- Added `userProfiles.guardians.list` to `classroom` `v1` API
|
||||
- Added `userProfiles.guardians.get` to `classroom` `v1` API
|
||||
- Added `userProfiles.guardians.delete` to `classroom` `v1` API
|
||||
- Added `projects.triggers.create` to `cloudbuild` `v1` API
|
||||
- Added `projects.triggers.get` to `cloudbuild` `v1` API
|
||||
- Added `projects.triggers.list` to `cloudbuild` `v1` API
|
||||
- Added `projects.triggers.delete` to `cloudbuild` `v1` API
|
||||
- Added `projects.triggers.patch` to `cloudbuild` `v1` API
|
||||
- Added `backendServices.aggregatedList` to `compute` `alpha` API
|
||||
- Added `regionInstanceGroupManagers.patch` to `compute` `alpha` API
|
||||
- Added `regionInstanceGroupManagers.update` to `compute` `alpha` API
|
||||
- Added `networks.switchToCustomMode` to `compute` `beta` API
|
||||
- Added `subnetworks.expandIpCidrRange` to `compute` `beta` API
|
||||
- Added `shippingsettings.custombatch` to `content` `v2` API
|
||||
- Added `shippingsettings.get` to `content` `v2` API
|
||||
- Added `shippingsettings.getsupportedcarriers` to `content` `v2` API
|
||||
- Added `shippingsettings.list` to `content` `v2` API
|
||||
- Added `shippingsettings.patch` to `content` `v2` API
|
||||
- Added `shippingsettings.update` to `content` `v2` API
|
||||
- Added `datastore` `v1` API
|
||||
|
||||
##### 12.2.0 - 08 August 2016
|
||||
|
||||
###### Backwards compatible changes
|
||||
- Added schema information found in discovery docs to generated documentation
|
||||
|
||||
##### 12.1.0 - 05 August 2016
|
||||
|
||||
###### Backwards compatible changes
|
||||
- #612 - Upgrade request dependency, fixes #608 by @bengourley
|
||||
- Added `managedconfigurationsfordevice.delete` to `androidenterprise` `v1` API
|
||||
- Added `managedconfigurationsfordevice.get` to `androidenterprise` `v1` API
|
||||
- Added `managedconfigurationsfordevice.list` to `androidenterprise` `v1` API
|
||||
- Added `managedconfigurationsfordevice.patch` to `androidenterprise` `v1` API
|
||||
- Added `managedconfigurationsfordevice.update` to `androidenterprise` `v1` API
|
||||
- Added `managedconfigurationsforuser.delete` to `androidenterprise` `v1` API
|
||||
- Added `managedconfigurationsforuser.get` to `androidenterprise` `v1` API
|
||||
- Added `managedconfigurationsforuser.list` to `androidenterprise` `v1` API
|
||||
- Added `managedconfigurationsforuser.patch` to `androidenterprise` `v1` API
|
||||
- Added `managedconfigurationsforuser.update` to `androidenterprise` `v1` API
|
||||
- Added `appengine` `v1` API
|
||||
- Added `clientSslPolicies.testIamPermissions` to `compute` `alpha` API
|
||||
- Added `instanceGroupManagers.patch` to `compute` `alpha` API
|
||||
- Added `instanceGroupManagers.update` to `compute` `alpha` API
|
||||
- Added `projects.disableXpnHost` to `compute` `alpha` API
|
||||
- Added `projects.disableXpnResource` to `compute` `alpha` API
|
||||
- Added `projects.enableXpnHost` to `compute` `alpha` API
|
||||
- Added `projects.enableXpnResource` to `compute` `alpha` API
|
||||
- Added `projects.getXpnHost` to `compute` `alpha` API
|
||||
- Added `projects.getXpnResources` to `compute` `alpha` API
|
||||
- Added `projects.listXpnHosts` to `compute` `alpha` API
|
||||
- Added `regionDiskTypes.get` to `compute` `alpha` API
|
||||
- Added `regionDiskTypes.list` to `compute` `alpha` API
|
||||
- Added `regionDisks.createSnapshot` to `compute` `alpha` API
|
||||
- Added `regionDisks.deletes` to `compute` `alpha` API
|
||||
- Added `regionDisks.get` to `compute` `alpha` API
|
||||
- Added `regionDisks.insert` to `compute` `alpha` API
|
||||
- Added `regionDisks.list` to `compute` `alpha` API
|
||||
- Added `regionDisks.setLabels` to `compute` `alpha` API
|
||||
- Added `regionDisks.testIamPermissions` to `compute` `alpha` API
|
||||
- Added `regionAutoscalers.delete` to `compute` `beta` API
|
||||
- Added `regionAutoscalers.get` to `compute` `beta` API
|
||||
- Added `regionAutoscalers.insert` to `compute` `beta` API
|
||||
- Added `regionAutoscalers.list` to `compute` `beta` API
|
||||
- Added `regionAutoscalers.patch` to `compute` `beta` API
|
||||
- Added `regionAutoscalers.testIamPermissions` to `compute` `beta` API
|
||||
- Added `regionAutoscalers.update` to `compute` `beta` API
|
||||
- Added `regionInstanceGroupManagers.abandonInstances` to `compute` `beta` API
|
||||
- Added `regionInstanceGroupManagers.delete` to `compute` `beta` API
|
||||
- Added `regionInstanceGroupManagers.deleteInstances` to `compute` `beta` API
|
||||
- Added `regionInstanceGroupManagers.get` to `compute` `beta` API
|
||||
- Added `regionInstanceGroupManagers.insert` to `compute` `beta` API
|
||||
- Added `regionInstanceGroupManagers.list` to `compute` `beta` API
|
||||
- Added `regionInstanceGroupManagers.listManagedInstances` to `compute` `beta` API
|
||||
- Added `regionInstanceGroupManagers.recreateInstances` to `compute` `beta` API
|
||||
- Added `regionInstanceGroupManagers.resize` to `compute` `beta` API
|
||||
- Added `regionInstanceGroupManagers.setAutoHealingPolicies` to `compute` `beta` API
|
||||
- Added `regionInstanceGroupManagers.setInstanceTemplate` to `compute` `beta` API
|
||||
- Added `regionInstanceGroupManagers.setTargetPools` to `compute` `beta` API
|
||||
- Added `regionInstanceGroupManagers.testIamPermissions` to `compute` `beta` API
|
||||
- Added `regionInstanceGroups.get` to `compute` `beta` API
|
||||
- Added `regionInstanceGroups.list` to `compute` `beta` API
|
||||
- Added `regionInstanceGroups.listInstances` to `compute` `beta` API
|
||||
- Added `regionInstanceGroups.setNamedPorts` to `compute` `beta` API
|
||||
- Added `regionInstanceGroups.testIamPermissions` to `compute` `beta` API
|
||||
- Added `projects.jobs.debug.getConfig` to `dataflow` `v1b3` API
|
||||
- Added `projects.jobs.debug.sendCapture` to `dataflow` `v1b3` API
|
||||
- Added `projects.templates.create` to `dataflow` `v1b3` API
|
||||
- Added `dfareporting` `v2.6` API
|
||||
- Added `servicecontrol` `v1` API
|
||||
- Added `servicemanagement` `v1` API
|
||||
- Added `servicemanagement` `v1` API
|
||||
- Added `spreadsheets.values.append` to `sheets` `v4` API
|
||||
|
||||
##### 12.0.0 - 21 July 2016
|
||||
|
||||
###### Breaking changes
|
||||
- Removed `accounts.filterSets.getBidMetrics` from `adexchangebuyer2` `v2beta1` API
|
||||
- Removed `accounts.filterSets.list` from `adexchangebuyer2` `v2beta1` API
|
||||
- Removed `accounts.filterSets.get` from `adexchangebuyer2` `v2beta1` API
|
||||
- Removed `accounts.filterSets.create` from `adexchangebuyer2` `v2beta1` API
|
||||
- Removed `accounts.filterSets.getImpressionMetrics` from `adexchangebuyer2` `v2beta1` API
|
||||
- Removed `accounts.filterSets.delete` from `adexchangebuyer2` `v2beta1` API
|
||||
- Removed `accounts.filterSets.responsesWithoutBids.list` from `adexchangebuyer2` `v2beta1` API
|
||||
- Removed `accounts.filterSets.responsesErrors.list` from `adexchangebuyer2` `v2beta1` API
|
||||
- Removed `accounts.filterSets.losingBids.list` from `adexchangebuyer2` `v2beta1` API
|
||||
- Removed `accounts.filterSets.filteredBids.list` from `adexchangebuyer2` `v2beta1` API
|
||||
- Removed `accounts.filterSets.filteredBids.creatives.list` from `adexchangebuyer2` `v2beta1` API
|
||||
- Removed `accounts.filterSets.filteredBids.creatives.details.list` from `adexchangebuyer2` `v2beta1` API
|
||||
- Removed `accounts.filterSets.filteredBids.details.list` from `adexchangebuyer2` `v2beta1` API
|
||||
- Removed `accounts.filterSets.filteredImpressions.list` from `adexchangebuyer2` `v2beta1` API
|
||||
- Removed `accounts.filterSets.filteredRequests.list` from `adexchangebuyer2` `v2beta1` API
|
||||
|
||||
###### Backwards compatible changes
|
||||
- Added `language` `v1beta1` API
|
||||
- Added `speech` `v1beta1` API
|
||||
- Added `apps.create` to `appengine` `v1beta4` API
|
||||
- Added `apps.locations.list` to `appengine` `v1beta4` API
|
||||
- Added `apps.locations.get` to `appengine` `v1beta4` API
|
||||
- Added `apps.create` to `appengine` `v1beta5` API
|
||||
- Added `apps.locations.list` to `appengine` `v1beta5` API
|
||||
- Added `apps.locations.get` to `appengine` `v1beta5` API
|
||||
- Added `projects.events.report` to `clouderrorreporting` `v1beta1` API
|
||||
- Added `surveys.delete` to `consumersurveys` `v2` API
|
||||
- Added `backupRuns.insert` to `sqladmin` `v1beta4` API
|
||||
|
||||
##### 11.0.0 - 11 July 2016
|
||||
|
||||
###### Breaking changes
|
||||
- Removed `appengine` `v1` API
|
||||
|
||||
###### Backwards compatible changes
|
||||
- Added `apps.modules.versions.instances.delete` to `appengine` `v1beta4` API
|
||||
- Added `apps.modules.versions.instances.get` to `appengine` `v1beta4` API
|
||||
- Added `apps.modules.versions.instances.debug` to `appengine` `v1beta4` API
|
||||
- Added `apps.modules.versions.instances.delete` to `appengine` `v1beta5` API
|
||||
- Added `apps.modules.versions.instances.get` to `appengine` `v1beta5` API
|
||||
- Added `apps.modules.versions.instances.debug` to `appengine` `v1beta5` API
|
||||
- Added `routers.preview` to `compute` `beta` API
|
||||
|
||||
##### 10.0.0 - 06 July 2016
|
||||
|
||||
###### Breaking changes
|
||||
- Removed `autoscaler` `v1beta2` API
|
||||
- Removed `coordinate` `v1` API
|
||||
- Removed `serviceregistry` `alpha` API
|
||||
|
||||
###### Backwards compatible changes
|
||||
- Added `cloudbuild` `v2` API
|
||||
- Added `accounts.filterSets.getBidMetrics` to `adexchangebuyer2` `v2beta1` API
|
||||
- Added `accounts.filterSets.list` to `adexchangebuyer2` `v2beta1` API
|
||||
- Added `accounts.filterSets.get` to `adexchangebuyer2` `v2beta1` API
|
||||
- Added `accounts.filterSets.create` to `adexchangebuyer2` `v2beta1` API
|
||||
- Added `accounts.filterSets.getImpressionMetrics` to `adexchangebuyer2` `v2beta1` API
|
||||
- Added `accounts.filterSets.delete` to `adexchangebuyer2` `v2beta1` API
|
||||
- Added `accounts.filterSets.responsesWithoutBids.list` to `adexchangebuyer2` `v2beta1` API
|
||||
- Added `accounts.filterSets.responsesErrors.list` to `adexchangebuyer2` `v2beta1` API
|
||||
- Added `accounts.filterSets.losingBids.list` to `adexchangebuyer2` `v2beta1` API
|
||||
- Added `accounts.filterSets.filteredBids.list` to `adexchangebuyer2` `v2beta1` API
|
||||
- Added `accounts.filterSets.filteredBids.creatives.list` to `adexchangebuyer2` `v2beta1` API
|
||||
- Added `accounts.filterSets.filteredBids.creatives.details.list` to `adexchangebuyer2` `v2beta1` API
|
||||
- Added `accounts.filterSets.filteredBids.details.list` to `adexchangebuyer2` `v2beta1` API
|
||||
- Added `accounts.filterSets.filteredImpressions.list` to `adexchangebuyer2` `v2beta1` API
|
||||
- Added `accounts.filterSets.filteredRequests.list` to `adexchangebuyer2` `v2beta1` API
|
||||
- Added `enterprises.acknowledgeNotificationSet` to `androidenterprise` `v1` API
|
||||
- Added `enterprises.completeSignup` to `androidenterprise` `v1` API
|
||||
- Added `enterprises.generateSignupUrl` to `androidenterprise` `v1` API
|
||||
- Added `enterprises.getServiceAccount` to `androidenterprise` `v1` API
|
||||
- Added `enterprises.pullNotificationSet` to `androidenterprise` `v1` API
|
||||
- Added `products.unapprove` to `androidenterprise` `v1` API
|
||||
- Added `serviceaccountkeys.delete` to `androidenterprise` `v1` API
|
||||
- Added `serviceaccountkeys.insert` to `androidenterprise` `v1` API
|
||||
- Added `serviceaccountkeys.list` to `androidenterprise` `v1` API
|
||||
- Added `users.delete` to `androidenterprise` `v1` API
|
||||
- Added `users.generateAuthenticationToken` to `androidenterprise` `v1` API
|
||||
- Added `users.insert` to `androidenterprise` `v1` API
|
||||
- Added `users.patch` to `androidenterprise` `v1` API
|
||||
- Added `users.update` to `androidenterprise` `v1` API
|
||||
- Added `users.settings.getAutoForwarding` to `gmail` `v1` API
|
||||
- Added `users.settings.getImap` to `gmail` `v1` API
|
||||
- Added `users.settings.getPop` to `gmail` `v1` API
|
||||
- Added `users.settings.getVacation` to `gmail` `v1` API
|
||||
- Added `users.settings.updateAutoForwarding` to `gmail` `v1` API
|
||||
- Added `users.settings.updateImap` to `gmail` `v1` API
|
||||
- Added `users.settings.updatePop` to `gmail` `v1` API
|
||||
- Added `users.settings.updateVacation` to `gmail` `v1` API
|
||||
- Added `users.settings.filters.create` to `gmail` `v1` API
|
||||
- Added `users.settings.filters.delete` to `gmail` `v1` API
|
||||
- Added `users.settings.filters.get` to `gmail` `v1` API
|
||||
- Added `users.settings.filters.list` to `gmail` `v1` API
|
||||
- Added `users.settings.forwardingAddresses.create` to `gmail` `v1` API
|
||||
- Added `users.settings.forwardingAddresses.delete` to `gmail` `v1` API
|
||||
- Added `users.settings.forwardingAddresses.get` to `gmail` `v1` API
|
||||
- Added `users.settings.forwardingAddresses.list` to `gmail` `v1` API
|
||||
- Added `users.settings.sendAs.create` to `gmail` `v1` API
|
||||
- Added `users.settings.sendAs.delete` to `gmail` `v1` API
|
||||
- Added `users.settings.sendAs.get` to `gmail` `v1` API
|
||||
- Added `users.settings.sendAs.list` to `gmail` `v1` API
|
||||
- Added `users.settings.sendAs.patch` to `gmail` `v1` API
|
||||
- Added `users.settings.sendAs.update` to `gmail` `v1` API
|
||||
- Added `users.settings.sendAs.verify` to `gmail` `v1` API
|
||||
|
||||
##### 9.0.0 - 20 June 2016
|
||||
|
||||
###### Breaking changes
|
||||
- Removed `regionalBackendServices.testIamPermissions` from `compute` `alpha` API
|
||||
|
||||
###### Backwards compatible changes
|
||||
- Added `appengine` `v1` API
|
||||
- Added `instances.setServiceAccount` to `compute` `alpha` API
|
||||
- Added `networks.switchToCustomMode` to `compute` `alpha` API
|
||||
- Added `regionBackendServices.delete` to `compute` `alpha` API
|
||||
- Added `regionBackendServices.get` to `compute` `alpha` API
|
||||
- Added `regionBackendServices.getHealth` to `compute` `alpha` API
|
||||
- Added `regionBackendServices.insert` to `compute` `alpha` API
|
||||
- Added `regionBackendServices.list` to `compute` `alpha` API
|
||||
- Added `regionBackendServices.patch` to `compute` `alpha` API
|
||||
- Added `regionBackendServices.testIamPermissions` to `compute` `alpha` API
|
||||
- Added `regionBackendServices.update` to `compute` `alpha` API
|
||||
- Added `subnetworks.expandIpCidrRange` to `compute` `alpha` API
|
||||
- Added `subnetworks.getIamPolicy` to `compute` `alpha` API
|
||||
- Added `subnetworks.setIamPolicy` to `compute` `alpha` API
|
||||
- Added `healthChecks.delete` to `compute` `beta` API
|
||||
- Added `healthChecks.get` to `compute` `beta` API
|
||||
- Added `healthChecks.insert` to `compute` `beta` API
|
||||
- Added `healthChecks.list` to `compute` `beta` API
|
||||
- Added `healthChecks.patch` to `compute` `beta` API
|
||||
- Added `healthChecks.testIamPermissions` to `compute` `beta` API
|
||||
- Added `healthChecks.update` to `compute` `beta` API
|
||||
- Added `targetSslProxies.delete` to `compute` `beta` API
|
||||
- Added `targetSslProxies.get` to `compute` `beta` API
|
||||
- Added `targetSslProxies.insert` to `compute` `beta` API
|
||||
- Added `targetSslProxies.list` to `compute` `beta` API
|
||||
- Added `targetSslProxies.setBackendService` to `compute` `beta` API
|
||||
- Added `targetSslProxies.setProxyHeader` to `compute` `beta` API
|
||||
- Added `targetSslProxies.setSslCertificates` to `compute` `beta` API
|
||||
- Added `targetSslProxies.testIamPermissions` to `compute` `beta` API
|
||||
- Added `urlMaps.invalidateCache` to `compute` `v1` API
|
||||
|
||||
##### 8.2.0 - 14 June 2016
|
||||
|
||||
###### Backwards compatible changes
|
||||
- Regenerate, now including code snippets
|
||||
|
||||
##### 8.1.0 - 08 June 2016
|
||||
|
||||
###### Backwards compatible changes
|
||||
- Update generator to pull in auto generated code samples and add them to the JSDoc comments.
|
||||
|
||||
##### 8.0.0 - 08 June 2016
|
||||
|
||||
###### Breaking changes
|
||||
- Removed `cloudbuild` `v1` API
|
||||
- Removed `cloudlatencytest` `v2` API
|
||||
- Removed `drive` `v1` API
|
||||
|
||||
###### Backwards compatible changes
|
||||
- Added `dns` `v2beta1` API
|
||||
- Added `routers.preview` to `compute` `alpha` API
|
||||
- Added `instances.startWithEncryptionKey` to `compute` `v1` API
|
||||
- Added `routers.aggregatedList` to `compute` `v1` API
|
||||
- Added `routers.delete` to `compute` `v1` API
|
||||
- Added `routers.get` to `compute` `v1` API
|
||||
- Added `routers.getRouterStatus` to `compute` `v1` API
|
||||
- Added `routers.insert` to `compute` `v1` API
|
||||
- Added `routers.list` to `compute` `v1` API
|
||||
- Added `routers.patch` to `compute` `v1` API
|
||||
- Added `routers.updated` to `compute` `v1` API
|
||||
- Added `mobileapppanels.get` to `consumersurveys` `v2` API
|
||||
- Added `mobileapppanels.list` to `consumersurveys` `v2` API
|
||||
- Added `mobileapppanels.update` to `consumersurveys` `v2` API
|
||||
|
||||
##### 7.1.0 - 24 May 2016
|
||||
|
||||
###### Backwards compatible changes
|
||||
- Added `acceleratedmobilepageurl` `v1` API
|
||||
- Added `reviews.get` to `androidpublisher` `v2` API
|
||||
- Added `reviews.list` to `androidpublisher` `v2` API
|
||||
- Added `reviews.reply` to `androidpublisher` `v2` API
|
||||
- Added `courses.courseWork.create` to `classroom` `v1` API
|
||||
- Added `courses.courseWork.get` to `classroom` `v1` API
|
||||
- Added `courses.courseWork.list` to `classroom` `v1` API
|
||||
- Added `courses.courseWork.studentSubmissions.get` to `classroom` `v1` API
|
||||
- Added `courses.courseWork.studentSubmissions.patch` to `classroom` `v1` API
|
||||
- Added `courses.courseWork.studentSubmissions.list` to `classroom` `v1` API
|
||||
- Added `courses.courseWork.studentSubmissions.turnIn` to `classroom` `v1` API
|
||||
- Added `courses.courseWork.studentSubmissions.reclaim` to `classroom` `v1` API
|
||||
- Added `courses.courseWork.studentSubmissions.return` to `classroom` `v1` API
|
||||
- Added `courses.courseWork.studentSubmissions.modifyAttachments` to `classroom` `v1` API
|
||||
- Added `projects.getAncestry` to `cloudresourcemanager` `v1beta1` API
|
||||
- Added `accounts.avails.get` to `playmoviespartner` `v1` API
|
||||
- Added `accounts.components.list` to `playmoviespartner` `v1` API
|
||||
- Added `accounts.components.type.get` to `playmoviespartner` `v1` API
|
||||
|
||||
##### 7.0.0 - 16 May 2016
|
||||
|
||||
###### Breaking changes
|
||||
- Removed `reseller` `v1sandbox` API
|
||||
|
||||
###### Backwards compatible changes
|
||||
- Added `namespaces.update` to `proximitybeacon` `v1beta1` API
|
||||
- Added `runtimeconfig` `v4` API
|
||||
- Added `sheets` `v1beta1` API
|
||||
|
||||
##### 6.1.0 - 11 May 2016
|
||||
|
||||
###### Backwards compatible changes
|
||||
- Added `dfareporting` `v2.5` API
|
||||
- Added ability to use authentication with `discoverAPI`
|
||||
|
||||
##### 6.0.0 - 10 May 2016
|
||||
|
||||
###### Breaking changes
|
||||
- Removed `media.upload` from `dataproc` `v1` API
|
||||
- Removed `media.download` from `dataproc` `v1` API
|
||||
- Removed `projects.clusters.setIamPolicy` from `dataproc` `v1beta` API
|
||||
- Removed `projects.clusters.getIamPolicy` from `dataproc` `v1beta` API
|
||||
- Removed `projects.clusters.testIamPermissions` from `dataproc` `v1beta` API
|
||||
- Removed `projects.jobs.setIamPolicy` from `dataproc` `v1beta` API
|
||||
- Removed `projects.jobs.getIamPolicy` from `dataproc` `v1beta` API
|
||||
- Removed `projects.jobs.testIamPermissions` from `dataproc` `v1beta` API
|
||||
- Removed `dfareporting` `v1` API
|
||||
- Removed `dfareporting` `v1.1` API
|
||||
- Removed `dfareporting` `v1.2` API
|
||||
- Removed `dfareporting` `v1.3` API
|
||||
- Removed `dfareporting` `v2.0` API
|
||||
- Removed `dfareporting` `v2.1` API
|
||||
- Removed `gan` `v1beta1` API
|
||||
- Removed `manager` `v1beta2` API
|
||||
|
||||
###### Backwards compatible changes
|
||||
- Added `products.list` to `androidenterprise` `v1` API
|
||||
- Added `projects.moveDisk` to `compute` `beta` API
|
||||
- Added `projects.moveInstance` to `compute` `beta` API
|
||||
- Added `v1beta1.getEidparams` to `proximitybeacon` `v1beta1` API
|
||||
- Added `compute` `alpha` API
|
||||
- Added `firebaserules` `v1` API
|
||||
- Added `safebrowsing` `v4` API
|
||||
|
||||
###### Other
|
||||
- Merged PR #571 by @georules - v2 does not have the create function, updating to v3
|
||||
|
||||
##### 5.2.0 - 21 April 2016
|
||||
|
||||
###### Backwards compatible changes
|
||||
- Added `instances.startWithEncryptionKey` to `compute` `beta` API
|
||||
- Added `images.getFromFamily` to `compute` `v1` API
|
||||
- #555 - Added "discover" and "discoverAPI" methods for discovering API(s) at runtime.
|
||||
- Closes #416
|
||||
|
||||
###### Other
|
||||
- #556 - Switched from JSHint to Semistandard
|
||||
- Improved JSDocs
|
||||
|
||||
##### 5.1.0 - 19 April 2016
|
||||
|
||||
###### Backwards compatible changes
|
||||
- Added `instances.list` to `appengine` `v1beta4` API
|
||||
- Added `instances.list` to `appengine` `v1beta5` API
|
||||
- Added `instanceGroupManagers.resizeAdvanced` to `compute` `beta` API
|
||||
|
||||
###### Other
|
||||
- Switched from coveralls to codecov
|
||||
|
||||
##### 5.0.0 - 11 April 2016
|
||||
|
||||
###### Breaking changes
|
||||
- Removed `deploymentmanager` `v2beta1` API
|
||||
- Removed `deploymentmanager` `v2beta2` API
|
||||
|
||||
###### Backwards compatible changes
|
||||
- Added `analyticsreporting` `v4` API
|
||||
- Added `consumersurveys` `v2` API
|
||||
- Added `datastore` `v1beta3` API
|
||||
- Added `dfareporting` `v2.5beta1` API
|
||||
- Removed `apis/index.js`, now the apis are loaded dynamically by `lib/googleapis.js`
|
||||
|
||||
##### 4.0.0 - 23 March 2016
|
||||
|
||||
###### Breaking changes
|
||||
- `adexchangebuyer` `v1.4`: Renamed required param `private_auction_id` to `privateAuctionId`
|
||||
|
||||
###### Backwards compatible changes
|
||||
- Added `clouderrorreporting` `v1beta1` API
|
||||
- `compute` `v1`: Added `resize` method
|
||||
|
||||
##### 3.1.0 - 16 March 2016
|
||||
|
||||
###### Backwards compatible changes
|
||||
- Added `monitoring` `v3` API
|
||||
|
||||
###### Other
|
||||
- #536 - Update README URLs based on HTTP redirects (by @ReadmeCritic)
|
||||
- #537 - [github template] minor edits to pull request template (by @ReadmeCritic)
|
||||
|
||||
##### 3.0.0 - 14 March 2016
|
||||
|
||||
###### Breaking changes
|
||||
- Removed `admin` `email_migration_v2` API
|
||||
- Removed `mapsengine` `exp2` API
|
||||
- Removed `mapsengine` `v1` API
|
||||
|
||||
###### Backwards compatible changes
|
||||
- Added `adexchangebuyer2` `v3beta1` API
|
||||
- Added `appengine` `v1beta5` API
|
||||
- Added `cloudbuild` `v1` API
|
||||
- Added `cloudresourcemanager` `v1` API
|
||||
- Added `compute` `beta` API
|
||||
- Added `dfareporting` `v2`.4 API
|
||||
- Added `genomics` `v1alpha2` API
|
||||
- Added `iam` `v1` API
|
||||
- Added `iam` `v1alpha1` API
|
||||
- Added `people` `v1` API
|
||||
- Added `serviceregister` `alpha` API
|
||||
- Added `toolresults` `v1beta3` API
|
||||
- Added `vision` `v1` API
|
||||
- #488 - Added support for generating an API from a discovery doc file
|
||||
- #533 - Add etag support with samples and test
|
||||
- `node scripts/generate` can now accept a variable list of discovery urls and/or paths to discovery doc files
|
||||
|
||||
###### Backwards compatible bug fixes
|
||||
- #463 - `--discovery-url` option works again.
|
||||
|
||||
###### Other
|
||||
- #527 - Added glass mirror api sample
|
||||
78
backend/node_modules/googleapis/CONTRIBUTORS
generated
vendored
Normal file
78
backend/node_modules/googleapis/CONTRIBUTORS
generated
vendored
Normal file
@@ -0,0 +1,78 @@
|
||||
# People who have agreed to one of the CLAs and can contribute patches. The
|
||||
# AUTHORS file lists the copyright holders; this file lists people. For example,
|
||||
# Google employees are listed here but not in AUTHORS, because Google holds the
|
||||
# copyright.
|
||||
#
|
||||
# https://developers.google.com/open-source/cla/individual
|
||||
# https://developers.google.com/open-source/cla/corporate
|
||||
#
|
||||
# Names should be added to this file as:
|
||||
# Name <email address>
|
||||
Ace Nassri <anassri@google.com>
|
||||
Adam Cohen <acohen@au.westfield.com>
|
||||
Ali Ijaz Sheikh <ofrobots@google.com>
|
||||
Anders D. Johnson <adjohnson916@gmail.com>
|
||||
Anson Chu <anson@uber.com>
|
||||
Anthony Pigeot <anthony.pigeot@gmail.com>
|
||||
Ben Gourley <bn@grly.me>
|
||||
Ben Reinhart <breinhart@groupon.com>
|
||||
Benton <benton.anderson@gmail.com>
|
||||
Brad Vogel <brad@Brads-MacBook-Pro-2.local>
|
||||
Brandon Philips <brandon@ifup.co>
|
||||
Bruneau <antonin.bruneau@gmail.com>
|
||||
Burcu Dogan <jbd@google.com>
|
||||
Caleb Case <calebcase@gmail.com>
|
||||
Chris Bolin <bolin.chris@gmail.com>
|
||||
Christian Carnero <christian@Christians-MacBook-Pro.local>
|
||||
Claudio Costa <cstcld91@gmail.com>
|
||||
Daniel Wang <shuiqing.d.wang@gmail.com>
|
||||
Dave Bailey <davebailey@google.com>
|
||||
Dick Choi <fluke8259@gmail.com>
|
||||
Eric Koleda <ekoleda@google.com>
|
||||
Farid Neshat <FaridN_SOAD@yahoo.com>
|
||||
Geoffery Miller <geo@codeslam.io>
|
||||
Greenkeeper <support@greenkeeper.io>
|
||||
Habib Rehman <HR@users.noreply.github.com>
|
||||
Hammy Havoc <hammy@splitanatom.com>
|
||||
Ionică Bizău <bizauionica@yahoo.com>
|
||||
Ivan <ivan@ivandigital.com>
|
||||
Jason Allor <jasonall@google.com>
|
||||
Jason Dobry <jason.dobry@gmail.com>
|
||||
Johan Euphrosine <proppy@google.com>
|
||||
Jonathan Bergknoff <jonathan.bergknoff@makerstudios.com>
|
||||
Joseph Page <joseph@juliedesk.com>
|
||||
Josh Senick <josh@joshsenick.com>
|
||||
Justin Beckwith <justin.beckwith@gmail.com>
|
||||
Larry Maccherone <Larry@Maccherone.com>
|
||||
Mark S. Everitt <mark.s.everitt@gmail.com>
|
||||
Matt Gaunt <mattgaunt@google.com>
|
||||
MidnightWonderer <midnight_w@gmx.com>
|
||||
Monsur Hossain <monsur@gmail.com>
|
||||
Morton Fox <github@qslw.com>
|
||||
OnaBai <ebartolome@onabai.com>
|
||||
Pieter Coucke <pieter.coucke@onthoo.com>
|
||||
Preston Holmes <preston@ptone.com>
|
||||
ReadmeCritic <frankensteinbot@gmail.com>
|
||||
Rich Parrish <richparrishx@gmail.com>
|
||||
Rob Hanlon <rob.hanlon@moz.com>
|
||||
Robert Rossmann <rr.rossmann@me.com>
|
||||
Ryan Seys <ryanseys@google.com>
|
||||
Sebastian Seilund <sebastian@seilund.com>
|
||||
Shay Erlichmen <erlichmen@gmail.com>
|
||||
Stephen Wan <stephen@stephenwan.net>
|
||||
Steven Bazyl <sqrrrl@gmail.com>
|
||||
Tamal Saha <tamal@google.com>
|
||||
Theodore Wilson <tedawilson@gmail.com>
|
||||
Thomas Coffee <tcoffee@google.com>
|
||||
Tim Emiola <temiola@google.com>
|
||||
Vikram Tiwari <Vikramtheone1@gmail.com>
|
||||
Vincent Scheib <scheib@gmail.com>
|
||||
bentona <benton.anderson@gmail.com>
|
||||
ccarnero <christian.carnero@gmail.com>
|
||||
eiriksm <eirik@morland.no>
|
||||
glennschler <gm.schlereth@gmail.com>
|
||||
jbergknoff <jbergknoff@users.noreply.github.com>
|
||||
proppy <proppy@aminche.com>
|
||||
rakyll <burcujdogan@gmail.com>
|
||||
sebay00 <sebay00@users.noreply.github.com>
|
||||
vladikoff <vlad.filippov@gmail.com>
|
||||
202
backend/node_modules/googleapis/COPYING
generated
vendored
Normal file
202
backend/node_modules/googleapis/COPYING
generated
vendored
Normal file
@@ -0,0 +1,202 @@
|
||||
|
||||
Apache License
|
||||
Version 2.0, January 2004
|
||||
http://www.apache.org/licenses/
|
||||
|
||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
||||
|
||||
1. Definitions.
|
||||
|
||||
"License" shall mean the terms and conditions for use, reproduction,
|
||||
and distribution as defined by Sections 1 through 9 of this document.
|
||||
|
||||
"Licensor" shall mean the copyright owner or entity authorized by
|
||||
the copyright owner that is granting the License.
|
||||
|
||||
"Legal Entity" shall mean the union of the acting entity and all
|
||||
other entities that control, are controlled by, or are under common
|
||||
control with that entity. For the purposes of this definition,
|
||||
"control" means (i) the power, direct or indirect, to cause the
|
||||
direction or management of such entity, whether by contract or
|
||||
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
||||
outstanding shares, or (iii) beneficial ownership of such entity.
|
||||
|
||||
"You" (or "Your") shall mean an individual or Legal Entity
|
||||
exercising permissions granted by this License.
|
||||
|
||||
"Source" form shall mean the preferred form for making modifications,
|
||||
including but not limited to software source code, documentation
|
||||
source, and configuration files.
|
||||
|
||||
"Object" form shall mean any form resulting from mechanical
|
||||
transformation or translation of a Source form, including but
|
||||
not limited to compiled object code, generated documentation,
|
||||
and conversions to other media types.
|
||||
|
||||
"Work" shall mean the work of authorship, whether in Source or
|
||||
Object form, made available under the License, as indicated by a
|
||||
copyright notice that is included in or attached to the work
|
||||
(an example is provided in the Appendix below).
|
||||
|
||||
"Derivative Works" shall mean any work, whether in Source or Object
|
||||
form, that is based on (or derived from) the Work and for which the
|
||||
editorial revisions, annotations, elaborations, or other modifications
|
||||
represent, as a whole, an original work of authorship. For the purposes
|
||||
of this License, Derivative Works shall not include works that remain
|
||||
separable from, or merely link (or bind by name) to the interfaces of,
|
||||
the Work and Derivative Works thereof.
|
||||
|
||||
"Contribution" shall mean any work of authorship, including
|
||||
the original version of the Work and any modifications or additions
|
||||
to that Work or Derivative Works thereof, that is intentionally
|
||||
submitted to Licensor for inclusion in the Work by the copyright owner
|
||||
or by an individual or Legal Entity authorized to submit on behalf of
|
||||
the copyright owner. For the purposes of this definition, "submitted"
|
||||
means any form of electronic, verbal, or written communication sent
|
||||
to the Licensor or its representatives, including but not limited to
|
||||
communication on electronic mailing lists, source code control systems,
|
||||
and issue tracking systems that are managed by, or on behalf of, the
|
||||
Licensor for the purpose of discussing and improving the Work, but
|
||||
excluding communication that is conspicuously marked or otherwise
|
||||
designated in writing by the copyright owner as "Not a Contribution."
|
||||
|
||||
"Contributor" shall mean Licensor and any individual or Legal Entity
|
||||
on behalf of whom a Contribution has been received by Licensor and
|
||||
subsequently incorporated within the Work.
|
||||
|
||||
2. Grant of Copyright License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
copyright license to reproduce, prepare Derivative Works of,
|
||||
publicly display, publicly perform, sublicense, and distribute the
|
||||
Work and such Derivative Works in Source or Object form.
|
||||
|
||||
3. Grant of Patent License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
(except as stated in this section) patent license to make, have made,
|
||||
use, offer to sell, sell, import, and otherwise transfer the Work,
|
||||
where such license applies only to those patent claims licensable
|
||||
by such Contributor that are necessarily infringed by their
|
||||
Contribution(s) alone or by combination of their Contribution(s)
|
||||
with the Work to which such Contribution(s) was submitted. If You
|
||||
institute patent litigation against any entity (including a
|
||||
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
||||
or a Contribution incorporated within the Work constitutes direct
|
||||
or contributory patent infringement, then any patent licenses
|
||||
granted to You under this License for that Work shall terminate
|
||||
as of the date such litigation is filed.
|
||||
|
||||
4. Redistribution. You may reproduce and distribute copies of the
|
||||
Work or Derivative Works thereof in any medium, with or without
|
||||
modifications, and in Source or Object form, provided that You
|
||||
meet the following conditions:
|
||||
|
||||
(a) You must give any other recipients of the Work or
|
||||
Derivative Works a copy of this License; and
|
||||
|
||||
(b) You must cause any modified files to carry prominent notices
|
||||
stating that You changed the files; and
|
||||
|
||||
(c) You must retain, in the Source form of any Derivative Works
|
||||
that You distribute, all copyright, patent, trademark, and
|
||||
attribution notices from the Source form of the Work,
|
||||
excluding those notices that do not pertain to any part of
|
||||
the Derivative Works; and
|
||||
|
||||
(d) If the Work includes a "NOTICE" text file as part of its
|
||||
distribution, then any Derivative Works that You distribute must
|
||||
include a readable copy of the attribution notices contained
|
||||
within such NOTICE file, excluding those notices that do not
|
||||
pertain to any part of the Derivative Works, in at least one
|
||||
of the following places: within a NOTICE text file distributed
|
||||
as part of the Derivative Works; within the Source form or
|
||||
documentation, if provided along with the Derivative Works; or,
|
||||
within a display generated by the Derivative Works, if and
|
||||
wherever such third-party notices normally appear. The contents
|
||||
of the NOTICE file are for informational purposes only and
|
||||
do not modify the License. You may add Your own attribution
|
||||
notices within Derivative Works that You distribute, alongside
|
||||
or as an addendum to the NOTICE text from the Work, provided
|
||||
that such additional attribution notices cannot be construed
|
||||
as modifying the License.
|
||||
|
||||
You may add Your own copyright statement to Your modifications and
|
||||
may provide additional or different license terms and conditions
|
||||
for use, reproduction, or distribution of Your modifications, or
|
||||
for any such Derivative Works as a whole, provided Your use,
|
||||
reproduction, and distribution of the Work otherwise complies with
|
||||
the conditions stated in this License.
|
||||
|
||||
5. Submission of Contributions. Unless You explicitly state otherwise,
|
||||
any Contribution intentionally submitted for inclusion in the Work
|
||||
by You to the Licensor shall be under the terms and conditions of
|
||||
this License, without any additional terms or conditions.
|
||||
Notwithstanding the above, nothing herein shall supersede or modify
|
||||
the terms of any separate license agreement you may have executed
|
||||
with Licensor regarding such Contributions.
|
||||
|
||||
6. Trademarks. This License does not grant permission to use the trade
|
||||
names, trademarks, service marks, or product names of the Licensor,
|
||||
except as required for reasonable and customary use in describing the
|
||||
origin of the Work and reproducing the content of the NOTICE file.
|
||||
|
||||
7. Disclaimer of Warranty. Unless required by applicable law or
|
||||
agreed to in writing, Licensor provides the Work (and each
|
||||
Contributor provides its Contributions) on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
||||
implied, including, without limitation, any warranties or conditions
|
||||
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
||||
PARTICULAR PURPOSE. You are solely responsible for determining the
|
||||
appropriateness of using or redistributing the Work and assume any
|
||||
risks associated with Your exercise of permissions under this License.
|
||||
|
||||
8. Limitation of Liability. In no event and under no legal theory,
|
||||
whether in tort (including negligence), contract, or otherwise,
|
||||
unless required by applicable law (such as deliberate and grossly
|
||||
negligent acts) or agreed to in writing, shall any Contributor be
|
||||
liable to You for damages, including any direct, indirect, special,
|
||||
incidental, or consequential damages of any character arising as a
|
||||
result of this License or out of the use or inability to use the
|
||||
Work (including but not limited to damages for loss of goodwill,
|
||||
work stoppage, computer failure or malfunction, or any and all
|
||||
other commercial damages or losses), even if such Contributor
|
||||
has been advised of the possibility of such damages.
|
||||
|
||||
9. Accepting Warranty or Additional Liability. While redistributing
|
||||
the Work or Derivative Works thereof, You may choose to offer,
|
||||
and charge a fee for, acceptance of support, warranty, indemnity,
|
||||
or other liability obligations and/or rights consistent with this
|
||||
License. However, in accepting such obligations, You may act only
|
||||
on Your own behalf and on Your sole responsibility, not on behalf
|
||||
of any other Contributor, and only if You agree to indemnify,
|
||||
defend, and hold each Contributor harmless for any liability
|
||||
incurred by, or claims asserted against, such Contributor by reason
|
||||
of your accepting any such warranty or additional liability.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
APPENDIX: How to apply the Apache License to your work.
|
||||
|
||||
To apply the Apache License to your work, attach the following
|
||||
boilerplate notice, with the fields enclosed by brackets "[]"
|
||||
replaced with your own identifying information. (Don't include
|
||||
the brackets!) The text should be enclosed in the appropriate
|
||||
comment syntax for the file format. We also recommend that a
|
||||
file or class name and description of purpose be included on the
|
||||
same "printed page" as the copyright notice for easier
|
||||
identification within third-party archives.
|
||||
|
||||
Copyright 2013 Google Inc.
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
209
backend/node_modules/googleapis/MIGRATING.md
generated
vendored
Normal file
209
backend/node_modules/googleapis/MIGRATING.md
generated
vendored
Normal file
@@ -0,0 +1,209 @@
|
||||
# Migrating from version `2.x` to `3.x`
|
||||
|
||||
The only breaking changes from `2.x` to `3.x` are listed in the [changelog](https://github.com/google/google-api-nodejs-client/blob/master/CHANGELOG.md#300---14-march-2016).
|
||||
|
||||
Everything else should continue to work.
|
||||
|
||||
# Migrating from version `1.x` to `2.x`
|
||||
|
||||
Code written against a `1.x` version of this library should continue to work with the `2.x`
|
||||
version. However, you may need to update any direct links in your code to
|
||||
ensure better forward compatibility.
|
||||
|
||||
In the 2.0 version of this library, the authentication and authorization code was moved
|
||||
to the new [google-nodejs-auth-library][googleauth], and a dependency was taken from
|
||||
this library to the new auth module. The list of files which were moved from this library to the
|
||||
new auth module are:
|
||||
|
||||
```
|
||||
lib/auth/authclient.js
|
||||
lib/auth/computeclient.js
|
||||
lib/auth/jwtclient.js
|
||||
lib/auth/loginticket.js
|
||||
lib/auth/oauth2client/js
|
||||
lib/pemverifier.js
|
||||
lib/transporters.js
|
||||
lib/utils.js
|
||||
```
|
||||
|
||||
In each case, a stub file has been left behind in this library, forwarding the link to the
|
||||
new version of the file in the [google-nodejs-auth-library][googleauth] module. If your code
|
||||
directly requires any of these files, you should add a dependency on the
|
||||
[google-nodejs-auth-library][googleauth]
|
||||
module, and update your requires statement to link to the version of the file within that library.
|
||||
|
||||
# Migrating from version `0.x.x` to `1.x`
|
||||
|
||||
Many changes and improvements have been made to the `google-api-nodejs-client`
|
||||
library to bring it to `1.x`. If you are starting a new project or haven't used
|
||||
this library before version `1.x`, see the [README][readme] to get started
|
||||
as you won't need to migrate anything.
|
||||
|
||||
## Discovery
|
||||
|
||||
In `0.x.x` the library would "discover" APIs on the fly, introducing
|
||||
additional network calls and instability. That has been fixed in `1.0`.
|
||||
|
||||
To get the `drive` client in `0.x.x` required this:
|
||||
|
||||
``` js
|
||||
var google = require('googleapis');
|
||||
google.discover('drive', 'v2').execute(function(err, client) {
|
||||
if(err) {
|
||||
// handle error
|
||||
} else {
|
||||
// client.drive.files.insert...
|
||||
}
|
||||
});
|
||||
```
|
||||
|
||||
In `1.0` the same thing can be accomplished like this:
|
||||
|
||||
``` js
|
||||
var google = require('googleapis');
|
||||
var drive = google.drive('v2'); // no network call! :)
|
||||
// drive.files.insert...
|
||||
```
|
||||
|
||||
All APIs are immediately accessible without requiring discovery.
|
||||
|
||||
## Moved `resource`
|
||||
|
||||
We moved `resource` object from the second parameter to the `resource` property
|
||||
in the first parameter object:
|
||||
|
||||
In `0.x.x`, a resource was specified this way:
|
||||
|
||||
``` js
|
||||
var resourceObj = { title: 'updated title' };
|
||||
client.drive.files.update({ fileId: 'abc' }, resourceObj).execute();
|
||||
```
|
||||
|
||||
New way in `1.0`:
|
||||
|
||||
``` js
|
||||
var resourceObj = { title: 'updated title' };
|
||||
drive.files.update({ fileId: 'abc', resource: resourceObj })
|
||||
```
|
||||
|
||||
## Removed `.execute` everywhere
|
||||
|
||||
Now callbacks are specified in the second parameter and `.execute` is always
|
||||
implied.
|
||||
|
||||
The `0.x.x` way to specify a callback:
|
||||
|
||||
``` js
|
||||
client.drive.files.get({ fileId: 'abc' }).execute(function(err, resp) {
|
||||
// handle err, resp
|
||||
});
|
||||
```
|
||||
|
||||
How to specify callback in `1.0` (in the second parameter):
|
||||
|
||||
``` js
|
||||
drive.files.get({ fileId: 'abc' }, function(err, resp) {
|
||||
// handle err, resp
|
||||
});
|
||||
```
|
||||
|
||||
**Note:** Prior to `1.0`, the library would not execute your requests until you
|
||||
specifically called `.execute`. Because this was removed in `1.0`, all requests
|
||||
now immediately execute, even if a callback is not specified.
|
||||
|
||||
## Media uploads
|
||||
|
||||
Media data is now specified in a `media` parameter instead of in `withMedia()`.
|
||||
|
||||
The old `0.x.x` way of uploading media:
|
||||
|
||||
``` js
|
||||
client.drive.files.insert({ title: 'Test', mimeType: 'text/plain' })
|
||||
.withMedia('text/plain', 'Hello World')
|
||||
.execute(callback);
|
||||
```
|
||||
|
||||
The fancy new way in `1.0` using `resource` and `media` parameters:
|
||||
|
||||
``` js
|
||||
drive.files.insert({
|
||||
resource: {
|
||||
title: 'Test',
|
||||
mimeType: 'text/plain'
|
||||
},
|
||||
media: {
|
||||
mimeType: 'text/plain',
|
||||
body: 'Hello World'
|
||||
}
|
||||
}, callback);
|
||||
```
|
||||
|
||||
**Bonus:** Media uploads now also support readable streams. Simply specify `media` as a
|
||||
readable stream like this:
|
||||
|
||||
``` js
|
||||
var fs = require('fs');
|
||||
|
||||
drive.files.insert({
|
||||
resource: {
|
||||
title: 'Test',
|
||||
mimeType: 'text/plain'
|
||||
},
|
||||
media: {
|
||||
mimeType: 'text/plain',
|
||||
body: fs.createReadStream('hello.txt')
|
||||
}
|
||||
}, callback);
|
||||
```
|
||||
|
||||
## Authentication
|
||||
|
||||
In `1.0` the ability to auth with `.withAuthClient()` and
|
||||
`.withApiKey(API_KEY)` is removed. Now just simply specify your `OAuth2`
|
||||
client or API key in the `auth` parameter of any API call.
|
||||
You can additionally specify it in global or service specific options to set
|
||||
it as a default. See [here][options] for more information.
|
||||
|
||||
In `0.x.x` an OAuth2 client was specified like this:
|
||||
|
||||
``` js
|
||||
var googleapis = require('googleapis');
|
||||
var OAuth2Client = googleapis.OAuth2Client;
|
||||
|
||||
var oauth2Client = new OAuth2Client(/* .. */);
|
||||
|
||||
// ... discover plus api and get client object here ...
|
||||
|
||||
client
|
||||
.plus.people.get({ userId: 'me' })
|
||||
.withAuthClient(oauth2Client)
|
||||
.execute(callback);
|
||||
```
|
||||
|
||||
In `1.0`, OAuth2Client is now available at `google.auth.OAuth2` and now you can
|
||||
just put your `oauth2Client` right in the `auth` parameter. It's as easy as:
|
||||
|
||||
``` js
|
||||
var google = require('googleapis');
|
||||
var OAuth2 = google.auth.OAuth2; // changed from google.OAuth2Client
|
||||
var plus = google.plus('v1');
|
||||
|
||||
var oauth2Client = new OAuth2(/* .. */); // initialized the same way
|
||||
plus.people.get({ userId: 'me', auth: oauth2Client }, callback);
|
||||
```
|
||||
|
||||
You can also specify an API key instead:
|
||||
|
||||
``` js
|
||||
plus.people.get({ userId: 'me', auth: 'api key here' }, callback);
|
||||
```
|
||||
|
||||
## Batch Requests
|
||||
|
||||
Batch requests were experimental before `1.0`. We have removed support for batch
|
||||
requests in `1.0` due to their unpopularity and instability.
|
||||
|
||||
[request]: https://github.com/mikeal/request
|
||||
[readme]: https://github.com/google/google-api-nodejs-client/tree/master/README.md
|
||||
[options]: https://github.com/google/google-api-nodejs-client/tree/master#options
|
||||
[googleauth]: https://github.com/google/google-auth-library-nodejs
|
||||
648
backend/node_modules/googleapis/README.md
generated
vendored
Normal file
648
backend/node_modules/googleapis/README.md
generated
vendored
Normal file
@@ -0,0 +1,648 @@
|
||||
<img src="https://avatars0.githubusercontent.com/u/1342004?v=3&s=96" alt="Google Inc. logo" title="Google" align="right" height="96" width="96"/>
|
||||
|
||||
# Google APIs Node.js Client
|
||||
|
||||
[![npm version][npmimg]][npm]
|
||||
[![Build Status][travisimg]][travis]
|
||||
[![Code Coverage][codecovimg]][codecov]
|
||||
[![Downloads][downloadsimg]][downloads]
|
||||
|
||||
[Node.js][node] client library for using Google APIs. Support for authorization and authentication with OAuth 2.0, API Keys and JWT (Service Tokens) is included.
|
||||
|
||||
## Library maintenance
|
||||
This client library is supported but in maintenance mode only. We are fixing necessary bugs and adding essential features to ensure this library continues to meet your needs for accessing Google APIs. Non-critical issues will be closed. Any issue may be reopened if it is causing ongoing problems.
|
||||
|
||||
## Table of Contents
|
||||
|
||||
* [Alpha](#alpha)
|
||||
* [Migrating to version `2.x` of this library](#migrating-to-version-2x-of-this-library)
|
||||
* [Supported APIs](#supported-apis)
|
||||
* [Questions/problems?](#questionsproblems)
|
||||
* [Working with Google Cloud Platform APIs?](#working-with-google-cloud-platform-apis)
|
||||
* [Installation](#installation)
|
||||
* [Usage](#usage)
|
||||
* [Create a service client](#create-a-service-client)
|
||||
* [Authorizing and authenticating](#authorizing-and-authenticating)
|
||||
* [OAuth2 client](#oauth2-client)
|
||||
* [Generating an authentication URL](#generating-an-authentication-url)
|
||||
* [Retrieve authorization code](#retrieve-authorization-code)
|
||||
* [Retrieve access token](#retrieve-access-token)
|
||||
* [Setting global or service-level auth](#setting-global-or-service-level-auth)
|
||||
* [Making authenticated requests](#making-authenticated-requests)
|
||||
* [Manually refreshing access token](#manually-refreshing-access-token)
|
||||
* [Using API keys](#using-api-keys)
|
||||
* [Using JWT (Service Tokens)](#using-jwt-service-tokens)
|
||||
* [Choosing the correct credential type automatically](#choosing-the-correct-credential-type-automatically)
|
||||
* [Specifying request body](#specifying-request-body)
|
||||
* [Media uploads](#media-uploads)
|
||||
* [Example: Upload a plain text file to Google Drive](#example-upload-a-plain-text-file-to-google-drive)
|
||||
* [Example: Upload an image to Google Drive from a readable stream](#example-upload-an-image-to-google-drive-from-a-readable-stream)
|
||||
* [Exposing request object](#exposing-request-object)
|
||||
* [Options](#options)
|
||||
* [Available options](#available-options)
|
||||
* [Global options](#global-options)
|
||||
* [Example: Specifying a default proxy and `auth` to be used for each request](#example-specifying-a-default-proxy-and-auth-to-be-used-for-each-request)
|
||||
* [Example: Specifying global request parameters](#example-specifying-global-request-parameters)
|
||||
* [Service-client options](#service-client-options)
|
||||
* [Example: Specifying a default `auth` option (API key or OAuth2 client)](#example-specifying-a-default-auth-option-api-key-or-oauth2-client)
|
||||
* [Example: Specifying default service client query parameters](#example-specifying-default-service-client-query-parameters)
|
||||
* [Request-level options](#request-level-options)
|
||||
* [License](#license)
|
||||
* [Contributing](#contributing)
|
||||
|
||||
### Alpha
|
||||
|
||||
This library is in Alpha. We will make an effort to support the library, but we reserve the right to make incompatible changes when necessary.
|
||||
|
||||
### Migrating to version `2.x` of this library
|
||||
|
||||
If you've used this library before `1.x`, see our [Migration Guide][migrating]
|
||||
to learn about migrating your code from `0.x.x` to `1.x`. It's pretty easy :)
|
||||
|
||||
If your code already works with a `1.x` version of this library, no work is required
|
||||
to move to `2.x`. However, note that return data of getToken has become an array. Furthermore, it is recommended that you update any direct links in your code,
|
||||
as explained in the [Migration Guide][migrating].
|
||||
|
||||
### Supported APIs
|
||||
|
||||
The full list of supported APIs can be found [here][supported-list]. The API endpoints are automatically generated, so if the API is not in the list, it is currently not supported by this API client library.
|
||||
|
||||
### Questions/problems?
|
||||
|
||||
* Ask your development related questions on [![Ask a question on Stackoverflow][overflowimg]][stackoverflow]
|
||||
* If you've found an bug/issue, please [file it on GitHub][bugs].
|
||||
|
||||
### Working with Google Cloud Platform APIs?
|
||||
|
||||
If you're working with [Google Cloud Platform][cloudplatform] APIs such as
|
||||
Datastore, Cloud Storage or Pub/Sub, consider using the [`google-cloud`][googlecloud] package, an
|
||||
idiomatic Node.js client for Google Cloud Platform services.
|
||||
|
||||
You can find the list of Google Cloud Platform APIs supported by google-cloud in the
|
||||
[google-cloud docs][googlecloudapis].
|
||||
|
||||
## Installation
|
||||
|
||||
This library is distributed on `npm`. In order to add it as a dependency,
|
||||
run the following command:
|
||||
|
||||
``` sh
|
||||
$ npm install googleapis --save
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
Example: Creates a URL Shortener client and retrieves the long url of the
|
||||
given short url:
|
||||
|
||||
``` js
|
||||
var google = require('googleapis');
|
||||
var urlshortener = google.urlshortener('v1');
|
||||
|
||||
var params = {
|
||||
shortUrl: 'http://goo.gl/xKbRu3'
|
||||
};
|
||||
|
||||
// get the long url of a shortened url
|
||||
urlshortener.url.get(params, function (err, response) {
|
||||
if (err) {
|
||||
console.log('Encountered error', err);
|
||||
} else {
|
||||
console.log('Long url is', response.longUrl);
|
||||
}
|
||||
});
|
||||
```
|
||||
|
||||
### Create a service client
|
||||
|
||||
To interact with the various Google APIs you need to create a service client
|
||||
for that particular API. These are immutable objects you use to make API calls.
|
||||
|
||||
Example: Creating a `urlshortener` client with version `v1` of the API.
|
||||
|
||||
``` js
|
||||
var google = require('googleapis');
|
||||
var urlshortener = google.urlshortener('v1');
|
||||
```
|
||||
|
||||
Supported APIs are listed on the [Google APIs Explorer][apiexplorer].
|
||||
|
||||
### Authorizing and authenticating
|
||||
|
||||
#### OAuth2 client
|
||||
|
||||
This client comes with an [OAuth2][oauth] client that allows you to retrieve an
|
||||
access token and refreshes the token and retry the request seamlessly if you
|
||||
also provide an `expiry_date` and the token is expired. The basics of Google's
|
||||
OAuth2 implementation is explained on [Google Authorization and Authentication documentation][authdocs].
|
||||
|
||||
In the following examples, you may need a `CLIENT_ID`, `CLIENT_SECRET` and
|
||||
`REDIRECT_URL`. You can find these pieces of information by going to the
|
||||
[Developer Console][devconsole], clicking your project --> APIs & auth --> credentials.
|
||||
|
||||
For more information about OAuth2 and how it works, [see here][oauth].
|
||||
|
||||
A complete sample application that authorizes and authenticates with the OAuth2
|
||||
client is available at [`samples/oauth2.js`][oauthexample].
|
||||
|
||||
##### Generating an authentication URL
|
||||
|
||||
To ask for permissions from a user to retrieve an access token, you
|
||||
redirect them to a consent page. To create a consent page URL:
|
||||
|
||||
``` js
|
||||
var google = require('googleapis');
|
||||
var OAuth2 = google.auth.OAuth2;
|
||||
|
||||
var oauth2Client = new OAuth2(
|
||||
YOUR_CLIENT_ID,
|
||||
YOUR_CLIENT_SECRET,
|
||||
YOUR_REDIRECT_URL
|
||||
);
|
||||
|
||||
// generate a url that asks permissions for Google+ and Google Calendar scopes
|
||||
var scopes = [
|
||||
'https://www.googleapis.com/auth/plus.me',
|
||||
'https://www.googleapis.com/auth/calendar'
|
||||
];
|
||||
|
||||
var url = oauth2Client.generateAuthUrl({
|
||||
// 'online' (default) or 'offline' (gets refresh_token)
|
||||
access_type: 'offline',
|
||||
|
||||
// If you only need one scope you can pass it as a string
|
||||
scope: scopes,
|
||||
|
||||
// Optional property that passes state parameters to redirect URI
|
||||
// state: { foo: 'bar' }
|
||||
});
|
||||
```
|
||||
##### IMPORTANT NOTE
|
||||
`refresh_token` is only returned on the first authorization.
|
||||
More details [here](https://github.com/google/google-api-nodejs-client/issues/750#issuecomment-304521450)
|
||||
|
||||
##### Retrieve authorization code
|
||||
|
||||
Once a user has given permissions on the consent page, Google will redirect
|
||||
the page to the redirect URL you have provided with a code query parameter.
|
||||
|
||||
GET /oauthcallback?code={authorizationCode}
|
||||
|
||||
##### Retrieve access token
|
||||
|
||||
With the code returned, you can ask for an access token as shown below:
|
||||
|
||||
``` js
|
||||
oauth2Client.getToken(code, function (err, tokens) {
|
||||
// Now tokens contains an access_token and an optional refresh_token. Save them.
|
||||
if (!err) {
|
||||
oauth2Client.setCredentials(tokens);
|
||||
}
|
||||
});
|
||||
```
|
||||
|
||||
##### Setting global or service-level auth
|
||||
|
||||
You can set the `auth` as a global or service-level option so you don't need to
|
||||
specify it every request.
|
||||
|
||||
Example: Setting a global `auth` option.
|
||||
|
||||
``` js
|
||||
var google = require('googleapis');
|
||||
var OAuth2 = google.auth.OAuth2;
|
||||
var oauth2Client = new OAuth2(
|
||||
YOUR_CLIENT_ID,
|
||||
YOUR_CLIENT_SECRET,
|
||||
YOUR_REDIRECT_URL
|
||||
);
|
||||
|
||||
// set auth as a global default
|
||||
google.options({
|
||||
auth: oauth2Client
|
||||
});
|
||||
```
|
||||
|
||||
Example: Setting a service-level `auth` option.
|
||||
|
||||
``` js
|
||||
var google = require('googleapis');
|
||||
var OAuth2 = google.auth.OAuth2;
|
||||
var oauth2Client = new OAuth2(
|
||||
YOUR_CLIENT_ID,
|
||||
YOUR_CLIENT_SECRET,
|
||||
YOUR_REDIRECT_URL
|
||||
);
|
||||
|
||||
var drive = google.drive({
|
||||
version: 'v2',
|
||||
auth: oauth2Client
|
||||
});
|
||||
```
|
||||
|
||||
See the [Options section][options] for more information.
|
||||
|
||||
##### Making authenticated requests
|
||||
|
||||
You can start using OAuth2 to authorize and authenticate your
|
||||
requests to Google APIs with the retrieved tokens. If you provide a
|
||||
`refresh_token` and `expiry_date` (milliseconds since the Unix Epoch) and the
|
||||
`access_token` has expired, the `access_token` will be automatically refreshed
|
||||
and the request is replayed (with the except of requests with a media body, as
|
||||
we cannot reliably restart your media stream). Set `expiry_date` to `true` to
|
||||
force a refresh.
|
||||
|
||||
The following sample retrieves Google+ profile of the authenticated user.
|
||||
|
||||
``` js
|
||||
var google = require('googleapis');
|
||||
var plus = google.plus('v1');
|
||||
var OAuth2 = google.auth.OAuth2;
|
||||
var oauth2Client = new OAuth2(
|
||||
YOUR_CLIENT_ID,
|
||||
YOUR_CLIENT_SECRET,
|
||||
YOUR_REDIRECT_URL
|
||||
);
|
||||
|
||||
// Retrieve tokens via token exchange explained above or set them:
|
||||
oauth2Client.setCredentials({
|
||||
access_token: 'ACCESS TOKEN HERE',
|
||||
refresh_token: 'REFRESH TOKEN HERE'
|
||||
// Optional, provide an expiry_date (milliseconds since the Unix Epoch)
|
||||
// expiry_date: (new Date()).getTime() + (1000 * 60 * 60 * 24 * 7)
|
||||
});
|
||||
|
||||
plus.people.get({
|
||||
userId: 'me',
|
||||
auth: oauth2Client
|
||||
}, function (err, response) {
|
||||
// handle err and response
|
||||
});
|
||||
```
|
||||
|
||||
##### Manually refreshing access token
|
||||
|
||||
If you need to manually refresh the `access_token` associated with your OAuth2
|
||||
client, make sure you have a `refresh_token` set in your credentials first and
|
||||
then call:
|
||||
|
||||
``` js
|
||||
oauth2Client.refreshAccessToken(function(err, tokens) {
|
||||
// your access_token is now refreshed and stored in oauth2Client
|
||||
// store these new tokens in a safe place (e.g. database)
|
||||
});
|
||||
```
|
||||
|
||||
#### Using API keys
|
||||
|
||||
You may need to send an API key with the request you are going to make.
|
||||
The following uses an API key to make a request to the Google+ API service to
|
||||
retrieve a person's profile given a userId:
|
||||
|
||||
``` js
|
||||
var google = require('googleapis');
|
||||
var plus = google.plus('v1');
|
||||
|
||||
var API_KEY = 'ABC123'; // specify your API key here
|
||||
|
||||
plus.people.get({
|
||||
auth: API_KEY,
|
||||
userId: '+google'
|
||||
}, function (err, user) {
|
||||
console.log('Result: ' + (err ? err.message : user.displayName));
|
||||
});
|
||||
```
|
||||
|
||||
Alternatively, you can specify the `key` parameter and it will get used:
|
||||
|
||||
``` js
|
||||
plus.people.get({
|
||||
key: API_KEY,
|
||||
userId: '+google'
|
||||
}, function (err, user) {
|
||||
console.log('Result: ' + (err ? err.message : user.displayName));
|
||||
});
|
||||
```
|
||||
|
||||
To learn more about API keys, please see the [documentation][usingkeys].
|
||||
|
||||
#### Using JWT (Service Tokens)
|
||||
|
||||
The Google Developers Console provides `.json` file that you can use to configure a JWT auth client and authenticate your requests, for example when using a service account.
|
||||
|
||||
``` js
|
||||
var key = require('/path/to/key.json');
|
||||
var jwtClient = new google.auth.JWT(
|
||||
key.client_email,
|
||||
null,
|
||||
key.private_key,
|
||||
['https://www.googleapis.com/auth/plus.me', 'https://www.googleapis.com/auth/calendar'], // an array of auth scopes
|
||||
null
|
||||
);
|
||||
|
||||
jwtClient.authorize(function (err, tokens) {
|
||||
if (err) {
|
||||
console.log(err);
|
||||
return;
|
||||
}
|
||||
|
||||
// Make an authorized request to list Drive files.
|
||||
drive.files.list({
|
||||
auth: jwtClient
|
||||
}, function (err, resp) {
|
||||
// handle err and response
|
||||
});
|
||||
});
|
||||
```
|
||||
|
||||
The parameters for the JWT auth client including how to use it with a `.pem`
|
||||
file are explained in [samples/jwt.js](samples/jwt.js).
|
||||
|
||||
#### Choosing the correct credential type automatically
|
||||
|
||||
Rather than manually creating an OAuth2 client, JWT client, or Compute client,
|
||||
the auth library can create the correct credential type for you, depending upon
|
||||
the environment your code is running under.
|
||||
|
||||
For example, a JWT auth client will be created when your code is running on your
|
||||
local developer machine, and a Compute client will be created when the same code
|
||||
is running on a configured instance of Google Compute Engine.
|
||||
|
||||
The code below shows how to retrieve a default credential type, depending upon
|
||||
the runtime environment. The createScopedRequired must be called to determine
|
||||
when you need to pass in the scopes manually, and when they have been set for
|
||||
you automatically based on the configured runtime environment.
|
||||
|
||||
```js
|
||||
// This method looks for the GCLOUD_PROJECT and GOOGLE_APPLICATION_CREDENTIALS
|
||||
// environment variables.
|
||||
google.auth.getApplicationDefault(function (err, authClient, projectId) {
|
||||
if (err) {
|
||||
throw err;
|
||||
}
|
||||
|
||||
// The createScopedRequired method returns true when running on GAE or a local developer
|
||||
// machine. In that case, the desired scopes must be passed in manually. When the code is
|
||||
// running in GCE or a Managed VM, the scopes are pulled from the GCE metadata server.
|
||||
// See https://cloud.google.com/compute/docs/authentication for more information.
|
||||
if (authClient.createScopedRequired && authClient.createScopedRequired()) {
|
||||
// Scopes can be specified either as an array or as a single, space-delimited string.
|
||||
authClient = authClient.createScoped([
|
||||
'https://www.googleapis.com/auth/compute'
|
||||
]);
|
||||
}
|
||||
|
||||
// Fetch the list of GCE zones within a project.
|
||||
// NOTE: You must fill in your valid project ID before running this sample!
|
||||
var compute = google.compute({
|
||||
version: 'v1',
|
||||
auth: authClient
|
||||
});
|
||||
var projectId = 'YOUR_PROJECT_ID';
|
||||
|
||||
compute.zones.list({
|
||||
project: projectId,
|
||||
auth: authClient
|
||||
}, function (err, result) {
|
||||
console.log(err, result);
|
||||
});
|
||||
});
|
||||
```
|
||||
|
||||
### Specifying request body
|
||||
|
||||
The body of the request is specified in the `resource` parameter object of the
|
||||
request. The resource/body is specified as a JavaScript object with key/value
|
||||
pairs. See the example in the next section below for an example on how it is
|
||||
specified.
|
||||
|
||||
### Media uploads
|
||||
|
||||
This client supports multipart media uploads. The resource parameters are
|
||||
specified in the `resource` parameter object, and the media itself is
|
||||
specified in the `media.body` parameter with mime-type specified in `media.mimeType`.
|
||||
|
||||
##### Example: Upload a plain text file to Google Drive
|
||||
|
||||
This example uploads a plain text file to Google Drive with the title "Test" and
|
||||
contents "Hello World".
|
||||
|
||||
``` js
|
||||
var drive = google.drive({ version: 'v3', auth: oauth2Client });
|
||||
|
||||
drive.files.create({
|
||||
resource: {
|
||||
name: 'Test',
|
||||
mimeType: 'text/plain'
|
||||
},
|
||||
media: {
|
||||
mimeType: 'text/plain',
|
||||
body: 'Hello World'
|
||||
}
|
||||
}, callback);
|
||||
```
|
||||
|
||||
You can also upload media by specifying `media.body` as a [Readable stream][stream].
|
||||
This can allow you to upload very large files that cannot fit into memory.
|
||||
|
||||
Note: Your readable stream may be [unstable][stability]. Use at your own risk.
|
||||
|
||||
##### Example: Upload an image to Google Drive from a readable stream
|
||||
|
||||
```js
|
||||
var fs = require('fs');
|
||||
var drive = google.drive({ version: 'v3', auth: oauth2Client });
|
||||
|
||||
drive.files.create({
|
||||
resource: {
|
||||
name: 'testimage.png',
|
||||
mimeType: 'image/png'
|
||||
},
|
||||
media: {
|
||||
mimeType: 'image/png',
|
||||
body: fs.createReadStream('awesome.png') // read streams are awesome!
|
||||
}
|
||||
}, callback);
|
||||
```
|
||||
|
||||
For more examples of creation and modification requests with media attachments,
|
||||
take a look at the `samples/mediaupload.js` sample.
|
||||
|
||||
### Exposing request object
|
||||
|
||||
Every request to the API returns a [`request`][request] object, allowing you to
|
||||
track the request's progress or general information about the request.
|
||||
|
||||
```js
|
||||
var req = drive.files.create(/* ... */);
|
||||
console.log(req.uri.href); // print out the request's URL.
|
||||
```
|
||||
|
||||
### Options
|
||||
|
||||
For more fine-tuned control over how your API calls are made,
|
||||
we provide you with the ability to specify additional options that can
|
||||
be applied directly to the [`mikeal/request`][request] object used in
|
||||
this library to make network calls to the API.
|
||||
|
||||
You may specify additional options either in the global `google` object or on a
|
||||
service client basis.
|
||||
|
||||
#### Available options
|
||||
|
||||
The options you specify are attached to the `request` object so whatever
|
||||
`request` supports, this library supports. You may also specify global or per-service request parameters that will be attached to all API calls you make.
|
||||
|
||||
A full list of supported options can be [found here][requestopts].
|
||||
|
||||
#### Global options
|
||||
|
||||
##### Example: Specifying a default proxy and `auth` to be used for each request
|
||||
|
||||
```js
|
||||
var google = require('googleapis');
|
||||
google.options({ proxy: 'http://proxy.example.com', auth: auth });
|
||||
|
||||
// All requests made with this object will use these settings unless overridden.
|
||||
```
|
||||
|
||||
##### Example: Specifying global request parameters
|
||||
|
||||
```js
|
||||
var google = require('googleapis');
|
||||
google.options({ params: { quotaUser: 'user123@example.com' } });
|
||||
|
||||
// All requests from all services will contain the above query parameter
|
||||
// unless overridden either in a service client or in individual API calls.
|
||||
```
|
||||
|
||||
#### Service-client options
|
||||
|
||||
You can also specify options when creating a service client.
|
||||
|
||||
##### Example: Specifying a default `auth` option (API key or OAuth2 client)
|
||||
|
||||
```js
|
||||
var auth = 'API KEY'; // or you could use oauth2Client
|
||||
var urlshortener = google.urlshortener({ version: 'v1', auth: auth });
|
||||
|
||||
// All requests made with this object will use the specified auth.
|
||||
```
|
||||
|
||||
By doing this, every API call made with this service client will use `'API KEY'`
|
||||
to authenticate.
|
||||
|
||||
**Note:** Created clients are **immutable** so you must create a new one if you
|
||||
want to specify different options.
|
||||
|
||||
##### Example: Specifying default service client query parameters
|
||||
|
||||
```js
|
||||
var urlshortener = google.urlshortener({
|
||||
version: 'v1',
|
||||
params: { quotaUser: 'user123@example.com' }
|
||||
});
|
||||
// All requests made with this service client will contain the
|
||||
// quotaUser query parameter unless overridden in individual API calls.
|
||||
|
||||
// Calls with this drive client will NOT contain the quotaUser query parameter.
|
||||
var drive = google.drive('v2');
|
||||
```
|
||||
|
||||
#### Request-level options
|
||||
|
||||
You can specify an `auth` object to be used per request. Each request also
|
||||
inherits the options specified at the service level and global level.
|
||||
|
||||
For example:
|
||||
|
||||
```js
|
||||
var google = require('googleapis');
|
||||
var bigquery = google.bigquery('v2');
|
||||
|
||||
// This method looks for the GCLOUD_PROJECT and GOOGLE_APPLICATION_CREDENTIALS
|
||||
// environment variables.
|
||||
google.auth.getApplicationDefault(function (err, authClient, projectId) {
|
||||
if (err) {
|
||||
console.log('Authentication failed because of ', err);
|
||||
return;
|
||||
}
|
||||
if (authClient.createScopedRequired && authClient.createScopedRequired()) {
|
||||
var scopes = ['https://www.googleapis.com/auth/cloud-platform'];
|
||||
authClient = authClient.createScoped(scopes);
|
||||
}
|
||||
|
||||
var request = {
|
||||
projectId: projectId,
|
||||
datasetId: '<YOUR_DATASET_ID>',
|
||||
|
||||
// This is a "request-level" option
|
||||
auth: authClient
|
||||
};
|
||||
|
||||
bigquery.datasets.delete(request, function (err, result) {
|
||||
if (err) {
|
||||
console.log(err);
|
||||
} else {
|
||||
console.log(result);
|
||||
}
|
||||
});
|
||||
});
|
||||
```
|
||||
|
||||
You can also override *request* options per request, such as `url`, `method`,
|
||||
and `encoding`.
|
||||
|
||||
For example:
|
||||
|
||||
```js
|
||||
drive.files.export({
|
||||
fileId: 'asxKJod9s79', // A Google Doc
|
||||
mimeType: 'application/pdf'
|
||||
}, {
|
||||
encoding: null // Make sure we get the binary data
|
||||
}, function (err, buffer) {
|
||||
// ...
|
||||
});
|
||||
```
|
||||
|
||||
## License
|
||||
|
||||
This library is licensed under Apache 2.0. Full license text is
|
||||
available in [COPYING][copying].
|
||||
|
||||
## Contributing
|
||||
|
||||
See [CONTRIBUTING][contributing].
|
||||
|
||||
[npmimg]: https://img.shields.io/npm/v/googleapis.svg
|
||||
[npm]: https://www.npmjs.org/package/googleapis
|
||||
[travisimg]: https://api.travis-ci.org/google/google-api-nodejs-client.svg
|
||||
[supported-list]: https://developers.google.com/apis-explorer/
|
||||
[bugs]: https://github.com/google/google-api-nodejs-client/issues
|
||||
[node]: http://nodejs.org/
|
||||
[travis]: https://travis-ci.org/google/google-api-nodejs-client
|
||||
[stackoverflow]: http://stackoverflow.com/questions/tagged/google-api-nodejs-client
|
||||
[apiexplorer]: https://developers.google.com/apis-explorer
|
||||
[urlshort]: https://developers.google.com/url-shortener/
|
||||
[usingkeys]: https://support.google.com/cloud/answer/6158862?hl=en
|
||||
[contributing]: https://github.com/google/google-api-nodejs-client/blob/master/.github/CONTRIBUTING.md
|
||||
[copying]: https://github.com/google/google-api-nodejs-client/tree/master/COPYING
|
||||
[authdocs]: https://developers.google.com/identity/protocols/OpenIDConnect
|
||||
[request]: https://github.com/request/request
|
||||
[requestopts]: https://github.com/request/request#requestoptions-callback
|
||||
[stream]: http://nodejs.org/api/stream.html#stream_class_stream_readable
|
||||
[migrating]: https://github.com/google/google-api-nodejs-client/tree/master/MIGRATING.md
|
||||
[stability]: http://nodejs.org/api/stream.html#stream_stream
|
||||
[overflowimg]: https://googledrive.com/host/0ByfSjdPVs9MZbkhjeUhMYzRTeEE/stackoveflow-tag.png
|
||||
[devconsole]: https://console.developer.google.com
|
||||
[oauth]: https://developers.google.com/identity/protocols/OAuth2
|
||||
[oauthexample]: https://github.com/google/google-api-nodejs-client/tree/master/samples/oauth2.js
|
||||
[options]: https://github.com/google/google-api-nodejs-client/tree/master#options
|
||||
[googlecloud]: https://github.com/GoogleCloudPlatform/google-cloud-node
|
||||
[googlecloudapis]: https://googlecloudplatform.github.io/google-cloud-node/#/docs/google-cloud
|
||||
[cloudplatform]: https://cloud.google.com/docs/
|
||||
[codecovimg]: https://codecov.io/github/google/google-api-nodejs-client/coverage.svg?branch=master
|
||||
[codecov]: https://codecov.io/github/google/google-api-nodejs-client?branch=master
|
||||
[downloadsimg]: https://img.shields.io/npm/dm/googleapis.svg
|
||||
[downloads]: https://nodei.co/npm/googleapis/
|
||||
75
backend/node_modules/googleapis/apis/acceleratedmobilepageurl/v1.js
generated
vendored
Normal file
75
backend/node_modules/googleapis/apis/acceleratedmobilepageurl/v1.js
generated
vendored
Normal file
@@ -0,0 +1,75 @@
|
||||
"use strict";
|
||||
/**
|
||||
* Copyright 2015 Google Inc. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
/* jshint maxlen: false */
|
||||
const apirequest_1 = require("../../lib/apirequest");
|
||||
/**
|
||||
* Accelerated Mobile Pages (AMP) URL API
|
||||
*
|
||||
* Retrieves the list of AMP URLs (and equivalent AMP Cache URLs) for a given list of public URL(s).
|
||||
|
||||
*
|
||||
* @example
|
||||
* const google = require('googleapis');
|
||||
* const acceleratedmobilepageurl = google.acceleratedmobilepageurl('v1');
|
||||
*
|
||||
* @namespace acceleratedmobilepageurl
|
||||
* @type {Function}
|
||||
* @version v1
|
||||
* @variation v1
|
||||
* @param {object=} options Options for Acceleratedmobilepageurl
|
||||
*/
|
||||
function Acceleratedmobilepageurl(options) {
|
||||
const self = this;
|
||||
self._options = options || {};
|
||||
self.ampUrls = {
|
||||
/**
|
||||
* acceleratedmobilepageurl.ampUrls.batchGet
|
||||
*
|
||||
* @desc Returns AMP URL(s) and equivalent [AMP Cache URL(s)](/amp/cache/overview#amp-cache-url-format).
|
||||
*
|
||||
* @alias acceleratedmobilepageurl.ampUrls.batchGet
|
||||
* @memberOf! acceleratedmobilepageurl(v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {acceleratedmobilepageurl(v1).BatchGetAmpUrlsRequest} params.resource Request body data
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
batchGet: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://acceleratedmobilepageurl.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/ampUrls:batchGet').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
};
|
||||
}
|
||||
module.exports = Acceleratedmobilepageurl;
|
||||
//# sourceMappingURL=v1.js.map
|
||||
1
backend/node_modules/googleapis/apis/acceleratedmobilepageurl/v1.js.map
generated
vendored
Normal file
1
backend/node_modules/googleapis/apis/acceleratedmobilepageurl/v1.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"v1.js","sourceRoot":"","sources":["v1.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,0BAA0B;AAE1B,qDAAoD;AAEpD;;;;;;;;;;;;;;;GAeG;AACH,kCAAkC,OAAO;IACvC,MAAM,IAAI,GAAG,IAAI,CAAC;IAClB,IAAI,CAAC,QAAQ,GAAG,OAAO,IAAI,EAAE,CAAC;IAE9B,IAAI,CAAC,OAAO,GAAG;QAEb;;;;;;;;;;;;;WAaG;QACH,QAAQ,EAAE,UAAU,MAAM,EAAE,OAAO,EAAE,QAAQ;YAC3C,EAAE,CAAC,CAAC,OAAO,OAAO,KAAK,UAAU,CAAC,CAAC,CAAC;gBAClC,QAAQ,GAAG,OAAO,CAAC;gBACnB,OAAO,GAAG,EAAE,CAAC;YACf,CAAC;YACD,OAAO,IAAI,CAAC,OAAO,GAAG,EAAE,CAAC,CAAC;YAE1B,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,IAAI,kDAAkD,CAAC;YAEtF,MAAM,UAAU,GAAG;gBACjB,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC;oBACrB,GAAG,EAAE,CAAC,OAAO,GAAG,sBAAsB,CAAC,CAAC,OAAO,CAAC,cAAc,EAAE,IAAI,CAAC;oBACrE,MAAM,EAAE,MAAM;iBACf,EAAE,OAAO,CAAC;gBACX,MAAM,EAAE,MAAM;gBACd,cAAc,EAAE,EAAE;gBAClB,UAAU,EAAE,EAAE;gBACd,OAAO,EAAE,IAAI;aACd,CAAC;YAEF,MAAM,CAAC,oBAAgB,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;QAChD,CAAC;KAEF,CAAC;AACJ,CAAC;AAyCD,iBAAS,wBAAwB,CAAC"}
|
||||
122
backend/node_modules/googleapis/apis/acceleratedmobilepageurl/v1.ts
generated
vendored
Normal file
122
backend/node_modules/googleapis/apis/acceleratedmobilepageurl/v1.ts
generated
vendored
Normal file
@@ -0,0 +1,122 @@
|
||||
/**
|
||||
* Copyright 2015 Google Inc. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/* jshint maxlen: false */
|
||||
|
||||
import createAPIRequest from '../../lib/apirequest';
|
||||
|
||||
/**
|
||||
* Accelerated Mobile Pages (AMP) URL API
|
||||
*
|
||||
* Retrieves the list of AMP URLs (and equivalent AMP Cache URLs) for a given list of public URL(s).
|
||||
|
||||
*
|
||||
* @example
|
||||
* const google = require('googleapis');
|
||||
* const acceleratedmobilepageurl = google.acceleratedmobilepageurl('v1');
|
||||
*
|
||||
* @namespace acceleratedmobilepageurl
|
||||
* @type {Function}
|
||||
* @version v1
|
||||
* @variation v1
|
||||
* @param {object=} options Options for Acceleratedmobilepageurl
|
||||
*/
|
||||
function Acceleratedmobilepageurl(options) { // eslint-disable-line
|
||||
const self = this;
|
||||
self._options = options || {};
|
||||
|
||||
self.ampUrls = {
|
||||
|
||||
/**
|
||||
* acceleratedmobilepageurl.ampUrls.batchGet
|
||||
*
|
||||
* @desc Returns AMP URL(s) and equivalent [AMP Cache URL(s)](/amp/cache/overview#amp-cache-url-format).
|
||||
*
|
||||
* @alias acceleratedmobilepageurl.ampUrls.batchGet
|
||||
* @memberOf! acceleratedmobilepageurl(v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {acceleratedmobilepageurl(v1).BatchGetAmpUrlsRequest} params.resource Request body data
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
batchGet: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
|
||||
const rootUrl = options.rootUrl || 'https://acceleratedmobilepageurl.googleapis.com/';
|
||||
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/ampUrls:batchGet').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
}
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* @typedef AmpUrl
|
||||
* @memberOf! acceleratedmobilepageurl(v1)
|
||||
* @type object
|
||||
* @property {string} ampUrl The AMP URL pointing to the publisher's web server.
|
||||
* @property {string} cdnAmpUrl The [AMP Cache URL](/amp/cache/overview#amp-cache-url-format) pointing to
|
||||
the cached document in the Google AMP Cache.
|
||||
* @property {string} originalUrl The original non-AMP URL.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef AmpUrlError
|
||||
* @memberOf! acceleratedmobilepageurl(v1)
|
||||
* @type object
|
||||
* @property {string} errorCode The error code of an API call.
|
||||
* @property {string} errorMessage An optional descriptive error message.
|
||||
* @property {string} originalUrl The original non-AMP URL.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef BatchGetAmpUrlsRequest
|
||||
* @memberOf! acceleratedmobilepageurl(v1)
|
||||
* @type object
|
||||
* @property {string} lookupStrategy The lookup_strategy being requested.
|
||||
* @property {string[]} 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)).
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef BatchGetAmpUrlsResponse
|
||||
* @memberOf! acceleratedmobilepageurl(v1)
|
||||
* @type object
|
||||
* @property {acceleratedmobilepageurl(v1).AmpUrl[]} 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.
|
||||
* @property {acceleratedmobilepageurl(v1).AmpUrlError[]} urlErrors The errors for requested URLs that have no AMP URL.
|
||||
*/
|
||||
export = Acceleratedmobilepageurl;
|
||||
278
backend/node_modules/googleapis/apis/adexchangebuyer/v1.2.js
generated
vendored
Normal file
278
backend/node_modules/googleapis/apis/adexchangebuyer/v1.2.js
generated
vendored
Normal file
@@ -0,0 +1,278 @@
|
||||
"use strict";
|
||||
/**
|
||||
* Copyright 2015 Google Inc. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
/* jshint maxlen: false */
|
||||
const apirequest_1 = require("../../lib/apirequest");
|
||||
/**
|
||||
* Ad Exchange Buyer API
|
||||
*
|
||||
* Accesses your bidding-account information, submits creatives for validation, finds available direct deals, and retrieves performance reports.
|
||||
*
|
||||
* @example
|
||||
* const google = require('googleapis');
|
||||
* const adexchangebuyer = google.adexchangebuyer('v1.2');
|
||||
*
|
||||
* @namespace adexchangebuyer
|
||||
* @type {Function}
|
||||
* @version v1.2
|
||||
* @variation v1.2
|
||||
* @param {object=} options Options for Adexchangebuyer
|
||||
*/
|
||||
function Adexchangebuyer(options) {
|
||||
const self = this;
|
||||
self._options = options || {};
|
||||
self.accounts = {
|
||||
/**
|
||||
* adexchangebuyer.accounts.get
|
||||
*
|
||||
* @desc Gets one account by ID.
|
||||
*
|
||||
* @alias adexchangebuyer.accounts.get
|
||||
* @memberOf! adexchangebuyer(v1.2)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {integer} params.id The account id
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
get: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/adexchangebuyer/v1.2/accounts/{id}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['id'],
|
||||
pathParams: ['id'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* adexchangebuyer.accounts.list
|
||||
*
|
||||
* @desc Retrieves the authenticated user's list of accounts.
|
||||
*
|
||||
* @alias adexchangebuyer.accounts.list
|
||||
* @memberOf! adexchangebuyer(v1.2)
|
||||
*
|
||||
* @param {object=} params Parameters for request
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
list: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/adexchangebuyer/v1.2/accounts').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* adexchangebuyer.accounts.patch
|
||||
*
|
||||
* @desc Updates an existing account. This method supports patch semantics.
|
||||
*
|
||||
* @alias adexchangebuyer.accounts.patch
|
||||
* @memberOf! adexchangebuyer(v1.2)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {integer} params.id The account id
|
||||
* @param {adexchangebuyer(v1.2).Account} params.resource Request body data
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
patch: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/adexchangebuyer/v1.2/accounts/{id}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'PATCH'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['id'],
|
||||
pathParams: ['id'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* adexchangebuyer.accounts.update
|
||||
*
|
||||
* @desc Updates an existing account.
|
||||
*
|
||||
* @alias adexchangebuyer.accounts.update
|
||||
* @memberOf! adexchangebuyer(v1.2)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {integer} params.id The account id
|
||||
* @param {adexchangebuyer(v1.2).Account} params.resource Request body data
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
update: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/adexchangebuyer/v1.2/accounts/{id}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'PUT'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['id'],
|
||||
pathParams: ['id'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
};
|
||||
self.creatives = {
|
||||
/**
|
||||
* adexchangebuyer.creatives.get
|
||||
*
|
||||
* @desc Gets the status for a single creative. A creative will be available 30-40 minutes after submission.
|
||||
*
|
||||
* @alias adexchangebuyer.creatives.get
|
||||
* @memberOf! adexchangebuyer(v1.2)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {integer} params.accountId The id for the account that will serve this creative.
|
||||
* @param {string} params.buyerCreativeId The buyer-specific id for this creative.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
get: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/adexchangebuyer/v1.2/creatives/{accountId}/{buyerCreativeId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['accountId', 'buyerCreativeId'],
|
||||
pathParams: ['accountId', 'buyerCreativeId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* adexchangebuyer.creatives.insert
|
||||
*
|
||||
* @desc Submit a new creative.
|
||||
*
|
||||
* @alias adexchangebuyer.creatives.insert
|
||||
* @memberOf! adexchangebuyer(v1.2)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {adexchangebuyer(v1.2).Creative} params.resource Request body data
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
insert: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/adexchangebuyer/v1.2/creatives').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* adexchangebuyer.creatives.list
|
||||
*
|
||||
* @desc Retrieves a list of the authenticated user's active creatives. A creative will be available 30-40 minutes after submission.
|
||||
*
|
||||
* @alias adexchangebuyer.creatives.list
|
||||
* @memberOf! adexchangebuyer(v1.2)
|
||||
*
|
||||
* @param {object=} params Parameters for request
|
||||
* @param {integer=} params.maxResults Maximum number of entries returned on one result page. If not set, the default is 100. Optional.
|
||||
* @param {string=} params.pageToken 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.
|
||||
* @param {string=} params.statusFilter When specified, only creatives having the given status are returned.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
list: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/adexchangebuyer/v1.2/creatives').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
};
|
||||
}
|
||||
module.exports = Adexchangebuyer;
|
||||
//# sourceMappingURL=v1.2.js.map
|
||||
1
backend/node_modules/googleapis/apis/adexchangebuyer/v1.2.js.map
generated
vendored
Normal file
1
backend/node_modules/googleapis/apis/adexchangebuyer/v1.2.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"v1.2.js","sourceRoot":"","sources":["v1.2.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,0BAA0B;AAE1B,qDAAoD;AAEpD;;;;;;;;;;;;;;GAcG;AACH,yBAAyB,OAAO;IAC9B,MAAM,IAAI,GAAG,IAAI,CAAC;IAClB,IAAI,CAAC,QAAQ,GAAG,OAAO,IAAI,EAAE,CAAC;IAE9B,IAAI,CAAC,QAAQ,GAAG;QAEd;;;;;;;;;;;;;WAaG;QACH,GAAG,EAAE,UAAU,MAAM,EAAE,OAAO,EAAE,QAAQ;YACtC,EAAE,CAAC,CAAC,OAAO,OAAO,KAAK,UAAU,CAAC,CAAC,CAAC;gBAClC,QAAQ,GAAG,OAAO,CAAC;gBACnB,OAAO,GAAG,EAAE,CAAC;YACf,CAAC;YACD,OAAO,IAAI,CAAC,OAAO,GAAG,EAAE,CAAC,CAAC;YAE1B,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,IAAI,6BAA6B,CAAC;YAEjE,MAAM,UAAU,GAAG;gBACjB,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC;oBACrB,GAAG,EAAE,CAAC,OAAO,GAAG,qCAAqC,CAAC,CAAC,OAAO,CAAC,cAAc,EAAE,IAAI,CAAC;oBACpF,MAAM,EAAE,KAAK;iBACd,EAAE,OAAO,CAAC;gBACX,MAAM,EAAE,MAAM;gBACd,cAAc,EAAE,CAAC,IAAI,CAAC;gBACtB,UAAU,EAAE,CAAC,IAAI,CAAC;gBAClB,OAAO,EAAE,IAAI;aACd,CAAC;YAEF,MAAM,CAAC,oBAAgB,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;QAChD,CAAC;QAED;;;;;;;;;;;;WAYG;QACH,IAAI,EAAE,UAAU,MAAM,EAAE,OAAO,EAAE,QAAQ;YACvC,EAAE,CAAC,CAAC,OAAO,OAAO,KAAK,UAAU,CAAC,CAAC,CAAC;gBAClC,QAAQ,GAAG,OAAO,CAAC;gBACnB,OAAO,GAAG,EAAE,CAAC;YACf,CAAC;YACD,OAAO,IAAI,CAAC,OAAO,GAAG,EAAE,CAAC,CAAC;YAE1B,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,IAAI,6BAA6B,CAAC;YAEjE,MAAM,UAAU,GAAG;gBACjB,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC;oBACrB,GAAG,EAAE,CAAC,OAAO,GAAG,gCAAgC,CAAC,CAAC,OAAO,CAAC,cAAc,EAAE,IAAI,CAAC;oBAC/E,MAAM,EAAE,KAAK;iBACd,EAAE,OAAO,CAAC;gBACX,MAAM,EAAE,MAAM;gBACd,cAAc,EAAE,EAAE;gBAClB,UAAU,EAAE,EAAE;gBACd,OAAO,EAAE,IAAI;aACd,CAAC;YAEF,MAAM,CAAC,oBAAgB,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;QAChD,CAAC;QAED;;;;;;;;;;;;;;WAcG;QACH,KAAK,EAAE,UAAU,MAAM,EAAE,OAAO,EAAE,QAAQ;YACxC,EAAE,CAAC,CAAC,OAAO,OAAO,KAAK,UAAU,CAAC,CAAC,CAAC;gBAClC,QAAQ,GAAG,OAAO,CAAC;gBACnB,OAAO,GAAG,EAAE,CAAC;YACf,CAAC;YACD,OAAO,IAAI,CAAC,OAAO,GAAG,EAAE,CAAC,CAAC;YAE1B,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,IAAI,6BAA6B,CAAC;YAEjE,MAAM,UAAU,GAAG;gBACjB,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC;oBACrB,GAAG,EAAE,CAAC,OAAO,GAAG,qCAAqC,CAAC,CAAC,OAAO,CAAC,cAAc,EAAE,IAAI,CAAC;oBACpF,MAAM,EAAE,OAAO;iBAChB,EAAE,OAAO,CAAC;gBACX,MAAM,EAAE,MAAM;gBACd,cAAc,EAAE,CAAC,IAAI,CAAC;gBACtB,UAAU,EAAE,CAAC,IAAI,CAAC;gBAClB,OAAO,EAAE,IAAI;aACd,CAAC;YAEF,MAAM,CAAC,oBAAgB,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;QAChD,CAAC;QAED;;;;;;;;;;;;;;WAcG;QACH,MAAM,EAAE,UAAU,MAAM,EAAE,OAAO,EAAE,QAAQ;YACzC,EAAE,CAAC,CAAC,OAAO,OAAO,KAAK,UAAU,CAAC,CAAC,CAAC;gBAClC,QAAQ,GAAG,OAAO,CAAC;gBACnB,OAAO,GAAG,EAAE,CAAC;YACf,CAAC;YACD,OAAO,IAAI,CAAC,OAAO,GAAG,EAAE,CAAC,CAAC;YAE1B,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,IAAI,6BAA6B,CAAC;YAEjE,MAAM,UAAU,GAAG;gBACjB,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC;oBACrB,GAAG,EAAE,CAAC,OAAO,GAAG,qCAAqC,CAAC,CAAC,OAAO,CAAC,cAAc,EAAE,IAAI,CAAC;oBACpF,MAAM,EAAE,KAAK;iBACd,EAAE,OAAO,CAAC;gBACX,MAAM,EAAE,MAAM;gBACd,cAAc,EAAE,CAAC,IAAI,CAAC;gBACtB,UAAU,EAAE,CAAC,IAAI,CAAC;gBAClB,OAAO,EAAE,IAAI;aACd,CAAC;YAEF,MAAM,CAAC,oBAAgB,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;QAChD,CAAC;KAEF,CAAC;IAEF,IAAI,CAAC,SAAS,GAAG;QAEf;;;;;;;;;;;;;;WAcG;QACH,GAAG,EAAE,UAAU,MAAM,EAAE,OAAO,EAAE,QAAQ;YACtC,EAAE,CAAC,CAAC,OAAO,OAAO,KAAK,UAAU,CAAC,CAAC,CAAC;gBAClC,QAAQ,GAAG,OAAO,CAAC;gBACnB,OAAO,GAAG,EAAE,CAAC;YACf,CAAC;YACD,OAAO,IAAI,CAAC,OAAO,GAAG,EAAE,CAAC,CAAC;YAE1B,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,IAAI,6BAA6B,CAAC;YAEjE,MAAM,UAAU,GAAG;gBACjB,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC;oBACrB,GAAG,EAAE,CAAC,OAAO,GAAG,+DAA+D,CAAC,CAAC,OAAO,CAAC,cAAc,EAAE,IAAI,CAAC;oBAC9G,MAAM,EAAE,KAAK;iBACd,EAAE,OAAO,CAAC;gBACX,MAAM,EAAE,MAAM;gBACd,cAAc,EAAE,CAAC,WAAW,EAAE,iBAAiB,CAAC;gBAChD,UAAU,EAAE,CAAC,WAAW,EAAE,iBAAiB,CAAC;gBAC5C,OAAO,EAAE,IAAI;aACd,CAAC;YAEF,MAAM,CAAC,oBAAgB,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;QAChD,CAAC;QAED;;;;;;;;;;;;;WAaG;QACH,MAAM,EAAE,UAAU,MAAM,EAAE,OAAO,EAAE,QAAQ;YACzC,EAAE,CAAC,CAAC,OAAO,OAAO,KAAK,UAAU,CAAC,CAAC,CAAC;gBAClC,QAAQ,GAAG,OAAO,CAAC;gBACnB,OAAO,GAAG,EAAE,CAAC;YACf,CAAC;YACD,OAAO,IAAI,CAAC,OAAO,GAAG,EAAE,CAAC,CAAC;YAE1B,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,IAAI,6BAA6B,CAAC;YAEjE,MAAM,UAAU,GAAG;gBACjB,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC;oBACrB,GAAG,EAAE,CAAC,OAAO,GAAG,iCAAiC,CAAC,CAAC,OAAO,CAAC,cAAc,EAAE,IAAI,CAAC;oBAChF,MAAM,EAAE,MAAM;iBACf,EAAE,OAAO,CAAC;gBACX,MAAM,EAAE,MAAM;gBACd,cAAc,EAAE,EAAE;gBAClB,UAAU,EAAE,EAAE;gBACd,OAAO,EAAE,IAAI;aACd,CAAC;YAEF,MAAM,CAAC,oBAAgB,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;QAChD,CAAC;QAED;;;;;;;;;;;;;;;WAeG;QACH,IAAI,EAAE,UAAU,MAAM,EAAE,OAAO,EAAE,QAAQ;YACvC,EAAE,CAAC,CAAC,OAAO,OAAO,KAAK,UAAU,CAAC,CAAC,CAAC;gBAClC,QAAQ,GAAG,OAAO,CAAC;gBACnB,OAAO,GAAG,EAAE,CAAC;YACf,CAAC;YACD,OAAO,IAAI,CAAC,OAAO,GAAG,EAAE,CAAC,CAAC;YAE1B,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,IAAI,6BAA6B,CAAC;YAEjE,MAAM,UAAU,GAAG;gBACjB,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC;oBACrB,GAAG,EAAE,CAAC,OAAO,GAAG,iCAAiC,CAAC,CAAC,OAAO,CAAC,cAAc,EAAE,IAAI,CAAC;oBAChF,MAAM,EAAE,KAAK;iBACd,EAAE,OAAO,CAAC;gBACX,MAAM,EAAE,MAAM;gBACd,cAAc,EAAE,EAAE;gBAClB,UAAU,EAAE,EAAE;gBACd,OAAO,EAAE,IAAI;aACd,CAAC;YAEF,MAAM,CAAC,oBAAgB,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;QAChD,CAAC;KAEF,CAAC;AACJ,CAAC;AA6DD,iBAAS,eAAe,CAAC"}
|
||||
371
backend/node_modules/googleapis/apis/adexchangebuyer/v1.2.ts
generated
vendored
Normal file
371
backend/node_modules/googleapis/apis/adexchangebuyer/v1.2.ts
generated
vendored
Normal file
@@ -0,0 +1,371 @@
|
||||
/**
|
||||
* Copyright 2015 Google Inc. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/* jshint maxlen: false */
|
||||
|
||||
import createAPIRequest from '../../lib/apirequest';
|
||||
|
||||
/**
|
||||
* Ad Exchange Buyer API
|
||||
*
|
||||
* Accesses your bidding-account information, submits creatives for validation, finds available direct deals, and retrieves performance reports.
|
||||
*
|
||||
* @example
|
||||
* const google = require('googleapis');
|
||||
* const adexchangebuyer = google.adexchangebuyer('v1.2');
|
||||
*
|
||||
* @namespace adexchangebuyer
|
||||
* @type {Function}
|
||||
* @version v1.2
|
||||
* @variation v1.2
|
||||
* @param {object=} options Options for Adexchangebuyer
|
||||
*/
|
||||
function Adexchangebuyer(options) { // eslint-disable-line
|
||||
const self = this;
|
||||
self._options = options || {};
|
||||
|
||||
self.accounts = {
|
||||
|
||||
/**
|
||||
* adexchangebuyer.accounts.get
|
||||
*
|
||||
* @desc Gets one account by ID.
|
||||
*
|
||||
* @alias adexchangebuyer.accounts.get
|
||||
* @memberOf! adexchangebuyer(v1.2)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {integer} params.id The account id
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
get: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/adexchangebuyer/v1.2/accounts/{id}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['id'],
|
||||
pathParams: ['id'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
},
|
||||
|
||||
/**
|
||||
* adexchangebuyer.accounts.list
|
||||
*
|
||||
* @desc Retrieves the authenticated user's list of accounts.
|
||||
*
|
||||
* @alias adexchangebuyer.accounts.list
|
||||
* @memberOf! adexchangebuyer(v1.2)
|
||||
*
|
||||
* @param {object=} params Parameters for request
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
list: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/adexchangebuyer/v1.2/accounts').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
},
|
||||
|
||||
/**
|
||||
* adexchangebuyer.accounts.patch
|
||||
*
|
||||
* @desc Updates an existing account. This method supports patch semantics.
|
||||
*
|
||||
* @alias adexchangebuyer.accounts.patch
|
||||
* @memberOf! adexchangebuyer(v1.2)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {integer} params.id The account id
|
||||
* @param {adexchangebuyer(v1.2).Account} params.resource Request body data
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
patch: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/adexchangebuyer/v1.2/accounts/{id}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'PATCH'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['id'],
|
||||
pathParams: ['id'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
},
|
||||
|
||||
/**
|
||||
* adexchangebuyer.accounts.update
|
||||
*
|
||||
* @desc Updates an existing account.
|
||||
*
|
||||
* @alias adexchangebuyer.accounts.update
|
||||
* @memberOf! adexchangebuyer(v1.2)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {integer} params.id The account id
|
||||
* @param {adexchangebuyer(v1.2).Account} params.resource Request body data
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
update: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/adexchangebuyer/v1.2/accounts/{id}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'PUT'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['id'],
|
||||
pathParams: ['id'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
self.creatives = {
|
||||
|
||||
/**
|
||||
* adexchangebuyer.creatives.get
|
||||
*
|
||||
* @desc Gets the status for a single creative. A creative will be available 30-40 minutes after submission.
|
||||
*
|
||||
* @alias adexchangebuyer.creatives.get
|
||||
* @memberOf! adexchangebuyer(v1.2)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {integer} params.accountId The id for the account that will serve this creative.
|
||||
* @param {string} params.buyerCreativeId The buyer-specific id for this creative.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
get: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/adexchangebuyer/v1.2/creatives/{accountId}/{buyerCreativeId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['accountId', 'buyerCreativeId'],
|
||||
pathParams: ['accountId', 'buyerCreativeId'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
},
|
||||
|
||||
/**
|
||||
* adexchangebuyer.creatives.insert
|
||||
*
|
||||
* @desc Submit a new creative.
|
||||
*
|
||||
* @alias adexchangebuyer.creatives.insert
|
||||
* @memberOf! adexchangebuyer(v1.2)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {adexchangebuyer(v1.2).Creative} params.resource Request body data
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
insert: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/adexchangebuyer/v1.2/creatives').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
},
|
||||
|
||||
/**
|
||||
* adexchangebuyer.creatives.list
|
||||
*
|
||||
* @desc Retrieves a list of the authenticated user's active creatives. A creative will be available 30-40 minutes after submission.
|
||||
*
|
||||
* @alias adexchangebuyer.creatives.list
|
||||
* @memberOf! adexchangebuyer(v1.2)
|
||||
*
|
||||
* @param {object=} params Parameters for request
|
||||
* @param {integer=} params.maxResults Maximum number of entries returned on one result page. If not set, the default is 100. Optional.
|
||||
* @param {string=} params.pageToken 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.
|
||||
* @param {string=} params.statusFilter When specified, only creatives having the given status are returned.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
list: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/adexchangebuyer/v1.2/creatives').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
}
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* @typedef Account
|
||||
* @memberOf! adexchangebuyer(v1.2)
|
||||
* @type object
|
||||
* @property {object[]} bidderLocation Your bidder locations that have distinct URLs.
|
||||
* @property {string} cookieMatchingNid The nid parameter value used in cookie match requests. Please contact your technical account manager if you need to change this.
|
||||
* @property {string} cookieMatchingUrl The base URL used in cookie match requests.
|
||||
* @property {integer} id Account id.
|
||||
* @property {string} kind Resource type.
|
||||
* @property {integer} maximumActiveCreatives 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.
|
||||
* @property {integer} maximumTotalQps The sum of all bidderLocation.maximumQps values cannot exceed this. Please contact your technical account manager if you need to change this.
|
||||
* @property {integer} numberActiveCreatives The number of creatives that this account inserted or bid with in the last 30 days.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef AccountsList
|
||||
* @memberOf! adexchangebuyer(v1.2)
|
||||
* @type object
|
||||
* @property {adexchangebuyer(v1.2).Account[]} items A list of accounts.
|
||||
* @property {string} kind Resource type.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef Creative
|
||||
* @memberOf! adexchangebuyer(v1.2)
|
||||
* @type object
|
||||
* @property {string} HTMLSnippet The HTML snippet that displays the ad when inserted in the web page. If set, videoURL should not be set.
|
||||
* @property {integer} accountId Account id.
|
||||
* @property {string[]} advertiserId Detected advertiser id, if any. Read-only. This field should not be set in requests.
|
||||
* @property {string} advertiserName The name of the company being advertised in the creative.
|
||||
* @property {string} agencyId The agency id for this creative.
|
||||
* @property {string} apiUploadTimestamp 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).
|
||||
* @property {integer[]} attribute All attributes for the ads that may be shown from this snippet.
|
||||
* @property {string} buyerCreativeId A buyer-specific id identifying the creative in this ad.
|
||||
* @property {string[]} clickThroughUrl The set of destination urls for the snippet.
|
||||
* @property {object[]} corrections Shows any corrections that were applied to this creative. Read-only. This field should not be set in requests.
|
||||
* @property {object[]} disapprovalReasons 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.
|
||||
* @property {object} filteringReasons The filtering reasons for the creative. Read-only. This field should not be set in requests.
|
||||
* @property {integer} height Ad height.
|
||||
* @property {string[]} impressionTrackingUrl The set of urls to be called to record an impression.
|
||||
* @property {string} kind Resource type.
|
||||
* @property {integer[]} productCategories Detected product categories, if any. Read-only. This field should not be set in requests.
|
||||
* @property {integer[]} restrictedCategories All restricted categories for the ads that may be shown from this snippet.
|
||||
* @property {integer[]} sensitiveCategories Detected sensitive categories, if any. Read-only. This field should not be set in requests.
|
||||
* @property {string} status Creative serving status. Read-only. This field should not be set in requests.
|
||||
* @property {integer[]} vendorType All vendor types for the ads that may be shown from this snippet.
|
||||
* @property {integer} version The version for this creative. Read-only. This field should not be set in requests.
|
||||
* @property {string} videoURL The url to fetch a video ad. If set, HTMLSnippet should not be set.
|
||||
* @property {integer} width Ad width.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef CreativesList
|
||||
* @memberOf! adexchangebuyer(v1.2)
|
||||
* @type object
|
||||
* @property {adexchangebuyer(v1.2).Creative[]} items A list of creatives.
|
||||
* @property {string} kind Resource type.
|
||||
* @property {string} nextPageToken Continuation token used to page through creatives. To retrieve the next page of results, set the next request's "pageToken" value to this.
|
||||
*/
|
||||
export = Adexchangebuyer;
|
||||
766
backend/node_modules/googleapis/apis/adexchangebuyer/v1.3.js
generated
vendored
Normal file
766
backend/node_modules/googleapis/apis/adexchangebuyer/v1.3.js
generated
vendored
Normal file
@@ -0,0 +1,766 @@
|
||||
"use strict";
|
||||
/**
|
||||
* Copyright 2015 Google Inc. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
/* jshint maxlen: false */
|
||||
const apirequest_1 = require("../../lib/apirequest");
|
||||
/**
|
||||
* Ad Exchange Buyer API
|
||||
*
|
||||
* Accesses your bidding-account information, submits creatives for validation, finds available direct deals, and retrieves performance reports.
|
||||
*
|
||||
* @example
|
||||
* const google = require('googleapis');
|
||||
* const adexchangebuyer = google.adexchangebuyer('v1.3');
|
||||
*
|
||||
* @namespace adexchangebuyer
|
||||
* @type {Function}
|
||||
* @version v1.3
|
||||
* @variation v1.3
|
||||
* @param {object=} options Options for Adexchangebuyer
|
||||
*/
|
||||
function Adexchangebuyer(options) {
|
||||
const self = this;
|
||||
self._options = options || {};
|
||||
self.accounts = {
|
||||
/**
|
||||
* adexchangebuyer.accounts.get
|
||||
*
|
||||
* @desc Gets one account by ID.
|
||||
*
|
||||
* @alias adexchangebuyer.accounts.get
|
||||
* @memberOf! adexchangebuyer(v1.3)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {integer} params.id The account id
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
get: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/adexchangebuyer/v1.3/accounts/{id}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['id'],
|
||||
pathParams: ['id'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* adexchangebuyer.accounts.list
|
||||
*
|
||||
* @desc Retrieves the authenticated user's list of accounts.
|
||||
*
|
||||
* @alias adexchangebuyer.accounts.list
|
||||
* @memberOf! adexchangebuyer(v1.3)
|
||||
*
|
||||
* @param {object=} params Parameters for request
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
list: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/adexchangebuyer/v1.3/accounts').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* adexchangebuyer.accounts.patch
|
||||
*
|
||||
* @desc Updates an existing account. This method supports patch semantics.
|
||||
*
|
||||
* @alias adexchangebuyer.accounts.patch
|
||||
* @memberOf! adexchangebuyer(v1.3)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {integer} params.id The account id
|
||||
* @param {adexchangebuyer(v1.3).Account} params.resource Request body data
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
patch: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/adexchangebuyer/v1.3/accounts/{id}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'PATCH'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['id'],
|
||||
pathParams: ['id'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* adexchangebuyer.accounts.update
|
||||
*
|
||||
* @desc Updates an existing account.
|
||||
*
|
||||
* @alias adexchangebuyer.accounts.update
|
||||
* @memberOf! adexchangebuyer(v1.3)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {integer} params.id The account id
|
||||
* @param {adexchangebuyer(v1.3).Account} params.resource Request body data
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
update: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/adexchangebuyer/v1.3/accounts/{id}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'PUT'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['id'],
|
||||
pathParams: ['id'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
};
|
||||
self.billingInfo = {
|
||||
/**
|
||||
* adexchangebuyer.billingInfo.get
|
||||
*
|
||||
* @desc Returns the billing information for one account specified by account ID.
|
||||
*
|
||||
* @alias adexchangebuyer.billingInfo.get
|
||||
* @memberOf! adexchangebuyer(v1.3)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {integer} params.accountId The account id.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
get: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/adexchangebuyer/v1.3/billinginfo/{accountId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['accountId'],
|
||||
pathParams: ['accountId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* adexchangebuyer.billingInfo.list
|
||||
*
|
||||
* @desc Retrieves a list of billing information for all accounts of the authenticated user.
|
||||
*
|
||||
* @alias adexchangebuyer.billingInfo.list
|
||||
* @memberOf! adexchangebuyer(v1.3)
|
||||
*
|
||||
* @param {object=} params Parameters for request
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
list: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/adexchangebuyer/v1.3/billinginfo').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
};
|
||||
self.budget = {
|
||||
/**
|
||||
* adexchangebuyer.budget.get
|
||||
*
|
||||
* @desc Returns the budget information for the adgroup specified by the accountId and billingId.
|
||||
*
|
||||
* @alias adexchangebuyer.budget.get
|
||||
* @memberOf! adexchangebuyer(v1.3)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.accountId The account id to get the budget information for.
|
||||
* @param {string} params.billingId The billing id to get the budget information for.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
get: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/adexchangebuyer/v1.3/billinginfo/{accountId}/{billingId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['accountId', 'billingId'],
|
||||
pathParams: ['accountId', 'billingId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* adexchangebuyer.budget.patch
|
||||
*
|
||||
* @desc Updates the budget amount for the budget of the adgroup specified by the accountId and billingId, with the budget amount in the request. This method supports patch semantics.
|
||||
*
|
||||
* @alias adexchangebuyer.budget.patch
|
||||
* @memberOf! adexchangebuyer(v1.3)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.accountId The account id associated with the budget being updated.
|
||||
* @param {string} params.billingId The billing id associated with the budget being updated.
|
||||
* @param {adexchangebuyer(v1.3).Budget} params.resource Request body data
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
patch: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/adexchangebuyer/v1.3/billinginfo/{accountId}/{billingId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'PATCH'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['accountId', 'billingId'],
|
||||
pathParams: ['accountId', 'billingId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* adexchangebuyer.budget.update
|
||||
*
|
||||
* @desc Updates the budget amount for the budget of the adgroup specified by the accountId and billingId, with the budget amount in the request.
|
||||
*
|
||||
* @alias adexchangebuyer.budget.update
|
||||
* @memberOf! adexchangebuyer(v1.3)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.accountId The account id associated with the budget being updated.
|
||||
* @param {string} params.billingId The billing id associated with the budget being updated.
|
||||
* @param {adexchangebuyer(v1.3).Budget} params.resource Request body data
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
update: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/adexchangebuyer/v1.3/billinginfo/{accountId}/{billingId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'PUT'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['accountId', 'billingId'],
|
||||
pathParams: ['accountId', 'billingId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
};
|
||||
self.creatives = {
|
||||
/**
|
||||
* adexchangebuyer.creatives.get
|
||||
*
|
||||
* @desc Gets the status for a single creative. A creative will be available 30-40 minutes after submission.
|
||||
*
|
||||
* @alias adexchangebuyer.creatives.get
|
||||
* @memberOf! adexchangebuyer(v1.3)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {integer} params.accountId The id for the account that will serve this creative.
|
||||
* @param {string} params.buyerCreativeId The buyer-specific id for this creative.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
get: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/adexchangebuyer/v1.3/creatives/{accountId}/{buyerCreativeId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['accountId', 'buyerCreativeId'],
|
||||
pathParams: ['accountId', 'buyerCreativeId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* adexchangebuyer.creatives.insert
|
||||
*
|
||||
* @desc Submit a new creative.
|
||||
*
|
||||
* @alias adexchangebuyer.creatives.insert
|
||||
* @memberOf! adexchangebuyer(v1.3)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {adexchangebuyer(v1.3).Creative} params.resource Request body data
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
insert: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/adexchangebuyer/v1.3/creatives').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* adexchangebuyer.creatives.list
|
||||
*
|
||||
* @desc Retrieves a list of the authenticated user's active creatives. A creative will be available 30-40 minutes after submission.
|
||||
*
|
||||
* @alias adexchangebuyer.creatives.list
|
||||
* @memberOf! adexchangebuyer(v1.3)
|
||||
*
|
||||
* @param {object=} params Parameters for request
|
||||
* @param {integer=} params.accountId When specified, only creatives for the given account ids are returned.
|
||||
* @param {string=} params.buyerCreativeId When specified, only creatives for the given buyer creative ids are returned.
|
||||
* @param {integer=} params.maxResults Maximum number of entries returned on one result page. If not set, the default is 100. Optional.
|
||||
* @param {string=} params.pageToken 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.
|
||||
* @param {string=} params.statusFilter When specified, only creatives having the given status are returned.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
list: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/adexchangebuyer/v1.3/creatives').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
};
|
||||
self.directDeals = {
|
||||
/**
|
||||
* adexchangebuyer.directDeals.get
|
||||
*
|
||||
* @desc Gets one direct deal by ID.
|
||||
*
|
||||
* @alias adexchangebuyer.directDeals.get
|
||||
* @memberOf! adexchangebuyer(v1.3)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.id The direct deal id
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
get: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/adexchangebuyer/v1.3/directdeals/{id}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['id'],
|
||||
pathParams: ['id'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* adexchangebuyer.directDeals.list
|
||||
*
|
||||
* @desc Retrieves the authenticated user's list of direct deals.
|
||||
*
|
||||
* @alias adexchangebuyer.directDeals.list
|
||||
* @memberOf! adexchangebuyer(v1.3)
|
||||
*
|
||||
* @param {object=} params Parameters for request
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
list: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/adexchangebuyer/v1.3/directdeals').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
};
|
||||
self.performanceReport = {
|
||||
/**
|
||||
* adexchangebuyer.performanceReport.list
|
||||
*
|
||||
* @desc Retrieves the authenticated user's list of performance metrics.
|
||||
*
|
||||
* @alias adexchangebuyer.performanceReport.list
|
||||
* @memberOf! adexchangebuyer(v1.3)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.accountId The account id to get the reports.
|
||||
* @param {string} params.endDateTime The end time of the report in ISO 8601 timestamp format using UTC.
|
||||
* @param {integer=} params.maxResults Maximum number of entries returned on one result page. If not set, the default is 100. Optional.
|
||||
* @param {string=} params.pageToken A continuation token, used to page through performance reports. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response. Optional.
|
||||
* @param {string} params.startDateTime The start time of the report in ISO 8601 timestamp format using UTC.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
list: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/adexchangebuyer/v1.3/performancereport').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['accountId', 'endDateTime', 'startDateTime'],
|
||||
pathParams: [],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
};
|
||||
self.pretargetingConfig = {
|
||||
/**
|
||||
* adexchangebuyer.pretargetingConfig.delete
|
||||
*
|
||||
* @desc Deletes an existing pretargeting config.
|
||||
*
|
||||
* @alias adexchangebuyer.pretargetingConfig.delete
|
||||
* @memberOf! adexchangebuyer(v1.3)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.accountId The account id to delete the pretargeting config for.
|
||||
* @param {string} params.configId The specific id of the configuration to delete.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
delete: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/adexchangebuyer/v1.3/pretargetingconfigs/{accountId}/{configId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'DELETE'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['accountId', 'configId'],
|
||||
pathParams: ['accountId', 'configId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* adexchangebuyer.pretargetingConfig.get
|
||||
*
|
||||
* @desc Gets a specific pretargeting configuration
|
||||
*
|
||||
* @alias adexchangebuyer.pretargetingConfig.get
|
||||
* @memberOf! adexchangebuyer(v1.3)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.accountId The account id to get the pretargeting config for.
|
||||
* @param {string} params.configId The specific id of the configuration to retrieve.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
get: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/adexchangebuyer/v1.3/pretargetingconfigs/{accountId}/{configId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['accountId', 'configId'],
|
||||
pathParams: ['accountId', 'configId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* adexchangebuyer.pretargetingConfig.insert
|
||||
*
|
||||
* @desc Inserts a new pretargeting configuration.
|
||||
*
|
||||
* @alias adexchangebuyer.pretargetingConfig.insert
|
||||
* @memberOf! adexchangebuyer(v1.3)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.accountId The account id to insert the pretargeting config for.
|
||||
* @param {adexchangebuyer(v1.3).PretargetingConfig} params.resource Request body data
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
insert: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/adexchangebuyer/v1.3/pretargetingconfigs/{accountId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['accountId'],
|
||||
pathParams: ['accountId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* adexchangebuyer.pretargetingConfig.list
|
||||
*
|
||||
* @desc Retrieves a list of the authenticated user's pretargeting configurations.
|
||||
*
|
||||
* @alias adexchangebuyer.pretargetingConfig.list
|
||||
* @memberOf! adexchangebuyer(v1.3)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.accountId The account id to get the pretargeting configs for.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
list: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/adexchangebuyer/v1.3/pretargetingconfigs/{accountId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['accountId'],
|
||||
pathParams: ['accountId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* adexchangebuyer.pretargetingConfig.patch
|
||||
*
|
||||
* @desc Updates an existing pretargeting config. This method supports patch semantics.
|
||||
*
|
||||
* @alias adexchangebuyer.pretargetingConfig.patch
|
||||
* @memberOf! adexchangebuyer(v1.3)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.accountId The account id to update the pretargeting config for.
|
||||
* @param {string} params.configId The specific id of the configuration to update.
|
||||
* @param {adexchangebuyer(v1.3).PretargetingConfig} params.resource Request body data
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
patch: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/adexchangebuyer/v1.3/pretargetingconfigs/{accountId}/{configId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'PATCH'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['accountId', 'configId'],
|
||||
pathParams: ['accountId', 'configId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* adexchangebuyer.pretargetingConfig.update
|
||||
*
|
||||
* @desc Updates an existing pretargeting config.
|
||||
*
|
||||
* @alias adexchangebuyer.pretargetingConfig.update
|
||||
* @memberOf! adexchangebuyer(v1.3)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.accountId The account id to update the pretargeting config for.
|
||||
* @param {string} params.configId The specific id of the configuration to update.
|
||||
* @param {adexchangebuyer(v1.3).PretargetingConfig} params.resource Request body data
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
update: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/adexchangebuyer/v1.3/pretargetingconfigs/{accountId}/{configId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'PUT'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['accountId', 'configId'],
|
||||
pathParams: ['accountId', 'configId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
};
|
||||
}
|
||||
module.exports = Adexchangebuyer;
|
||||
//# sourceMappingURL=v1.3.js.map
|
||||
1
backend/node_modules/googleapis/apis/adexchangebuyer/v1.3.js.map
generated
vendored
Normal file
1
backend/node_modules/googleapis/apis/adexchangebuyer/v1.3.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
1058
backend/node_modules/googleapis/apis/adexchangebuyer/v1.3.ts
generated
vendored
Normal file
1058
backend/node_modules/googleapis/apis/adexchangebuyer/v1.3.ts
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1359
backend/node_modules/googleapis/apis/adexchangebuyer/v1.4.js
generated
vendored
Normal file
1359
backend/node_modules/googleapis/apis/adexchangebuyer/v1.4.js
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1
backend/node_modules/googleapis/apis/adexchangebuyer/v1.4.js.map
generated
vendored
Normal file
1
backend/node_modules/googleapis/apis/adexchangebuyer/v1.4.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
2226
backend/node_modules/googleapis/apis/adexchangebuyer/v1.4.ts
generated
vendored
Normal file
2226
backend/node_modules/googleapis/apis/adexchangebuyer/v1.4.ts
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1241
backend/node_modules/googleapis/apis/adexchangebuyer2/v2beta1.js
generated
vendored
Normal file
1241
backend/node_modules/googleapis/apis/adexchangebuyer2/v2beta1.js
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1
backend/node_modules/googleapis/apis/adexchangebuyer2/v2beta1.js.map
generated
vendored
Normal file
1
backend/node_modules/googleapis/apis/adexchangebuyer2/v2beta1.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
2115
backend/node_modules/googleapis/apis/adexchangebuyer2/v2beta1.ts
generated
vendored
Normal file
2115
backend/node_modules/googleapis/apis/adexchangebuyer2/v2beta1.ts
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
654
backend/node_modules/googleapis/apis/adexchangeseller/v1.1.js
generated
vendored
Normal file
654
backend/node_modules/googleapis/apis/adexchangeseller/v1.1.js
generated
vendored
Normal file
@@ -0,0 +1,654 @@
|
||||
"use strict";
|
||||
/**
|
||||
* Copyright 2015 Google Inc. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
/* jshint maxlen: false */
|
||||
const apirequest_1 = require("../../lib/apirequest");
|
||||
/**
|
||||
* Ad Exchange Seller API
|
||||
*
|
||||
* Accesses the inventory of Ad Exchange seller users and generates reports.
|
||||
*
|
||||
* @example
|
||||
* const google = require('googleapis');
|
||||
* const adexchangeseller = google.adexchangeseller('v1.1');
|
||||
*
|
||||
* @namespace adexchangeseller
|
||||
* @type {Function}
|
||||
* @version v1.1
|
||||
* @variation v1.1
|
||||
* @param {object=} options Options for Adexchangeseller
|
||||
*/
|
||||
function Adexchangeseller(options) {
|
||||
const self = this;
|
||||
self._options = options || {};
|
||||
self.accounts = {
|
||||
/**
|
||||
* adexchangeseller.accounts.get
|
||||
*
|
||||
* @desc Get information about the selected Ad Exchange account.
|
||||
*
|
||||
* @alias adexchangeseller.accounts.get
|
||||
* @memberOf! adexchangeseller(v1.1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.accountId Account to get information about. Tip: 'myaccount' is a valid ID.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
get: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/adexchangeseller/v1.1/accounts/{accountId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['accountId'],
|
||||
pathParams: ['accountId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
};
|
||||
self.adclients = {
|
||||
/**
|
||||
* adexchangeseller.adclients.list
|
||||
*
|
||||
* @desc List all ad clients in this Ad Exchange account.
|
||||
*
|
||||
* @alias adexchangeseller.adclients.list
|
||||
* @memberOf! adexchangeseller(v1.1)
|
||||
*
|
||||
* @param {object=} params Parameters for request
|
||||
* @param {integer=} params.maxResults The maximum number of ad clients to include in the response, used for paging.
|
||||
* @param {string=} params.pageToken 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.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
list: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/adexchangeseller/v1.1/adclients').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
};
|
||||
self.adunits = {
|
||||
/**
|
||||
* adexchangeseller.adunits.get
|
||||
*
|
||||
* @desc Gets the specified ad unit in the specified ad client.
|
||||
*
|
||||
* @alias adexchangeseller.adunits.get
|
||||
* @memberOf! adexchangeseller(v1.1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.adClientId Ad client for which to get the ad unit.
|
||||
* @param {string} params.adUnitId Ad unit to retrieve.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
get: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/adexchangeseller/v1.1/adclients/{adClientId}/adunits/{adUnitId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['adClientId', 'adUnitId'],
|
||||
pathParams: ['adClientId', 'adUnitId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* adexchangeseller.adunits.list
|
||||
*
|
||||
* @desc List all ad units in the specified ad client for this Ad Exchange account.
|
||||
*
|
||||
* @alias adexchangeseller.adunits.list
|
||||
* @memberOf! adexchangeseller(v1.1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.adClientId Ad client for which to list ad units.
|
||||
* @param {boolean=} params.includeInactive Whether to include inactive ad units. Default: true.
|
||||
* @param {integer=} params.maxResults The maximum number of ad units to include in the response, used for paging.
|
||||
* @param {string=} params.pageToken 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.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
list: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/adexchangeseller/v1.1/adclients/{adClientId}/adunits').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['adClientId'],
|
||||
pathParams: ['adClientId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
customchannels: {
|
||||
/**
|
||||
* adexchangeseller.adunits.customchannels.list
|
||||
*
|
||||
* @desc List all custom channels which the specified ad unit belongs to.
|
||||
*
|
||||
* @alias adexchangeseller.adunits.customchannels.list
|
||||
* @memberOf! adexchangeseller(v1.1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.adClientId Ad client which contains the ad unit.
|
||||
* @param {string} params.adUnitId Ad unit for which to list custom channels.
|
||||
* @param {integer=} params.maxResults The maximum number of custom channels to include in the response, used for paging.
|
||||
* @param {string=} params.pageToken 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.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
list: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/adexchangeseller/v1.1/adclients/{adClientId}/adunits/{adUnitId}/customchannels').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['adClientId', 'adUnitId'],
|
||||
pathParams: ['adClientId', 'adUnitId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
}
|
||||
};
|
||||
self.alerts = {
|
||||
/**
|
||||
* adexchangeseller.alerts.list
|
||||
*
|
||||
* @desc List the alerts for this Ad Exchange account.
|
||||
*
|
||||
* @alias adexchangeseller.alerts.list
|
||||
* @memberOf! adexchangeseller(v1.1)
|
||||
*
|
||||
* @param {object=} params Parameters for request
|
||||
* @param {string=} params.locale The locale to use for translating alert messages. The account locale will be used if this is not supplied. The AdSense default (English) will be used if the supplied locale is invalid or unsupported.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
list: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/adexchangeseller/v1.1/alerts').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
};
|
||||
self.customchannels = {
|
||||
/**
|
||||
* adexchangeseller.customchannels.get
|
||||
*
|
||||
* @desc Get the specified custom channel from the specified ad client.
|
||||
*
|
||||
* @alias adexchangeseller.customchannels.get
|
||||
* @memberOf! adexchangeseller(v1.1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.adClientId Ad client which contains the custom channel.
|
||||
* @param {string} params.customChannelId Custom channel to retrieve.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
get: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/adexchangeseller/v1.1/adclients/{adClientId}/customchannels/{customChannelId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['adClientId', 'customChannelId'],
|
||||
pathParams: ['adClientId', 'customChannelId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* adexchangeseller.customchannels.list
|
||||
*
|
||||
* @desc List all custom channels in the specified ad client for this Ad Exchange account.
|
||||
*
|
||||
* @alias adexchangeseller.customchannels.list
|
||||
* @memberOf! adexchangeseller(v1.1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.adClientId Ad client for which to list custom channels.
|
||||
* @param {integer=} params.maxResults The maximum number of custom channels to include in the response, used for paging.
|
||||
* @param {string=} params.pageToken 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.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
list: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/adexchangeseller/v1.1/adclients/{adClientId}/customchannels').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['adClientId'],
|
||||
pathParams: ['adClientId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
adunits: {
|
||||
/**
|
||||
* adexchangeseller.customchannels.adunits.list
|
||||
*
|
||||
* @desc List all ad units in the specified custom channel.
|
||||
*
|
||||
* @alias adexchangeseller.customchannels.adunits.list
|
||||
* @memberOf! adexchangeseller(v1.1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.adClientId Ad client which contains the custom channel.
|
||||
* @param {string} params.customChannelId Custom channel for which to list ad units.
|
||||
* @param {boolean=} params.includeInactive Whether to include inactive ad units. Default: true.
|
||||
* @param {integer=} params.maxResults The maximum number of ad units to include in the response, used for paging.
|
||||
* @param {string=} params.pageToken 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.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
list: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/adexchangeseller/v1.1/adclients/{adClientId}/customchannels/{customChannelId}/adunits').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['adClientId', 'customChannelId'],
|
||||
pathParams: ['adClientId', 'customChannelId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
}
|
||||
};
|
||||
self.metadata = {
|
||||
dimensions: {
|
||||
/**
|
||||
* adexchangeseller.metadata.dimensions.list
|
||||
*
|
||||
* @desc List the metadata for the dimensions available to this AdExchange account.
|
||||
*
|
||||
* @alias adexchangeseller.metadata.dimensions.list
|
||||
* @memberOf! adexchangeseller(v1.1)
|
||||
*
|
||||
* @param {object=} params Parameters for request
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
list: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/adexchangeseller/v1.1/metadata/dimensions').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
},
|
||||
metrics: {
|
||||
/**
|
||||
* adexchangeseller.metadata.metrics.list
|
||||
*
|
||||
* @desc List the metadata for the metrics available to this AdExchange account.
|
||||
*
|
||||
* @alias adexchangeseller.metadata.metrics.list
|
||||
* @memberOf! adexchangeseller(v1.1)
|
||||
*
|
||||
* @param {object=} params Parameters for request
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
list: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/adexchangeseller/v1.1/metadata/metrics').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
}
|
||||
};
|
||||
self.preferreddeals = {
|
||||
/**
|
||||
* adexchangeseller.preferreddeals.get
|
||||
*
|
||||
* @desc Get information about the selected Ad Exchange Preferred Deal.
|
||||
*
|
||||
* @alias adexchangeseller.preferreddeals.get
|
||||
* @memberOf! adexchangeseller(v1.1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.dealId Preferred deal to get information about.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
get: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/adexchangeseller/v1.1/preferreddeals/{dealId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['dealId'],
|
||||
pathParams: ['dealId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* adexchangeseller.preferreddeals.list
|
||||
*
|
||||
* @desc List the preferred deals for this Ad Exchange account.
|
||||
*
|
||||
* @alias adexchangeseller.preferreddeals.list
|
||||
* @memberOf! adexchangeseller(v1.1)
|
||||
*
|
||||
* @param {object=} params Parameters for request
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
list: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/adexchangeseller/v1.1/preferreddeals').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
};
|
||||
self.reports = {
|
||||
/**
|
||||
* adexchangeseller.reports.generate
|
||||
*
|
||||
* @desc 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.
|
||||
*
|
||||
* @alias adexchangeseller.reports.generate
|
||||
* @memberOf! adexchangeseller(v1.1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string=} params.dimension Dimensions to base the report on.
|
||||
* @param {string} params.endDate End of the date range to report on in "YYYY-MM-DD" format, inclusive.
|
||||
* @param {string=} params.filter Filters to be run on the report.
|
||||
* @param {string=} params.locale Optional locale to use for translating report output to a local language. Defaults to "en_US" if not specified.
|
||||
* @param {integer=} params.maxResults The maximum number of rows of report data to return.
|
||||
* @param {string=} params.metric Numeric columns to include in the report.
|
||||
* @param {string=} params.sort 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.
|
||||
* @param {string} params.startDate Start of the date range to report on in "YYYY-MM-DD" format, inclusive.
|
||||
* @param {integer=} params.startIndex Index of the first row of report data to return.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
generate: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/adexchangeseller/v1.1/reports').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['startDate', 'endDate'],
|
||||
pathParams: [],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
saved: {
|
||||
/**
|
||||
* adexchangeseller.reports.saved.generate
|
||||
*
|
||||
* @desc Generate an Ad Exchange report based on the saved report ID sent in the query parameters.
|
||||
*
|
||||
* @alias adexchangeseller.reports.saved.generate
|
||||
* @memberOf! adexchangeseller(v1.1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string=} params.locale Optional locale to use for translating report output to a local language. Defaults to "en_US" if not specified.
|
||||
* @param {integer=} params.maxResults The maximum number of rows of report data to return.
|
||||
* @param {string} params.savedReportId The saved report to retrieve.
|
||||
* @param {integer=} params.startIndex Index of the first row of report data to return.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
generate: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/adexchangeseller/v1.1/reports/{savedReportId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['savedReportId'],
|
||||
pathParams: ['savedReportId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* adexchangeseller.reports.saved.list
|
||||
*
|
||||
* @desc List all saved reports in this Ad Exchange account.
|
||||
*
|
||||
* @alias adexchangeseller.reports.saved.list
|
||||
* @memberOf! adexchangeseller(v1.1)
|
||||
*
|
||||
* @param {object=} params Parameters for request
|
||||
* @param {integer=} params.maxResults The maximum number of saved reports to include in the response, used for paging.
|
||||
* @param {string=} params.pageToken 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.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
list: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/adexchangeseller/v1.1/reports/saved').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
}
|
||||
};
|
||||
self.urlchannels = {
|
||||
/**
|
||||
* adexchangeseller.urlchannels.list
|
||||
*
|
||||
* @desc List all URL channels in the specified ad client for this Ad Exchange account.
|
||||
*
|
||||
* @alias adexchangeseller.urlchannels.list
|
||||
* @memberOf! adexchangeseller(v1.1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.adClientId Ad client for which to list URL channels.
|
||||
* @param {integer=} params.maxResults The maximum number of URL channels to include in the response, used for paging.
|
||||
* @param {string=} params.pageToken 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.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
list: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/adexchangeseller/v1.1/adclients/{adClientId}/urlchannels').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['adClientId'],
|
||||
pathParams: ['adClientId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
};
|
||||
}
|
||||
module.exports = Adexchangeseller;
|
||||
//# sourceMappingURL=v1.1.js.map
|
||||
1
backend/node_modules/googleapis/apis/adexchangeseller/v1.1.js.map
generated
vendored
Normal file
1
backend/node_modules/googleapis/apis/adexchangeseller/v1.1.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
927
backend/node_modules/googleapis/apis/adexchangeseller/v1.1.ts
generated
vendored
Normal file
927
backend/node_modules/googleapis/apis/adexchangeseller/v1.1.ts
generated
vendored
Normal file
@@ -0,0 +1,927 @@
|
||||
/**
|
||||
* Copyright 2015 Google Inc. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/* jshint maxlen: false */
|
||||
|
||||
import createAPIRequest from '../../lib/apirequest';
|
||||
|
||||
/**
|
||||
* Ad Exchange Seller API
|
||||
*
|
||||
* Accesses the inventory of Ad Exchange seller users and generates reports.
|
||||
*
|
||||
* @example
|
||||
* const google = require('googleapis');
|
||||
* const adexchangeseller = google.adexchangeseller('v1.1');
|
||||
*
|
||||
* @namespace adexchangeseller
|
||||
* @type {Function}
|
||||
* @version v1.1
|
||||
* @variation v1.1
|
||||
* @param {object=} options Options for Adexchangeseller
|
||||
*/
|
||||
function Adexchangeseller(options) { // eslint-disable-line
|
||||
const self = this;
|
||||
self._options = options || {};
|
||||
|
||||
self.accounts = {
|
||||
|
||||
/**
|
||||
* adexchangeseller.accounts.get
|
||||
*
|
||||
* @desc Get information about the selected Ad Exchange account.
|
||||
*
|
||||
* @alias adexchangeseller.accounts.get
|
||||
* @memberOf! adexchangeseller(v1.1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.accountId Account to get information about. Tip: 'myaccount' is a valid ID.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
get: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/adexchangeseller/v1.1/accounts/{accountId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['accountId'],
|
||||
pathParams: ['accountId'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
self.adclients = {
|
||||
|
||||
/**
|
||||
* adexchangeseller.adclients.list
|
||||
*
|
||||
* @desc List all ad clients in this Ad Exchange account.
|
||||
*
|
||||
* @alias adexchangeseller.adclients.list
|
||||
* @memberOf! adexchangeseller(v1.1)
|
||||
*
|
||||
* @param {object=} params Parameters for request
|
||||
* @param {integer=} params.maxResults The maximum number of ad clients to include in the response, used for paging.
|
||||
* @param {string=} params.pageToken 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.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
list: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/adexchangeseller/v1.1/adclients').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
self.adunits = {
|
||||
|
||||
/**
|
||||
* adexchangeseller.adunits.get
|
||||
*
|
||||
* @desc Gets the specified ad unit in the specified ad client.
|
||||
*
|
||||
* @alias adexchangeseller.adunits.get
|
||||
* @memberOf! adexchangeseller(v1.1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.adClientId Ad client for which to get the ad unit.
|
||||
* @param {string} params.adUnitId Ad unit to retrieve.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
get: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/adexchangeseller/v1.1/adclients/{adClientId}/adunits/{adUnitId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['adClientId', 'adUnitId'],
|
||||
pathParams: ['adClientId', 'adUnitId'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
},
|
||||
|
||||
/**
|
||||
* adexchangeseller.adunits.list
|
||||
*
|
||||
* @desc List all ad units in the specified ad client for this Ad Exchange account.
|
||||
*
|
||||
* @alias adexchangeseller.adunits.list
|
||||
* @memberOf! adexchangeseller(v1.1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.adClientId Ad client for which to list ad units.
|
||||
* @param {boolean=} params.includeInactive Whether to include inactive ad units. Default: true.
|
||||
* @param {integer=} params.maxResults The maximum number of ad units to include in the response, used for paging.
|
||||
* @param {string=} params.pageToken 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.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
list: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/adexchangeseller/v1.1/adclients/{adClientId}/adunits').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['adClientId'],
|
||||
pathParams: ['adClientId'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
},
|
||||
customchannels: {
|
||||
|
||||
/**
|
||||
* adexchangeseller.adunits.customchannels.list
|
||||
*
|
||||
* @desc List all custom channels which the specified ad unit belongs to.
|
||||
*
|
||||
* @alias adexchangeseller.adunits.customchannels.list
|
||||
* @memberOf! adexchangeseller(v1.1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.adClientId Ad client which contains the ad unit.
|
||||
* @param {string} params.adUnitId Ad unit for which to list custom channels.
|
||||
* @param {integer=} params.maxResults The maximum number of custom channels to include in the response, used for paging.
|
||||
* @param {string=} params.pageToken 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.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
list: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/adexchangeseller/v1.1/adclients/{adClientId}/adunits/{adUnitId}/customchannels').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['adClientId', 'adUnitId'],
|
||||
pathParams: ['adClientId', 'adUnitId'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
self.alerts = {
|
||||
|
||||
/**
|
||||
* adexchangeseller.alerts.list
|
||||
*
|
||||
* @desc List the alerts for this Ad Exchange account.
|
||||
*
|
||||
* @alias adexchangeseller.alerts.list
|
||||
* @memberOf! adexchangeseller(v1.1)
|
||||
*
|
||||
* @param {object=} params Parameters for request
|
||||
* @param {string=} params.locale The locale to use for translating alert messages. The account locale will be used if this is not supplied. The AdSense default (English) will be used if the supplied locale is invalid or unsupported.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
list: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/adexchangeseller/v1.1/alerts').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
self.customchannels = {
|
||||
|
||||
/**
|
||||
* adexchangeseller.customchannels.get
|
||||
*
|
||||
* @desc Get the specified custom channel from the specified ad client.
|
||||
*
|
||||
* @alias adexchangeseller.customchannels.get
|
||||
* @memberOf! adexchangeseller(v1.1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.adClientId Ad client which contains the custom channel.
|
||||
* @param {string} params.customChannelId Custom channel to retrieve.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
get: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/adexchangeseller/v1.1/adclients/{adClientId}/customchannels/{customChannelId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['adClientId', 'customChannelId'],
|
||||
pathParams: ['adClientId', 'customChannelId'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
},
|
||||
|
||||
/**
|
||||
* adexchangeseller.customchannels.list
|
||||
*
|
||||
* @desc List all custom channels in the specified ad client for this Ad Exchange account.
|
||||
*
|
||||
* @alias adexchangeseller.customchannels.list
|
||||
* @memberOf! adexchangeseller(v1.1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.adClientId Ad client for which to list custom channels.
|
||||
* @param {integer=} params.maxResults The maximum number of custom channels to include in the response, used for paging.
|
||||
* @param {string=} params.pageToken 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.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
list: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/adexchangeseller/v1.1/adclients/{adClientId}/customchannels').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['adClientId'],
|
||||
pathParams: ['adClientId'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
},
|
||||
adunits: {
|
||||
|
||||
/**
|
||||
* adexchangeseller.customchannels.adunits.list
|
||||
*
|
||||
* @desc List all ad units in the specified custom channel.
|
||||
*
|
||||
* @alias adexchangeseller.customchannels.adunits.list
|
||||
* @memberOf! adexchangeseller(v1.1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.adClientId Ad client which contains the custom channel.
|
||||
* @param {string} params.customChannelId Custom channel for which to list ad units.
|
||||
* @param {boolean=} params.includeInactive Whether to include inactive ad units. Default: true.
|
||||
* @param {integer=} params.maxResults The maximum number of ad units to include in the response, used for paging.
|
||||
* @param {string=} params.pageToken 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.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
list: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/adexchangeseller/v1.1/adclients/{adClientId}/customchannels/{customChannelId}/adunits').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['adClientId', 'customChannelId'],
|
||||
pathParams: ['adClientId', 'customChannelId'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
self.metadata = {
|
||||
dimensions: {
|
||||
|
||||
/**
|
||||
* adexchangeseller.metadata.dimensions.list
|
||||
*
|
||||
* @desc List the metadata for the dimensions available to this AdExchange account.
|
||||
*
|
||||
* @alias adexchangeseller.metadata.dimensions.list
|
||||
* @memberOf! adexchangeseller(v1.1)
|
||||
*
|
||||
* @param {object=} params Parameters for request
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
list: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/adexchangeseller/v1.1/metadata/dimensions').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
}
|
||||
},
|
||||
metrics: {
|
||||
|
||||
/**
|
||||
* adexchangeseller.metadata.metrics.list
|
||||
*
|
||||
* @desc List the metadata for the metrics available to this AdExchange account.
|
||||
*
|
||||
* @alias adexchangeseller.metadata.metrics.list
|
||||
* @memberOf! adexchangeseller(v1.1)
|
||||
*
|
||||
* @param {object=} params Parameters for request
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
list: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/adexchangeseller/v1.1/metadata/metrics').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
self.preferreddeals = {
|
||||
|
||||
/**
|
||||
* adexchangeseller.preferreddeals.get
|
||||
*
|
||||
* @desc Get information about the selected Ad Exchange Preferred Deal.
|
||||
*
|
||||
* @alias adexchangeseller.preferreddeals.get
|
||||
* @memberOf! adexchangeseller(v1.1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.dealId Preferred deal to get information about.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
get: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/adexchangeseller/v1.1/preferreddeals/{dealId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['dealId'],
|
||||
pathParams: ['dealId'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
},
|
||||
|
||||
/**
|
||||
* adexchangeseller.preferreddeals.list
|
||||
*
|
||||
* @desc List the preferred deals for this Ad Exchange account.
|
||||
*
|
||||
* @alias adexchangeseller.preferreddeals.list
|
||||
* @memberOf! adexchangeseller(v1.1)
|
||||
*
|
||||
* @param {object=} params Parameters for request
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
list: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/adexchangeseller/v1.1/preferreddeals').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
self.reports = {
|
||||
|
||||
/**
|
||||
* adexchangeseller.reports.generate
|
||||
*
|
||||
* @desc 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.
|
||||
*
|
||||
* @alias adexchangeseller.reports.generate
|
||||
* @memberOf! adexchangeseller(v1.1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string=} params.dimension Dimensions to base the report on.
|
||||
* @param {string} params.endDate End of the date range to report on in "YYYY-MM-DD" format, inclusive.
|
||||
* @param {string=} params.filter Filters to be run on the report.
|
||||
* @param {string=} params.locale Optional locale to use for translating report output to a local language. Defaults to "en_US" if not specified.
|
||||
* @param {integer=} params.maxResults The maximum number of rows of report data to return.
|
||||
* @param {string=} params.metric Numeric columns to include in the report.
|
||||
* @param {string=} params.sort 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.
|
||||
* @param {string} params.startDate Start of the date range to report on in "YYYY-MM-DD" format, inclusive.
|
||||
* @param {integer=} params.startIndex Index of the first row of report data to return.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
generate: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/adexchangeseller/v1.1/reports').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['startDate', 'endDate'],
|
||||
pathParams: [],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
},
|
||||
saved: {
|
||||
|
||||
/**
|
||||
* adexchangeseller.reports.saved.generate
|
||||
*
|
||||
* @desc Generate an Ad Exchange report based on the saved report ID sent in the query parameters.
|
||||
*
|
||||
* @alias adexchangeseller.reports.saved.generate
|
||||
* @memberOf! adexchangeseller(v1.1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string=} params.locale Optional locale to use for translating report output to a local language. Defaults to "en_US" if not specified.
|
||||
* @param {integer=} params.maxResults The maximum number of rows of report data to return.
|
||||
* @param {string} params.savedReportId The saved report to retrieve.
|
||||
* @param {integer=} params.startIndex Index of the first row of report data to return.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
generate: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/adexchangeseller/v1.1/reports/{savedReportId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['savedReportId'],
|
||||
pathParams: ['savedReportId'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
},
|
||||
|
||||
/**
|
||||
* adexchangeseller.reports.saved.list
|
||||
*
|
||||
* @desc List all saved reports in this Ad Exchange account.
|
||||
*
|
||||
* @alias adexchangeseller.reports.saved.list
|
||||
* @memberOf! adexchangeseller(v1.1)
|
||||
*
|
||||
* @param {object=} params Parameters for request
|
||||
* @param {integer=} params.maxResults The maximum number of saved reports to include in the response, used for paging.
|
||||
* @param {string=} params.pageToken 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.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
list: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/adexchangeseller/v1.1/reports/saved').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
self.urlchannels = {
|
||||
|
||||
/**
|
||||
* adexchangeseller.urlchannels.list
|
||||
*
|
||||
* @desc List all URL channels in the specified ad client for this Ad Exchange account.
|
||||
*
|
||||
* @alias adexchangeseller.urlchannels.list
|
||||
* @memberOf! adexchangeseller(v1.1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.adClientId Ad client for which to list URL channels.
|
||||
* @param {integer=} params.maxResults The maximum number of URL channels to include in the response, used for paging.
|
||||
* @param {string=} params.pageToken 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.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
list: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/adexchangeseller/v1.1/adclients/{adClientId}/urlchannels').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['adClientId'],
|
||||
pathParams: ['adClientId'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
}
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* @typedef Account
|
||||
* @memberOf! adexchangeseller(v1.1)
|
||||
* @type object
|
||||
* @property {string} id Unique identifier of this account.
|
||||
* @property {string} kind Kind of resource this is, in this case adexchangeseller#account.
|
||||
* @property {string} name Name of this account.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef AdClient
|
||||
* @memberOf! adexchangeseller(v1.1)
|
||||
* @type object
|
||||
* @property {boolean} arcOptIn Whether this ad client is opted in to ARC.
|
||||
* @property {string} id Unique identifier of this ad client.
|
||||
* @property {string} kind Kind of resource this is, in this case adexchangeseller#adClient.
|
||||
* @property {string} productCode This ad client's product code, which corresponds to the PRODUCT_CODE report dimension.
|
||||
* @property {boolean} supportsReporting Whether this ad client supports being reported on.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef AdClients
|
||||
* @memberOf! adexchangeseller(v1.1)
|
||||
* @type object
|
||||
* @property {string} etag ETag of this response for caching purposes.
|
||||
* @property {adexchangeseller(v1.1).AdClient[]} items The ad clients returned in this list response.
|
||||
* @property {string} kind Kind of list this is, in this case adexchangeseller#adClients.
|
||||
* @property {string} nextPageToken Continuation token used to page through ad clients. To retrieve the next page of results, set the next request's "pageToken" value to this.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef AdUnit
|
||||
* @memberOf! adexchangeseller(v1.1)
|
||||
* @type object
|
||||
* @property {string} code Identity code of this ad unit, not necessarily unique across ad clients.
|
||||
* @property {string} id 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.
|
||||
* @property {string} kind Kind of resource this is, in this case adexchangeseller#adUnit.
|
||||
* @property {string} name Name of this ad unit.
|
||||
* @property {string} status Status of this ad unit. Possible values are:
|
||||
NEW: Indicates that the ad unit was created within the last seven days and does not yet have any activity associated with it.
|
||||
|
||||
ACTIVE: Indicates that there has been activity on this ad unit in the last seven days.
|
||||
|
||||
INACTIVE: Indicates that there has been no activity on this ad unit in the last seven days.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef AdUnits
|
||||
* @memberOf! adexchangeseller(v1.1)
|
||||
* @type object
|
||||
* @property {string} etag ETag of this response for caching purposes.
|
||||
* @property {adexchangeseller(v1.1).AdUnit[]} items The ad units returned in this list response.
|
||||
* @property {string} kind Kind of list this is, in this case adexchangeseller#adUnits.
|
||||
* @property {string} nextPageToken Continuation token used to page through ad units. To retrieve the next page of results, set the next request's "pageToken" value to this.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef Alert
|
||||
* @memberOf! adexchangeseller(v1.1)
|
||||
* @type object
|
||||
* @property {string} id Unique identifier of this alert. This should be considered an opaque identifier; it is not safe to rely on it being in any particular format.
|
||||
* @property {string} kind Kind of resource this is, in this case adexchangeseller#alert.
|
||||
* @property {string} message The localized alert message.
|
||||
* @property {string} severity Severity of this alert. Possible values: INFO, WARNING, SEVERE.
|
||||
* @property {string} type Type of this alert. Possible values: SELF_HOLD, MIGRATED_TO_BILLING3, ADDRESS_PIN_VERIFICATION, PHONE_PIN_VERIFICATION, CORPORATE_ENTITY, GRAYLISTED_PUBLISHER, API_HOLD.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef Alerts
|
||||
* @memberOf! adexchangeseller(v1.1)
|
||||
* @type object
|
||||
* @property {adexchangeseller(v1.1).Alert[]} items The alerts returned in this list response.
|
||||
* @property {string} kind Kind of list this is, in this case adexchangeseller#alerts.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef CustomChannel
|
||||
* @memberOf! adexchangeseller(v1.1)
|
||||
* @type object
|
||||
* @property {string} code Code of this custom channel, not necessarily unique across ad clients.
|
||||
* @property {string} id 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.
|
||||
* @property {string} kind Kind of resource this is, in this case adexchangeseller#customChannel.
|
||||
* @property {string} name Name of this custom channel.
|
||||
* @property {object} targetingInfo The targeting information of this custom channel, if activated.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef CustomChannels
|
||||
* @memberOf! adexchangeseller(v1.1)
|
||||
* @type object
|
||||
* @property {string} etag ETag of this response for caching purposes.
|
||||
* @property {adexchangeseller(v1.1).CustomChannel[]} items The custom channels returned in this list response.
|
||||
* @property {string} kind Kind of list this is, in this case adexchangeseller#customChannels.
|
||||
* @property {string} nextPageToken Continuation token used to page through custom channels. To retrieve the next page of results, set the next request's "pageToken" value to this.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef Metadata
|
||||
* @memberOf! adexchangeseller(v1.1)
|
||||
* @type object
|
||||
* @property {adexchangeseller(v1.1).ReportingMetadataEntry[]} items
|
||||
* @property {string} kind Kind of list this is, in this case adexchangeseller#metadata.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef PreferredDeal
|
||||
* @memberOf! adexchangeseller(v1.1)
|
||||
* @type object
|
||||
* @property {string} advertiserName The name of the advertiser this deal is for.
|
||||
* @property {string} buyerNetworkName The name of the buyer network this deal is for.
|
||||
* @property {string} currencyCode The currency code that applies to the fixed_cpm value. If not set then assumed to be USD.
|
||||
* @property {string} endTime Time when this deal stops being active in seconds since the epoch (GMT). If not set then this deal is valid until manually disabled by the publisher.
|
||||
* @property {string} fixedCpm The fixed price for this preferred deal. In cpm micros of currency according to currencyCode. If set, then this preferred deal is eligible for the fixed price tier of buying (highest priority, pay exactly the configured fixed price).
|
||||
* @property {string} id Unique identifier of this preferred deal.
|
||||
* @property {string} kind Kind of resource this is, in this case adexchangeseller#preferredDeal.
|
||||
* @property {string} startTime Time when this deal becomes active in seconds since the epoch (GMT). If not set then this deal is active immediately upon creation.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef PreferredDeals
|
||||
* @memberOf! adexchangeseller(v1.1)
|
||||
* @type object
|
||||
* @property {adexchangeseller(v1.1).PreferredDeal[]} items The preferred deals returned in this list response.
|
||||
* @property {string} kind Kind of list this is, in this case adexchangeseller#preferredDeals.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef Report
|
||||
* @memberOf! adexchangeseller(v1.1)
|
||||
* @type object
|
||||
* @property {string[]} averages The averages of the report. This is the same length as any other row in the report; cells corresponding to dimension columns are empty.
|
||||
* @property {object[]} headers 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.
|
||||
* @property {string} kind Kind this is, in this case adexchangeseller#report.
|
||||
* @property {array[]} rows 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.
|
||||
* @property {string} totalMatchedRows 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.
|
||||
* @property {string[]} totals The totals of the report. This is the same length as any other row in the report; cells corresponding to dimension columns are empty.
|
||||
* @property {string[]} warnings Any warnings associated with generation of the report.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef ReportingMetadataEntry
|
||||
* @memberOf! adexchangeseller(v1.1)
|
||||
* @type object
|
||||
* @property {string[]} compatibleDimensions For metrics this is a list of dimension IDs which the metric is compatible with, for dimensions it is a list of compatibility groups the dimension belongs to.
|
||||
* @property {string[]} compatibleMetrics The names of the metrics the dimension or metric this reporting metadata entry describes is compatible with.
|
||||
* @property {string} id Unique identifier of this reporting metadata entry, corresponding to the name of the appropriate dimension or metric.
|
||||
* @property {string} kind Kind of resource this is, in this case adexchangeseller#reportingMetadataEntry.
|
||||
* @property {string[]} requiredDimensions The names of the dimensions which the dimension or metric this reporting metadata entry describes requires to also be present in order for the report to be valid. Omitting these will not cause an error or warning, but may result in data which cannot be correctly interpreted.
|
||||
* @property {string[]} requiredMetrics The names of the metrics which the dimension or metric this reporting metadata entry describes requires to also be present in order for the report to be valid. Omitting these will not cause an error or warning, but may result in data which cannot be correctly interpreted.
|
||||
* @property {string[]} supportedProducts The codes of the projects supported by the dimension or metric this reporting metadata entry describes.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef SavedReport
|
||||
* @memberOf! adexchangeseller(v1.1)
|
||||
* @type object
|
||||
* @property {string} id Unique identifier of this saved report.
|
||||
* @property {string} kind Kind of resource this is, in this case adexchangeseller#savedReport.
|
||||
* @property {string} name This saved report's name.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef SavedReports
|
||||
* @memberOf! adexchangeseller(v1.1)
|
||||
* @type object
|
||||
* @property {string} etag ETag of this response for caching purposes.
|
||||
* @property {adexchangeseller(v1.1).SavedReport[]} items The saved reports returned in this list response.
|
||||
* @property {string} kind Kind of list this is, in this case adexchangeseller#savedReports.
|
||||
* @property {string} nextPageToken Continuation token used to page through saved reports. To retrieve the next page of results, set the next request's "pageToken" value to this.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef UrlChannel
|
||||
* @memberOf! adexchangeseller(v1.1)
|
||||
* @type object
|
||||
* @property {string} id 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.
|
||||
* @property {string} kind Kind of resource this is, in this case adexchangeseller#urlChannel.
|
||||
* @property {string} urlPattern URL Pattern of this URL channel. Does not include "http://" or "https://". Example: www.example.com/home
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef UrlChannels
|
||||
* @memberOf! adexchangeseller(v1.1)
|
||||
* @type object
|
||||
* @property {string} etag ETag of this response for caching purposes.
|
||||
* @property {adexchangeseller(v1.1).UrlChannel[]} items The URL channels returned in this list response.
|
||||
* @property {string} kind Kind of list this is, in this case adexchangeseller#urlChannels.
|
||||
* @property {string} nextPageToken Continuation token used to page through URL channels. To retrieve the next page of results, set the next request's "pageToken" value to this.
|
||||
*/
|
||||
export = Adexchangeseller;
|
||||
447
backend/node_modules/googleapis/apis/adexchangeseller/v1.js
generated
vendored
Normal file
447
backend/node_modules/googleapis/apis/adexchangeseller/v1.js
generated
vendored
Normal file
@@ -0,0 +1,447 @@
|
||||
"use strict";
|
||||
/**
|
||||
* Copyright 2015 Google Inc. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
/* jshint maxlen: false */
|
||||
const apirequest_1 = require("../../lib/apirequest");
|
||||
/**
|
||||
* Ad Exchange Seller API
|
||||
*
|
||||
* Accesses the inventory of Ad Exchange seller users and generates reports.
|
||||
*
|
||||
* @example
|
||||
* const google = require('googleapis');
|
||||
* const adexchangeseller = google.adexchangeseller('v1');
|
||||
*
|
||||
* @namespace adexchangeseller
|
||||
* @type {Function}
|
||||
* @version v1
|
||||
* @variation v1
|
||||
* @param {object=} options Options for Adexchangeseller
|
||||
*/
|
||||
function Adexchangeseller(options) {
|
||||
const self = this;
|
||||
self._options = options || {};
|
||||
self.adclients = {
|
||||
/**
|
||||
* adexchangeseller.adclients.list
|
||||
*
|
||||
* @desc List all ad clients in this Ad Exchange account.
|
||||
*
|
||||
* @alias adexchangeseller.adclients.list
|
||||
* @memberOf! adexchangeseller(v1)
|
||||
*
|
||||
* @param {object=} params Parameters for request
|
||||
* @param {integer=} params.maxResults The maximum number of ad clients to include in the response, used for paging.
|
||||
* @param {string=} params.pageToken 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.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
list: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/adexchangeseller/v1/adclients').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
};
|
||||
self.adunits = {
|
||||
/**
|
||||
* adexchangeseller.adunits.get
|
||||
*
|
||||
* @desc Gets the specified ad unit in the specified ad client.
|
||||
*
|
||||
* @alias adexchangeseller.adunits.get
|
||||
* @memberOf! adexchangeseller(v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.adClientId Ad client for which to get the ad unit.
|
||||
* @param {string} params.adUnitId Ad unit to retrieve.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
get: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/adexchangeseller/v1/adclients/{adClientId}/adunits/{adUnitId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['adClientId', 'adUnitId'],
|
||||
pathParams: ['adClientId', 'adUnitId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* adexchangeseller.adunits.list
|
||||
*
|
||||
* @desc List all ad units in the specified ad client for this Ad Exchange account.
|
||||
*
|
||||
* @alias adexchangeseller.adunits.list
|
||||
* @memberOf! adexchangeseller(v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.adClientId Ad client for which to list ad units.
|
||||
* @param {boolean=} params.includeInactive Whether to include inactive ad units. Default: true.
|
||||
* @param {integer=} params.maxResults The maximum number of ad units to include in the response, used for paging.
|
||||
* @param {string=} params.pageToken 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.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
list: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/adexchangeseller/v1/adclients/{adClientId}/adunits').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['adClientId'],
|
||||
pathParams: ['adClientId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
customchannels: {
|
||||
/**
|
||||
* adexchangeseller.adunits.customchannels.list
|
||||
*
|
||||
* @desc List all custom channels which the specified ad unit belongs to.
|
||||
*
|
||||
* @alias adexchangeseller.adunits.customchannels.list
|
||||
* @memberOf! adexchangeseller(v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.adClientId Ad client which contains the ad unit.
|
||||
* @param {string} params.adUnitId Ad unit for which to list custom channels.
|
||||
* @param {integer=} params.maxResults The maximum number of custom channels to include in the response, used for paging.
|
||||
* @param {string=} params.pageToken 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.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
list: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/adexchangeseller/v1/adclients/{adClientId}/adunits/{adUnitId}/customchannels').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['adClientId', 'adUnitId'],
|
||||
pathParams: ['adClientId', 'adUnitId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
}
|
||||
};
|
||||
self.customchannels = {
|
||||
/**
|
||||
* adexchangeseller.customchannels.get
|
||||
*
|
||||
* @desc Get the specified custom channel from the specified ad client.
|
||||
*
|
||||
* @alias adexchangeseller.customchannels.get
|
||||
* @memberOf! adexchangeseller(v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.adClientId Ad client which contains the custom channel.
|
||||
* @param {string} params.customChannelId Custom channel to retrieve.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
get: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/adexchangeseller/v1/adclients/{adClientId}/customchannels/{customChannelId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['adClientId', 'customChannelId'],
|
||||
pathParams: ['adClientId', 'customChannelId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* adexchangeseller.customchannels.list
|
||||
*
|
||||
* @desc List all custom channels in the specified ad client for this Ad Exchange account.
|
||||
*
|
||||
* @alias adexchangeseller.customchannels.list
|
||||
* @memberOf! adexchangeseller(v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.adClientId Ad client for which to list custom channels.
|
||||
* @param {integer=} params.maxResults The maximum number of custom channels to include in the response, used for paging.
|
||||
* @param {string=} params.pageToken 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.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
list: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/adexchangeseller/v1/adclients/{adClientId}/customchannels').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['adClientId'],
|
||||
pathParams: ['adClientId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
adunits: {
|
||||
/**
|
||||
* adexchangeseller.customchannels.adunits.list
|
||||
*
|
||||
* @desc List all ad units in the specified custom channel.
|
||||
*
|
||||
* @alias adexchangeseller.customchannels.adunits.list
|
||||
* @memberOf! adexchangeseller(v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.adClientId Ad client which contains the custom channel.
|
||||
* @param {string} params.customChannelId Custom channel for which to list ad units.
|
||||
* @param {boolean=} params.includeInactive Whether to include inactive ad units. Default: true.
|
||||
* @param {integer=} params.maxResults The maximum number of ad units to include in the response, used for paging.
|
||||
* @param {string=} params.pageToken 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.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
list: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/adexchangeseller/v1/adclients/{adClientId}/customchannels/{customChannelId}/adunits').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['adClientId', 'customChannelId'],
|
||||
pathParams: ['adClientId', 'customChannelId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
}
|
||||
};
|
||||
self.reports = {
|
||||
/**
|
||||
* adexchangeseller.reports.generate
|
||||
*
|
||||
* @desc 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.
|
||||
*
|
||||
* @alias adexchangeseller.reports.generate
|
||||
* @memberOf! adexchangeseller(v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string=} params.dimension Dimensions to base the report on.
|
||||
* @param {string} params.endDate End of the date range to report on in "YYYY-MM-DD" format, inclusive.
|
||||
* @param {string=} params.filter Filters to be run on the report.
|
||||
* @param {string=} params.locale Optional locale to use for translating report output to a local language. Defaults to "en_US" if not specified.
|
||||
* @param {integer=} params.maxResults The maximum number of rows of report data to return.
|
||||
* @param {string=} params.metric Numeric columns to include in the report.
|
||||
* @param {string=} params.sort 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.
|
||||
* @param {string} params.startDate Start of the date range to report on in "YYYY-MM-DD" format, inclusive.
|
||||
* @param {integer=} params.startIndex Index of the first row of report data to return.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
generate: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/adexchangeseller/v1/reports').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['startDate', 'endDate'],
|
||||
pathParams: [],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
saved: {
|
||||
/**
|
||||
* adexchangeseller.reports.saved.generate
|
||||
*
|
||||
* @desc Generate an Ad Exchange report based on the saved report ID sent in the query parameters.
|
||||
*
|
||||
* @alias adexchangeseller.reports.saved.generate
|
||||
* @memberOf! adexchangeseller(v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string=} params.locale Optional locale to use for translating report output to a local language. Defaults to "en_US" if not specified.
|
||||
* @param {integer=} params.maxResults The maximum number of rows of report data to return.
|
||||
* @param {string} params.savedReportId The saved report to retrieve.
|
||||
* @param {integer=} params.startIndex Index of the first row of report data to return.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
generate: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/adexchangeseller/v1/reports/{savedReportId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['savedReportId'],
|
||||
pathParams: ['savedReportId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* adexchangeseller.reports.saved.list
|
||||
*
|
||||
* @desc List all saved reports in this Ad Exchange account.
|
||||
*
|
||||
* @alias adexchangeseller.reports.saved.list
|
||||
* @memberOf! adexchangeseller(v1)
|
||||
*
|
||||
* @param {object=} params Parameters for request
|
||||
* @param {integer=} params.maxResults The maximum number of saved reports to include in the response, used for paging.
|
||||
* @param {string=} params.pageToken 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.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
list: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/adexchangeseller/v1/reports/saved').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
}
|
||||
};
|
||||
self.urlchannels = {
|
||||
/**
|
||||
* adexchangeseller.urlchannels.list
|
||||
*
|
||||
* @desc List all URL channels in the specified ad client for this Ad Exchange account.
|
||||
*
|
||||
* @alias adexchangeseller.urlchannels.list
|
||||
* @memberOf! adexchangeseller(v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.adClientId Ad client for which to list URL channels.
|
||||
* @param {integer=} params.maxResults The maximum number of URL channels to include in the response, used for paging.
|
||||
* @param {string=} params.pageToken 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.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
list: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/adexchangeseller/v1/adclients/{adClientId}/urlchannels').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['adClientId'],
|
||||
pathParams: ['adClientId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
};
|
||||
}
|
||||
module.exports = Adexchangeseller;
|
||||
//# sourceMappingURL=v1.js.map
|
||||
1
backend/node_modules/googleapis/apis/adexchangeseller/v1.js.map
generated
vendored
Normal file
1
backend/node_modules/googleapis/apis/adexchangeseller/v1.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
618
backend/node_modules/googleapis/apis/adexchangeseller/v1.ts
generated
vendored
Normal file
618
backend/node_modules/googleapis/apis/adexchangeseller/v1.ts
generated
vendored
Normal file
@@ -0,0 +1,618 @@
|
||||
/**
|
||||
* Copyright 2015 Google Inc. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/* jshint maxlen: false */
|
||||
|
||||
import createAPIRequest from '../../lib/apirequest';
|
||||
|
||||
/**
|
||||
* Ad Exchange Seller API
|
||||
*
|
||||
* Accesses the inventory of Ad Exchange seller users and generates reports.
|
||||
*
|
||||
* @example
|
||||
* const google = require('googleapis');
|
||||
* const adexchangeseller = google.adexchangeseller('v1');
|
||||
*
|
||||
* @namespace adexchangeseller
|
||||
* @type {Function}
|
||||
* @version v1
|
||||
* @variation v1
|
||||
* @param {object=} options Options for Adexchangeseller
|
||||
*/
|
||||
function Adexchangeseller(options) { // eslint-disable-line
|
||||
const self = this;
|
||||
self._options = options || {};
|
||||
|
||||
self.adclients = {
|
||||
|
||||
/**
|
||||
* adexchangeseller.adclients.list
|
||||
*
|
||||
* @desc List all ad clients in this Ad Exchange account.
|
||||
*
|
||||
* @alias adexchangeseller.adclients.list
|
||||
* @memberOf! adexchangeseller(v1)
|
||||
*
|
||||
* @param {object=} params Parameters for request
|
||||
* @param {integer=} params.maxResults The maximum number of ad clients to include in the response, used for paging.
|
||||
* @param {string=} params.pageToken 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.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
list: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/adexchangeseller/v1/adclients').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
self.adunits = {
|
||||
|
||||
/**
|
||||
* adexchangeseller.adunits.get
|
||||
*
|
||||
* @desc Gets the specified ad unit in the specified ad client.
|
||||
*
|
||||
* @alias adexchangeseller.adunits.get
|
||||
* @memberOf! adexchangeseller(v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.adClientId Ad client for which to get the ad unit.
|
||||
* @param {string} params.adUnitId Ad unit to retrieve.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
get: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/adexchangeseller/v1/adclients/{adClientId}/adunits/{adUnitId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['adClientId', 'adUnitId'],
|
||||
pathParams: ['adClientId', 'adUnitId'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
},
|
||||
|
||||
/**
|
||||
* adexchangeseller.adunits.list
|
||||
*
|
||||
* @desc List all ad units in the specified ad client for this Ad Exchange account.
|
||||
*
|
||||
* @alias adexchangeseller.adunits.list
|
||||
* @memberOf! adexchangeseller(v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.adClientId Ad client for which to list ad units.
|
||||
* @param {boolean=} params.includeInactive Whether to include inactive ad units. Default: true.
|
||||
* @param {integer=} params.maxResults The maximum number of ad units to include in the response, used for paging.
|
||||
* @param {string=} params.pageToken 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.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
list: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/adexchangeseller/v1/adclients/{adClientId}/adunits').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['adClientId'],
|
||||
pathParams: ['adClientId'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
},
|
||||
customchannels: {
|
||||
|
||||
/**
|
||||
* adexchangeseller.adunits.customchannels.list
|
||||
*
|
||||
* @desc List all custom channels which the specified ad unit belongs to.
|
||||
*
|
||||
* @alias adexchangeseller.adunits.customchannels.list
|
||||
* @memberOf! adexchangeseller(v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.adClientId Ad client which contains the ad unit.
|
||||
* @param {string} params.adUnitId Ad unit for which to list custom channels.
|
||||
* @param {integer=} params.maxResults The maximum number of custom channels to include in the response, used for paging.
|
||||
* @param {string=} params.pageToken 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.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
list: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/adexchangeseller/v1/adclients/{adClientId}/adunits/{adUnitId}/customchannels').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['adClientId', 'adUnitId'],
|
||||
pathParams: ['adClientId', 'adUnitId'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
self.customchannels = {
|
||||
|
||||
/**
|
||||
* adexchangeseller.customchannels.get
|
||||
*
|
||||
* @desc Get the specified custom channel from the specified ad client.
|
||||
*
|
||||
* @alias adexchangeseller.customchannels.get
|
||||
* @memberOf! adexchangeseller(v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.adClientId Ad client which contains the custom channel.
|
||||
* @param {string} params.customChannelId Custom channel to retrieve.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
get: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/adexchangeseller/v1/adclients/{adClientId}/customchannels/{customChannelId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['adClientId', 'customChannelId'],
|
||||
pathParams: ['adClientId', 'customChannelId'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
},
|
||||
|
||||
/**
|
||||
* adexchangeseller.customchannels.list
|
||||
*
|
||||
* @desc List all custom channels in the specified ad client for this Ad Exchange account.
|
||||
*
|
||||
* @alias adexchangeseller.customchannels.list
|
||||
* @memberOf! adexchangeseller(v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.adClientId Ad client for which to list custom channels.
|
||||
* @param {integer=} params.maxResults The maximum number of custom channels to include in the response, used for paging.
|
||||
* @param {string=} params.pageToken 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.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
list: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/adexchangeseller/v1/adclients/{adClientId}/customchannels').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['adClientId'],
|
||||
pathParams: ['adClientId'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
},
|
||||
adunits: {
|
||||
|
||||
/**
|
||||
* adexchangeseller.customchannels.adunits.list
|
||||
*
|
||||
* @desc List all ad units in the specified custom channel.
|
||||
*
|
||||
* @alias adexchangeseller.customchannels.adunits.list
|
||||
* @memberOf! adexchangeseller(v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.adClientId Ad client which contains the custom channel.
|
||||
* @param {string} params.customChannelId Custom channel for which to list ad units.
|
||||
* @param {boolean=} params.includeInactive Whether to include inactive ad units. Default: true.
|
||||
* @param {integer=} params.maxResults The maximum number of ad units to include in the response, used for paging.
|
||||
* @param {string=} params.pageToken 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.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
list: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/adexchangeseller/v1/adclients/{adClientId}/customchannels/{customChannelId}/adunits').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['adClientId', 'customChannelId'],
|
||||
pathParams: ['adClientId', 'customChannelId'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
self.reports = {
|
||||
|
||||
/**
|
||||
* adexchangeseller.reports.generate
|
||||
*
|
||||
* @desc 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.
|
||||
*
|
||||
* @alias adexchangeseller.reports.generate
|
||||
* @memberOf! adexchangeseller(v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string=} params.dimension Dimensions to base the report on.
|
||||
* @param {string} params.endDate End of the date range to report on in "YYYY-MM-DD" format, inclusive.
|
||||
* @param {string=} params.filter Filters to be run on the report.
|
||||
* @param {string=} params.locale Optional locale to use for translating report output to a local language. Defaults to "en_US" if not specified.
|
||||
* @param {integer=} params.maxResults The maximum number of rows of report data to return.
|
||||
* @param {string=} params.metric Numeric columns to include in the report.
|
||||
* @param {string=} params.sort 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.
|
||||
* @param {string} params.startDate Start of the date range to report on in "YYYY-MM-DD" format, inclusive.
|
||||
* @param {integer=} params.startIndex Index of the first row of report data to return.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
generate: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/adexchangeseller/v1/reports').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['startDate', 'endDate'],
|
||||
pathParams: [],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
},
|
||||
saved: {
|
||||
|
||||
/**
|
||||
* adexchangeseller.reports.saved.generate
|
||||
*
|
||||
* @desc Generate an Ad Exchange report based on the saved report ID sent in the query parameters.
|
||||
*
|
||||
* @alias adexchangeseller.reports.saved.generate
|
||||
* @memberOf! adexchangeseller(v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string=} params.locale Optional locale to use for translating report output to a local language. Defaults to "en_US" if not specified.
|
||||
* @param {integer=} params.maxResults The maximum number of rows of report data to return.
|
||||
* @param {string} params.savedReportId The saved report to retrieve.
|
||||
* @param {integer=} params.startIndex Index of the first row of report data to return.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
generate: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/adexchangeseller/v1/reports/{savedReportId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['savedReportId'],
|
||||
pathParams: ['savedReportId'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
},
|
||||
|
||||
/**
|
||||
* adexchangeseller.reports.saved.list
|
||||
*
|
||||
* @desc List all saved reports in this Ad Exchange account.
|
||||
*
|
||||
* @alias adexchangeseller.reports.saved.list
|
||||
* @memberOf! adexchangeseller(v1)
|
||||
*
|
||||
* @param {object=} params Parameters for request
|
||||
* @param {integer=} params.maxResults The maximum number of saved reports to include in the response, used for paging.
|
||||
* @param {string=} params.pageToken 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.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
list: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/adexchangeseller/v1/reports/saved').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
self.urlchannels = {
|
||||
|
||||
/**
|
||||
* adexchangeseller.urlchannels.list
|
||||
*
|
||||
* @desc List all URL channels in the specified ad client for this Ad Exchange account.
|
||||
*
|
||||
* @alias adexchangeseller.urlchannels.list
|
||||
* @memberOf! adexchangeseller(v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.adClientId Ad client for which to list URL channels.
|
||||
* @param {integer=} params.maxResults The maximum number of URL channels to include in the response, used for paging.
|
||||
* @param {string=} params.pageToken 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.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
list: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/adexchangeseller/v1/adclients/{adClientId}/urlchannels').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['adClientId'],
|
||||
pathParams: ['adClientId'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
}
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* @typedef AdClient
|
||||
* @memberOf! adexchangeseller(v1)
|
||||
* @type object
|
||||
* @property {boolean} arcOptIn Whether this ad client is opted in to ARC.
|
||||
* @property {string} id Unique identifier of this ad client.
|
||||
* @property {string} kind Kind of resource this is, in this case adexchangeseller#adClient.
|
||||
* @property {string} productCode This ad client's product code, which corresponds to the PRODUCT_CODE report dimension.
|
||||
* @property {boolean} supportsReporting Whether this ad client supports being reported on.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef AdClients
|
||||
* @memberOf! adexchangeseller(v1)
|
||||
* @type object
|
||||
* @property {string} etag ETag of this response for caching purposes.
|
||||
* @property {adexchangeseller(v1).AdClient[]} items The ad clients returned in this list response.
|
||||
* @property {string} kind Kind of list this is, in this case adexchangeseller#adClients.
|
||||
* @property {string} nextPageToken Continuation token used to page through ad clients. To retrieve the next page of results, set the next request's "pageToken" value to this.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef AdUnit
|
||||
* @memberOf! adexchangeseller(v1)
|
||||
* @type object
|
||||
* @property {string} code Identity code of this ad unit, not necessarily unique across ad clients.
|
||||
* @property {string} id 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.
|
||||
* @property {string} kind Kind of resource this is, in this case adexchangeseller#adUnit.
|
||||
* @property {string} name Name of this ad unit.
|
||||
* @property {string} status Status of this ad unit. Possible values are:
|
||||
NEW: Indicates that the ad unit was created within the last seven days and does not yet have any activity associated with it.
|
||||
|
||||
ACTIVE: Indicates that there has been activity on this ad unit in the last seven days.
|
||||
|
||||
INACTIVE: Indicates that there has been no activity on this ad unit in the last seven days.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef AdUnits
|
||||
* @memberOf! adexchangeseller(v1)
|
||||
* @type object
|
||||
* @property {string} etag ETag of this response for caching purposes.
|
||||
* @property {adexchangeseller(v1).AdUnit[]} items The ad units returned in this list response.
|
||||
* @property {string} kind Kind of list this is, in this case adexchangeseller#adUnits.
|
||||
* @property {string} nextPageToken Continuation token used to page through ad units. To retrieve the next page of results, set the next request's "pageToken" value to this.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef CustomChannel
|
||||
* @memberOf! adexchangeseller(v1)
|
||||
* @type object
|
||||
* @property {string} code Code of this custom channel, not necessarily unique across ad clients.
|
||||
* @property {string} id 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.
|
||||
* @property {string} kind Kind of resource this is, in this case adexchangeseller#customChannel.
|
||||
* @property {string} name Name of this custom channel.
|
||||
* @property {object} targetingInfo The targeting information of this custom channel, if activated.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef CustomChannels
|
||||
* @memberOf! adexchangeseller(v1)
|
||||
* @type object
|
||||
* @property {string} etag ETag of this response for caching purposes.
|
||||
* @property {adexchangeseller(v1).CustomChannel[]} items The custom channels returned in this list response.
|
||||
* @property {string} kind Kind of list this is, in this case adexchangeseller#customChannels.
|
||||
* @property {string} nextPageToken Continuation token used to page through custom channels. To retrieve the next page of results, set the next request's "pageToken" value to this.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef Report
|
||||
* @memberOf! adexchangeseller(v1)
|
||||
* @type object
|
||||
* @property {string[]} averages The averages of the report. This is the same length as any other row in the report; cells corresponding to dimension columns are empty.
|
||||
* @property {object[]} headers 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.
|
||||
* @property {string} kind Kind this is, in this case adexchangeseller#report.
|
||||
* @property {array[]} rows 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.
|
||||
* @property {string} totalMatchedRows 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.
|
||||
* @property {string[]} totals The totals of the report. This is the same length as any other row in the report; cells corresponding to dimension columns are empty.
|
||||
* @property {string[]} warnings Any warnings associated with generation of the report.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef SavedReport
|
||||
* @memberOf! adexchangeseller(v1)
|
||||
* @type object
|
||||
* @property {string} id Unique identifier of this saved report.
|
||||
* @property {string} kind Kind of resource this is, in this case adexchangeseller#savedReport.
|
||||
* @property {string} name This saved report's name.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef SavedReports
|
||||
* @memberOf! adexchangeseller(v1)
|
||||
* @type object
|
||||
* @property {string} etag ETag of this response for caching purposes.
|
||||
* @property {adexchangeseller(v1).SavedReport[]} items The saved reports returned in this list response.
|
||||
* @property {string} kind Kind of list this is, in this case adexchangeseller#savedReports.
|
||||
* @property {string} nextPageToken Continuation token used to page through saved reports. To retrieve the next page of results, set the next request's "pageToken" value to this.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef UrlChannel
|
||||
* @memberOf! adexchangeseller(v1)
|
||||
* @type object
|
||||
* @property {string} id 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.
|
||||
* @property {string} kind Kind of resource this is, in this case adexchangeseller#urlChannel.
|
||||
* @property {string} urlPattern URL Pattern of this URL channel. Does not include "http://" or "https://". Example: www.example.com/home
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef UrlChannels
|
||||
* @memberOf! adexchangeseller(v1)
|
||||
* @type object
|
||||
* @property {string} etag ETag of this response for caching purposes.
|
||||
* @property {adexchangeseller(v1).UrlChannel[]} items The URL channels returned in this list response.
|
||||
* @property {string} kind Kind of list this is, in this case adexchangeseller#urlChannels.
|
||||
* @property {string} nextPageToken Continuation token used to page through URL channels. To retrieve the next page of results, set the next request's "pageToken" value to this.
|
||||
*/
|
||||
export = Adexchangeseller;
|
||||
551
backend/node_modules/googleapis/apis/adexchangeseller/v2.0.js
generated
vendored
Normal file
551
backend/node_modules/googleapis/apis/adexchangeseller/v2.0.js
generated
vendored
Normal file
@@ -0,0 +1,551 @@
|
||||
"use strict";
|
||||
/**
|
||||
* Copyright 2015 Google Inc. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
/* jshint maxlen: false */
|
||||
const apirequest_1 = require("../../lib/apirequest");
|
||||
/**
|
||||
* Ad Exchange Seller API
|
||||
*
|
||||
* Accesses the inventory of Ad Exchange seller users and generates reports.
|
||||
*
|
||||
* @example
|
||||
* const google = require('googleapis');
|
||||
* const adexchangeseller = google.adexchangeseller('v2.0');
|
||||
*
|
||||
* @namespace adexchangeseller
|
||||
* @type {Function}
|
||||
* @version v2.0
|
||||
* @variation v2.0
|
||||
* @param {object=} options Options for Adexchangeseller
|
||||
*/
|
||||
function Adexchangeseller(options) {
|
||||
const self = this;
|
||||
self._options = options || {};
|
||||
self.accounts = {
|
||||
/**
|
||||
* adexchangeseller.accounts.get
|
||||
*
|
||||
* @desc Get information about the selected Ad Exchange account.
|
||||
*
|
||||
* @alias adexchangeseller.accounts.get
|
||||
* @memberOf! adexchangeseller(v2.0)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.accountId Account to get information about. Tip: 'myaccount' is a valid ID.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
get: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/adexchangeseller/v2.0/accounts/{accountId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['accountId'],
|
||||
pathParams: ['accountId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* adexchangeseller.accounts.list
|
||||
*
|
||||
* @desc List all accounts available to this Ad Exchange account.
|
||||
*
|
||||
* @alias adexchangeseller.accounts.list
|
||||
* @memberOf! adexchangeseller(v2.0)
|
||||
*
|
||||
* @param {object=} params Parameters for request
|
||||
* @param {integer=} params.maxResults The maximum number of accounts to include in the response, used for paging.
|
||||
* @param {string=} params.pageToken A continuation token, used to page through accounts. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
list: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/adexchangeseller/v2.0/accounts').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
adclients: {
|
||||
/**
|
||||
* adexchangeseller.accounts.adclients.list
|
||||
*
|
||||
* @desc List all ad clients in this Ad Exchange account.
|
||||
*
|
||||
* @alias adexchangeseller.accounts.adclients.list
|
||||
* @memberOf! adexchangeseller(v2.0)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.accountId Account to which the ad client belongs.
|
||||
* @param {integer=} params.maxResults The maximum number of ad clients to include in the response, used for paging.
|
||||
* @param {string=} params.pageToken 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.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
list: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/adexchangeseller/v2.0/accounts/{accountId}/adclients').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['accountId'],
|
||||
pathParams: ['accountId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
},
|
||||
alerts: {
|
||||
/**
|
||||
* adexchangeseller.accounts.alerts.list
|
||||
*
|
||||
* @desc List the alerts for this Ad Exchange account.
|
||||
*
|
||||
* @alias adexchangeseller.accounts.alerts.list
|
||||
* @memberOf! adexchangeseller(v2.0)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.accountId Account owning the alerts.
|
||||
* @param {string=} params.locale The locale to use for translating alert messages. The account locale will be used if this is not supplied. The AdSense default (English) will be used if the supplied locale is invalid or unsupported.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
list: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/adexchangeseller/v2.0/accounts/{accountId}/alerts').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['accountId'],
|
||||
pathParams: ['accountId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
},
|
||||
customchannels: {
|
||||
/**
|
||||
* adexchangeseller.accounts.customchannels.get
|
||||
*
|
||||
* @desc Get the specified custom channel from the specified ad client.
|
||||
*
|
||||
* @alias adexchangeseller.accounts.customchannels.get
|
||||
* @memberOf! adexchangeseller(v2.0)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.accountId Account to which the ad client belongs.
|
||||
* @param {string} params.adClientId Ad client which contains the custom channel.
|
||||
* @param {string} params.customChannelId Custom channel to retrieve.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
get: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/adexchangeseller/v2.0/accounts/{accountId}/adclients/{adClientId}/customchannels/{customChannelId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['accountId', 'adClientId', 'customChannelId'],
|
||||
pathParams: ['accountId', 'adClientId', 'customChannelId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* adexchangeseller.accounts.customchannels.list
|
||||
*
|
||||
* @desc List all custom channels in the specified ad client for this Ad Exchange account.
|
||||
*
|
||||
* @alias adexchangeseller.accounts.customchannels.list
|
||||
* @memberOf! adexchangeseller(v2.0)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.accountId Account to which the ad client belongs.
|
||||
* @param {string} params.adClientId Ad client for which to list custom channels.
|
||||
* @param {integer=} params.maxResults The maximum number of custom channels to include in the response, used for paging.
|
||||
* @param {string=} params.pageToken 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.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
list: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/adexchangeseller/v2.0/accounts/{accountId}/adclients/{adClientId}/customchannels').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['accountId', 'adClientId'],
|
||||
pathParams: ['accountId', 'adClientId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
},
|
||||
metadata: {
|
||||
dimensions: {
|
||||
/**
|
||||
* adexchangeseller.accounts.metadata.dimensions.list
|
||||
*
|
||||
* @desc List the metadata for the dimensions available to this AdExchange account.
|
||||
*
|
||||
* @alias adexchangeseller.accounts.metadata.dimensions.list
|
||||
* @memberOf! adexchangeseller(v2.0)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.accountId Account with visibility to the dimensions.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
list: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/adexchangeseller/v2.0/accounts/{accountId}/metadata/dimensions').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['accountId'],
|
||||
pathParams: ['accountId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
},
|
||||
metrics: {
|
||||
/**
|
||||
* adexchangeseller.accounts.metadata.metrics.list
|
||||
*
|
||||
* @desc List the metadata for the metrics available to this AdExchange account.
|
||||
*
|
||||
* @alias adexchangeseller.accounts.metadata.metrics.list
|
||||
* @memberOf! adexchangeseller(v2.0)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.accountId Account with visibility to the metrics.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
list: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/adexchangeseller/v2.0/accounts/{accountId}/metadata/metrics').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['accountId'],
|
||||
pathParams: ['accountId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
}
|
||||
},
|
||||
preferreddeals: {
|
||||
/**
|
||||
* adexchangeseller.accounts.preferreddeals.get
|
||||
*
|
||||
* @desc Get information about the selected Ad Exchange Preferred Deal.
|
||||
*
|
||||
* @alias adexchangeseller.accounts.preferreddeals.get
|
||||
* @memberOf! adexchangeseller(v2.0)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.accountId Account owning the deal.
|
||||
* @param {string} params.dealId Preferred deal to get information about.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
get: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/adexchangeseller/v2.0/accounts/{accountId}/preferreddeals/{dealId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['accountId', 'dealId'],
|
||||
pathParams: ['accountId', 'dealId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* adexchangeseller.accounts.preferreddeals.list
|
||||
*
|
||||
* @desc List the preferred deals for this Ad Exchange account.
|
||||
*
|
||||
* @alias adexchangeseller.accounts.preferreddeals.list
|
||||
* @memberOf! adexchangeseller(v2.0)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.accountId Account owning the deals.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
list: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/adexchangeseller/v2.0/accounts/{accountId}/preferreddeals').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['accountId'],
|
||||
pathParams: ['accountId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
},
|
||||
reports: {
|
||||
/**
|
||||
* adexchangeseller.accounts.reports.generate
|
||||
*
|
||||
* @desc 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.
|
||||
*
|
||||
* @alias adexchangeseller.accounts.reports.generate
|
||||
* @memberOf! adexchangeseller(v2.0)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.accountId Account which owns the generated report.
|
||||
* @param {string=} params.dimension Dimensions to base the report on.
|
||||
* @param {string} params.endDate End of the date range to report on in "YYYY-MM-DD" format, inclusive.
|
||||
* @param {string=} params.filter Filters to be run on the report.
|
||||
* @param {string=} params.locale Optional locale to use for translating report output to a local language. Defaults to "en_US" if not specified.
|
||||
* @param {integer=} params.maxResults The maximum number of rows of report data to return.
|
||||
* @param {string=} params.metric Numeric columns to include in the report.
|
||||
* @param {string=} params.sort 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.
|
||||
* @param {string} params.startDate Start of the date range to report on in "YYYY-MM-DD" format, inclusive.
|
||||
* @param {integer=} params.startIndex Index of the first row of report data to return.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
generate: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/adexchangeseller/v2.0/accounts/{accountId}/reports').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['accountId', 'startDate', 'endDate'],
|
||||
pathParams: ['accountId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
saved: {
|
||||
/**
|
||||
* adexchangeseller.accounts.reports.saved.generate
|
||||
*
|
||||
* @desc Generate an Ad Exchange report based on the saved report ID sent in the query parameters.
|
||||
*
|
||||
* @alias adexchangeseller.accounts.reports.saved.generate
|
||||
* @memberOf! adexchangeseller(v2.0)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.accountId Account owning the saved report.
|
||||
* @param {string=} params.locale Optional locale to use for translating report output to a local language. Defaults to "en_US" if not specified.
|
||||
* @param {integer=} params.maxResults The maximum number of rows of report data to return.
|
||||
* @param {string} params.savedReportId The saved report to retrieve.
|
||||
* @param {integer=} params.startIndex Index of the first row of report data to return.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
generate: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/adexchangeseller/v2.0/accounts/{accountId}/reports/{savedReportId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['accountId', 'savedReportId'],
|
||||
pathParams: ['accountId', 'savedReportId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* adexchangeseller.accounts.reports.saved.list
|
||||
*
|
||||
* @desc List all saved reports in this Ad Exchange account.
|
||||
*
|
||||
* @alias adexchangeseller.accounts.reports.saved.list
|
||||
* @memberOf! adexchangeseller(v2.0)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.accountId Account owning the saved reports.
|
||||
* @param {integer=} params.maxResults The maximum number of saved reports to include in the response, used for paging.
|
||||
* @param {string=} params.pageToken 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.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
list: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/adexchangeseller/v2.0/accounts/{accountId}/reports/saved').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['accountId'],
|
||||
pathParams: ['accountId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
}
|
||||
},
|
||||
urlchannels: {
|
||||
/**
|
||||
* adexchangeseller.accounts.urlchannels.list
|
||||
*
|
||||
* @desc List all URL channels in the specified ad client for this Ad Exchange account.
|
||||
*
|
||||
* @alias adexchangeseller.accounts.urlchannels.list
|
||||
* @memberOf! adexchangeseller(v2.0)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.accountId Account to which the ad client belongs.
|
||||
* @param {string} params.adClientId Ad client for which to list URL channels.
|
||||
* @param {integer=} params.maxResults The maximum number of URL channels to include in the response, used for paging.
|
||||
* @param {string=} params.pageToken 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.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
list: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/adexchangeseller/v2.0/accounts/{accountId}/adclients/{adClientId}/urlchannels').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['accountId', 'adClientId'],
|
||||
pathParams: ['accountId', 'adClientId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
module.exports = Adexchangeseller;
|
||||
//# sourceMappingURL=v2.0.js.map
|
||||
1
backend/node_modules/googleapis/apis/adexchangeseller/v2.0.js.map
generated
vendored
Normal file
1
backend/node_modules/googleapis/apis/adexchangeseller/v2.0.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
783
backend/node_modules/googleapis/apis/adexchangeseller/v2.0.ts
generated
vendored
Normal file
783
backend/node_modules/googleapis/apis/adexchangeseller/v2.0.ts
generated
vendored
Normal file
@@ -0,0 +1,783 @@
|
||||
/**
|
||||
* Copyright 2015 Google Inc. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/* jshint maxlen: false */
|
||||
|
||||
import createAPIRequest from '../../lib/apirequest';
|
||||
|
||||
/**
|
||||
* Ad Exchange Seller API
|
||||
*
|
||||
* Accesses the inventory of Ad Exchange seller users and generates reports.
|
||||
*
|
||||
* @example
|
||||
* const google = require('googleapis');
|
||||
* const adexchangeseller = google.adexchangeseller('v2.0');
|
||||
*
|
||||
* @namespace adexchangeseller
|
||||
* @type {Function}
|
||||
* @version v2.0
|
||||
* @variation v2.0
|
||||
* @param {object=} options Options for Adexchangeseller
|
||||
*/
|
||||
function Adexchangeseller(options) { // eslint-disable-line
|
||||
const self = this;
|
||||
self._options = options || {};
|
||||
|
||||
self.accounts = {
|
||||
|
||||
/**
|
||||
* adexchangeseller.accounts.get
|
||||
*
|
||||
* @desc Get information about the selected Ad Exchange account.
|
||||
*
|
||||
* @alias adexchangeseller.accounts.get
|
||||
* @memberOf! adexchangeseller(v2.0)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.accountId Account to get information about. Tip: 'myaccount' is a valid ID.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
get: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/adexchangeseller/v2.0/accounts/{accountId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['accountId'],
|
||||
pathParams: ['accountId'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
},
|
||||
|
||||
/**
|
||||
* adexchangeseller.accounts.list
|
||||
*
|
||||
* @desc List all accounts available to this Ad Exchange account.
|
||||
*
|
||||
* @alias adexchangeseller.accounts.list
|
||||
* @memberOf! adexchangeseller(v2.0)
|
||||
*
|
||||
* @param {object=} params Parameters for request
|
||||
* @param {integer=} params.maxResults The maximum number of accounts to include in the response, used for paging.
|
||||
* @param {string=} params.pageToken A continuation token, used to page through accounts. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
list: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/adexchangeseller/v2.0/accounts').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
},
|
||||
adclients: {
|
||||
|
||||
/**
|
||||
* adexchangeseller.accounts.adclients.list
|
||||
*
|
||||
* @desc List all ad clients in this Ad Exchange account.
|
||||
*
|
||||
* @alias adexchangeseller.accounts.adclients.list
|
||||
* @memberOf! adexchangeseller(v2.0)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.accountId Account to which the ad client belongs.
|
||||
* @param {integer=} params.maxResults The maximum number of ad clients to include in the response, used for paging.
|
||||
* @param {string=} params.pageToken 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.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
list: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/adexchangeseller/v2.0/accounts/{accountId}/adclients').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['accountId'],
|
||||
pathParams: ['accountId'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
}
|
||||
},
|
||||
alerts: {
|
||||
|
||||
/**
|
||||
* adexchangeseller.accounts.alerts.list
|
||||
*
|
||||
* @desc List the alerts for this Ad Exchange account.
|
||||
*
|
||||
* @alias adexchangeseller.accounts.alerts.list
|
||||
* @memberOf! adexchangeseller(v2.0)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.accountId Account owning the alerts.
|
||||
* @param {string=} params.locale The locale to use for translating alert messages. The account locale will be used if this is not supplied. The AdSense default (English) will be used if the supplied locale is invalid or unsupported.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
list: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/adexchangeseller/v2.0/accounts/{accountId}/alerts').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['accountId'],
|
||||
pathParams: ['accountId'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
}
|
||||
},
|
||||
customchannels: {
|
||||
|
||||
/**
|
||||
* adexchangeseller.accounts.customchannels.get
|
||||
*
|
||||
* @desc Get the specified custom channel from the specified ad client.
|
||||
*
|
||||
* @alias adexchangeseller.accounts.customchannels.get
|
||||
* @memberOf! adexchangeseller(v2.0)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.accountId Account to which the ad client belongs.
|
||||
* @param {string} params.adClientId Ad client which contains the custom channel.
|
||||
* @param {string} params.customChannelId Custom channel to retrieve.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
get: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/adexchangeseller/v2.0/accounts/{accountId}/adclients/{adClientId}/customchannels/{customChannelId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['accountId', 'adClientId', 'customChannelId'],
|
||||
pathParams: ['accountId', 'adClientId', 'customChannelId'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
},
|
||||
|
||||
/**
|
||||
* adexchangeseller.accounts.customchannels.list
|
||||
*
|
||||
* @desc List all custom channels in the specified ad client for this Ad Exchange account.
|
||||
*
|
||||
* @alias adexchangeseller.accounts.customchannels.list
|
||||
* @memberOf! adexchangeseller(v2.0)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.accountId Account to which the ad client belongs.
|
||||
* @param {string} params.adClientId Ad client for which to list custom channels.
|
||||
* @param {integer=} params.maxResults The maximum number of custom channels to include in the response, used for paging.
|
||||
* @param {string=} params.pageToken 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.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
list: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/adexchangeseller/v2.0/accounts/{accountId}/adclients/{adClientId}/customchannels').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['accountId', 'adClientId'],
|
||||
pathParams: ['accountId', 'adClientId'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
}
|
||||
},
|
||||
metadata: {
|
||||
dimensions: {
|
||||
|
||||
/**
|
||||
* adexchangeseller.accounts.metadata.dimensions.list
|
||||
*
|
||||
* @desc List the metadata for the dimensions available to this AdExchange account.
|
||||
*
|
||||
* @alias adexchangeseller.accounts.metadata.dimensions.list
|
||||
* @memberOf! adexchangeseller(v2.0)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.accountId Account with visibility to the dimensions.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
list: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/adexchangeseller/v2.0/accounts/{accountId}/metadata/dimensions').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['accountId'],
|
||||
pathParams: ['accountId'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
}
|
||||
},
|
||||
metrics: {
|
||||
|
||||
/**
|
||||
* adexchangeseller.accounts.metadata.metrics.list
|
||||
*
|
||||
* @desc List the metadata for the metrics available to this AdExchange account.
|
||||
*
|
||||
* @alias adexchangeseller.accounts.metadata.metrics.list
|
||||
* @memberOf! adexchangeseller(v2.0)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.accountId Account with visibility to the metrics.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
list: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/adexchangeseller/v2.0/accounts/{accountId}/metadata/metrics').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['accountId'],
|
||||
pathParams: ['accountId'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
}
|
||||
}
|
||||
},
|
||||
preferreddeals: {
|
||||
|
||||
/**
|
||||
* adexchangeseller.accounts.preferreddeals.get
|
||||
*
|
||||
* @desc Get information about the selected Ad Exchange Preferred Deal.
|
||||
*
|
||||
* @alias adexchangeseller.accounts.preferreddeals.get
|
||||
* @memberOf! adexchangeseller(v2.0)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.accountId Account owning the deal.
|
||||
* @param {string} params.dealId Preferred deal to get information about.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
get: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/adexchangeseller/v2.0/accounts/{accountId}/preferreddeals/{dealId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['accountId', 'dealId'],
|
||||
pathParams: ['accountId', 'dealId'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
},
|
||||
|
||||
/**
|
||||
* adexchangeseller.accounts.preferreddeals.list
|
||||
*
|
||||
* @desc List the preferred deals for this Ad Exchange account.
|
||||
*
|
||||
* @alias adexchangeseller.accounts.preferreddeals.list
|
||||
* @memberOf! adexchangeseller(v2.0)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.accountId Account owning the deals.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
list: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/adexchangeseller/v2.0/accounts/{accountId}/preferreddeals').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['accountId'],
|
||||
pathParams: ['accountId'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
}
|
||||
},
|
||||
reports: {
|
||||
|
||||
/**
|
||||
* adexchangeseller.accounts.reports.generate
|
||||
*
|
||||
* @desc 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.
|
||||
*
|
||||
* @alias adexchangeseller.accounts.reports.generate
|
||||
* @memberOf! adexchangeseller(v2.0)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.accountId Account which owns the generated report.
|
||||
* @param {string=} params.dimension Dimensions to base the report on.
|
||||
* @param {string} params.endDate End of the date range to report on in "YYYY-MM-DD" format, inclusive.
|
||||
* @param {string=} params.filter Filters to be run on the report.
|
||||
* @param {string=} params.locale Optional locale to use for translating report output to a local language. Defaults to "en_US" if not specified.
|
||||
* @param {integer=} params.maxResults The maximum number of rows of report data to return.
|
||||
* @param {string=} params.metric Numeric columns to include in the report.
|
||||
* @param {string=} params.sort 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.
|
||||
* @param {string} params.startDate Start of the date range to report on in "YYYY-MM-DD" format, inclusive.
|
||||
* @param {integer=} params.startIndex Index of the first row of report data to return.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
generate: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/adexchangeseller/v2.0/accounts/{accountId}/reports').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['accountId', 'startDate', 'endDate'],
|
||||
pathParams: ['accountId'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
},
|
||||
saved: {
|
||||
|
||||
/**
|
||||
* adexchangeseller.accounts.reports.saved.generate
|
||||
*
|
||||
* @desc Generate an Ad Exchange report based on the saved report ID sent in the query parameters.
|
||||
*
|
||||
* @alias adexchangeseller.accounts.reports.saved.generate
|
||||
* @memberOf! adexchangeseller(v2.0)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.accountId Account owning the saved report.
|
||||
* @param {string=} params.locale Optional locale to use for translating report output to a local language. Defaults to "en_US" if not specified.
|
||||
* @param {integer=} params.maxResults The maximum number of rows of report data to return.
|
||||
* @param {string} params.savedReportId The saved report to retrieve.
|
||||
* @param {integer=} params.startIndex Index of the first row of report data to return.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
generate: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/adexchangeseller/v2.0/accounts/{accountId}/reports/{savedReportId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['accountId', 'savedReportId'],
|
||||
pathParams: ['accountId', 'savedReportId'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
},
|
||||
|
||||
/**
|
||||
* adexchangeseller.accounts.reports.saved.list
|
||||
*
|
||||
* @desc List all saved reports in this Ad Exchange account.
|
||||
*
|
||||
* @alias adexchangeseller.accounts.reports.saved.list
|
||||
* @memberOf! adexchangeseller(v2.0)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.accountId Account owning the saved reports.
|
||||
* @param {integer=} params.maxResults The maximum number of saved reports to include in the response, used for paging.
|
||||
* @param {string=} params.pageToken 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.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
list: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/adexchangeseller/v2.0/accounts/{accountId}/reports/saved').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['accountId'],
|
||||
pathParams: ['accountId'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
}
|
||||
}
|
||||
},
|
||||
urlchannels: {
|
||||
|
||||
/**
|
||||
* adexchangeseller.accounts.urlchannels.list
|
||||
*
|
||||
* @desc List all URL channels in the specified ad client for this Ad Exchange account.
|
||||
*
|
||||
* @alias adexchangeseller.accounts.urlchannels.list
|
||||
* @memberOf! adexchangeseller(v2.0)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.accountId Account to which the ad client belongs.
|
||||
* @param {string} params.adClientId Ad client for which to list URL channels.
|
||||
* @param {integer=} params.maxResults The maximum number of URL channels to include in the response, used for paging.
|
||||
* @param {string=} params.pageToken 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.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
list: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/adexchangeseller/v2.0/accounts/{accountId}/adclients/{adClientId}/urlchannels').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['accountId', 'adClientId'],
|
||||
pathParams: ['accountId', 'adClientId'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* @typedef Account
|
||||
* @memberOf! adexchangeseller(v2.0)
|
||||
* @type object
|
||||
* @property {string} id Unique identifier of this account.
|
||||
* @property {string} kind Kind of resource this is, in this case adexchangeseller#account.
|
||||
* @property {string} name Name of this account.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef Accounts
|
||||
* @memberOf! adexchangeseller(v2.0)
|
||||
* @type object
|
||||
* @property {string} etag ETag of this response for caching purposes.
|
||||
* @property {adexchangeseller(v2.0).Account[]} items The accounts returned in this list response.
|
||||
* @property {string} kind Kind of list this is, in this case adexchangeseller#accounts.
|
||||
* @property {string} nextPageToken Continuation token used to page through accounts. To retrieve the next page of results, set the next request's "pageToken" value to this.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef AdClient
|
||||
* @memberOf! adexchangeseller(v2.0)
|
||||
* @type object
|
||||
* @property {boolean} arcOptIn Whether this ad client is opted in to ARC.
|
||||
* @property {string} id Unique identifier of this ad client.
|
||||
* @property {string} kind Kind of resource this is, in this case adexchangeseller#adClient.
|
||||
* @property {string} productCode This ad client's product code, which corresponds to the PRODUCT_CODE report dimension.
|
||||
* @property {boolean} supportsReporting Whether this ad client supports being reported on.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef AdClients
|
||||
* @memberOf! adexchangeseller(v2.0)
|
||||
* @type object
|
||||
* @property {string} etag ETag of this response for caching purposes.
|
||||
* @property {adexchangeseller(v2.0).AdClient[]} items The ad clients returned in this list response.
|
||||
* @property {string} kind Kind of list this is, in this case adexchangeseller#adClients.
|
||||
* @property {string} nextPageToken Continuation token used to page through ad clients. To retrieve the next page of results, set the next request's "pageToken" value to this.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef Alert
|
||||
* @memberOf! adexchangeseller(v2.0)
|
||||
* @type object
|
||||
* @property {string} id Unique identifier of this alert. This should be considered an opaque identifier; it is not safe to rely on it being in any particular format.
|
||||
* @property {string} kind Kind of resource this is, in this case adexchangeseller#alert.
|
||||
* @property {string} message The localized alert message.
|
||||
* @property {string} severity Severity of this alert. Possible values: INFO, WARNING, SEVERE.
|
||||
* @property {string} type Type of this alert. Possible values: SELF_HOLD, MIGRATED_TO_BILLING3, ADDRESS_PIN_VERIFICATION, PHONE_PIN_VERIFICATION, CORPORATE_ENTITY, GRAYLISTED_PUBLISHER, API_HOLD.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef Alerts
|
||||
* @memberOf! adexchangeseller(v2.0)
|
||||
* @type object
|
||||
* @property {adexchangeseller(v2.0).Alert[]} items The alerts returned in this list response.
|
||||
* @property {string} kind Kind of list this is, in this case adexchangeseller#alerts.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef CustomChannel
|
||||
* @memberOf! adexchangeseller(v2.0)
|
||||
* @type object
|
||||
* @property {string} code Code of this custom channel, not necessarily unique across ad clients.
|
||||
* @property {string} id 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.
|
||||
* @property {string} kind Kind of resource this is, in this case adexchangeseller#customChannel.
|
||||
* @property {string} name Name of this custom channel.
|
||||
* @property {object} targetingInfo The targeting information of this custom channel, if activated.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef CustomChannels
|
||||
* @memberOf! adexchangeseller(v2.0)
|
||||
* @type object
|
||||
* @property {string} etag ETag of this response for caching purposes.
|
||||
* @property {adexchangeseller(v2.0).CustomChannel[]} items The custom channels returned in this list response.
|
||||
* @property {string} kind Kind of list this is, in this case adexchangeseller#customChannels.
|
||||
* @property {string} nextPageToken Continuation token used to page through custom channels. To retrieve the next page of results, set the next request's "pageToken" value to this.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef Metadata
|
||||
* @memberOf! adexchangeseller(v2.0)
|
||||
* @type object
|
||||
* @property {adexchangeseller(v2.0).ReportingMetadataEntry[]} items
|
||||
* @property {string} kind Kind of list this is, in this case adexchangeseller#metadata.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef PreferredDeal
|
||||
* @memberOf! adexchangeseller(v2.0)
|
||||
* @type object
|
||||
* @property {string} advertiserName The name of the advertiser this deal is for.
|
||||
* @property {string} buyerNetworkName The name of the buyer network this deal is for.
|
||||
* @property {string} currencyCode The currency code that applies to the fixed_cpm value. If not set then assumed to be USD.
|
||||
* @property {string} endTime Time when this deal stops being active in seconds since the epoch (GMT). If not set then this deal is valid until manually disabled by the publisher.
|
||||
* @property {string} fixedCpm The fixed price for this preferred deal. In cpm micros of currency according to currencyCode. If set, then this preferred deal is eligible for the fixed price tier of buying (highest priority, pay exactly the configured fixed price).
|
||||
* @property {string} id Unique identifier of this preferred deal.
|
||||
* @property {string} kind Kind of resource this is, in this case adexchangeseller#preferredDeal.
|
||||
* @property {string} startTime Time when this deal becomes active in seconds since the epoch (GMT). If not set then this deal is active immediately upon creation.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef PreferredDeals
|
||||
* @memberOf! adexchangeseller(v2.0)
|
||||
* @type object
|
||||
* @property {adexchangeseller(v2.0).PreferredDeal[]} items The preferred deals returned in this list response.
|
||||
* @property {string} kind Kind of list this is, in this case adexchangeseller#preferredDeals.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef Report
|
||||
* @memberOf! adexchangeseller(v2.0)
|
||||
* @type object
|
||||
* @property {string[]} averages The averages of the report. This is the same length as any other row in the report; cells corresponding to dimension columns are empty.
|
||||
* @property {object[]} headers 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.
|
||||
* @property {string} kind Kind this is, in this case adexchangeseller#report.
|
||||
* @property {array[]} rows 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.
|
||||
* @property {string} totalMatchedRows 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.
|
||||
* @property {string[]} totals The totals of the report. This is the same length as any other row in the report; cells corresponding to dimension columns are empty.
|
||||
* @property {string[]} warnings Any warnings associated with generation of the report.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef ReportingMetadataEntry
|
||||
* @memberOf! adexchangeseller(v2.0)
|
||||
* @type object
|
||||
* @property {string[]} compatibleDimensions For metrics this is a list of dimension IDs which the metric is compatible with, for dimensions it is a list of compatibility groups the dimension belongs to.
|
||||
* @property {string[]} compatibleMetrics The names of the metrics the dimension or metric this reporting metadata entry describes is compatible with.
|
||||
* @property {string} id Unique identifier of this reporting metadata entry, corresponding to the name of the appropriate dimension or metric.
|
||||
* @property {string} kind Kind of resource this is, in this case adexchangeseller#reportingMetadataEntry.
|
||||
* @property {string[]} requiredDimensions The names of the dimensions which the dimension or metric this reporting metadata entry describes requires to also be present in order for the report to be valid. Omitting these will not cause an error or warning, but may result in data which cannot be correctly interpreted.
|
||||
* @property {string[]} requiredMetrics The names of the metrics which the dimension or metric this reporting metadata entry describes requires to also be present in order for the report to be valid. Omitting these will not cause an error or warning, but may result in data which cannot be correctly interpreted.
|
||||
* @property {string[]} supportedProducts The codes of the projects supported by the dimension or metric this reporting metadata entry describes.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef SavedReport
|
||||
* @memberOf! adexchangeseller(v2.0)
|
||||
* @type object
|
||||
* @property {string} id Unique identifier of this saved report.
|
||||
* @property {string} kind Kind of resource this is, in this case adexchangeseller#savedReport.
|
||||
* @property {string} name This saved report's name.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef SavedReports
|
||||
* @memberOf! adexchangeseller(v2.0)
|
||||
* @type object
|
||||
* @property {string} etag ETag of this response for caching purposes.
|
||||
* @property {adexchangeseller(v2.0).SavedReport[]} items The saved reports returned in this list response.
|
||||
* @property {string} kind Kind of list this is, in this case adexchangeseller#savedReports.
|
||||
* @property {string} nextPageToken Continuation token used to page through saved reports. To retrieve the next page of results, set the next request's "pageToken" value to this.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef UrlChannel
|
||||
* @memberOf! adexchangeseller(v2.0)
|
||||
* @type object
|
||||
* @property {string} id 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.
|
||||
* @property {string} kind Kind of resource this is, in this case adexchangeseller#urlChannel.
|
||||
* @property {string} urlPattern URL Pattern of this URL channel. Does not include "http://" or "https://". Example: www.example.com/home
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef UrlChannels
|
||||
* @memberOf! adexchangeseller(v2.0)
|
||||
* @type object
|
||||
* @property {string} etag ETag of this response for caching purposes.
|
||||
* @property {adexchangeseller(v2.0).UrlChannel[]} items The URL channels returned in this list response.
|
||||
* @property {string} kind Kind of list this is, in this case adexchangeseller#urlChannels.
|
||||
* @property {string} nextPageToken Continuation token used to page through URL channels. To retrieve the next page of results, set the next request's "pageToken" value to this.
|
||||
*/
|
||||
export = Adexchangeseller;
|
||||
108
backend/node_modules/googleapis/apis/adexperiencereport/v1.js
generated
vendored
Normal file
108
backend/node_modules/googleapis/apis/adexperiencereport/v1.js
generated
vendored
Normal file
@@ -0,0 +1,108 @@
|
||||
"use strict";
|
||||
/**
|
||||
* Copyright 2015 Google Inc. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
/* jshint maxlen: false */
|
||||
const apirequest_1 = require("../../lib/apirequest");
|
||||
/**
|
||||
* Google Ad Experience Report API
|
||||
*
|
||||
* View Ad Experience Report data, and get a list of sites that have a significant number of annoying ads.
|
||||
*
|
||||
* @example
|
||||
* const google = require('googleapis');
|
||||
* const adexperiencereport = google.adexperiencereport('v1');
|
||||
*
|
||||
* @namespace adexperiencereport
|
||||
* @type {Function}
|
||||
* @version v1
|
||||
* @variation v1
|
||||
* @param {object=} options Options for Adexperiencereport
|
||||
*/
|
||||
function Adexperiencereport(options) {
|
||||
const self = this;
|
||||
self._options = options || {};
|
||||
self.sites = {
|
||||
/**
|
||||
* adexperiencereport.sites.get
|
||||
*
|
||||
* @desc Gets a summary of the ad experience rating of a site.
|
||||
*
|
||||
* @alias adexperiencereport.sites.get
|
||||
* @memberOf! adexperiencereport(v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.name The required site name. It should be the site property whose ad experiences may have been reviewed, and it should be URL-encoded. For example, sites/https%3A%2F%2Fwww.google.com. The server will return an error of BAD_REQUEST if this field is not filled in. Note that if the site property is not yet verified in Search Console, the reportUrl field returned by the API will lead to the verification page, prompting the user to go through that process before they can gain access to the Ad Experience Report.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
get: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://adexperiencereport.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/{name}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['name'],
|
||||
pathParams: ['name'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
};
|
||||
self.violatingSites = {
|
||||
/**
|
||||
* adexperiencereport.violatingSites.list
|
||||
*
|
||||
* @desc Lists sites with Ad Experience Report statuses of "Failing" or "Warning".
|
||||
*
|
||||
* @alias adexperiencereport.violatingSites.list
|
||||
* @memberOf! adexperiencereport(v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
list: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://adexperiencereport.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/violatingSites').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
};
|
||||
}
|
||||
module.exports = Adexperiencereport;
|
||||
//# sourceMappingURL=v1.js.map
|
||||
1
backend/node_modules/googleapis/apis/adexperiencereport/v1.js.map
generated
vendored
Normal file
1
backend/node_modules/googleapis/apis/adexperiencereport/v1.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"v1.js","sourceRoot":"","sources":["v1.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,0BAA0B;AAE1B,qDAAoD;AAEpD;;;;;;;;;;;;;;GAcG;AACH,4BAA4B,OAAO;IACjC,MAAM,IAAI,GAAG,IAAI,CAAC;IAClB,IAAI,CAAC,QAAQ,GAAG,OAAO,IAAI,EAAE,CAAC;IAE9B,IAAI,CAAC,KAAK,GAAG;QAEX;;;;;;;;;;;;;WAaG;QACH,GAAG,EAAE,UAAU,MAAM,EAAE,OAAO,EAAE,QAAQ;YACtC,EAAE,CAAC,CAAC,OAAO,OAAO,KAAK,UAAU,CAAC,CAAC,CAAC;gBAClC,QAAQ,GAAG,OAAO,CAAC;gBACnB,OAAO,GAAG,EAAE,CAAC;YACf,CAAC;YACD,OAAO,IAAI,CAAC,OAAO,GAAG,EAAE,CAAC,CAAC;YAE1B,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,IAAI,4CAA4C,CAAC;YAEhF,MAAM,UAAU,GAAG;gBACjB,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC;oBACrB,GAAG,EAAE,CAAC,OAAO,GAAG,YAAY,CAAC,CAAC,OAAO,CAAC,cAAc,EAAE,IAAI,CAAC;oBAC3D,MAAM,EAAE,KAAK;iBACd,EAAE,OAAO,CAAC;gBACX,MAAM,EAAE,MAAM;gBACd,cAAc,EAAE,CAAC,MAAM,CAAC;gBACxB,UAAU,EAAE,CAAC,MAAM,CAAC;gBACpB,OAAO,EAAE,IAAI;aACd,CAAC;YAEF,MAAM,CAAC,oBAAgB,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;QAChD,CAAC;KAEF,CAAC;IAEF,IAAI,CAAC,cAAc,GAAG;QAEpB;;;;;;;;;;;;WAYG;QACH,IAAI,EAAE,UAAU,MAAM,EAAE,OAAO,EAAE,QAAQ;YACvC,EAAE,CAAC,CAAC,OAAO,OAAO,KAAK,UAAU,CAAC,CAAC,CAAC;gBAClC,QAAQ,GAAG,OAAO,CAAC;gBACnB,OAAO,GAAG,EAAE,CAAC;YACf,CAAC;YACD,OAAO,IAAI,CAAC,OAAO,GAAG,EAAE,CAAC,CAAC;YAE1B,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,IAAI,4CAA4C,CAAC;YAEhF,MAAM,UAAU,GAAG;gBACjB,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC;oBACrB,GAAG,EAAE,CAAC,OAAO,GAAG,oBAAoB,CAAC,CAAC,OAAO,CAAC,cAAc,EAAE,IAAI,CAAC;oBACnE,MAAM,EAAE,KAAK;iBACd,EAAE,OAAO,CAAC;gBACX,MAAM,EAAE,MAAM;gBACd,cAAc,EAAE,EAAE;gBAClB,UAAU,EAAE,EAAE;gBACd,OAAO,EAAE,IAAI;aACd,CAAC;YAEF,MAAM,CAAC,oBAAgB,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;QAChD,CAAC;KAEF,CAAC;AACJ,CAAC;AA8BD,iBAAS,kBAAkB,CAAC"}
|
||||
150
backend/node_modules/googleapis/apis/adexperiencereport/v1.ts
generated
vendored
Normal file
150
backend/node_modules/googleapis/apis/adexperiencereport/v1.ts
generated
vendored
Normal file
@@ -0,0 +1,150 @@
|
||||
/**
|
||||
* Copyright 2015 Google Inc. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/* jshint maxlen: false */
|
||||
|
||||
import createAPIRequest from '../../lib/apirequest';
|
||||
|
||||
/**
|
||||
* Google Ad Experience Report API
|
||||
*
|
||||
* View Ad Experience Report data, and get a list of sites that have a significant number of annoying ads.
|
||||
*
|
||||
* @example
|
||||
* const google = require('googleapis');
|
||||
* const adexperiencereport = google.adexperiencereport('v1');
|
||||
*
|
||||
* @namespace adexperiencereport
|
||||
* @type {Function}
|
||||
* @version v1
|
||||
* @variation v1
|
||||
* @param {object=} options Options for Adexperiencereport
|
||||
*/
|
||||
function Adexperiencereport(options) { // eslint-disable-line
|
||||
const self = this;
|
||||
self._options = options || {};
|
||||
|
||||
self.sites = {
|
||||
|
||||
/**
|
||||
* adexperiencereport.sites.get
|
||||
*
|
||||
* @desc Gets a summary of the ad experience rating of a site.
|
||||
*
|
||||
* @alias adexperiencereport.sites.get
|
||||
* @memberOf! adexperiencereport(v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.name The required site name. It should be the site property whose ad experiences may have been reviewed, and it should be URL-encoded. For example, sites/https%3A%2F%2Fwww.google.com. The server will return an error of BAD_REQUEST if this field is not filled in. Note that if the site property is not yet verified in Search Console, the reportUrl field returned by the API will lead to the verification page, prompting the user to go through that process before they can gain access to the Ad Experience Report.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
get: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
|
||||
const rootUrl = options.rootUrl || 'https://adexperiencereport.googleapis.com/';
|
||||
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/{name}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['name'],
|
||||
pathParams: ['name'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
self.violatingSites = {
|
||||
|
||||
/**
|
||||
* adexperiencereport.violatingSites.list
|
||||
*
|
||||
* @desc Lists sites with Ad Experience Report statuses of "Failing" or "Warning".
|
||||
*
|
||||
* @alias adexperiencereport.violatingSites.list
|
||||
* @memberOf! adexperiencereport(v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
list: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
|
||||
const rootUrl = options.rootUrl || 'https://adexperiencereport.googleapis.com/';
|
||||
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/violatingSites').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
}
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* @typedef PlatformSummary
|
||||
* @memberOf! adexperiencereport(v1)
|
||||
* @type object
|
||||
* @property {string} betterAdsStatus The status of the site reviewed for the Better Ads Standards.
|
||||
* @property {string} enforcementTime The date on which ad filtering begins.
|
||||
* @property {string} filterStatus The ad filtering status of the site.
|
||||
* @property {string} lastChangeTime The last time that the site changed status.
|
||||
* @property {string[]} region The assigned regions for the site and platform.
|
||||
* @property {string} reportUrl A link that leads to a full ad experience report.
|
||||
* @property {boolean} underReview Whether the site is currently under review.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef SiteSummaryResponse
|
||||
* @memberOf! adexperiencereport(v1)
|
||||
* @type object
|
||||
* @property {adexperiencereport(v1).PlatformSummary} desktopSummary Summary for the desktop review of the site.
|
||||
* @property {adexperiencereport(v1).PlatformSummary} mobileSummary Summary for the mobile review of the site.
|
||||
* @property {string} reviewedSite The name of the site reviewed.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef ViolatingSitesResponse
|
||||
* @memberOf! adexperiencereport(v1)
|
||||
* @type object
|
||||
* @property {adexperiencereport(v1).SiteSummaryResponse[]} violatingSites A list of summaries of violating sites.
|
||||
*/
|
||||
export = Adexperiencereport;
|
||||
215
backend/node_modules/googleapis/apis/admin/datatransfer_v1.js
generated
vendored
Normal file
215
backend/node_modules/googleapis/apis/admin/datatransfer_v1.js
generated
vendored
Normal file
@@ -0,0 +1,215 @@
|
||||
"use strict";
|
||||
/**
|
||||
* Copyright 2015 Google Inc. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
/* jshint maxlen: false */
|
||||
const apirequest_1 = require("../../lib/apirequest");
|
||||
/**
|
||||
* Admin Data Transfer API
|
||||
*
|
||||
* Transfers user data from one user to another.
|
||||
*
|
||||
* @example
|
||||
* const google = require('googleapis');
|
||||
* const admin = google.admin('datatransfer_v1');
|
||||
*
|
||||
* @namespace admin
|
||||
* @type {Function}
|
||||
* @version datatransfer_v1
|
||||
* @variation datatransfer_v1
|
||||
* @param {object=} options Options for Admin
|
||||
*/
|
||||
function Admin(options) {
|
||||
const self = this;
|
||||
self._options = options || {};
|
||||
self.applications = {
|
||||
/**
|
||||
* datatransfer.applications.get
|
||||
*
|
||||
* @desc Retrieves information about an application for the given application ID.
|
||||
*
|
||||
* @alias datatransfer.applications.get
|
||||
* @memberOf! admin(datatransfer_v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.applicationId ID of the application resource to be retrieved.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
get: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/admin/datatransfer/v1/applications/{applicationId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['applicationId'],
|
||||
pathParams: ['applicationId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* datatransfer.applications.list
|
||||
*
|
||||
* @desc Lists the applications available for data transfer for a customer.
|
||||
*
|
||||
* @alias datatransfer.applications.list
|
||||
* @memberOf! admin(datatransfer_v1)
|
||||
*
|
||||
* @param {object=} params Parameters for request
|
||||
* @param {string=} params.customerId Immutable ID of the Google Apps account.
|
||||
* @param {integer=} params.maxResults Maximum number of results to return. Default is 100.
|
||||
* @param {string=} params.pageToken Token to specify next page in the list.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
list: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/admin/datatransfer/v1/applications').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
};
|
||||
self.transfers = {
|
||||
/**
|
||||
* datatransfer.transfers.get
|
||||
*
|
||||
* @desc Retrieves a data transfer request by its resource ID.
|
||||
*
|
||||
* @alias datatransfer.transfers.get
|
||||
* @memberOf! admin(datatransfer_v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.dataTransferId ID of the resource to be retrieved. This is returned in the response from the insert method.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
get: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/admin/datatransfer/v1/transfers/{dataTransferId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['dataTransferId'],
|
||||
pathParams: ['dataTransferId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* datatransfer.transfers.insert
|
||||
*
|
||||
* @desc Inserts a data transfer request.
|
||||
*
|
||||
* @alias datatransfer.transfers.insert
|
||||
* @memberOf! admin(datatransfer_v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {admin(datatransfer_v1).DataTransfer} params.resource Request body data
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
insert: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/admin/datatransfer/v1/transfers').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* datatransfer.transfers.list
|
||||
*
|
||||
* @desc Lists the transfers for a customer by source user, destination user, or status.
|
||||
*
|
||||
* @alias datatransfer.transfers.list
|
||||
* @memberOf! admin(datatransfer_v1)
|
||||
*
|
||||
* @param {object=} params Parameters for request
|
||||
* @param {string=} params.customerId Immutable ID of the Google Apps account.
|
||||
* @param {integer=} params.maxResults Maximum number of results to return. Default is 100.
|
||||
* @param {string=} params.newOwnerUserId Destination user's profile ID.
|
||||
* @param {string=} params.oldOwnerUserId Source user's profile ID.
|
||||
* @param {string=} params.pageToken Token to specify the next page in the list.
|
||||
* @param {string=} params.status Status of the transfer.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
list: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/admin/datatransfer/v1/transfers').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
};
|
||||
}
|
||||
module.exports = Admin;
|
||||
//# sourceMappingURL=datatransfer_v1.js.map
|
||||
1
backend/node_modules/googleapis/apis/admin/datatransfer_v1.js.map
generated
vendored
Normal file
1
backend/node_modules/googleapis/apis/admin/datatransfer_v1.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"datatransfer_v1.js","sourceRoot":"","sources":["datatransfer_v1.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,0BAA0B;AAE1B,qDAAoD;AAEpD;;;;;;;;;;;;;;GAcG;AACH,eAAe,OAAO;IACpB,MAAM,IAAI,GAAG,IAAI,CAAC;IAClB,IAAI,CAAC,QAAQ,GAAG,OAAO,IAAI,EAAE,CAAC;IAE9B,IAAI,CAAC,YAAY,GAAG;QAElB;;;;;;;;;;;;;WAaG;QACH,GAAG,EAAE,UAAU,MAAM,EAAE,OAAO,EAAE,QAAQ;YACtC,EAAE,CAAC,CAAC,OAAO,OAAO,KAAK,UAAU,CAAC,CAAC,CAAC;gBAClC,QAAQ,GAAG,OAAO,CAAC;gBACnB,OAAO,GAAG,EAAE,CAAC;YACf,CAAC;YACD,OAAO,IAAI,CAAC,OAAO,GAAG,EAAE,CAAC,CAAC;YAE1B,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,IAAI,6BAA6B,CAAC;YAEjE,MAAM,UAAU,GAAG;gBACjB,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC;oBACrB,GAAG,EAAE,CAAC,OAAO,GAAG,qDAAqD,CAAC,CAAC,OAAO,CAAC,cAAc,EAAE,IAAI,CAAC;oBACpG,MAAM,EAAE,KAAK;iBACd,EAAE,OAAO,CAAC;gBACX,MAAM,EAAE,MAAM;gBACd,cAAc,EAAE,CAAC,eAAe,CAAC;gBACjC,UAAU,EAAE,CAAC,eAAe,CAAC;gBAC7B,OAAO,EAAE,IAAI;aACd,CAAC;YAEF,MAAM,CAAC,oBAAgB,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;QAChD,CAAC;QAED;;;;;;;;;;;;;;;WAeG;QACH,IAAI,EAAE,UAAU,MAAM,EAAE,OAAO,EAAE,QAAQ;YACvC,EAAE,CAAC,CAAC,OAAO,OAAO,KAAK,UAAU,CAAC,CAAC,CAAC;gBAClC,QAAQ,GAAG,OAAO,CAAC;gBACnB,OAAO,GAAG,EAAE,CAAC;YACf,CAAC;YACD,OAAO,IAAI,CAAC,OAAO,GAAG,EAAE,CAAC,CAAC;YAE1B,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,IAAI,6BAA6B,CAAC;YAEjE,MAAM,UAAU,GAAG;gBACjB,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC;oBACrB,GAAG,EAAE,CAAC,OAAO,GAAG,qCAAqC,CAAC,CAAC,OAAO,CAAC,cAAc,EAAE,IAAI,CAAC;oBACpF,MAAM,EAAE,KAAK;iBACd,EAAE,OAAO,CAAC;gBACX,MAAM,EAAE,MAAM;gBACd,cAAc,EAAE,EAAE;gBAClB,UAAU,EAAE,EAAE;gBACd,OAAO,EAAE,IAAI;aACd,CAAC;YAEF,MAAM,CAAC,oBAAgB,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;QAChD,CAAC;KAEF,CAAC;IAEF,IAAI,CAAC,SAAS,GAAG;QAEf;;;;;;;;;;;;;WAaG;QACH,GAAG,EAAE,UAAU,MAAM,EAAE,OAAO,EAAE,QAAQ;YACtC,EAAE,CAAC,CAAC,OAAO,OAAO,KAAK,UAAU,CAAC,CAAC,CAAC;gBAClC,QAAQ,GAAG,OAAO,CAAC;gBACnB,OAAO,GAAG,EAAE,CAAC;YACf,CAAC;YACD,OAAO,IAAI,CAAC,OAAO,GAAG,EAAE,CAAC,CAAC;YAE1B,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,IAAI,6BAA6B,CAAC;YAEjE,MAAM,UAAU,GAAG;gBACjB,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC;oBACrB,GAAG,EAAE,CAAC,OAAO,GAAG,mDAAmD,CAAC,CAAC,OAAO,CAAC,cAAc,EAAE,IAAI,CAAC;oBAClG,MAAM,EAAE,KAAK;iBACd,EAAE,OAAO,CAAC;gBACX,MAAM,EAAE,MAAM;gBACd,cAAc,EAAE,CAAC,gBAAgB,CAAC;gBAClC,UAAU,EAAE,CAAC,gBAAgB,CAAC;gBAC9B,OAAO,EAAE,IAAI;aACd,CAAC;YAEF,MAAM,CAAC,oBAAgB,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;QAChD,CAAC;QAED;;;;;;;;;;;;;WAaG;QACH,MAAM,EAAE,UAAU,MAAM,EAAE,OAAO,EAAE,QAAQ;YACzC,EAAE,CAAC,CAAC,OAAO,OAAO,KAAK,UAAU,CAAC,CAAC,CAAC;gBAClC,QAAQ,GAAG,OAAO,CAAC;gBACnB,OAAO,GAAG,EAAE,CAAC;YACf,CAAC;YACD,OAAO,IAAI,CAAC,OAAO,GAAG,EAAE,CAAC,CAAC;YAE1B,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,IAAI,6BAA6B,CAAC;YAEjE,MAAM,UAAU,GAAG;gBACjB,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC;oBACrB,GAAG,EAAE,CAAC,OAAO,GAAG,kCAAkC,CAAC,CAAC,OAAO,CAAC,cAAc,EAAE,IAAI,CAAC;oBACjF,MAAM,EAAE,MAAM;iBACf,EAAE,OAAO,CAAC;gBACX,MAAM,EAAE,MAAM;gBACd,cAAc,EAAE,EAAE;gBAClB,UAAU,EAAE,EAAE;gBACd,OAAO,EAAE,IAAI;aACd,CAAC;YAEF,MAAM,CAAC,oBAAgB,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;QAChD,CAAC;QAED;;;;;;;;;;;;;;;;;;WAkBG;QACH,IAAI,EAAE,UAAU,MAAM,EAAE,OAAO,EAAE,QAAQ;YACvC,EAAE,CAAC,CAAC,OAAO,OAAO,KAAK,UAAU,CAAC,CAAC,CAAC;gBAClC,QAAQ,GAAG,OAAO,CAAC;gBACnB,OAAO,GAAG,EAAE,CAAC;YACf,CAAC;YACD,OAAO,IAAI,CAAC,OAAO,GAAG,EAAE,CAAC,CAAC;YAE1B,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,IAAI,6BAA6B,CAAC;YAEjE,MAAM,UAAU,GAAG;gBACjB,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC;oBACrB,GAAG,EAAE,CAAC,OAAO,GAAG,kCAAkC,CAAC,CAAC,OAAO,CAAC,cAAc,EAAE,IAAI,CAAC;oBACjF,MAAM,EAAE,KAAK;iBACd,EAAE,OAAO,CAAC;gBACX,MAAM,EAAE,MAAM;gBACd,cAAc,EAAE,EAAE;gBAClB,UAAU,EAAE,EAAE;gBACd,OAAO,EAAE,IAAI;aACd,CAAC;YAEF,MAAM,CAAC,oBAAgB,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;QAChD,CAAC;KAEF,CAAC;AACJ,CAAC;AA+DD,iBAAS,KAAK,CAAC"}
|
||||
302
backend/node_modules/googleapis/apis/admin/datatransfer_v1.ts
generated
vendored
Normal file
302
backend/node_modules/googleapis/apis/admin/datatransfer_v1.ts
generated
vendored
Normal file
@@ -0,0 +1,302 @@
|
||||
/**
|
||||
* Copyright 2015 Google Inc. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/* jshint maxlen: false */
|
||||
|
||||
import createAPIRequest from '../../lib/apirequest';
|
||||
|
||||
/**
|
||||
* Admin Data Transfer API
|
||||
*
|
||||
* Transfers user data from one user to another.
|
||||
*
|
||||
* @example
|
||||
* const google = require('googleapis');
|
||||
* const admin = google.admin('datatransfer_v1');
|
||||
*
|
||||
* @namespace admin
|
||||
* @type {Function}
|
||||
* @version datatransfer_v1
|
||||
* @variation datatransfer_v1
|
||||
* @param {object=} options Options for Admin
|
||||
*/
|
||||
function Admin(options) { // eslint-disable-line
|
||||
const self = this;
|
||||
self._options = options || {};
|
||||
|
||||
self.applications = {
|
||||
|
||||
/**
|
||||
* datatransfer.applications.get
|
||||
*
|
||||
* @desc Retrieves information about an application for the given application ID.
|
||||
*
|
||||
* @alias datatransfer.applications.get
|
||||
* @memberOf! admin(datatransfer_v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.applicationId ID of the application resource to be retrieved.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
get: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/admin/datatransfer/v1/applications/{applicationId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['applicationId'],
|
||||
pathParams: ['applicationId'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
},
|
||||
|
||||
/**
|
||||
* datatransfer.applications.list
|
||||
*
|
||||
* @desc Lists the applications available for data transfer for a customer.
|
||||
*
|
||||
* @alias datatransfer.applications.list
|
||||
* @memberOf! admin(datatransfer_v1)
|
||||
*
|
||||
* @param {object=} params Parameters for request
|
||||
* @param {string=} params.customerId Immutable ID of the Google Apps account.
|
||||
* @param {integer=} params.maxResults Maximum number of results to return. Default is 100.
|
||||
* @param {string=} params.pageToken Token to specify next page in the list.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
list: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/admin/datatransfer/v1/applications').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
self.transfers = {
|
||||
|
||||
/**
|
||||
* datatransfer.transfers.get
|
||||
*
|
||||
* @desc Retrieves a data transfer request by its resource ID.
|
||||
*
|
||||
* @alias datatransfer.transfers.get
|
||||
* @memberOf! admin(datatransfer_v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.dataTransferId ID of the resource to be retrieved. This is returned in the response from the insert method.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
get: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/admin/datatransfer/v1/transfers/{dataTransferId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['dataTransferId'],
|
||||
pathParams: ['dataTransferId'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
},
|
||||
|
||||
/**
|
||||
* datatransfer.transfers.insert
|
||||
*
|
||||
* @desc Inserts a data transfer request.
|
||||
*
|
||||
* @alias datatransfer.transfers.insert
|
||||
* @memberOf! admin(datatransfer_v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {admin(datatransfer_v1).DataTransfer} params.resource Request body data
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
insert: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/admin/datatransfer/v1/transfers').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
},
|
||||
|
||||
/**
|
||||
* datatransfer.transfers.list
|
||||
*
|
||||
* @desc Lists the transfers for a customer by source user, destination user, or status.
|
||||
*
|
||||
* @alias datatransfer.transfers.list
|
||||
* @memberOf! admin(datatransfer_v1)
|
||||
*
|
||||
* @param {object=} params Parameters for request
|
||||
* @param {string=} params.customerId Immutable ID of the Google Apps account.
|
||||
* @param {integer=} params.maxResults Maximum number of results to return. Default is 100.
|
||||
* @param {string=} params.newOwnerUserId Destination user's profile ID.
|
||||
* @param {string=} params.oldOwnerUserId Source user's profile ID.
|
||||
* @param {string=} params.pageToken Token to specify the next page in the list.
|
||||
* @param {string=} params.status Status of the transfer.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
list: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/admin/datatransfer/v1/transfers').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
}
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* @typedef Application
|
||||
* @memberOf! admin(datatransfer_v1)
|
||||
* @type object
|
||||
* @property {string} etag Etag of the resource.
|
||||
* @property {string} id The application's ID.
|
||||
* @property {string} kind Identifies the resource as a DataTransfer Application Resource.
|
||||
* @property {string} name The application's name.
|
||||
* @property {admin(datatransfer_v1).ApplicationTransferParam[]} transferParams 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.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef ApplicationDataTransfer
|
||||
* @memberOf! admin(datatransfer_v1)
|
||||
* @type object
|
||||
* @property {string} applicationId The application's ID.
|
||||
* @property {admin(datatransfer_v1).ApplicationTransferParam[]} applicationTransferParams The transfer parameters for the application. These parameters are used to select the data which will get transfered in context of this application.
|
||||
* @property {string} applicationTransferStatus Current status of transfer for this application. (Read-only)
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef ApplicationTransferParam
|
||||
* @memberOf! admin(datatransfer_v1)
|
||||
* @type object
|
||||
* @property {string} key The type of the transfer parameter. eg: 'PRIVACY_LEVEL'
|
||||
* @property {string[]} value The value of the coressponding transfer parameter. eg: 'PRIVATE' or 'SHARED'
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef ApplicationsListResponse
|
||||
* @memberOf! admin(datatransfer_v1)
|
||||
* @type object
|
||||
* @property {admin(datatransfer_v1).Application[]} applications List of applications that support data transfer and are also installed for the customer.
|
||||
* @property {string} etag ETag of the resource.
|
||||
* @property {string} kind Identifies the resource as a collection of Applications.
|
||||
* @property {string} nextPageToken Continuation token which will be used to specify next page in list API.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef DataTransfer
|
||||
* @memberOf! admin(datatransfer_v1)
|
||||
* @type object
|
||||
* @property {admin(datatransfer_v1).ApplicationDataTransfer[]} applicationDataTransfers 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.
|
||||
* @property {string} etag ETag of the resource.
|
||||
* @property {string} id The transfer's ID (Read-only).
|
||||
* @property {string} kind Identifies the resource as a DataTransfer request.
|
||||
* @property {string} newOwnerUserId ID of the user to whom the data is being transfered.
|
||||
* @property {string} oldOwnerUserId ID of the user whose data is being transfered.
|
||||
* @property {string} overallTransferStatusCode Overall transfer status (Read-only).
|
||||
* @property {string} requestTime The time at which the data transfer was requested (Read-only).
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef DataTransfersListResponse
|
||||
* @memberOf! admin(datatransfer_v1)
|
||||
* @type object
|
||||
* @property {admin(datatransfer_v1).DataTransfer[]} dataTransfers List of data transfer requests.
|
||||
* @property {string} etag ETag of the resource.
|
||||
* @property {string} kind Identifies the resource as a collection of data transfer requests.
|
||||
* @property {string} nextPageToken Continuation token which will be used to specify next page in list API.
|
||||
*/
|
||||
export = Admin;
|
||||
3434
backend/node_modules/googleapis/apis/admin/directory_v1.js
generated
vendored
Normal file
3434
backend/node_modules/googleapis/apis/admin/directory_v1.js
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1
backend/node_modules/googleapis/apis/admin/directory_v1.js.map
generated
vendored
Normal file
1
backend/node_modules/googleapis/apis/admin/directory_v1.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
4648
backend/node_modules/googleapis/apis/admin/directory_v1.ts
generated
vendored
Normal file
4648
backend/node_modules/googleapis/apis/admin/directory_v1.ts
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
240
backend/node_modules/googleapis/apis/admin/reports_v1.js
generated
vendored
Normal file
240
backend/node_modules/googleapis/apis/admin/reports_v1.js
generated
vendored
Normal file
@@ -0,0 +1,240 @@
|
||||
"use strict";
|
||||
/**
|
||||
* Copyright 2015 Google Inc. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
/* jshint maxlen: false */
|
||||
const apirequest_1 = require("../../lib/apirequest");
|
||||
/**
|
||||
* Admin Reports API
|
||||
*
|
||||
* Fetches reports for the administrators of G Suite customers about the usage, collaboration, security, and risk for their users.
|
||||
*
|
||||
* @example
|
||||
* const google = require('googleapis');
|
||||
* const admin = google.admin('reports_v1');
|
||||
*
|
||||
* @namespace admin
|
||||
* @type {Function}
|
||||
* @version reports_v1
|
||||
* @variation reports_v1
|
||||
* @param {object=} options Options for Admin
|
||||
*/
|
||||
function Admin(options) {
|
||||
const self = this;
|
||||
self._options = options || {};
|
||||
self.activities = {
|
||||
/**
|
||||
* reports.activities.list
|
||||
*
|
||||
* @desc Retrieves a list of activities for a specific customer and application.
|
||||
*
|
||||
* @alias reports.activities.list
|
||||
* @memberOf! admin(reports_v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string=} params.actorIpAddress IP Address of host where the event was performed. Supports both IPv4 and IPv6 addresses.
|
||||
* @param {string} params.applicationName Application name for which the events are to be retrieved.
|
||||
* @param {string=} params.customerId Represents the customer for which the data is to be fetched.
|
||||
* @param {string=} params.endTime Return events which occurred at or before this time.
|
||||
* @param {string=} params.eventName Name of the event being queried.
|
||||
* @param {string=} params.filters Event parameters in the form [parameter1 name][operator][parameter1 value],[parameter2 name][operator][parameter2 value],...
|
||||
* @param {integer=} params.maxResults Number of activity records to be shown in each page.
|
||||
* @param {string=} params.pageToken Token to specify next page.
|
||||
* @param {string=} params.startTime Return events which occurred at or after this time.
|
||||
* @param {string} params.userKey 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.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
list: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/admin/reports/v1/activity/users/{userKey}/applications/{applicationName}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['userKey', 'applicationName'],
|
||||
pathParams: ['applicationName', 'userKey'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* reports.activities.watch
|
||||
*
|
||||
* @desc Push changes to activities
|
||||
*
|
||||
* @alias reports.activities.watch
|
||||
* @memberOf! admin(reports_v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string=} params.actorIpAddress IP Address of host where the event was performed. Supports both IPv4 and IPv6 addresses.
|
||||
* @param {string} params.applicationName Application name for which the events are to be retrieved.
|
||||
* @param {string=} params.customerId Represents the customer for which the data is to be fetched.
|
||||
* @param {string=} params.endTime Return events which occurred at or before this time.
|
||||
* @param {string=} params.eventName Name of the event being queried.
|
||||
* @param {string=} params.filters Event parameters in the form [parameter1 name][operator][parameter1 value],[parameter2 name][operator][parameter2 value],...
|
||||
* @param {integer=} params.maxResults Number of activity records to be shown in each page.
|
||||
* @param {string=} params.pageToken Token to specify next page.
|
||||
* @param {string=} params.startTime Return events which occurred at or after this time.
|
||||
* @param {string} params.userKey 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.
|
||||
* @param {admin(reports_v1).Channel} params.resource Request body data
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
watch: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/admin/reports/v1/activity/users/{userKey}/applications/{applicationName}/watch').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['userKey', 'applicationName'],
|
||||
pathParams: ['applicationName', 'userKey'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
};
|
||||
self.channels = {
|
||||
/**
|
||||
* admin.channels.stop
|
||||
*
|
||||
* @desc Stop watching resources through this channel
|
||||
*
|
||||
* @alias admin.channels.stop
|
||||
* @memberOf! admin(reports_v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {admin(reports_v1).Channel} params.resource Request body data
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
stop: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/admin/reports/v1/admin/reports_v1/channels/stop').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
};
|
||||
self.customerUsageReports = {
|
||||
/**
|
||||
* reports.customerUsageReports.get
|
||||
*
|
||||
* @desc Retrieves a report which is a collection of properties / statistics for a specific customer.
|
||||
*
|
||||
* @alias reports.customerUsageReports.get
|
||||
* @memberOf! admin(reports_v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string=} params.customerId Represents the customer for which the data is to be fetched.
|
||||
* @param {string} params.date Represents the date in yyyy-mm-dd format for which the data is to be fetched.
|
||||
* @param {string=} params.pageToken Token to specify next page.
|
||||
* @param {string=} params.parameters Represents the application name, parameter name pairs to fetch in csv as app_name1:param_name1, app_name2:param_name2.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
get: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/admin/reports/v1/usage/dates/{date}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['date'],
|
||||
pathParams: ['date'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
};
|
||||
self.userUsageReport = {
|
||||
/**
|
||||
* reports.userUsageReport.get
|
||||
*
|
||||
* @desc Retrieves a report which is a collection of properties / statistics for a set of users.
|
||||
*
|
||||
* @alias reports.userUsageReport.get
|
||||
* @memberOf! admin(reports_v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string=} params.customerId Represents the customer for which the data is to be fetched.
|
||||
* @param {string} params.date Represents the date in yyyy-mm-dd format for which the data is to be fetched.
|
||||
* @param {string=} params.filters Represents the set of filters including parameter operator value.
|
||||
* @param {integer=} params.maxResults Maximum number of results to return. Maximum allowed is 1000
|
||||
* @param {string=} params.pageToken Token to specify next page.
|
||||
* @param {string=} params.parameters Represents the application name, parameter name pairs to fetch in csv as app_name1:param_name1, app_name2:param_name2.
|
||||
* @param {string} params.userKey Represents the profile id or the user email for which the data should be filtered.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
get: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/admin/reports/v1/usage/users/{userKey}/dates/{date}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['userKey', 'date'],
|
||||
pathParams: ['date', 'userKey'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
};
|
||||
}
|
||||
module.exports = Admin;
|
||||
//# sourceMappingURL=reports_v1.js.map
|
||||
1
backend/node_modules/googleapis/apis/admin/reports_v1.js.map
generated
vendored
Normal file
1
backend/node_modules/googleapis/apis/admin/reports_v1.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"reports_v1.js","sourceRoot":"","sources":["reports_v1.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,0BAA0B;AAE1B,qDAAoD;AAEpD;;;;;;;;;;;;;;GAcG;AACH,eAAe,OAAO;IACpB,MAAM,IAAI,GAAG,IAAI,CAAC;IAClB,IAAI,CAAC,QAAQ,GAAG,OAAO,IAAI,EAAE,CAAC;IAE9B,IAAI,CAAC,UAAU,GAAG;QAEhB;;;;;;;;;;;;;;;;;;;;;;WAsBG;QACH,IAAI,EAAE,UAAU,MAAM,EAAE,OAAO,EAAE,QAAQ;YACvC,EAAE,CAAC,CAAC,OAAO,OAAO,KAAK,UAAU,CAAC,CAAC,CAAC;gBAClC,QAAQ,GAAG,OAAO,CAAC;gBACnB,OAAO,GAAG,EAAE,CAAC;YACf,CAAC;YACD,OAAO,IAAI,CAAC,OAAO,GAAG,EAAE,CAAC,CAAC;YAE1B,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,IAAI,6BAA6B,CAAC;YAEjE,MAAM,UAAU,GAAG;gBACjB,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC;oBACrB,GAAG,EAAE,CAAC,OAAO,GAAG,2EAA2E,CAAC,CAAC,OAAO,CAAC,cAAc,EAAE,IAAI,CAAC;oBAC1H,MAAM,EAAE,KAAK;iBACd,EAAE,OAAO,CAAC;gBACX,MAAM,EAAE,MAAM;gBACd,cAAc,EAAE,CAAC,SAAS,EAAE,iBAAiB,CAAC;gBAC9C,UAAU,EAAE,CAAC,iBAAiB,EAAE,SAAS,CAAC;gBAC1C,OAAO,EAAE,IAAI;aACd,CAAC;YAEF,MAAM,CAAC,oBAAgB,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;QAChD,CAAC;QAED;;;;;;;;;;;;;;;;;;;;;;;WAuBG;QACH,KAAK,EAAE,UAAU,MAAM,EAAE,OAAO,EAAE,QAAQ;YACxC,EAAE,CAAC,CAAC,OAAO,OAAO,KAAK,UAAU,CAAC,CAAC,CAAC;gBAClC,QAAQ,GAAG,OAAO,CAAC;gBACnB,OAAO,GAAG,EAAE,CAAC;YACf,CAAC;YACD,OAAO,IAAI,CAAC,OAAO,GAAG,EAAE,CAAC,CAAC;YAE1B,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,IAAI,6BAA6B,CAAC;YAEjE,MAAM,UAAU,GAAG;gBACjB,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC;oBACrB,GAAG,EAAE,CAAC,OAAO,GAAG,iFAAiF,CAAC,CAAC,OAAO,CAAC,cAAc,EAAE,IAAI,CAAC;oBAChI,MAAM,EAAE,MAAM;iBACf,EAAE,OAAO,CAAC;gBACX,MAAM,EAAE,MAAM;gBACd,cAAc,EAAE,CAAC,SAAS,EAAE,iBAAiB,CAAC;gBAC9C,UAAU,EAAE,CAAC,iBAAiB,EAAE,SAAS,CAAC;gBAC1C,OAAO,EAAE,IAAI;aACd,CAAC;YAEF,MAAM,CAAC,oBAAgB,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;QAChD,CAAC;KAEF,CAAC;IAEF,IAAI,CAAC,QAAQ,GAAG;QAEd;;;;;;;;;;;;;WAaG;QACH,IAAI,EAAE,UAAU,MAAM,EAAE,OAAO,EAAE,QAAQ;YACvC,EAAE,CAAC,CAAC,OAAO,OAAO,KAAK,UAAU,CAAC,CAAC,CAAC;gBAClC,QAAQ,GAAG,OAAO,CAAC;gBACnB,OAAO,GAAG,EAAE,CAAC;YACf,CAAC;YACD,OAAO,IAAI,CAAC,OAAO,GAAG,EAAE,CAAC,CAAC;YAE1B,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,IAAI,6BAA6B,CAAC;YAEjE,MAAM,UAAU,GAAG;gBACjB,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC;oBACrB,GAAG,EAAE,CAAC,OAAO,GAAG,kDAAkD,CAAC,CAAC,OAAO,CAAC,cAAc,EAAE,IAAI,CAAC;oBACjG,MAAM,EAAE,MAAM;iBACf,EAAE,OAAO,CAAC;gBACX,MAAM,EAAE,MAAM;gBACd,cAAc,EAAE,EAAE;gBAClB,UAAU,EAAE,EAAE;gBACd,OAAO,EAAE,IAAI;aACd,CAAC;YAEF,MAAM,CAAC,oBAAgB,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;QAChD,CAAC;KAEF,CAAC;IAEF,IAAI,CAAC,oBAAoB,GAAG;QAE1B;;;;;;;;;;;;;;;;WAgBG;QACH,GAAG,EAAE,UAAU,MAAM,EAAE,OAAO,EAAE,QAAQ;YACtC,EAAE,CAAC,CAAC,OAAO,OAAO,KAAK,UAAU,CAAC,CAAC,CAAC;gBAClC,QAAQ,GAAG,OAAO,CAAC;gBACnB,OAAO,GAAG,EAAE,CAAC;YACf,CAAC;YACD,OAAO,IAAI,CAAC,OAAO,GAAG,EAAE,CAAC,CAAC;YAE1B,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,IAAI,6BAA6B,CAAC;YAEjE,MAAM,UAAU,GAAG;gBACjB,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC;oBACrB,GAAG,EAAE,CAAC,OAAO,GAAG,sCAAsC,CAAC,CAAC,OAAO,CAAC,cAAc,EAAE,IAAI,CAAC;oBACrF,MAAM,EAAE,KAAK;iBACd,EAAE,OAAO,CAAC;gBACX,MAAM,EAAE,MAAM;gBACd,cAAc,EAAE,CAAC,MAAM,CAAC;gBACxB,UAAU,EAAE,CAAC,MAAM,CAAC;gBACpB,OAAO,EAAE,IAAI;aACd,CAAC;YAEF,MAAM,CAAC,oBAAgB,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;QAChD,CAAC;KAEF,CAAC;IAEF,IAAI,CAAC,eAAe,GAAG;QAErB;;;;;;;;;;;;;;;;;;;WAmBG;QACH,GAAG,EAAE,UAAU,MAAM,EAAE,OAAO,EAAE,QAAQ;YACtC,EAAE,CAAC,CAAC,OAAO,OAAO,KAAK,UAAU,CAAC,CAAC,CAAC;gBAClC,QAAQ,GAAG,OAAO,CAAC;gBACnB,OAAO,GAAG,EAAE,CAAC;YACf,CAAC;YACD,OAAO,IAAI,CAAC,OAAO,GAAG,EAAE,CAAC,CAAC;YAE1B,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,IAAI,6BAA6B,CAAC;YAEjE,MAAM,UAAU,GAAG;gBACjB,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC;oBACrB,GAAG,EAAE,CAAC,OAAO,GAAG,sDAAsD,CAAC,CAAC,OAAO,CAAC,cAAc,EAAE,IAAI,CAAC;oBACrG,MAAM,EAAE,KAAK;iBACd,EAAE,OAAO,CAAC;gBACX,MAAM,EAAE,MAAM;gBACd,cAAc,EAAE,CAAC,SAAS,EAAE,MAAM,CAAC;gBACnC,UAAU,EAAE,CAAC,MAAM,EAAE,SAAS,CAAC;gBAC/B,OAAO,EAAE,IAAI;aACd,CAAC;YAEF,MAAM,CAAC,oBAAgB,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;QAChD,CAAC;KAEF,CAAC;AACJ,CAAC;AA8DD,iBAAS,KAAK,CAAC"}
|
||||
330
backend/node_modules/googleapis/apis/admin/reports_v1.ts
generated
vendored
Normal file
330
backend/node_modules/googleapis/apis/admin/reports_v1.ts
generated
vendored
Normal file
@@ -0,0 +1,330 @@
|
||||
/**
|
||||
* Copyright 2015 Google Inc. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/* jshint maxlen: false */
|
||||
|
||||
import createAPIRequest from '../../lib/apirequest';
|
||||
|
||||
/**
|
||||
* Admin Reports API
|
||||
*
|
||||
* Fetches reports for the administrators of G Suite customers about the usage, collaboration, security, and risk for their users.
|
||||
*
|
||||
* @example
|
||||
* const google = require('googleapis');
|
||||
* const admin = google.admin('reports_v1');
|
||||
*
|
||||
* @namespace admin
|
||||
* @type {Function}
|
||||
* @version reports_v1
|
||||
* @variation reports_v1
|
||||
* @param {object=} options Options for Admin
|
||||
*/
|
||||
function Admin(options) { // eslint-disable-line
|
||||
const self = this;
|
||||
self._options = options || {};
|
||||
|
||||
self.activities = {
|
||||
|
||||
/**
|
||||
* reports.activities.list
|
||||
*
|
||||
* @desc Retrieves a list of activities for a specific customer and application.
|
||||
*
|
||||
* @alias reports.activities.list
|
||||
* @memberOf! admin(reports_v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string=} params.actorIpAddress IP Address of host where the event was performed. Supports both IPv4 and IPv6 addresses.
|
||||
* @param {string} params.applicationName Application name for which the events are to be retrieved.
|
||||
* @param {string=} params.customerId Represents the customer for which the data is to be fetched.
|
||||
* @param {string=} params.endTime Return events which occurred at or before this time.
|
||||
* @param {string=} params.eventName Name of the event being queried.
|
||||
* @param {string=} params.filters Event parameters in the form [parameter1 name][operator][parameter1 value],[parameter2 name][operator][parameter2 value],...
|
||||
* @param {integer=} params.maxResults Number of activity records to be shown in each page.
|
||||
* @param {string=} params.pageToken Token to specify next page.
|
||||
* @param {string=} params.startTime Return events which occurred at or after this time.
|
||||
* @param {string} params.userKey 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.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
list: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/admin/reports/v1/activity/users/{userKey}/applications/{applicationName}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['userKey', 'applicationName'],
|
||||
pathParams: ['applicationName', 'userKey'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
},
|
||||
|
||||
/**
|
||||
* reports.activities.watch
|
||||
*
|
||||
* @desc Push changes to activities
|
||||
*
|
||||
* @alias reports.activities.watch
|
||||
* @memberOf! admin(reports_v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string=} params.actorIpAddress IP Address of host where the event was performed. Supports both IPv4 and IPv6 addresses.
|
||||
* @param {string} params.applicationName Application name for which the events are to be retrieved.
|
||||
* @param {string=} params.customerId Represents the customer for which the data is to be fetched.
|
||||
* @param {string=} params.endTime Return events which occurred at or before this time.
|
||||
* @param {string=} params.eventName Name of the event being queried.
|
||||
* @param {string=} params.filters Event parameters in the form [parameter1 name][operator][parameter1 value],[parameter2 name][operator][parameter2 value],...
|
||||
* @param {integer=} params.maxResults Number of activity records to be shown in each page.
|
||||
* @param {string=} params.pageToken Token to specify next page.
|
||||
* @param {string=} params.startTime Return events which occurred at or after this time.
|
||||
* @param {string} params.userKey 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.
|
||||
* @param {admin(reports_v1).Channel} params.resource Request body data
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
watch: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/admin/reports/v1/activity/users/{userKey}/applications/{applicationName}/watch').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['userKey', 'applicationName'],
|
||||
pathParams: ['applicationName', 'userKey'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
self.channels = {
|
||||
|
||||
/**
|
||||
* admin.channels.stop
|
||||
*
|
||||
* @desc Stop watching resources through this channel
|
||||
*
|
||||
* @alias admin.channels.stop
|
||||
* @memberOf! admin(reports_v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {admin(reports_v1).Channel} params.resource Request body data
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
stop: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/admin/reports/v1/admin/reports_v1/channels/stop').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
self.customerUsageReports = {
|
||||
|
||||
/**
|
||||
* reports.customerUsageReports.get
|
||||
*
|
||||
* @desc Retrieves a report which is a collection of properties / statistics for a specific customer.
|
||||
*
|
||||
* @alias reports.customerUsageReports.get
|
||||
* @memberOf! admin(reports_v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string=} params.customerId Represents the customer for which the data is to be fetched.
|
||||
* @param {string} params.date Represents the date in yyyy-mm-dd format for which the data is to be fetched.
|
||||
* @param {string=} params.pageToken Token to specify next page.
|
||||
* @param {string=} params.parameters Represents the application name, parameter name pairs to fetch in csv as app_name1:param_name1, app_name2:param_name2.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
get: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/admin/reports/v1/usage/dates/{date}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['date'],
|
||||
pathParams: ['date'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
self.userUsageReport = {
|
||||
|
||||
/**
|
||||
* reports.userUsageReport.get
|
||||
*
|
||||
* @desc Retrieves a report which is a collection of properties / statistics for a set of users.
|
||||
*
|
||||
* @alias reports.userUsageReport.get
|
||||
* @memberOf! admin(reports_v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string=} params.customerId Represents the customer for which the data is to be fetched.
|
||||
* @param {string} params.date Represents the date in yyyy-mm-dd format for which the data is to be fetched.
|
||||
* @param {string=} params.filters Represents the set of filters including parameter operator value.
|
||||
* @param {integer=} params.maxResults Maximum number of results to return. Maximum allowed is 1000
|
||||
* @param {string=} params.pageToken Token to specify next page.
|
||||
* @param {string=} params.parameters Represents the application name, parameter name pairs to fetch in csv as app_name1:param_name1, app_name2:param_name2.
|
||||
* @param {string} params.userKey Represents the profile id or the user email for which the data should be filtered.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
get: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/admin/reports/v1/usage/users/{userKey}/dates/{date}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['userKey', 'date'],
|
||||
pathParams: ['date', 'userKey'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
}
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* @typedef Activities
|
||||
* @memberOf! admin(reports_v1)
|
||||
* @type object
|
||||
* @property {string} etag ETag of the resource.
|
||||
* @property {admin(reports_v1).Activity[]} items Each record in read response.
|
||||
* @property {string} kind Kind of list response this is.
|
||||
* @property {string} nextPageToken Token for retrieving the next page
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef Activity
|
||||
* @memberOf! admin(reports_v1)
|
||||
* @type object
|
||||
* @property {object} actor User doing the action.
|
||||
* @property {string} etag ETag of the entry.
|
||||
* @property {object[]} events Activity events.
|
||||
* @property {object} id Unique identifier for each activity record.
|
||||
* @property {string} ipAddress IP Address of the user doing the action.
|
||||
* @property {string} kind Kind of resource this is.
|
||||
* @property {string} ownerDomain Domain of source customer.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef Channel
|
||||
* @memberOf! admin(reports_v1)
|
||||
* @type object
|
||||
* @property {string} address The address where notifications are delivered for this channel.
|
||||
* @property {string} expiration Date and time of notification channel expiration, expressed as a Unix timestamp, in milliseconds. Optional.
|
||||
* @property {string} id A UUID or similar unique string that identifies this channel.
|
||||
* @property {string} kind Identifies this as a notification channel used to watch for changes to a resource. Value: the fixed string "api#channel".
|
||||
* @property {object} params Additional parameters controlling delivery channel behavior. Optional.
|
||||
* @property {boolean} payload A Boolean value to indicate whether payload is wanted. Optional.
|
||||
* @property {string} resourceId An opaque ID that identifies the resource being watched on this channel. Stable across different API versions.
|
||||
* @property {string} resourceUri A version-specific identifier for the watched resource.
|
||||
* @property {string} token An arbitrary string delivered to the target address with each notification delivered over this channel. Optional.
|
||||
* @property {string} type The type of delivery mechanism used for this channel.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef UsageReport
|
||||
* @memberOf! admin(reports_v1)
|
||||
* @type object
|
||||
* @property {string} date The date to which the record belongs.
|
||||
* @property {object} entity Information about the type of the item.
|
||||
* @property {string} etag ETag of the resource.
|
||||
* @property {string} kind The kind of object.
|
||||
* @property {object[]} parameters Parameter value pairs for various applications.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef UsageReports
|
||||
* @memberOf! admin(reports_v1)
|
||||
* @type object
|
||||
* @property {string} etag ETag of the resource.
|
||||
* @property {string} kind The kind of object.
|
||||
* @property {string} nextPageToken Token for retrieving the next page
|
||||
* @property {admin(reports_v1).UsageReport[]} usageReports Various application parameter records.
|
||||
* @property {object[]} warnings Warnings if any.
|
||||
*/
|
||||
export = Admin;
|
||||
1427
backend/node_modules/googleapis/apis/adsense/v1.4.js
generated
vendored
Normal file
1427
backend/node_modules/googleapis/apis/adsense/v1.4.js
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1
backend/node_modules/googleapis/apis/adsense/v1.4.js.map
generated
vendored
Normal file
1
backend/node_modules/googleapis/apis/adsense/v1.4.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
1842
backend/node_modules/googleapis/apis/adsense/v1.4.ts
generated
vendored
Normal file
1842
backend/node_modules/googleapis/apis/adsense/v1.4.ts
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
969
backend/node_modules/googleapis/apis/adsensehost/v4.1.js
generated
vendored
Normal file
969
backend/node_modules/googleapis/apis/adsensehost/v4.1.js
generated
vendored
Normal file
@@ -0,0 +1,969 @@
|
||||
"use strict";
|
||||
/**
|
||||
* Copyright 2015 Google Inc. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
/* jshint maxlen: false */
|
||||
const apirequest_1 = require("../../lib/apirequest");
|
||||
/**
|
||||
* AdSense Host API
|
||||
*
|
||||
* Generates performance reports, generates ad codes, and provides publisher management capabilities for AdSense Hosts.
|
||||
*
|
||||
* @example
|
||||
* const google = require('googleapis');
|
||||
* const adsensehost = google.adsensehost('v4.1');
|
||||
*
|
||||
* @namespace adsensehost
|
||||
* @type {Function}
|
||||
* @version v4.1
|
||||
* @variation v4.1
|
||||
* @param {object=} options Options for Adsensehost
|
||||
*/
|
||||
function Adsensehost(options) {
|
||||
const self = this;
|
||||
self._options = options || {};
|
||||
self.accounts = {
|
||||
/**
|
||||
* adsensehost.accounts.get
|
||||
*
|
||||
* @desc Get information about the selected associated AdSense account.
|
||||
*
|
||||
* @alias adsensehost.accounts.get
|
||||
* @memberOf! adsensehost(v4.1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.accountId Account to get information about.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
get: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/adsensehost/v4.1/accounts/{accountId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['accountId'],
|
||||
pathParams: ['accountId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* adsensehost.accounts.list
|
||||
*
|
||||
* @desc List hosted accounts associated with this AdSense account by ad client id.
|
||||
*
|
||||
* @alias adsensehost.accounts.list
|
||||
* @memberOf! adsensehost(v4.1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.filterAdClientId Ad clients to list accounts for.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
list: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/adsensehost/v4.1/accounts').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['filterAdClientId'],
|
||||
pathParams: [],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
adclients: {
|
||||
/**
|
||||
* adsensehost.accounts.adclients.get
|
||||
*
|
||||
* @desc Get information about one of the ad clients in the specified publisher's AdSense account.
|
||||
*
|
||||
* @alias adsensehost.accounts.adclients.get
|
||||
* @memberOf! adsensehost(v4.1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.accountId Account which contains the ad client.
|
||||
* @param {string} params.adClientId Ad client to get.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
get: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/adsensehost/v4.1/accounts/{accountId}/adclients/{adClientId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['accountId', 'adClientId'],
|
||||
pathParams: ['accountId', 'adClientId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* adsensehost.accounts.adclients.list
|
||||
*
|
||||
* @desc List all hosted ad clients in the specified hosted account.
|
||||
*
|
||||
* @alias adsensehost.accounts.adclients.list
|
||||
* @memberOf! adsensehost(v4.1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.accountId Account for which to list ad clients.
|
||||
* @param {integer=} params.maxResults The maximum number of ad clients to include in the response, used for paging.
|
||||
* @param {string=} params.pageToken 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.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
list: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/adsensehost/v4.1/accounts/{accountId}/adclients').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['accountId'],
|
||||
pathParams: ['accountId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
},
|
||||
adunits: {
|
||||
/**
|
||||
* adsensehost.accounts.adunits.delete
|
||||
*
|
||||
* @desc Delete the specified ad unit from the specified publisher AdSense account.
|
||||
*
|
||||
* @alias adsensehost.accounts.adunits.delete
|
||||
* @memberOf! adsensehost(v4.1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.accountId Account which contains the ad unit.
|
||||
* @param {string} params.adClientId Ad client for which to get ad unit.
|
||||
* @param {string} params.adUnitId Ad unit to delete.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
delete: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/adsensehost/v4.1/accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'DELETE'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['accountId', 'adClientId', 'adUnitId'],
|
||||
pathParams: ['accountId', 'adClientId', 'adUnitId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* adsensehost.accounts.adunits.get
|
||||
*
|
||||
* @desc Get the specified host ad unit in this AdSense account.
|
||||
*
|
||||
* @alias adsensehost.accounts.adunits.get
|
||||
* @memberOf! adsensehost(v4.1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.accountId Account which contains the ad unit.
|
||||
* @param {string} params.adClientId Ad client for which to get ad unit.
|
||||
* @param {string} params.adUnitId Ad unit to get.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
get: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/adsensehost/v4.1/accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['accountId', 'adClientId', 'adUnitId'],
|
||||
pathParams: ['accountId', 'adClientId', 'adUnitId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* adsensehost.accounts.adunits.getAdCode
|
||||
*
|
||||
* @desc Get ad code for the specified ad unit, attaching the specified host custom channels.
|
||||
*
|
||||
* @alias adsensehost.accounts.adunits.getAdCode
|
||||
* @memberOf! adsensehost(v4.1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.accountId Account which contains the ad client.
|
||||
* @param {string} params.adClientId Ad client with contains the ad unit.
|
||||
* @param {string} params.adUnitId Ad unit to get the code for.
|
||||
* @param {string=} params.hostCustomChannelId Host custom channel to attach to the ad code.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
getAdCode: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/adsensehost/v4.1/accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}/adcode').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['accountId', 'adClientId', 'adUnitId'],
|
||||
pathParams: ['accountId', 'adClientId', 'adUnitId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* adsensehost.accounts.adunits.insert
|
||||
*
|
||||
* @desc Insert the supplied ad unit into the specified publisher AdSense account.
|
||||
*
|
||||
* @alias adsensehost.accounts.adunits.insert
|
||||
* @memberOf! adsensehost(v4.1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.accountId Account which will contain the ad unit.
|
||||
* @param {string} params.adClientId Ad client into which to insert the ad unit.
|
||||
* @param {adsensehost(v4.1).AdUnit} params.resource Request body data
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
insert: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/adsensehost/v4.1/accounts/{accountId}/adclients/{adClientId}/adunits').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['accountId', 'adClientId'],
|
||||
pathParams: ['accountId', 'adClientId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* adsensehost.accounts.adunits.list
|
||||
*
|
||||
* @desc List all ad units in the specified publisher's AdSense account.
|
||||
*
|
||||
* @alias adsensehost.accounts.adunits.list
|
||||
* @memberOf! adsensehost(v4.1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.accountId Account which contains the ad client.
|
||||
* @param {string} params.adClientId Ad client for which to list ad units.
|
||||
* @param {boolean=} params.includeInactive Whether to include inactive ad units. Default: true.
|
||||
* @param {integer=} params.maxResults The maximum number of ad units to include in the response, used for paging.
|
||||
* @param {string=} params.pageToken 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.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
list: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/adsensehost/v4.1/accounts/{accountId}/adclients/{adClientId}/adunits').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['accountId', 'adClientId'],
|
||||
pathParams: ['accountId', 'adClientId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* adsensehost.accounts.adunits.patch
|
||||
*
|
||||
* @desc Update the supplied ad unit in the specified publisher AdSense account. This method supports patch semantics.
|
||||
*
|
||||
* @alias adsensehost.accounts.adunits.patch
|
||||
* @memberOf! adsensehost(v4.1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.accountId Account which contains the ad client.
|
||||
* @param {string} params.adClientId Ad client which contains the ad unit.
|
||||
* @param {string} params.adUnitId Ad unit to get.
|
||||
* @param {adsensehost(v4.1).AdUnit} params.resource Request body data
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
patch: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/adsensehost/v4.1/accounts/{accountId}/adclients/{adClientId}/adunits').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'PATCH'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['accountId', 'adClientId', 'adUnitId'],
|
||||
pathParams: ['accountId', 'adClientId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* adsensehost.accounts.adunits.update
|
||||
*
|
||||
* @desc Update the supplied ad unit in the specified publisher AdSense account.
|
||||
*
|
||||
* @alias adsensehost.accounts.adunits.update
|
||||
* @memberOf! adsensehost(v4.1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.accountId Account which contains the ad client.
|
||||
* @param {string} params.adClientId Ad client which contains the ad unit.
|
||||
* @param {adsensehost(v4.1).AdUnit} params.resource Request body data
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
update: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/adsensehost/v4.1/accounts/{accountId}/adclients/{adClientId}/adunits').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'PUT'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['accountId', 'adClientId'],
|
||||
pathParams: ['accountId', 'adClientId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
},
|
||||
reports: {
|
||||
/**
|
||||
* adsensehost.accounts.reports.generate
|
||||
*
|
||||
* @desc Generate an AdSense 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.
|
||||
*
|
||||
* @alias adsensehost.accounts.reports.generate
|
||||
* @memberOf! adsensehost(v4.1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.accountId Hosted account upon which to report.
|
||||
* @param {string=} params.dimension Dimensions to base the report on.
|
||||
* @param {string} params.endDate End of the date range to report on in "YYYY-MM-DD" format, inclusive.
|
||||
* @param {string=} params.filter Filters to be run on the report.
|
||||
* @param {string=} params.locale Optional locale to use for translating report output to a local language. Defaults to "en_US" if not specified.
|
||||
* @param {integer=} params.maxResults The maximum number of rows of report data to return.
|
||||
* @param {string=} params.metric Numeric columns to include in the report.
|
||||
* @param {string=} params.sort 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.
|
||||
* @param {string} params.startDate Start of the date range to report on in "YYYY-MM-DD" format, inclusive.
|
||||
* @param {integer=} params.startIndex Index of the first row of report data to return.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
generate: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/adsensehost/v4.1/accounts/{accountId}/reports').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['accountId', 'startDate', 'endDate'],
|
||||
pathParams: ['accountId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
}
|
||||
};
|
||||
self.adclients = {
|
||||
/**
|
||||
* adsensehost.adclients.get
|
||||
*
|
||||
* @desc Get information about one of the ad clients in the Host AdSense account.
|
||||
*
|
||||
* @alias adsensehost.adclients.get
|
||||
* @memberOf! adsensehost(v4.1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.adClientId Ad client to get.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
get: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/adsensehost/v4.1/adclients/{adClientId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['adClientId'],
|
||||
pathParams: ['adClientId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* adsensehost.adclients.list
|
||||
*
|
||||
* @desc List all host ad clients in this AdSense account.
|
||||
*
|
||||
* @alias adsensehost.adclients.list
|
||||
* @memberOf! adsensehost(v4.1)
|
||||
*
|
||||
* @param {object=} params Parameters for request
|
||||
* @param {integer=} params.maxResults The maximum number of ad clients to include in the response, used for paging.
|
||||
* @param {string=} params.pageToken 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.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
list: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/adsensehost/v4.1/adclients').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
};
|
||||
self.associationsessions = {
|
||||
/**
|
||||
* adsensehost.associationsessions.start
|
||||
*
|
||||
* @desc Create an association session for initiating an association with an AdSense user.
|
||||
*
|
||||
* @alias adsensehost.associationsessions.start
|
||||
* @memberOf! adsensehost(v4.1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.productCode Products to associate with the user.
|
||||
* @param {string=} params.userLocale The preferred locale of the user.
|
||||
* @param {string=} params.websiteLocale The locale of the user's hosted website.
|
||||
* @param {string} params.websiteUrl The URL of the user's hosted website.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
start: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/adsensehost/v4.1/associationsessions/start').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['productCode', 'websiteUrl'],
|
||||
pathParams: [],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* adsensehost.associationsessions.verify
|
||||
*
|
||||
* @desc Verify an association session after the association callback returns from AdSense signup.
|
||||
*
|
||||
* @alias adsensehost.associationsessions.verify
|
||||
* @memberOf! adsensehost(v4.1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.token The token returned to the association callback URL.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
verify: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/adsensehost/v4.1/associationsessions/verify').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['token'],
|
||||
pathParams: [],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
};
|
||||
self.customchannels = {
|
||||
/**
|
||||
* adsensehost.customchannels.delete
|
||||
*
|
||||
* @desc Delete a specific custom channel from the host AdSense account.
|
||||
*
|
||||
* @alias adsensehost.customchannels.delete
|
||||
* @memberOf! adsensehost(v4.1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.adClientId Ad client from which to delete the custom channel.
|
||||
* @param {string} params.customChannelId Custom channel to delete.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
delete: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/adsensehost/v4.1/adclients/{adClientId}/customchannels/{customChannelId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'DELETE'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['adClientId', 'customChannelId'],
|
||||
pathParams: ['adClientId', 'customChannelId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* adsensehost.customchannels.get
|
||||
*
|
||||
* @desc Get a specific custom channel from the host AdSense account.
|
||||
*
|
||||
* @alias adsensehost.customchannels.get
|
||||
* @memberOf! adsensehost(v4.1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.adClientId Ad client from which to get the custom channel.
|
||||
* @param {string} params.customChannelId Custom channel to get.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
get: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/adsensehost/v4.1/adclients/{adClientId}/customchannels/{customChannelId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['adClientId', 'customChannelId'],
|
||||
pathParams: ['adClientId', 'customChannelId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* adsensehost.customchannels.insert
|
||||
*
|
||||
* @desc Add a new custom channel to the host AdSense account.
|
||||
*
|
||||
* @alias adsensehost.customchannels.insert
|
||||
* @memberOf! adsensehost(v4.1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.adClientId Ad client to which the new custom channel will be added.
|
||||
* @param {adsensehost(v4.1).CustomChannel} params.resource Request body data
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
insert: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/adsensehost/v4.1/adclients/{adClientId}/customchannels').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['adClientId'],
|
||||
pathParams: ['adClientId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* adsensehost.customchannels.list
|
||||
*
|
||||
* @desc List all host custom channels in this AdSense account.
|
||||
*
|
||||
* @alias adsensehost.customchannels.list
|
||||
* @memberOf! adsensehost(v4.1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.adClientId Ad client for which to list custom channels.
|
||||
* @param {integer=} params.maxResults The maximum number of custom channels to include in the response, used for paging.
|
||||
* @param {string=} params.pageToken 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.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
list: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/adsensehost/v4.1/adclients/{adClientId}/customchannels').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['adClientId'],
|
||||
pathParams: ['adClientId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* adsensehost.customchannels.patch
|
||||
*
|
||||
* @desc Update a custom channel in the host AdSense account. This method supports patch semantics.
|
||||
*
|
||||
* @alias adsensehost.customchannels.patch
|
||||
* @memberOf! adsensehost(v4.1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.adClientId Ad client in which the custom channel will be updated.
|
||||
* @param {string} params.customChannelId Custom channel to get.
|
||||
* @param {adsensehost(v4.1).CustomChannel} params.resource Request body data
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
patch: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/adsensehost/v4.1/adclients/{adClientId}/customchannels').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'PATCH'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['adClientId', 'customChannelId'],
|
||||
pathParams: ['adClientId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* adsensehost.customchannels.update
|
||||
*
|
||||
* @desc Update a custom channel in the host AdSense account.
|
||||
*
|
||||
* @alias adsensehost.customchannels.update
|
||||
* @memberOf! adsensehost(v4.1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.adClientId Ad client in which the custom channel will be updated.
|
||||
* @param {adsensehost(v4.1).CustomChannel} params.resource Request body data
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
update: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/adsensehost/v4.1/adclients/{adClientId}/customchannels').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'PUT'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['adClientId'],
|
||||
pathParams: ['adClientId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
};
|
||||
self.reports = {
|
||||
/**
|
||||
* adsensehost.reports.generate
|
||||
*
|
||||
* @desc Generate an AdSense 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.
|
||||
*
|
||||
* @alias adsensehost.reports.generate
|
||||
* @memberOf! adsensehost(v4.1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string=} params.dimension Dimensions to base the report on.
|
||||
* @param {string} params.endDate End of the date range to report on in "YYYY-MM-DD" format, inclusive.
|
||||
* @param {string=} params.filter Filters to be run on the report.
|
||||
* @param {string=} params.locale Optional locale to use for translating report output to a local language. Defaults to "en_US" if not specified.
|
||||
* @param {integer=} params.maxResults The maximum number of rows of report data to return.
|
||||
* @param {string=} params.metric Numeric columns to include in the report.
|
||||
* @param {string=} params.sort 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.
|
||||
* @param {string} params.startDate Start of the date range to report on in "YYYY-MM-DD" format, inclusive.
|
||||
* @param {integer=} params.startIndex Index of the first row of report data to return.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
generate: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/adsensehost/v4.1/reports').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['startDate', 'endDate'],
|
||||
pathParams: [],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
};
|
||||
self.urlchannels = {
|
||||
/**
|
||||
* adsensehost.urlchannels.delete
|
||||
*
|
||||
* @desc Delete a URL channel from the host AdSense account.
|
||||
*
|
||||
* @alias adsensehost.urlchannels.delete
|
||||
* @memberOf! adsensehost(v4.1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.adClientId Ad client from which to delete the URL channel.
|
||||
* @param {string} params.urlChannelId URL channel to delete.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
delete: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/adsensehost/v4.1/adclients/{adClientId}/urlchannels/{urlChannelId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'DELETE'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['adClientId', 'urlChannelId'],
|
||||
pathParams: ['adClientId', 'urlChannelId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* adsensehost.urlchannels.insert
|
||||
*
|
||||
* @desc Add a new URL channel to the host AdSense account.
|
||||
*
|
||||
* @alias adsensehost.urlchannels.insert
|
||||
* @memberOf! adsensehost(v4.1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.adClientId Ad client to which the new URL channel will be added.
|
||||
* @param {adsensehost(v4.1).UrlChannel} params.resource Request body data
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
insert: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/adsensehost/v4.1/adclients/{adClientId}/urlchannels').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['adClientId'],
|
||||
pathParams: ['adClientId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* adsensehost.urlchannels.list
|
||||
*
|
||||
* @desc List all host URL channels in the host AdSense account.
|
||||
*
|
||||
* @alias adsensehost.urlchannels.list
|
||||
* @memberOf! adsensehost(v4.1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.adClientId Ad client for which to list URL channels.
|
||||
* @param {integer=} params.maxResults The maximum number of URL channels to include in the response, used for paging.
|
||||
* @param {string=} params.pageToken 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.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
list: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/adsensehost/v4.1/adclients/{adClientId}/urlchannels').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['adClientId'],
|
||||
pathParams: ['adClientId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
};
|
||||
}
|
||||
module.exports = Adsensehost;
|
||||
//# sourceMappingURL=v4.1.js.map
|
||||
1
backend/node_modules/googleapis/apis/adsensehost/v4.1.js.map
generated
vendored
Normal file
1
backend/node_modules/googleapis/apis/adsensehost/v4.1.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
1239
backend/node_modules/googleapis/apis/adsensehost/v4.1.ts
generated
vendored
Normal file
1239
backend/node_modules/googleapis/apis/adsensehost/v4.1.ts
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
271
backend/node_modules/googleapis/apis/analytics/v2.4.js
generated
vendored
Normal file
271
backend/node_modules/googleapis/apis/analytics/v2.4.js
generated
vendored
Normal file
@@ -0,0 +1,271 @@
|
||||
"use strict";
|
||||
/**
|
||||
* Copyright 2015 Google Inc. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
/* jshint maxlen: false */
|
||||
const apirequest_1 = require("../../lib/apirequest");
|
||||
/**
|
||||
* Google Analytics API
|
||||
*
|
||||
* Views and manages your Google Analytics data.
|
||||
*
|
||||
* @example
|
||||
* const google = require('googleapis');
|
||||
* const analytics = google.analytics('v2.4');
|
||||
*
|
||||
* @namespace analytics
|
||||
* @type {Function}
|
||||
* @version v2.4
|
||||
* @variation v2.4
|
||||
* @param {object=} options Options for Analytics
|
||||
*/
|
||||
function Analytics(options) {
|
||||
const self = this;
|
||||
self._options = options || {};
|
||||
self.data = {
|
||||
/**
|
||||
* analytics.data.get
|
||||
*
|
||||
* @desc Returns Analytics report data for a view (profile).
|
||||
*
|
||||
* @alias analytics.data.get
|
||||
* @memberOf! analytics(v2.4)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string=} params.dimensions A comma-separated list of Analytics dimensions. E.g., 'ga:browser,ga:city'.
|
||||
* @param {string} params.end-date End date for fetching report data. All requests should specify an end date formatted as YYYY-MM-DD.
|
||||
* @param {string=} params.filters A comma-separated list of dimension or metric filters to be applied to the report data.
|
||||
* @param {string} params.ids Unique table ID for retrieving report data. Table ID is of the form ga:XXXX, where XXXX is the Analytics view (profile) ID.
|
||||
* @param {integer=} params.max-results The maximum number of entries to include in this feed.
|
||||
* @param {string} params.metrics 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.
|
||||
* @param {string=} params.segment An Analytics advanced segment to be applied to the report data.
|
||||
* @param {string=} params.sort A comma-separated list of dimensions or metrics that determine the sort order for the report data.
|
||||
* @param {string} params.start-date Start date for fetching report data. All requests should specify a start date formatted as YYYY-MM-DD.
|
||||
* @param {integer=} params.start-index An index of the first entity to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
get: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/analytics/v2.4/data').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['ids', 'start-date', 'end-date', 'metrics'],
|
||||
pathParams: [],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
};
|
||||
self.management = {
|
||||
accounts: {
|
||||
/**
|
||||
* analytics.management.accounts.list
|
||||
*
|
||||
* @desc Lists all accounts to which the user has access.
|
||||
*
|
||||
* @alias analytics.management.accounts.list
|
||||
* @memberOf! analytics(v2.4)
|
||||
*
|
||||
* @param {object=} params Parameters for request
|
||||
* @param {integer=} params.max-results The maximum number of accounts to include in this response.
|
||||
* @param {integer=} params.start-index An index of the first account to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
list: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/analytics/v2.4/management/accounts').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
},
|
||||
goals: {
|
||||
/**
|
||||
* analytics.management.goals.list
|
||||
*
|
||||
* @desc Lists goals to which the user has access.
|
||||
*
|
||||
* @alias analytics.management.goals.list
|
||||
* @memberOf! analytics(v2.4)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.accountId 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.
|
||||
* @param {integer=} params.max-results The maximum number of goals to include in this response.
|
||||
* @param {string} params.profileId 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.
|
||||
* @param {integer=} params.start-index An index of the first goal to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.
|
||||
* @param {string} params.webPropertyId 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.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
list: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/analytics/v2.4/management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/goals').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['accountId', 'webPropertyId', 'profileId'],
|
||||
pathParams: ['accountId', 'profileId', 'webPropertyId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
},
|
||||
profiles: {
|
||||
/**
|
||||
* analytics.management.profiles.list
|
||||
*
|
||||
* @desc Lists views (profiles) to which the user has access.
|
||||
*
|
||||
* @alias analytics.management.profiles.list
|
||||
* @memberOf! analytics(v2.4)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.accountId 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.
|
||||
* @param {integer=} params.max-results The maximum number of views (profiles) to include in this response.
|
||||
* @param {integer=} params.start-index An index of the first entity to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.
|
||||
* @param {string} params.webPropertyId 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.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
list: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/analytics/v2.4/management/accounts/{accountId}/webproperties/{webPropertyId}/profiles').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['accountId', 'webPropertyId'],
|
||||
pathParams: ['accountId', 'webPropertyId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
},
|
||||
segments: {
|
||||
/**
|
||||
* analytics.management.segments.list
|
||||
*
|
||||
* @desc Lists advanced segments to which the user has access.
|
||||
*
|
||||
* @alias analytics.management.segments.list
|
||||
* @memberOf! analytics(v2.4)
|
||||
*
|
||||
* @param {object=} params Parameters for request
|
||||
* @param {integer=} params.max-results The maximum number of advanced segments to include in this response.
|
||||
* @param {integer=} params.start-index An index of the first advanced segment to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
list: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/analytics/v2.4/management/segments').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
},
|
||||
webproperties: {
|
||||
/**
|
||||
* analytics.management.webproperties.list
|
||||
*
|
||||
* @desc Lists web properties to which the user has access.
|
||||
*
|
||||
* @alias analytics.management.webproperties.list
|
||||
* @memberOf! analytics(v2.4)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.accountId 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.
|
||||
* @param {integer=} params.max-results The maximum number of web properties to include in this response.
|
||||
* @param {integer=} params.start-index An index of the first entity to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
list: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/analytics/v2.4/management/accounts/{accountId}/webproperties').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['accountId'],
|
||||
pathParams: ['accountId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
module.exports = Analytics;
|
||||
//# sourceMappingURL=v2.4.js.map
|
||||
1
backend/node_modules/googleapis/apis/analytics/v2.4.js.map
generated
vendored
Normal file
1
backend/node_modules/googleapis/apis/analytics/v2.4.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"v2.4.js","sourceRoot":"","sources":["v2.4.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,0BAA0B;AAE1B,qDAAoD;AAEpD;;;;;;;;;;;;;;GAcG;AACH,mBAAmB,OAAO;IACxB,MAAM,IAAI,GAAG,IAAI,CAAC;IAClB,IAAI,CAAC,QAAQ,GAAG,OAAO,IAAI,EAAE,CAAC;IAE9B,IAAI,CAAC,IAAI,GAAG;QAEV;;;;;;;;;;;;;;;;;;;;;;WAsBG;QACH,GAAG,EAAE,UAAU,MAAM,EAAE,OAAO,EAAE,QAAQ;YACtC,EAAE,CAAC,CAAC,OAAO,OAAO,KAAK,UAAU,CAAC,CAAC,CAAC;gBAClC,QAAQ,GAAG,OAAO,CAAC;gBACnB,OAAO,GAAG,EAAE,CAAC;YACf,CAAC;YACD,OAAO,IAAI,CAAC,OAAO,GAAG,EAAE,CAAC,CAAC;YAE1B,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,IAAI,6BAA6B,CAAC;YAEjE,MAAM,UAAU,GAAG;gBACjB,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC;oBACrB,GAAG,EAAE,CAAC,OAAO,GAAG,sBAAsB,CAAC,CAAC,OAAO,CAAC,cAAc,EAAE,IAAI,CAAC;oBACrE,MAAM,EAAE,KAAK;iBACd,EAAE,OAAO,CAAC;gBACX,MAAM,EAAE,MAAM;gBACd,cAAc,EAAE,CAAC,KAAK,EAAE,YAAY,EAAE,UAAU,EAAE,SAAS,CAAC;gBAC5D,UAAU,EAAE,EAAE;gBACd,OAAO,EAAE,IAAI;aACd,CAAC;YAEF,MAAM,CAAC,oBAAgB,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;QAChD,CAAC;KAEF,CAAC;IAEF,IAAI,CAAC,UAAU,GAAG;QAChB,QAAQ,EAAE;YAER;;;;;;;;;;;;;;eAcG;YACH,IAAI,EAAE,UAAU,MAAM,EAAE,OAAO,EAAE,QAAQ;gBACvC,EAAE,CAAC,CAAC,OAAO,OAAO,KAAK,UAAU,CAAC,CAAC,CAAC;oBAClC,QAAQ,GAAG,OAAO,CAAC;oBACnB,OAAO,GAAG,EAAE,CAAC;gBACf,CAAC;gBACD,OAAO,IAAI,CAAC,OAAO,GAAG,EAAE,CAAC,CAAC;gBAE1B,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,IAAI,6BAA6B,CAAC;gBAEjE,MAAM,UAAU,GAAG;oBACjB,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC;wBACrB,GAAG,EAAE,CAAC,OAAO,GAAG,qCAAqC,CAAC,CAAC,OAAO,CAAC,cAAc,EAAE,IAAI,CAAC;wBACpF,MAAM,EAAE,KAAK;qBACd,EAAE,OAAO,CAAC;oBACX,MAAM,EAAE,MAAM;oBACd,cAAc,EAAE,EAAE;oBAClB,UAAU,EAAE,EAAE;oBACd,OAAO,EAAE,IAAI;iBACd,CAAC;gBAEF,MAAM,CAAC,oBAAgB,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;YAChD,CAAC;SACF;QACD,KAAK,EAAE;YAEL;;;;;;;;;;;;;;;;;eAiBG;YACH,IAAI,EAAE,UAAU,MAAM,EAAE,OAAO,EAAE,QAAQ;gBACvC,EAAE,CAAC,CAAC,OAAO,OAAO,KAAK,UAAU,CAAC,CAAC,CAAC;oBAClC,QAAQ,GAAG,OAAO,CAAC;oBACnB,OAAO,GAAG,EAAE,CAAC;gBACf,CAAC;gBACD,OAAO,IAAI,CAAC,OAAO,GAAG,EAAE,CAAC,CAAC;gBAE1B,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,IAAI,6BAA6B,CAAC;gBAEjE,MAAM,UAAU,GAAG;oBACjB,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC;wBACrB,GAAG,EAAE,CAAC,OAAO,GAAG,0GAA0G,CAAC,CAAC,OAAO,CAAC,cAAc,EAAE,IAAI,CAAC;wBACzJ,MAAM,EAAE,KAAK;qBACd,EAAE,OAAO,CAAC;oBACX,MAAM,EAAE,MAAM;oBACd,cAAc,EAAE,CAAC,WAAW,EAAE,eAAe,EAAE,WAAW,CAAC;oBAC3D,UAAU,EAAE,CAAC,WAAW,EAAE,WAAW,EAAE,eAAe,CAAC;oBACvD,OAAO,EAAE,IAAI;iBACd,CAAC;gBAEF,MAAM,CAAC,oBAAgB,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;YAChD,CAAC;SACF;QACD,QAAQ,EAAE;YAER;;;;;;;;;;;;;;;;eAgBG;YACH,IAAI,EAAE,UAAU,MAAM,EAAE,OAAO,EAAE,QAAQ;gBACvC,EAAE,CAAC,CAAC,OAAO,OAAO,KAAK,UAAU,CAAC,CAAC,CAAC;oBAClC,QAAQ,GAAG,OAAO,CAAC;oBACnB,OAAO,GAAG,EAAE,CAAC;gBACf,CAAC;gBACD,OAAO,IAAI,CAAC,OAAO,GAAG,EAAE,CAAC,CAAC;gBAE1B,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,IAAI,6BAA6B,CAAC;gBAEjE,MAAM,UAAU,GAAG;oBACjB,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC;wBACrB,GAAG,EAAE,CAAC,OAAO,GAAG,wFAAwF,CAAC,CAAC,OAAO,CAAC,cAAc,EAAE,IAAI,CAAC;wBACvI,MAAM,EAAE,KAAK;qBACd,EAAE,OAAO,CAAC;oBACX,MAAM,EAAE,MAAM;oBACd,cAAc,EAAE,CAAC,WAAW,EAAE,eAAe,CAAC;oBAC9C,UAAU,EAAE,CAAC,WAAW,EAAE,eAAe,CAAC;oBAC1C,OAAO,EAAE,IAAI;iBACd,CAAC;gBAEF,MAAM,CAAC,oBAAgB,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;YAChD,CAAC;SACF;QACD,QAAQ,EAAE;YAER;;;;;;;;;;;;;;eAcG;YACH,IAAI,EAAE,UAAU,MAAM,EAAE,OAAO,EAAE,QAAQ;gBACvC,EAAE,CAAC,CAAC,OAAO,OAAO,KAAK,UAAU,CAAC,CAAC,CAAC;oBAClC,QAAQ,GAAG,OAAO,CAAC;oBACnB,OAAO,GAAG,EAAE,CAAC;gBACf,CAAC;gBACD,OAAO,IAAI,CAAC,OAAO,GAAG,EAAE,CAAC,CAAC;gBAE1B,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,IAAI,6BAA6B,CAAC;gBAEjE,MAAM,UAAU,GAAG;oBACjB,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC;wBACrB,GAAG,EAAE,CAAC,OAAO,GAAG,qCAAqC,CAAC,CAAC,OAAO,CAAC,cAAc,EAAE,IAAI,CAAC;wBACpF,MAAM,EAAE,KAAK;qBACd,EAAE,OAAO,CAAC;oBACX,MAAM,EAAE,MAAM;oBACd,cAAc,EAAE,EAAE;oBAClB,UAAU,EAAE,EAAE;oBACd,OAAO,EAAE,IAAI;iBACd,CAAC;gBAEF,MAAM,CAAC,oBAAgB,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;YAChD,CAAC;SACF;QACD,aAAa,EAAE;YAEb;;;;;;;;;;;;;;;eAeG;YACH,IAAI,EAAE,UAAU,MAAM,EAAE,OAAO,EAAE,QAAQ;gBACvC,EAAE,CAAC,CAAC,OAAO,OAAO,KAAK,UAAU,CAAC,CAAC,CAAC;oBAClC,QAAQ,GAAG,OAAO,CAAC;oBACnB,OAAO,GAAG,EAAE,CAAC;gBACf,CAAC;gBACD,OAAO,IAAI,CAAC,OAAO,GAAG,EAAE,CAAC,CAAC;gBAE1B,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,IAAI,6BAA6B,CAAC;gBAEjE,MAAM,UAAU,GAAG;oBACjB,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC;wBACrB,GAAG,EAAE,CAAC,OAAO,GAAG,+DAA+D,CAAC,CAAC,OAAO,CAAC,cAAc,EAAE,IAAI,CAAC;wBAC9G,MAAM,EAAE,KAAK;qBACd,EAAE,OAAO,CAAC;oBACX,MAAM,EAAE,MAAM;oBACd,cAAc,EAAE,CAAC,WAAW,CAAC;oBAC7B,UAAU,EAAE,CAAC,WAAW,CAAC;oBACzB,OAAO,EAAE,IAAI;iBACd,CAAC;gBAEF,MAAM,CAAC,oBAAgB,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;YAChD,CAAC;SACF;KACF,CAAC;AACJ,CAAC;AAED,iBAAS,SAAS,CAAC"}
|
||||
300
backend/node_modules/googleapis/apis/analytics/v2.4.ts
generated
vendored
Normal file
300
backend/node_modules/googleapis/apis/analytics/v2.4.ts
generated
vendored
Normal file
@@ -0,0 +1,300 @@
|
||||
/**
|
||||
* Copyright 2015 Google Inc. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/* jshint maxlen: false */
|
||||
|
||||
import createAPIRequest from '../../lib/apirequest';
|
||||
|
||||
/**
|
||||
* Google Analytics API
|
||||
*
|
||||
* Views and manages your Google Analytics data.
|
||||
*
|
||||
* @example
|
||||
* const google = require('googleapis');
|
||||
* const analytics = google.analytics('v2.4');
|
||||
*
|
||||
* @namespace analytics
|
||||
* @type {Function}
|
||||
* @version v2.4
|
||||
* @variation v2.4
|
||||
* @param {object=} options Options for Analytics
|
||||
*/
|
||||
function Analytics(options) { // eslint-disable-line
|
||||
const self = this;
|
||||
self._options = options || {};
|
||||
|
||||
self.data = {
|
||||
|
||||
/**
|
||||
* analytics.data.get
|
||||
*
|
||||
* @desc Returns Analytics report data for a view (profile).
|
||||
*
|
||||
* @alias analytics.data.get
|
||||
* @memberOf! analytics(v2.4)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string=} params.dimensions A comma-separated list of Analytics dimensions. E.g., 'ga:browser,ga:city'.
|
||||
* @param {string} params.end-date End date for fetching report data. All requests should specify an end date formatted as YYYY-MM-DD.
|
||||
* @param {string=} params.filters A comma-separated list of dimension or metric filters to be applied to the report data.
|
||||
* @param {string} params.ids Unique table ID for retrieving report data. Table ID is of the form ga:XXXX, where XXXX is the Analytics view (profile) ID.
|
||||
* @param {integer=} params.max-results The maximum number of entries to include in this feed.
|
||||
* @param {string} params.metrics 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.
|
||||
* @param {string=} params.segment An Analytics advanced segment to be applied to the report data.
|
||||
* @param {string=} params.sort A comma-separated list of dimensions or metrics that determine the sort order for the report data.
|
||||
* @param {string} params.start-date Start date for fetching report data. All requests should specify a start date formatted as YYYY-MM-DD.
|
||||
* @param {integer=} params.start-index An index of the first entity to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
get: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/analytics/v2.4/data').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['ids', 'start-date', 'end-date', 'metrics'],
|
||||
pathParams: [],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
self.management = {
|
||||
accounts: {
|
||||
|
||||
/**
|
||||
* analytics.management.accounts.list
|
||||
*
|
||||
* @desc Lists all accounts to which the user has access.
|
||||
*
|
||||
* @alias analytics.management.accounts.list
|
||||
* @memberOf! analytics(v2.4)
|
||||
*
|
||||
* @param {object=} params Parameters for request
|
||||
* @param {integer=} params.max-results The maximum number of accounts to include in this response.
|
||||
* @param {integer=} params.start-index An index of the first account to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
list: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/analytics/v2.4/management/accounts').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
}
|
||||
},
|
||||
goals: {
|
||||
|
||||
/**
|
||||
* analytics.management.goals.list
|
||||
*
|
||||
* @desc Lists goals to which the user has access.
|
||||
*
|
||||
* @alias analytics.management.goals.list
|
||||
* @memberOf! analytics(v2.4)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.accountId 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.
|
||||
* @param {integer=} params.max-results The maximum number of goals to include in this response.
|
||||
* @param {string} params.profileId 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.
|
||||
* @param {integer=} params.start-index An index of the first goal to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.
|
||||
* @param {string} params.webPropertyId 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.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
list: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/analytics/v2.4/management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/goals').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['accountId', 'webPropertyId', 'profileId'],
|
||||
pathParams: ['accountId', 'profileId', 'webPropertyId'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
}
|
||||
},
|
||||
profiles: {
|
||||
|
||||
/**
|
||||
* analytics.management.profiles.list
|
||||
*
|
||||
* @desc Lists views (profiles) to which the user has access.
|
||||
*
|
||||
* @alias analytics.management.profiles.list
|
||||
* @memberOf! analytics(v2.4)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.accountId 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.
|
||||
* @param {integer=} params.max-results The maximum number of views (profiles) to include in this response.
|
||||
* @param {integer=} params.start-index An index of the first entity to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.
|
||||
* @param {string} params.webPropertyId 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.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
list: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/analytics/v2.4/management/accounts/{accountId}/webproperties/{webPropertyId}/profiles').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['accountId', 'webPropertyId'],
|
||||
pathParams: ['accountId', 'webPropertyId'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
}
|
||||
},
|
||||
segments: {
|
||||
|
||||
/**
|
||||
* analytics.management.segments.list
|
||||
*
|
||||
* @desc Lists advanced segments to which the user has access.
|
||||
*
|
||||
* @alias analytics.management.segments.list
|
||||
* @memberOf! analytics(v2.4)
|
||||
*
|
||||
* @param {object=} params Parameters for request
|
||||
* @param {integer=} params.max-results The maximum number of advanced segments to include in this response.
|
||||
* @param {integer=} params.start-index An index of the first advanced segment to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
list: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/analytics/v2.4/management/segments').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
}
|
||||
},
|
||||
webproperties: {
|
||||
|
||||
/**
|
||||
* analytics.management.webproperties.list
|
||||
*
|
||||
* @desc Lists web properties to which the user has access.
|
||||
*
|
||||
* @alias analytics.management.webproperties.list
|
||||
* @memberOf! analytics(v2.4)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.accountId 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.
|
||||
* @param {integer=} params.max-results The maximum number of web properties to include in this response.
|
||||
* @param {integer=} params.start-index An index of the first entity to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
list: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/analytics/v2.4/management/accounts/{accountId}/webproperties').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['accountId'],
|
||||
pathParams: ['accountId'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
export = Analytics;
|
||||
3142
backend/node_modules/googleapis/apis/analytics/v3.js
generated
vendored
Normal file
3142
backend/node_modules/googleapis/apis/analytics/v3.js
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1
backend/node_modules/googleapis/apis/analytics/v3.js.map
generated
vendored
Normal file
1
backend/node_modules/googleapis/apis/analytics/v3.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
4372
backend/node_modules/googleapis/apis/analytics/v3.ts
generated
vendored
Normal file
4372
backend/node_modules/googleapis/apis/analytics/v3.ts
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
74
backend/node_modules/googleapis/apis/analyticsreporting/v4.js
generated
vendored
Normal file
74
backend/node_modules/googleapis/apis/analyticsreporting/v4.js
generated
vendored
Normal file
@@ -0,0 +1,74 @@
|
||||
"use strict";
|
||||
/**
|
||||
* Copyright 2015 Google Inc. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
/* jshint maxlen: false */
|
||||
const apirequest_1 = require("../../lib/apirequest");
|
||||
/**
|
||||
* Google Analytics Reporting API
|
||||
*
|
||||
* Accesses Analytics report data.
|
||||
*
|
||||
* @example
|
||||
* const google = require('googleapis');
|
||||
* const analyticsreporting = google.analyticsreporting('v4');
|
||||
*
|
||||
* @namespace analyticsreporting
|
||||
* @type {Function}
|
||||
* @version v4
|
||||
* @variation v4
|
||||
* @param {object=} options Options for Analyticsreporting
|
||||
*/
|
||||
function Analyticsreporting(options) {
|
||||
const self = this;
|
||||
self._options = options || {};
|
||||
self.reports = {
|
||||
/**
|
||||
* analyticsreporting.reports.batchGet
|
||||
*
|
||||
* @desc Returns the Analytics data.
|
||||
*
|
||||
* @alias analyticsreporting.reports.batchGet
|
||||
* @memberOf! analyticsreporting(v4)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {analyticsreporting(v4).GetReportsRequest} params.resource Request body data
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
batchGet: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://analyticsreporting.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v4/reports:batchGet').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
};
|
||||
}
|
||||
module.exports = Analyticsreporting;
|
||||
//# sourceMappingURL=v4.js.map
|
||||
1
backend/node_modules/googleapis/apis/analyticsreporting/v4.js.map
generated
vendored
Normal file
1
backend/node_modules/googleapis/apis/analyticsreporting/v4.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"v4.js","sourceRoot":"","sources":["v4.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,0BAA0B;AAE1B,qDAAoD;AAEpD;;;;;;;;;;;;;;GAcG;AACH,4BAA4B,OAAO;IACjC,MAAM,IAAI,GAAG,IAAI,CAAC;IAClB,IAAI,CAAC,QAAQ,GAAG,OAAO,IAAI,EAAE,CAAC;IAE9B,IAAI,CAAC,OAAO,GAAG;QAEb;;;;;;;;;;;;;WAaG;QACH,QAAQ,EAAE,UAAU,MAAM,EAAE,OAAO,EAAE,QAAQ;YAC3C,EAAE,CAAC,CAAC,OAAO,OAAO,KAAK,UAAU,CAAC,CAAC,CAAC;gBAClC,QAAQ,GAAG,OAAO,CAAC;gBACnB,OAAO,GAAG,EAAE,CAAC;YACf,CAAC;YACD,OAAO,IAAI,CAAC,OAAO,GAAG,EAAE,CAAC,CAAC;YAE1B,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,IAAI,4CAA4C,CAAC;YAEhF,MAAM,UAAU,GAAG;gBACjB,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC;oBACrB,GAAG,EAAE,CAAC,OAAO,GAAG,sBAAsB,CAAC,CAAC,OAAO,CAAC,cAAc,EAAE,IAAI,CAAC;oBACrE,MAAM,EAAE,MAAM;iBACf,EAAE,OAAO,CAAC;gBACX,MAAM,EAAE,MAAM;gBACd,cAAc,EAAE,EAAE;gBAClB,UAAU,EAAE,EAAE;gBACd,OAAO,EAAE,IAAI;aACd,CAAC;YAEF,MAAM,CAAC,oBAAgB,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;QAChD,CAAC;KAEF,CAAC;AACJ,CAAC;AA8iBD,iBAAS,kBAAkB,CAAC"}
|
||||
638
backend/node_modules/googleapis/apis/analyticsreporting/v4.ts
generated
vendored
Normal file
638
backend/node_modules/googleapis/apis/analyticsreporting/v4.ts
generated
vendored
Normal file
@@ -0,0 +1,638 @@
|
||||
/**
|
||||
* Copyright 2015 Google Inc. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/* jshint maxlen: false */
|
||||
|
||||
import createAPIRequest from '../../lib/apirequest';
|
||||
|
||||
/**
|
||||
* Google Analytics Reporting API
|
||||
*
|
||||
* Accesses Analytics report data.
|
||||
*
|
||||
* @example
|
||||
* const google = require('googleapis');
|
||||
* const analyticsreporting = google.analyticsreporting('v4');
|
||||
*
|
||||
* @namespace analyticsreporting
|
||||
* @type {Function}
|
||||
* @version v4
|
||||
* @variation v4
|
||||
* @param {object=} options Options for Analyticsreporting
|
||||
*/
|
||||
function Analyticsreporting(options) { // eslint-disable-line
|
||||
const self = this;
|
||||
self._options = options || {};
|
||||
|
||||
self.reports = {
|
||||
|
||||
/**
|
||||
* analyticsreporting.reports.batchGet
|
||||
*
|
||||
* @desc Returns the Analytics data.
|
||||
*
|
||||
* @alias analyticsreporting.reports.batchGet
|
||||
* @memberOf! analyticsreporting(v4)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {analyticsreporting(v4).GetReportsRequest} params.resource Request body data
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
batchGet: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
|
||||
const rootUrl = options.rootUrl || 'https://analyticsreporting.googleapis.com/';
|
||||
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v4/reports:batchGet').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
}
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* @typedef Cohort
|
||||
* @memberOf! analyticsreporting(v4)
|
||||
* @type object
|
||||
* @property {analyticsreporting(v4).DateRange} dateRange This is used for `FIRST_VISIT_DATE` cohort, the cohort selects users
|
||||
whose first visit date is between start date and end date defined in the
|
||||
DateRange. The date ranges should be aligned for cohort requests. If the
|
||||
request contains `ga:cohortNthDay` it should be exactly one day long,
|
||||
if `ga:cohortNthWeek` it should be aligned to the week boundary (starting
|
||||
at Sunday and ending Saturday), and for `ga:cohortNthMonth` the date range
|
||||
should be aligned to the month (starting at the first and ending on the
|
||||
last day of the month).
|
||||
For LTV requests there are no such restrictions.
|
||||
You do not need to supply a date range for the
|
||||
`reportsRequest.dateRanges` field.
|
||||
* @property {string} name A unique name for the cohort. If not defined name will be auto-generated
|
||||
with values cohort_[1234...].
|
||||
* @property {string} type Type of the cohort. The only supported type as of now is
|
||||
`FIRST_VISIT_DATE`. If this field is unspecified the cohort is treated
|
||||
as `FIRST_VISIT_DATE` type cohort.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef CohortGroup
|
||||
* @memberOf! analyticsreporting(v4)
|
||||
* @type object
|
||||
* @property {analyticsreporting(v4).Cohort[]} cohorts The definition for the cohort.
|
||||
* @property {boolean} lifetimeValue Enable Life Time Value (LTV). LTV measures lifetime value for users
|
||||
acquired through different channels.
|
||||
Please see:
|
||||
[Cohort Analysis](https://support.google.com/analytics/answer/6074676) and
|
||||
[Lifetime Value](https://support.google.com/analytics/answer/6182550)
|
||||
If the value of lifetimeValue is false:
|
||||
|
||||
- The metric values are similar to the values in the web interface cohort
|
||||
report.
|
||||
- The cohort definition date ranges must be aligned to the calendar week
|
||||
and month. i.e. while requesting `ga:cohortNthWeek` the `startDate` in
|
||||
the cohort definition should be a Sunday and the `endDate` should be the
|
||||
following Saturday, and for `ga:cohortNthMonth`, the `startDate`
|
||||
should be the 1st of the month and `endDate` should be the last day
|
||||
of the month.
|
||||
|
||||
When the lifetimeValue is true:
|
||||
|
||||
- The metric values will correspond to the values in the web interface
|
||||
LifeTime value report.
|
||||
- The Lifetime Value report shows you how user value (Revenue) and
|
||||
engagement (Appviews, Goal Completions, Sessions, and Session Duration)
|
||||
grow during the 90 days after a user is acquired.
|
||||
- The metrics are calculated as a cumulative average per user per the time
|
||||
increment.
|
||||
- The cohort definition date ranges need not be aligned to the calendar
|
||||
week and month boundaries.
|
||||
- The `viewId` must be an
|
||||
[app view ID](https://support.google.com/analytics/answer/2649553#WebVersusAppViews)
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef ColumnHeader
|
||||
* @memberOf! analyticsreporting(v4)
|
||||
* @type object
|
||||
* @property {string[]} dimensions The dimension names in the response.
|
||||
* @property {analyticsreporting(v4).MetricHeader} metricHeader Metric headers for the metrics in the response.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef DateRange
|
||||
* @memberOf! analyticsreporting(v4)
|
||||
* @type object
|
||||
* @property {string} endDate The end date for the query in the format `YYYY-MM-DD`.
|
||||
* @property {string} startDate The start date for the query in the format `YYYY-MM-DD`.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef DateRangeValues
|
||||
* @memberOf! analyticsreporting(v4)
|
||||
* @type object
|
||||
* @property {analyticsreporting(v4).PivotValueRegion[]} pivotValueRegions The values of each pivot region.
|
||||
* @property {string[]} values Each value corresponds to each Metric in the request.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef Dimension
|
||||
* @memberOf! analyticsreporting(v4)
|
||||
* @type object
|
||||
* @property {string[]} histogramBuckets If non-empty, we place dimension values into buckets after string to
|
||||
int64. Dimension values that are not the string representation of an
|
||||
integral value will be converted to zero. The bucket values have to be in
|
||||
increasing order. Each bucket is closed on the lower end, and open on the
|
||||
upper end. The "first" bucket includes all values less than the first
|
||||
boundary, the "last" bucket includes all values up to infinity. Dimension
|
||||
values that fall in a bucket get transformed to a new dimension value. For
|
||||
example, if one gives a list of "0, 1, 3, 4, 7", then we return the
|
||||
following buckets:
|
||||
|
||||
- bucket #1: values < 0, dimension value "<0"
|
||||
- bucket #2: values in [0,1), dimension value "0"
|
||||
- bucket #3: values in [1,3), dimension value "1-2"
|
||||
- bucket #4: values in [3,4), dimension value "3"
|
||||
- bucket #5: values in [4,7), dimension value "4-6"
|
||||
- bucket #6: values >= 7, dimension value "7+"
|
||||
|
||||
NOTE: If you are applying histogram mutation on any dimension, and using
|
||||
that dimension in sort, you will want to use the sort type
|
||||
`HISTOGRAM_BUCKET` for that purpose. Without that the dimension values
|
||||
will be sorted according to dictionary
|
||||
(lexicographic) order. For example the ascending dictionary order is:
|
||||
|
||||
"<50", "1001+", "121-1000", "50-120"
|
||||
|
||||
And the ascending `HISTOGRAM_BUCKET` order is:
|
||||
|
||||
"<50", "50-120", "121-1000", "1001+"
|
||||
|
||||
The client has to explicitly request `"orderType": "HISTOGRAM_BUCKET"`
|
||||
for a histogram-mutated dimension.
|
||||
* @property {string} name Name of the dimension to fetch, for example `ga:browser`.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef DimensionFilter
|
||||
* @memberOf! analyticsreporting(v4)
|
||||
* @type object
|
||||
* @property {boolean} caseSensitive Should the match be case sensitive? Default is false.
|
||||
* @property {string} dimensionName The dimension to filter on. A DimensionFilter must contain a dimension.
|
||||
* @property {string[]} expressions Strings or regular expression to match against. Only the first value of
|
||||
the list is used for comparison unless the operator is `IN_LIST`.
|
||||
If `IN_LIST` operator, then the entire list is used to filter the
|
||||
dimensions as explained in the description of the `IN_LIST` operator.
|
||||
* @property {boolean} not Logical `NOT` operator. If this boolean is set to true, then the matching
|
||||
dimension values will be excluded in the report. The default is false.
|
||||
* @property {string} operator How to match the dimension to the expression. The default is REGEXP.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef DimensionFilterClause
|
||||
* @memberOf! analyticsreporting(v4)
|
||||
* @type object
|
||||
* @property {analyticsreporting(v4).DimensionFilter[]} filters The repeated set of filters. They are logically combined based on the
|
||||
operator specified.
|
||||
* @property {string} operator The operator for combining multiple dimension filters. If unspecified, it
|
||||
is treated as an `OR`.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef DynamicSegment
|
||||
* @memberOf! analyticsreporting(v4)
|
||||
* @type object
|
||||
* @property {string} name The name of the dynamic segment.
|
||||
* @property {analyticsreporting(v4).SegmentDefinition} sessionSegment Session Segment to select sessions to include in the segment.
|
||||
* @property {analyticsreporting(v4).SegmentDefinition} userSegment User Segment to select users to include in the segment.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef GetReportsRequest
|
||||
* @memberOf! analyticsreporting(v4)
|
||||
* @type object
|
||||
* @property {analyticsreporting(v4).ReportRequest[]} reportRequests Requests, each request will have a separate response.
|
||||
There can be a maximum of 5 requests. All requests should have the same
|
||||
`dateRanges`, `viewId`, `segments`, `samplingLevel`, and `cohortGroup`.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef GetReportsResponse
|
||||
* @memberOf! analyticsreporting(v4)
|
||||
* @type object
|
||||
* @property {analyticsreporting(v4).Report[]} reports Responses corresponding to each of the request.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef Metric
|
||||
* @memberOf! analyticsreporting(v4)
|
||||
* @type object
|
||||
* @property {string} alias An alias for the metric expression is an alternate name for the
|
||||
expression. The alias can be used for filtering and sorting. This field
|
||||
is optional and is useful if the expression is not a single metric but
|
||||
a complex expression which cannot be used in filtering and sorting.
|
||||
The alias is also used in the response column header.
|
||||
* @property {string} expression A metric expression in the request. An expression is constructed from one
|
||||
or more metrics and numbers. Accepted operators include: Plus (+), Minus
|
||||
(-), Negation (Unary -), Divided by (/), Multiplied by (*), Parenthesis,
|
||||
Positive cardinal numbers (0-9), can include decimals and is limited to
|
||||
1024 characters. Example `ga:totalRefunds/ga:users`, in most cases the
|
||||
metric expression is just a single metric name like `ga:users`.
|
||||
Adding mixed `MetricType` (E.g., `CURRENCY` + `PERCENTAGE`) metrics
|
||||
will result in unexpected results.
|
||||
* @property {string} formattingType Specifies how the metric expression should be formatted, for example
|
||||
`INTEGER`.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef MetricFilter
|
||||
* @memberOf! analyticsreporting(v4)
|
||||
* @type object
|
||||
* @property {string} comparisonValue The value to compare against.
|
||||
* @property {string} metricName The metric that will be filtered on. A metricFilter must contain a metric
|
||||
name. A metric name can be an alias earlier defined as a metric or it can
|
||||
also be a metric expression.
|
||||
* @property {boolean} not Logical `NOT` operator. If this boolean is set to true, then the matching
|
||||
metric values will be excluded in the report. The default is false.
|
||||
* @property {string} operator Is the metric `EQUAL`, `LESS_THAN` or `GREATER_THAN` the
|
||||
comparisonValue, the default is `EQUAL`. If the operator is
|
||||
`IS_MISSING`, checks if the metric is missing and would ignore the
|
||||
comparisonValue.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef MetricFilterClause
|
||||
* @memberOf! analyticsreporting(v4)
|
||||
* @type object
|
||||
* @property {analyticsreporting(v4).MetricFilter[]} filters The repeated set of filters. They are logically combined based on the
|
||||
operator specified.
|
||||
* @property {string} operator The operator for combining multiple metric filters. If unspecified, it is
|
||||
treated as an `OR`.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef MetricHeader
|
||||
* @memberOf! analyticsreporting(v4)
|
||||
* @type object
|
||||
* @property {analyticsreporting(v4).MetricHeaderEntry[]} metricHeaderEntries Headers for the metrics in the response.
|
||||
* @property {analyticsreporting(v4).PivotHeader[]} pivotHeaders Headers for the pivots in the response.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef MetricHeaderEntry
|
||||
* @memberOf! analyticsreporting(v4)
|
||||
* @type object
|
||||
* @property {string} name The name of the header.
|
||||
* @property {string} type The type of the metric, for example `INTEGER`.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef OrFiltersForSegment
|
||||
* @memberOf! analyticsreporting(v4)
|
||||
* @type object
|
||||
* @property {analyticsreporting(v4).SegmentFilterClause[]} segmentFilterClauses List of segment filters to be combined with a `OR` operator.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef OrderBy
|
||||
* @memberOf! analyticsreporting(v4)
|
||||
* @type object
|
||||
* @property {string} fieldName The field which to sort by. The default sort order is ascending. Example:
|
||||
`ga:browser`.
|
||||
Note, that you can only specify one field for sort here. For example,
|
||||
`ga:browser, ga:city` is not valid.
|
||||
* @property {string} orderType The order type. The default orderType is `VALUE`.
|
||||
* @property {string} sortOrder The sorting order for the field.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef Pivot
|
||||
* @memberOf! analyticsreporting(v4)
|
||||
* @type object
|
||||
* @property {analyticsreporting(v4).DimensionFilterClause[]} dimensionFilterClauses DimensionFilterClauses are logically combined with an `AND` operator: only
|
||||
data that is included by all these DimensionFilterClauses contributes to
|
||||
the values in this pivot region. Dimension filters can be used to restrict
|
||||
the columns shown in the pivot region. For example if you have
|
||||
`ga:browser` as the requested dimension in the pivot region, and you
|
||||
specify key filters to restrict `ga:browser` to only "IE" or "Firefox",
|
||||
then only those two browsers would show up as columns.
|
||||
* @property {analyticsreporting(v4).Dimension[]} dimensions A list of dimensions to show as pivot columns. A Pivot can have a maximum
|
||||
of 4 dimensions. Pivot dimensions are part of the restriction on the
|
||||
total number of dimensions allowed in the request.
|
||||
* @property {integer} maxGroupCount Specifies the maximum number of groups to return.
|
||||
The default value is 10, also the maximum value is 1,000.
|
||||
* @property {analyticsreporting(v4).Metric[]} metrics The pivot metrics. Pivot metrics are part of the
|
||||
restriction on total number of metrics allowed in the request.
|
||||
* @property {integer} startGroup If k metrics were requested, then the response will contain some
|
||||
data-dependent multiple of k columns in the report. E.g., if you pivoted
|
||||
on the dimension `ga:browser` then you'd get k columns for "Firefox", k
|
||||
columns for "IE", k columns for "Chrome", etc. The ordering of the groups
|
||||
of columns is determined by descending order of "total" for the first of
|
||||
the k values. Ties are broken by lexicographic ordering of the first
|
||||
pivot dimension, then lexicographic ordering of the second pivot
|
||||
dimension, and so on. E.g., if the totals for the first value for
|
||||
Firefox, IE, and Chrome were 8, 2, 8, respectively, the order of columns
|
||||
would be Chrome, Firefox, IE.
|
||||
|
||||
The following let you choose which of the groups of k columns are
|
||||
included in the response.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef PivotHeader
|
||||
* @memberOf! analyticsreporting(v4)
|
||||
* @type object
|
||||
* @property {analyticsreporting(v4).PivotHeaderEntry[]} pivotHeaderEntries A single pivot section header.
|
||||
* @property {integer} totalPivotGroupsCount The total number of groups for this pivot.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef PivotHeaderEntry
|
||||
* @memberOf! analyticsreporting(v4)
|
||||
* @type object
|
||||
* @property {string[]} dimensionNames The name of the dimensions in the pivot response.
|
||||
* @property {string[]} dimensionValues The values for the dimensions in the pivot.
|
||||
* @property {analyticsreporting(v4).MetricHeaderEntry} metric The metric header for the metric in the pivot.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef PivotValueRegion
|
||||
* @memberOf! analyticsreporting(v4)
|
||||
* @type object
|
||||
* @property {string[]} values The values of the metrics in each of the pivot regions.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef Report
|
||||
* @memberOf! analyticsreporting(v4)
|
||||
* @type object
|
||||
* @property {analyticsreporting(v4).ColumnHeader} columnHeader The column headers.
|
||||
* @property {analyticsreporting(v4).ReportData} data Response data.
|
||||
* @property {string} nextPageToken Page token to retrieve the next page of results in the list.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef ReportData
|
||||
* @memberOf! analyticsreporting(v4)
|
||||
* @type object
|
||||
* @property {string} dataLastRefreshed The last time the data in the report was refreshed. All the hits received
|
||||
before this timestamp are included in the calculation of the report.
|
||||
* @property {boolean} isDataGolden Indicates if response to this request is golden or not. Data is
|
||||
golden when the exact same request will not produce any new results if
|
||||
asked at a later point in time.
|
||||
* @property {analyticsreporting(v4).DateRangeValues[]} maximums Minimum and maximum values seen over all matching rows. These are both
|
||||
empty when `hideValueRanges` in the request is false, or when
|
||||
rowCount is zero.
|
||||
* @property {analyticsreporting(v4).DateRangeValues[]} minimums Minimum and maximum values seen over all matching rows. These are both
|
||||
empty when `hideValueRanges` in the request is false, or when
|
||||
rowCount is zero.
|
||||
* @property {integer} rowCount Total number of matching rows for this query.
|
||||
* @property {analyticsreporting(v4).ReportRow[]} rows There's one ReportRow for every unique combination of dimensions.
|
||||
* @property {string[]} samplesReadCounts If the results are
|
||||
[sampled](https://support.google.com/analytics/answer/2637192),
|
||||
this returns the total number of samples read, one entry per date range.
|
||||
If the results are not sampled this field will not be defined. See
|
||||
[developer guide](/analytics/devguides/reporting/core/v4/basics#sampling)
|
||||
for details.
|
||||
* @property {string[]} samplingSpaceSizes If the results are
|
||||
[sampled](https://support.google.com/analytics/answer/2637192),
|
||||
this returns the total number of
|
||||
samples present, one entry per date range. If the results are not sampled
|
||||
this field will not be defined. See
|
||||
[developer guide](/analytics/devguides/reporting/core/v4/basics#sampling)
|
||||
for details.
|
||||
* @property {analyticsreporting(v4).DateRangeValues[]} totals For each requested date range, for the set of all rows that match
|
||||
the query, every requested value format gets a total. The total
|
||||
for a value format is computed by first totaling the metrics
|
||||
mentioned in the value format and then evaluating the value
|
||||
format as a scalar expression. E.g., The "totals" for
|
||||
`3 / (ga:sessions + 2)` we compute
|
||||
`3 / ((sum of all relevant ga:sessions) + 2)`.
|
||||
Totals are computed before pagination.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef ReportRequest
|
||||
* @memberOf! analyticsreporting(v4)
|
||||
* @type object
|
||||
* @property {analyticsreporting(v4).CohortGroup} cohortGroup Cohort group associated with this request. If there is a cohort group
|
||||
in the request the `ga:cohort` dimension must be present.
|
||||
Every [ReportRequest](#ReportRequest) within a `batchGet` method must
|
||||
contain the same `cohortGroup` definition.
|
||||
* @property {analyticsreporting(v4).DateRange[]} dateRanges Date ranges in the request. The request can have a maximum of 2 date
|
||||
ranges. The response will contain a set of metric values for each
|
||||
combination of the dimensions for each date range in the request. So, if
|
||||
there are two date ranges, there will be two set of metric values, one for
|
||||
the original date range and one for the second date range.
|
||||
The `reportRequest.dateRanges` field should not be specified for cohorts
|
||||
or Lifetime value requests.
|
||||
If a date range is not provided, the default date range is (startDate:
|
||||
current date - 7 days, endDate: current date - 1 day). Every
|
||||
[ReportRequest](#ReportRequest) within a `batchGet` method must
|
||||
contain the same `dateRanges` definition.
|
||||
* @property {analyticsreporting(v4).DimensionFilterClause[]} dimensionFilterClauses The dimension filter clauses for filtering Dimension Values. They are
|
||||
logically combined with the `AND` operator. Note that filtering occurs
|
||||
before any dimensions are aggregated, so that the returned metrics
|
||||
represent the total for only the relevant dimensions.
|
||||
* @property {analyticsreporting(v4).Dimension[]} dimensions The dimensions requested.
|
||||
Requests can have a total of 7 dimensions.
|
||||
* @property {string} filtersExpression Dimension or metric filters that restrict the data returned for your
|
||||
request. To use the `filtersExpression`, supply a dimension or metric on
|
||||
which to filter, followed by the filter expression. For example, the
|
||||
following expression selects `ga:browser` dimension which starts with
|
||||
Firefox; `ga:browser=~^Firefox`. For more information on dimensions
|
||||
and metric filters, see
|
||||
[Filters reference](https://developers.google.com/analytics/devguides/reporting/core/v3/reference#filters).
|
||||
* @property {boolean} hideTotals If set to true, hides the total of all metrics for all the matching rows,
|
||||
for every date range. The default false and will return the totals.
|
||||
* @property {boolean} hideValueRanges If set to true, hides the minimum and maximum across all matching rows.
|
||||
The default is false and the value ranges are returned.
|
||||
* @property {boolean} includeEmptyRows If set to false, the response does not include rows if all the retrieved
|
||||
metrics are equal to zero. The default is false which will exclude these
|
||||
rows.
|
||||
* @property {analyticsreporting(v4).MetricFilterClause[]} metricFilterClauses The metric filter clauses. They are logically combined with the `AND`
|
||||
operator. Metric filters look at only the first date range and not the
|
||||
comparing date range. Note that filtering on metrics occurs after the
|
||||
metrics are aggregated.
|
||||
* @property {analyticsreporting(v4).Metric[]} metrics The metrics requested.
|
||||
Requests must specify at least one metric. Requests can have a
|
||||
total of 10 metrics.
|
||||
* @property {analyticsreporting(v4).OrderBy[]} orderBys Sort order on output rows. To compare two rows, the elements of the
|
||||
following are applied in order until a difference is found. All date
|
||||
ranges in the output get the same row order.
|
||||
* @property {integer} pageSize Page size is for paging and specifies the maximum number of returned rows.
|
||||
Page size should be >= 0. A query returns the default of 1,000 rows.
|
||||
The Analytics Core Reporting API returns a maximum of 10,000 rows per
|
||||
request, no matter how many you ask for. It can also return fewer rows
|
||||
than requested, if there aren't as many dimension segments as you expect.
|
||||
For instance, there are fewer than 300 possible values for `ga:country`,
|
||||
so when segmenting only by country, you can't get more than 300 rows,
|
||||
even if you set `pageSize` to a higher value.
|
||||
* @property {string} pageToken A continuation token to get the next page of the results. Adding this to
|
||||
the request will return the rows after the pageToken. The pageToken should
|
||||
be the value returned in the nextPageToken parameter in the response to
|
||||
the GetReports request.
|
||||
* @property {analyticsreporting(v4).Pivot[]} pivots The pivot definitions. Requests can have a maximum of 2 pivots.
|
||||
* @property {string} samplingLevel The desired report
|
||||
[sample](https://support.google.com/analytics/answer/2637192) size.
|
||||
If the the `samplingLevel` field is unspecified the `DEFAULT` sampling
|
||||
level is used. Every [ReportRequest](#ReportRequest) within a
|
||||
`batchGet` method must contain the same `samplingLevel` definition. See
|
||||
[developer guide](/analytics/devguides/reporting/core/v4/basics#sampling)
|
||||
for details.
|
||||
* @property {analyticsreporting(v4).Segment[]} segments Segment the data returned for the request. A segment definition helps look
|
||||
at a subset of the segment request. A request can contain up to four
|
||||
segments. Every [ReportRequest](#ReportRequest) within a
|
||||
`batchGet` method must contain the same `segments` definition. Requests
|
||||
with segments must have the `ga:segment` dimension.
|
||||
* @property {string} viewId The Analytics
|
||||
[view ID](https://support.google.com/analytics/answer/1009618)
|
||||
from which to retrieve data. Every [ReportRequest](#ReportRequest)
|
||||
within a `batchGet` method must contain the same `viewId`.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef ReportRow
|
||||
* @memberOf! analyticsreporting(v4)
|
||||
* @type object
|
||||
* @property {string[]} dimensions List of requested dimensions.
|
||||
* @property {analyticsreporting(v4).DateRangeValues[]} metrics List of metrics for each requested DateRange.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef Segment
|
||||
* @memberOf! analyticsreporting(v4)
|
||||
* @type object
|
||||
* @property {analyticsreporting(v4).DynamicSegment} dynamicSegment A dynamic segment definition in the request.
|
||||
* @property {string} segmentId The segment ID of a built-in or custom segment, for example `gaid::-3`.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef SegmentDefinition
|
||||
* @memberOf! analyticsreporting(v4)
|
||||
* @type object
|
||||
* @property {analyticsreporting(v4).SegmentFilter[]} segmentFilters A segment is defined by a set of segment filters which are combined
|
||||
together with a logical `AND` operation.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef SegmentDimensionFilter
|
||||
* @memberOf! analyticsreporting(v4)
|
||||
* @type object
|
||||
* @property {boolean} caseSensitive Should the match be case sensitive, ignored for `IN_LIST` operator.
|
||||
* @property {string} dimensionName Name of the dimension for which the filter is being applied.
|
||||
* @property {string[]} expressions The list of expressions, only the first element is used for all operators
|
||||
* @property {string} maxComparisonValue Maximum comparison values for `BETWEEN` match type.
|
||||
* @property {string} minComparisonValue Minimum comparison values for `BETWEEN` match type.
|
||||
* @property {string} operator The operator to use to match the dimension with the expressions.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef SegmentFilter
|
||||
* @memberOf! analyticsreporting(v4)
|
||||
* @type object
|
||||
* @property {boolean} not If true, match the complement of simple or sequence segment.
|
||||
For example, to match all visits not from "New York", we can define the
|
||||
segment as follows:
|
||||
|
||||
"sessionSegment": {
|
||||
"segmentFilters": [{
|
||||
"simpleSegment" :{
|
||||
"orFiltersForSegment": [{
|
||||
"segmentFilterClauses":[{
|
||||
"dimensionFilter": {
|
||||
"dimensionName": "ga:city",
|
||||
"expressions": ["New York"]
|
||||
}
|
||||
}]
|
||||
}]
|
||||
},
|
||||
"not": "True"
|
||||
}]
|
||||
},
|
||||
* @property {analyticsreporting(v4).SequenceSegment} sequenceSegment Sequence conditions consist of one or more steps, where each step is
|
||||
defined by one or more dimension/metric conditions. Multiple steps can
|
||||
be combined with special sequence operators.
|
||||
* @property {analyticsreporting(v4).SimpleSegment} simpleSegment A Simple segment conditions consist of one or more dimension/metric
|
||||
conditions that can be combined
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef SegmentFilterClause
|
||||
* @memberOf! analyticsreporting(v4)
|
||||
* @type object
|
||||
* @property {analyticsreporting(v4).SegmentDimensionFilter} dimensionFilter Dimension Filter for the segment definition.
|
||||
* @property {analyticsreporting(v4).SegmentMetricFilter} metricFilter Metric Filter for the segment definition.
|
||||
* @property {boolean} not Matches the complement (`!`) of the filter.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef SegmentMetricFilter
|
||||
* @memberOf! analyticsreporting(v4)
|
||||
* @type object
|
||||
* @property {string} comparisonValue The value to compare against. If the operator is `BETWEEN`, this value is
|
||||
treated as minimum comparison value.
|
||||
* @property {string} maxComparisonValue Max comparison value is only used for `BETWEEN` operator.
|
||||
* @property {string} metricName The metric that will be filtered on. A `metricFilter` must contain a
|
||||
metric name.
|
||||
* @property {string} operator Specifies is the operation to perform to compare the metric. The default
|
||||
is `EQUAL`.
|
||||
* @property {string} scope Scope for a metric defines the level at which that metric is defined. The
|
||||
specified metric scope must be equal to or greater than its primary scope
|
||||
as defined in the data model. The primary scope is defined by if the
|
||||
segment is selecting users or sessions.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef SegmentSequenceStep
|
||||
* @memberOf! analyticsreporting(v4)
|
||||
* @type object
|
||||
* @property {string} matchType Specifies if the step immediately precedes or can be any time before the
|
||||
next step.
|
||||
* @property {analyticsreporting(v4).OrFiltersForSegment[]} orFiltersForSegment A sequence is specified with a list of Or grouped filters which are
|
||||
combined with `AND` operator.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef SequenceSegment
|
||||
* @memberOf! analyticsreporting(v4)
|
||||
* @type object
|
||||
* @property {boolean} firstStepShouldMatchFirstHit If set, first step condition must match the first hit of the visitor (in
|
||||
the date range).
|
||||
* @property {analyticsreporting(v4).SegmentSequenceStep[]} segmentSequenceSteps The list of steps in the sequence.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef SimpleSegment
|
||||
* @memberOf! analyticsreporting(v4)
|
||||
* @type object
|
||||
* @property {analyticsreporting(v4).OrFiltersForSegment[]} orFiltersForSegment A list of segment filters groups which are combined with logical `AND`
|
||||
operator.
|
||||
*/
|
||||
export = Analyticsreporting;
|
||||
453
backend/node_modules/googleapis/apis/androiddeviceprovisioning/v1.js
generated
vendored
Normal file
453
backend/node_modules/googleapis/apis/androiddeviceprovisioning/v1.js
generated
vendored
Normal file
@@ -0,0 +1,453 @@
|
||||
"use strict";
|
||||
/**
|
||||
* Copyright 2015 Google Inc. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
/* jshint maxlen: false */
|
||||
const apirequest_1 = require("../../lib/apirequest");
|
||||
/**
|
||||
* Android Device Provisioning Partner API
|
||||
*
|
||||
* Automates reseller integration into zero-touch enrollment by assigning devices to customers and creating device reports.
|
||||
*
|
||||
* @example
|
||||
* const google = require('googleapis');
|
||||
* const androiddeviceprovisioning = google.androiddeviceprovisioning('v1');
|
||||
*
|
||||
* @namespace androiddeviceprovisioning
|
||||
* @type {Function}
|
||||
* @version v1
|
||||
* @variation v1
|
||||
* @param {object=} options Options for Androiddeviceprovisioning
|
||||
*/
|
||||
function Androiddeviceprovisioning(options) {
|
||||
const self = this;
|
||||
self._options = options || {};
|
||||
self.operations = {
|
||||
/**
|
||||
* androiddeviceprovisioning.operations.get
|
||||
*
|
||||
* @desc 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.
|
||||
*
|
||||
* @alias androiddeviceprovisioning.operations.get
|
||||
* @memberOf! androiddeviceprovisioning(v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.name The name of the operation resource.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
get: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://androiddeviceprovisioning.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/{name}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['name'],
|
||||
pathParams: ['name'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
};
|
||||
self.partners = {
|
||||
customers: {
|
||||
/**
|
||||
* androiddeviceprovisioning.partners.customers.create
|
||||
*
|
||||
* @desc Creates a customer for zero-touch enrollment. After the method returns successfully, admin and owner roles can manage devices and EMM configs by calling API methods or using their zero-touch enrollment portal. The API doesn't notify the customer that they have access.
|
||||
*
|
||||
* @alias androiddeviceprovisioning.partners.customers.create
|
||||
* @memberOf! androiddeviceprovisioning(v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.parent Required. The parent resource ID in format `partners/[PARTNER_ID]` that identifies the reseller.
|
||||
* @param {androiddeviceprovisioning(v1).CreateCustomerRequest} params.resource Request body data
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
create: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://androiddeviceprovisioning.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/{parent}/customers').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['parent'],
|
||||
pathParams: ['parent'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* androiddeviceprovisioning.partners.customers.list
|
||||
*
|
||||
* @desc Lists the customers that are enrolled to the reseller identified by the `partnerId` argument. This list includes customers that the reseller created and customers that enrolled themselves using the portal.
|
||||
*
|
||||
* @alias androiddeviceprovisioning.partners.customers.list
|
||||
* @memberOf! androiddeviceprovisioning(v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.partnerId The ID of the partner.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
list: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://androiddeviceprovisioning.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/partners/{partnerId}/customers').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['partnerId'],
|
||||
pathParams: ['partnerId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
},
|
||||
devices: {
|
||||
/**
|
||||
* androiddeviceprovisioning.partners.devices.claim
|
||||
*
|
||||
* @desc Claim the device identified by device identifier.
|
||||
*
|
||||
* @alias androiddeviceprovisioning.partners.devices.claim
|
||||
* @memberOf! androiddeviceprovisioning(v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.partnerId ID of the partner.
|
||||
* @param {androiddeviceprovisioning(v1).ClaimDeviceRequest} params.resource Request body data
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
claim: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://androiddeviceprovisioning.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/partners/{partnerId}/devices:claim').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['partnerId'],
|
||||
pathParams: ['partnerId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* androiddeviceprovisioning.partners.devices.claimAsync
|
||||
*
|
||||
* @desc Claim devices asynchronously.
|
||||
*
|
||||
* @alias androiddeviceprovisioning.partners.devices.claimAsync
|
||||
* @memberOf! androiddeviceprovisioning(v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.partnerId Partner ID.
|
||||
* @param {androiddeviceprovisioning(v1).ClaimDevicesRequest} params.resource Request body data
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
claimAsync: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://androiddeviceprovisioning.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/partners/{partnerId}/devices:claimAsync').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['partnerId'],
|
||||
pathParams: ['partnerId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* androiddeviceprovisioning.partners.devices.findByIdentifier
|
||||
*
|
||||
* @desc Find devices by device identifier.
|
||||
*
|
||||
* @alias androiddeviceprovisioning.partners.devices.findByIdentifier
|
||||
* @memberOf! androiddeviceprovisioning(v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.partnerId ID of the partner.
|
||||
* @param {androiddeviceprovisioning(v1).FindDevicesByDeviceIdentifierRequest} params.resource Request body data
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
findByIdentifier: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://androiddeviceprovisioning.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/partners/{partnerId}/devices:findByIdentifier').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['partnerId'],
|
||||
pathParams: ['partnerId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* androiddeviceprovisioning.partners.devices.findByOwner
|
||||
*
|
||||
* @desc Find devices by ownership.
|
||||
*
|
||||
* @alias androiddeviceprovisioning.partners.devices.findByOwner
|
||||
* @memberOf! androiddeviceprovisioning(v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.partnerId ID of the partner.
|
||||
* @param {androiddeviceprovisioning(v1).FindDevicesByOwnerRequest} params.resource Request body data
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
findByOwner: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://androiddeviceprovisioning.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/partners/{partnerId}/devices:findByOwner').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['partnerId'],
|
||||
pathParams: ['partnerId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* androiddeviceprovisioning.partners.devices.get
|
||||
*
|
||||
* @desc Get a device.
|
||||
*
|
||||
* @alias androiddeviceprovisioning.partners.devices.get
|
||||
* @memberOf! androiddeviceprovisioning(v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.name Resource name in `partners/[PARTNER_ID]/devices/[DEVICE_ID]`.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
get: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://androiddeviceprovisioning.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/{name}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['name'],
|
||||
pathParams: ['name'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* androiddeviceprovisioning.partners.devices.metadata
|
||||
*
|
||||
* @desc Update the metadata.
|
||||
*
|
||||
* @alias androiddeviceprovisioning.partners.devices.metadata
|
||||
* @memberOf! androiddeviceprovisioning(v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.deviceId ID of the partner.
|
||||
* @param {string} params.metadataOwnerId The owner of the newly set metadata. Set this to the partner ID.
|
||||
* @param {androiddeviceprovisioning(v1).UpdateDeviceMetadataRequest} params.resource Request body data
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
metadata: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://androiddeviceprovisioning.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/partners/{metadataOwnerId}/devices/{deviceId}/metadata').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['metadataOwnerId', 'deviceId'],
|
||||
pathParams: ['deviceId', 'metadataOwnerId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* androiddeviceprovisioning.partners.devices.unclaim
|
||||
*
|
||||
* @desc Unclaim the device identified by the `device_id` or the `deviceIdentifier`.
|
||||
*
|
||||
* @alias androiddeviceprovisioning.partners.devices.unclaim
|
||||
* @memberOf! androiddeviceprovisioning(v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.partnerId ID of the partner.
|
||||
* @param {androiddeviceprovisioning(v1).UnclaimDeviceRequest} params.resource Request body data
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
unclaim: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://androiddeviceprovisioning.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/partners/{partnerId}/devices:unclaim').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['partnerId'],
|
||||
pathParams: ['partnerId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* androiddeviceprovisioning.partners.devices.unclaimAsync
|
||||
*
|
||||
* @desc Unclaim devices asynchronously.
|
||||
*
|
||||
* @alias androiddeviceprovisioning.partners.devices.unclaimAsync
|
||||
* @memberOf! androiddeviceprovisioning(v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.partnerId Partner ID.
|
||||
* @param {androiddeviceprovisioning(v1).UnclaimDevicesRequest} params.resource Request body data
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
unclaimAsync: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://androiddeviceprovisioning.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/partners/{partnerId}/devices:unclaimAsync').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['partnerId'],
|
||||
pathParams: ['partnerId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* androiddeviceprovisioning.partners.devices.updateMetadataAsync
|
||||
*
|
||||
* @desc Set metadata in batch asynchronously.
|
||||
*
|
||||
* @alias androiddeviceprovisioning.partners.devices.updateMetadataAsync
|
||||
* @memberOf! androiddeviceprovisioning(v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.partnerId Partner ID.
|
||||
* @param {androiddeviceprovisioning(v1).UpdateDeviceMetadataInBatchRequest} params.resource Request body data
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
updateMetadataAsync: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://androiddeviceprovisioning.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/partners/{partnerId}/devices:updateMetadataAsync').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['partnerId'],
|
||||
pathParams: ['partnerId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
module.exports = Androiddeviceprovisioning;
|
||||
//# sourceMappingURL=v1.js.map
|
||||
1
backend/node_modules/googleapis/apis/androiddeviceprovisioning/v1.js.map
generated
vendored
Normal file
1
backend/node_modules/googleapis/apis/androiddeviceprovisioning/v1.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
768
backend/node_modules/googleapis/apis/androiddeviceprovisioning/v1.ts
generated
vendored
Normal file
768
backend/node_modules/googleapis/apis/androiddeviceprovisioning/v1.ts
generated
vendored
Normal file
@@ -0,0 +1,768 @@
|
||||
/**
|
||||
* Copyright 2015 Google Inc. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/* jshint maxlen: false */
|
||||
|
||||
import createAPIRequest from '../../lib/apirequest';
|
||||
|
||||
/**
|
||||
* Android Device Provisioning Partner API
|
||||
*
|
||||
* Automates reseller integration into zero-touch enrollment by assigning devices to customers and creating device reports.
|
||||
*
|
||||
* @example
|
||||
* const google = require('googleapis');
|
||||
* const androiddeviceprovisioning = google.androiddeviceprovisioning('v1');
|
||||
*
|
||||
* @namespace androiddeviceprovisioning
|
||||
* @type {Function}
|
||||
* @version v1
|
||||
* @variation v1
|
||||
* @param {object=} options Options for Androiddeviceprovisioning
|
||||
*/
|
||||
function Androiddeviceprovisioning(options) { // eslint-disable-line
|
||||
const self = this;
|
||||
self._options = options || {};
|
||||
|
||||
self.operations = {
|
||||
|
||||
/**
|
||||
* androiddeviceprovisioning.operations.get
|
||||
*
|
||||
* @desc 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.
|
||||
*
|
||||
* @alias androiddeviceprovisioning.operations.get
|
||||
* @memberOf! androiddeviceprovisioning(v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.name The name of the operation resource.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
get: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
|
||||
const rootUrl = options.rootUrl || 'https://androiddeviceprovisioning.googleapis.com/';
|
||||
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/{name}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['name'],
|
||||
pathParams: ['name'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
self.partners = {
|
||||
customers: {
|
||||
|
||||
/**
|
||||
* androiddeviceprovisioning.partners.customers.create
|
||||
*
|
||||
* @desc Creates a customer for zero-touch enrollment. After the method returns successfully, admin and owner roles can manage devices and EMM configs by calling API methods or using their zero-touch enrollment portal. The API doesn't notify the customer that they have access.
|
||||
*
|
||||
* @alias androiddeviceprovisioning.partners.customers.create
|
||||
* @memberOf! androiddeviceprovisioning(v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.parent Required. The parent resource ID in format `partners/[PARTNER_ID]` that identifies the reseller.
|
||||
* @param {androiddeviceprovisioning(v1).CreateCustomerRequest} params.resource Request body data
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
create: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
|
||||
const rootUrl = options.rootUrl || 'https://androiddeviceprovisioning.googleapis.com/';
|
||||
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/{parent}/customers').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['parent'],
|
||||
pathParams: ['parent'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
},
|
||||
|
||||
/**
|
||||
* androiddeviceprovisioning.partners.customers.list
|
||||
*
|
||||
* @desc Lists the customers that are enrolled to the reseller identified by the `partnerId` argument. This list includes customers that the reseller created and customers that enrolled themselves using the portal.
|
||||
*
|
||||
* @alias androiddeviceprovisioning.partners.customers.list
|
||||
* @memberOf! androiddeviceprovisioning(v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.partnerId The ID of the partner.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
list: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
|
||||
const rootUrl = options.rootUrl || 'https://androiddeviceprovisioning.googleapis.com/';
|
||||
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/partners/{partnerId}/customers').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['partnerId'],
|
||||
pathParams: ['partnerId'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
}
|
||||
},
|
||||
devices: {
|
||||
|
||||
/**
|
||||
* androiddeviceprovisioning.partners.devices.claim
|
||||
*
|
||||
* @desc Claim the device identified by device identifier.
|
||||
*
|
||||
* @alias androiddeviceprovisioning.partners.devices.claim
|
||||
* @memberOf! androiddeviceprovisioning(v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.partnerId ID of the partner.
|
||||
* @param {androiddeviceprovisioning(v1).ClaimDeviceRequest} params.resource Request body data
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
claim: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
|
||||
const rootUrl = options.rootUrl || 'https://androiddeviceprovisioning.googleapis.com/';
|
||||
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/partners/{partnerId}/devices:claim').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['partnerId'],
|
||||
pathParams: ['partnerId'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
},
|
||||
|
||||
/**
|
||||
* androiddeviceprovisioning.partners.devices.claimAsync
|
||||
*
|
||||
* @desc Claim devices asynchronously.
|
||||
*
|
||||
* @alias androiddeviceprovisioning.partners.devices.claimAsync
|
||||
* @memberOf! androiddeviceprovisioning(v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.partnerId Partner ID.
|
||||
* @param {androiddeviceprovisioning(v1).ClaimDevicesRequest} params.resource Request body data
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
claimAsync: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
|
||||
const rootUrl = options.rootUrl || 'https://androiddeviceprovisioning.googleapis.com/';
|
||||
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/partners/{partnerId}/devices:claimAsync').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['partnerId'],
|
||||
pathParams: ['partnerId'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
},
|
||||
|
||||
/**
|
||||
* androiddeviceprovisioning.partners.devices.findByIdentifier
|
||||
*
|
||||
* @desc Find devices by device identifier.
|
||||
*
|
||||
* @alias androiddeviceprovisioning.partners.devices.findByIdentifier
|
||||
* @memberOf! androiddeviceprovisioning(v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.partnerId ID of the partner.
|
||||
* @param {androiddeviceprovisioning(v1).FindDevicesByDeviceIdentifierRequest} params.resource Request body data
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
findByIdentifier: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
|
||||
const rootUrl = options.rootUrl || 'https://androiddeviceprovisioning.googleapis.com/';
|
||||
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/partners/{partnerId}/devices:findByIdentifier').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['partnerId'],
|
||||
pathParams: ['partnerId'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
},
|
||||
|
||||
/**
|
||||
* androiddeviceprovisioning.partners.devices.findByOwner
|
||||
*
|
||||
* @desc Find devices by ownership.
|
||||
*
|
||||
* @alias androiddeviceprovisioning.partners.devices.findByOwner
|
||||
* @memberOf! androiddeviceprovisioning(v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.partnerId ID of the partner.
|
||||
* @param {androiddeviceprovisioning(v1).FindDevicesByOwnerRequest} params.resource Request body data
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
findByOwner: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
|
||||
const rootUrl = options.rootUrl || 'https://androiddeviceprovisioning.googleapis.com/';
|
||||
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/partners/{partnerId}/devices:findByOwner').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['partnerId'],
|
||||
pathParams: ['partnerId'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
},
|
||||
|
||||
/**
|
||||
* androiddeviceprovisioning.partners.devices.get
|
||||
*
|
||||
* @desc Get a device.
|
||||
*
|
||||
* @alias androiddeviceprovisioning.partners.devices.get
|
||||
* @memberOf! androiddeviceprovisioning(v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.name Resource name in `partners/[PARTNER_ID]/devices/[DEVICE_ID]`.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
get: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
|
||||
const rootUrl = options.rootUrl || 'https://androiddeviceprovisioning.googleapis.com/';
|
||||
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/{name}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['name'],
|
||||
pathParams: ['name'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
},
|
||||
|
||||
/**
|
||||
* androiddeviceprovisioning.partners.devices.metadata
|
||||
*
|
||||
* @desc Update the metadata.
|
||||
*
|
||||
* @alias androiddeviceprovisioning.partners.devices.metadata
|
||||
* @memberOf! androiddeviceprovisioning(v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.deviceId ID of the partner.
|
||||
* @param {string} params.metadataOwnerId The owner of the newly set metadata. Set this to the partner ID.
|
||||
* @param {androiddeviceprovisioning(v1).UpdateDeviceMetadataRequest} params.resource Request body data
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
metadata: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
|
||||
const rootUrl = options.rootUrl || 'https://androiddeviceprovisioning.googleapis.com/';
|
||||
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/partners/{metadataOwnerId}/devices/{deviceId}/metadata').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['metadataOwnerId', 'deviceId'],
|
||||
pathParams: ['deviceId', 'metadataOwnerId'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
},
|
||||
|
||||
/**
|
||||
* androiddeviceprovisioning.partners.devices.unclaim
|
||||
*
|
||||
* @desc Unclaim the device identified by the `device_id` or the `deviceIdentifier`.
|
||||
*
|
||||
* @alias androiddeviceprovisioning.partners.devices.unclaim
|
||||
* @memberOf! androiddeviceprovisioning(v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.partnerId ID of the partner.
|
||||
* @param {androiddeviceprovisioning(v1).UnclaimDeviceRequest} params.resource Request body data
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
unclaim: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
|
||||
const rootUrl = options.rootUrl || 'https://androiddeviceprovisioning.googleapis.com/';
|
||||
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/partners/{partnerId}/devices:unclaim').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['partnerId'],
|
||||
pathParams: ['partnerId'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
},
|
||||
|
||||
/**
|
||||
* androiddeviceprovisioning.partners.devices.unclaimAsync
|
||||
*
|
||||
* @desc Unclaim devices asynchronously.
|
||||
*
|
||||
* @alias androiddeviceprovisioning.partners.devices.unclaimAsync
|
||||
* @memberOf! androiddeviceprovisioning(v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.partnerId Partner ID.
|
||||
* @param {androiddeviceprovisioning(v1).UnclaimDevicesRequest} params.resource Request body data
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
unclaimAsync: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
|
||||
const rootUrl = options.rootUrl || 'https://androiddeviceprovisioning.googleapis.com/';
|
||||
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/partners/{partnerId}/devices:unclaimAsync').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['partnerId'],
|
||||
pathParams: ['partnerId'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
},
|
||||
|
||||
/**
|
||||
* androiddeviceprovisioning.partners.devices.updateMetadataAsync
|
||||
*
|
||||
* @desc Set metadata in batch asynchronously.
|
||||
*
|
||||
* @alias androiddeviceprovisioning.partners.devices.updateMetadataAsync
|
||||
* @memberOf! androiddeviceprovisioning(v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.partnerId Partner ID.
|
||||
* @param {androiddeviceprovisioning(v1).UpdateDeviceMetadataInBatchRequest} params.resource Request body data
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
updateMetadataAsync: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
|
||||
const rootUrl = options.rootUrl || 'https://androiddeviceprovisioning.googleapis.com/';
|
||||
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/partners/{partnerId}/devices:updateMetadataAsync').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['partnerId'],
|
||||
pathParams: ['partnerId'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* @typedef ClaimDeviceRequest
|
||||
* @memberOf! androiddeviceprovisioning(v1)
|
||||
* @type object
|
||||
* @property {string} customerId The customer to claim for.
|
||||
* @property {androiddeviceprovisioning(v1).DeviceIdentifier} deviceIdentifier The device identifier of the device to claim.
|
||||
* @property {string} sectionType The section to claim.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef ClaimDeviceResponse
|
||||
* @memberOf! androiddeviceprovisioning(v1)
|
||||
* @type object
|
||||
* @property {string} deviceId The device ID of the claimed device.
|
||||
* @property {string} deviceName The resource name of the device in the format
|
||||
`partners/[PARTNER_ID]/devices/[DEVICE_ID]`.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef ClaimDevicesRequest
|
||||
* @memberOf! androiddeviceprovisioning(v1)
|
||||
* @type object
|
||||
* @property {androiddeviceprovisioning(v1).PartnerClaim[]} claims List of claims.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef Company
|
||||
* @memberOf! androiddeviceprovisioning(v1)
|
||||
* @type object
|
||||
* @property {string[]} adminEmails Input only. Optional. Email address of customer's users in the admin role.
|
||||
Each email address must be associated with a Google Account.
|
||||
* @property {string} companyId Output only. The ID of the company. Assigned by the server.
|
||||
* @property {string} companyName Required. The name of the company. For example _XYZ Corp_. Characters
|
||||
allowed are: Latin letters, numerals, hyphens, and spaces. Displayed to the
|
||||
customer's employees in the zero-touch enrollment portal.
|
||||
* @property {string} name Output only. The API resource name of the company in the format
|
||||
`partners/[PARTNER_ID]/customers/[CUSTOMER_ID]`. Assigned by the server.
|
||||
* @property {string[]} ownerEmails Input only. Email address of customer's users in the owner role. At least
|
||||
one `owner_email` is required. Each email address must be associated with a
|
||||
Google Account. Owners share the same access as admins but can also add,
|
||||
delete, and edit your organization's portal users.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef CreateCustomerRequest
|
||||
* @memberOf! androiddeviceprovisioning(v1)
|
||||
* @type object
|
||||
* @property {androiddeviceprovisioning(v1).Company} customer Required. The company data to populate the new customer. Must contain a
|
||||
value for `companyName` and at least one `owner_email` that's associated
|
||||
with a Google Account. The values for `companyId` and `name` must be empty.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef Device
|
||||
* @memberOf! androiddeviceprovisioning(v1)
|
||||
* @type object
|
||||
* @property {androiddeviceprovisioning(v1).DeviceClaim[]} claims Claims.
|
||||
* @property {string} configuration The resource name of the configuration.
|
||||
Only set for customers.
|
||||
* @property {string} deviceId Device ID.
|
||||
* @property {androiddeviceprovisioning(v1).DeviceIdentifier} deviceIdentifier Device identifier.
|
||||
* @property {androiddeviceprovisioning(v1).DeviceMetadata} deviceMetadata Device metadata.
|
||||
* @property {string} name Resource name in `partners/[PARTNER_ID]/devices/[DEVICE_ID]`.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef DeviceClaim
|
||||
* @memberOf! androiddeviceprovisioning(v1)
|
||||
* @type object
|
||||
* @property {string} ownerCompanyId Owner ID.
|
||||
* @property {string} sectionType Section type of the device claim.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef DeviceIdentifier
|
||||
* @memberOf! androiddeviceprovisioning(v1)
|
||||
* @type object
|
||||
* @property {string} imei IMEI number.
|
||||
* @property {string} manufacturer Manufacturer name to match `android.os.Build.MANUFACTURER` (required).
|
||||
Allowed values listed in
|
||||
[manufacturer names](/zero-touch/resources/manufacturer-names).
|
||||
* @property {string} meid MEID number.
|
||||
* @property {string} serialNumber Serial number (optional).
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef DeviceMetadata
|
||||
* @memberOf! androiddeviceprovisioning(v1)
|
||||
* @type object
|
||||
* @property {object} entries Metadata entries
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef DevicesLongRunningOperationMetadata
|
||||
* @memberOf! androiddeviceprovisioning(v1)
|
||||
* @type object
|
||||
* @property {integer} devicesCount Number of devices parsed in your requests.
|
||||
* @property {string} processingStatus The overall processing status.
|
||||
* @property {integer} progress Processing progress from 0 to 100.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef DevicesLongRunningOperationResponse
|
||||
* @memberOf! androiddeviceprovisioning(v1)
|
||||
* @type object
|
||||
* @property {androiddeviceprovisioning(v1).OperationPerDevice[]} perDeviceStatus Processing status for each device.
|
||||
One `PerDeviceStatus` per device. The order is the same as in your requests.
|
||||
* @property {integer} successCount Number of succeesfully processed ones.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef Empty
|
||||
* @memberOf! androiddeviceprovisioning(v1)
|
||||
* @type object
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef FindDevicesByDeviceIdentifierRequest
|
||||
* @memberOf! androiddeviceprovisioning(v1)
|
||||
* @type object
|
||||
* @property {androiddeviceprovisioning(v1).DeviceIdentifier} deviceIdentifier The device identifier to search.
|
||||
* @property {string} limit Number of devices to show.
|
||||
* @property {string} pageToken Page token.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef FindDevicesByDeviceIdentifierResponse
|
||||
* @memberOf! androiddeviceprovisioning(v1)
|
||||
* @type object
|
||||
* @property {androiddeviceprovisioning(v1).Device[]} devices Found devices.
|
||||
* @property {string} nextPageToken Page token of the next page.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef FindDevicesByOwnerRequest
|
||||
* @memberOf! androiddeviceprovisioning(v1)
|
||||
* @type object
|
||||
* @property {string[]} customerId List of customer IDs to search for.
|
||||
* @property {string} limit The number of devices to show in the result.
|
||||
* @property {string} pageToken Page token.
|
||||
* @property {string} sectionType The section type.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef FindDevicesByOwnerResponse
|
||||
* @memberOf! androiddeviceprovisioning(v1)
|
||||
* @type object
|
||||
* @property {androiddeviceprovisioning(v1).Device[]} devices Devices found.
|
||||
* @property {string} nextPageToken Page token of the next page.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef ListCustomersResponse
|
||||
* @memberOf! androiddeviceprovisioning(v1)
|
||||
* @type object
|
||||
* @property {androiddeviceprovisioning(v1).Company[]} customers List of customers related to this partner.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef Operation
|
||||
* @memberOf! androiddeviceprovisioning(v1)
|
||||
* @type object
|
||||
* @property {boolean} done 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.
|
||||
* @property {androiddeviceprovisioning(v1).Status} error This field will always be not set if the operation is created by `claimAsync`, `unclaimAsync`, or `updateMetadataAsync`. In this case, error information for each device is set in `response.perDeviceStatus.result.status`.
|
||||
* @property {object} metadata This field will contain a `DevicesLongRunningOperationMetadata` object if the operation is created by `claimAsync`, `unclaimAsync`, or `updateMetadataAsync`.
|
||||
* @property {string} name 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`.
|
||||
* @property {object} response This field will contain a `DevicesLongRunningOperationResponse` object if the operation is created by `claimAsync`, `unclaimAsync`, or `updateMetadataAsync`.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef OperationPerDevice
|
||||
* @memberOf! androiddeviceprovisioning(v1)
|
||||
* @type object
|
||||
* @property {androiddeviceprovisioning(v1).PartnerClaim} claim Request to claim a device.
|
||||
* @property {androiddeviceprovisioning(v1).PerDeviceStatusInBatch} result Processing result for every device.
|
||||
* @property {androiddeviceprovisioning(v1).PartnerUnclaim} unclaim Request to unclaim a device.
|
||||
* @property {androiddeviceprovisioning(v1).UpdateMetadataArguments} updateMetadata Request to set metadata for a device.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef PartnerClaim
|
||||
* @memberOf! androiddeviceprovisioning(v1)
|
||||
* @type object
|
||||
* @property {string} customerId Customer ID to claim for.
|
||||
* @property {androiddeviceprovisioning(v1).DeviceIdentifier} deviceIdentifier Device identifier of the device.
|
||||
* @property {androiddeviceprovisioning(v1).DeviceMetadata} deviceMetadata Metadata to set at claim.
|
||||
* @property {string} sectionType Section type to claim.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef PartnerUnclaim
|
||||
* @memberOf! androiddeviceprovisioning(v1)
|
||||
* @type object
|
||||
* @property {string} deviceId Device ID of the device.
|
||||
* @property {androiddeviceprovisioning(v1).DeviceIdentifier} deviceIdentifier Device identifier of the device.
|
||||
* @property {string} sectionType Section type to unclaim.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef PerDeviceStatusInBatch
|
||||
* @memberOf! androiddeviceprovisioning(v1)
|
||||
* @type object
|
||||
* @property {string} deviceId Device ID of the device if process succeeds.
|
||||
* @property {string} errorIdentifier Error identifier.
|
||||
* @property {string} errorMessage Error message.
|
||||
* @property {string} status Process result.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef Status
|
||||
* @memberOf! androiddeviceprovisioning(v1)
|
||||
* @type object
|
||||
* @property {integer} code The status code, which should be an enum value of google.rpc.Code.
|
||||
* @property {object[]} details A list of messages that carry the error details. There is a common set of
|
||||
message types for APIs to use.
|
||||
* @property {string} message 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.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef UnclaimDeviceRequest
|
||||
* @memberOf! androiddeviceprovisioning(v1)
|
||||
* @type object
|
||||
* @property {string} deviceId The device ID returned by `ClaimDevice`.
|
||||
* @property {androiddeviceprovisioning(v1).DeviceIdentifier} deviceIdentifier The device identifier you used when you claimed this device.
|
||||
* @property {string} sectionType The section type to unclaim for.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef UnclaimDevicesRequest
|
||||
* @memberOf! androiddeviceprovisioning(v1)
|
||||
* @type object
|
||||
* @property {androiddeviceprovisioning(v1).PartnerUnclaim[]} unclaims List of devices to unclaim.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef UpdateDeviceMetadataInBatchRequest
|
||||
* @memberOf! androiddeviceprovisioning(v1)
|
||||
* @type object
|
||||
* @property {androiddeviceprovisioning(v1).UpdateMetadataArguments[]} updates List of metadata updates.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef UpdateDeviceMetadataRequest
|
||||
* @memberOf! androiddeviceprovisioning(v1)
|
||||
* @type object
|
||||
* @property {androiddeviceprovisioning(v1).DeviceMetadata} deviceMetadata The metdata to set.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef UpdateMetadataArguments
|
||||
* @memberOf! androiddeviceprovisioning(v1)
|
||||
* @type object
|
||||
* @property {string} deviceId Device ID of the device.
|
||||
* @property {androiddeviceprovisioning(v1).DeviceIdentifier} deviceIdentifier Device identifier.
|
||||
* @property {androiddeviceprovisioning(v1).DeviceMetadata} deviceMetadata The metadata to update.
|
||||
*/
|
||||
export = Androiddeviceprovisioning;
|
||||
2800
backend/node_modules/googleapis/apis/androidenterprise/v1.js
generated
vendored
Normal file
2800
backend/node_modules/googleapis/apis/androidenterprise/v1.js
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1
backend/node_modules/googleapis/apis/androidenterprise/v1.js.map
generated
vendored
Normal file
1
backend/node_modules/googleapis/apis/androidenterprise/v1.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
3731
backend/node_modules/googleapis/apis/androidenterprise/v1.ts
generated
vendored
Normal file
3731
backend/node_modules/googleapis/apis/androidenterprise/v1.ts
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
769
backend/node_modules/googleapis/apis/androidmanagement/v1.js
generated
vendored
Normal file
769
backend/node_modules/googleapis/apis/androidmanagement/v1.js
generated
vendored
Normal file
@@ -0,0 +1,769 @@
|
||||
"use strict";
|
||||
/**
|
||||
* Copyright 2015 Google Inc. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
/* jshint maxlen: false */
|
||||
const apirequest_1 = require("../../lib/apirequest");
|
||||
/**
|
||||
* Android Management API
|
||||
*
|
||||
* The Android Management API provides remote enterprise management of Android devices and apps.
|
||||
*
|
||||
* @example
|
||||
* const google = require('googleapis');
|
||||
* const androidmanagement = google.androidmanagement('v1');
|
||||
*
|
||||
* @namespace androidmanagement
|
||||
* @type {Function}
|
||||
* @version v1
|
||||
* @variation v1
|
||||
* @param {object=} options Options for Androidmanagement
|
||||
*/
|
||||
function Androidmanagement(options) {
|
||||
const self = this;
|
||||
self._options = options || {};
|
||||
self.enterprises = {
|
||||
/**
|
||||
* androidmanagement.enterprises.create
|
||||
*
|
||||
* @desc Creates an enterprise by completing the enterprise signup flow.
|
||||
*
|
||||
* @alias androidmanagement.enterprises.create
|
||||
* @memberOf! androidmanagement(v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string=} params.enterpriseToken The enterprise token appended to the callback URL.
|
||||
* @param {string=} params.projectId The id of the Google Cloud Platform project which will own the enterprise.
|
||||
* @param {string=} params.signupUrlName The name of the SignupUrl used to sign up for the enterprise.
|
||||
* @param {androidmanagement(v1).Enterprise} params.resource Request body data
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
create: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://androidmanagement.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/enterprises').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* androidmanagement.enterprises.get
|
||||
*
|
||||
* @desc Gets an enterprise.
|
||||
*
|
||||
* @alias androidmanagement.enterprises.get
|
||||
* @memberOf! androidmanagement(v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.name The name of the enterprise in the form enterprises/{enterpriseId}
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
get: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://androidmanagement.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/{name}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['name'],
|
||||
pathParams: ['name'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* androidmanagement.enterprises.patch
|
||||
*
|
||||
* @desc Updates an enterprise.
|
||||
*
|
||||
* @alias androidmanagement.enterprises.patch
|
||||
* @memberOf! androidmanagement(v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.name The name of the enterprise in the form enterprises/{enterpriseId}
|
||||
* @param {string=} params.updateMask The field mask indicating the fields to update. If not set, all modifiable fields will be modified.
|
||||
* @param {androidmanagement(v1).Enterprise} params.resource Request body data
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
patch: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://androidmanagement.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/{name}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'PATCH'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['name'],
|
||||
pathParams: ['name'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
applications: {
|
||||
/**
|
||||
* androidmanagement.enterprises.applications.get
|
||||
*
|
||||
* @desc Gets info about an application.
|
||||
*
|
||||
* @alias androidmanagement.enterprises.applications.get
|
||||
* @memberOf! androidmanagement(v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string=} params.languageCode The preferred language for localized application info, as a BCP47 tag (e.g. "en-US", "de"). If not specified the default language of the application will be used.
|
||||
* @param {string} params.name The name of the application in the form enterprises/{enterpriseId}/applications/{package_name}
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
get: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://androidmanagement.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/{name}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['name'],
|
||||
pathParams: ['name'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
},
|
||||
devices: {
|
||||
/**
|
||||
* androidmanagement.enterprises.devices.delete
|
||||
*
|
||||
* @desc Deletes a device, which causes the device to be wiped.
|
||||
*
|
||||
* @alias androidmanagement.enterprises.devices.delete
|
||||
* @memberOf! androidmanagement(v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.name The name of the device in the form enterprises/{enterpriseId}/devices/{deviceId}
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
delete: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://androidmanagement.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/{name}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'DELETE'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['name'],
|
||||
pathParams: ['name'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* androidmanagement.enterprises.devices.get
|
||||
*
|
||||
* @desc Gets a device.
|
||||
*
|
||||
* @alias androidmanagement.enterprises.devices.get
|
||||
* @memberOf! androidmanagement(v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.name The name of the device in the form enterprises/{enterpriseId}/devices/{deviceId}
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
get: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://androidmanagement.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/{name}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['name'],
|
||||
pathParams: ['name'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* androidmanagement.enterprises.devices.issueCommand
|
||||
*
|
||||
* @desc Issues a command to a device. The Operation resource returned contains a Command in its metadata field. Use the get operation method to get the status of the command.
|
||||
*
|
||||
* @alias androidmanagement.enterprises.devices.issueCommand
|
||||
* @memberOf! androidmanagement(v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.name The name of the device in the form enterprises/{enterpriseId}/devices/{deviceId}
|
||||
* @param {androidmanagement(v1).Command} params.resource Request body data
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
issueCommand: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://androidmanagement.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/{name}:issueCommand').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['name'],
|
||||
pathParams: ['name'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* androidmanagement.enterprises.devices.list
|
||||
*
|
||||
* @desc Lists devices for a given enterprise.
|
||||
*
|
||||
* @alias androidmanagement.enterprises.devices.list
|
||||
* @memberOf! androidmanagement(v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {integer=} params.pageSize The requested page size. The actual page size may be fixed to a min or max value.
|
||||
* @param {string=} params.pageToken A token identifying a page of results the server should return.
|
||||
* @param {string} params.parent The name of the enterprise in the form enterprises/{enterpriseId}
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
list: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://androidmanagement.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/{parent}/devices').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['parent'],
|
||||
pathParams: ['parent'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* androidmanagement.enterprises.devices.patch
|
||||
*
|
||||
* @desc Updates a device.
|
||||
*
|
||||
* @alias androidmanagement.enterprises.devices.patch
|
||||
* @memberOf! androidmanagement(v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.name The name of the device in the form enterprises/{enterpriseId}/devices/{deviceId}
|
||||
* @param {string=} params.updateMask The field mask indicating the fields to update. If not set, all modifiable fields will be modified.
|
||||
* @param {androidmanagement(v1).Device} params.resource Request body data
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
patch: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://androidmanagement.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/{name}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'PATCH'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['name'],
|
||||
pathParams: ['name'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
operations: {
|
||||
/**
|
||||
* androidmanagement.enterprises.devices.operations.cancel
|
||||
*
|
||||
* @desc Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns google.rpc.Code.UNIMPLEMENTED. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to Code.CANCELLED.
|
||||
*
|
||||
* @alias androidmanagement.enterprises.devices.operations.cancel
|
||||
* @memberOf! androidmanagement(v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.name The name of the operation resource to be cancelled.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
cancel: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://androidmanagement.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/{name}:cancel').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['name'],
|
||||
pathParams: ['name'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* androidmanagement.enterprises.devices.operations.delete
|
||||
*
|
||||
* @desc Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns google.rpc.Code.UNIMPLEMENTED.
|
||||
*
|
||||
* @alias androidmanagement.enterprises.devices.operations.delete
|
||||
* @memberOf! androidmanagement(v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.name The name of the operation resource to be deleted.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
delete: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://androidmanagement.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/{name}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'DELETE'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['name'],
|
||||
pathParams: ['name'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* androidmanagement.enterprises.devices.operations.get
|
||||
*
|
||||
* @desc 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.
|
||||
*
|
||||
* @alias androidmanagement.enterprises.devices.operations.get
|
||||
* @memberOf! androidmanagement(v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.name The name of the operation resource.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
get: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://androidmanagement.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/{name}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['name'],
|
||||
pathParams: ['name'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* androidmanagement.enterprises.devices.operations.list
|
||||
*
|
||||
* @desc 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 allows API services to override the binding to use different resource name schemes, such as users/x/operations. To override the binding, API services can add a binding such as "/v1/{name=users/x}/operations" to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.
|
||||
*
|
||||
* @alias androidmanagement.enterprises.devices.operations.list
|
||||
* @memberOf! androidmanagement(v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string=} params.filter The standard list filter.
|
||||
* @param {string} params.name The name of the operation's parent resource.
|
||||
* @param {integer=} params.pageSize The standard list page size.
|
||||
* @param {string=} params.pageToken The standard list page token.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
list: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://androidmanagement.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/{name}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['name'],
|
||||
pathParams: ['name'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
}
|
||||
},
|
||||
enrollmentTokens: {
|
||||
/**
|
||||
* androidmanagement.enterprises.enrollmentTokens.create
|
||||
*
|
||||
* @desc Creates an enrollment token for a given enterprise.
|
||||
*
|
||||
* @alias androidmanagement.enterprises.enrollmentTokens.create
|
||||
* @memberOf! androidmanagement(v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.parent The name of the enterprise in the form enterprises/{enterpriseId}
|
||||
* @param {androidmanagement(v1).EnrollmentToken} params.resource Request body data
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
create: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://androidmanagement.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/{parent}/enrollmentTokens').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['parent'],
|
||||
pathParams: ['parent'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* androidmanagement.enterprises.enrollmentTokens.delete
|
||||
*
|
||||
* @desc Deletes an enrollment token, which prevents future use of the token.
|
||||
*
|
||||
* @alias androidmanagement.enterprises.enrollmentTokens.delete
|
||||
* @memberOf! androidmanagement(v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.name The name of the enrollment token in the form enterprises/{enterpriseId}/enrollmentTokens/{enrollmentTokenId}
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
delete: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://androidmanagement.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/{name}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'DELETE'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['name'],
|
||||
pathParams: ['name'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
},
|
||||
policies: {
|
||||
/**
|
||||
* androidmanagement.enterprises.policies.delete
|
||||
*
|
||||
* @desc Deletes a policy. This operation is only permitted if no devices are currently referencing the policy.
|
||||
*
|
||||
* @alias androidmanagement.enterprises.policies.delete
|
||||
* @memberOf! androidmanagement(v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.name The name of the policy in the form enterprises/{enterpriseId}/policies/{policyId}
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
delete: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://androidmanagement.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/{name}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'DELETE'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['name'],
|
||||
pathParams: ['name'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* androidmanagement.enterprises.policies.get
|
||||
*
|
||||
* @desc Gets a policy.
|
||||
*
|
||||
* @alias androidmanagement.enterprises.policies.get
|
||||
* @memberOf! androidmanagement(v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.name The name of the policy in the form enterprises/{enterpriseId}/policies/{policyId}
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
get: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://androidmanagement.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/{name}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['name'],
|
||||
pathParams: ['name'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* androidmanagement.enterprises.policies.list
|
||||
*
|
||||
* @desc Lists policies for a given enterprise.
|
||||
*
|
||||
* @alias androidmanagement.enterprises.policies.list
|
||||
* @memberOf! androidmanagement(v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {integer=} params.pageSize The requested page size. The actual page size may be fixed to a min or max value.
|
||||
* @param {string=} params.pageToken A token identifying a page of results the server should return.
|
||||
* @param {string} params.parent The name of the enterprise in the form enterprises/{enterpriseId}
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
list: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://androidmanagement.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/{parent}/policies').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['parent'],
|
||||
pathParams: ['parent'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* androidmanagement.enterprises.policies.patch
|
||||
*
|
||||
* @desc Updates or creates a policy.
|
||||
*
|
||||
* @alias androidmanagement.enterprises.policies.patch
|
||||
* @memberOf! androidmanagement(v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.name The name of the policy in the form enterprises/{enterpriseId}/policies/{policyId}
|
||||
* @param {string=} params.updateMask The field mask indicating the fields to update. If not set, all modifiable fields will be modified.
|
||||
* @param {androidmanagement(v1).Policy} params.resource Request body data
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
patch: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://androidmanagement.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/{name}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'PATCH'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['name'],
|
||||
pathParams: ['name'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
},
|
||||
webTokens: {
|
||||
/**
|
||||
* androidmanagement.enterprises.webTokens.create
|
||||
*
|
||||
* @desc Creates a web token to access an embeddable managed Google Play web UI for a given enterprise.
|
||||
*
|
||||
* @alias androidmanagement.enterprises.webTokens.create
|
||||
* @memberOf! androidmanagement(v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.parent The name of the enterprise in the form enterprises/{enterpriseId}
|
||||
* @param {androidmanagement(v1).WebToken} params.resource Request body data
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
create: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://androidmanagement.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/{parent}/webTokens').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['parent'],
|
||||
pathParams: ['parent'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
}
|
||||
};
|
||||
self.signupUrls = {
|
||||
/**
|
||||
* androidmanagement.signupUrls.create
|
||||
*
|
||||
* @desc Creates an enterprise signup URL.
|
||||
*
|
||||
* @alias androidmanagement.signupUrls.create
|
||||
* @memberOf! androidmanagement(v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string=} params.callbackUrl The callback URL to which the admin will be redirected after successfully creating an enterprise. Before redirecting there the system will add a query parameter to this URL named enterpriseToken which will contain an opaque token to be used for the create enterprise request. The URL will be parsed then reformatted in order to add the enterpriseToken parameter, so there may be some minor formatting changes.
|
||||
* @param {string=} params.projectId The id of the Google Cloud Platform project which will own the enterprise.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
create: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://androidmanagement.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/signupUrls').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
};
|
||||
}
|
||||
module.exports = Androidmanagement;
|
||||
//# sourceMappingURL=v1.js.map
|
||||
1
backend/node_modules/googleapis/apis/androidmanagement/v1.js.map
generated
vendored
Normal file
1
backend/node_modules/googleapis/apis/androidmanagement/v1.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
1285
backend/node_modules/googleapis/apis/androidmanagement/v1.ts
generated
vendored
Normal file
1285
backend/node_modules/googleapis/apis/androidmanagement/v1.ts
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
148
backend/node_modules/googleapis/apis/androidpublisher/v1.1.js
generated
vendored
Normal file
148
backend/node_modules/googleapis/apis/androidpublisher/v1.1.js
generated
vendored
Normal file
@@ -0,0 +1,148 @@
|
||||
"use strict";
|
||||
/**
|
||||
* Copyright 2015 Google Inc. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
/* jshint maxlen: false */
|
||||
const apirequest_1 = require("../../lib/apirequest");
|
||||
/**
|
||||
* Google Play Developer API
|
||||
*
|
||||
* Lets Android application developers access their Google Play accounts.
|
||||
*
|
||||
* @example
|
||||
* const google = require('googleapis');
|
||||
* const androidpublisher = google.androidpublisher('v1.1');
|
||||
*
|
||||
* @namespace androidpublisher
|
||||
* @type {Function}
|
||||
* @version v1.1
|
||||
* @variation v1.1
|
||||
* @param {object=} options Options for Androidpublisher
|
||||
*/
|
||||
function Androidpublisher(options) {
|
||||
const self = this;
|
||||
self._options = options || {};
|
||||
self.inapppurchases = {
|
||||
/**
|
||||
* androidpublisher.inapppurchases.get
|
||||
*
|
||||
* @desc Checks the purchase and consumption status of an inapp item.
|
||||
*
|
||||
* @alias androidpublisher.inapppurchases.get
|
||||
* @memberOf! androidpublisher(v1.1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.packageName The package name of the application the inapp product was sold in (for example, 'com.some.thing').
|
||||
* @param {string} params.productId The inapp product SKU (for example, 'com.some.thing.inapp1').
|
||||
* @param {string} params.token The token provided to the user's device when the inapp product was purchased.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
get: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/androidpublisher/v1.1/applications/{packageName}/inapp/{productId}/purchases/{token}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['packageName', 'productId', 'token'],
|
||||
pathParams: ['packageName', 'productId', 'token'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
};
|
||||
self.purchases = {
|
||||
/**
|
||||
* androidpublisher.purchases.cancel
|
||||
*
|
||||
* @desc Cancels a user's subscription purchase. The subscription remains valid until its expiration time.
|
||||
*
|
||||
* @alias androidpublisher.purchases.cancel
|
||||
* @memberOf! androidpublisher(v1.1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.packageName The package name of the application for which this subscription was purchased (for example, 'com.some.thing').
|
||||
* @param {string} params.subscriptionId The purchased subscription ID (for example, 'monthly001').
|
||||
* @param {string} params.token The token provided to the user's device when the subscription was purchased.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
cancel: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/androidpublisher/v1.1/applications/{packageName}/subscriptions/{subscriptionId}/purchases/{token}/cancel').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['packageName', 'subscriptionId', 'token'],
|
||||
pathParams: ['packageName', 'subscriptionId', 'token'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* androidpublisher.purchases.get
|
||||
*
|
||||
* @desc Checks whether a user's subscription purchase is valid and returns its expiry time.
|
||||
*
|
||||
* @alias androidpublisher.purchases.get
|
||||
* @memberOf! androidpublisher(v1.1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.packageName The package name of the application for which this subscription was purchased (for example, 'com.some.thing').
|
||||
* @param {string} params.subscriptionId The purchased subscription ID (for example, 'monthly001').
|
||||
* @param {string} params.token The token provided to the user's device when the subscription was purchased.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
get: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/androidpublisher/v1.1/applications/{packageName}/subscriptions/{subscriptionId}/purchases/{token}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['packageName', 'subscriptionId', 'token'],
|
||||
pathParams: ['packageName', 'subscriptionId', 'token'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
};
|
||||
}
|
||||
module.exports = Androidpublisher;
|
||||
//# sourceMappingURL=v1.1.js.map
|
||||
1
backend/node_modules/googleapis/apis/androidpublisher/v1.1.js.map
generated
vendored
Normal file
1
backend/node_modules/googleapis/apis/androidpublisher/v1.1.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"v1.1.js","sourceRoot":"","sources":["v1.1.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,0BAA0B;AAE1B,qDAAoD;AAEpD;;;;;;;;;;;;;;GAcG;AACH,0BAA0B,OAAO;IAC/B,MAAM,IAAI,GAAG,IAAI,CAAC;IAClB,IAAI,CAAC,QAAQ,GAAG,OAAO,IAAI,EAAE,CAAC;IAE9B,IAAI,CAAC,cAAc,GAAG;QAEpB;;;;;;;;;;;;;;;WAeG;QACH,GAAG,EAAE,UAAU,MAAM,EAAE,OAAO,EAAE,QAAQ;YACtC,EAAE,CAAC,CAAC,OAAO,OAAO,KAAK,UAAU,CAAC,CAAC,CAAC;gBAClC,QAAQ,GAAG,OAAO,CAAC;gBACnB,OAAO,GAAG,EAAE,CAAC;YACf,CAAC;YACD,OAAO,IAAI,CAAC,OAAO,GAAG,EAAE,CAAC,CAAC;YAE1B,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,IAAI,6BAA6B,CAAC;YAEjE,MAAM,UAAU,GAAG;gBACjB,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC;oBACrB,GAAG,EAAE,CAAC,OAAO,GAAG,uFAAuF,CAAC,CAAC,OAAO,CAAC,cAAc,EAAE,IAAI,CAAC;oBACtI,MAAM,EAAE,KAAK;iBACd,EAAE,OAAO,CAAC;gBACX,MAAM,EAAE,MAAM;gBACd,cAAc,EAAE,CAAC,aAAa,EAAE,WAAW,EAAE,OAAO,CAAC;gBACrD,UAAU,EAAE,CAAC,aAAa,EAAE,WAAW,EAAE,OAAO,CAAC;gBACjD,OAAO,EAAE,IAAI;aACd,CAAC;YAEF,MAAM,CAAC,oBAAgB,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;QAChD,CAAC;KAEF,CAAC;IAEF,IAAI,CAAC,SAAS,GAAG;QAEf;;;;;;;;;;;;;;;WAeG;QACH,MAAM,EAAE,UAAU,MAAM,EAAE,OAAO,EAAE,QAAQ;YACzC,EAAE,CAAC,CAAC,OAAO,OAAO,KAAK,UAAU,CAAC,CAAC,CAAC;gBAClC,QAAQ,GAAG,OAAO,CAAC;gBACnB,OAAO,GAAG,EAAE,CAAC;YACf,CAAC;YACD,OAAO,IAAI,CAAC,OAAO,GAAG,EAAE,CAAC,CAAC;YAE1B,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,IAAI,6BAA6B,CAAC;YAEjE,MAAM,UAAU,GAAG;gBACjB,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC;oBACrB,GAAG,EAAE,CAAC,OAAO,GAAG,2GAA2G,CAAC,CAAC,OAAO,CAAC,cAAc,EAAE,IAAI,CAAC;oBAC1J,MAAM,EAAE,MAAM;iBACf,EAAE,OAAO,CAAC;gBACX,MAAM,EAAE,MAAM;gBACd,cAAc,EAAE,CAAC,aAAa,EAAE,gBAAgB,EAAE,OAAO,CAAC;gBAC1D,UAAU,EAAE,CAAC,aAAa,EAAE,gBAAgB,EAAE,OAAO,CAAC;gBACtD,OAAO,EAAE,IAAI;aACd,CAAC;YAEF,MAAM,CAAC,oBAAgB,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;QAChD,CAAC;QAED;;;;;;;;;;;;;;;WAeG;QACH,GAAG,EAAE,UAAU,MAAM,EAAE,OAAO,EAAE,QAAQ;YACtC,EAAE,CAAC,CAAC,OAAO,OAAO,KAAK,UAAU,CAAC,CAAC,CAAC;gBAClC,QAAQ,GAAG,OAAO,CAAC;gBACnB,OAAO,GAAG,EAAE,CAAC;YACf,CAAC;YACD,OAAO,IAAI,CAAC,OAAO,GAAG,EAAE,CAAC,CAAC;YAE1B,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,IAAI,6BAA6B,CAAC;YAEjE,MAAM,UAAU,GAAG;gBACjB,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC;oBACrB,GAAG,EAAE,CAAC,OAAO,GAAG,oGAAoG,CAAC,CAAC,OAAO,CAAC,cAAc,EAAE,IAAI,CAAC;oBACnJ,MAAM,EAAE,KAAK;iBACd,EAAE,OAAO,CAAC;gBACX,MAAM,EAAE,MAAM;gBACd,cAAc,EAAE,CAAC,aAAa,EAAE,gBAAgB,EAAE,OAAO,CAAC;gBAC1D,UAAU,EAAE,CAAC,aAAa,EAAE,gBAAgB,EAAE,OAAO,CAAC;gBACtD,OAAO,EAAE,IAAI;aACd,CAAC;YAEF,MAAM,CAAC,oBAAgB,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;QAChD,CAAC;KAEF,CAAC;AACJ,CAAC;AA2BD,iBAAS,gBAAgB,CAAC"}
|
||||
191
backend/node_modules/googleapis/apis/androidpublisher/v1.1.ts
generated
vendored
Normal file
191
backend/node_modules/googleapis/apis/androidpublisher/v1.1.ts
generated
vendored
Normal file
@@ -0,0 +1,191 @@
|
||||
/**
|
||||
* Copyright 2015 Google Inc. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/* jshint maxlen: false */
|
||||
|
||||
import createAPIRequest from '../../lib/apirequest';
|
||||
|
||||
/**
|
||||
* Google Play Developer API
|
||||
*
|
||||
* Lets Android application developers access their Google Play accounts.
|
||||
*
|
||||
* @example
|
||||
* const google = require('googleapis');
|
||||
* const androidpublisher = google.androidpublisher('v1.1');
|
||||
*
|
||||
* @namespace androidpublisher
|
||||
* @type {Function}
|
||||
* @version v1.1
|
||||
* @variation v1.1
|
||||
* @param {object=} options Options for Androidpublisher
|
||||
*/
|
||||
function Androidpublisher(options) { // eslint-disable-line
|
||||
const self = this;
|
||||
self._options = options || {};
|
||||
|
||||
self.inapppurchases = {
|
||||
|
||||
/**
|
||||
* androidpublisher.inapppurchases.get
|
||||
*
|
||||
* @desc Checks the purchase and consumption status of an inapp item.
|
||||
*
|
||||
* @alias androidpublisher.inapppurchases.get
|
||||
* @memberOf! androidpublisher(v1.1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.packageName The package name of the application the inapp product was sold in (for example, 'com.some.thing').
|
||||
* @param {string} params.productId The inapp product SKU (for example, 'com.some.thing.inapp1').
|
||||
* @param {string} params.token The token provided to the user's device when the inapp product was purchased.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
get: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/androidpublisher/v1.1/applications/{packageName}/inapp/{productId}/purchases/{token}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['packageName', 'productId', 'token'],
|
||||
pathParams: ['packageName', 'productId', 'token'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
self.purchases = {
|
||||
|
||||
/**
|
||||
* androidpublisher.purchases.cancel
|
||||
*
|
||||
* @desc Cancels a user's subscription purchase. The subscription remains valid until its expiration time.
|
||||
*
|
||||
* @alias androidpublisher.purchases.cancel
|
||||
* @memberOf! androidpublisher(v1.1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.packageName The package name of the application for which this subscription was purchased (for example, 'com.some.thing').
|
||||
* @param {string} params.subscriptionId The purchased subscription ID (for example, 'monthly001').
|
||||
* @param {string} params.token The token provided to the user's device when the subscription was purchased.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
cancel: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/androidpublisher/v1.1/applications/{packageName}/subscriptions/{subscriptionId}/purchases/{token}/cancel').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['packageName', 'subscriptionId', 'token'],
|
||||
pathParams: ['packageName', 'subscriptionId', 'token'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
},
|
||||
|
||||
/**
|
||||
* androidpublisher.purchases.get
|
||||
*
|
||||
* @desc Checks whether a user's subscription purchase is valid and returns its expiry time.
|
||||
*
|
||||
* @alias androidpublisher.purchases.get
|
||||
* @memberOf! androidpublisher(v1.1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.packageName The package name of the application for which this subscription was purchased (for example, 'com.some.thing').
|
||||
* @param {string} params.subscriptionId The purchased subscription ID (for example, 'monthly001').
|
||||
* @param {string} params.token The token provided to the user's device when the subscription was purchased.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
get: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/androidpublisher/v1.1/applications/{packageName}/subscriptions/{subscriptionId}/purchases/{token}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['packageName', 'subscriptionId', 'token'],
|
||||
pathParams: ['packageName', 'subscriptionId', 'token'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
}
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* @typedef InappPurchase
|
||||
* @memberOf! androidpublisher(v1.1)
|
||||
* @type object
|
||||
* @property {integer} consumptionState The consumption state of the inapp product. Possible values are:
|
||||
- Yet to be consumed
|
||||
- Consumed
|
||||
* @property {string} developerPayload A developer-specified string that contains supplemental information about an order.
|
||||
* @property {string} kind This kind represents an inappPurchase object in the androidpublisher service.
|
||||
* @property {string} orderId The order id associated with the purchase of the inapp product.
|
||||
* @property {integer} purchaseState The purchase state of the order. Possible values are:
|
||||
- Purchased
|
||||
- Cancelled
|
||||
* @property {string} purchaseTime The time the product was purchased, in milliseconds since the epoch (Jan 1, 1970).
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef SubscriptionPurchase
|
||||
* @memberOf! androidpublisher(v1.1)
|
||||
* @type object
|
||||
* @property {boolean} autoRenewing Whether the subscription will automatically be renewed when it reaches its current expiry time.
|
||||
* @property {string} initiationTimestampMsec Time at which the subscription was granted, in milliseconds since the Epoch.
|
||||
* @property {string} kind This kind represents a subscriptionPurchase object in the androidpublisher service.
|
||||
* @property {string} validUntilTimestampMsec Time at which the subscription will expire, in milliseconds since the Epoch.
|
||||
*/
|
||||
export = Androidpublisher;
|
||||
111
backend/node_modules/googleapis/apis/androidpublisher/v1.js
generated
vendored
Normal file
111
backend/node_modules/googleapis/apis/androidpublisher/v1.js
generated
vendored
Normal file
@@ -0,0 +1,111 @@
|
||||
"use strict";
|
||||
/**
|
||||
* Copyright 2015 Google Inc. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
/* jshint maxlen: false */
|
||||
const apirequest_1 = require("../../lib/apirequest");
|
||||
/**
|
||||
* Google Play Developer API
|
||||
*
|
||||
* Lets Android application developers access their Google Play accounts.
|
||||
*
|
||||
* @example
|
||||
* const google = require('googleapis');
|
||||
* const androidpublisher = google.androidpublisher('v1');
|
||||
*
|
||||
* @namespace androidpublisher
|
||||
* @type {Function}
|
||||
* @version v1
|
||||
* @variation v1
|
||||
* @param {object=} options Options for Androidpublisher
|
||||
*/
|
||||
function Androidpublisher(options) {
|
||||
const self = this;
|
||||
self._options = options || {};
|
||||
self.purchases = {
|
||||
/**
|
||||
* androidpublisher.purchases.cancel
|
||||
*
|
||||
* @desc Cancels a user's subscription purchase. The subscription remains valid until its expiration time.
|
||||
*
|
||||
* @alias androidpublisher.purchases.cancel
|
||||
* @memberOf! androidpublisher(v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.packageName The package name of the application for which this subscription was purchased (for example, 'com.some.thing').
|
||||
* @param {string} params.subscriptionId The purchased subscription ID (for example, 'monthly001').
|
||||
* @param {string} params.token The token provided to the user's device when the subscription was purchased.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
cancel: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/androidpublisher/v1/applications/{packageName}/subscriptions/{subscriptionId}/purchases/{token}/cancel').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['packageName', 'subscriptionId', 'token'],
|
||||
pathParams: ['packageName', 'subscriptionId', 'token'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* androidpublisher.purchases.get
|
||||
*
|
||||
* @desc Checks whether a user's subscription purchase is valid and returns its expiry time.
|
||||
*
|
||||
* @alias androidpublisher.purchases.get
|
||||
* @memberOf! androidpublisher(v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.packageName The package name of the application for which this subscription was purchased (for example, 'com.some.thing').
|
||||
* @param {string} params.subscriptionId The purchased subscription ID (for example, 'monthly001').
|
||||
* @param {string} params.token The token provided to the user's device when the subscription was purchased.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
get: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/androidpublisher/v1/applications/{packageName}/subscriptions/{subscriptionId}/purchases/{token}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['packageName', 'subscriptionId', 'token'],
|
||||
pathParams: ['packageName', 'subscriptionId', 'token'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
};
|
||||
}
|
||||
module.exports = Androidpublisher;
|
||||
//# sourceMappingURL=v1.js.map
|
||||
1
backend/node_modules/googleapis/apis/androidpublisher/v1.js.map
generated
vendored
Normal file
1
backend/node_modules/googleapis/apis/androidpublisher/v1.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"v1.js","sourceRoot":"","sources":["v1.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,0BAA0B;AAE1B,qDAAoD;AAEpD;;;;;;;;;;;;;;GAcG;AACH,0BAA0B,OAAO;IAC/B,MAAM,IAAI,GAAG,IAAI,CAAC;IAClB,IAAI,CAAC,QAAQ,GAAG,OAAO,IAAI,EAAE,CAAC;IAE9B,IAAI,CAAC,SAAS,GAAG;QAEf;;;;;;;;;;;;;;;WAeG;QACH,MAAM,EAAE,UAAU,MAAM,EAAE,OAAO,EAAE,QAAQ;YACzC,EAAE,CAAC,CAAC,OAAO,OAAO,KAAK,UAAU,CAAC,CAAC,CAAC;gBAClC,QAAQ,GAAG,OAAO,CAAC;gBACnB,OAAO,GAAG,EAAE,CAAC;YACf,CAAC;YACD,OAAO,IAAI,CAAC,OAAO,GAAG,EAAE,CAAC,CAAC;YAE1B,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,IAAI,6BAA6B,CAAC;YAEjE,MAAM,UAAU,GAAG;gBACjB,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC;oBACrB,GAAG,EAAE,CAAC,OAAO,GAAG,yGAAyG,CAAC,CAAC,OAAO,CAAC,cAAc,EAAE,IAAI,CAAC;oBACxJ,MAAM,EAAE,MAAM;iBACf,EAAE,OAAO,CAAC;gBACX,MAAM,EAAE,MAAM;gBACd,cAAc,EAAE,CAAC,aAAa,EAAE,gBAAgB,EAAE,OAAO,CAAC;gBAC1D,UAAU,EAAE,CAAC,aAAa,EAAE,gBAAgB,EAAE,OAAO,CAAC;gBACtD,OAAO,EAAE,IAAI;aACd,CAAC;YAEF,MAAM,CAAC,oBAAgB,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;QAChD,CAAC;QAED;;;;;;;;;;;;;;;WAeG;QACH,GAAG,EAAE,UAAU,MAAM,EAAE,OAAO,EAAE,QAAQ;YACtC,EAAE,CAAC,CAAC,OAAO,OAAO,KAAK,UAAU,CAAC,CAAC,CAAC;gBAClC,QAAQ,GAAG,OAAO,CAAC;gBACnB,OAAO,GAAG,EAAE,CAAC;YACf,CAAC;YACD,OAAO,IAAI,CAAC,OAAO,GAAG,EAAE,CAAC,CAAC;YAE1B,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,IAAI,6BAA6B,CAAC;YAEjE,MAAM,UAAU,GAAG;gBACjB,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC;oBACrB,GAAG,EAAE,CAAC,OAAO,GAAG,kGAAkG,CAAC,CAAC,OAAO,CAAC,cAAc,EAAE,IAAI,CAAC;oBACjJ,MAAM,EAAE,KAAK;iBACd,EAAE,OAAO,CAAC;gBACX,MAAM,EAAE,MAAM;gBACd,cAAc,EAAE,CAAC,aAAa,EAAE,gBAAgB,EAAE,OAAO,CAAC;gBAC1D,UAAU,EAAE,CAAC,aAAa,EAAE,gBAAgB,EAAE,OAAO,CAAC;gBACtD,OAAO,EAAE,IAAI;aACd,CAAC;YAEF,MAAM,CAAC,oBAAgB,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;QAChD,CAAC;KAEF,CAAC;AACJ,CAAC;AAWD,iBAAS,gBAAgB,CAAC"}
|
||||
132
backend/node_modules/googleapis/apis/androidpublisher/v1.ts
generated
vendored
Normal file
132
backend/node_modules/googleapis/apis/androidpublisher/v1.ts
generated
vendored
Normal file
@@ -0,0 +1,132 @@
|
||||
/**
|
||||
* Copyright 2015 Google Inc. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/* jshint maxlen: false */
|
||||
|
||||
import createAPIRequest from '../../lib/apirequest';
|
||||
|
||||
/**
|
||||
* Google Play Developer API
|
||||
*
|
||||
* Lets Android application developers access their Google Play accounts.
|
||||
*
|
||||
* @example
|
||||
* const google = require('googleapis');
|
||||
* const androidpublisher = google.androidpublisher('v1');
|
||||
*
|
||||
* @namespace androidpublisher
|
||||
* @type {Function}
|
||||
* @version v1
|
||||
* @variation v1
|
||||
* @param {object=} options Options for Androidpublisher
|
||||
*/
|
||||
function Androidpublisher(options) { // eslint-disable-line
|
||||
const self = this;
|
||||
self._options = options || {};
|
||||
|
||||
self.purchases = {
|
||||
|
||||
/**
|
||||
* androidpublisher.purchases.cancel
|
||||
*
|
||||
* @desc Cancels a user's subscription purchase. The subscription remains valid until its expiration time.
|
||||
*
|
||||
* @alias androidpublisher.purchases.cancel
|
||||
* @memberOf! androidpublisher(v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.packageName The package name of the application for which this subscription was purchased (for example, 'com.some.thing').
|
||||
* @param {string} params.subscriptionId The purchased subscription ID (for example, 'monthly001').
|
||||
* @param {string} params.token The token provided to the user's device when the subscription was purchased.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
cancel: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/androidpublisher/v1/applications/{packageName}/subscriptions/{subscriptionId}/purchases/{token}/cancel').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['packageName', 'subscriptionId', 'token'],
|
||||
pathParams: ['packageName', 'subscriptionId', 'token'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
},
|
||||
|
||||
/**
|
||||
* androidpublisher.purchases.get
|
||||
*
|
||||
* @desc Checks whether a user's subscription purchase is valid and returns its expiry time.
|
||||
*
|
||||
* @alias androidpublisher.purchases.get
|
||||
* @memberOf! androidpublisher(v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.packageName The package name of the application for which this subscription was purchased (for example, 'com.some.thing').
|
||||
* @param {string} params.subscriptionId The purchased subscription ID (for example, 'monthly001').
|
||||
* @param {string} params.token The token provided to the user's device when the subscription was purchased.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
get: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/androidpublisher/v1/applications/{packageName}/subscriptions/{subscriptionId}/purchases/{token}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['packageName', 'subscriptionId', 'token'],
|
||||
pathParams: ['packageName', 'subscriptionId', 'token'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
}
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* @typedef SubscriptionPurchase
|
||||
* @memberOf! androidpublisher(v1)
|
||||
* @type object
|
||||
* @property {boolean} autoRenewing Whether the subscription will automatically be renewed when it reaches its current expiry time.
|
||||
* @property {string} initiationTimestampMsec Time at which the subscription was granted, in milliseconds since the Epoch.
|
||||
* @property {string} kind This kind represents a subscriptionPurchase object in the androidpublisher service.
|
||||
* @property {string} validUntilTimestampMsec Time at which the subscription will expire, in milliseconds since the Epoch.
|
||||
*/
|
||||
export = Androidpublisher;
|
||||
2104
backend/node_modules/googleapis/apis/androidpublisher/v2.js
generated
vendored
Normal file
2104
backend/node_modules/googleapis/apis/androidpublisher/v2.js
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1
backend/node_modules/googleapis/apis/androidpublisher/v2.js.map
generated
vendored
Normal file
1
backend/node_modules/googleapis/apis/androidpublisher/v2.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
2893
backend/node_modules/googleapis/apis/androidpublisher/v2.ts
generated
vendored
Normal file
2893
backend/node_modules/googleapis/apis/androidpublisher/v2.ts
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1181
backend/node_modules/googleapis/apis/appengine/v1.js
generated
vendored
Normal file
1181
backend/node_modules/googleapis/apis/appengine/v1.js
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1
backend/node_modules/googleapis/apis/appengine/v1.js.map
generated
vendored
Normal file
1
backend/node_modules/googleapis/apis/appengine/v1.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
1939
backend/node_modules/googleapis/apis/appengine/v1.ts
generated
vendored
Normal file
1939
backend/node_modules/googleapis/apis/appengine/v1.ts
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
576
backend/node_modules/googleapis/apis/appengine/v1alpha.js
generated
vendored
Normal file
576
backend/node_modules/googleapis/apis/appengine/v1alpha.js
generated
vendored
Normal file
@@ -0,0 +1,576 @@
|
||||
"use strict";
|
||||
/**
|
||||
* Copyright 2015 Google Inc. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
/* jshint maxlen: false */
|
||||
const apirequest_1 = require("../../lib/apirequest");
|
||||
/**
|
||||
* Google App Engine Admin API
|
||||
*
|
||||
* The App Engine Admin API enables developers to provision and manage their App Engine applications.
|
||||
*
|
||||
* @example
|
||||
* const google = require('googleapis');
|
||||
* const appengine = google.appengine('v1alpha');
|
||||
*
|
||||
* @namespace appengine
|
||||
* @type {Function}
|
||||
* @version v1alpha
|
||||
* @variation v1alpha
|
||||
* @param {object=} options Options for Appengine
|
||||
*/
|
||||
function Appengine(options) {
|
||||
const self = this;
|
||||
self._options = options || {};
|
||||
self.apps = {
|
||||
authorizedCertificates: {
|
||||
/**
|
||||
* appengine.apps.authorizedCertificates.create
|
||||
*
|
||||
* @desc Uploads the specified SSL certificate.
|
||||
*
|
||||
* @alias appengine.apps.authorizedCertificates.create
|
||||
* @memberOf! appengine(v1alpha)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.appsId Part of `parent`. Name of the parent Application resource. Example: apps/myapp.
|
||||
* @param {appengine(v1alpha).AuthorizedCertificate} params.resource Request body data
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
create: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1alpha/apps/{appsId}/authorizedCertificates').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['appsId'],
|
||||
pathParams: ['appsId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* appengine.apps.authorizedCertificates.delete
|
||||
*
|
||||
* @desc Deletes the specified SSL certificate.
|
||||
*
|
||||
* @alias appengine.apps.authorizedCertificates.delete
|
||||
* @memberOf! appengine(v1alpha)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.appsId Part of `name`. Name of the resource to delete. Example: apps/myapp/authorizedCertificates/12345.
|
||||
* @param {string} params.authorizedCertificatesId Part of `name`. See documentation of `appsId`.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
delete: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1alpha/apps/{appsId}/authorizedCertificates/{authorizedCertificatesId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'DELETE'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['appsId', 'authorizedCertificatesId'],
|
||||
pathParams: ['appsId', 'authorizedCertificatesId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* appengine.apps.authorizedCertificates.get
|
||||
*
|
||||
* @desc Gets the specified SSL certificate.
|
||||
*
|
||||
* @alias appengine.apps.authorizedCertificates.get
|
||||
* @memberOf! appengine(v1alpha)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.appsId Part of `name`. Name of the resource requested. Example: apps/myapp/authorizedCertificates/12345.
|
||||
* @param {string} params.authorizedCertificatesId Part of `name`. See documentation of `appsId`.
|
||||
* @param {string=} params.view Controls the set of fields returned in the GET response.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
get: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1alpha/apps/{appsId}/authorizedCertificates/{authorizedCertificatesId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['appsId', 'authorizedCertificatesId'],
|
||||
pathParams: ['appsId', 'authorizedCertificatesId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* appengine.apps.authorizedCertificates.list
|
||||
*
|
||||
* @desc Lists all SSL certificates the user is authorized to administer.
|
||||
*
|
||||
* @alias appengine.apps.authorizedCertificates.list
|
||||
* @memberOf! appengine(v1alpha)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.appsId Part of `parent`. Name of the parent Application resource. Example: apps/myapp.
|
||||
* @param {integer=} params.pageSize Maximum results to return per page.
|
||||
* @param {string=} params.pageToken Continuation token for fetching the next page of results.
|
||||
* @param {string=} params.view Controls the set of fields returned in the LIST response.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
list: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1alpha/apps/{appsId}/authorizedCertificates').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['appsId'],
|
||||
pathParams: ['appsId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* appengine.apps.authorizedCertificates.patch
|
||||
*
|
||||
* @desc Updates the specified SSL certificate. To renew a certificate and maintain its existing domain mappings, update certificate_data with a new certificate. The new certificate must be applicable to the same domains as the original certificate. The certificate display_name may also be updated.
|
||||
*
|
||||
* @alias appengine.apps.authorizedCertificates.patch
|
||||
* @memberOf! appengine(v1alpha)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.appsId Part of `name`. Name of the resource to update. Example: apps/myapp/authorizedCertificates/12345.
|
||||
* @param {string} params.authorizedCertificatesId Part of `name`. See documentation of `appsId`.
|
||||
* @param {string=} params.updateMask Standard field mask for the set of fields to be updated. Updates are only supported on the certificate_raw_data and display_name fields.
|
||||
* @param {appengine(v1alpha).AuthorizedCertificate} params.resource Request body data
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
patch: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1alpha/apps/{appsId}/authorizedCertificates/{authorizedCertificatesId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'PATCH'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['appsId', 'authorizedCertificatesId'],
|
||||
pathParams: ['appsId', 'authorizedCertificatesId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
},
|
||||
authorizedDomains: {
|
||||
/**
|
||||
* appengine.apps.authorizedDomains.list
|
||||
*
|
||||
* @desc Lists all domains the user is authorized to administer.
|
||||
*
|
||||
* @alias appengine.apps.authorizedDomains.list
|
||||
* @memberOf! appengine(v1alpha)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.appsId Part of `parent`. Name of the parent Application resource. Example: apps/myapp.
|
||||
* @param {integer=} params.pageSize Maximum results to return per page.
|
||||
* @param {string=} params.pageToken Continuation token for fetching the next page of results.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
list: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1alpha/apps/{appsId}/authorizedDomains').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['appsId'],
|
||||
pathParams: ['appsId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
},
|
||||
domainMappings: {
|
||||
/**
|
||||
* appengine.apps.domainMappings.create
|
||||
*
|
||||
* @desc Maps a domain to an application. A user must be authorized to administer a domain in order to map it to an application. For a list of available authorized domains, see AuthorizedDomains.ListAuthorizedDomains.
|
||||
*
|
||||
* @alias appengine.apps.domainMappings.create
|
||||
* @memberOf! appengine(v1alpha)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.appsId Part of `parent`. Name of the parent Application resource. Example: apps/myapp.
|
||||
* @param {boolean=} params.noManagedCertificate Whether a managed certificate should be provided by App Engine. If true, a certificate ID must be manaually set in the DomainMapping resource to configure SSL for this domain. If false, a managed certificate will be provisioned and a certificate ID will be automatically populated.
|
||||
* @param {appengine(v1alpha).DomainMapping} params.resource Request body data
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
create: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1alpha/apps/{appsId}/domainMappings').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['appsId'],
|
||||
pathParams: ['appsId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* appengine.apps.domainMappings.delete
|
||||
*
|
||||
* @desc Deletes the specified domain mapping. A user must be authorized to administer the associated domain in order to delete a DomainMapping resource.
|
||||
*
|
||||
* @alias appengine.apps.domainMappings.delete
|
||||
* @memberOf! appengine(v1alpha)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.appsId Part of `name`. Name of the resource to delete. Example: apps/myapp/domainMappings/example.com.
|
||||
* @param {string} params.domainMappingsId Part of `name`. See documentation of `appsId`.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
delete: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1alpha/apps/{appsId}/domainMappings/{domainMappingsId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'DELETE'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['appsId', 'domainMappingsId'],
|
||||
pathParams: ['appsId', 'domainMappingsId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* appengine.apps.domainMappings.get
|
||||
*
|
||||
* @desc Gets the specified domain mapping.
|
||||
*
|
||||
* @alias appengine.apps.domainMappings.get
|
||||
* @memberOf! appengine(v1alpha)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.appsId Part of `name`. Name of the resource requested. Example: apps/myapp/domainMappings/example.com.
|
||||
* @param {string} params.domainMappingsId Part of `name`. See documentation of `appsId`.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
get: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1alpha/apps/{appsId}/domainMappings/{domainMappingsId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['appsId', 'domainMappingsId'],
|
||||
pathParams: ['appsId', 'domainMappingsId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* appengine.apps.domainMappings.list
|
||||
*
|
||||
* @desc Lists the domain mappings on an application.
|
||||
*
|
||||
* @alias appengine.apps.domainMappings.list
|
||||
* @memberOf! appengine(v1alpha)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.appsId Part of `parent`. Name of the parent Application resource. Example: apps/myapp.
|
||||
* @param {integer=} params.pageSize Maximum results to return per page.
|
||||
* @param {string=} params.pageToken Continuation token for fetching the next page of results.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
list: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1alpha/apps/{appsId}/domainMappings').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['appsId'],
|
||||
pathParams: ['appsId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* appengine.apps.domainMappings.patch
|
||||
*
|
||||
* @desc Updates the specified domain mapping. To map an SSL certificate to a domain mapping, update certificate_id to point to an AuthorizedCertificate resource. A user must be authorized to administer the associated domain in order to update a DomainMapping resource.
|
||||
*
|
||||
* @alias appengine.apps.domainMappings.patch
|
||||
* @memberOf! appengine(v1alpha)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.appsId Part of `name`. Name of the resource to update. Example: apps/myapp/domainMappings/example.com.
|
||||
* @param {string} params.domainMappingsId Part of `name`. See documentation of `appsId`.
|
||||
* @param {boolean=} params.noManagedCertificate Whether a managed certificate should be provided by App Engine. If true, a certificate ID must be manually set in the DomainMapping resource to configure SSL for this domain. If false, a managed certificate will be provisioned and a certificate ID will be automatically populated. Only applicable if ssl_settings.certificate_id is specified in the update mask.
|
||||
* @param {string=} params.updateMask Standard field mask for the set of fields to be updated.
|
||||
* @param {appengine(v1alpha).DomainMapping} params.resource Request body data
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
patch: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1alpha/apps/{appsId}/domainMappings/{domainMappingsId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'PATCH'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['appsId', 'domainMappingsId'],
|
||||
pathParams: ['appsId', 'domainMappingsId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
},
|
||||
locations: {
|
||||
/**
|
||||
* appengine.apps.locations.get
|
||||
*
|
||||
* @desc Get information about a location.
|
||||
*
|
||||
* @alias appengine.apps.locations.get
|
||||
* @memberOf! appengine(v1alpha)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.appsId Part of `name`. Resource name for the location.
|
||||
* @param {string} params.locationsId Part of `name`. See documentation of `appsId`.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
get: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1alpha/apps/{appsId}/locations/{locationsId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['appsId', 'locationsId'],
|
||||
pathParams: ['appsId', 'locationsId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* appengine.apps.locations.list
|
||||
*
|
||||
* @desc Lists information about the supported locations for this service.
|
||||
*
|
||||
* @alias appengine.apps.locations.list
|
||||
* @memberOf! appengine(v1alpha)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.appsId Part of `name`. The resource that owns the locations collection, if applicable.
|
||||
* @param {string=} params.filter The standard list filter.
|
||||
* @param {integer=} params.pageSize The standard list page size.
|
||||
* @param {string=} params.pageToken The standard list page token.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
list: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1alpha/apps/{appsId}/locations').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['appsId'],
|
||||
pathParams: ['appsId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
},
|
||||
operations: {
|
||||
/**
|
||||
* appengine.apps.operations.get
|
||||
*
|
||||
* @desc 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.
|
||||
*
|
||||
* @alias appengine.apps.operations.get
|
||||
* @memberOf! appengine(v1alpha)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.appsId Part of `name`. The name of the operation resource.
|
||||
* @param {string} params.operationsId Part of `name`. See documentation of `appsId`.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
get: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1alpha/apps/{appsId}/operations/{operationsId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['appsId', 'operationsId'],
|
||||
pathParams: ['appsId', 'operationsId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* appengine.apps.operations.list
|
||||
*
|
||||
* @desc 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 allows API services to override the binding to use different resource name schemes, such as users/x/operations. To override the binding, API services can add a binding such as "/v1/{name=users/x}/operations" to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.
|
||||
*
|
||||
* @alias appengine.apps.operations.list
|
||||
* @memberOf! appengine(v1alpha)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.appsId Part of `name`. The name of the operation's parent resource.
|
||||
* @param {string=} params.filter The standard list filter.
|
||||
* @param {integer=} params.pageSize The standard list page size.
|
||||
* @param {string=} params.pageToken The standard list page token.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
list: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1alpha/apps/{appsId}/operations').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['appsId'],
|
||||
pathParams: ['appsId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
module.exports = Appengine;
|
||||
//# sourceMappingURL=v1alpha.js.map
|
||||
1
backend/node_modules/googleapis/apis/appengine/v1alpha.js.map
generated
vendored
Normal file
1
backend/node_modules/googleapis/apis/appengine/v1alpha.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
863
backend/node_modules/googleapis/apis/appengine/v1alpha.ts
generated
vendored
Normal file
863
backend/node_modules/googleapis/apis/appengine/v1alpha.ts
generated
vendored
Normal file
@@ -0,0 +1,863 @@
|
||||
/**
|
||||
* Copyright 2015 Google Inc. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/* jshint maxlen: false */
|
||||
|
||||
import createAPIRequest from '../../lib/apirequest';
|
||||
|
||||
/**
|
||||
* Google App Engine Admin API
|
||||
*
|
||||
* The App Engine Admin API enables developers to provision and manage their App Engine applications.
|
||||
*
|
||||
* @example
|
||||
* const google = require('googleapis');
|
||||
* const appengine = google.appengine('v1alpha');
|
||||
*
|
||||
* @namespace appengine
|
||||
* @type {Function}
|
||||
* @version v1alpha
|
||||
* @variation v1alpha
|
||||
* @param {object=} options Options for Appengine
|
||||
*/
|
||||
function Appengine(options) { // eslint-disable-line
|
||||
const self = this;
|
||||
self._options = options || {};
|
||||
|
||||
self.apps = {
|
||||
authorizedCertificates: {
|
||||
|
||||
/**
|
||||
* appengine.apps.authorizedCertificates.create
|
||||
*
|
||||
* @desc Uploads the specified SSL certificate.
|
||||
*
|
||||
* @alias appengine.apps.authorizedCertificates.create
|
||||
* @memberOf! appengine(v1alpha)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.appsId Part of `parent`. Name of the parent Application resource. Example: apps/myapp.
|
||||
* @param {appengine(v1alpha).AuthorizedCertificate} params.resource Request body data
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
create: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
|
||||
const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/';
|
||||
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1alpha/apps/{appsId}/authorizedCertificates').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['appsId'],
|
||||
pathParams: ['appsId'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
},
|
||||
|
||||
/**
|
||||
* appengine.apps.authorizedCertificates.delete
|
||||
*
|
||||
* @desc Deletes the specified SSL certificate.
|
||||
*
|
||||
* @alias appengine.apps.authorizedCertificates.delete
|
||||
* @memberOf! appengine(v1alpha)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.appsId Part of `name`. Name of the resource to delete. Example: apps/myapp/authorizedCertificates/12345.
|
||||
* @param {string} params.authorizedCertificatesId Part of `name`. See documentation of `appsId`.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
delete: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
|
||||
const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/';
|
||||
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1alpha/apps/{appsId}/authorizedCertificates/{authorizedCertificatesId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'DELETE'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['appsId', 'authorizedCertificatesId'],
|
||||
pathParams: ['appsId', 'authorizedCertificatesId'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
},
|
||||
|
||||
/**
|
||||
* appengine.apps.authorizedCertificates.get
|
||||
*
|
||||
* @desc Gets the specified SSL certificate.
|
||||
*
|
||||
* @alias appengine.apps.authorizedCertificates.get
|
||||
* @memberOf! appengine(v1alpha)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.appsId Part of `name`. Name of the resource requested. Example: apps/myapp/authorizedCertificates/12345.
|
||||
* @param {string} params.authorizedCertificatesId Part of `name`. See documentation of `appsId`.
|
||||
* @param {string=} params.view Controls the set of fields returned in the GET response.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
get: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
|
||||
const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/';
|
||||
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1alpha/apps/{appsId}/authorizedCertificates/{authorizedCertificatesId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['appsId', 'authorizedCertificatesId'],
|
||||
pathParams: ['appsId', 'authorizedCertificatesId'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
},
|
||||
|
||||
/**
|
||||
* appengine.apps.authorizedCertificates.list
|
||||
*
|
||||
* @desc Lists all SSL certificates the user is authorized to administer.
|
||||
*
|
||||
* @alias appengine.apps.authorizedCertificates.list
|
||||
* @memberOf! appengine(v1alpha)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.appsId Part of `parent`. Name of the parent Application resource. Example: apps/myapp.
|
||||
* @param {integer=} params.pageSize Maximum results to return per page.
|
||||
* @param {string=} params.pageToken Continuation token for fetching the next page of results.
|
||||
* @param {string=} params.view Controls the set of fields returned in the LIST response.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
list: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
|
||||
const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/';
|
||||
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1alpha/apps/{appsId}/authorizedCertificates').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['appsId'],
|
||||
pathParams: ['appsId'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
},
|
||||
|
||||
/**
|
||||
* appengine.apps.authorizedCertificates.patch
|
||||
*
|
||||
* @desc Updates the specified SSL certificate. To renew a certificate and maintain its existing domain mappings, update certificate_data with a new certificate. The new certificate must be applicable to the same domains as the original certificate. The certificate display_name may also be updated.
|
||||
*
|
||||
* @alias appengine.apps.authorizedCertificates.patch
|
||||
* @memberOf! appengine(v1alpha)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.appsId Part of `name`. Name of the resource to update. Example: apps/myapp/authorizedCertificates/12345.
|
||||
* @param {string} params.authorizedCertificatesId Part of `name`. See documentation of `appsId`.
|
||||
* @param {string=} params.updateMask Standard field mask for the set of fields to be updated. Updates are only supported on the certificate_raw_data and display_name fields.
|
||||
* @param {appengine(v1alpha).AuthorizedCertificate} params.resource Request body data
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
patch: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
|
||||
const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/';
|
||||
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1alpha/apps/{appsId}/authorizedCertificates/{authorizedCertificatesId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'PATCH'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['appsId', 'authorizedCertificatesId'],
|
||||
pathParams: ['appsId', 'authorizedCertificatesId'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
}
|
||||
},
|
||||
authorizedDomains: {
|
||||
|
||||
/**
|
||||
* appengine.apps.authorizedDomains.list
|
||||
*
|
||||
* @desc Lists all domains the user is authorized to administer.
|
||||
*
|
||||
* @alias appengine.apps.authorizedDomains.list
|
||||
* @memberOf! appengine(v1alpha)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.appsId Part of `parent`. Name of the parent Application resource. Example: apps/myapp.
|
||||
* @param {integer=} params.pageSize Maximum results to return per page.
|
||||
* @param {string=} params.pageToken Continuation token for fetching the next page of results.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
list: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
|
||||
const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/';
|
||||
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1alpha/apps/{appsId}/authorizedDomains').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['appsId'],
|
||||
pathParams: ['appsId'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
}
|
||||
},
|
||||
domainMappings: {
|
||||
|
||||
/**
|
||||
* appengine.apps.domainMappings.create
|
||||
*
|
||||
* @desc Maps a domain to an application. A user must be authorized to administer a domain in order to map it to an application. For a list of available authorized domains, see AuthorizedDomains.ListAuthorizedDomains.
|
||||
*
|
||||
* @alias appengine.apps.domainMappings.create
|
||||
* @memberOf! appengine(v1alpha)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.appsId Part of `parent`. Name of the parent Application resource. Example: apps/myapp.
|
||||
* @param {boolean=} params.noManagedCertificate Whether a managed certificate should be provided by App Engine. If true, a certificate ID must be manaually set in the DomainMapping resource to configure SSL for this domain. If false, a managed certificate will be provisioned and a certificate ID will be automatically populated.
|
||||
* @param {appengine(v1alpha).DomainMapping} params.resource Request body data
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
create: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
|
||||
const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/';
|
||||
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1alpha/apps/{appsId}/domainMappings').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['appsId'],
|
||||
pathParams: ['appsId'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
},
|
||||
|
||||
/**
|
||||
* appengine.apps.domainMappings.delete
|
||||
*
|
||||
* @desc Deletes the specified domain mapping. A user must be authorized to administer the associated domain in order to delete a DomainMapping resource.
|
||||
*
|
||||
* @alias appengine.apps.domainMappings.delete
|
||||
* @memberOf! appengine(v1alpha)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.appsId Part of `name`. Name of the resource to delete. Example: apps/myapp/domainMappings/example.com.
|
||||
* @param {string} params.domainMappingsId Part of `name`. See documentation of `appsId`.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
delete: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
|
||||
const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/';
|
||||
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1alpha/apps/{appsId}/domainMappings/{domainMappingsId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'DELETE'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['appsId', 'domainMappingsId'],
|
||||
pathParams: ['appsId', 'domainMappingsId'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
},
|
||||
|
||||
/**
|
||||
* appengine.apps.domainMappings.get
|
||||
*
|
||||
* @desc Gets the specified domain mapping.
|
||||
*
|
||||
* @alias appengine.apps.domainMappings.get
|
||||
* @memberOf! appengine(v1alpha)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.appsId Part of `name`. Name of the resource requested. Example: apps/myapp/domainMappings/example.com.
|
||||
* @param {string} params.domainMappingsId Part of `name`. See documentation of `appsId`.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
get: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
|
||||
const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/';
|
||||
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1alpha/apps/{appsId}/domainMappings/{domainMappingsId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['appsId', 'domainMappingsId'],
|
||||
pathParams: ['appsId', 'domainMappingsId'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
},
|
||||
|
||||
/**
|
||||
* appengine.apps.domainMappings.list
|
||||
*
|
||||
* @desc Lists the domain mappings on an application.
|
||||
*
|
||||
* @alias appengine.apps.domainMappings.list
|
||||
* @memberOf! appengine(v1alpha)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.appsId Part of `parent`. Name of the parent Application resource. Example: apps/myapp.
|
||||
* @param {integer=} params.pageSize Maximum results to return per page.
|
||||
* @param {string=} params.pageToken Continuation token for fetching the next page of results.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
list: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
|
||||
const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/';
|
||||
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1alpha/apps/{appsId}/domainMappings').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['appsId'],
|
||||
pathParams: ['appsId'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
},
|
||||
|
||||
/**
|
||||
* appengine.apps.domainMappings.patch
|
||||
*
|
||||
* @desc Updates the specified domain mapping. To map an SSL certificate to a domain mapping, update certificate_id to point to an AuthorizedCertificate resource. A user must be authorized to administer the associated domain in order to update a DomainMapping resource.
|
||||
*
|
||||
* @alias appengine.apps.domainMappings.patch
|
||||
* @memberOf! appengine(v1alpha)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.appsId Part of `name`. Name of the resource to update. Example: apps/myapp/domainMappings/example.com.
|
||||
* @param {string} params.domainMappingsId Part of `name`. See documentation of `appsId`.
|
||||
* @param {boolean=} params.noManagedCertificate Whether a managed certificate should be provided by App Engine. If true, a certificate ID must be manually set in the DomainMapping resource to configure SSL for this domain. If false, a managed certificate will be provisioned and a certificate ID will be automatically populated. Only applicable if ssl_settings.certificate_id is specified in the update mask.
|
||||
* @param {string=} params.updateMask Standard field mask for the set of fields to be updated.
|
||||
* @param {appengine(v1alpha).DomainMapping} params.resource Request body data
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
patch: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
|
||||
const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/';
|
||||
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1alpha/apps/{appsId}/domainMappings/{domainMappingsId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'PATCH'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['appsId', 'domainMappingsId'],
|
||||
pathParams: ['appsId', 'domainMappingsId'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
}
|
||||
},
|
||||
locations: {
|
||||
|
||||
/**
|
||||
* appengine.apps.locations.get
|
||||
*
|
||||
* @desc Get information about a location.
|
||||
*
|
||||
* @alias appengine.apps.locations.get
|
||||
* @memberOf! appengine(v1alpha)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.appsId Part of `name`. Resource name for the location.
|
||||
* @param {string} params.locationsId Part of `name`. See documentation of `appsId`.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
get: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
|
||||
const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/';
|
||||
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1alpha/apps/{appsId}/locations/{locationsId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['appsId', 'locationsId'],
|
||||
pathParams: ['appsId', 'locationsId'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
},
|
||||
|
||||
/**
|
||||
* appengine.apps.locations.list
|
||||
*
|
||||
* @desc Lists information about the supported locations for this service.
|
||||
*
|
||||
* @alias appengine.apps.locations.list
|
||||
* @memberOf! appengine(v1alpha)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.appsId Part of `name`. The resource that owns the locations collection, if applicable.
|
||||
* @param {string=} params.filter The standard list filter.
|
||||
* @param {integer=} params.pageSize The standard list page size.
|
||||
* @param {string=} params.pageToken The standard list page token.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
list: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
|
||||
const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/';
|
||||
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1alpha/apps/{appsId}/locations').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['appsId'],
|
||||
pathParams: ['appsId'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
}
|
||||
},
|
||||
operations: {
|
||||
|
||||
/**
|
||||
* appengine.apps.operations.get
|
||||
*
|
||||
* @desc 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.
|
||||
*
|
||||
* @alias appengine.apps.operations.get
|
||||
* @memberOf! appengine(v1alpha)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.appsId Part of `name`. The name of the operation resource.
|
||||
* @param {string} params.operationsId Part of `name`. See documentation of `appsId`.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
get: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
|
||||
const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/';
|
||||
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1alpha/apps/{appsId}/operations/{operationsId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['appsId', 'operationsId'],
|
||||
pathParams: ['appsId', 'operationsId'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
},
|
||||
|
||||
/**
|
||||
* appengine.apps.operations.list
|
||||
*
|
||||
* @desc 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 allows API services to override the binding to use different resource name schemes, such as users/x/operations. To override the binding, API services can add a binding such as "/v1/{name=users/x}/operations" to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.
|
||||
*
|
||||
* @alias appengine.apps.operations.list
|
||||
* @memberOf! appengine(v1alpha)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.appsId Part of `name`. The name of the operation's parent resource.
|
||||
* @param {string=} params.filter The standard list filter.
|
||||
* @param {integer=} params.pageSize The standard list page size.
|
||||
* @param {string=} params.pageToken The standard list page token.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
list: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
|
||||
const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/';
|
||||
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1alpha/apps/{appsId}/operations').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['appsId'],
|
||||
pathParams: ['appsId'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* @typedef AuthorizedCertificate
|
||||
* @memberOf! appengine(v1alpha)
|
||||
* @type object
|
||||
* @property {appengine(v1alpha).CertificateRawData} certificateRawData The SSL certificate serving the AuthorizedCertificate resource. This must be obtained independently from a certificate authority.
|
||||
* @property {string} displayName The user-specified display name of the certificate. This is not guaranteed to be unique. Example: My Certificate.
|
||||
* @property {integer} domainMappingsCount Aggregate count of the domain mappings with this certificate mapped. This count includes domain mappings on applications for which the user does not have VIEWER permissions.Only returned by GET or LIST requests when specifically requested by the view=FULL_CERTIFICATE option.@OutputOnly
|
||||
* @property {string[]} domainNames Topmost applicable domains of this certificate. This certificate applies to these domains and their subdomains. Example: example.com.@OutputOnly
|
||||
* @property {string} expireTime The time when this certificate expires. To update the renewal time on this certificate, upload an SSL certificate with a different expiration time using AuthorizedCertificates.UpdateAuthorizedCertificate.@OutputOnly
|
||||
* @property {string} id Relative name of the certificate. This is a unique value autogenerated on AuthorizedCertificate resource creation. Example: 12345.@OutputOnly
|
||||
* @property {appengine(v1alpha).ManagedCertificate} managedCertificate Only applicable if this certificate is managed by App Engine. Managed certificates are tied to the lifecycle of a DomainMapping and cannot be updated or deleted via the AuthorizedCertificates API. If this certificate is manually administered by the user, this field will be empty.@OutputOnly
|
||||
* @property {string} name Full path to the AuthorizedCertificate resource in the API. Example: apps/myapp/authorizedCertificates/12345.@OutputOnly
|
||||
* @property {string[]} visibleDomainMappings The full paths to user visible Domain Mapping resources that have this certificate mapped. Example: apps/myapp/domainMappings/example.com.This may not represent the full list of mapped domain mappings if the user does not have VIEWER permissions on all of the applications that have this certificate mapped. See domain_mappings_count for a complete count.Only returned by GET or LIST requests when specifically requested by the view=FULL_CERTIFICATE option.@OutputOnly
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef AuthorizedDomain
|
||||
* @memberOf! appengine(v1alpha)
|
||||
* @type object
|
||||
* @property {string} id Fully qualified domain name of the domain authorized for use. Example: example.com.
|
||||
* @property {string} name Full path to the AuthorizedDomain resource in the API. Example: apps/myapp/authorizedDomains/example.com.@OutputOnly
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef CertificateRawData
|
||||
* @memberOf! appengine(v1alpha)
|
||||
* @type object
|
||||
* @property {string} privateKey Unencrypted PEM encoded RSA private key. This field is set once on certificate creation and then encrypted. The key size must be 2048 bits or fewer. Must include the header and footer. Example: <pre> -----BEGIN RSA PRIVATE KEY----- <unencrypted_key_value> -----END RSA PRIVATE KEY----- </pre> @InputOnly
|
||||
* @property {string} publicCertificate PEM encoded x.509 public key certificate. This field is set once on certificate creation. Must include the header and footer. Example: <pre> -----BEGIN CERTIFICATE----- <certificate_value> -----END CERTIFICATE----- </pre>
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef DomainMapping
|
||||
* @memberOf! appengine(v1alpha)
|
||||
* @type object
|
||||
* @property {string} id Relative name of the domain serving the application. Example: example.com.
|
||||
* @property {string} name Full path to the DomainMapping resource in the API. Example: apps/myapp/domainMapping/example.com.@OutputOnly
|
||||
* @property {appengine(v1alpha).ResourceRecord[]} resourceRecords The resource records required to configure this domain mapping. These records must be added to the domain's DNS configuration in order to serve the application via this domain mapping.@OutputOnly
|
||||
* @property {appengine(v1alpha).SslSettings} sslSettings SSL configuration for this domain. If unconfigured, this domain will not serve with SSL.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef Empty
|
||||
* @memberOf! appengine(v1alpha)
|
||||
* @type object
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef ListAuthorizedCertificatesResponse
|
||||
* @memberOf! appengine(v1alpha)
|
||||
* @type object
|
||||
* @property {appengine(v1alpha).AuthorizedCertificate[]} certificates The SSL certificates the user is authorized to administer.
|
||||
* @property {string} nextPageToken Continuation token for fetching the next page of results.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef ListAuthorizedDomainsResponse
|
||||
* @memberOf! appengine(v1alpha)
|
||||
* @type object
|
||||
* @property {appengine(v1alpha).AuthorizedDomain[]} domains The authorized domains belonging to the user.
|
||||
* @property {string} nextPageToken Continuation token for fetching the next page of results.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef ListDomainMappingsResponse
|
||||
* @memberOf! appengine(v1alpha)
|
||||
* @type object
|
||||
* @property {appengine(v1alpha).DomainMapping[]} domainMappings The domain mappings for the application.
|
||||
* @property {string} nextPageToken Continuation token for fetching the next page of results.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef ListLocationsResponse
|
||||
* @memberOf! appengine(v1alpha)
|
||||
* @type object
|
||||
* @property {appengine(v1alpha).Location[]} locations A list of locations that matches the specified filter in the request.
|
||||
* @property {string} nextPageToken The standard List next-page token.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef ListOperationsResponse
|
||||
* @memberOf! appengine(v1alpha)
|
||||
* @type object
|
||||
* @property {string} nextPageToken The standard List next-page token.
|
||||
* @property {appengine(v1alpha).Operation[]} operations A list of operations that matches the specified filter in the request.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef Location
|
||||
* @memberOf! appengine(v1alpha)
|
||||
* @type object
|
||||
* @property {object} labels Cross-service attributes for the location. For example
|
||||
{"cloud.googleapis.com/region": "us-east1"}
|
||||
|
||||
* @property {string} locationId The canonical id for this location. For example: "us-east1".
|
||||
* @property {object} metadata Service-specific metadata. For example the available capacity at the given location.
|
||||
* @property {string} name Resource name for the location, which may vary between implementations. For example: "projects/example-project/locations/us-east1"
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef LocationMetadata
|
||||
* @memberOf! appengine(v1alpha)
|
||||
* @type object
|
||||
* @property {boolean} flexibleEnvironmentAvailable App Engine Flexible Environment is available in the given location.@OutputOnly
|
||||
* @property {boolean} standardEnvironmentAvailable App Engine Standard Environment is available in the given location.@OutputOnly
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef ManagedCertificate
|
||||
* @memberOf! appengine(v1alpha)
|
||||
* @type object
|
||||
* @property {string} lastRenewalTime Time at which the certificate was last renewed. The renewal process is fully managed. Certificate renewal will automatically occur before the certificate expires. Renewal errors can be tracked via ManagementStatus.@OutputOnly
|
||||
* @property {string} status Status of certificate management. Refers to the most recent certificate acquisition or renewal attempt.@OutputOnly
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef Operation
|
||||
* @memberOf! appengine(v1alpha)
|
||||
* @type object
|
||||
* @property {boolean} done 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.
|
||||
* @property {appengine(v1alpha).Status} error The error result of the operation in case of failure or cancellation.
|
||||
* @property {object} metadata 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.
|
||||
* @property {string} name 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.
|
||||
* @property {object} response 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.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef OperationMetadata
|
||||
* @memberOf! appengine(v1alpha)
|
||||
* @type object
|
||||
* @property {string} endTime Timestamp that this operation completed.@OutputOnly
|
||||
* @property {string} insertTime Timestamp that this operation was created.@OutputOnly
|
||||
* @property {string} method API method that initiated this operation. Example: google.appengine.v1beta4.Version.CreateVersion.@OutputOnly
|
||||
* @property {string} operationType Type of this operation. Deprecated, use method field instead. Example: "create_version".@OutputOnly
|
||||
* @property {string} target Name of the resource that this operation is acting on. Example: apps/myapp/modules/default.@OutputOnly
|
||||
* @property {string} user User who requested this operation.@OutputOnly
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef OperationMetadataExperimental
|
||||
* @memberOf! appengine(v1alpha)
|
||||
* @type object
|
||||
* @property {string} endTime Time that this operation completed.@OutputOnly
|
||||
* @property {string} insertTime Time that this operation was created.@OutputOnly
|
||||
* @property {string} method API method that initiated this operation. Example: google.appengine.experimental.CustomDomains.CreateCustomDomain.@OutputOnly
|
||||
* @property {string} target Name of the resource that this operation is acting on. Example: apps/myapp/customDomains/example.com.@OutputOnly
|
||||
* @property {string} user User who requested this operation.@OutputOnly
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef OperationMetadataV1
|
||||
* @memberOf! appengine(v1alpha)
|
||||
* @type object
|
||||
* @property {string} endTime Time that this operation completed.@OutputOnly
|
||||
* @property {string} ephemeralMessage Ephemeral message that may change every time the operation is polled. @OutputOnly
|
||||
* @property {string} insertTime Time that this operation was created.@OutputOnly
|
||||
* @property {string} method API method that initiated this operation. Example: google.appengine.v1.Versions.CreateVersion.@OutputOnly
|
||||
* @property {string} target Name of the resource that this operation is acting on. Example: apps/myapp/services/default.@OutputOnly
|
||||
* @property {string} user User who requested this operation.@OutputOnly
|
||||
* @property {string[]} warning Durable messages that persist on every operation poll. @OutputOnly
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef OperationMetadataV1Alpha
|
||||
* @memberOf! appengine(v1alpha)
|
||||
* @type object
|
||||
* @property {string} endTime Time that this operation completed.@OutputOnly
|
||||
* @property {string} ephemeralMessage Ephemeral message that may change every time the operation is polled. @OutputOnly
|
||||
* @property {string} insertTime Time that this operation was created.@OutputOnly
|
||||
* @property {string} method API method that initiated this operation. Example: google.appengine.v1alpha.Versions.CreateVersion.@OutputOnly
|
||||
* @property {string} target Name of the resource that this operation is acting on. Example: apps/myapp/services/default.@OutputOnly
|
||||
* @property {string} user User who requested this operation.@OutputOnly
|
||||
* @property {string[]} warning Durable messages that persist on every operation poll. @OutputOnly
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef OperationMetadataV1Beta
|
||||
* @memberOf! appengine(v1alpha)
|
||||
* @type object
|
||||
* @property {string} endTime Time that this operation completed.@OutputOnly
|
||||
* @property {string} ephemeralMessage Ephemeral message that may change every time the operation is polled. @OutputOnly
|
||||
* @property {string} insertTime Time that this operation was created.@OutputOnly
|
||||
* @property {string} method API method that initiated this operation. Example: google.appengine.v1beta.Versions.CreateVersion.@OutputOnly
|
||||
* @property {string} target Name of the resource that this operation is acting on. Example: apps/myapp/services/default.@OutputOnly
|
||||
* @property {string} user User who requested this operation.@OutputOnly
|
||||
* @property {string[]} warning Durable messages that persist on every operation poll. @OutputOnly
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef OperationMetadataV1Beta5
|
||||
* @memberOf! appengine(v1alpha)
|
||||
* @type object
|
||||
* @property {string} endTime Timestamp that this operation completed.@OutputOnly
|
||||
* @property {string} insertTime Timestamp that this operation was created.@OutputOnly
|
||||
* @property {string} method API method name that initiated this operation. Example: google.appengine.v1beta5.Version.CreateVersion.@OutputOnly
|
||||
* @property {string} target Name of the resource that this operation is acting on. Example: apps/myapp/services/default.@OutputOnly
|
||||
* @property {string} user User who requested this operation.@OutputOnly
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef ResourceRecord
|
||||
* @memberOf! appengine(v1alpha)
|
||||
* @type object
|
||||
* @property {string} name Relative name of the object affected by this record. Only applicable for CNAME records. Example: 'www'.
|
||||
* @property {string} rrdata Data for this record. Values vary by record type, as defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1).
|
||||
* @property {string} type Resource record type. Example: AAAA.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef SslSettings
|
||||
* @memberOf! appengine(v1alpha)
|
||||
* @type object
|
||||
* @property {string} certificateId ID of the AuthorizedCertificate resource configuring SSL for the application. Clearing this field will remove SSL support.By default, a managed certificate is automatically created for every domain mapping. To omit SSL support or to configure SSL manually, specify no_managed_certificate on a CREATE or UPDATE request. You must be authorized to administer the AuthorizedCertificate resource to manually map it to a DomainMapping resource. Example: 12345.
|
||||
* @property {boolean} isManagedCertificate Whether the mapped certificate is an App Engine managed certificate. Managed certificates are created by default with a domain mapping. To opt out, specify no_managed_certificate on a CREATE or UPDATE request.@OutputOnly
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef Status
|
||||
* @memberOf! appengine(v1alpha)
|
||||
* @type object
|
||||
* @property {integer} code The status code, which should be an enum value of google.rpc.Code.
|
||||
* @property {object[]} details A list of messages that carry the error details. There is a common set of message types for APIs to use.
|
||||
* @property {string} message 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.
|
||||
*/
|
||||
export = Appengine;
|
||||
1393
backend/node_modules/googleapis/apis/appengine/v1beta.js
generated
vendored
Normal file
1393
backend/node_modules/googleapis/apis/appengine/v1beta.js
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1
backend/node_modules/googleapis/apis/appengine/v1beta.js.map
generated
vendored
Normal file
1
backend/node_modules/googleapis/apis/appengine/v1beta.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
2237
backend/node_modules/googleapis/apis/appengine/v1beta.ts
generated
vendored
Normal file
2237
backend/node_modules/googleapis/apis/appengine/v1beta.ts
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
759
backend/node_modules/googleapis/apis/appengine/v1beta4.js
generated
vendored
Normal file
759
backend/node_modules/googleapis/apis/appengine/v1beta4.js
generated
vendored
Normal file
@@ -0,0 +1,759 @@
|
||||
"use strict";
|
||||
/**
|
||||
* Copyright 2015 Google Inc. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
/* jshint maxlen: false */
|
||||
const apirequest_1 = require("../../lib/apirequest");
|
||||
/**
|
||||
* Google App Engine Admin API
|
||||
*
|
||||
* The App Engine Admin API enables developers to provision and manage their App Engine applications.
|
||||
*
|
||||
* @example
|
||||
* const google = require('googleapis');
|
||||
* const appengine = google.appengine('v1beta4');
|
||||
*
|
||||
* @namespace appengine
|
||||
* @type {Function}
|
||||
* @version v1beta4
|
||||
* @variation v1beta4
|
||||
* @param {object=} options Options for Appengine
|
||||
*/
|
||||
function Appengine(options) {
|
||||
const self = this;
|
||||
self._options = options || {};
|
||||
self.apps = {
|
||||
/**
|
||||
* appengine.apps.create
|
||||
*
|
||||
* @desc Creates an App Engine application for a Google Cloud Platform project. Required fields: id - The ID of the target Cloud Platform project. location - The region (https://cloud.google.com/appengine/docs/locations) where you want the App Engine application located.For more information about App Engine applications, see Managing Projects, Applications, and Billing (https://cloud.google.com/appengine/docs/python/console/).
|
||||
*
|
||||
* @alias appengine.apps.create
|
||||
* @memberOf! appengine(v1beta4)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {appengine(v1beta4).Application} params.resource Request body data
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
create: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1beta4/apps').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* appengine.apps.get
|
||||
*
|
||||
* @desc Gets information about an application.
|
||||
*
|
||||
* @alias appengine.apps.get
|
||||
* @memberOf! appengine(v1beta4)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.appsId Part of `name`. Name of the application to get. Example: apps/myapp.
|
||||
* @param {boolean=} params.ensureResourcesExist Certain resources associated with an application are created on-demand. Controls whether these resources should be created when performing the GET operation. If specified and any resources could not be created, the request will fail with an error code. Additionally, this parameter can cause the request to take longer to complete.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
get: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1beta4/apps/{appsId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['appsId'],
|
||||
pathParams: ['appsId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* appengine.apps.patch
|
||||
*
|
||||
* @desc Updates the specified Application resource. You can update the following fields: auth_domain (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta4/apps#Application.FIELDS.auth_domain) default_cookie_expiration (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta4/apps#Application.FIELDS.default_cookie_expiration)
|
||||
*
|
||||
* @alias appengine.apps.patch
|
||||
* @memberOf! appengine(v1beta4)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.appsId Part of `name`. Name of the Application resource to update. Example: apps/myapp.
|
||||
* @param {string=} params.mask Standard field mask for the set of fields to be updated.
|
||||
* @param {appengine(v1beta4).Application} params.resource Request body data
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
patch: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1beta4/apps/{appsId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'PATCH'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['appsId'],
|
||||
pathParams: ['appsId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
locations: {
|
||||
/**
|
||||
* appengine.apps.locations.get
|
||||
*
|
||||
* @desc Get information about a location.
|
||||
*
|
||||
* @alias appengine.apps.locations.get
|
||||
* @memberOf! appengine(v1beta4)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.appsId Part of `name`. Resource name for the location.
|
||||
* @param {string} params.locationsId Part of `name`. See documentation of `appsId`.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
get: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1beta4/apps/{appsId}/locations/{locationsId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['appsId', 'locationsId'],
|
||||
pathParams: ['appsId', 'locationsId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* appengine.apps.locations.list
|
||||
*
|
||||
* @desc Lists information about the supported locations for this service.
|
||||
*
|
||||
* @alias appengine.apps.locations.list
|
||||
* @memberOf! appengine(v1beta4)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.appsId Part of `name`. The resource that owns the locations collection, if applicable.
|
||||
* @param {string=} params.filter The standard list filter.
|
||||
* @param {integer=} params.pageSize The standard list page size.
|
||||
* @param {string=} params.pageToken The standard list page token.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
list: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1beta4/apps/{appsId}/locations').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['appsId'],
|
||||
pathParams: ['appsId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
},
|
||||
modules: {
|
||||
/**
|
||||
* appengine.apps.modules.delete
|
||||
*
|
||||
* @desc Deletes the specified module and all enclosed versions.
|
||||
*
|
||||
* @alias appengine.apps.modules.delete
|
||||
* @memberOf! appengine(v1beta4)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.appsId Part of `name`. Name of the resource requested. Example: apps/myapp/modules/default.
|
||||
* @param {string} params.modulesId Part of `name`. See documentation of `appsId`.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
delete: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1beta4/apps/{appsId}/modules/{modulesId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'DELETE'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['appsId', 'modulesId'],
|
||||
pathParams: ['appsId', 'modulesId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* appengine.apps.modules.get
|
||||
*
|
||||
* @desc Gets the current configuration of the specified module.
|
||||
*
|
||||
* @alias appengine.apps.modules.get
|
||||
* @memberOf! appengine(v1beta4)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.appsId Part of `name`. Name of the resource requested. Example: apps/myapp/modules/default.
|
||||
* @param {string} params.modulesId Part of `name`. See documentation of `appsId`.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
get: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1beta4/apps/{appsId}/modules/{modulesId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['appsId', 'modulesId'],
|
||||
pathParams: ['appsId', 'modulesId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* appengine.apps.modules.list
|
||||
*
|
||||
* @desc Lists all the modules in the application.
|
||||
*
|
||||
* @alias appengine.apps.modules.list
|
||||
* @memberOf! appengine(v1beta4)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.appsId Part of `name`. Name of the resource requested. Example: apps/myapp.
|
||||
* @param {integer=} params.pageSize Maximum results to return per page.
|
||||
* @param {string=} params.pageToken Continuation token for fetching the next page of results.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
list: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1beta4/apps/{appsId}/modules').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['appsId'],
|
||||
pathParams: ['appsId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* appengine.apps.modules.patch
|
||||
*
|
||||
* @desc Updates the configuration of the specified module.
|
||||
*
|
||||
* @alias appengine.apps.modules.patch
|
||||
* @memberOf! appengine(v1beta4)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.appsId Part of `name`. Name of the resource to update. Example: apps/myapp/modules/default.
|
||||
* @param {string=} params.mask Standard field mask for the set of fields to be updated.
|
||||
* @param {boolean=} params.migrateTraffic Set to true to gradually shift traffic to one or more versions that you specify. By default, traffic is shifted immediately. For gradual traffic migration, the target versions must be located within instances that are configured for both warmup requests (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta4/apps.modules.versions#inboundservicetype) and automatic scaling (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta4/apps.modules.versions#automaticscaling). You must specify the shardBy (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta4/apps.modules#shardby) field in the Module resource. Gradual traffic migration is not supported in the App Engine flexible environment. For examples, see Migrating and Splitting Traffic (https://cloud.google.com/appengine/docs/admin-api/migrating-splitting-traffic).
|
||||
* @param {string} params.modulesId Part of `name`. See documentation of `appsId`.
|
||||
* @param {appengine(v1beta4).Module} params.resource Request body data
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
patch: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1beta4/apps/{appsId}/modules/{modulesId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'PATCH'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['appsId', 'modulesId'],
|
||||
pathParams: ['appsId', 'modulesId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
versions: {
|
||||
/**
|
||||
* appengine.apps.modules.versions.create
|
||||
*
|
||||
* @desc Deploys code and resource files to a new version.
|
||||
*
|
||||
* @alias appengine.apps.modules.versions.create
|
||||
* @memberOf! appengine(v1beta4)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.appsId Part of `name`. Name of the resource to update. Example: apps/myapp/modules/default.
|
||||
* @param {string} params.modulesId Part of `name`. See documentation of `appsId`.
|
||||
* @param {appengine(v1beta4).Version} params.resource Request body data
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
create: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1beta4/apps/{appsId}/modules/{modulesId}/versions').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['appsId', 'modulesId'],
|
||||
pathParams: ['appsId', 'modulesId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* appengine.apps.modules.versions.delete
|
||||
*
|
||||
* @desc Deletes an existing version.
|
||||
*
|
||||
* @alias appengine.apps.modules.versions.delete
|
||||
* @memberOf! appengine(v1beta4)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.appsId Part of `name`. Name of the resource requested. Example: apps/myapp/modules/default/versions/v1.
|
||||
* @param {string} params.modulesId Part of `name`. See documentation of `appsId`.
|
||||
* @param {string} params.versionsId Part of `name`. See documentation of `appsId`.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
delete: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1beta4/apps/{appsId}/modules/{modulesId}/versions/{versionsId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'DELETE'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['appsId', 'modulesId', 'versionsId'],
|
||||
pathParams: ['appsId', 'modulesId', 'versionsId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* appengine.apps.modules.versions.get
|
||||
*
|
||||
* @desc Gets the specified Version resource. By default, only a BASIC_VIEW will be returned. Specify the FULL_VIEW parameter to get the full resource.
|
||||
*
|
||||
* @alias appengine.apps.modules.versions.get
|
||||
* @memberOf! appengine(v1beta4)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.appsId Part of `name`. Name of the resource requested. Example: apps/myapp/modules/default/versions/v1.
|
||||
* @param {string} params.modulesId Part of `name`. See documentation of `appsId`.
|
||||
* @param {string} params.versionsId Part of `name`. See documentation of `appsId`.
|
||||
* @param {string=} params.view Controls the set of fields returned in the Get response.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
get: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1beta4/apps/{appsId}/modules/{modulesId}/versions/{versionsId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['appsId', 'modulesId', 'versionsId'],
|
||||
pathParams: ['appsId', 'modulesId', 'versionsId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* appengine.apps.modules.versions.list
|
||||
*
|
||||
* @desc Lists the versions of a module.
|
||||
*
|
||||
* @alias appengine.apps.modules.versions.list
|
||||
* @memberOf! appengine(v1beta4)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.appsId Part of `name`. Name of the resource requested. Example: apps/myapp/modules/default.
|
||||
* @param {string} params.modulesId Part of `name`. See documentation of `appsId`.
|
||||
* @param {integer=} params.pageSize Maximum results to return per page.
|
||||
* @param {string=} params.pageToken Continuation token for fetching the next page of results.
|
||||
* @param {string=} params.view Controls the set of fields returned in the List response.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
list: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1beta4/apps/{appsId}/modules/{modulesId}/versions').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['appsId', 'modulesId'],
|
||||
pathParams: ['appsId', 'modulesId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* appengine.apps.modules.versions.patch
|
||||
*
|
||||
* @desc Updates the specified Version resource. You can specify the following fields depending on the App Engine environment and type of scaling that the version resource uses: serving_status (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta4/apps.modules.versions#Version.FIELDS.serving_status): For Version resources that use basic scaling, manual scaling, or run in the App Engine flexible environment. instance_class (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta4/apps.modules.versions#Version.FIELDS.instance_class): For Version resources that run in the App Engine standard environment. automatic_scaling.min_idle_instances (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta4/apps.modules.versions#Version.FIELDS.automatic_scaling): For Version resources that use automatic scaling and run in the App Engine standard environment. automatic_scaling.max_idle_instances (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta4/apps.modules.versions#Version.FIELDS.automatic_scaling): For Version resources that use automatic scaling and run in the App Engine standard environment.
|
||||
*
|
||||
* @alias appengine.apps.modules.versions.patch
|
||||
* @memberOf! appengine(v1beta4)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.appsId Part of `name`. Name of the resource to update. Example: apps/myapp/modules/default/versions/1.
|
||||
* @param {string=} params.mask Standard field mask for the set of fields to be updated.
|
||||
* @param {string} params.modulesId Part of `name`. See documentation of `appsId`.
|
||||
* @param {string} params.versionsId Part of `name`. See documentation of `appsId`.
|
||||
* @param {appengine(v1beta4).Version} params.resource Request body data
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
patch: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1beta4/apps/{appsId}/modules/{modulesId}/versions/{versionsId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'PATCH'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['appsId', 'modulesId', 'versionsId'],
|
||||
pathParams: ['appsId', 'modulesId', 'versionsId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
instances: {
|
||||
/**
|
||||
* appengine.apps.modules.versions.instances.debug
|
||||
*
|
||||
* @desc Enables debugging on a VM instance. This allows you to use the SSH command to connect to the virtual machine where the instance lives. While in "debug mode", the instance continues to serve live traffic. You should delete the instance when you are done debugging and then allow the system to take over and determine if another instance should be started.Only applicable for instances in App Engine flexible environment.
|
||||
*
|
||||
* @alias appengine.apps.modules.versions.instances.debug
|
||||
* @memberOf! appengine(v1beta4)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.appsId Part of `name`. Name of the resource requested. Example: apps/myapp/modules/default/versions/v1/instances/instance-1.
|
||||
* @param {string} params.instancesId Part of `name`. See documentation of `appsId`.
|
||||
* @param {string} params.modulesId Part of `name`. See documentation of `appsId`.
|
||||
* @param {string} params.versionsId Part of `name`. See documentation of `appsId`.
|
||||
* @param {appengine(v1beta4).DebugInstanceRequest} params.resource Request body data
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
debug: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1beta4/apps/{appsId}/modules/{modulesId}/versions/{versionsId}/instances/{instancesId}:debug').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['appsId', 'modulesId', 'versionsId', 'instancesId'],
|
||||
pathParams: ['appsId', 'instancesId', 'modulesId', 'versionsId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* appengine.apps.modules.versions.instances.delete
|
||||
*
|
||||
* @desc Stops a running instance.
|
||||
*
|
||||
* @alias appengine.apps.modules.versions.instances.delete
|
||||
* @memberOf! appengine(v1beta4)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.appsId Part of `name`. Name of the resource requested. Example: apps/myapp/modules/default/versions/v1/instances/instance-1.
|
||||
* @param {string} params.instancesId Part of `name`. See documentation of `appsId`.
|
||||
* @param {string} params.modulesId Part of `name`. See documentation of `appsId`.
|
||||
* @param {string} params.versionsId Part of `name`. See documentation of `appsId`.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
delete: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1beta4/apps/{appsId}/modules/{modulesId}/versions/{versionsId}/instances/{instancesId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'DELETE'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['appsId', 'modulesId', 'versionsId', 'instancesId'],
|
||||
pathParams: ['appsId', 'instancesId', 'modulesId', 'versionsId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* appengine.apps.modules.versions.instances.get
|
||||
*
|
||||
* @desc Gets instance information.
|
||||
*
|
||||
* @alias appengine.apps.modules.versions.instances.get
|
||||
* @memberOf! appengine(v1beta4)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.appsId Part of `name`. Name of the resource requested. Example: apps/myapp/modules/default/versions/v1/instances/instance-1.
|
||||
* @param {string} params.instancesId Part of `name`. See documentation of `appsId`.
|
||||
* @param {string} params.modulesId Part of `name`. See documentation of `appsId`.
|
||||
* @param {string} params.versionsId Part of `name`. See documentation of `appsId`.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
get: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1beta4/apps/{appsId}/modules/{modulesId}/versions/{versionsId}/instances/{instancesId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['appsId', 'modulesId', 'versionsId', 'instancesId'],
|
||||
pathParams: ['appsId', 'instancesId', 'modulesId', 'versionsId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* appengine.apps.modules.versions.instances.list
|
||||
*
|
||||
* @desc Lists the instances of a version.Tip: To aggregate details about instances over time, see the Stackdriver Monitoring API (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list).
|
||||
*
|
||||
* @alias appengine.apps.modules.versions.instances.list
|
||||
* @memberOf! appengine(v1beta4)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.appsId Part of `name`. Name of the resource requested. Example: apps/myapp/modules/default/versions/v1.
|
||||
* @param {string} params.modulesId Part of `name`. See documentation of `appsId`.
|
||||
* @param {integer=} params.pageSize Maximum results to return per page.
|
||||
* @param {string=} params.pageToken Continuation token for fetching the next page of results.
|
||||
* @param {string} params.versionsId Part of `name`. See documentation of `appsId`.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
list: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1beta4/apps/{appsId}/modules/{modulesId}/versions/{versionsId}/instances').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['appsId', 'modulesId', 'versionsId'],
|
||||
pathParams: ['appsId', 'modulesId', 'versionsId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
operations: {
|
||||
/**
|
||||
* appengine.apps.operations.get
|
||||
*
|
||||
* @desc 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.
|
||||
*
|
||||
* @alias appengine.apps.operations.get
|
||||
* @memberOf! appengine(v1beta4)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.appsId Part of `name`. The name of the operation resource.
|
||||
* @param {string} params.operationsId Part of `name`. See documentation of `appsId`.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
get: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1beta4/apps/{appsId}/operations/{operationsId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['appsId', 'operationsId'],
|
||||
pathParams: ['appsId', 'operationsId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* appengine.apps.operations.list
|
||||
*
|
||||
* @desc 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 allows API services to override the binding to use different resource name schemes, such as users/x/operations. To override the binding, API services can add a binding such as "/v1/{name=users/x}/operations" to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.
|
||||
*
|
||||
* @alias appengine.apps.operations.list
|
||||
* @memberOf! appengine(v1beta4)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.appsId Part of `name`. The name of the operation's parent resource.
|
||||
* @param {string=} params.filter The standard list filter.
|
||||
* @param {integer=} params.pageSize The standard list page size.
|
||||
* @param {string=} params.pageToken The standard list page token.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
list: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1beta4/apps/{appsId}/operations').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['appsId'],
|
||||
pathParams: ['appsId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
module.exports = Appengine;
|
||||
//# sourceMappingURL=v1beta4.js.map
|
||||
1
backend/node_modules/googleapis/apis/appengine/v1beta4.js.map
generated
vendored
Normal file
1
backend/node_modules/googleapis/apis/appengine/v1beta4.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
1337
backend/node_modules/googleapis/apis/appengine/v1beta4.ts
generated
vendored
Normal file
1337
backend/node_modules/googleapis/apis/appengine/v1beta4.ts
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
759
backend/node_modules/googleapis/apis/appengine/v1beta5.js
generated
vendored
Normal file
759
backend/node_modules/googleapis/apis/appengine/v1beta5.js
generated
vendored
Normal file
@@ -0,0 +1,759 @@
|
||||
"use strict";
|
||||
/**
|
||||
* Copyright 2015 Google Inc. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
/* jshint maxlen: false */
|
||||
const apirequest_1 = require("../../lib/apirequest");
|
||||
/**
|
||||
* Google App Engine Admin API
|
||||
*
|
||||
* The App Engine Admin API enables developers to provision and manage their App Engine applications.
|
||||
*
|
||||
* @example
|
||||
* const google = require('googleapis');
|
||||
* const appengine = google.appengine('v1beta5');
|
||||
*
|
||||
* @namespace appengine
|
||||
* @type {Function}
|
||||
* @version v1beta5
|
||||
* @variation v1beta5
|
||||
* @param {object=} options Options for Appengine
|
||||
*/
|
||||
function Appengine(options) {
|
||||
const self = this;
|
||||
self._options = options || {};
|
||||
self.apps = {
|
||||
/**
|
||||
* appengine.apps.create
|
||||
*
|
||||
* @desc Creates an App Engine application for a Google Cloud Platform project. Required fields: id - The ID of the target Cloud Platform project. location - The region (https://cloud.google.com/appengine/docs/locations) where you want the App Engine application located.For more information about App Engine applications, see Managing Projects, Applications, and Billing (https://cloud.google.com/appengine/docs/python/console/).
|
||||
*
|
||||
* @alias appengine.apps.create
|
||||
* @memberOf! appengine(v1beta5)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {appengine(v1beta5).Application} params.resource Request body data
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
create: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1beta5/apps').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* appengine.apps.get
|
||||
*
|
||||
* @desc Gets information about an application.
|
||||
*
|
||||
* @alias appengine.apps.get
|
||||
* @memberOf! appengine(v1beta5)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.appsId Part of `name`. Name of the application to get. Example: apps/myapp.
|
||||
* @param {boolean=} params.ensureResourcesExist Certain resources associated with an application are created on-demand. Controls whether these resources should be created when performing the GET operation. If specified and any resources could not be created, the request will fail with an error code. Additionally, this parameter can cause the request to take longer to complete. Note: This parameter will be deprecated in a future version of the API.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
get: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1beta5/apps/{appsId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['appsId'],
|
||||
pathParams: ['appsId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* appengine.apps.patch
|
||||
*
|
||||
* @desc Updates the specified Application resource. You can update the following fields: auth_domain (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta5/apps#Application.FIELDS.auth_domain) default_cookie_expiration (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta5/apps#Application.FIELDS.default_cookie_expiration)
|
||||
*
|
||||
* @alias appengine.apps.patch
|
||||
* @memberOf! appengine(v1beta5)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.appsId Part of `name`. Name of the Application resource to update. Example: apps/myapp.
|
||||
* @param {string=} params.mask Standard field mask for the set of fields to be updated.
|
||||
* @param {appengine(v1beta5).Application} params.resource Request body data
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
patch: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1beta5/apps/{appsId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'PATCH'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['appsId'],
|
||||
pathParams: ['appsId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
locations: {
|
||||
/**
|
||||
* appengine.apps.locations.get
|
||||
*
|
||||
* @desc Get information about a location.
|
||||
*
|
||||
* @alias appengine.apps.locations.get
|
||||
* @memberOf! appengine(v1beta5)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.appsId Part of `name`. Resource name for the location.
|
||||
* @param {string} params.locationsId Part of `name`. See documentation of `appsId`.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
get: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1beta5/apps/{appsId}/locations/{locationsId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['appsId', 'locationsId'],
|
||||
pathParams: ['appsId', 'locationsId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* appengine.apps.locations.list
|
||||
*
|
||||
* @desc Lists information about the supported locations for this service.
|
||||
*
|
||||
* @alias appengine.apps.locations.list
|
||||
* @memberOf! appengine(v1beta5)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.appsId Part of `name`. The resource that owns the locations collection, if applicable.
|
||||
* @param {string=} params.filter The standard list filter.
|
||||
* @param {integer=} params.pageSize The standard list page size.
|
||||
* @param {string=} params.pageToken The standard list page token.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
list: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1beta5/apps/{appsId}/locations').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['appsId'],
|
||||
pathParams: ['appsId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
},
|
||||
operations: {
|
||||
/**
|
||||
* appengine.apps.operations.get
|
||||
*
|
||||
* @desc 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.
|
||||
*
|
||||
* @alias appengine.apps.operations.get
|
||||
* @memberOf! appengine(v1beta5)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.appsId Part of `name`. The name of the operation resource.
|
||||
* @param {string} params.operationsId Part of `name`. See documentation of `appsId`.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
get: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1beta5/apps/{appsId}/operations/{operationsId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['appsId', 'operationsId'],
|
||||
pathParams: ['appsId', 'operationsId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* appengine.apps.operations.list
|
||||
*
|
||||
* @desc 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 allows API services to override the binding to use different resource name schemes, such as users/x/operations. To override the binding, API services can add a binding such as "/v1/{name=users/x}/operations" to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.
|
||||
*
|
||||
* @alias appengine.apps.operations.list
|
||||
* @memberOf! appengine(v1beta5)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.appsId Part of `name`. The name of the operation's parent resource.
|
||||
* @param {string=} params.filter The standard list filter.
|
||||
* @param {integer=} params.pageSize The standard list page size.
|
||||
* @param {string=} params.pageToken The standard list page token.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
list: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1beta5/apps/{appsId}/operations').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['appsId'],
|
||||
pathParams: ['appsId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
},
|
||||
services: {
|
||||
/**
|
||||
* appengine.apps.services.delete
|
||||
*
|
||||
* @desc Deletes the specified service and all enclosed versions.
|
||||
*
|
||||
* @alias appengine.apps.services.delete
|
||||
* @memberOf! appengine(v1beta5)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.appsId Part of `name`. Name of the resource requested. Example: apps/myapp/services/default.
|
||||
* @param {string} params.servicesId Part of `name`. See documentation of `appsId`.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
delete: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1beta5/apps/{appsId}/services/{servicesId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'DELETE'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['appsId', 'servicesId'],
|
||||
pathParams: ['appsId', 'servicesId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* appengine.apps.services.get
|
||||
*
|
||||
* @desc Gets the current configuration of the specified service.
|
||||
*
|
||||
* @alias appengine.apps.services.get
|
||||
* @memberOf! appengine(v1beta5)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.appsId Part of `name`. Name of the resource requested. Example: apps/myapp/services/default.
|
||||
* @param {string} params.servicesId Part of `name`. See documentation of `appsId`.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
get: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1beta5/apps/{appsId}/services/{servicesId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['appsId', 'servicesId'],
|
||||
pathParams: ['appsId', 'servicesId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* appengine.apps.services.list
|
||||
*
|
||||
* @desc Lists all the services in the application.
|
||||
*
|
||||
* @alias appengine.apps.services.list
|
||||
* @memberOf! appengine(v1beta5)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.appsId Part of `name`. Name of the resource requested. Example: apps/myapp.
|
||||
* @param {integer=} params.pageSize Maximum results to return per page.
|
||||
* @param {string=} params.pageToken Continuation token for fetching the next page of results.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
list: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1beta5/apps/{appsId}/services').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['appsId'],
|
||||
pathParams: ['appsId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* appengine.apps.services.patch
|
||||
*
|
||||
* @desc Updates the configuration of the specified service.
|
||||
*
|
||||
* @alias appengine.apps.services.patch
|
||||
* @memberOf! appengine(v1beta5)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.appsId Part of `name`. Name of the resource to update. Example: apps/myapp/services/default.
|
||||
* @param {string=} params.mask Standard field mask for the set of fields to be updated.
|
||||
* @param {boolean=} params.migrateTraffic Set to true to gradually shift traffic to one or more versions that you specify. By default, traffic is shifted immediately. For gradual traffic migration, the target versions must be located within instances that are configured for both warmup requests (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta5/apps.services.versions#inboundservicetype) and automatic scaling (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta5/apps.services.versions#automaticscaling). You must specify the shardBy (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta5/apps.services#shardby) field in the Service resource. Gradual traffic migration is not supported in the App Engine flexible environment. For examples, see Migrating and Splitting Traffic (https://cloud.google.com/appengine/docs/admin-api/migrating-splitting-traffic).
|
||||
* @param {string} params.servicesId Part of `name`. See documentation of `appsId`.
|
||||
* @param {appengine(v1beta5).Service} params.resource Request body data
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
patch: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1beta5/apps/{appsId}/services/{servicesId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'PATCH'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['appsId', 'servicesId'],
|
||||
pathParams: ['appsId', 'servicesId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
versions: {
|
||||
/**
|
||||
* appengine.apps.services.versions.create
|
||||
*
|
||||
* @desc Deploys new code and resource files to a new version.
|
||||
*
|
||||
* @alias appengine.apps.services.versions.create
|
||||
* @memberOf! appengine(v1beta5)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.appsId Part of `name`. Name of the resource to update. For example: "apps/myapp/services/default".
|
||||
* @param {string} params.servicesId Part of `name`. See documentation of `appsId`.
|
||||
* @param {appengine(v1beta5).Version} params.resource Request body data
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
create: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1beta5/apps/{appsId}/services/{servicesId}/versions').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['appsId', 'servicesId'],
|
||||
pathParams: ['appsId', 'servicesId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* appengine.apps.services.versions.delete
|
||||
*
|
||||
* @desc Deletes an existing version.
|
||||
*
|
||||
* @alias appengine.apps.services.versions.delete
|
||||
* @memberOf! appengine(v1beta5)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.appsId Part of `name`. Name of the resource requested. Example: apps/myapp/services/default/versions/v1.
|
||||
* @param {string} params.servicesId Part of `name`. See documentation of `appsId`.
|
||||
* @param {string} params.versionsId Part of `name`. See documentation of `appsId`.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
delete: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1beta5/apps/{appsId}/services/{servicesId}/versions/{versionsId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'DELETE'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['appsId', 'servicesId', 'versionsId'],
|
||||
pathParams: ['appsId', 'servicesId', 'versionsId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* appengine.apps.services.versions.get
|
||||
*
|
||||
* @desc Gets the specified Version resource. By default, only a BASIC_VIEW will be returned. Specify the FULL_VIEW parameter to get the full resource.
|
||||
*
|
||||
* @alias appengine.apps.services.versions.get
|
||||
* @memberOf! appengine(v1beta5)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.appsId Part of `name`. Name of the resource requested. Example: apps/myapp/services/default/versions/v1.
|
||||
* @param {string} params.servicesId Part of `name`. See documentation of `appsId`.
|
||||
* @param {string} params.versionsId Part of `name`. See documentation of `appsId`.
|
||||
* @param {string=} params.view Controls the set of fields returned in the Get response.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
get: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1beta5/apps/{appsId}/services/{servicesId}/versions/{versionsId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['appsId', 'servicesId', 'versionsId'],
|
||||
pathParams: ['appsId', 'servicesId', 'versionsId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* appengine.apps.services.versions.list
|
||||
*
|
||||
* @desc Lists the versions of a service.
|
||||
*
|
||||
* @alias appengine.apps.services.versions.list
|
||||
* @memberOf! appengine(v1beta5)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.appsId Part of `name`. Name of the resource requested. Example: apps/myapp/services/default.
|
||||
* @param {integer=} params.pageSize Maximum results to return per page.
|
||||
* @param {string=} params.pageToken Continuation token for fetching the next page of results.
|
||||
* @param {string} params.servicesId Part of `name`. See documentation of `appsId`.
|
||||
* @param {string=} params.view Controls the set of fields returned in the List response.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
list: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1beta5/apps/{appsId}/services/{servicesId}/versions').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['appsId', 'servicesId'],
|
||||
pathParams: ['appsId', 'servicesId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* appengine.apps.services.versions.patch
|
||||
*
|
||||
* @desc Updates the specified Version resource. You can specify the following fields depending on the App Engine environment and type of scaling that the version resource uses: serving_status (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta5/apps.services.versions#Version.FIELDS.serving_status): For Version resources that use basic scaling, manual scaling, or run in the App Engine flexible environment. instance_class (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta5/apps.services.versions#Version.FIELDS.instance_class): For Version resources that run in the App Engine standard environment. automatic_scaling.min_idle_instances (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta5/apps.services.versions#Version.FIELDS.automatic_scaling): For Version resources that use automatic scaling and run in the App Engine standard environment. automatic_scaling.max_idle_instances (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta5/apps.services.versions#Version.FIELDS.automatic_scaling): For Version resources that use automatic scaling and run in the App Engine standard environment.
|
||||
*
|
||||
* @alias appengine.apps.services.versions.patch
|
||||
* @memberOf! appengine(v1beta5)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.appsId Part of `name`. Name of the resource to update. Example: apps/myapp/services/default/versions/1.
|
||||
* @param {string=} params.mask Standard field mask for the set of fields to be updated.
|
||||
* @param {string} params.servicesId Part of `name`. See documentation of `appsId`.
|
||||
* @param {string} params.versionsId Part of `name`. See documentation of `appsId`.
|
||||
* @param {appengine(v1beta5).Version} params.resource Request body data
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
patch: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1beta5/apps/{appsId}/services/{servicesId}/versions/{versionsId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'PATCH'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['appsId', 'servicesId', 'versionsId'],
|
||||
pathParams: ['appsId', 'servicesId', 'versionsId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
instances: {
|
||||
/**
|
||||
* appengine.apps.services.versions.instances.debug
|
||||
*
|
||||
* @desc Enables debugging on a VM instance. This allows you to use the SSH command to connect to the virtual machine where the instance lives. While in "debug mode", the instance continues to serve live traffic. You should delete the instance when you are done debugging and then allow the system to take over and determine if another instance should be started.Only applicable for instances in App Engine flexible environment.
|
||||
*
|
||||
* @alias appengine.apps.services.versions.instances.debug
|
||||
* @memberOf! appengine(v1beta5)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.appsId Part of `name`. Name of the resource requested. Example: apps/myapp/services/default/versions/v1/instances/instance-1.
|
||||
* @param {string} params.instancesId Part of `name`. See documentation of `appsId`.
|
||||
* @param {string} params.servicesId Part of `name`. See documentation of `appsId`.
|
||||
* @param {string} params.versionsId Part of `name`. See documentation of `appsId`.
|
||||
* @param {appengine(v1beta5).DebugInstanceRequest} params.resource Request body data
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
debug: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1beta5/apps/{appsId}/services/{servicesId}/versions/{versionsId}/instances/{instancesId}:debug').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['appsId', 'servicesId', 'versionsId', 'instancesId'],
|
||||
pathParams: ['appsId', 'instancesId', 'servicesId', 'versionsId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* appengine.apps.services.versions.instances.delete
|
||||
*
|
||||
* @desc Stops a running instance.
|
||||
*
|
||||
* @alias appengine.apps.services.versions.instances.delete
|
||||
* @memberOf! appengine(v1beta5)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.appsId Part of `name`. Name of the resource requested. For example: "apps/myapp/services/default/versions/v1/instances/instance-1".
|
||||
* @param {string} params.instancesId Part of `name`. See documentation of `appsId`.
|
||||
* @param {string} params.servicesId Part of `name`. See documentation of `appsId`.
|
||||
* @param {string} params.versionsId Part of `name`. See documentation of `appsId`.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
delete: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1beta5/apps/{appsId}/services/{servicesId}/versions/{versionsId}/instances/{instancesId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'DELETE'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['appsId', 'servicesId', 'versionsId', 'instancesId'],
|
||||
pathParams: ['appsId', 'instancesId', 'servicesId', 'versionsId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* appengine.apps.services.versions.instances.get
|
||||
*
|
||||
* @desc Gets instance information.
|
||||
*
|
||||
* @alias appengine.apps.services.versions.instances.get
|
||||
* @memberOf! appengine(v1beta5)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.appsId Part of `name`. Name of the resource requested. Example: apps/myapp/services/default/versions/v1/instances/instance-1.
|
||||
* @param {string} params.instancesId Part of `name`. See documentation of `appsId`.
|
||||
* @param {string} params.servicesId Part of `name`. See documentation of `appsId`.
|
||||
* @param {string} params.versionsId Part of `name`. See documentation of `appsId`.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
get: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1beta5/apps/{appsId}/services/{servicesId}/versions/{versionsId}/instances/{instancesId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['appsId', 'servicesId', 'versionsId', 'instancesId'],
|
||||
pathParams: ['appsId', 'instancesId', 'servicesId', 'versionsId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* appengine.apps.services.versions.instances.list
|
||||
*
|
||||
* @desc Lists the instances of a version.Tip: To aggregate details about instances over time, see the Stackdriver Monitoring API (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list).
|
||||
*
|
||||
* @alias appengine.apps.services.versions.instances.list
|
||||
* @memberOf! appengine(v1beta5)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.appsId Part of `name`. Name of the resource requested. Example: apps/myapp/services/default/versions/v1.
|
||||
* @param {integer=} params.pageSize Maximum results to return per page.
|
||||
* @param {string=} params.pageToken Continuation token for fetching the next page of results.
|
||||
* @param {string} params.servicesId Part of `name`. See documentation of `appsId`.
|
||||
* @param {string} params.versionsId Part of `name`. See documentation of `appsId`.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
list: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1beta5/apps/{appsId}/services/{servicesId}/versions/{versionsId}/instances').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['appsId', 'servicesId', 'versionsId'],
|
||||
pathParams: ['appsId', 'servicesId', 'versionsId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
module.exports = Appengine;
|
||||
//# sourceMappingURL=v1beta5.js.map
|
||||
1
backend/node_modules/googleapis/apis/appengine/v1beta5.js.map
generated
vendored
Normal file
1
backend/node_modules/googleapis/apis/appengine/v1beta5.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
1338
backend/node_modules/googleapis/apis/appengine/v1beta5.ts
generated
vendored
Normal file
1338
backend/node_modules/googleapis/apis/appengine/v1beta5.ts
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
80
backend/node_modules/googleapis/apis/appsactivity/v1.js
generated
vendored
Normal file
80
backend/node_modules/googleapis/apis/appsactivity/v1.js
generated
vendored
Normal file
@@ -0,0 +1,80 @@
|
||||
"use strict";
|
||||
/**
|
||||
* Copyright 2015 Google Inc. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
/* jshint maxlen: false */
|
||||
const apirequest_1 = require("../../lib/apirequest");
|
||||
/**
|
||||
* G Suite Activity API
|
||||
*
|
||||
* Provides a historical view of activity.
|
||||
*
|
||||
* @example
|
||||
* const google = require('googleapis');
|
||||
* const appsactivity = google.appsactivity('v1');
|
||||
*
|
||||
* @namespace appsactivity
|
||||
* @type {Function}
|
||||
* @version v1
|
||||
* @variation v1
|
||||
* @param {object=} options Options for Appsactivity
|
||||
*/
|
||||
function Appsactivity(options) {
|
||||
const self = this;
|
||||
self._options = options || {};
|
||||
self.activities = {
|
||||
/**
|
||||
* appsactivity.activities.list
|
||||
*
|
||||
* @desc 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.
|
||||
*
|
||||
* @alias appsactivity.activities.list
|
||||
* @memberOf! appsactivity(v1)
|
||||
*
|
||||
* @param {object=} params Parameters for request
|
||||
* @param {string=} params.drive.ancestorId Identifies the Drive folder containing the items for which to return activities.
|
||||
* @param {string=} params.drive.fileId Identifies the Drive item to return activities for.
|
||||
* @param {string=} params.groupingStrategy Indicates the strategy to use when grouping singleEvents items in the associated combinedEvent object.
|
||||
* @param {integer=} params.pageSize The maximum number of events to return on a page. The response includes a continuation token if there are more events.
|
||||
* @param {string=} params.pageToken A token to retrieve a specific page of results.
|
||||
* @param {string=} params.source The Google service from which to return activities. Possible values of source are: - drive.google.com
|
||||
* @param {string=} params.userId Indicates the user to return activity for. Use the special value me to indicate the currently authenticated user.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
list: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/appsactivity/v1/activities').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
};
|
||||
}
|
||||
module.exports = Appsactivity;
|
||||
//# sourceMappingURL=v1.js.map
|
||||
1
backend/node_modules/googleapis/apis/appsactivity/v1.js.map
generated
vendored
Normal file
1
backend/node_modules/googleapis/apis/appsactivity/v1.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"v1.js","sourceRoot":"","sources":["v1.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,0BAA0B;AAE1B,qDAAoD;AAEpD;;;;;;;;;;;;;;GAcG;AACH,sBAAsB,OAAO;IAC3B,MAAM,IAAI,GAAG,IAAI,CAAC;IAClB,IAAI,CAAC,QAAQ,GAAG,OAAO,IAAI,EAAE,CAAC;IAE9B,IAAI,CAAC,UAAU,GAAG;QAEhB;;;;;;;;;;;;;;;;;;;WAmBG;QACH,IAAI,EAAE,UAAU,MAAM,EAAE,OAAO,EAAE,QAAQ;YACvC,EAAE,CAAC,CAAC,OAAO,OAAO,KAAK,UAAU,CAAC,CAAC,CAAC;gBAClC,QAAQ,GAAG,OAAO,CAAC;gBACnB,OAAO,GAAG,EAAE,CAAC;YACf,CAAC;YACD,OAAO,IAAI,CAAC,OAAO,GAAG,EAAE,CAAC,CAAC;YAE1B,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,IAAI,6BAA6B,CAAC;YAEjE,MAAM,UAAU,GAAG;gBACjB,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC;oBACrB,GAAG,EAAE,CAAC,OAAO,GAAG,6BAA6B,CAAC,CAAC,OAAO,CAAC,cAAc,EAAE,IAAI,CAAC;oBAC5E,MAAM,EAAE,KAAK;iBACd,EAAE,OAAO,CAAC;gBACX,MAAM,EAAE,MAAM;gBACd,cAAc,EAAE,EAAE;gBAClB,UAAU,EAAE,EAAE;gBACd,OAAO,EAAE,IAAI;aACd,CAAC;YAEF,MAAM,CAAC,oBAAgB,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;QAChD,CAAC;KAEF,CAAC;AACJ,CAAC;AAwGD,iBAAS,YAAY,CAAC"}
|
||||
190
backend/node_modules/googleapis/apis/appsactivity/v1.ts
generated
vendored
Normal file
190
backend/node_modules/googleapis/apis/appsactivity/v1.ts
generated
vendored
Normal file
@@ -0,0 +1,190 @@
|
||||
/**
|
||||
* Copyright 2015 Google Inc. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/* jshint maxlen: false */
|
||||
|
||||
import createAPIRequest from '../../lib/apirequest';
|
||||
|
||||
/**
|
||||
* G Suite Activity API
|
||||
*
|
||||
* Provides a historical view of activity.
|
||||
*
|
||||
* @example
|
||||
* const google = require('googleapis');
|
||||
* const appsactivity = google.appsactivity('v1');
|
||||
*
|
||||
* @namespace appsactivity
|
||||
* @type {Function}
|
||||
* @version v1
|
||||
* @variation v1
|
||||
* @param {object=} options Options for Appsactivity
|
||||
*/
|
||||
function Appsactivity(options) { // eslint-disable-line
|
||||
const self = this;
|
||||
self._options = options || {};
|
||||
|
||||
self.activities = {
|
||||
|
||||
/**
|
||||
* appsactivity.activities.list
|
||||
*
|
||||
* @desc 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.
|
||||
*
|
||||
* @alias appsactivity.activities.list
|
||||
* @memberOf! appsactivity(v1)
|
||||
*
|
||||
* @param {object=} params Parameters for request
|
||||
* @param {string=} params.drive.ancestorId Identifies the Drive folder containing the items for which to return activities.
|
||||
* @param {string=} params.drive.fileId Identifies the Drive item to return activities for.
|
||||
* @param {string=} params.groupingStrategy Indicates the strategy to use when grouping singleEvents items in the associated combinedEvent object.
|
||||
* @param {integer=} params.pageSize The maximum number of events to return on a page. The response includes a continuation token if there are more events.
|
||||
* @param {string=} params.pageToken A token to retrieve a specific page of results.
|
||||
* @param {string=} params.source The Google service from which to return activities. Possible values of source are: - drive.google.com
|
||||
* @param {string=} params.userId Indicates the user to return activity for. Use the special value me to indicate the currently authenticated user.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
list: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/appsactivity/v1/activities').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
}
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* @typedef Activity
|
||||
* @memberOf! appsactivity(v1)
|
||||
* @type object
|
||||
* @property {appsactivity(v1).Event} combinedEvent The fields common to all of the singleEvents that make up the Activity.
|
||||
* @property {appsactivity(v1).Event[]} singleEvents A list of all the Events that make up the Activity.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef Event
|
||||
* @memberOf! appsactivity(v1)
|
||||
* @type object
|
||||
* @property {string[]} 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.
|
||||
* @property {string} eventTimeMillis The time at which the event occurred formatted as Unix time in milliseconds.
|
||||
* @property {boolean} fromUserDeletion Whether this event is caused by a user being deleted.
|
||||
* @property {appsactivity(v1).Move} move Extra information for move type events, such as changes in an object's parents.
|
||||
* @property {appsactivity(v1).PermissionChange[]} permissionChanges Extra information for permissionChange type events, such as the user or group the new permission applies to.
|
||||
* @property {string} primaryEventType The main type of event that occurred.
|
||||
* @property {appsactivity(v1).Rename} rename Extra information for rename type events, such as the old and new names.
|
||||
* @property {appsactivity(v1).Target} target Information specific to the Target object modified by the event.
|
||||
* @property {appsactivity(v1).User} user Represents the user responsible for the event.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef ListActivitiesResponse
|
||||
* @memberOf! appsactivity(v1)
|
||||
* @type object
|
||||
* @property {appsactivity(v1).Activity[]} activities List of activities.
|
||||
* @property {string} nextPageToken Token for the next page of results.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef Move
|
||||
* @memberOf! appsactivity(v1)
|
||||
* @type object
|
||||
* @property {appsactivity(v1).Parent[]} addedParents The added parent(s).
|
||||
* @property {appsactivity(v1).Parent[]} removedParents The removed parent(s).
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef Parent
|
||||
* @memberOf! appsactivity(v1)
|
||||
* @type object
|
||||
* @property {string} id The parent's ID.
|
||||
* @property {boolean} isRoot Whether this is the root folder.
|
||||
* @property {string} title The parent's title.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef Permission
|
||||
* @memberOf! appsactivity(v1)
|
||||
* @type object
|
||||
* @property {string} name The name of the user or group the permission applies to.
|
||||
* @property {string} permissionId The ID for this permission. Corresponds to the Drive API's permission ID returned as part of the Drive Permissions resource.
|
||||
* @property {string} role Indicates the Google Drive permissions role. The role determines a user's ability to read, write, or comment on the file.
|
||||
* @property {string} type Indicates how widely permissions are granted.
|
||||
* @property {appsactivity(v1).User} user The user's information if the type is USER.
|
||||
* @property {boolean} withLink Whether the permission requires a link to the file.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef PermissionChange
|
||||
* @memberOf! appsactivity(v1)
|
||||
* @type object
|
||||
* @property {appsactivity(v1).Permission[]} addedPermissions Lists all Permission objects added.
|
||||
* @property {appsactivity(v1).Permission[]} removedPermissions Lists all Permission objects removed.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef Photo
|
||||
* @memberOf! appsactivity(v1)
|
||||
* @type object
|
||||
* @property {string} url The URL of the photo.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef Rename
|
||||
* @memberOf! appsactivity(v1)
|
||||
* @type object
|
||||
* @property {string} newTitle The new title.
|
||||
* @property {string} oldTitle The old title.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef Target
|
||||
* @memberOf! appsactivity(v1)
|
||||
* @type object
|
||||
* @property {string} id The ID of the target. For example, in Google Drive, this is the file or folder ID.
|
||||
* @property {string} mimeType The MIME type of the target.
|
||||
* @property {string} name The name of the target. For example, in Google Drive, this is the title of the file.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef User
|
||||
* @memberOf! appsactivity(v1)
|
||||
* @type object
|
||||
* @property {boolean} isDeleted A boolean which indicates whether the specified User was deleted. If true, name, photo and permission_id will be omitted.
|
||||
* @property {boolean} isMe Whether the user is the authenticated user.
|
||||
* @property {string} name The displayable name of the user.
|
||||
* @property {string} 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.
|
||||
* @property {appsactivity(v1).Photo} photo The profile photo of the user. Not present if the user has no profile photo.
|
||||
*/
|
||||
export = Appsactivity;
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user