Initial import from local backup (Documents-Playground/pakerpale)
This commit is contained in:
411
node_modules/googleapis/CHANGELOG.md
generated
vendored
Normal file
411
node_modules/googleapis/CHANGELOG.md
generated
vendored
Normal file
@@ -0,0 +1,411 @@
|
||||
# Changelog
|
||||
|
||||
[npm history][1]
|
||||
|
||||
[1]: https://www.npmjs.com/package/googleapis?activeTab=versions
|
||||
|
||||
### [41.0.1](https://www.github.com/googleapis/google-api-nodejs-client/compare/v41.0.0...v41.0.1) (2019-07-16)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **docs:** switch to googleapis.dev link for reference docs ([#1761](https://www.github.com/googleapis/google-api-nodejs-client/issues/1761)) ([a99d968](https://www.github.com/googleapis/google-api-nodejs-client/commit/a99d968))
|
||||
|
||||
## [41.0.0](https://www.github.com/googleapis/google-api-nodejs-client/compare/v40.0.1...v41.0.0) (2019-07-11)
|
||||
|
||||
|
||||
### ⚠ BREAKING CHANGES
|
||||
|
||||
* options when instantiating clients now expect correct `vx.x` format rather than failing `vx_x` format (effects only TypeScript).
|
||||
* auto generate libraries (#1759)
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* don't replace '.' with '_' in interface ([#1757](https://www.github.com/googleapis/google-api-nodejs-client/issues/1757)) ([3a183c2](https://www.github.com/googleapis/google-api-nodejs-client/commit/3a183c2))
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* auto generate libraries ([#1759](https://www.github.com/googleapis/google-api-nodejs-client/issues/1759)) ([c726608](https://www.github.com/googleapis/google-api-nodejs-client/commit/c726608))
|
||||
|
||||
### [40.0.1](https://www.github.com/googleapis/google-api-nodejs-client/compare/v40.0.0...v40.0.1) (2019-07-02)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* make webpack work on Windows ([#1742](https://www.github.com/googleapis/google-api-nodejs-client/issues/1742)) ([cac269f](https://www.github.com/googleapis/google-api-nodejs-client/commit/cac269f))
|
||||
* **deps:** update googleapis-common to most recent release. ([#1739](https://www.github.com/googleapis/google-api-nodejs-client/issues/1739)) ([8bfa702](https://www.github.com/googleapis/google-api-nodejs-client/commit/8bfa702))
|
||||
* **docs:** make anchors work in jsdoc ([#1747](https://www.github.com/googleapis/google-api-nodejs-client/issues/1747)) ([799e391](https://www.github.com/googleapis/google-api-nodejs-client/commit/799e391))
|
||||
* **docs:** move to new client docs URL ([#1734](https://www.github.com/googleapis/google-api-nodejs-client/issues/1734)) ([4df71ed](https://www.github.com/googleapis/google-api-nodejs-client/commit/4df71ed))
|
||||
|
||||
## [40.0.0](https://www.github.com/googleapis/google-api-nodejs-client/compare/v39.2.0...v40.0.0) (2019-05-13)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* Incorrect case README ([#1706](https://www.github.com/googleapis/google-api-nodejs-client/issues/1706)) ([3e17bd8](https://www.github.com/googleapis/google-api-nodejs-client/commit/3e17bd8))
|
||||
* **samples:** fix readline args in youtube upload ([#1676](https://www.github.com/googleapis/google-api-nodejs-client/issues/1676)) ([3db63d6](https://www.github.com/googleapis/google-api-nodejs-client/commit/3db63d6))
|
||||
|
||||
|
||||
### Build System
|
||||
|
||||
* upgrade engines field to >=8.10.0 ([#1691](https://www.github.com/googleapis/google-api-nodejs-client/issues/1691)) ([8428d5c](https://www.github.com/googleapis/google-api-nodejs-client/commit/8428d5c))
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* run the generator ([#1680](https://www.github.com/googleapis/google-api-nodejs-client/issues/1680)) ([6d5a9c8](https://www.github.com/googleapis/google-api-nodejs-client/commit/6d5a9c8))
|
||||
* run the generator ([#1709](https://www.github.com/googleapis/google-api-nodejs-client/issues/1709)) ([6817c39](https://www.github.com/googleapis/google-api-nodejs-client/commit/6817c39))
|
||||
|
||||
|
||||
### BREAKING CHANGES
|
||||
|
||||
* This release has a few breaking changes.
|
||||
- Node.js 8.x is now the minimum required version
|
||||
- The healthcare/v1alpha API has been removed
|
||||
- Uses google-auth-library 4.0
|
||||
* upgrade engines field to >=8.10.0 (#1691)
|
||||
|
||||
## v39.2.0
|
||||
|
||||
04-03-2019 16:17 PDT
|
||||
|
||||
This release has a few hot new APIs:
|
||||
- healthcare_v1beta1
|
||||
- run_v1
|
||||
- run_v1alpha1
|
||||
- securitycenter_v1
|
||||
- securitycenter_v1beta1
|
||||
|
||||
### New Features
|
||||
- feat: run the generator ([#1668](https://github.com/google/google-api-nodejs-client/pull/1668))
|
||||
|
||||
### Internal / Testing Changes
|
||||
- chore(deps): update dependency typescript to ~3.4.0
|
||||
- chore(deps): update dependency @types/tmp to ^0.1.0
|
||||
|
||||
## v39.1.0
|
||||
|
||||
03-28-2019 16:17 PDT
|
||||
|
||||
**This release has security fixes.**. Versions 36.0.0 => 39.0.0 have a potential [vulnerability](https://github.com/googleapis/google-api-nodejs-client/issues/1594) where the scope of auth objects may be shared across different clients. This was addressed in #1660, and is part of this minor release. All clients should be updated to the latest version.
|
||||
|
||||
### Bug Fixes
|
||||
- fix: move context from namespace to class scope ([#1660](https://github.com/google/google-api-nodejs-client/pull/1660))
|
||||
|
||||
### New Features
|
||||
- feat: run the generator ([#1659](https://github.com/google/google-api-nodejs-client/pull/1659))
|
||||
|
||||
### Internal / Testing Changes
|
||||
- fix: README should not be generated ([#1657](https://github.com/google/google-api-nodejs-client/pull/1657))
|
||||
|
||||
## v39.0.0
|
||||
|
||||
03-26-2019 22:05 PDT
|
||||
|
||||
**This release had breaking changes**. There have been a variety of TypeScript type changes. There have also been a variety of changes to the Google Plus API, and the OAuth2 API. Please take care!
|
||||
|
||||
There are also some sweet new APIs:
|
||||
- cloudasset_v1
|
||||
- cloudtasks_v2
|
||||
- factchecktools_v1alpha1
|
||||
- servicenetworking_v1
|
||||
- websecurityscanner_v1beta
|
||||
|
||||
### New Features
|
||||
- feat: run the generator ([#1653](https://github.com/googleapis/google-api-nodejs-client/pull/1653))
|
||||
- feat: run the generator ([#1644](https://github.com/googleapis/google-api-nodejs-client/pull/1644))
|
||||
|
||||
### Documentation
|
||||
- docs: remove the plus samples ([#1654](https://github.com/googleapis/google-api-nodejs-client/pull/1654))
|
||||
- docs: Update typo in README.md ([#1640](https://github.com/googleapis/google-api-nodejs-client/pull/1640))
|
||||
- docs: fix typos in README files ([#1642](https://github.com/googleapis/google-api-nodejs-client/pull/1642))
|
||||
|
||||
### Internal / Testing Changes
|
||||
- chore(deps): update dependency tmp to ^0.1.0 ([#1652](https://github.com/googleapis/google-api-nodejs-client/pull/1652))
|
||||
- chore: publish to npm using wombat ([#1645](https://github.com/googleapis/google-api-nodejs-client/pull/1645))
|
||||
- build: update npm token ([#1641](https://github.com/googleapis/google-api-nodejs-client/pull/1641))
|
||||
- chore(deps): update dependency hard-rejection to v2 ([#1643](https://github.com/googleapis/google-api-nodejs-client/pull/1643))
|
||||
- build: use per-repo publish token ([#1638](https://github.com/googleapis/google-api-nodejs-client/pull/1638))
|
||||
|
||||
## v38.0.0
|
||||
|
||||
03-12-2019 14:00 PDT
|
||||
|
||||
Greetings y'all! This release has some new APIs, says goodbye to a few older ones, and fixes a bunch of doc issues. Enjoy!
|
||||
|
||||
*BREAKING CHANGES*: The following APIs have been *deleted*:
|
||||
- appengine_v1beta4
|
||||
- appengine_v1beta5
|
||||
|
||||
The following APIs have been added:
|
||||
- accesscontextmanager_v1
|
||||
- bigtableadmin_v1
|
||||
- cloudprivatecatalog_v1beta1
|
||||
- cloudprivatecatalogproducer_v1beta1
|
||||
- healthcare_v1alpha2
|
||||
- videointelligence_v1p3beta1
|
||||
|
||||
### New Features
|
||||
- feat: run the generator ([#1636](https://github.com/googleapis/google-api-nodejs-client/pull/1636))
|
||||
- feat: run the generator ([#1634](https://github.com/googleapis/google-api-nodejs-client/pull/1634))
|
||||
|
||||
### Bug Fixes
|
||||
- fix: remove @types/p-queue ([#1627](https://github.com/googleapis/google-api-nodejs-client/pull/1627))
|
||||
- fix: correct types param name for media mime-type ([#1602](https://github.com/googleapis/google-api-nodejs-client/pull/1602))
|
||||
|
||||
### Documentation
|
||||
- docs: fix npm install cmd in readme ([#1635](https://github.com/googleapis/google-api-nodejs-client/pull/1635))
|
||||
- docs: update contributing guide ([#1615](https://github.com/googleapis/google-api-nodejs-client/pull/1615))
|
||||
- docs: Remove "releasing" ToC from CONTRIBUTING.md ([#1607](https://github.com/googleapis/google-api-nodejs-client/pull/1607))
|
||||
- docs: update CONTRIBUTING link ([#1603](https://github.com/googleapis/google-api-nodejs-client/pull/1603))
|
||||
- docs: update links in contrib guide ([#1599](https://github.com/googleapis/google-api-nodejs-client/pull/1599))
|
||||
- docs: Use people API instead of plus API
|
||||
- docs: move CONTRIBUTING.md to root ([#1583](https://github.com/googleapis/google-api-nodejs-client/pull/1583))
|
||||
|
||||
### Internal / Testing Changes
|
||||
- chore(deps): update dependency p-queue to v4 ([#1631](https://github.com/googleapis/google-api-nodejs-client/pull/1631))
|
||||
- build: Add docuploader credentials to node publish jobs ([#1630](https://github.com/googleapis/google-api-nodejs-client/pull/1630))
|
||||
- build: use node10 to run samples-test, system-test etc ([#1628](https://github.com/googleapis/google-api-nodejs-client/pull/1628))
|
||||
- build: update release config ([#1625](https://github.com/googleapis/google-api-nodejs-client/pull/1625))
|
||||
- chore(deps): update dependency @types/source-map-support to ^0.5.0 ([#1626](https://github.com/googleapis/google-api-nodejs-client/pull/1626))
|
||||
- chore(deps): update dependency mocha to v6
|
||||
- build: use linkinator for docs test ([#1596](https://github.com/googleapis/google-api-nodejs-client/pull/1596))
|
||||
- chore(deps): update dependency @types/tmp to ^0.0.34 ([#1597](https://github.com/googleapis/google-api-nodejs-client/pull/1597))
|
||||
- build: create docs test npm scripts ([#1592](https://github.com/googleapis/google-api-nodejs-client/pull/1592))
|
||||
- build: test using @grpc/grpc-js in CI ([#1589](https://github.com/googleapis/google-api-nodejs-client/pull/1589))
|
||||
|
||||
## v37.2.0
|
||||
|
||||
02-07-2019 14:55 PST
|
||||
|
||||
### New Features
|
||||
- feat: run the generator ([#1584](https://github.com/google/google-api-nodejs-client/pull/1584))
|
||||
|
||||
This pulls in a few new APIs:
|
||||
- dfareporting_v3_3
|
||||
- healthcare_v1alpha
|
||||
- videointelligence_v1p2beta1
|
||||
|
||||
### Bug fixes
|
||||
- fix: respect `.` in api versions (fix adsense API) ([#1573](https://github.com/google/google-api-nodejs-client/pull/1573))
|
||||
|
||||
### Documentation
|
||||
- docs: add lint/fix example to contributing guide ([#1581](https://github.com/google/google-api-nodejs-client/pull/1581))
|
||||
- docs(samples): Talent API Sample Revision & Test ([#1546](https://github.com/google/google-api-nodejs-client/pull/1546))
|
||||
|
||||
## v37.1.0
|
||||
|
||||
01-29-2019 13:33 PST
|
||||
|
||||
This release includes a new API for working with Google Docs. Enjoy!
|
||||
|
||||
- feat: run the generator ([#1570](https://github.com/google/google-api-nodejs-client/pull/1570))
|
||||
|
||||
## v37.0.0
|
||||
|
||||
01-28-2019 10:29 PST
|
||||
|
||||
**This release has breaking changes**. But it's also got a lot of good stuff too. Keep reading!
|
||||
|
||||
#### google-auth-library 3.0
|
||||
The `google-auth-library` module has been upgrade to `3.0`. This comes with it's own breaking changes, which are covered [here](https://github.com/googleapis/google-auth-library-nodejs/releases/tag/v3.0.0).
|
||||
|
||||
#### gaxios upgrade
|
||||
Previous versions of this library used the [axios](https://github.com/axios/axios) library as an underlying HTTP transport. In an effort to fix a variety of problems, this has been swapped out for an API compatible library: [gaxios](https://github.com/JustinBeckwith/gaxios). While we've tried really hard to ensure compatibility with `axios`, it's entirely possible there are subtle differences. If you run into trouble - just let us know!
|
||||
|
||||
#### Removed APIs
|
||||
The `replicapoolupdater_v1beta1` API has been removed.
|
||||
|
||||
### New features
|
||||
|
||||
#### Webpack support
|
||||
This library is now webpack-able! Samples and docs are still coming, but you should be able to bundle for the browser now.
|
||||
|
||||
#### New APIs
|
||||
The following APIs have been introduced:
|
||||
- file_v1
|
||||
- bigtableadmin_v2
|
||||
- cloudbuild_v1alpha1
|
||||
- cloudidentity_v1
|
||||
- cloudidentity_v1beta1
|
||||
- containeranalysis_v1alpha1
|
||||
- containeranalysis_v1beta1
|
||||
- content_v2_1
|
||||
- iap_v1
|
||||
- libraryagent_v1
|
||||
- remotebuildexecution_v1
|
||||
- remotebuildexecution_v1alpha
|
||||
- remotebuildexecution_v2
|
||||
|
||||
#### Changes
|
||||
It includes the following changes:
|
||||
- feat: run the generator ([#1564](https://github.com/google/google-api-nodejs-client/pull/1564))
|
||||
- feat: run the generator ([#1541](https://github.com/google/google-api-nodejs-client/pull/1541))
|
||||
- feat: webpack support for all APIs ([#1554](https://github.com/google/google-api-nodejs-client/pull/1554))
|
||||
- feat: generating webpackable packages ([#1547](https://github.com/google/google-api-nodejs-client/pull/1547))
|
||||
|
||||
### Documentation
|
||||
- docs: specify gaxios over axios ([#1558](https://github.com/google/google-api-nodejs-client/pull/1558))
|
||||
- docs(samples): add people samples for get & create contacts ([#1543](https://github.com/google/google-api-nodejs-client/pull/1543))
|
||||
- docs: fix typo in README.md ([#1549](https://github.com/google/google-api-nodejs-client/pull/1549))
|
||||
- docs: improve the compute sample in the README ([#1537](https://github.com/google/google-api-nodejs-client/pull/1537))
|
||||
- docs(samples): rework the compute list vms sample ([#1534](https://github.com/google/google-api-nodejs-client/pull/1534))
|
||||
- docs: correct the README ([#1522](https://github.com/google/google-api-nodejs-client/pull/1522))
|
||||
- docs: use blogger to demonstrate key authentication ([#1519](https://github.com/google/google-api-nodejs-client/pull/1519))
|
||||
- docs: fix the doc generator ([#1489](https://github.com/google/google-api-nodejs-client/pull/1489))
|
||||
|
||||
### Dependencies
|
||||
- fix(deps): update dependency googleapis-common to ^0.7.0 ([#1560](https://github.com/google/google-api-nodejs-client/pull/1560))
|
||||
- fix(deps): update googleapis-common and google-auth-library ([#1556](https://github.com/google/google-api-nodejs-client/pull/1556))
|
||||
|
||||
### Bug fixes
|
||||
- fix(generator): convert method names to camelCase ([#1552](https://github.com/google/google-api-nodejs-client/pull/1552))
|
||||
- fix(test): fix the revoke token test ([#1532](https://github.com/google/google-api-nodejs-client/pull/1532))
|
||||
|
||||
## v36.0.0
|
||||
|
||||
12-06-2018 17:35 PST
|
||||
|
||||
### New APIs
|
||||
- cloudscheduler_v1beta1
|
||||
- driveactivity_v2
|
||||
- pagespeedonline_v5
|
||||
- speech_v1p1beta1
|
||||
|
||||
### Removed APIs
|
||||
- dfareporting_v3_0
|
||||
- partners_v2
|
||||
- speech_v1beta1
|
||||
|
||||
### Features
|
||||
- feat: run the generator ([#1474](https://github.com/google/google-api-nodejs-client/pull/1474))
|
||||
- feat: Add support for repeated fields ([#1451](https://github.com/google/google-api-nodejs-client/pull/1451))
|
||||
|
||||
### Bug fixes
|
||||
- fix: Fix [#1383](https://github.com/google/google-api-nodejs-client/pull/1383) Poor Typings for Schema ([#1433](https://github.com/google/google-api-nodejs-client/pull/1433))
|
||||
|
||||
### Documentation
|
||||
- docs: be more explicit about supported version of nodejs for docs ([#1473](https://github.com/google/google-api-nodejs-client/pull/1473))
|
||||
- docs: add note about minimum Node.js version required ([#1464](https://github.com/google/google-api-nodejs-client/pull/1464))
|
||||
- fix(samples): fix url parsing in sampleClient ([#1462](https://github.com/google/google-api-nodejs-client/pull/1462))
|
||||
- docs: Added information to run the quickstart sample ([#1460](https://github.com/google/google-api-nodejs-client/pull/1460))
|
||||
|
||||
### Internal / Testing Changes
|
||||
- chore: always nyc report before calling codecov ([#1482](https://github.com/google/google-api-nodejs-client/pull/1482))
|
||||
- chore: nyc ignore build/test by default ([#1481](https://github.com/google/google-api-nodejs-client/pull/1481))
|
||||
- refactor: remove weird root binding ([#1476](https://github.com/google/google-api-nodejs-client/pull/1476))
|
||||
- refactor: add dev dependencies to APIs ([#1475](https://github.com/google/google-api-nodejs-client/pull/1475))
|
||||
- chore(deps): update dependency typescript to ~3.2.0 ([#1465](https://github.com/google/google-api-nodejs-client/pull/1465))
|
||||
- fix(build): fix system key decryption ([#1467](https://github.com/google/google-api-nodejs-client/pull/1467))
|
||||
- chore(deps): update dependency @types/p-queue to v3 ([#1449](https://github.com/google/google-api-nodejs-client/pull/1449))
|
||||
- chore: try to fix codecov ([#1439](https://github.com/google/google-api-nodejs-client/pull/1439))
|
||||
- chore(deps): update dependency gts to ^0.9.0 ([#1440](https://github.com/google/google-api-nodejs-client/pull/1440))
|
||||
- chore: update eslintignore config ([#1438](https://github.com/google/google-api-nodejs-client/pull/1438))
|
||||
|
||||
## v35.0.0
|
||||
|
||||
**This release has breaking changes**. Please take care with your upgrade!
|
||||
|
||||
### Breaking changes
|
||||
The following APIs have been deprecated and removed:
|
||||
- content_v2sandbox
|
||||
- dfareporting_v2_8
|
||||
- serviceuser_v1
|
||||
|
||||
### New APIs
|
||||
The following new APIs have been added since the last release:
|
||||
- accesscontextmanager_v1beta
|
||||
- alertcenter_v1beta1
|
||||
- cloudasset_v1beta1
|
||||
- cloudsearch_v1
|
||||
- firebasehosting_v1beta1
|
||||
- servicenetworking_v1beta
|
||||
|
||||
### Generator runs (adds and removes APIs above)
|
||||
- feat: run the generator ([#1430](https://github.com/google/google-api-nodejs-client/pull/1430))
|
||||
- feat: run the generator ([#1384](https://github.com/google/google-api-nodejs-client/pull/1384))
|
||||
|
||||
### Bug fixes
|
||||
- fix: generator missing standard parameters ([#1390](https://github.com/google/google-api-nodejs-client/pull/1390))
|
||||
- Don't publish sourcemaps ([#1364](https://github.com/google/google-api-nodejs-client/pull/1364))
|
||||
|
||||
### Dependencies
|
||||
- fix(deps): update dependency googleapis-common to ^0.4.0 ([#1426](https://github.com/google/google-api-nodejs-client/pull/1426))
|
||||
- fix: update gsuite admin samples ([#1361](https://github.com/google/google-api-nodejs-client/pull/1361))
|
||||
|
||||
### Samples
|
||||
- fix: use URL constructor in the samples ([#1424](https://github.com/google/google-api-nodejs-client/pull/1424))
|
||||
|
||||
### Internal / Testing Changes
|
||||
- chore: drop contributors from multiple places ([#1428](https://github.com/google/google-api-nodejs-client/pull/1428))
|
||||
- fix: failing system test ([#1429](https://github.com/google/google-api-nodejs-client/pull/1429))
|
||||
- chore: use latest npm on Windows ([#1427](https://github.com/google/google-api-nodejs-client/pull/1427))
|
||||
- chore: update CircleCI config ([#1423](https://github.com/google/google-api-nodejs-client/pull/1423))
|
||||
- chore: include build in eslintignore ([#1420](https://github.com/google/google-api-nodejs-client/pull/1420))
|
||||
- chore(deps): update dependency eslint-plugin-node to v8 ([#1415](https://github.com/google/google-api-nodejs-client/pull/1415))
|
||||
- chore: update issue templates ([#1413](https://github.com/google/google-api-nodejs-client/pull/1413))
|
||||
- chore: remove old issue template ([#1411](https://github.com/google/google-api-nodejs-client/pull/1411))
|
||||
- build: run tests on node11 ([#1410](https://github.com/google/google-api-nodejs-client/pull/1410))
|
||||
- chore(deps): update dependency typescript to ~3.1.0 ([#1403](https://github.com/google/google-api-nodejs-client/pull/1403))
|
||||
- chore(deps): update dependency eslint-plugin-prettier to v3 ([#1404](https://github.com/google/google-api-nodejs-client/pull/1404))
|
||||
- chore(deps): update dependency nock to v10 ([#1405](https://github.com/google/google-api-nodejs-client/pull/1405))
|
||||
- chores(build): do not collect sponge.xml from windows builds ([#1406](https://github.com/google/google-api-nodejs-client/pull/1406))
|
||||
- chores(build): run codecov on continuous builds ([#1401](https://github.com/google/google-api-nodejs-client/pull/1401))
|
||||
- chore: update new issue template ([#1398](https://github.com/google/google-api-nodejs-client/pull/1398))
|
||||
- feat: Allow use of --discovery-url parameter ([#1377](https://github.com/google/google-api-nodejs-client/pull/1377))
|
||||
- build: fix codecov uploading on Kokoro ([#1389](https://github.com/google/google-api-nodejs-client/pull/1389))
|
||||
- Update kokoro config ([#1372](https://github.com/google/google-api-nodejs-client/pull/1372))
|
||||
- Update CI config ([#1368](https://github.com/google/google-api-nodejs-client/pull/1368))
|
||||
- Fix Windows Kokoro builds ([#1365](https://github.com/google/google-api-nodejs-client/pull/1365))
|
||||
|
||||
## v34.0.0
|
||||
|
||||
Welcome to the `googleapis@34` 🎊 This release has breaking changes, new features, and a bunch of bug fixes. Enjoy!
|
||||
|
||||
The following APIs have been removed:
|
||||
- adexchangeseller/v1.1
|
||||
- adexchangeseller/v1'
|
||||
- adexchangeseller/v2.0
|
||||
- sqladmin/v1beta3
|
||||
|
||||
The following APIs have been added:
|
||||
- cloudtasks/v2beta3
|
||||
- redis/v1
|
||||
- file/v1beta1
|
||||
- jobs/v3p1beta1
|
||||
- videointelligence/v1p1beta1
|
||||
|
||||
|
||||
### Fixes
|
||||
- fix: upgrade to the latest google-auth-library ([#1313](https://github.com/google/google-api-nodejs-client/pull/1313))
|
||||
- fix: add better error handling around sample client and redirect URIs ([#1285](https://github.com/google/google-api-nodejs-client/pull/1285))
|
||||
- chore(deps): update dependency p-queue to v3 ([#1310](https://github.com/google/google-api-nodejs-client/pull/1310))
|
||||
- chore(deps): update dependency nyc to v13 ([#1307](https://github.com/google/google-api-nodejs-client/pull/1307))
|
||||
|
||||
### New Features
|
||||
- feat: run the generator ([#1359](https://github.com/google/google-api-nodejs-client/pull/1359))
|
||||
- feat: run the generator ([#1326](https://github.com/google/google-api-nodejs-client/pull/1326))
|
||||
- feat: run the generator and synth ([#1324](https://github.com/google/google-api-nodejs-client/pull/1324))
|
||||
|
||||
### Documentation
|
||||
- docs: add supported versions of node.js to the readme ([#1355](https://github.com/google/google-api-nodejs-client/pull/1355))
|
||||
- docs: fix generator script path ([#1345](https://github.com/google/google-api-nodejs-client/pull/1345))
|
||||
- docs: replace google/ with googleapis/ in URIs ([#1342](https://github.com/google/google-api-nodejs-client/pull/1342))
|
||||
- docs: Fix error handling in batchGet sample ([#1338](https://github.com/google/google-api-nodejs-client/pull/1338))
|
||||
- docs: Add statement of support to readme ([#1333](https://github.com/google/google-api-nodejs-client/pull/1333))
|
||||
- docs: Remove reference docs ([#1331](https://github.com/google/google-api-nodejs-client/pull/1331))
|
||||
|
||||
### Internal / Testing Changes
|
||||
- Update the kokoro config ([#1353](https://github.com/google/google-api-nodejs-client/pull/1353))
|
||||
- test: remove appveyor config ([#1357](https://github.com/google/google-api-nodejs-client/pull/1357))
|
||||
- Do not generate libraries with synth ([#1350](https://github.com/google/google-api-nodejs-client/pull/1350))
|
||||
- Enable prefer-const in the eslint config ([#1347](https://github.com/google/google-api-nodejs-client/pull/1347))
|
||||
- Fix the sample tests ([#1344](https://github.com/google/google-api-nodejs-client/pull/1344))
|
||||
- Make npm install timeout configurable ([#1343](https://github.com/google/google-api-nodejs-client/pull/1343))
|
||||
- Enable no-var in eslint ([#1340](https://github.com/google/google-api-nodejs-client/pull/1340))
|
||||
- Use prettier and eslint on samples ([#1341](https://github.com/google/google-api-nodejs-client/pull/1341))
|
||||
- Fix samples tests ([#1323](https://github.com/google/google-api-nodejs-client/pull/1323))
|
||||
- Use synth templating and update CI ([#1321](https://github.com/google/google-api-nodejs-client/pull/1321))
|
||||
- Retry npm install in CI ([#1320](https://github.com/google/google-api-nodejs-client/pull/1320))
|
||||
- Add synth.py for automating client library generation ([#1306](https://github.com/google/google-api-nodejs-client/pull/1306))
|
||||
202
node_modules/googleapis/LICENSE
generated
vendored
Normal file
202
node_modules/googleapis/LICENSE
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 [yyyy] [name of copyright owner]
|
||||
|
||||
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.
|
||||
549
node_modules/googleapis/README.md
generated
vendored
Normal file
549
node_modules/googleapis/README.md
generated
vendored
Normal file
@@ -0,0 +1,549 @@
|
||||
<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
|
||||
|
||||
[![Release Level][releaselevelimg]][releaselevel]
|
||||
[![npm version][npmimg]][npm]
|
||||
[![Code Coverage][codecovimg]][codecov]
|
||||
[![Downloads][downloadsimg]][downloads]
|
||||
[![Dependency Status][david-image]][david-url]
|
||||
[![Known Vulnerabilities][snyk-image]][snyk-url]
|
||||
|
||||
[Node.js][node] client library for using Google APIs. Support for authorization and authentication with OAuth 2.0, API Keys and JWT tokens is included.
|
||||
|
||||
* [Google APIs](#google-apis)
|
||||
* [Getting started](#getting-started)
|
||||
* [Installation](#installation)
|
||||
* [First example](#first-example)
|
||||
* [Samples](#samples)
|
||||
* [API Reference](#api-reference)
|
||||
* [Authentication and authorization](#authentication-and-authorization)
|
||||
* [OAuth2 client](#oauth2-client)
|
||||
* [Using API keys](#using-api-keys)
|
||||
* [Service <--> Service authentication](#service-to-service-authentication)
|
||||
* [Setting global or service-level auth](#setting-global-or-service-level-auth)
|
||||
* [Usage](#usage)
|
||||
* [Specifying request body](#specifying-request-body)
|
||||
* [Media uploads](#media-uploads)
|
||||
* [Request Options](#request-options)
|
||||
* [Using a Proxy](#using-a-proxy)
|
||||
* [Supported APIs](#getting-supported-apis)
|
||||
* [TypeScript](#typescript)
|
||||
* [License](#license)
|
||||
* [Contributing](#contributing)
|
||||
* [Questions/problems?](#questionsproblems)
|
||||
|
||||
## Google APIs
|
||||
The full list of supported APIs can be found on the [Google APIs Explorer][apiexplorer]. 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.
|
||||
|
||||
### 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] client libraries: single purpose idiomatic Node.js clients for Google Cloud Platform services.
|
||||
|
||||
### Support and maintenance
|
||||
These client libraries are officially supported by Google. However, these libraries are considered complete and are in maintenance mode. This means that we will address critical bugs and security issues but will not add any new features. For Google Cloud Platform APIs, we recommend using [google-cloud-node](https://github.com/GoogleCloudPlatform/google-cloud-node) which is under active development.
|
||||
|
||||
This library supports the maintenance LTS, active LTS, and current release of node.js. See the [node.js release schedule](https://github.com/nodejs/Release) for more information.
|
||||
|
||||
## Getting started
|
||||
|
||||
### Installation
|
||||
This library is distributed on `npm`. In order to add it as a dependency, run the following command:
|
||||
|
||||
``` sh
|
||||
$ npm install googleapis
|
||||
```
|
||||
|
||||
### First example
|
||||
This is a very simple example. This creates a Blogger client and retrieves the details of a blog given the blog Id:
|
||||
|
||||
``` js
|
||||
const {google} = require('googleapis');
|
||||
|
||||
// Each API may support multiple version. With this sample, we're getting
|
||||
// v3 of the blogger API, and using an API key to authenticate.
|
||||
const blogger = google.blogger({
|
||||
version: 'v3',
|
||||
auth: 'YOUR API KEY'
|
||||
});
|
||||
|
||||
const params = {
|
||||
blogId: 3213900
|
||||
};
|
||||
|
||||
// get the blog details
|
||||
blogger.blogs.get(params, (err, res) => {
|
||||
if (err) {
|
||||
console.error(err);
|
||||
throw err;
|
||||
}
|
||||
console.log(`The blog url is ${res.data.url}`);
|
||||
});
|
||||
```
|
||||
|
||||
Instead of using callbacks you can also use promises!
|
||||
|
||||
``` js
|
||||
blogger.blogs.get(params)
|
||||
.then(res => {
|
||||
console.log(`The blog url is ${res.data.url}`);
|
||||
})
|
||||
.catch(error => {
|
||||
console.error(error);
|
||||
});
|
||||
```
|
||||
|
||||
Or async/await:
|
||||
|
||||
``` js
|
||||
async function runSample() {
|
||||
const res = await blogger.blogs.get(params);
|
||||
console.log(`The blog url is ${res.data.url}`);
|
||||
}
|
||||
runSample().catch(console.error);
|
||||
```
|
||||
|
||||
### Samples
|
||||
There are a lot of [samples](https://github.com/googleapis/google-api-nodejs-client/tree/master/samples) 🤗 If you're trying to figure out how to use an API ... look there first! If there's a sample you need missing, feel free to file an [issue][bugs].
|
||||
|
||||
### API Reference
|
||||
This library has a full set of [API Reference Documentation](https://googleapis.dev/nodejs/googleapis/latest). This documentation is auto-generated, and the location may change.
|
||||
|
||||
## Authentication and authorization
|
||||
There are three primary ways to authenticate to Google APIs. Some service support all authentication methods, other may only support one or two.
|
||||
|
||||
- **OAuth2** - This allows you to make API calls on behalf of a given user. In this model, the user visits your application, signs in with their Google account, and provides your application with authorization against a set of scopes. [Learn more](#oauth2-client).
|
||||
|
||||
- **Service <--> Service** - In this model, your application talks directly to Google APIs using a Service Account. It's useful when you have a backend application that will talk directly to Google APIs from the backend. [Learn more](#service-to-service-authentication).
|
||||
|
||||
- **API Key** - With an API key, you can access your service from a client or the server. Typically less secure, this is only available on a small subset of services with limited scopes. [Learn more](#using-api-keys).
|
||||
|
||||
To learn more about the authentication client, see the [Google Auth Library](https://github.com/googleapis/google-auth-library-nodejs).
|
||||
|
||||
### OAuth2 client
|
||||
This client comes with an [OAuth2][oauth] client that allows you to retrieve an access token, refresh it, and retry the request seamlessly. 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
|
||||
const {google} = require('googleapis');
|
||||
|
||||
const oauth2Client = new google.auth.OAuth2(
|
||||
YOUR_CLIENT_ID,
|
||||
YOUR_CLIENT_SECRET,
|
||||
YOUR_REDIRECT_URL
|
||||
);
|
||||
|
||||
// generate a url that asks permissions for Blogger and Google Calendar scopes
|
||||
const scopes = [
|
||||
'https://www.googleapis.com/auth/blogger',
|
||||
'https://www.googleapis.com/auth/calendar'
|
||||
];
|
||||
|
||||
const 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
|
||||
});
|
||||
```
|
||||
|
||||
**IMPORTANT NOTE** - The `refresh_token` is only returned on the first authorization. More details [here](https://github.com/googleapis/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
|
||||
// This will provide an object with the access_token and refresh_token.
|
||||
// Save these somewhere safe so they can be used at a later time.
|
||||
const {tokens} = await oauth2Client.getToken(code)
|
||||
oauth2Client.setCredentials(tokens);
|
||||
```
|
||||
|
||||
With the credentials set on your OAuth2 client - you're ready to go!
|
||||
|
||||
#### Handling refresh tokens
|
||||
Access tokens expire. This library will automatically use a refresh token to obtain a new access token if it is about to expire. An easy way to make sure you always store the most recent tokens is to use the `tokens` event:
|
||||
|
||||
```js
|
||||
oauth2Client.on('tokens', (tokens) => {
|
||||
if (tokens.refresh_token) {
|
||||
// store the refresh_token in my database!
|
||||
console.log(tokens.refresh_token);
|
||||
}
|
||||
console.log(tokens.access_token);
|
||||
});
|
||||
```
|
||||
|
||||
To set the `refresh_token` at a later time, you can use the `setCredentials` method:
|
||||
|
||||
```js
|
||||
oauth2Client.setCredentials({
|
||||
refresh_token: `STORED_REFRESH_TOKEN`
|
||||
});
|
||||
```
|
||||
|
||||
Once the client has a refresh token, access tokens will be acquired and refreshed automatically in the next call to the API.
|
||||
|
||||
### 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 Blogger API service to retrieve a blog's name, url, and its total amount of posts:
|
||||
|
||||
``` js
|
||||
const {google} = require('googleapis');
|
||||
const blogger = google.blogger_v3({
|
||||
version: 'v3',
|
||||
auth: 'YOUR_API_KEY' // specify your API key here
|
||||
});
|
||||
|
||||
const params = {
|
||||
blogId: 3213900
|
||||
};
|
||||
|
||||
async function main(params) {
|
||||
const res = await blogger.blogs.get({blogId: params.blogId});
|
||||
console.log(`${res.data.name} has ${res.data.posts.totalItems} posts! The blog url is ${res.data.url}`)
|
||||
};
|
||||
|
||||
main().catch(console.error);
|
||||
```
|
||||
|
||||
To learn more about API keys, please see the [documentation][usingkeys].
|
||||
|
||||
#### Service to Service Authentication
|
||||
|
||||
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
|
||||
const {google} = require('googleapis');
|
||||
const compute = google.compute('v1');
|
||||
|
||||
async function main () {
|
||||
// This method looks for the GCLOUD_PROJECT and GOOGLE_APPLICATION_CREDENTIALS
|
||||
// environment variables.
|
||||
const auth = await google.auth.getClient({
|
||||
// Scopes can be specified either as an array or as a single, space-delimited string.
|
||||
scopes: ['https://www.googleapis.com/auth/compute']
|
||||
});
|
||||
|
||||
// obtain the current project Id
|
||||
const project = await google.auth.getProjectId();
|
||||
|
||||
// Fetch the list of GCE zones within a project.
|
||||
const res = await compute.zones.list({ project, auth });
|
||||
console.log(res.data);
|
||||
}
|
||||
|
||||
main().catch(console.error);
|
||||
```
|
||||
|
||||
### 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. For example, you can set `auth` as a global option:
|
||||
|
||||
``` js
|
||||
const {google} = require('googleapis');
|
||||
|
||||
const oauth2Client = new google.auth.OAuth2(
|
||||
YOUR_CLIENT_ID,
|
||||
YOUR_CLIENT_SECRET,
|
||||
YOUR_REDIRECT_URL
|
||||
);
|
||||
|
||||
// set auth as a global default
|
||||
google.options({
|
||||
auth: oauth2Client
|
||||
});
|
||||
```
|
||||
|
||||
Instead of setting the option globally, you can also set the authentication client at the service-level:
|
||||
|
||||
``` js
|
||||
const {google} = require('googleapis');
|
||||
const oauth2Client = new google.auth.OAuth2(
|
||||
YOUR_CLIENT_ID,
|
||||
YOUR_CLIENT_SECRET,
|
||||
YOUR_REDIRECT_URL
|
||||
);
|
||||
|
||||
const drive = google.drive({
|
||||
version: 'v2',
|
||||
auth: oauth2Client
|
||||
});
|
||||
```
|
||||
|
||||
See the [Options section](#request-options) for more information.
|
||||
|
||||
## Usage
|
||||
|
||||
### Specifying request body
|
||||
|
||||
The body of the request is specified in the `requestBody` parameter object of the request. The body is specified as a JavaScript object with key/value pairs. For example, this sample creates a watcher that posts notifications to a Google Cloud Pub/Sub topic when emails are sent to a gmail account:
|
||||
|
||||
```js
|
||||
const res = await gmail.users.watch({
|
||||
userId: 'me',
|
||||
requestBody: {
|
||||
// Replace with `projects/${PROJECT_ID}/topics/${TOPIC_NAME}`
|
||||
topicName: `projects/el-gato/topics/gmail`
|
||||
}
|
||||
});
|
||||
console.log(res.data);
|
||||
```
|
||||
|
||||
### Media uploads
|
||||
This client supports multipart media uploads. The resource parameters are specified in the `requestBody` parameter object, and the media itself is specified in the `media.body` parameter with mime-type specified in `media.mimeType`.
|
||||
|
||||
This example uploads a plain text file to Google Drive with the title "Test" and contents "Hello World".
|
||||
|
||||
``` js
|
||||
const drive = google.drive({
|
||||
version: 'v3',
|
||||
auth: oauth2Client
|
||||
});
|
||||
|
||||
const res = await drive.files.create({
|
||||
requestBody: {
|
||||
name: 'Test',
|
||||
mimeType: 'text/plain'
|
||||
},
|
||||
media: {
|
||||
mimeType: 'text/plain',
|
||||
body: 'Hello World'
|
||||
}
|
||||
});
|
||||
```
|
||||
|
||||
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.
|
||||
|
||||
```js
|
||||
const fs = require('fs');
|
||||
|
||||
const drive = google.drive({
|
||||
version: 'v3',
|
||||
auth: oauth2Client
|
||||
});
|
||||
|
||||
async function main() {
|
||||
const res = await drive.files.create({
|
||||
requestBody: {
|
||||
name: 'testimage.png',
|
||||
mimeType: 'image/png'
|
||||
},
|
||||
media: {
|
||||
mimeType: 'image/png',
|
||||
body: fs.createReadStream('awesome.png')
|
||||
}
|
||||
});
|
||||
console.log(res.data);
|
||||
}
|
||||
|
||||
main().catch(console.error);
|
||||
```
|
||||
|
||||
For more examples of creation and modification requests with media attachments, take a look at the `samples/drive/upload.js` sample.
|
||||
|
||||
### Request 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 ['gaxios'][gaxios] 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. The options you specify are attached to the `gaxios` object so whatever `gaxios` 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
|
||||
You can choose default options that will be sent with each request. These options will be used for every service instantiated by the google client. In this example, the `timeout` property of `GaxiosOptions` will be set for every request:
|
||||
|
||||
```js
|
||||
const {google} = require('googleapis');
|
||||
google.options({
|
||||
// All requests made with this object will use these settings unless overridden.
|
||||
timeout: 1000,
|
||||
auth: auth
|
||||
});
|
||||
```
|
||||
|
||||
You can also modify the parameters sent with each request:
|
||||
|
||||
```js
|
||||
const {google} = require('googleapis');
|
||||
google.options({
|
||||
// All requests from all services will contain the above query parameter
|
||||
// unless overridden either in a service client or in individual API calls.
|
||||
params: {
|
||||
quotaUser: 'user123@example.com'
|
||||
}
|
||||
});
|
||||
```
|
||||
|
||||
#### Service-client options
|
||||
|
||||
You can also specify options when creating a service client.
|
||||
|
||||
```js
|
||||
const blogger = google.blogger({
|
||||
version: 'v3',
|
||||
// All requests made with this object will use the specified auth.
|
||||
auth: 'API KEY';
|
||||
});
|
||||
```
|
||||
|
||||
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.
|
||||
|
||||
Similar to the examples above, you can also modify the parameters used for every call of a given service:
|
||||
|
||||
```js
|
||||
const blogger = google.blogger({
|
||||
version: 'v3',
|
||||
// All requests made with this service client will contain the
|
||||
// blogId query parameter unless overridden in individual API calls.
|
||||
params: {
|
||||
blogId: 3213900
|
||||
}
|
||||
});
|
||||
|
||||
// Calls with this drive client will NOT contain the blogId query parameter.
|
||||
const drive = google.drive('v3');
|
||||
...
|
||||
|
||||
```
|
||||
|
||||
#### 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
|
||||
const {google} = require('googleapis');
|
||||
const bigquery = google.bigquery('v2');
|
||||
|
||||
async function main() {
|
||||
|
||||
// This method looks for the GCLOUD_PROJECT and GOOGLE_APPLICATION_CREDENTIALS
|
||||
// environment variables.
|
||||
const client = await google.auth.getClient({
|
||||
scopes: ['https://www.googleapis.com/auth/cloud-platform']
|
||||
});
|
||||
|
||||
const projectId = await google.auth.getProjectId();
|
||||
|
||||
const request = {
|
||||
projectId,
|
||||
datasetId: '<YOUR_DATASET_ID>',
|
||||
|
||||
// This is a "request-level" option
|
||||
auth: client
|
||||
};
|
||||
|
||||
const res = await bigquery.datasets.delete(request);
|
||||
console.log(res.data);
|
||||
|
||||
}
|
||||
|
||||
main().catch(console.error);
|
||||
```
|
||||
|
||||
You can also override *gaxios* options per request, such as `url`, `method`, and `encoding`.
|
||||
|
||||
For example:
|
||||
|
||||
```js
|
||||
const res = await drive.files.export({
|
||||
fileId: 'asxKJod9s79', // A Google Doc
|
||||
mimeType: 'application/pdf'
|
||||
}, {
|
||||
// Make sure we get the binary data
|
||||
encoding: null
|
||||
});
|
||||
```
|
||||
|
||||
### Using a Proxy
|
||||
You can use the following environment variables to proxy HTTP and HTTPS requests:
|
||||
|
||||
- `HTTP_PROXY` / `http_proxy`
|
||||
- `HTTPS_PROXY` / `https_proxy`
|
||||
|
||||
When HTTP_PROXY / http_proxy are set, they will be used to proxy non-SSL requests that do not have an explicit proxy configuration option present. Similarly, HTTPS_PROXY / https_proxy will be respected for SSL requests that do not have an explicit proxy configuration option. It is valid to define a proxy in one of the environment variables, but then override it for a specific request, using the proxy configuration option.
|
||||
|
||||
### Getting Supported APIs
|
||||
You can programatically obtain the list of supported APIs, and all available versions:
|
||||
|
||||
```js
|
||||
const {google} = require('googleapis');
|
||||
const apis = google.getSupportedAPIs();
|
||||
```
|
||||
|
||||
This will return an object with the API name as object property names, and an array of version strings as the object values;
|
||||
|
||||
### TypeScript
|
||||
This library is written in TypeScript, and provides types out of the box. All classes and interfaces generated for each API are exported under the `${apiName}_${version}` namespace. For example, the Drive v3 API types are all available from the `drive_v3` namespace:
|
||||
|
||||
```ts
|
||||
import { drive_v3 } from 'googleapis';
|
||||
```
|
||||
|
||||
## Release Notes & Breaking Changes
|
||||
You can find a detailed list of breaking changes and new features in our [Release Notes][releasenotes]. If you've used this library before `25.x`, see our [Release Notes][releasenotes] to learn about migrating your code from `24.x.x` to `25.x.x`. It's pretty easy :)
|
||||
|
||||
## License
|
||||
This library is licensed under Apache 2.0. Full license text is available in [LICENSE][license].
|
||||
|
||||
## Contributing
|
||||
We love contributions! Before submitting a Pull Request, it's always good to start with a new issue first. To learn more, see [CONTRIBUTING][contributing].
|
||||
|
||||
## Questions/problems?
|
||||
* Ask your development related questions on [Stackoverflow][stackoverflow].
|
||||
* If you've found an bug/issue, please [file it on GitHub][bugs].
|
||||
|
||||
|
||||
[snyk-image]: https://snyk.io/test/github/googleapis/google-api-nodejs-client/badge.svg
|
||||
[snyk-url]: https://snyk.io/test/github/googleapis/google-api-nodejs-client
|
||||
[david-image]: https://david-dm.org/googleapis/google-api-nodejs-client.svg
|
||||
[david-url]: https://david-dm.org/googleapis/google-api-nodejs-client
|
||||
[npmimg]: https://img.shields.io/npm/v/googleapis.svg
|
||||
[npm]: https://www.npmjs.org/package/googleapis
|
||||
[circle]: https://circleci.com/gh/googleapis/google-api-nodejs-client
|
||||
[circleimg]: https://circleci.com/gh/googleapis/google-api-nodejs-client.svg?style=shield
|
||||
[releaselevel]: https://cloud.google.com/terms/launch-stages
|
||||
[releaselevelimg]: https://img.shields.io/badge/Release%20Level-Alpha-ff69b4.svg
|
||||
[bugs]: https://github.com/googleapis/google-api-nodejs-client/issues
|
||||
[node]: http://nodejs.org/
|
||||
[stackoverflow]: http://stackoverflow.com/questions/tagged/google-api-nodejs-client
|
||||
[apiexplorer]: https://developers.google.com/apis-explorer
|
||||
[usingkeys]: https://support.google.com/cloud/answer/6158862?hl=en
|
||||
[contributing]: https://github.com/googleapis/google-api-nodejs-client/blob/master/CONTRIBUTING.md
|
||||
[license]: https://github.com/googleapis/google-api-nodejs-client/tree/master/LICENSE
|
||||
[authdocs]: https://developers.google.com/identity/protocols/OpenIDConnect
|
||||
[gaxios]: https://github.com/JustinBeckwith/gaxios
|
||||
[stream]: http://nodejs.org/api/stream.html#stream_class_stream_readable
|
||||
[releasenotes]: https://github.com/googleapis/google-api-nodejs-client/releases
|
||||
[devconsole]: https://console.developer.google.com
|
||||
[oauth]: https://developers.google.com/identity/protocols/OAuth2
|
||||
[oauthexample]: https://github.com/googleapis/google-api-nodejs-client/tree/master/samples/oauth2.js
|
||||
[options]: https://github.com/googleapis/google-api-nodejs-client/tree/master#options
|
||||
[googlecloud]: https://cloud.google.com/nodejs/docs/reference/libraries
|
||||
[googlecloudapis]: https://cloud.google.com/nodejs/docs/reference/apis
|
||||
[cloudplatform]: https://cloud.google.com/docs/
|
||||
[codecovimg]: https://codecov.io/github/googleapis/google-api-nodejs-client/coverage.svg?branch=master
|
||||
[codecov]: https://codecov.io/github/googleapis/google-api-nodejs-client?branch=master
|
||||
[downloadsimg]: https://img.shields.io/npm/dm/googleapis.svg
|
||||
[downloads]: https://nodei.co/npm/googleapis/
|
||||
10
node_modules/googleapis/build/src/apis/abusiveexperiencereport/index.d.ts
generated
vendored
Normal file
10
node_modules/googleapis/build/src/apis/abusiveexperiencereport/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
/*! THIS FILE IS AUTO-GENERATED */
|
||||
import { AuthPlus } from 'googleapis-common';
|
||||
import { abusiveexperiencereport_v1 } from './v1';
|
||||
export declare const VERSIONS: {
|
||||
v1: typeof abusiveexperiencereport_v1.Abusiveexperiencereport;
|
||||
};
|
||||
export declare function abusiveexperiencereport(version: 'v1'): abusiveexperiencereport_v1.Abusiveexperiencereport;
|
||||
export declare function abusiveexperiencereport(options: abusiveexperiencereport_v1.Options): abusiveexperiencereport_v1.Abusiveexperiencereport;
|
||||
declare const auth: AuthPlus;
|
||||
export { auth };
|
||||
27
node_modules/googleapis/build/src/apis/abusiveexperiencereport/index.js
generated
vendored
Normal file
27
node_modules/googleapis/build/src/apis/abusiveexperiencereport/index.js
generated
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
"use strict";
|
||||
// Copyright 2019 Google LLC
|
||||
// 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.
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
/*! THIS FILE IS AUTO-GENERATED */
|
||||
const googleapis_common_1 = require("googleapis-common");
|
||||
const v1_1 = require("./v1");
|
||||
exports.VERSIONS = {
|
||||
v1: v1_1.abusiveexperiencereport_v1.Abusiveexperiencereport,
|
||||
};
|
||||
function abusiveexperiencereport(versionOrOptions) {
|
||||
return googleapis_common_1.getAPI('abusiveexperiencereport', versionOrOptions, exports.VERSIONS, this);
|
||||
}
|
||||
exports.abusiveexperiencereport = abusiveexperiencereport;
|
||||
const auth = new googleapis_common_1.AuthPlus();
|
||||
exports.auth = auth;
|
||||
//# sourceMappingURL=index.js.map
|
||||
187
node_modules/googleapis/build/src/apis/abusiveexperiencereport/v1.d.ts
generated
vendored
Normal file
187
node_modules/googleapis/build/src/apis/abusiveexperiencereport/v1.d.ts
generated
vendored
Normal file
@@ -0,0 +1,187 @@
|
||||
/**
|
||||
* Copyright 2019 Google LLC
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
import { OAuth2Client, JWT, Compute, UserRefreshClient } from 'google-auth-library';
|
||||
import { GoogleConfigurable, MethodOptions, GlobalOptions, BodyResponseCallback, APIRequestContext } from 'googleapis-common';
|
||||
import { GaxiosPromise } from 'gaxios';
|
||||
export declare namespace abusiveexperiencereport_v1 {
|
||||
interface Options extends GlobalOptions {
|
||||
version: 'v1';
|
||||
}
|
||||
interface StandardParameters {
|
||||
/**
|
||||
* V1 error format.
|
||||
*/
|
||||
'$.xgafv'?: string;
|
||||
/**
|
||||
* OAuth access token.
|
||||
*/
|
||||
access_token?: string;
|
||||
/**
|
||||
* Data format for response.
|
||||
*/
|
||||
alt?: string;
|
||||
/**
|
||||
* JSONP
|
||||
*/
|
||||
callback?: string;
|
||||
/**
|
||||
* Selector specifying which fields to include in a partial response.
|
||||
*/
|
||||
fields?: string;
|
||||
/**
|
||||
* API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
|
||||
*/
|
||||
key?: string;
|
||||
/**
|
||||
* OAuth 2.0 token for the current user.
|
||||
*/
|
||||
oauth_token?: string;
|
||||
/**
|
||||
* Returns response with indentations and line breaks.
|
||||
*/
|
||||
prettyPrint?: boolean;
|
||||
/**
|
||||
* Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
*/
|
||||
quotaUser?: string;
|
||||
/**
|
||||
* Legacy upload protocol for media (e.g. "media", "multipart").
|
||||
*/
|
||||
uploadType?: string;
|
||||
/**
|
||||
* Upload protocol for media (e.g. "raw", "multipart").
|
||||
*/
|
||||
upload_protocol?: string;
|
||||
}
|
||||
/**
|
||||
* Abusive Experience Report API
|
||||
*
|
||||
* Views Abusive Experience Report data, and gets a list of sites that have a significant number of abusive experiences.
|
||||
*
|
||||
* @example
|
||||
* const {google} = require('googleapis');
|
||||
* const abusiveexperiencereport = google.abusiveexperiencereport('v1');
|
||||
*
|
||||
* @namespace abusiveexperiencereport
|
||||
* @type {Function}
|
||||
* @version v1
|
||||
* @variation v1
|
||||
* @param {object=} options Options for Abusiveexperiencereport
|
||||
*/
|
||||
class Abusiveexperiencereport {
|
||||
context: APIRequestContext;
|
||||
sites: Resource$Sites;
|
||||
violatingSites: Resource$Violatingsites;
|
||||
constructor(options: GlobalOptions, google?: GoogleConfigurable);
|
||||
}
|
||||
/**
|
||||
* Response message for GetSiteSummary.
|
||||
*/
|
||||
interface Schema$SiteSummaryResponse {
|
||||
/**
|
||||
* The status of the site reviewed for the abusive experiences.
|
||||
*/
|
||||
abusiveStatus?: string;
|
||||
/**
|
||||
* The date on which enforcement begins.
|
||||
*/
|
||||
enforcementTime?: string;
|
||||
/**
|
||||
* The abusive experience enforcement status of the site.
|
||||
*/
|
||||
filterStatus?: string;
|
||||
/**
|
||||
* The last time that the site changed status.
|
||||
*/
|
||||
lastChangeTime?: string;
|
||||
/**
|
||||
* A link that leads to a full abusive experience report.
|
||||
*/
|
||||
reportUrl?: string;
|
||||
/**
|
||||
* The name of the site reviewed.
|
||||
*/
|
||||
reviewedSite?: string;
|
||||
/**
|
||||
* Whether the site is currently under review.
|
||||
*/
|
||||
underReview?: boolean;
|
||||
}
|
||||
/**
|
||||
* Response message for ListViolatingSites.
|
||||
*/
|
||||
interface Schema$ViolatingSitesResponse {
|
||||
/**
|
||||
* A list of summaries of violating sites.
|
||||
*/
|
||||
violatingSites?: Schema$SiteSummaryResponse[];
|
||||
}
|
||||
class Resource$Sites {
|
||||
context: APIRequestContext;
|
||||
constructor(context: APIRequestContext);
|
||||
/**
|
||||
* abusiveexperiencereport.sites.get
|
||||
* @desc Gets a summary of the abusive experience rating of a site.
|
||||
* @alias abusiveexperiencereport.sites.get
|
||||
* @memberOf! ()
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.name The required site name. This is the site property whose abusive experiences have been reviewed, and it must 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 Abusive 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(params?: Params$Resource$Sites$Get, options?: MethodOptions): GaxiosPromise<Schema$SiteSummaryResponse>;
|
||||
get(params: Params$Resource$Sites$Get, options: MethodOptions | BodyResponseCallback<Schema$SiteSummaryResponse>, callback: BodyResponseCallback<Schema$SiteSummaryResponse>): void;
|
||||
get(params: Params$Resource$Sites$Get, callback: BodyResponseCallback<Schema$SiteSummaryResponse>): void;
|
||||
get(callback: BodyResponseCallback<Schema$SiteSummaryResponse>): void;
|
||||
}
|
||||
interface Params$Resource$Sites$Get extends StandardParameters {
|
||||
/**
|
||||
* Auth client or API Key for the request
|
||||
*/
|
||||
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
|
||||
/**
|
||||
* The required site name. This is the site property whose abusive experiences have been reviewed, and it must 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 Abusive Experience Report.
|
||||
*/
|
||||
name?: string;
|
||||
}
|
||||
class Resource$Violatingsites {
|
||||
context: APIRequestContext;
|
||||
constructor(context: APIRequestContext);
|
||||
/**
|
||||
* abusiveexperiencereport.violatingSites.list
|
||||
* @desc Lists sites with Abusive Experience Report statuses of "Failing".
|
||||
* @alias abusiveexperiencereport.violatingSites.list
|
||||
* @memberOf! ()
|
||||
*
|
||||
* @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(params?: Params$Resource$Violatingsites$List, options?: MethodOptions): GaxiosPromise<Schema$ViolatingSitesResponse>;
|
||||
list(params: Params$Resource$Violatingsites$List, options: MethodOptions | BodyResponseCallback<Schema$ViolatingSitesResponse>, callback: BodyResponseCallback<Schema$ViolatingSitesResponse>): void;
|
||||
list(params: Params$Resource$Violatingsites$List, callback: BodyResponseCallback<Schema$ViolatingSitesResponse>): void;
|
||||
list(callback: BodyResponseCallback<Schema$ViolatingSitesResponse>): void;
|
||||
}
|
||||
interface Params$Resource$Violatingsites$List extends StandardParameters {
|
||||
/**
|
||||
* Auth client or API Key for the request
|
||||
*/
|
||||
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
|
||||
}
|
||||
}
|
||||
126
node_modules/googleapis/build/src/apis/abusiveexperiencereport/v1.js
generated
vendored
Normal file
126
node_modules/googleapis/build/src/apis/abusiveexperiencereport/v1.js
generated
vendored
Normal file
@@ -0,0 +1,126 @@
|
||||
"use strict";
|
||||
/**
|
||||
* Copyright 2019 Google LLC
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const googleapis_common_1 = require("googleapis-common");
|
||||
// tslint:disable: no-any
|
||||
// tslint:disable: class-name
|
||||
// tslint:disable: variable-name
|
||||
// tslint:disable: jsdoc-format
|
||||
// tslint:disable: no-namespace
|
||||
var abusiveexperiencereport_v1;
|
||||
(function (abusiveexperiencereport_v1) {
|
||||
/**
|
||||
* Abusive Experience Report API
|
||||
*
|
||||
* Views Abusive Experience Report data, and gets a list of sites that have a significant number of abusive experiences.
|
||||
*
|
||||
* @example
|
||||
* const {google} = require('googleapis');
|
||||
* const abusiveexperiencereport = google.abusiveexperiencereport('v1');
|
||||
*
|
||||
* @namespace abusiveexperiencereport
|
||||
* @type {Function}
|
||||
* @version v1
|
||||
* @variation v1
|
||||
* @param {object=} options Options for Abusiveexperiencereport
|
||||
*/
|
||||
class Abusiveexperiencereport {
|
||||
constructor(options, google) {
|
||||
this.context = {
|
||||
_options: options || {},
|
||||
google,
|
||||
};
|
||||
this.sites = new Resource$Sites(this.context);
|
||||
this.violatingSites = new Resource$Violatingsites(this.context);
|
||||
}
|
||||
}
|
||||
abusiveexperiencereport_v1.Abusiveexperiencereport = Abusiveexperiencereport;
|
||||
class Resource$Sites {
|
||||
constructor(context) {
|
||||
this.context = context;
|
||||
}
|
||||
get(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback || {});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://abusiveexperiencereport.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: ['name'],
|
||||
pathParams: ['name'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
}
|
||||
abusiveexperiencereport_v1.Resource$Sites = Resource$Sites;
|
||||
class Resource$Violatingsites {
|
||||
constructor(context) {
|
||||
this.context = context;
|
||||
}
|
||||
list(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://abusiveexperiencereport.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/violatingSites').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
}
|
||||
abusiveexperiencereport_v1.Resource$Violatingsites = Resource$Violatingsites;
|
||||
})(abusiveexperiencereport_v1 = exports.abusiveexperiencereport_v1 || (exports.abusiveexperiencereport_v1 = {}));
|
||||
//# sourceMappingURL=v1.js.map
|
||||
10
node_modules/googleapis/build/src/apis/acceleratedmobilepageurl/index.d.ts
generated
vendored
Normal file
10
node_modules/googleapis/build/src/apis/acceleratedmobilepageurl/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
/*! THIS FILE IS AUTO-GENERATED */
|
||||
import { AuthPlus } from 'googleapis-common';
|
||||
import { acceleratedmobilepageurl_v1 } from './v1';
|
||||
export declare const VERSIONS: {
|
||||
v1: typeof acceleratedmobilepageurl_v1.Acceleratedmobilepageurl;
|
||||
};
|
||||
export declare function acceleratedmobilepageurl(version: 'v1'): acceleratedmobilepageurl_v1.Acceleratedmobilepageurl;
|
||||
export declare function acceleratedmobilepageurl(options: acceleratedmobilepageurl_v1.Options): acceleratedmobilepageurl_v1.Acceleratedmobilepageurl;
|
||||
declare const auth: AuthPlus;
|
||||
export { auth };
|
||||
27
node_modules/googleapis/build/src/apis/acceleratedmobilepageurl/index.js
generated
vendored
Normal file
27
node_modules/googleapis/build/src/apis/acceleratedmobilepageurl/index.js
generated
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
"use strict";
|
||||
// Copyright 2019 Google LLC
|
||||
// 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.
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
/*! THIS FILE IS AUTO-GENERATED */
|
||||
const googleapis_common_1 = require("googleapis-common");
|
||||
const v1_1 = require("./v1");
|
||||
exports.VERSIONS = {
|
||||
v1: v1_1.acceleratedmobilepageurl_v1.Acceleratedmobilepageurl,
|
||||
};
|
||||
function acceleratedmobilepageurl(versionOrOptions) {
|
||||
return googleapis_common_1.getAPI('acceleratedmobilepageurl', versionOrOptions, exports.VERSIONS, this);
|
||||
}
|
||||
exports.acceleratedmobilepageurl = acceleratedmobilepageurl;
|
||||
const auth = new googleapis_common_1.AuthPlus();
|
||||
exports.auth = auth;
|
||||
//# sourceMappingURL=index.js.map
|
||||
179
node_modules/googleapis/build/src/apis/acceleratedmobilepageurl/v1.d.ts
generated
vendored
Normal file
179
node_modules/googleapis/build/src/apis/acceleratedmobilepageurl/v1.d.ts
generated
vendored
Normal file
@@ -0,0 +1,179 @@
|
||||
/**
|
||||
* Copyright 2019 Google LLC
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
import { OAuth2Client, JWT, Compute, UserRefreshClient } from 'google-auth-library';
|
||||
import { GoogleConfigurable, MethodOptions, GlobalOptions, BodyResponseCallback, APIRequestContext } from 'googleapis-common';
|
||||
import { GaxiosPromise } from 'gaxios';
|
||||
export declare namespace acceleratedmobilepageurl_v1 {
|
||||
interface Options extends GlobalOptions {
|
||||
version: 'v1';
|
||||
}
|
||||
interface StandardParameters {
|
||||
/**
|
||||
* V1 error format.
|
||||
*/
|
||||
'$.xgafv'?: string;
|
||||
/**
|
||||
* OAuth access token.
|
||||
*/
|
||||
access_token?: string;
|
||||
/**
|
||||
* Data format for response.
|
||||
*/
|
||||
alt?: string;
|
||||
/**
|
||||
* JSONP
|
||||
*/
|
||||
callback?: string;
|
||||
/**
|
||||
* Selector specifying which fields to include in a partial response.
|
||||
*/
|
||||
fields?: string;
|
||||
/**
|
||||
* API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
|
||||
*/
|
||||
key?: string;
|
||||
/**
|
||||
* OAuth 2.0 token for the current user.
|
||||
*/
|
||||
oauth_token?: string;
|
||||
/**
|
||||
* Returns response with indentations and line breaks.
|
||||
*/
|
||||
prettyPrint?: boolean;
|
||||
/**
|
||||
* Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
*/
|
||||
quotaUser?: string;
|
||||
/**
|
||||
* Legacy upload protocol for media (e.g. "media", "multipart").
|
||||
*/
|
||||
uploadType?: string;
|
||||
/**
|
||||
* Upload protocol for media (e.g. "raw", "multipart").
|
||||
*/
|
||||
upload_protocol?: string;
|
||||
}
|
||||
/**
|
||||
* 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
|
||||
*/
|
||||
class Acceleratedmobilepageurl {
|
||||
context: APIRequestContext;
|
||||
ampUrls: Resource$Ampurls;
|
||||
constructor(options: GlobalOptions, google?: GoogleConfigurable);
|
||||
}
|
||||
/**
|
||||
* AMP URL response for a requested URL.
|
||||
*/
|
||||
interface Schema$AmpUrl {
|
||||
/**
|
||||
* The AMP URL pointing to the publisher's web server.
|
||||
*/
|
||||
ampUrl?: string;
|
||||
/**
|
||||
* The [AMP Cache URL](/amp/cache/overview#amp-cache-url-format) pointing to the cached document in the Google AMP Cache.
|
||||
*/
|
||||
cdnAmpUrl?: string;
|
||||
/**
|
||||
* The original non-AMP URL.
|
||||
*/
|
||||
originalUrl?: string;
|
||||
}
|
||||
/**
|
||||
* AMP URL Error resource for a requested URL that couldn't be found.
|
||||
*/
|
||||
interface Schema$AmpUrlError {
|
||||
/**
|
||||
* The error code of an API call.
|
||||
*/
|
||||
errorCode?: string;
|
||||
/**
|
||||
* An optional descriptive error message.
|
||||
*/
|
||||
errorMessage?: string;
|
||||
/**
|
||||
* The original non-AMP URL.
|
||||
*/
|
||||
originalUrl?: string;
|
||||
}
|
||||
/**
|
||||
* AMP URL request for a batch of URLs.
|
||||
*/
|
||||
interface Schema$BatchGetAmpUrlsRequest {
|
||||
/**
|
||||
* The lookup_strategy being requested.
|
||||
*/
|
||||
lookupStrategy?: string;
|
||||
/**
|
||||
* List of URLs to look up for the paired AMP URLs. The URLs are case-sensitive. Up to 50 URLs per lookup (see [Usage Limits](/amp/cache/reference/limits)).
|
||||
*/
|
||||
urls?: string[];
|
||||
}
|
||||
/**
|
||||
* Batch AMP URL response.
|
||||
*/
|
||||
interface Schema$BatchGetAmpUrlsResponse {
|
||||
/**
|
||||
* For each URL in BatchAmpUrlsRequest, the URL response. The response might not be in the same order as URLs in the batch request. If BatchAmpUrlsRequest contains duplicate URLs, AmpUrl is generated only once.
|
||||
*/
|
||||
ampUrls?: Schema$AmpUrl[];
|
||||
/**
|
||||
* The errors for requested URLs that have no AMP URL.
|
||||
*/
|
||||
urlErrors?: Schema$AmpUrlError[];
|
||||
}
|
||||
class Resource$Ampurls {
|
||||
context: APIRequestContext;
|
||||
constructor(context: APIRequestContext);
|
||||
/**
|
||||
* 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! ()
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {().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(params?: Params$Resource$Ampurls$Batchget, options?: MethodOptions): GaxiosPromise<Schema$BatchGetAmpUrlsResponse>;
|
||||
batchGet(params: Params$Resource$Ampurls$Batchget, options: MethodOptions | BodyResponseCallback<Schema$BatchGetAmpUrlsResponse>, callback: BodyResponseCallback<Schema$BatchGetAmpUrlsResponse>): void;
|
||||
batchGet(params: Params$Resource$Ampurls$Batchget, callback: BodyResponseCallback<Schema$BatchGetAmpUrlsResponse>): void;
|
||||
batchGet(callback: BodyResponseCallback<Schema$BatchGetAmpUrlsResponse>): void;
|
||||
}
|
||||
interface Params$Resource$Ampurls$Batchget extends StandardParameters {
|
||||
/**
|
||||
* Auth client or API Key for the request
|
||||
*/
|
||||
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
|
||||
/**
|
||||
* Request body metadata
|
||||
*/
|
||||
requestBody?: Schema$BatchGetAmpUrlsRequest;
|
||||
}
|
||||
}
|
||||
88
node_modules/googleapis/build/src/apis/acceleratedmobilepageurl/v1.js
generated
vendored
Normal file
88
node_modules/googleapis/build/src/apis/acceleratedmobilepageurl/v1.js
generated
vendored
Normal file
@@ -0,0 +1,88 @@
|
||||
"use strict";
|
||||
/**
|
||||
* Copyright 2019 Google LLC
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const googleapis_common_1 = require("googleapis-common");
|
||||
// tslint:disable: no-any
|
||||
// tslint:disable: class-name
|
||||
// tslint:disable: variable-name
|
||||
// tslint:disable: jsdoc-format
|
||||
// tslint:disable: no-namespace
|
||||
var acceleratedmobilepageurl_v1;
|
||||
(function (acceleratedmobilepageurl_v1) {
|
||||
/**
|
||||
* 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
|
||||
*/
|
||||
class Acceleratedmobilepageurl {
|
||||
constructor(options, google) {
|
||||
this.context = {
|
||||
_options: options || {},
|
||||
google,
|
||||
};
|
||||
this.ampUrls = new Resource$Ampurls(this.context);
|
||||
}
|
||||
}
|
||||
acceleratedmobilepageurl_v1.Acceleratedmobilepageurl = Acceleratedmobilepageurl;
|
||||
class Resource$Ampurls {
|
||||
constructor(context) {
|
||||
this.context = context;
|
||||
}
|
||||
batchGet(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback || {});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
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,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
}
|
||||
acceleratedmobilepageurl_v1.Resource$Ampurls = Resource$Ampurls;
|
||||
})(acceleratedmobilepageurl_v1 = exports.acceleratedmobilepageurl_v1 || (exports.acceleratedmobilepageurl_v1 = {}));
|
||||
//# sourceMappingURL=v1.js.map
|
||||
10
node_modules/googleapis/build/src/apis/accessapproval/index.d.ts
generated
vendored
Normal file
10
node_modules/googleapis/build/src/apis/accessapproval/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
/*! THIS FILE IS AUTO-GENERATED */
|
||||
import { AuthPlus } from 'googleapis-common';
|
||||
import { accessapproval_v1beta1 } from './v1beta1';
|
||||
export declare const VERSIONS: {
|
||||
v1beta1: typeof accessapproval_v1beta1.Accessapproval;
|
||||
};
|
||||
export declare function accessapproval(version: 'v1beta1'): accessapproval_v1beta1.Accessapproval;
|
||||
export declare function accessapproval(options: accessapproval_v1beta1.Options): accessapproval_v1beta1.Accessapproval;
|
||||
declare const auth: AuthPlus;
|
||||
export { auth };
|
||||
27
node_modules/googleapis/build/src/apis/accessapproval/index.js
generated
vendored
Normal file
27
node_modules/googleapis/build/src/apis/accessapproval/index.js
generated
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
"use strict";
|
||||
// Copyright 2019 Google LLC
|
||||
// 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.
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
/*! THIS FILE IS AUTO-GENERATED */
|
||||
const googleapis_common_1 = require("googleapis-common");
|
||||
const v1beta1_1 = require("./v1beta1");
|
||||
exports.VERSIONS = {
|
||||
v1beta1: v1beta1_1.accessapproval_v1beta1.Accessapproval,
|
||||
};
|
||||
function accessapproval(versionOrOptions) {
|
||||
return googleapis_common_1.getAPI('accessapproval', versionOrOptions, exports.VERSIONS, this);
|
||||
}
|
||||
exports.accessapproval = accessapproval;
|
||||
const auth = new googleapis_common_1.AuthPlus();
|
||||
exports.auth = auth;
|
||||
//# sourceMappingURL=index.js.map
|
||||
811
node_modules/googleapis/build/src/apis/accessapproval/v1beta1.d.ts
generated
vendored
Normal file
811
node_modules/googleapis/build/src/apis/accessapproval/v1beta1.d.ts
generated
vendored
Normal file
@@ -0,0 +1,811 @@
|
||||
/**
|
||||
* Copyright 2019 Google LLC
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
import { OAuth2Client, JWT, Compute, UserRefreshClient } from 'google-auth-library';
|
||||
import { GoogleConfigurable, MethodOptions, GlobalOptions, BodyResponseCallback, APIRequestContext } from 'googleapis-common';
|
||||
import { GaxiosPromise } from 'gaxios';
|
||||
export declare namespace accessapproval_v1beta1 {
|
||||
interface Options extends GlobalOptions {
|
||||
version: 'v1beta1';
|
||||
}
|
||||
interface StandardParameters {
|
||||
/**
|
||||
* V1 error format.
|
||||
*/
|
||||
'$.xgafv'?: string;
|
||||
/**
|
||||
* OAuth access token.
|
||||
*/
|
||||
access_token?: string;
|
||||
/**
|
||||
* Data format for response.
|
||||
*/
|
||||
alt?: string;
|
||||
/**
|
||||
* JSONP
|
||||
*/
|
||||
callback?: string;
|
||||
/**
|
||||
* Selector specifying which fields to include in a partial response.
|
||||
*/
|
||||
fields?: string;
|
||||
/**
|
||||
* API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
|
||||
*/
|
||||
key?: string;
|
||||
/**
|
||||
* OAuth 2.0 token for the current user.
|
||||
*/
|
||||
oauth_token?: string;
|
||||
/**
|
||||
* Returns response with indentations and line breaks.
|
||||
*/
|
||||
prettyPrint?: boolean;
|
||||
/**
|
||||
* Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
*/
|
||||
quotaUser?: string;
|
||||
/**
|
||||
* Legacy upload protocol for media (e.g. "media", "multipart").
|
||||
*/
|
||||
uploadType?: string;
|
||||
/**
|
||||
* Upload protocol for media (e.g. "raw", "multipart").
|
||||
*/
|
||||
upload_protocol?: string;
|
||||
}
|
||||
/**
|
||||
* Access Approval API
|
||||
*
|
||||
* An API for controlling access to data by Google personnel.
|
||||
*
|
||||
* @example
|
||||
* const {google} = require('googleapis');
|
||||
* const accessapproval = google.accessapproval('v1beta1');
|
||||
*
|
||||
* @namespace accessapproval
|
||||
* @type {Function}
|
||||
* @version v1beta1
|
||||
* @variation v1beta1
|
||||
* @param {object=} options Options for Accessapproval
|
||||
*/
|
||||
class Accessapproval {
|
||||
context: APIRequestContext;
|
||||
folders: Resource$Folders;
|
||||
organizations: Resource$Organizations;
|
||||
projects: Resource$Projects;
|
||||
constructor(options: GlobalOptions, google?: GoogleConfigurable);
|
||||
}
|
||||
/**
|
||||
* Settings on a Project/Folder/Organization related to Access Approval.
|
||||
*/
|
||||
interface Schema$AccessApprovalSettings {
|
||||
/**
|
||||
* The resource name of the settings. Format is one of: <ol> <li>"projects/{project_id}/accessApprovalSettings"</li> <li>"folders/{folder_id}/accessApprovalSettings"</li> <li>"organizations/{organization_id}/accessApprovalSettings"</li> <ol>
|
||||
*/
|
||||
name?: string;
|
||||
/**
|
||||
* A list of email addresses to which notifications relating to approval requests should be sent. Notifications relating to a resource will be sent to all emails in the settings of ancestor resources of that resource.
|
||||
*/
|
||||
notificationEmails?: string[];
|
||||
}
|
||||
/**
|
||||
* Home office and physical location of the principal.
|
||||
*/
|
||||
interface Schema$AccessLocations {
|
||||
/**
|
||||
* The "home office" location of the principal. A two-letter country code (ISO 3166-1 alpha-2), such as "US", "DE" or "GB" or a region code. In some limited situations Google systems may refer refer to a region code instead of a country code. Possible Region Codes: <ol> <li>ASI: Asia</li> <li>EUR: Europe</li> <li>OCE: Oceania</li> <li>AFR: Africa</li> <li>NAM: North America</li> <li>SAM: South America</li> <li>ANT: Antarctica</li> <li>ANY: Any location</li> </ol>
|
||||
*/
|
||||
principalOfficeCountry?: string;
|
||||
/**
|
||||
* Physical location of the principal at the time of the access. A two-letter country code (ISO 3166-1 alpha-2), such as "US", "DE" or "GB" or a region code. In some limited situations Google systems may refer refer to a region code instead of a country code. Possible Region Codes: <ol> <li>ASI: Asia</li> <li>EUR: Europe</li> <li>OCE: Oceania</li> <li>AFR: Africa</li> <li>NAM: North America</li> <li>SAM: South America</li> <li>ANT: Antarctica</li> <li>ANY: Any location</li> </ol>
|
||||
*/
|
||||
principalPhysicalLocationCountry?: string;
|
||||
}
|
||||
interface Schema$AccessReason {
|
||||
/**
|
||||
* More detail about certain reason types. See comments for each type above.
|
||||
*/
|
||||
detail?: string;
|
||||
/**
|
||||
* Type of access justification.
|
||||
*/
|
||||
type?: string;
|
||||
}
|
||||
/**
|
||||
* A request for the customer to approve access to a resource.
|
||||
*/
|
||||
interface Schema$ApprovalRequest {
|
||||
/**
|
||||
* Access was approved.
|
||||
*/
|
||||
approve?: Schema$ApproveDecision;
|
||||
/**
|
||||
* The request was dismissed.
|
||||
*/
|
||||
dismiss?: Schema$DismissDecision;
|
||||
/**
|
||||
* The resource name of the request. Format is "{projects|folders|organizations}/{id}/approvalRequests/{approval_request_id}".
|
||||
*/
|
||||
name?: string;
|
||||
/**
|
||||
* The requested expiration for the approval. If the request is approved, access will be granted from the time of approval until the expiration time.
|
||||
*/
|
||||
requestedExpiration?: string;
|
||||
/**
|
||||
* The locations for which approval is being requested.
|
||||
*/
|
||||
requestedLocations?: Schema$AccessLocations;
|
||||
/**
|
||||
* The justification for which approval is being requested.
|
||||
*/
|
||||
requestedReason?: Schema$AccessReason;
|
||||
/**
|
||||
* The resource for which approval is being requested. The format of the resource name is defined at https://cloud.google.com/apis/design/resource_names. The resource name here may either be a "full" resource name (e.g. "//library.googleapis.com/shelves/shelf1/books/book2") or a "relative" resource name (e.g. "shelves/shelf1/books/book2") as described in the resource name specification.
|
||||
*/
|
||||
requestedResourceName?: string;
|
||||
/**
|
||||
* Properties related to the resource represented by requested_resource_name.
|
||||
*/
|
||||
requestedResourceProperties?: Schema$ResourceProperties;
|
||||
/**
|
||||
* The time at which approval was requested.
|
||||
*/
|
||||
requestTime?: string;
|
||||
}
|
||||
/**
|
||||
* Request to approve an ApprovalRequest.
|
||||
*/
|
||||
interface Schema$ApproveApprovalRequestMessage {
|
||||
/**
|
||||
* The expiration time of this approval.
|
||||
*/
|
||||
expireTime?: string;
|
||||
}
|
||||
/**
|
||||
* A decision that has been made to approve access to a resource.
|
||||
*/
|
||||
interface Schema$ApproveDecision {
|
||||
/**
|
||||
* The time at which approval was granted.
|
||||
*/
|
||||
approveTime?: string;
|
||||
/**
|
||||
* The time at which the approval expires.
|
||||
*/
|
||||
expireTime?: string;
|
||||
}
|
||||
/**
|
||||
* Request to dismiss an approval request.
|
||||
*/
|
||||
interface Schema$DismissApprovalRequestMessage {
|
||||
}
|
||||
/**
|
||||
* A decision that has been made to dismiss an approval request.
|
||||
*/
|
||||
interface Schema$DismissDecision {
|
||||
/**
|
||||
* The time at which the approval request was dismissed.
|
||||
*/
|
||||
dismissTime?: string;
|
||||
}
|
||||
/**
|
||||
* Response to listing of ApprovalRequest objects.
|
||||
*/
|
||||
interface Schema$ListApprovalRequestsResponse {
|
||||
/**
|
||||
* Approval request details.
|
||||
*/
|
||||
approvalRequests?: Schema$ApprovalRequest[];
|
||||
/**
|
||||
* Token to retrieve the next page of results, or empty if there are no more.
|
||||
*/
|
||||
nextPageToken?: string;
|
||||
}
|
||||
/**
|
||||
* The properties associated with the resource of the request.
|
||||
*/
|
||||
interface Schema$ResourceProperties {
|
||||
/**
|
||||
* Whether an approval will exclude the descendants of the resource being requested.
|
||||
*/
|
||||
excludesDescendants?: boolean;
|
||||
}
|
||||
class Resource$Folders {
|
||||
context: APIRequestContext;
|
||||
approvalRequests: Resource$Folders$Approvalrequests;
|
||||
constructor(context: APIRequestContext);
|
||||
/**
|
||||
* accessapproval.folders.getAccessApprovalSettings
|
||||
* @desc Gets the settings associated with a project, folder, or organization.
|
||||
* @alias accessapproval.folders.getAccessApprovalSettings
|
||||
* @memberOf! ()
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.name Name of the AccessApprovalSettings 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
|
||||
*/
|
||||
getAccessApprovalSettings(params?: Params$Resource$Folders$Getaccessapprovalsettings, options?: MethodOptions): GaxiosPromise<Schema$AccessApprovalSettings>;
|
||||
getAccessApprovalSettings(params: Params$Resource$Folders$Getaccessapprovalsettings, options: MethodOptions | BodyResponseCallback<Schema$AccessApprovalSettings>, callback: BodyResponseCallback<Schema$AccessApprovalSettings>): void;
|
||||
getAccessApprovalSettings(params: Params$Resource$Folders$Getaccessapprovalsettings, callback: BodyResponseCallback<Schema$AccessApprovalSettings>): void;
|
||||
getAccessApprovalSettings(callback: BodyResponseCallback<Schema$AccessApprovalSettings>): void;
|
||||
/**
|
||||
* accessapproval.folders.updateAccessApprovalSettings
|
||||
* @desc Updates the settings associated with a project, folder, or organization. Completely replaces the existing settings.
|
||||
* @alias accessapproval.folders.updateAccessApprovalSettings
|
||||
* @memberOf! ()
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.name The resource name of the settings. Format is one of: <ol> <li>"projects/{project_id}/accessApprovalSettings"</li> <li>"folders/{folder_id}/accessApprovalSettings"</li> <li>"organizations/{organization_id}/accessApprovalSettings"</li> <ol>
|
||||
* @param {().AccessApprovalSettings} 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
|
||||
*/
|
||||
updateAccessApprovalSettings(params?: Params$Resource$Folders$Updateaccessapprovalsettings, options?: MethodOptions): GaxiosPromise<Schema$AccessApprovalSettings>;
|
||||
updateAccessApprovalSettings(params: Params$Resource$Folders$Updateaccessapprovalsettings, options: MethodOptions | BodyResponseCallback<Schema$AccessApprovalSettings>, callback: BodyResponseCallback<Schema$AccessApprovalSettings>): void;
|
||||
updateAccessApprovalSettings(params: Params$Resource$Folders$Updateaccessapprovalsettings, callback: BodyResponseCallback<Schema$AccessApprovalSettings>): void;
|
||||
updateAccessApprovalSettings(callback: BodyResponseCallback<Schema$AccessApprovalSettings>): void;
|
||||
}
|
||||
interface Params$Resource$Folders$Getaccessapprovalsettings extends StandardParameters {
|
||||
/**
|
||||
* Auth client or API Key for the request
|
||||
*/
|
||||
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
|
||||
/**
|
||||
* Name of the AccessApprovalSettings to retrieve.
|
||||
*/
|
||||
name?: string;
|
||||
}
|
||||
interface Params$Resource$Folders$Updateaccessapprovalsettings extends StandardParameters {
|
||||
/**
|
||||
* Auth client or API Key for the request
|
||||
*/
|
||||
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
|
||||
/**
|
||||
* The resource name of the settings. Format is one of: <ol> <li>"projects/{project_id}/accessApprovalSettings"</li> <li>"folders/{folder_id}/accessApprovalSettings"</li> <li>"organizations/{organization_id}/accessApprovalSettings"</li> <ol>
|
||||
*/
|
||||
name?: string;
|
||||
/**
|
||||
* Request body metadata
|
||||
*/
|
||||
requestBody?: Schema$AccessApprovalSettings;
|
||||
}
|
||||
class Resource$Folders$Approvalrequests {
|
||||
context: APIRequestContext;
|
||||
constructor(context: APIRequestContext);
|
||||
/**
|
||||
* accessapproval.folders.approvalRequests.approve
|
||||
* @desc Approves a request and returns the updated ApprovalRequest. Returns NOT_FOUND if the request does not exist. Returns FAILED_PRECONDITION if the request exists but is not in a pending state.
|
||||
* @alias accessapproval.folders.approvalRequests.approve
|
||||
* @memberOf! ()
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.name Name of the approval request to approve.
|
||||
* @param {().ApproveApprovalRequestMessage} 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
|
||||
*/
|
||||
approve(params?: Params$Resource$Folders$Approvalrequests$Approve, options?: MethodOptions): GaxiosPromise<Schema$ApprovalRequest>;
|
||||
approve(params: Params$Resource$Folders$Approvalrequests$Approve, options: MethodOptions | BodyResponseCallback<Schema$ApprovalRequest>, callback: BodyResponseCallback<Schema$ApprovalRequest>): void;
|
||||
approve(params: Params$Resource$Folders$Approvalrequests$Approve, callback: BodyResponseCallback<Schema$ApprovalRequest>): void;
|
||||
approve(callback: BodyResponseCallback<Schema$ApprovalRequest>): void;
|
||||
/**
|
||||
* accessapproval.folders.approvalRequests.dismiss
|
||||
* @desc Dismisses a request. Returns the updated ApprovalRequest. NOTE: This does not deny access to the resource if another request has been made and approved. It is equivalent in effect to ignoring the request altogether. Returns NOT_FOUND if the request does not exist. Returns FAILED_PRECONDITION if the request exists but is not in a pending state.
|
||||
* @alias accessapproval.folders.approvalRequests.dismiss
|
||||
* @memberOf! ()
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.name Name of the ApprovalRequest to dismiss.
|
||||
* @param {().DismissApprovalRequestMessage} 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
|
||||
*/
|
||||
dismiss(params?: Params$Resource$Folders$Approvalrequests$Dismiss, options?: MethodOptions): GaxiosPromise<Schema$ApprovalRequest>;
|
||||
dismiss(params: Params$Resource$Folders$Approvalrequests$Dismiss, options: MethodOptions | BodyResponseCallback<Schema$ApprovalRequest>, callback: BodyResponseCallback<Schema$ApprovalRequest>): void;
|
||||
dismiss(params: Params$Resource$Folders$Approvalrequests$Dismiss, callback: BodyResponseCallback<Schema$ApprovalRequest>): void;
|
||||
dismiss(callback: BodyResponseCallback<Schema$ApprovalRequest>): void;
|
||||
/**
|
||||
* accessapproval.folders.approvalRequests.get
|
||||
* @desc Gets an approval request. Returns NOT_FOUND if the request does not exist.
|
||||
* @alias accessapproval.folders.approvalRequests.get
|
||||
* @memberOf! ()
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.name Name of the approval request 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(params?: Params$Resource$Folders$Approvalrequests$Get, options?: MethodOptions): GaxiosPromise<Schema$ApprovalRequest>;
|
||||
get(params: Params$Resource$Folders$Approvalrequests$Get, options: MethodOptions | BodyResponseCallback<Schema$ApprovalRequest>, callback: BodyResponseCallback<Schema$ApprovalRequest>): void;
|
||||
get(params: Params$Resource$Folders$Approvalrequests$Get, callback: BodyResponseCallback<Schema$ApprovalRequest>): void;
|
||||
get(callback: BodyResponseCallback<Schema$ApprovalRequest>): void;
|
||||
/**
|
||||
* accessapproval.folders.approvalRequests.list
|
||||
* @desc Lists approval requests associated with a project, folder, or organization. Approval requests can be filtered by state (pending, active, dismissed). The order is reverse chronological.
|
||||
* @alias accessapproval.folders.approvalRequests.list
|
||||
* @memberOf! ()
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string=} params.filter A filter on the type of approval requests to retrieve. Must be one of the following values: <ol> <li>[not set]: Requests that are pending or have active approvals.</li> <li>ALL: All requests.</li> <li>PENDING: Only pending requests.</li> <li>ACTIVE: Only active (i.e. currently approved) requests.</li> <li>DISMISSED: Only dismissed (including expired) requests.</li> </ol>
|
||||
* @param {integer=} params.pageSize Requested page size.
|
||||
* @param {string=} params.pageToken A token identifying the page of results to return.
|
||||
* @param {string} params.parent The parent resource. This may be "projects/{project_id}", "folders/{folder_id}", or "organizations/{organization_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
|
||||
*/
|
||||
list(params?: Params$Resource$Folders$Approvalrequests$List, options?: MethodOptions): GaxiosPromise<Schema$ListApprovalRequestsResponse>;
|
||||
list(params: Params$Resource$Folders$Approvalrequests$List, options: MethodOptions | BodyResponseCallback<Schema$ListApprovalRequestsResponse>, callback: BodyResponseCallback<Schema$ListApprovalRequestsResponse>): void;
|
||||
list(params: Params$Resource$Folders$Approvalrequests$List, callback: BodyResponseCallback<Schema$ListApprovalRequestsResponse>): void;
|
||||
list(callback: BodyResponseCallback<Schema$ListApprovalRequestsResponse>): void;
|
||||
}
|
||||
interface Params$Resource$Folders$Approvalrequests$Approve extends StandardParameters {
|
||||
/**
|
||||
* Auth client or API Key for the request
|
||||
*/
|
||||
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
|
||||
/**
|
||||
* Name of the approval request to approve.
|
||||
*/
|
||||
name?: string;
|
||||
/**
|
||||
* Request body metadata
|
||||
*/
|
||||
requestBody?: Schema$ApproveApprovalRequestMessage;
|
||||
}
|
||||
interface Params$Resource$Folders$Approvalrequests$Dismiss extends StandardParameters {
|
||||
/**
|
||||
* Auth client or API Key for the request
|
||||
*/
|
||||
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
|
||||
/**
|
||||
* Name of the ApprovalRequest to dismiss.
|
||||
*/
|
||||
name?: string;
|
||||
/**
|
||||
* Request body metadata
|
||||
*/
|
||||
requestBody?: Schema$DismissApprovalRequestMessage;
|
||||
}
|
||||
interface Params$Resource$Folders$Approvalrequests$Get extends StandardParameters {
|
||||
/**
|
||||
* Auth client or API Key for the request
|
||||
*/
|
||||
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
|
||||
/**
|
||||
* Name of the approval request to retrieve.
|
||||
*/
|
||||
name?: string;
|
||||
}
|
||||
interface Params$Resource$Folders$Approvalrequests$List extends StandardParameters {
|
||||
/**
|
||||
* Auth client or API Key for the request
|
||||
*/
|
||||
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
|
||||
/**
|
||||
* A filter on the type of approval requests to retrieve. Must be one of the following values: <ol> <li>[not set]: Requests that are pending or have active approvals.</li> <li>ALL: All requests.</li> <li>PENDING: Only pending requests.</li> <li>ACTIVE: Only active (i.e. currently approved) requests.</li> <li>DISMISSED: Only dismissed (including expired) requests.</li> </ol>
|
||||
*/
|
||||
filter?: string;
|
||||
/**
|
||||
* Requested page size.
|
||||
*/
|
||||
pageSize?: number;
|
||||
/**
|
||||
* A token identifying the page of results to return.
|
||||
*/
|
||||
pageToken?: string;
|
||||
/**
|
||||
* The parent resource. This may be "projects/{project_id}", "folders/{folder_id}", or "organizations/{organization_id}".
|
||||
*/
|
||||
parent?: string;
|
||||
}
|
||||
class Resource$Organizations {
|
||||
context: APIRequestContext;
|
||||
approvalRequests: Resource$Organizations$Approvalrequests;
|
||||
constructor(context: APIRequestContext);
|
||||
/**
|
||||
* accessapproval.organizations.getAccessApprovalSettings
|
||||
* @desc Gets the settings associated with a project, folder, or organization.
|
||||
* @alias accessapproval.organizations.getAccessApprovalSettings
|
||||
* @memberOf! ()
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.name Name of the AccessApprovalSettings 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
|
||||
*/
|
||||
getAccessApprovalSettings(params?: Params$Resource$Organizations$Getaccessapprovalsettings, options?: MethodOptions): GaxiosPromise<Schema$AccessApprovalSettings>;
|
||||
getAccessApprovalSettings(params: Params$Resource$Organizations$Getaccessapprovalsettings, options: MethodOptions | BodyResponseCallback<Schema$AccessApprovalSettings>, callback: BodyResponseCallback<Schema$AccessApprovalSettings>): void;
|
||||
getAccessApprovalSettings(params: Params$Resource$Organizations$Getaccessapprovalsettings, callback: BodyResponseCallback<Schema$AccessApprovalSettings>): void;
|
||||
getAccessApprovalSettings(callback: BodyResponseCallback<Schema$AccessApprovalSettings>): void;
|
||||
/**
|
||||
* accessapproval.organizations.updateAccessApprovalSettings
|
||||
* @desc Updates the settings associated with a project, folder, or organization. Completely replaces the existing settings.
|
||||
* @alias accessapproval.organizations.updateAccessApprovalSettings
|
||||
* @memberOf! ()
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.name The resource name of the settings. Format is one of: <ol> <li>"projects/{project_id}/accessApprovalSettings"</li> <li>"folders/{folder_id}/accessApprovalSettings"</li> <li>"organizations/{organization_id}/accessApprovalSettings"</li> <ol>
|
||||
* @param {().AccessApprovalSettings} 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
|
||||
*/
|
||||
updateAccessApprovalSettings(params?: Params$Resource$Organizations$Updateaccessapprovalsettings, options?: MethodOptions): GaxiosPromise<Schema$AccessApprovalSettings>;
|
||||
updateAccessApprovalSettings(params: Params$Resource$Organizations$Updateaccessapprovalsettings, options: MethodOptions | BodyResponseCallback<Schema$AccessApprovalSettings>, callback: BodyResponseCallback<Schema$AccessApprovalSettings>): void;
|
||||
updateAccessApprovalSettings(params: Params$Resource$Organizations$Updateaccessapprovalsettings, callback: BodyResponseCallback<Schema$AccessApprovalSettings>): void;
|
||||
updateAccessApprovalSettings(callback: BodyResponseCallback<Schema$AccessApprovalSettings>): void;
|
||||
}
|
||||
interface Params$Resource$Organizations$Getaccessapprovalsettings extends StandardParameters {
|
||||
/**
|
||||
* Auth client or API Key for the request
|
||||
*/
|
||||
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
|
||||
/**
|
||||
* Name of the AccessApprovalSettings to retrieve.
|
||||
*/
|
||||
name?: string;
|
||||
}
|
||||
interface Params$Resource$Organizations$Updateaccessapprovalsettings extends StandardParameters {
|
||||
/**
|
||||
* Auth client or API Key for the request
|
||||
*/
|
||||
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
|
||||
/**
|
||||
* The resource name of the settings. Format is one of: <ol> <li>"projects/{project_id}/accessApprovalSettings"</li> <li>"folders/{folder_id}/accessApprovalSettings"</li> <li>"organizations/{organization_id}/accessApprovalSettings"</li> <ol>
|
||||
*/
|
||||
name?: string;
|
||||
/**
|
||||
* Request body metadata
|
||||
*/
|
||||
requestBody?: Schema$AccessApprovalSettings;
|
||||
}
|
||||
class Resource$Organizations$Approvalrequests {
|
||||
context: APIRequestContext;
|
||||
constructor(context: APIRequestContext);
|
||||
/**
|
||||
* accessapproval.organizations.approvalRequests.approve
|
||||
* @desc Approves a request and returns the updated ApprovalRequest. Returns NOT_FOUND if the request does not exist. Returns FAILED_PRECONDITION if the request exists but is not in a pending state.
|
||||
* @alias accessapproval.organizations.approvalRequests.approve
|
||||
* @memberOf! ()
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.name Name of the approval request to approve.
|
||||
* @param {().ApproveApprovalRequestMessage} 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
|
||||
*/
|
||||
approve(params?: Params$Resource$Organizations$Approvalrequests$Approve, options?: MethodOptions): GaxiosPromise<Schema$ApprovalRequest>;
|
||||
approve(params: Params$Resource$Organizations$Approvalrequests$Approve, options: MethodOptions | BodyResponseCallback<Schema$ApprovalRequest>, callback: BodyResponseCallback<Schema$ApprovalRequest>): void;
|
||||
approve(params: Params$Resource$Organizations$Approvalrequests$Approve, callback: BodyResponseCallback<Schema$ApprovalRequest>): void;
|
||||
approve(callback: BodyResponseCallback<Schema$ApprovalRequest>): void;
|
||||
/**
|
||||
* accessapproval.organizations.approvalRequests.dismiss
|
||||
* @desc Dismisses a request. Returns the updated ApprovalRequest. NOTE: This does not deny access to the resource if another request has been made and approved. It is equivalent in effect to ignoring the request altogether. Returns NOT_FOUND if the request does not exist. Returns FAILED_PRECONDITION if the request exists but is not in a pending state.
|
||||
* @alias accessapproval.organizations.approvalRequests.dismiss
|
||||
* @memberOf! ()
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.name Name of the ApprovalRequest to dismiss.
|
||||
* @param {().DismissApprovalRequestMessage} 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
|
||||
*/
|
||||
dismiss(params?: Params$Resource$Organizations$Approvalrequests$Dismiss, options?: MethodOptions): GaxiosPromise<Schema$ApprovalRequest>;
|
||||
dismiss(params: Params$Resource$Organizations$Approvalrequests$Dismiss, options: MethodOptions | BodyResponseCallback<Schema$ApprovalRequest>, callback: BodyResponseCallback<Schema$ApprovalRequest>): void;
|
||||
dismiss(params: Params$Resource$Organizations$Approvalrequests$Dismiss, callback: BodyResponseCallback<Schema$ApprovalRequest>): void;
|
||||
dismiss(callback: BodyResponseCallback<Schema$ApprovalRequest>): void;
|
||||
/**
|
||||
* accessapproval.organizations.approvalRequests.get
|
||||
* @desc Gets an approval request. Returns NOT_FOUND if the request does not exist.
|
||||
* @alias accessapproval.organizations.approvalRequests.get
|
||||
* @memberOf! ()
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.name Name of the approval request 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(params?: Params$Resource$Organizations$Approvalrequests$Get, options?: MethodOptions): GaxiosPromise<Schema$ApprovalRequest>;
|
||||
get(params: Params$Resource$Organizations$Approvalrequests$Get, options: MethodOptions | BodyResponseCallback<Schema$ApprovalRequest>, callback: BodyResponseCallback<Schema$ApprovalRequest>): void;
|
||||
get(params: Params$Resource$Organizations$Approvalrequests$Get, callback: BodyResponseCallback<Schema$ApprovalRequest>): void;
|
||||
get(callback: BodyResponseCallback<Schema$ApprovalRequest>): void;
|
||||
/**
|
||||
* accessapproval.organizations.approvalRequests.list
|
||||
* @desc Lists approval requests associated with a project, folder, or organization. Approval requests can be filtered by state (pending, active, dismissed). The order is reverse chronological.
|
||||
* @alias accessapproval.organizations.approvalRequests.list
|
||||
* @memberOf! ()
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string=} params.filter A filter on the type of approval requests to retrieve. Must be one of the following values: <ol> <li>[not set]: Requests that are pending or have active approvals.</li> <li>ALL: All requests.</li> <li>PENDING: Only pending requests.</li> <li>ACTIVE: Only active (i.e. currently approved) requests.</li> <li>DISMISSED: Only dismissed (including expired) requests.</li> </ol>
|
||||
* @param {integer=} params.pageSize Requested page size.
|
||||
* @param {string=} params.pageToken A token identifying the page of results to return.
|
||||
* @param {string} params.parent The parent resource. This may be "projects/{project_id}", "folders/{folder_id}", or "organizations/{organization_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
|
||||
*/
|
||||
list(params?: Params$Resource$Organizations$Approvalrequests$List, options?: MethodOptions): GaxiosPromise<Schema$ListApprovalRequestsResponse>;
|
||||
list(params: Params$Resource$Organizations$Approvalrequests$List, options: MethodOptions | BodyResponseCallback<Schema$ListApprovalRequestsResponse>, callback: BodyResponseCallback<Schema$ListApprovalRequestsResponse>): void;
|
||||
list(params: Params$Resource$Organizations$Approvalrequests$List, callback: BodyResponseCallback<Schema$ListApprovalRequestsResponse>): void;
|
||||
list(callback: BodyResponseCallback<Schema$ListApprovalRequestsResponse>): void;
|
||||
}
|
||||
interface Params$Resource$Organizations$Approvalrequests$Approve extends StandardParameters {
|
||||
/**
|
||||
* Auth client or API Key for the request
|
||||
*/
|
||||
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
|
||||
/**
|
||||
* Name of the approval request to approve.
|
||||
*/
|
||||
name?: string;
|
||||
/**
|
||||
* Request body metadata
|
||||
*/
|
||||
requestBody?: Schema$ApproveApprovalRequestMessage;
|
||||
}
|
||||
interface Params$Resource$Organizations$Approvalrequests$Dismiss extends StandardParameters {
|
||||
/**
|
||||
* Auth client or API Key for the request
|
||||
*/
|
||||
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
|
||||
/**
|
||||
* Name of the ApprovalRequest to dismiss.
|
||||
*/
|
||||
name?: string;
|
||||
/**
|
||||
* Request body metadata
|
||||
*/
|
||||
requestBody?: Schema$DismissApprovalRequestMessage;
|
||||
}
|
||||
interface Params$Resource$Organizations$Approvalrequests$Get extends StandardParameters {
|
||||
/**
|
||||
* Auth client or API Key for the request
|
||||
*/
|
||||
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
|
||||
/**
|
||||
* Name of the approval request to retrieve.
|
||||
*/
|
||||
name?: string;
|
||||
}
|
||||
interface Params$Resource$Organizations$Approvalrequests$List extends StandardParameters {
|
||||
/**
|
||||
* Auth client or API Key for the request
|
||||
*/
|
||||
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
|
||||
/**
|
||||
* A filter on the type of approval requests to retrieve. Must be one of the following values: <ol> <li>[not set]: Requests that are pending or have active approvals.</li> <li>ALL: All requests.</li> <li>PENDING: Only pending requests.</li> <li>ACTIVE: Only active (i.e. currently approved) requests.</li> <li>DISMISSED: Only dismissed (including expired) requests.</li> </ol>
|
||||
*/
|
||||
filter?: string;
|
||||
/**
|
||||
* Requested page size.
|
||||
*/
|
||||
pageSize?: number;
|
||||
/**
|
||||
* A token identifying the page of results to return.
|
||||
*/
|
||||
pageToken?: string;
|
||||
/**
|
||||
* The parent resource. This may be "projects/{project_id}", "folders/{folder_id}", or "organizations/{organization_id}".
|
||||
*/
|
||||
parent?: string;
|
||||
}
|
||||
class Resource$Projects {
|
||||
context: APIRequestContext;
|
||||
approvalRequests: Resource$Projects$Approvalrequests;
|
||||
constructor(context: APIRequestContext);
|
||||
/**
|
||||
* accessapproval.projects.getAccessApprovalSettings
|
||||
* @desc Gets the settings associated with a project, folder, or organization.
|
||||
* @alias accessapproval.projects.getAccessApprovalSettings
|
||||
* @memberOf! ()
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.name Name of the AccessApprovalSettings 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
|
||||
*/
|
||||
getAccessApprovalSettings(params?: Params$Resource$Projects$Getaccessapprovalsettings, options?: MethodOptions): GaxiosPromise<Schema$AccessApprovalSettings>;
|
||||
getAccessApprovalSettings(params: Params$Resource$Projects$Getaccessapprovalsettings, options: MethodOptions | BodyResponseCallback<Schema$AccessApprovalSettings>, callback: BodyResponseCallback<Schema$AccessApprovalSettings>): void;
|
||||
getAccessApprovalSettings(params: Params$Resource$Projects$Getaccessapprovalsettings, callback: BodyResponseCallback<Schema$AccessApprovalSettings>): void;
|
||||
getAccessApprovalSettings(callback: BodyResponseCallback<Schema$AccessApprovalSettings>): void;
|
||||
/**
|
||||
* accessapproval.projects.updateAccessApprovalSettings
|
||||
* @desc Updates the settings associated with a project, folder, or organization. Completely replaces the existing settings.
|
||||
* @alias accessapproval.projects.updateAccessApprovalSettings
|
||||
* @memberOf! ()
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.name The resource name of the settings. Format is one of: <ol> <li>"projects/{project_id}/accessApprovalSettings"</li> <li>"folders/{folder_id}/accessApprovalSettings"</li> <li>"organizations/{organization_id}/accessApprovalSettings"</li> <ol>
|
||||
* @param {().AccessApprovalSettings} 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
|
||||
*/
|
||||
updateAccessApprovalSettings(params?: Params$Resource$Projects$Updateaccessapprovalsettings, options?: MethodOptions): GaxiosPromise<Schema$AccessApprovalSettings>;
|
||||
updateAccessApprovalSettings(params: Params$Resource$Projects$Updateaccessapprovalsettings, options: MethodOptions | BodyResponseCallback<Schema$AccessApprovalSettings>, callback: BodyResponseCallback<Schema$AccessApprovalSettings>): void;
|
||||
updateAccessApprovalSettings(params: Params$Resource$Projects$Updateaccessapprovalsettings, callback: BodyResponseCallback<Schema$AccessApprovalSettings>): void;
|
||||
updateAccessApprovalSettings(callback: BodyResponseCallback<Schema$AccessApprovalSettings>): void;
|
||||
}
|
||||
interface Params$Resource$Projects$Getaccessapprovalsettings extends StandardParameters {
|
||||
/**
|
||||
* Auth client or API Key for the request
|
||||
*/
|
||||
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
|
||||
/**
|
||||
* Name of the AccessApprovalSettings to retrieve.
|
||||
*/
|
||||
name?: string;
|
||||
}
|
||||
interface Params$Resource$Projects$Updateaccessapprovalsettings extends StandardParameters {
|
||||
/**
|
||||
* Auth client or API Key for the request
|
||||
*/
|
||||
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
|
||||
/**
|
||||
* The resource name of the settings. Format is one of: <ol> <li>"projects/{project_id}/accessApprovalSettings"</li> <li>"folders/{folder_id}/accessApprovalSettings"</li> <li>"organizations/{organization_id}/accessApprovalSettings"</li> <ol>
|
||||
*/
|
||||
name?: string;
|
||||
/**
|
||||
* Request body metadata
|
||||
*/
|
||||
requestBody?: Schema$AccessApprovalSettings;
|
||||
}
|
||||
class Resource$Projects$Approvalrequests {
|
||||
context: APIRequestContext;
|
||||
constructor(context: APIRequestContext);
|
||||
/**
|
||||
* accessapproval.projects.approvalRequests.approve
|
||||
* @desc Approves a request and returns the updated ApprovalRequest. Returns NOT_FOUND if the request does not exist. Returns FAILED_PRECONDITION if the request exists but is not in a pending state.
|
||||
* @alias accessapproval.projects.approvalRequests.approve
|
||||
* @memberOf! ()
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.name Name of the approval request to approve.
|
||||
* @param {().ApproveApprovalRequestMessage} 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
|
||||
*/
|
||||
approve(params?: Params$Resource$Projects$Approvalrequests$Approve, options?: MethodOptions): GaxiosPromise<Schema$ApprovalRequest>;
|
||||
approve(params: Params$Resource$Projects$Approvalrequests$Approve, options: MethodOptions | BodyResponseCallback<Schema$ApprovalRequest>, callback: BodyResponseCallback<Schema$ApprovalRequest>): void;
|
||||
approve(params: Params$Resource$Projects$Approvalrequests$Approve, callback: BodyResponseCallback<Schema$ApprovalRequest>): void;
|
||||
approve(callback: BodyResponseCallback<Schema$ApprovalRequest>): void;
|
||||
/**
|
||||
* accessapproval.projects.approvalRequests.dismiss
|
||||
* @desc Dismisses a request. Returns the updated ApprovalRequest. NOTE: This does not deny access to the resource if another request has been made and approved. It is equivalent in effect to ignoring the request altogether. Returns NOT_FOUND if the request does not exist. Returns FAILED_PRECONDITION if the request exists but is not in a pending state.
|
||||
* @alias accessapproval.projects.approvalRequests.dismiss
|
||||
* @memberOf! ()
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.name Name of the ApprovalRequest to dismiss.
|
||||
* @param {().DismissApprovalRequestMessage} 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
|
||||
*/
|
||||
dismiss(params?: Params$Resource$Projects$Approvalrequests$Dismiss, options?: MethodOptions): GaxiosPromise<Schema$ApprovalRequest>;
|
||||
dismiss(params: Params$Resource$Projects$Approvalrequests$Dismiss, options: MethodOptions | BodyResponseCallback<Schema$ApprovalRequest>, callback: BodyResponseCallback<Schema$ApprovalRequest>): void;
|
||||
dismiss(params: Params$Resource$Projects$Approvalrequests$Dismiss, callback: BodyResponseCallback<Schema$ApprovalRequest>): void;
|
||||
dismiss(callback: BodyResponseCallback<Schema$ApprovalRequest>): void;
|
||||
/**
|
||||
* accessapproval.projects.approvalRequests.get
|
||||
* @desc Gets an approval request. Returns NOT_FOUND if the request does not exist.
|
||||
* @alias accessapproval.projects.approvalRequests.get
|
||||
* @memberOf! ()
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.name Name of the approval request 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(params?: Params$Resource$Projects$Approvalrequests$Get, options?: MethodOptions): GaxiosPromise<Schema$ApprovalRequest>;
|
||||
get(params: Params$Resource$Projects$Approvalrequests$Get, options: MethodOptions | BodyResponseCallback<Schema$ApprovalRequest>, callback: BodyResponseCallback<Schema$ApprovalRequest>): void;
|
||||
get(params: Params$Resource$Projects$Approvalrequests$Get, callback: BodyResponseCallback<Schema$ApprovalRequest>): void;
|
||||
get(callback: BodyResponseCallback<Schema$ApprovalRequest>): void;
|
||||
/**
|
||||
* accessapproval.projects.approvalRequests.list
|
||||
* @desc Lists approval requests associated with a project, folder, or organization. Approval requests can be filtered by state (pending, active, dismissed). The order is reverse chronological.
|
||||
* @alias accessapproval.projects.approvalRequests.list
|
||||
* @memberOf! ()
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string=} params.filter A filter on the type of approval requests to retrieve. Must be one of the following values: <ol> <li>[not set]: Requests that are pending or have active approvals.</li> <li>ALL: All requests.</li> <li>PENDING: Only pending requests.</li> <li>ACTIVE: Only active (i.e. currently approved) requests.</li> <li>DISMISSED: Only dismissed (including expired) requests.</li> </ol>
|
||||
* @param {integer=} params.pageSize Requested page size.
|
||||
* @param {string=} params.pageToken A token identifying the page of results to return.
|
||||
* @param {string} params.parent The parent resource. This may be "projects/{project_id}", "folders/{folder_id}", or "organizations/{organization_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
|
||||
*/
|
||||
list(params?: Params$Resource$Projects$Approvalrequests$List, options?: MethodOptions): GaxiosPromise<Schema$ListApprovalRequestsResponse>;
|
||||
list(params: Params$Resource$Projects$Approvalrequests$List, options: MethodOptions | BodyResponseCallback<Schema$ListApprovalRequestsResponse>, callback: BodyResponseCallback<Schema$ListApprovalRequestsResponse>): void;
|
||||
list(params: Params$Resource$Projects$Approvalrequests$List, callback: BodyResponseCallback<Schema$ListApprovalRequestsResponse>): void;
|
||||
list(callback: BodyResponseCallback<Schema$ListApprovalRequestsResponse>): void;
|
||||
}
|
||||
interface Params$Resource$Projects$Approvalrequests$Approve extends StandardParameters {
|
||||
/**
|
||||
* Auth client or API Key for the request
|
||||
*/
|
||||
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
|
||||
/**
|
||||
* Name of the approval request to approve.
|
||||
*/
|
||||
name?: string;
|
||||
/**
|
||||
* Request body metadata
|
||||
*/
|
||||
requestBody?: Schema$ApproveApprovalRequestMessage;
|
||||
}
|
||||
interface Params$Resource$Projects$Approvalrequests$Dismiss extends StandardParameters {
|
||||
/**
|
||||
* Auth client or API Key for the request
|
||||
*/
|
||||
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
|
||||
/**
|
||||
* Name of the ApprovalRequest to dismiss.
|
||||
*/
|
||||
name?: string;
|
||||
/**
|
||||
* Request body metadata
|
||||
*/
|
||||
requestBody?: Schema$DismissApprovalRequestMessage;
|
||||
}
|
||||
interface Params$Resource$Projects$Approvalrequests$Get extends StandardParameters {
|
||||
/**
|
||||
* Auth client or API Key for the request
|
||||
*/
|
||||
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
|
||||
/**
|
||||
* Name of the approval request to retrieve.
|
||||
*/
|
||||
name?: string;
|
||||
}
|
||||
interface Params$Resource$Projects$Approvalrequests$List extends StandardParameters {
|
||||
/**
|
||||
* Auth client or API Key for the request
|
||||
*/
|
||||
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
|
||||
/**
|
||||
* A filter on the type of approval requests to retrieve. Must be one of the following values: <ol> <li>[not set]: Requests that are pending or have active approvals.</li> <li>ALL: All requests.</li> <li>PENDING: Only pending requests.</li> <li>ACTIVE: Only active (i.e. currently approved) requests.</li> <li>DISMISSED: Only dismissed (including expired) requests.</li> </ol>
|
||||
*/
|
||||
filter?: string;
|
||||
/**
|
||||
* Requested page size.
|
||||
*/
|
||||
pageSize?: number;
|
||||
/**
|
||||
* A token identifying the page of results to return.
|
||||
*/
|
||||
pageToken?: string;
|
||||
/**
|
||||
* The parent resource. This may be "projects/{project_id}", "folders/{folder_id}", or "organizations/{organization_id}".
|
||||
*/
|
||||
parent?: string;
|
||||
}
|
||||
}
|
||||
651
node_modules/googleapis/build/src/apis/accessapproval/v1beta1.js
generated
vendored
Normal file
651
node_modules/googleapis/build/src/apis/accessapproval/v1beta1.js
generated
vendored
Normal file
@@ -0,0 +1,651 @@
|
||||
"use strict";
|
||||
/**
|
||||
* Copyright 2019 Google LLC
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const googleapis_common_1 = require("googleapis-common");
|
||||
// tslint:disable: no-any
|
||||
// tslint:disable: class-name
|
||||
// tslint:disable: variable-name
|
||||
// tslint:disable: jsdoc-format
|
||||
// tslint:disable: no-namespace
|
||||
var accessapproval_v1beta1;
|
||||
(function (accessapproval_v1beta1) {
|
||||
/**
|
||||
* Access Approval API
|
||||
*
|
||||
* An API for controlling access to data by Google personnel.
|
||||
*
|
||||
* @example
|
||||
* const {google} = require('googleapis');
|
||||
* const accessapproval = google.accessapproval('v1beta1');
|
||||
*
|
||||
* @namespace accessapproval
|
||||
* @type {Function}
|
||||
* @version v1beta1
|
||||
* @variation v1beta1
|
||||
* @param {object=} options Options for Accessapproval
|
||||
*/
|
||||
class Accessapproval {
|
||||
constructor(options, google) {
|
||||
this.context = {
|
||||
_options: options || {},
|
||||
google,
|
||||
};
|
||||
this.folders = new Resource$Folders(this.context);
|
||||
this.organizations = new Resource$Organizations(this.context);
|
||||
this.projects = new Resource$Projects(this.context);
|
||||
}
|
||||
}
|
||||
accessapproval_v1beta1.Accessapproval = Accessapproval;
|
||||
class Resource$Folders {
|
||||
constructor(context) {
|
||||
this.context = context;
|
||||
this.approvalRequests = new Resource$Folders$Approvalrequests(this.context);
|
||||
}
|
||||
getAccessApprovalSettings(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: ['name'],
|
||||
pathParams: ['name'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
updateAccessApprovalSettings(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'PATCH',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: ['name'],
|
||||
pathParams: ['name'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
}
|
||||
accessapproval_v1beta1.Resource$Folders = Resource$Folders;
|
||||
class Resource$Folders$Approvalrequests {
|
||||
constructor(context) {
|
||||
this.context = context;
|
||||
}
|
||||
approve(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1beta1/{+name}:approve').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: ['name'],
|
||||
pathParams: ['name'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
dismiss(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1beta1/{+name}:dismiss').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: ['name'],
|
||||
pathParams: ['name'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
get(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: ['name'],
|
||||
pathParams: ['name'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
list(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1beta1/{+parent}/approvalRequests').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: ['parent'],
|
||||
pathParams: ['parent'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
}
|
||||
accessapproval_v1beta1.Resource$Folders$Approvalrequests = Resource$Folders$Approvalrequests;
|
||||
class Resource$Organizations {
|
||||
constructor(context) {
|
||||
this.context = context;
|
||||
this.approvalRequests = new Resource$Organizations$Approvalrequests(this.context);
|
||||
}
|
||||
getAccessApprovalSettings(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: ['name'],
|
||||
pathParams: ['name'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
updateAccessApprovalSettings(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'PATCH',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: ['name'],
|
||||
pathParams: ['name'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
}
|
||||
accessapproval_v1beta1.Resource$Organizations = Resource$Organizations;
|
||||
class Resource$Organizations$Approvalrequests {
|
||||
constructor(context) {
|
||||
this.context = context;
|
||||
}
|
||||
approve(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1beta1/{+name}:approve').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: ['name'],
|
||||
pathParams: ['name'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
dismiss(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1beta1/{+name}:dismiss').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: ['name'],
|
||||
pathParams: ['name'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
get(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: ['name'],
|
||||
pathParams: ['name'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
list(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1beta1/{+parent}/approvalRequests').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: ['parent'],
|
||||
pathParams: ['parent'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
}
|
||||
accessapproval_v1beta1.Resource$Organizations$Approvalrequests = Resource$Organizations$Approvalrequests;
|
||||
class Resource$Projects {
|
||||
constructor(context) {
|
||||
this.context = context;
|
||||
this.approvalRequests = new Resource$Projects$Approvalrequests(this.context);
|
||||
}
|
||||
getAccessApprovalSettings(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: ['name'],
|
||||
pathParams: ['name'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
updateAccessApprovalSettings(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'PATCH',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: ['name'],
|
||||
pathParams: ['name'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
}
|
||||
accessapproval_v1beta1.Resource$Projects = Resource$Projects;
|
||||
class Resource$Projects$Approvalrequests {
|
||||
constructor(context) {
|
||||
this.context = context;
|
||||
}
|
||||
approve(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1beta1/{+name}:approve').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: ['name'],
|
||||
pathParams: ['name'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
dismiss(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1beta1/{+name}:dismiss').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: ['name'],
|
||||
pathParams: ['name'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
get(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: ['name'],
|
||||
pathParams: ['name'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
list(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1beta1/{+parent}/approvalRequests').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: ['parent'],
|
||||
pathParams: ['parent'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
}
|
||||
accessapproval_v1beta1.Resource$Projects$Approvalrequests = Resource$Projects$Approvalrequests;
|
||||
})(accessapproval_v1beta1 = exports.accessapproval_v1beta1 || (exports.accessapproval_v1beta1 = {}));
|
||||
//# sourceMappingURL=v1beta1.js.map
|
||||
14
node_modules/googleapis/build/src/apis/accesscontextmanager/index.d.ts
generated
vendored
Normal file
14
node_modules/googleapis/build/src/apis/accesscontextmanager/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
/*! THIS FILE IS AUTO-GENERATED */
|
||||
import { AuthPlus } from 'googleapis-common';
|
||||
import { accesscontextmanager_v1 } from './v1';
|
||||
import { accesscontextmanager_v1beta } from './v1beta';
|
||||
export declare const VERSIONS: {
|
||||
v1: typeof accesscontextmanager_v1.Accesscontextmanager;
|
||||
v1beta: typeof accesscontextmanager_v1beta.Accesscontextmanager;
|
||||
};
|
||||
export declare function accesscontextmanager(version: 'v1'): accesscontextmanager_v1.Accesscontextmanager;
|
||||
export declare function accesscontextmanager(options: accesscontextmanager_v1.Options): accesscontextmanager_v1.Accesscontextmanager;
|
||||
export declare function accesscontextmanager(version: 'v1beta'): accesscontextmanager_v1beta.Accesscontextmanager;
|
||||
export declare function accesscontextmanager(options: accesscontextmanager_v1beta.Options): accesscontextmanager_v1beta.Accesscontextmanager;
|
||||
declare const auth: AuthPlus;
|
||||
export { auth };
|
||||
29
node_modules/googleapis/build/src/apis/accesscontextmanager/index.js
generated
vendored
Normal file
29
node_modules/googleapis/build/src/apis/accesscontextmanager/index.js
generated
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
"use strict";
|
||||
// Copyright 2019 Google LLC
|
||||
// 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.
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
/*! THIS FILE IS AUTO-GENERATED */
|
||||
const googleapis_common_1 = require("googleapis-common");
|
||||
const v1_1 = require("./v1");
|
||||
const v1beta_1 = require("./v1beta");
|
||||
exports.VERSIONS = {
|
||||
v1: v1_1.accesscontextmanager_v1.Accesscontextmanager,
|
||||
v1beta: v1beta_1.accesscontextmanager_v1beta.Accesscontextmanager,
|
||||
};
|
||||
function accesscontextmanager(versionOrOptions) {
|
||||
return googleapis_common_1.getAPI('accesscontextmanager', versionOrOptions, exports.VERSIONS, this);
|
||||
}
|
||||
exports.accesscontextmanager = accesscontextmanager;
|
||||
const auth = new googleapis_common_1.AuthPlus();
|
||||
exports.auth = auth;
|
||||
//# sourceMappingURL=index.js.map
|
||||
1004
node_modules/googleapis/build/src/apis/accesscontextmanager/v1.d.ts
generated
vendored
Normal file
1004
node_modules/googleapis/build/src/apis/accesscontextmanager/v1.d.ts
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
666
node_modules/googleapis/build/src/apis/accesscontextmanager/v1.js
generated
vendored
Normal file
666
node_modules/googleapis/build/src/apis/accesscontextmanager/v1.js
generated
vendored
Normal file
@@ -0,0 +1,666 @@
|
||||
"use strict";
|
||||
/**
|
||||
* Copyright 2019 Google LLC
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const googleapis_common_1 = require("googleapis-common");
|
||||
// tslint:disable: no-any
|
||||
// tslint:disable: class-name
|
||||
// tslint:disable: variable-name
|
||||
// tslint:disable: jsdoc-format
|
||||
// tslint:disable: no-namespace
|
||||
var accesscontextmanager_v1;
|
||||
(function (accesscontextmanager_v1) {
|
||||
/**
|
||||
* Access Context Manager API
|
||||
*
|
||||
* An API for setting attribute based access control to requests to GCP services.
|
||||
*
|
||||
* @example
|
||||
* const {google} = require('googleapis');
|
||||
* const accesscontextmanager = google.accesscontextmanager('v1');
|
||||
*
|
||||
* @namespace accesscontextmanager
|
||||
* @type {Function}
|
||||
* @version v1
|
||||
* @variation v1
|
||||
* @param {object=} options Options for Accesscontextmanager
|
||||
*/
|
||||
class Accesscontextmanager {
|
||||
constructor(options, google) {
|
||||
this.context = {
|
||||
_options: options || {},
|
||||
google,
|
||||
};
|
||||
this.accessPolicies = new Resource$Accesspolicies(this.context);
|
||||
this.operations = new Resource$Operations(this.context);
|
||||
}
|
||||
}
|
||||
accesscontextmanager_v1.Accesscontextmanager = Accesscontextmanager;
|
||||
class Resource$Accesspolicies {
|
||||
constructor(context) {
|
||||
this.context = context;
|
||||
this.accessLevels = new Resource$Accesspolicies$Accesslevels(this.context);
|
||||
this.servicePerimeters = new Resource$Accesspolicies$Serviceperimeters(this.context);
|
||||
}
|
||||
create(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/accessPolicies').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
delete(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'DELETE',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: ['name'],
|
||||
pathParams: ['name'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
get(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: ['name'],
|
||||
pathParams: ['name'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
list(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/accessPolicies').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
patch(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'PATCH',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: ['name'],
|
||||
pathParams: ['name'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
}
|
||||
accesscontextmanager_v1.Resource$Accesspolicies = Resource$Accesspolicies;
|
||||
class Resource$Accesspolicies$Accesslevels {
|
||||
constructor(context) {
|
||||
this.context = context;
|
||||
}
|
||||
create(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/{+parent}/accessLevels').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: ['parent'],
|
||||
pathParams: ['parent'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
delete(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'DELETE',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: ['name'],
|
||||
pathParams: ['name'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
get(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: ['name'],
|
||||
pathParams: ['name'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
list(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/{+parent}/accessLevels').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: ['parent'],
|
||||
pathParams: ['parent'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
patch(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'PATCH',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: ['name'],
|
||||
pathParams: ['name'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
}
|
||||
accesscontextmanager_v1.Resource$Accesspolicies$Accesslevels = Resource$Accesspolicies$Accesslevels;
|
||||
class Resource$Accesspolicies$Serviceperimeters {
|
||||
constructor(context) {
|
||||
this.context = context;
|
||||
}
|
||||
create(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/{+parent}/servicePerimeters').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: ['parent'],
|
||||
pathParams: ['parent'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
delete(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'DELETE',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: ['name'],
|
||||
pathParams: ['name'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
get(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: ['name'],
|
||||
pathParams: ['name'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
list(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/{+parent}/servicePerimeters').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: ['parent'],
|
||||
pathParams: ['parent'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
patch(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'PATCH',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: ['name'],
|
||||
pathParams: ['name'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
}
|
||||
accesscontextmanager_v1.Resource$Accesspolicies$Serviceperimeters = Resource$Accesspolicies$Serviceperimeters;
|
||||
class Resource$Operations {
|
||||
constructor(context) {
|
||||
this.context = context;
|
||||
}
|
||||
cancel(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: ['name'],
|
||||
pathParams: ['name'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
delete(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'DELETE',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: ['name'],
|
||||
pathParams: ['name'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
get(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback || {});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: ['name'],
|
||||
pathParams: ['name'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
list(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback || {});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: ['name'],
|
||||
pathParams: ['name'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
}
|
||||
accesscontextmanager_v1.Resource$Operations = Resource$Operations;
|
||||
})(accesscontextmanager_v1 = exports.accesscontextmanager_v1 || (exports.accesscontextmanager_v1 = {}));
|
||||
//# sourceMappingURL=v1.js.map
|
||||
938
node_modules/googleapis/build/src/apis/accesscontextmanager/v1beta.d.ts
generated
vendored
Normal file
938
node_modules/googleapis/build/src/apis/accesscontextmanager/v1beta.d.ts
generated
vendored
Normal file
@@ -0,0 +1,938 @@
|
||||
/**
|
||||
* Copyright 2019 Google LLC
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
import { OAuth2Client, JWT, Compute, UserRefreshClient } from 'google-auth-library';
|
||||
import { GoogleConfigurable, MethodOptions, GlobalOptions, BodyResponseCallback, APIRequestContext } from 'googleapis-common';
|
||||
import { GaxiosPromise } from 'gaxios';
|
||||
export declare namespace accesscontextmanager_v1beta {
|
||||
interface Options extends GlobalOptions {
|
||||
version: 'v1beta';
|
||||
}
|
||||
interface StandardParameters {
|
||||
/**
|
||||
* V1 error format.
|
||||
*/
|
||||
'$.xgafv'?: string;
|
||||
/**
|
||||
* OAuth access token.
|
||||
*/
|
||||
access_token?: string;
|
||||
/**
|
||||
* Data format for response.
|
||||
*/
|
||||
alt?: string;
|
||||
/**
|
||||
* JSONP
|
||||
*/
|
||||
callback?: string;
|
||||
/**
|
||||
* Selector specifying which fields to include in a partial response.
|
||||
*/
|
||||
fields?: string;
|
||||
/**
|
||||
* API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
|
||||
*/
|
||||
key?: string;
|
||||
/**
|
||||
* OAuth 2.0 token for the current user.
|
||||
*/
|
||||
oauth_token?: string;
|
||||
/**
|
||||
* Returns response with indentations and line breaks.
|
||||
*/
|
||||
prettyPrint?: boolean;
|
||||
/**
|
||||
* Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
*/
|
||||
quotaUser?: string;
|
||||
/**
|
||||
* Legacy upload protocol for media (e.g. "media", "multipart").
|
||||
*/
|
||||
uploadType?: string;
|
||||
/**
|
||||
* Upload protocol for media (e.g. "raw", "multipart").
|
||||
*/
|
||||
upload_protocol?: string;
|
||||
}
|
||||
/**
|
||||
* Access Context Manager API
|
||||
*
|
||||
* An API for setting attribute based access control to requests to GCP services.
|
||||
*
|
||||
* @example
|
||||
* const {google} = require('googleapis');
|
||||
* const accesscontextmanager = google.accesscontextmanager('v1beta');
|
||||
*
|
||||
* @namespace accesscontextmanager
|
||||
* @type {Function}
|
||||
* @version v1beta
|
||||
* @variation v1beta
|
||||
* @param {object=} options Options for Accesscontextmanager
|
||||
*/
|
||||
class Accesscontextmanager {
|
||||
context: APIRequestContext;
|
||||
accessPolicies: Resource$Accesspolicies;
|
||||
operations: Resource$Operations;
|
||||
constructor(options: GlobalOptions, google?: GoogleConfigurable);
|
||||
}
|
||||
/**
|
||||
* An `AccessLevel` is a label that can be applied to requests to GCP services, along with a list of requirements necessary for the label to be applied.
|
||||
*/
|
||||
interface Schema$AccessLevel {
|
||||
/**
|
||||
* A `BasicLevel` composed of `Conditions`.
|
||||
*/
|
||||
basic?: Schema$BasicLevel;
|
||||
/**
|
||||
* Output only. Time the `AccessLevel` was created in UTC.
|
||||
*/
|
||||
createTime?: string;
|
||||
/**
|
||||
* Description of the `AccessLevel` and its use. Does not affect behavior.
|
||||
*/
|
||||
description?: string;
|
||||
/**
|
||||
* Required. Resource name for the Access Level. The `short_name` component must begin with a letter and only include alphanumeric and '_'. Format: `accessPolicies/{policy_id}/accessLevels/{short_name}`
|
||||
*/
|
||||
name?: string;
|
||||
/**
|
||||
* Human readable title. Must be unique within the Policy.
|
||||
*/
|
||||
title?: string;
|
||||
/**
|
||||
* Output only. Time the `AccessLevel` was updated in UTC.
|
||||
*/
|
||||
updateTime?: string;
|
||||
}
|
||||
/**
|
||||
* `AccessPolicy` is a container for `AccessLevels` (which define the necessary attributes to use GCP services) and `ServicePerimeters` (which define regions of services able to freely pass data within a perimeter). An access policy is globally visible within an organization, and the restrictions it specifies apply to all projects within an organization.
|
||||
*/
|
||||
interface Schema$AccessPolicy {
|
||||
/**
|
||||
* Output only. Time the `AccessPolicy` was created in UTC.
|
||||
*/
|
||||
createTime?: string;
|
||||
/**
|
||||
* Output only. Resource name of the `AccessPolicy`. Format: `accessPolicies/{policy_id}`
|
||||
*/
|
||||
name?: string;
|
||||
/**
|
||||
* Required. The parent of this `AccessPolicy` in the Cloud Resource Hierarchy. Currently immutable once created. Format: `organizations/{organization_id}`
|
||||
*/
|
||||
parent?: string;
|
||||
/**
|
||||
* Required. Human readable title. Does not affect behavior.
|
||||
*/
|
||||
title?: string;
|
||||
/**
|
||||
* Output only. Time the `AccessPolicy` was updated in UTC.
|
||||
*/
|
||||
updateTime?: string;
|
||||
}
|
||||
/**
|
||||
* `BasicLevel` is an `AccessLevel` using a set of recommended features.
|
||||
*/
|
||||
interface Schema$BasicLevel {
|
||||
/**
|
||||
* How the `conditions` list should be combined to determine if a request is granted this `AccessLevel`. If AND is used, each `Condition` in `conditions` must be satisfied for the `AccessLevel` to be applied. If OR is used, at least one `Condition` in `conditions` must be satisfied for the `AccessLevel` to be applied. Default behavior is AND.
|
||||
*/
|
||||
combiningFunction?: string;
|
||||
/**
|
||||
* Required. A list of requirements for the `AccessLevel` to be granted.
|
||||
*/
|
||||
conditions?: Schema$Condition[];
|
||||
}
|
||||
/**
|
||||
* Alpha. Specifies which services are granted access via this Bridge Service Perimeter.
|
||||
*/
|
||||
interface Schema$BridgeServiceRestriction {
|
||||
/**
|
||||
* The list of APIs usable through the Bridge Perimeter. Must be empty unless 'enable_restriction' is True.
|
||||
*/
|
||||
allowedServices?: string[];
|
||||
/**
|
||||
* Whether to restrict the set of APIs callable through the Bridge Service Perimeter.
|
||||
*/
|
||||
enableRestriction?: boolean;
|
||||
}
|
||||
/**
|
||||
* A condition necessary for an `AccessLevel` to be granted. The Condition is an AND over its fields. So a Condition is true if: 1) the request IP is from one of the listed subnetworks AND 2) the originating device complies with the listed device policy AND 3) all listed access levels are granted AND 4) the request was sent at a time allowed by the DateTimeRestriction.
|
||||
*/
|
||||
interface Schema$Condition {
|
||||
/**
|
||||
* Device specific restrictions, all restrictions must hold for the Condition to be true. If not specified, all devices are allowed.
|
||||
*/
|
||||
devicePolicy?: Schema$DevicePolicy;
|
||||
/**
|
||||
* CIDR block IP subnetwork specification. May be IPv4 or IPv6. Note that for a CIDR IP address block, the specified IP address portion must be properly truncated (i.e. all the host bits must be zero) or the input is considered malformed. For example, "192.0.2.0/24" is accepted but "192.0.2.1/24" is not. Similarly, for IPv6, "2001:db8::/32" is accepted whereas "2001:db8::1/32" is not. The originating IP of a request must be in one of the listed subnets in order for this Condition to be true. If empty, all IP addresses are allowed.
|
||||
*/
|
||||
ipSubnetworks?: string[];
|
||||
/**
|
||||
* The request must be made by one of the provided user or service accounts. Groups are not supported. Syntax: `user:{emailid}` `serviceAccount:{emailid}` If not specified, a request may come from any user.
|
||||
*/
|
||||
members?: string[];
|
||||
/**
|
||||
* Whether to negate the Condition. If true, the Condition becomes a NAND over its non-empty fields, each field must be false for the Condition overall to be satisfied. Defaults to false.
|
||||
*/
|
||||
negate?: boolean;
|
||||
/**
|
||||
* The request must originate from one of the provided countries/regions. Must be valid ISO 3166-1 alpha-2 codes.
|
||||
*/
|
||||
regions?: string[];
|
||||
/**
|
||||
* A list of other access levels defined in the same `Policy`, referenced by resource name. Referencing an `AccessLevel` which does not exist is an error. All access levels listed must be granted for the Condition to be true. Example: "`accessPolicies/MY_POLICY/accessLevels/LEVEL_NAME"`
|
||||
*/
|
||||
requiredAccessLevels?: string[];
|
||||
}
|
||||
/**
|
||||
* `DevicePolicy` specifies device specific restrictions necessary to acquire a given access level. A `DevicePolicy` specifies requirements for requests from devices to be granted access levels, it does not do any enforcement on the device. `DevicePolicy` acts as an AND over all specified fields, and each repeated field is an OR over its elements. Any unset fields are ignored. For example, if the proto is { os_type : DESKTOP_WINDOWS, os_type : DESKTOP_LINUX, encryption_status: ENCRYPTED}, then the DevicePolicy will be true for requests originating from encrypted Linux desktops and encrypted Windows desktops.
|
||||
*/
|
||||
interface Schema$DevicePolicy {
|
||||
/**
|
||||
* Allowed device management levels, an empty list allows all management levels.
|
||||
*/
|
||||
allowedDeviceManagementLevels?: string[];
|
||||
/**
|
||||
* Allowed encryptions statuses, an empty list allows all statuses.
|
||||
*/
|
||||
allowedEncryptionStatuses?: string[];
|
||||
/**
|
||||
* Allowed OS versions, an empty list allows all types and all versions.
|
||||
*/
|
||||
osConstraints?: Schema$OsConstraint[];
|
||||
/**
|
||||
* Whether the device needs to be approved by the customer admin.
|
||||
*/
|
||||
requireAdminApproval?: boolean;
|
||||
/**
|
||||
* Whether the device needs to be corp owned.
|
||||
*/
|
||||
requireCorpOwned?: boolean;
|
||||
/**
|
||||
* Whether or not screenlock is required for the DevicePolicy to be true. Defaults to `false`.
|
||||
*/
|
||||
requireScreenlock?: boolean;
|
||||
}
|
||||
/**
|
||||
* Alpha. Specifies how Access Levels are to be used for accessing the Service Perimeter.
|
||||
*/
|
||||
interface Schema$IngressServiceRestriction {
|
||||
/**
|
||||
* The list of APIs usable with a valid Access Level. Must be empty unless 'enable_restriction' is True.
|
||||
*/
|
||||
allowedServices?: string[];
|
||||
/**
|
||||
* Whether to restrict the set of APIs callable outside the Service Perimeter via Access Levels.
|
||||
*/
|
||||
enableRestriction?: boolean;
|
||||
}
|
||||
/**
|
||||
* A response to `ListAccessLevelsRequest`.
|
||||
*/
|
||||
interface Schema$ListAccessLevelsResponse {
|
||||
/**
|
||||
* List of the Access Level instances.
|
||||
*/
|
||||
accessLevels?: Schema$AccessLevel[];
|
||||
/**
|
||||
* The pagination token to retrieve the next page of results. If the value is empty, no further results remain.
|
||||
*/
|
||||
nextPageToken?: string;
|
||||
}
|
||||
/**
|
||||
* A response to `ListAccessPoliciesRequest`.
|
||||
*/
|
||||
interface Schema$ListAccessPoliciesResponse {
|
||||
/**
|
||||
* List of the AccessPolicy instances.
|
||||
*/
|
||||
accessPolicies?: Schema$AccessPolicy[];
|
||||
/**
|
||||
* The pagination token to retrieve the next page of results. If the value is empty, no further results remain.
|
||||
*/
|
||||
nextPageToken?: string;
|
||||
}
|
||||
/**
|
||||
* A response to `ListServicePerimetersRequest`.
|
||||
*/
|
||||
interface Schema$ListServicePerimetersResponse {
|
||||
/**
|
||||
* The pagination token to retrieve the next page of results. If the value is empty, no further results remain.
|
||||
*/
|
||||
nextPageToken?: string;
|
||||
/**
|
||||
* List of the Service Perimeter instances.
|
||||
*/
|
||||
servicePerimeters?: Schema$ServicePerimeter[];
|
||||
}
|
||||
/**
|
||||
* This resource represents a long-running operation that is the result of a network API call.
|
||||
*/
|
||||
interface Schema$Operation {
|
||||
/**
|
||||
* 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.
|
||||
*/
|
||||
done?: boolean;
|
||||
/**
|
||||
* The error result of the operation in case of failure or cancellation.
|
||||
*/
|
||||
error?: Schema$Status;
|
||||
/**
|
||||
* 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.
|
||||
*/
|
||||
metadata?: {
|
||||
[key: string]: any;
|
||||
};
|
||||
/**
|
||||
* 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 be a resource name ending with `operations/{unique_id}`.
|
||||
*/
|
||||
name?: string;
|
||||
/**
|
||||
* 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`.
|
||||
*/
|
||||
response?: {
|
||||
[key: string]: any;
|
||||
};
|
||||
}
|
||||
/**
|
||||
* A restriction on the OS type and version of devices making requests.
|
||||
*/
|
||||
interface Schema$OsConstraint {
|
||||
/**
|
||||
* The minimum allowed OS version. If not set, any version of this OS satisfies the constraint. Format: `"major.minor.patch"`. Examples: `"10.5.301"`, `"9.2.1"`.
|
||||
*/
|
||||
minimumVersion?: string;
|
||||
/**
|
||||
* Required. The allowed OS type.
|
||||
*/
|
||||
osType?: string;
|
||||
/**
|
||||
* Only allows requests from devices with a verified Chrome OS. Verifications includes requirements that the device is enterprise-managed, conformant to Dasher domain policies, and the caller has permission to call the API targeted by the request.
|
||||
*/
|
||||
requireVerifiedChromeOs?: boolean;
|
||||
}
|
||||
/**
|
||||
* `ServicePerimeter` describes a set of GCP resources which can freely import and export data amongst themselves, but not export outside of the `ServicePerimeter`. If a request with a source within this `ServicePerimeter` has a target outside of the `ServicePerimeter`, the request will be blocked. Otherwise the request is allowed. There are two types of Service Perimeter - Regular and Bridge. Regular Service Perimeters cannot overlap, a single GCP project can only belong to a single regular Service Perimeter. Service Perimeter Bridges can contain only GCP projects as members, a single GCP project may belong to multiple Service Perimeter Bridges.
|
||||
*/
|
||||
interface Schema$ServicePerimeter {
|
||||
/**
|
||||
* Output only. Time the `ServicePerimeter` was created in UTC.
|
||||
*/
|
||||
createTime?: string;
|
||||
/**
|
||||
* Description of the `ServicePerimeter` and its use. Does not affect behavior.
|
||||
*/
|
||||
description?: string;
|
||||
/**
|
||||
* Required. Resource name for the ServicePerimeter. The `short_name` component must begin with a letter and only include alphanumeric and '_'. Format: `accessPolicies/{policy_id}/servicePerimeters/{short_name}`
|
||||
*/
|
||||
name?: string;
|
||||
/**
|
||||
* Perimeter type indicator. A single project is allowed to be a member of single regular perimeter, but multiple service perimeter bridges. A project cannot be a included in a perimeter bridge without being included in regular perimeter. For perimeter bridges, restricted/unrestricted service lists as well as access lists must be empty.
|
||||
*/
|
||||
perimeterType?: string;
|
||||
/**
|
||||
* Current ServicePerimeter configuration. Specifies sets of resources, restricted/unrestricted services and access levels that determine perimeter content and boundaries.
|
||||
*/
|
||||
status?: Schema$ServicePerimeterConfig;
|
||||
/**
|
||||
* Human readable title. Must be unique within the Policy.
|
||||
*/
|
||||
title?: string;
|
||||
/**
|
||||
* Output only. Time the `ServicePerimeter` was updated in UTC.
|
||||
*/
|
||||
updateTime?: string;
|
||||
}
|
||||
/**
|
||||
* `ServicePerimeterConfig` specifies a set of GCP resources that describe specific Service Perimeter configuration.
|
||||
*/
|
||||
interface Schema$ServicePerimeterConfig {
|
||||
/**
|
||||
* A list of `AccessLevel` resource names that allow resources within the `ServicePerimeter` to be accessed from the internet. `AccessLevels` listed must be in the same policy as this `ServicePerimeter`. Referencing a nonexistent `AccessLevel` is a syntax error. If no `AccessLevel` names are listed, resources within the perimeter can only be accessed via GCP calls with request origins within the perimeter. Example: `"accessPolicies/MY_POLICY/accessLevels/MY_LEVEL"`. For Service Perimeter Bridge, must be empty.
|
||||
*/
|
||||
accessLevels?: string[];
|
||||
/**
|
||||
* Alpha. Configuration for what services are accessible via the Bridge Perimeter. Must be empty for non-Bridge Perimeters.
|
||||
*/
|
||||
bridgeServiceRestriction?: Schema$BridgeServiceRestriction;
|
||||
/**
|
||||
* Alpha. Configuration for which services may be used with Access Levels.
|
||||
*/
|
||||
ingressServiceRestriction?: Schema$IngressServiceRestriction;
|
||||
/**
|
||||
* A list of GCP resources that are inside of the service perimeter. Currently only projects are allowed. Format: `projects/{project_number}`
|
||||
*/
|
||||
resources?: string[];
|
||||
/**
|
||||
* GCP services that are subject to the Service Perimeter restrictions. Must contain a list of services. For example, if `storage.googleapis.com` is specified, access to the storage buckets inside the perimeter must meet the perimeter's access restrictions.
|
||||
*/
|
||||
restrictedServices?: string[];
|
||||
/**
|
||||
* GCP services that are not subject to the Service Perimeter restrictions. Deprecated. Must be set to a single wildcard "*". The wildcard means that unless explicitly specified by "restricted_services" list, any service is treated as unrestricted.
|
||||
*/
|
||||
unrestrictedServices?: string[];
|
||||
/**
|
||||
* Alpha. Configuration for within Perimeter allowed APIs.
|
||||
*/
|
||||
vpcServiceRestriction?: Schema$VpcServiceRestriction;
|
||||
}
|
||||
/**
|
||||
* The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors).
|
||||
*/
|
||||
interface Schema$Status {
|
||||
/**
|
||||
* The status code, which should be an enum value of google.rpc.Code.
|
||||
*/
|
||||
code?: number;
|
||||
/**
|
||||
* A list of messages that carry the error details. There is a common set of message types for APIs to use.
|
||||
*/
|
||||
details?: Array<{
|
||||
[key: string]: any;
|
||||
}>;
|
||||
/**
|
||||
* 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.
|
||||
*/
|
||||
message?: string;
|
||||
}
|
||||
/**
|
||||
* Alpha. Specifies how APIs are allowed to communicate within the Service Perimeter.
|
||||
*/
|
||||
interface Schema$VpcServiceRestriction {
|
||||
/**
|
||||
* The list of APIs usable within the Service Perimeter. Must be empty unless 'enable_restriction' is True.
|
||||
*/
|
||||
allowedServices?: string[];
|
||||
/**
|
||||
* Whether to restrict API calls within the Service Perimeter to the list of APIs specified in 'allowed_services'.
|
||||
*/
|
||||
enableRestriction?: boolean;
|
||||
}
|
||||
class Resource$Accesspolicies {
|
||||
context: APIRequestContext;
|
||||
accessLevels: Resource$Accesspolicies$Accesslevels;
|
||||
servicePerimeters: Resource$Accesspolicies$Serviceperimeters;
|
||||
constructor(context: APIRequestContext);
|
||||
/**
|
||||
* accesscontextmanager.accessPolicies.create
|
||||
* @desc Create an `AccessPolicy`. Fails if this organization already has a `AccessPolicy`. The longrunning Operation will have a successful status once the `AccessPolicy` has propagated to long-lasting storage. Syntactic and basic semantic errors will be returned in `metadata` as a BadRequest proto.
|
||||
* @alias accesscontextmanager.accessPolicies.create
|
||||
* @memberOf! ()
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {().AccessPolicy} 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(params?: Params$Resource$Accesspolicies$Create, options?: MethodOptions): GaxiosPromise<Schema$Operation>;
|
||||
create(params: Params$Resource$Accesspolicies$Create, options: MethodOptions | BodyResponseCallback<Schema$Operation>, callback: BodyResponseCallback<Schema$Operation>): void;
|
||||
create(params: Params$Resource$Accesspolicies$Create, callback: BodyResponseCallback<Schema$Operation>): void;
|
||||
create(callback: BodyResponseCallback<Schema$Operation>): void;
|
||||
/**
|
||||
* accesscontextmanager.accessPolicies.delete
|
||||
* @desc Delete an AccessPolicy by resource name. The longrunning Operation will have a successful status once the AccessPolicy has been removed from long-lasting storage.
|
||||
* @alias accesscontextmanager.accessPolicies.delete
|
||||
* @memberOf! ()
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.name Required. Resource name for the access policy to delete. Format `accessPolicies/{policy_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
|
||||
*/
|
||||
delete(params?: Params$Resource$Accesspolicies$Delete, options?: MethodOptions): GaxiosPromise<Schema$Operation>;
|
||||
delete(params: Params$Resource$Accesspolicies$Delete, options: MethodOptions | BodyResponseCallback<Schema$Operation>, callback: BodyResponseCallback<Schema$Operation>): void;
|
||||
delete(params: Params$Resource$Accesspolicies$Delete, callback: BodyResponseCallback<Schema$Operation>): void;
|
||||
delete(callback: BodyResponseCallback<Schema$Operation>): void;
|
||||
/**
|
||||
* accesscontextmanager.accessPolicies.get
|
||||
* @desc Get an AccessPolicy by name.
|
||||
* @alias accesscontextmanager.accessPolicies.get
|
||||
* @memberOf! ()
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.name Required. Resource name for the access policy to get. Format `accessPolicies/{policy_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(params?: Params$Resource$Accesspolicies$Get, options?: MethodOptions): GaxiosPromise<Schema$AccessPolicy>;
|
||||
get(params: Params$Resource$Accesspolicies$Get, options: MethodOptions | BodyResponseCallback<Schema$AccessPolicy>, callback: BodyResponseCallback<Schema$AccessPolicy>): void;
|
||||
get(params: Params$Resource$Accesspolicies$Get, callback: BodyResponseCallback<Schema$AccessPolicy>): void;
|
||||
get(callback: BodyResponseCallback<Schema$AccessPolicy>): void;
|
||||
/**
|
||||
* accesscontextmanager.accessPolicies.list
|
||||
* @desc List all AccessPolicies under a container.
|
||||
* @alias accesscontextmanager.accessPolicies.list
|
||||
* @memberOf! ()
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {integer=} params.pageSize Number of AccessPolicy instances to include in the list. Default 100.
|
||||
* @param {string=} params.pageToken Next page token for the next batch of AccessPolicy instances. Defaults to the first page of results.
|
||||
* @param {string=} params.parent Required. Resource name for the container to list AccessPolicy instances from. Format: `organizations/{org_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
|
||||
*/
|
||||
list(params?: Params$Resource$Accesspolicies$List, options?: MethodOptions): GaxiosPromise<Schema$ListAccessPoliciesResponse>;
|
||||
list(params: Params$Resource$Accesspolicies$List, options: MethodOptions | BodyResponseCallback<Schema$ListAccessPoliciesResponse>, callback: BodyResponseCallback<Schema$ListAccessPoliciesResponse>): void;
|
||||
list(params: Params$Resource$Accesspolicies$List, callback: BodyResponseCallback<Schema$ListAccessPoliciesResponse>): void;
|
||||
list(callback: BodyResponseCallback<Schema$ListAccessPoliciesResponse>): void;
|
||||
/**
|
||||
* accesscontextmanager.accessPolicies.patch
|
||||
* @desc Update an AccessPolicy. The longrunning Operation from this RPC will have a successful status once the changes to the AccessPolicy have propagated to long-lasting storage. Syntactic and basic semantic errors will be returned in `metadata` as a BadRequest proto.
|
||||
* @alias accesscontextmanager.accessPolicies.patch
|
||||
* @memberOf! ()
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.name Output only. Resource name of the `AccessPolicy`. Format: `accessPolicies/{policy_id}`
|
||||
* @param {string=} params.updateMask Required. Mask to control which fields get updated. Must be non-empty.
|
||||
* @param {().AccessPolicy} 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(params?: Params$Resource$Accesspolicies$Patch, options?: MethodOptions): GaxiosPromise<Schema$Operation>;
|
||||
patch(params: Params$Resource$Accesspolicies$Patch, options: MethodOptions | BodyResponseCallback<Schema$Operation>, callback: BodyResponseCallback<Schema$Operation>): void;
|
||||
patch(params: Params$Resource$Accesspolicies$Patch, callback: BodyResponseCallback<Schema$Operation>): void;
|
||||
patch(callback: BodyResponseCallback<Schema$Operation>): void;
|
||||
}
|
||||
interface Params$Resource$Accesspolicies$Create extends StandardParameters {
|
||||
/**
|
||||
* Auth client or API Key for the request
|
||||
*/
|
||||
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
|
||||
/**
|
||||
* Request body metadata
|
||||
*/
|
||||
requestBody?: Schema$AccessPolicy;
|
||||
}
|
||||
interface Params$Resource$Accesspolicies$Delete extends StandardParameters {
|
||||
/**
|
||||
* Auth client or API Key for the request
|
||||
*/
|
||||
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
|
||||
/**
|
||||
* Required. Resource name for the access policy to delete. Format `accessPolicies/{policy_id}`
|
||||
*/
|
||||
name?: string;
|
||||
}
|
||||
interface Params$Resource$Accesspolicies$Get extends StandardParameters {
|
||||
/**
|
||||
* Auth client or API Key for the request
|
||||
*/
|
||||
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
|
||||
/**
|
||||
* Required. Resource name for the access policy to get. Format `accessPolicies/{policy_id}`
|
||||
*/
|
||||
name?: string;
|
||||
}
|
||||
interface Params$Resource$Accesspolicies$List extends StandardParameters {
|
||||
/**
|
||||
* Auth client or API Key for the request
|
||||
*/
|
||||
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
|
||||
/**
|
||||
* Number of AccessPolicy instances to include in the list. Default 100.
|
||||
*/
|
||||
pageSize?: number;
|
||||
/**
|
||||
* Next page token for the next batch of AccessPolicy instances. Defaults to the first page of results.
|
||||
*/
|
||||
pageToken?: string;
|
||||
/**
|
||||
* Required. Resource name for the container to list AccessPolicy instances from. Format: `organizations/{org_id}`
|
||||
*/
|
||||
parent?: string;
|
||||
}
|
||||
interface Params$Resource$Accesspolicies$Patch extends StandardParameters {
|
||||
/**
|
||||
* Auth client or API Key for the request
|
||||
*/
|
||||
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
|
||||
/**
|
||||
* Output only. Resource name of the `AccessPolicy`. Format: `accessPolicies/{policy_id}`
|
||||
*/
|
||||
name?: string;
|
||||
/**
|
||||
* Required. Mask to control which fields get updated. Must be non-empty.
|
||||
*/
|
||||
updateMask?: string;
|
||||
/**
|
||||
* Request body metadata
|
||||
*/
|
||||
requestBody?: Schema$AccessPolicy;
|
||||
}
|
||||
class Resource$Accesspolicies$Accesslevels {
|
||||
context: APIRequestContext;
|
||||
constructor(context: APIRequestContext);
|
||||
/**
|
||||
* accesscontextmanager.accessPolicies.accessLevels.create
|
||||
* @desc Create an Access Level. The longrunning operation from this RPC will have a successful status once the Access Level has propagated to long-lasting storage. Access Levels containing errors will result in an error response for the first error encountered.
|
||||
* @alias accesscontextmanager.accessPolicies.accessLevels.create
|
||||
* @memberOf! ()
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.parent Required. Resource name for the access policy which owns this Access Level. Format: `accessPolicies/{policy_id}`
|
||||
* @param {().AccessLevel} 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(params?: Params$Resource$Accesspolicies$Accesslevels$Create, options?: MethodOptions): GaxiosPromise<Schema$Operation>;
|
||||
create(params: Params$Resource$Accesspolicies$Accesslevels$Create, options: MethodOptions | BodyResponseCallback<Schema$Operation>, callback: BodyResponseCallback<Schema$Operation>): void;
|
||||
create(params: Params$Resource$Accesspolicies$Accesslevels$Create, callback: BodyResponseCallback<Schema$Operation>): void;
|
||||
create(callback: BodyResponseCallback<Schema$Operation>): void;
|
||||
/**
|
||||
* accesscontextmanager.accessPolicies.accessLevels.delete
|
||||
* @desc Delete an Access Level by resource name. The longrunning operation from this RPC will have a successful status once the Access Level has been removed from long-lasting storage.
|
||||
* @alias accesscontextmanager.accessPolicies.accessLevels.delete
|
||||
* @memberOf! ()
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.name Required. Resource name for the Access Level. Format: `accessPolicies/{policy_id}/accessLevels/{access_level_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
|
||||
*/
|
||||
delete(params?: Params$Resource$Accesspolicies$Accesslevels$Delete, options?: MethodOptions): GaxiosPromise<Schema$Operation>;
|
||||
delete(params: Params$Resource$Accesspolicies$Accesslevels$Delete, options: MethodOptions | BodyResponseCallback<Schema$Operation>, callback: BodyResponseCallback<Schema$Operation>): void;
|
||||
delete(params: Params$Resource$Accesspolicies$Accesslevels$Delete, callback: BodyResponseCallback<Schema$Operation>): void;
|
||||
delete(callback: BodyResponseCallback<Schema$Operation>): void;
|
||||
/**
|
||||
* accesscontextmanager.accessPolicies.accessLevels.get
|
||||
* @desc Get an Access Level by resource name.
|
||||
* @alias accesscontextmanager.accessPolicies.accessLevels.get
|
||||
* @memberOf! ()
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string=} params.accessLevelFormat Whether to return `BasicLevels` in the Cloud Common Expression Language rather than as `BasicLevels`. Defaults to AS_DEFINED, where Access Levels are returned as `BasicLevels` or `CustomLevels` based on how they were created. If set to CEL, all Access Levels are returned as `CustomLevels`. In the CEL case, `BasicLevels` are translated to equivalent `CustomLevels`.
|
||||
* @param {string} params.name Required. Resource name for the Access Level. Format: `accessPolicies/{policy_id}/accessLevels/{access_level_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(params?: Params$Resource$Accesspolicies$Accesslevels$Get, options?: MethodOptions): GaxiosPromise<Schema$AccessLevel>;
|
||||
get(params: Params$Resource$Accesspolicies$Accesslevels$Get, options: MethodOptions | BodyResponseCallback<Schema$AccessLevel>, callback: BodyResponseCallback<Schema$AccessLevel>): void;
|
||||
get(params: Params$Resource$Accesspolicies$Accesslevels$Get, callback: BodyResponseCallback<Schema$AccessLevel>): void;
|
||||
get(callback: BodyResponseCallback<Schema$AccessLevel>): void;
|
||||
/**
|
||||
* accesscontextmanager.accessPolicies.accessLevels.list
|
||||
* @desc List all Access Levels for an access policy.
|
||||
* @alias accesscontextmanager.accessPolicies.accessLevels.list
|
||||
* @memberOf! ()
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string=} params.accessLevelFormat Whether to return `BasicLevels` in the Cloud Common Expression language, as `CustomLevels`, rather than as `BasicLevels`. Defaults to returning `AccessLevels` in the format they were defined.
|
||||
* @param {integer=} params.pageSize Number of Access Levels to include in the list. Default 100.
|
||||
* @param {string=} params.pageToken Next page token for the next batch of Access Level instances. Defaults to the first page of results.
|
||||
* @param {string} params.parent Required. Resource name for the access policy to list Access Levels from. Format: `accessPolicies/{policy_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
|
||||
*/
|
||||
list(params?: Params$Resource$Accesspolicies$Accesslevels$List, options?: MethodOptions): GaxiosPromise<Schema$ListAccessLevelsResponse>;
|
||||
list(params: Params$Resource$Accesspolicies$Accesslevels$List, options: MethodOptions | BodyResponseCallback<Schema$ListAccessLevelsResponse>, callback: BodyResponseCallback<Schema$ListAccessLevelsResponse>): void;
|
||||
list(params: Params$Resource$Accesspolicies$Accesslevels$List, callback: BodyResponseCallback<Schema$ListAccessLevelsResponse>): void;
|
||||
list(callback: BodyResponseCallback<Schema$ListAccessLevelsResponse>): void;
|
||||
/**
|
||||
* accesscontextmanager.accessPolicies.accessLevels.patch
|
||||
* @desc Update an Access Level. The longrunning operation from this RPC will have a successful status once the changes to the Access Level have propagated to long-lasting storage. Access Levels containing errors will result in an error response for the first error encountered.
|
||||
* @alias accesscontextmanager.accessPolicies.accessLevels.patch
|
||||
* @memberOf! ()
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.name Required. Resource name for the Access Level. The `short_name` component must begin with a letter and only include alphanumeric and '_'. Format: `accessPolicies/{policy_id}/accessLevels/{short_name}`
|
||||
* @param {string=} params.updateMask Required. Mask to control which fields get updated. Must be non-empty.
|
||||
* @param {().AccessLevel} 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(params?: Params$Resource$Accesspolicies$Accesslevels$Patch, options?: MethodOptions): GaxiosPromise<Schema$Operation>;
|
||||
patch(params: Params$Resource$Accesspolicies$Accesslevels$Patch, options: MethodOptions | BodyResponseCallback<Schema$Operation>, callback: BodyResponseCallback<Schema$Operation>): void;
|
||||
patch(params: Params$Resource$Accesspolicies$Accesslevels$Patch, callback: BodyResponseCallback<Schema$Operation>): void;
|
||||
patch(callback: BodyResponseCallback<Schema$Operation>): void;
|
||||
}
|
||||
interface Params$Resource$Accesspolicies$Accesslevels$Create extends StandardParameters {
|
||||
/**
|
||||
* Auth client or API Key for the request
|
||||
*/
|
||||
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
|
||||
/**
|
||||
* Required. Resource name for the access policy which owns this Access Level. Format: `accessPolicies/{policy_id}`
|
||||
*/
|
||||
parent?: string;
|
||||
/**
|
||||
* Request body metadata
|
||||
*/
|
||||
requestBody?: Schema$AccessLevel;
|
||||
}
|
||||
interface Params$Resource$Accesspolicies$Accesslevels$Delete extends StandardParameters {
|
||||
/**
|
||||
* Auth client or API Key for the request
|
||||
*/
|
||||
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
|
||||
/**
|
||||
* Required. Resource name for the Access Level. Format: `accessPolicies/{policy_id}/accessLevels/{access_level_id}`
|
||||
*/
|
||||
name?: string;
|
||||
}
|
||||
interface Params$Resource$Accesspolicies$Accesslevels$Get extends StandardParameters {
|
||||
/**
|
||||
* Auth client or API Key for the request
|
||||
*/
|
||||
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
|
||||
/**
|
||||
* Whether to return `BasicLevels` in the Cloud Common Expression Language rather than as `BasicLevels`. Defaults to AS_DEFINED, where Access Levels are returned as `BasicLevels` or `CustomLevels` based on how they were created. If set to CEL, all Access Levels are returned as `CustomLevels`. In the CEL case, `BasicLevels` are translated to equivalent `CustomLevels`.
|
||||
*/
|
||||
accessLevelFormat?: string;
|
||||
/**
|
||||
* Required. Resource name for the Access Level. Format: `accessPolicies/{policy_id}/accessLevels/{access_level_id}`
|
||||
*/
|
||||
name?: string;
|
||||
}
|
||||
interface Params$Resource$Accesspolicies$Accesslevels$List extends StandardParameters {
|
||||
/**
|
||||
* Auth client or API Key for the request
|
||||
*/
|
||||
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
|
||||
/**
|
||||
* Whether to return `BasicLevels` in the Cloud Common Expression language, as `CustomLevels`, rather than as `BasicLevels`. Defaults to returning `AccessLevels` in the format they were defined.
|
||||
*/
|
||||
accessLevelFormat?: string;
|
||||
/**
|
||||
* Number of Access Levels to include in the list. Default 100.
|
||||
*/
|
||||
pageSize?: number;
|
||||
/**
|
||||
* Next page token for the next batch of Access Level instances. Defaults to the first page of results.
|
||||
*/
|
||||
pageToken?: string;
|
||||
/**
|
||||
* Required. Resource name for the access policy to list Access Levels from. Format: `accessPolicies/{policy_id}`
|
||||
*/
|
||||
parent?: string;
|
||||
}
|
||||
interface Params$Resource$Accesspolicies$Accesslevels$Patch extends StandardParameters {
|
||||
/**
|
||||
* Auth client or API Key for the request
|
||||
*/
|
||||
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
|
||||
/**
|
||||
* Required. Resource name for the Access Level. The `short_name` component must begin with a letter and only include alphanumeric and '_'. Format: `accessPolicies/{policy_id}/accessLevels/{short_name}`
|
||||
*/
|
||||
name?: string;
|
||||
/**
|
||||
* Required. Mask to control which fields get updated. Must be non-empty.
|
||||
*/
|
||||
updateMask?: string;
|
||||
/**
|
||||
* Request body metadata
|
||||
*/
|
||||
requestBody?: Schema$AccessLevel;
|
||||
}
|
||||
class Resource$Accesspolicies$Serviceperimeters {
|
||||
context: APIRequestContext;
|
||||
constructor(context: APIRequestContext);
|
||||
/**
|
||||
* accesscontextmanager.accessPolicies.servicePerimeters.create
|
||||
* @desc Create an Service Perimeter. The longrunning operation from this RPC will have a successful status once the Service Perimeter has propagated to long-lasting storage. Service Perimeters containing errors will result in an error response for the first error encountered.
|
||||
* @alias accesscontextmanager.accessPolicies.servicePerimeters.create
|
||||
* @memberOf! ()
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.parent Required. Resource name for the access policy which owns this Service Perimeter. Format: `accessPolicies/{policy_id}`
|
||||
* @param {().ServicePerimeter} 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(params?: Params$Resource$Accesspolicies$Serviceperimeters$Create, options?: MethodOptions): GaxiosPromise<Schema$Operation>;
|
||||
create(params: Params$Resource$Accesspolicies$Serviceperimeters$Create, options: MethodOptions | BodyResponseCallback<Schema$Operation>, callback: BodyResponseCallback<Schema$Operation>): void;
|
||||
create(params: Params$Resource$Accesspolicies$Serviceperimeters$Create, callback: BodyResponseCallback<Schema$Operation>): void;
|
||||
create(callback: BodyResponseCallback<Schema$Operation>): void;
|
||||
/**
|
||||
* accesscontextmanager.accessPolicies.servicePerimeters.delete
|
||||
* @desc Delete an Service Perimeter by resource name. The longrunning operation from this RPC will have a successful status once the Service Perimeter has been removed from long-lasting storage.
|
||||
* @alias accesscontextmanager.accessPolicies.servicePerimeters.delete
|
||||
* @memberOf! ()
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.name Required. Resource name for the Service Perimeter. Format: `accessPolicies/{policy_id}/servicePerimeters/{service_perimeter_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
|
||||
*/
|
||||
delete(params?: Params$Resource$Accesspolicies$Serviceperimeters$Delete, options?: MethodOptions): GaxiosPromise<Schema$Operation>;
|
||||
delete(params: Params$Resource$Accesspolicies$Serviceperimeters$Delete, options: MethodOptions | BodyResponseCallback<Schema$Operation>, callback: BodyResponseCallback<Schema$Operation>): void;
|
||||
delete(params: Params$Resource$Accesspolicies$Serviceperimeters$Delete, callback: BodyResponseCallback<Schema$Operation>): void;
|
||||
delete(callback: BodyResponseCallback<Schema$Operation>): void;
|
||||
/**
|
||||
* accesscontextmanager.accessPolicies.servicePerimeters.get
|
||||
* @desc Get an Service Perimeter by resource name.
|
||||
* @alias accesscontextmanager.accessPolicies.servicePerimeters.get
|
||||
* @memberOf! ()
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.name Required. Resource name for the Service Perimeter. Format: `accessPolicies/{policy_id}/servicePerimeters/{service_perimeters_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(params?: Params$Resource$Accesspolicies$Serviceperimeters$Get, options?: MethodOptions): GaxiosPromise<Schema$ServicePerimeter>;
|
||||
get(params: Params$Resource$Accesspolicies$Serviceperimeters$Get, options: MethodOptions | BodyResponseCallback<Schema$ServicePerimeter>, callback: BodyResponseCallback<Schema$ServicePerimeter>): void;
|
||||
get(params: Params$Resource$Accesspolicies$Serviceperimeters$Get, callback: BodyResponseCallback<Schema$ServicePerimeter>): void;
|
||||
get(callback: BodyResponseCallback<Schema$ServicePerimeter>): void;
|
||||
/**
|
||||
* accesscontextmanager.accessPolicies.servicePerimeters.list
|
||||
* @desc List all Service Perimeters for an access policy.
|
||||
* @alias accesscontextmanager.accessPolicies.servicePerimeters.list
|
||||
* @memberOf! ()
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {integer=} params.pageSize Number of Service Perimeters to include in the list. Default 100.
|
||||
* @param {string=} params.pageToken Next page token for the next batch of Service Perimeter instances. Defaults to the first page of results.
|
||||
* @param {string} params.parent Required. Resource name for the access policy to list Service Perimeters from. Format: `accessPolicies/{policy_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
|
||||
*/
|
||||
list(params?: Params$Resource$Accesspolicies$Serviceperimeters$List, options?: MethodOptions): GaxiosPromise<Schema$ListServicePerimetersResponse>;
|
||||
list(params: Params$Resource$Accesspolicies$Serviceperimeters$List, options: MethodOptions | BodyResponseCallback<Schema$ListServicePerimetersResponse>, callback: BodyResponseCallback<Schema$ListServicePerimetersResponse>): void;
|
||||
list(params: Params$Resource$Accesspolicies$Serviceperimeters$List, callback: BodyResponseCallback<Schema$ListServicePerimetersResponse>): void;
|
||||
list(callback: BodyResponseCallback<Schema$ListServicePerimetersResponse>): void;
|
||||
/**
|
||||
* accesscontextmanager.accessPolicies.servicePerimeters.patch
|
||||
* @desc Update an Service Perimeter. The longrunning operation from this RPC will have a successful status once the changes to the Service Perimeter have propagated to long-lasting storage. Service Perimeter containing errors will result in an error response for the first error encountered.
|
||||
* @alias accesscontextmanager.accessPolicies.servicePerimeters.patch
|
||||
* @memberOf! ()
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.name Required. Resource name for the ServicePerimeter. The `short_name` component must begin with a letter and only include alphanumeric and '_'. Format: `accessPolicies/{policy_id}/servicePerimeters/{short_name}`
|
||||
* @param {string=} params.updateMask Required. Mask to control which fields get updated. Must be non-empty.
|
||||
* @param {().ServicePerimeter} 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(params?: Params$Resource$Accesspolicies$Serviceperimeters$Patch, options?: MethodOptions): GaxiosPromise<Schema$Operation>;
|
||||
patch(params: Params$Resource$Accesspolicies$Serviceperimeters$Patch, options: MethodOptions | BodyResponseCallback<Schema$Operation>, callback: BodyResponseCallback<Schema$Operation>): void;
|
||||
patch(params: Params$Resource$Accesspolicies$Serviceperimeters$Patch, callback: BodyResponseCallback<Schema$Operation>): void;
|
||||
patch(callback: BodyResponseCallback<Schema$Operation>): void;
|
||||
}
|
||||
interface Params$Resource$Accesspolicies$Serviceperimeters$Create extends StandardParameters {
|
||||
/**
|
||||
* Auth client or API Key for the request
|
||||
*/
|
||||
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
|
||||
/**
|
||||
* Required. Resource name for the access policy which owns this Service Perimeter. Format: `accessPolicies/{policy_id}`
|
||||
*/
|
||||
parent?: string;
|
||||
/**
|
||||
* Request body metadata
|
||||
*/
|
||||
requestBody?: Schema$ServicePerimeter;
|
||||
}
|
||||
interface Params$Resource$Accesspolicies$Serviceperimeters$Delete extends StandardParameters {
|
||||
/**
|
||||
* Auth client or API Key for the request
|
||||
*/
|
||||
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
|
||||
/**
|
||||
* Required. Resource name for the Service Perimeter. Format: `accessPolicies/{policy_id}/servicePerimeters/{service_perimeter_id}`
|
||||
*/
|
||||
name?: string;
|
||||
}
|
||||
interface Params$Resource$Accesspolicies$Serviceperimeters$Get extends StandardParameters {
|
||||
/**
|
||||
* Auth client or API Key for the request
|
||||
*/
|
||||
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
|
||||
/**
|
||||
* Required. Resource name for the Service Perimeter. Format: `accessPolicies/{policy_id}/servicePerimeters/{service_perimeters_id}`
|
||||
*/
|
||||
name?: string;
|
||||
}
|
||||
interface Params$Resource$Accesspolicies$Serviceperimeters$List extends StandardParameters {
|
||||
/**
|
||||
* Auth client or API Key for the request
|
||||
*/
|
||||
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
|
||||
/**
|
||||
* Number of Service Perimeters to include in the list. Default 100.
|
||||
*/
|
||||
pageSize?: number;
|
||||
/**
|
||||
* Next page token for the next batch of Service Perimeter instances. Defaults to the first page of results.
|
||||
*/
|
||||
pageToken?: string;
|
||||
/**
|
||||
* Required. Resource name for the access policy to list Service Perimeters from. Format: `accessPolicies/{policy_id}`
|
||||
*/
|
||||
parent?: string;
|
||||
}
|
||||
interface Params$Resource$Accesspolicies$Serviceperimeters$Patch extends StandardParameters {
|
||||
/**
|
||||
* Auth client or API Key for the request
|
||||
*/
|
||||
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
|
||||
/**
|
||||
* Required. Resource name for the ServicePerimeter. The `short_name` component must begin with a letter and only include alphanumeric and '_'. Format: `accessPolicies/{policy_id}/servicePerimeters/{short_name}`
|
||||
*/
|
||||
name?: string;
|
||||
/**
|
||||
* Required. Mask to control which fields get updated. Must be non-empty.
|
||||
*/
|
||||
updateMask?: string;
|
||||
/**
|
||||
* Request body metadata
|
||||
*/
|
||||
requestBody?: Schema$ServicePerimeter;
|
||||
}
|
||||
class Resource$Operations {
|
||||
context: APIRequestContext;
|
||||
constructor(context: APIRequestContext);
|
||||
/**
|
||||
* accesscontextmanager.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 accesscontextmanager.operations.get
|
||||
* @memberOf! ()
|
||||
*
|
||||
* @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(params?: Params$Resource$Operations$Get, options?: MethodOptions): GaxiosPromise<Schema$Operation>;
|
||||
get(params: Params$Resource$Operations$Get, options: MethodOptions | BodyResponseCallback<Schema$Operation>, callback: BodyResponseCallback<Schema$Operation>): void;
|
||||
get(params: Params$Resource$Operations$Get, callback: BodyResponseCallback<Schema$Operation>): void;
|
||||
get(callback: BodyResponseCallback<Schema$Operation>): void;
|
||||
}
|
||||
interface Params$Resource$Operations$Get extends StandardParameters {
|
||||
/**
|
||||
* Auth client or API Key for the request
|
||||
*/
|
||||
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
|
||||
/**
|
||||
* The name of the operation resource.
|
||||
*/
|
||||
name?: string;
|
||||
}
|
||||
}
|
||||
574
node_modules/googleapis/build/src/apis/accesscontextmanager/v1beta.js
generated
vendored
Normal file
574
node_modules/googleapis/build/src/apis/accesscontextmanager/v1beta.js
generated
vendored
Normal file
@@ -0,0 +1,574 @@
|
||||
"use strict";
|
||||
/**
|
||||
* Copyright 2019 Google LLC
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const googleapis_common_1 = require("googleapis-common");
|
||||
// tslint:disable: no-any
|
||||
// tslint:disable: class-name
|
||||
// tslint:disable: variable-name
|
||||
// tslint:disable: jsdoc-format
|
||||
// tslint:disable: no-namespace
|
||||
var accesscontextmanager_v1beta;
|
||||
(function (accesscontextmanager_v1beta) {
|
||||
/**
|
||||
* Access Context Manager API
|
||||
*
|
||||
* An API for setting attribute based access control to requests to GCP services.
|
||||
*
|
||||
* @example
|
||||
* const {google} = require('googleapis');
|
||||
* const accesscontextmanager = google.accesscontextmanager('v1beta');
|
||||
*
|
||||
* @namespace accesscontextmanager
|
||||
* @type {Function}
|
||||
* @version v1beta
|
||||
* @variation v1beta
|
||||
* @param {object=} options Options for Accesscontextmanager
|
||||
*/
|
||||
class Accesscontextmanager {
|
||||
constructor(options, google) {
|
||||
this.context = {
|
||||
_options: options || {},
|
||||
google,
|
||||
};
|
||||
this.accessPolicies = new Resource$Accesspolicies(this.context);
|
||||
this.operations = new Resource$Operations(this.context);
|
||||
}
|
||||
}
|
||||
accesscontextmanager_v1beta.Accesscontextmanager = Accesscontextmanager;
|
||||
class Resource$Accesspolicies {
|
||||
constructor(context) {
|
||||
this.context = context;
|
||||
this.accessLevels = new Resource$Accesspolicies$Accesslevels(this.context);
|
||||
this.servicePerimeters = new Resource$Accesspolicies$Serviceperimeters(this.context);
|
||||
}
|
||||
create(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1beta/accessPolicies').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
delete(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'DELETE',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: ['name'],
|
||||
pathParams: ['name'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
get(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: ['name'],
|
||||
pathParams: ['name'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
list(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1beta/accessPolicies').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
patch(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'PATCH',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: ['name'],
|
||||
pathParams: ['name'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
}
|
||||
accesscontextmanager_v1beta.Resource$Accesspolicies = Resource$Accesspolicies;
|
||||
class Resource$Accesspolicies$Accesslevels {
|
||||
constructor(context) {
|
||||
this.context = context;
|
||||
}
|
||||
create(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1beta/{+parent}/accessLevels').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: ['parent'],
|
||||
pathParams: ['parent'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
delete(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'DELETE',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: ['name'],
|
||||
pathParams: ['name'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
get(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: ['name'],
|
||||
pathParams: ['name'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
list(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1beta/{+parent}/accessLevels').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: ['parent'],
|
||||
pathParams: ['parent'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
patch(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'PATCH',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: ['name'],
|
||||
pathParams: ['name'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
}
|
||||
accesscontextmanager_v1beta.Resource$Accesspolicies$Accesslevels = Resource$Accesspolicies$Accesslevels;
|
||||
class Resource$Accesspolicies$Serviceperimeters {
|
||||
constructor(context) {
|
||||
this.context = context;
|
||||
}
|
||||
create(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1beta/{+parent}/servicePerimeters').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: ['parent'],
|
||||
pathParams: ['parent'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
delete(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'DELETE',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: ['name'],
|
||||
pathParams: ['name'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
get(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: ['name'],
|
||||
pathParams: ['name'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
list(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1beta/{+parent}/servicePerimeters').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: ['parent'],
|
||||
pathParams: ['parent'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
patch(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'PATCH',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: ['name'],
|
||||
pathParams: ['name'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
}
|
||||
accesscontextmanager_v1beta.Resource$Accesspolicies$Serviceperimeters = Resource$Accesspolicies$Serviceperimeters;
|
||||
class Resource$Operations {
|
||||
constructor(context) {
|
||||
this.context = context;
|
||||
}
|
||||
get(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback || {});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: ['name'],
|
||||
pathParams: ['name'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
}
|
||||
accesscontextmanager_v1beta.Resource$Operations = Resource$Operations;
|
||||
})(accesscontextmanager_v1beta = exports.accesscontextmanager_v1beta || (exports.accesscontextmanager_v1beta = {}));
|
||||
//# sourceMappingURL=v1beta.js.map
|
||||
18
node_modules/googleapis/build/src/apis/adexchangebuyer/index.d.ts
generated
vendored
Normal file
18
node_modules/googleapis/build/src/apis/adexchangebuyer/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
/*! THIS FILE IS AUTO-GENERATED */
|
||||
import { AuthPlus } from 'googleapis-common';
|
||||
import { adexchangebuyer_v1_2 } from './v1.2';
|
||||
import { adexchangebuyer_v1_3 } from './v1.3';
|
||||
import { adexchangebuyer_v1_4 } from './v1.4';
|
||||
export declare const VERSIONS: {
|
||||
'v1.2': typeof adexchangebuyer_v1_2.Adexchangebuyer;
|
||||
'v1.3': typeof adexchangebuyer_v1_3.Adexchangebuyer;
|
||||
'v1.4': typeof adexchangebuyer_v1_4.Adexchangebuyer;
|
||||
};
|
||||
export declare function adexchangebuyer(version: 'v1.2'): adexchangebuyer_v1_2.Adexchangebuyer;
|
||||
export declare function adexchangebuyer(options: adexchangebuyer_v1_2.Options): adexchangebuyer_v1_2.Adexchangebuyer;
|
||||
export declare function adexchangebuyer(version: 'v1.3'): adexchangebuyer_v1_3.Adexchangebuyer;
|
||||
export declare function adexchangebuyer(options: adexchangebuyer_v1_3.Options): adexchangebuyer_v1_3.Adexchangebuyer;
|
||||
export declare function adexchangebuyer(version: 'v1.4'): adexchangebuyer_v1_4.Adexchangebuyer;
|
||||
export declare function adexchangebuyer(options: adexchangebuyer_v1_4.Options): adexchangebuyer_v1_4.Adexchangebuyer;
|
||||
declare const auth: AuthPlus;
|
||||
export { auth };
|
||||
31
node_modules/googleapis/build/src/apis/adexchangebuyer/index.js
generated
vendored
Normal file
31
node_modules/googleapis/build/src/apis/adexchangebuyer/index.js
generated
vendored
Normal file
@@ -0,0 +1,31 @@
|
||||
"use strict";
|
||||
// Copyright 2019 Google LLC
|
||||
// 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.
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
/*! THIS FILE IS AUTO-GENERATED */
|
||||
const googleapis_common_1 = require("googleapis-common");
|
||||
const v1_2_1 = require("./v1.2");
|
||||
const v1_3_1 = require("./v1.3");
|
||||
const v1_4_1 = require("./v1.4");
|
||||
exports.VERSIONS = {
|
||||
'v1.2': v1_2_1.adexchangebuyer_v1_2.Adexchangebuyer,
|
||||
'v1.3': v1_3_1.adexchangebuyer_v1_3.Adexchangebuyer,
|
||||
'v1.4': v1_4_1.adexchangebuyer_v1_4.Adexchangebuyer,
|
||||
};
|
||||
function adexchangebuyer(versionOrOptions) {
|
||||
return googleapis_common_1.getAPI('adexchangebuyer', versionOrOptions, exports.VERSIONS, this);
|
||||
}
|
||||
exports.adexchangebuyer = adexchangebuyer;
|
||||
const auth = new googleapis_common_1.AuthPlus();
|
||||
exports.auth = auth;
|
||||
//# sourceMappingURL=index.js.map
|
||||
464
node_modules/googleapis/build/src/apis/adexchangebuyer/v1.2.d.ts
generated
vendored
Normal file
464
node_modules/googleapis/build/src/apis/adexchangebuyer/v1.2.d.ts
generated
vendored
Normal file
@@ -0,0 +1,464 @@
|
||||
/**
|
||||
* Copyright 2019 Google LLC
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
import { OAuth2Client, JWT, Compute, UserRefreshClient } from 'google-auth-library';
|
||||
import { GoogleConfigurable, MethodOptions, GlobalOptions, BodyResponseCallback, APIRequestContext } from 'googleapis-common';
|
||||
import { GaxiosPromise } from 'gaxios';
|
||||
export declare namespace adexchangebuyer_v1_2 {
|
||||
interface Options extends GlobalOptions {
|
||||
version: 'v1.2';
|
||||
}
|
||||
interface StandardParameters {
|
||||
/**
|
||||
* Data format for the response.
|
||||
*/
|
||||
alt?: string;
|
||||
/**
|
||||
* Selector specifying which fields to include in a partial response.
|
||||
*/
|
||||
fields?: string;
|
||||
/**
|
||||
* API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
|
||||
*/
|
||||
key?: string;
|
||||
/**
|
||||
* OAuth 2.0 token for the current user.
|
||||
*/
|
||||
oauth_token?: string;
|
||||
/**
|
||||
* Returns response with indentations and line breaks.
|
||||
*/
|
||||
prettyPrint?: boolean;
|
||||
/**
|
||||
* An opaque string that represents a user for quota purposes. Must not exceed 40 characters.
|
||||
*/
|
||||
quotaUser?: string;
|
||||
/**
|
||||
* Deprecated. Please use quotaUser instead.
|
||||
*/
|
||||
userIp?: string;
|
||||
}
|
||||
/**
|
||||
* 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
|
||||
*/
|
||||
class Adexchangebuyer {
|
||||
context: APIRequestContext;
|
||||
accounts: Resource$Accounts;
|
||||
creatives: Resource$Creatives;
|
||||
constructor(options: GlobalOptions, google?: GoogleConfigurable);
|
||||
}
|
||||
/**
|
||||
* Configuration data for an Ad Exchange buyer account.
|
||||
*/
|
||||
interface Schema$Account {
|
||||
/**
|
||||
* Your bidder locations that have distinct URLs.
|
||||
*/
|
||||
bidderLocation?: Array<{
|
||||
maximumQps?: number;
|
||||
region?: string;
|
||||
url?: string;
|
||||
}>;
|
||||
/**
|
||||
* The nid parameter value used in cookie match requests. Please contact your technical account manager if you need to change this.
|
||||
*/
|
||||
cookieMatchingNid?: string;
|
||||
/**
|
||||
* The base URL used in cookie match requests.
|
||||
*/
|
||||
cookieMatchingUrl?: string;
|
||||
/**
|
||||
* Account id.
|
||||
*/
|
||||
id?: number;
|
||||
/**
|
||||
* Resource type.
|
||||
*/
|
||||
kind?: string;
|
||||
/**
|
||||
* 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.
|
||||
*/
|
||||
maximumActiveCreatives?: number;
|
||||
/**
|
||||
* The sum of all bidderLocation.maximumQps values cannot exceed this. Please contact your technical account manager if you need to change this.
|
||||
*/
|
||||
maximumTotalQps?: number;
|
||||
/**
|
||||
* The number of creatives that this account inserted or bid with in the last 30 days.
|
||||
*/
|
||||
numberActiveCreatives?: number;
|
||||
}
|
||||
/**
|
||||
* An account feed lists Ad Exchange buyer accounts that the user has access to. Each entry in the feed corresponds to a single buyer account.
|
||||
*/
|
||||
interface Schema$AccountsList {
|
||||
/**
|
||||
* A list of accounts.
|
||||
*/
|
||||
items?: Schema$Account[];
|
||||
/**
|
||||
* Resource type.
|
||||
*/
|
||||
kind?: string;
|
||||
}
|
||||
/**
|
||||
* A creative and its classification data.
|
||||
*/
|
||||
interface Schema$Creative {
|
||||
/**
|
||||
* Account id.
|
||||
*/
|
||||
accountId?: number;
|
||||
/**
|
||||
* Detected advertiser id, if any. Read-only. This field should not be set in requests.
|
||||
*/
|
||||
advertiserId?: string[];
|
||||
/**
|
||||
* The name of the company being advertised in the creative.
|
||||
*/
|
||||
advertiserName?: string;
|
||||
/**
|
||||
* The agency id for this creative.
|
||||
*/
|
||||
agencyId?: string;
|
||||
/**
|
||||
* 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).
|
||||
*/
|
||||
apiUploadTimestamp?: string;
|
||||
/**
|
||||
* All attributes for the ads that may be shown from this snippet.
|
||||
*/
|
||||
attribute?: number[];
|
||||
/**
|
||||
* A buyer-specific id identifying the creative in this ad.
|
||||
*/
|
||||
buyerCreativeId?: string;
|
||||
/**
|
||||
* The set of destination urls for the snippet.
|
||||
*/
|
||||
clickThroughUrl?: string[];
|
||||
/**
|
||||
* Shows any corrections that were applied to this creative. Read-only. This field should not be set in requests.
|
||||
*/
|
||||
corrections?: Array<{
|
||||
details?: string[];
|
||||
reason?: string;
|
||||
}>;
|
||||
/**
|
||||
* 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.
|
||||
*/
|
||||
disapprovalReasons?: Array<{
|
||||
details?: string[];
|
||||
reason?: string;
|
||||
}>;
|
||||
/**
|
||||
* The filtering reasons for the creative. Read-only. This field should not be set in requests.
|
||||
*/
|
||||
filteringReasons?: {
|
||||
date?: string;
|
||||
reasons?: Array<{
|
||||
filteringCount?: string;
|
||||
filteringStatus?: number;
|
||||
}>;
|
||||
};
|
||||
/**
|
||||
* Ad height.
|
||||
*/
|
||||
height?: number;
|
||||
/**
|
||||
* The HTML snippet that displays the ad when inserted in the web page. If set, videoURL should not be set.
|
||||
*/
|
||||
HTMLSnippet?: string;
|
||||
/**
|
||||
* The set of urls to be called to record an impression.
|
||||
*/
|
||||
impressionTrackingUrl?: string[];
|
||||
/**
|
||||
* Resource type.
|
||||
*/
|
||||
kind?: string;
|
||||
/**
|
||||
* Detected product categories, if any. Read-only. This field should not be set in requests.
|
||||
*/
|
||||
productCategories?: number[];
|
||||
/**
|
||||
* All restricted categories for the ads that may be shown from this snippet.
|
||||
*/
|
||||
restrictedCategories?: number[];
|
||||
/**
|
||||
* Detected sensitive categories, if any. Read-only. This field should not be set in requests.
|
||||
*/
|
||||
sensitiveCategories?: number[];
|
||||
/**
|
||||
* Creative serving status. Read-only. This field should not be set in requests.
|
||||
*/
|
||||
status?: string;
|
||||
/**
|
||||
* All vendor types for the ads that may be shown from this snippet.
|
||||
*/
|
||||
vendorType?: number[];
|
||||
/**
|
||||
* The version for this creative. Read-only. This field should not be set in requests.
|
||||
*/
|
||||
version?: number;
|
||||
/**
|
||||
* The url to fetch a video ad. If set, HTMLSnippet should not be set.
|
||||
*/
|
||||
videoURL?: string;
|
||||
/**
|
||||
* Ad width.
|
||||
*/
|
||||
width?: number;
|
||||
}
|
||||
/**
|
||||
* The creatives feed lists the active creatives for the Ad Exchange buyer accounts that the user has access to. Each entry in the feed corresponds to a single creative.
|
||||
*/
|
||||
interface Schema$CreativesList {
|
||||
/**
|
||||
* A list of creatives.
|
||||
*/
|
||||
items?: Schema$Creative[];
|
||||
/**
|
||||
* Resource type.
|
||||
*/
|
||||
kind?: string;
|
||||
/**
|
||||
* Continuation token used to page through creatives. To retrieve the next page of results, set the next request's "pageToken" value to this.
|
||||
*/
|
||||
nextPageToken?: string;
|
||||
}
|
||||
class Resource$Accounts {
|
||||
context: APIRequestContext;
|
||||
constructor(context: APIRequestContext);
|
||||
/**
|
||||
* adexchangebuyer.accounts.get
|
||||
* @desc Gets one account by ID.
|
||||
* @alias adexchangebuyer.accounts.get
|
||||
* @memberOf! ()
|
||||
*
|
||||
* @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(params?: Params$Resource$Accounts$Get, options?: MethodOptions): GaxiosPromise<Schema$Account>;
|
||||
get(params: Params$Resource$Accounts$Get, options: MethodOptions | BodyResponseCallback<Schema$Account>, callback: BodyResponseCallback<Schema$Account>): void;
|
||||
get(params: Params$Resource$Accounts$Get, callback: BodyResponseCallback<Schema$Account>): void;
|
||||
get(callback: BodyResponseCallback<Schema$Account>): void;
|
||||
/**
|
||||
* adexchangebuyer.accounts.list
|
||||
* @desc Retrieves the authenticated user's list of accounts.
|
||||
* @alias adexchangebuyer.accounts.list
|
||||
* @memberOf! ()
|
||||
*
|
||||
* @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(params?: Params$Resource$Accounts$List, options?: MethodOptions): GaxiosPromise<Schema$AccountsList>;
|
||||
list(params: Params$Resource$Accounts$List, options: MethodOptions | BodyResponseCallback<Schema$AccountsList>, callback: BodyResponseCallback<Schema$AccountsList>): void;
|
||||
list(params: Params$Resource$Accounts$List, callback: BodyResponseCallback<Schema$AccountsList>): void;
|
||||
list(callback: BodyResponseCallback<Schema$AccountsList>): void;
|
||||
/**
|
||||
* adexchangebuyer.accounts.patch
|
||||
* @desc Updates an existing account. This method supports patch semantics.
|
||||
* @alias adexchangebuyer.accounts.patch
|
||||
* @memberOf! ()
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {integer} params.id The account id
|
||||
* @param {().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(params?: Params$Resource$Accounts$Patch, options?: MethodOptions): GaxiosPromise<Schema$Account>;
|
||||
patch(params: Params$Resource$Accounts$Patch, options: MethodOptions | BodyResponseCallback<Schema$Account>, callback: BodyResponseCallback<Schema$Account>): void;
|
||||
patch(params: Params$Resource$Accounts$Patch, callback: BodyResponseCallback<Schema$Account>): void;
|
||||
patch(callback: BodyResponseCallback<Schema$Account>): void;
|
||||
/**
|
||||
* adexchangebuyer.accounts.update
|
||||
* @desc Updates an existing account.
|
||||
* @alias adexchangebuyer.accounts.update
|
||||
* @memberOf! ()
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {integer} params.id The account id
|
||||
* @param {().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(params?: Params$Resource$Accounts$Update, options?: MethodOptions): GaxiosPromise<Schema$Account>;
|
||||
update(params: Params$Resource$Accounts$Update, options: MethodOptions | BodyResponseCallback<Schema$Account>, callback: BodyResponseCallback<Schema$Account>): void;
|
||||
update(params: Params$Resource$Accounts$Update, callback: BodyResponseCallback<Schema$Account>): void;
|
||||
update(callback: BodyResponseCallback<Schema$Account>): void;
|
||||
}
|
||||
interface Params$Resource$Accounts$Get extends StandardParameters {
|
||||
/**
|
||||
* Auth client or API Key for the request
|
||||
*/
|
||||
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
|
||||
/**
|
||||
* The account id
|
||||
*/
|
||||
id?: number;
|
||||
}
|
||||
interface Params$Resource$Accounts$List extends StandardParameters {
|
||||
/**
|
||||
* Auth client or API Key for the request
|
||||
*/
|
||||
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
|
||||
}
|
||||
interface Params$Resource$Accounts$Patch extends StandardParameters {
|
||||
/**
|
||||
* Auth client or API Key for the request
|
||||
*/
|
||||
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
|
||||
/**
|
||||
* The account id
|
||||
*/
|
||||
id?: number;
|
||||
/**
|
||||
* Request body metadata
|
||||
*/
|
||||
requestBody?: Schema$Account;
|
||||
}
|
||||
interface Params$Resource$Accounts$Update extends StandardParameters {
|
||||
/**
|
||||
* Auth client or API Key for the request
|
||||
*/
|
||||
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
|
||||
/**
|
||||
* The account id
|
||||
*/
|
||||
id?: number;
|
||||
/**
|
||||
* Request body metadata
|
||||
*/
|
||||
requestBody?: Schema$Account;
|
||||
}
|
||||
class Resource$Creatives {
|
||||
context: APIRequestContext;
|
||||
constructor(context: APIRequestContext);
|
||||
/**
|
||||
* 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! ()
|
||||
*
|
||||
* @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(params?: Params$Resource$Creatives$Get, options?: MethodOptions): GaxiosPromise<Schema$Creative>;
|
||||
get(params: Params$Resource$Creatives$Get, options: MethodOptions | BodyResponseCallback<Schema$Creative>, callback: BodyResponseCallback<Schema$Creative>): void;
|
||||
get(params: Params$Resource$Creatives$Get, callback: BodyResponseCallback<Schema$Creative>): void;
|
||||
get(callback: BodyResponseCallback<Schema$Creative>): void;
|
||||
/**
|
||||
* adexchangebuyer.creatives.insert
|
||||
* @desc Submit a new creative.
|
||||
* @alias adexchangebuyer.creatives.insert
|
||||
* @memberOf! ()
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {().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(params?: Params$Resource$Creatives$Insert, options?: MethodOptions): GaxiosPromise<Schema$Creative>;
|
||||
insert(params: Params$Resource$Creatives$Insert, options: MethodOptions | BodyResponseCallback<Schema$Creative>, callback: BodyResponseCallback<Schema$Creative>): void;
|
||||
insert(params: Params$Resource$Creatives$Insert, callback: BodyResponseCallback<Schema$Creative>): void;
|
||||
insert(callback: BodyResponseCallback<Schema$Creative>): void;
|
||||
/**
|
||||
* 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! ()
|
||||
*
|
||||
* @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(params?: Params$Resource$Creatives$List, options?: MethodOptions): GaxiosPromise<Schema$CreativesList>;
|
||||
list(params: Params$Resource$Creatives$List, options: MethodOptions | BodyResponseCallback<Schema$CreativesList>, callback: BodyResponseCallback<Schema$CreativesList>): void;
|
||||
list(params: Params$Resource$Creatives$List, callback: BodyResponseCallback<Schema$CreativesList>): void;
|
||||
list(callback: BodyResponseCallback<Schema$CreativesList>): void;
|
||||
}
|
||||
interface Params$Resource$Creatives$Get extends StandardParameters {
|
||||
/**
|
||||
* Auth client or API Key for the request
|
||||
*/
|
||||
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
|
||||
/**
|
||||
* The id for the account that will serve this creative.
|
||||
*/
|
||||
accountId?: number;
|
||||
/**
|
||||
* The buyer-specific id for this creative.
|
||||
*/
|
||||
buyerCreativeId?: string;
|
||||
}
|
||||
interface Params$Resource$Creatives$Insert extends StandardParameters {
|
||||
/**
|
||||
* Auth client or API Key for the request
|
||||
*/
|
||||
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
|
||||
/**
|
||||
* Request body metadata
|
||||
*/
|
||||
requestBody?: Schema$Creative;
|
||||
}
|
||||
interface Params$Resource$Creatives$List extends StandardParameters {
|
||||
/**
|
||||
* Auth client or API Key for the request
|
||||
*/
|
||||
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
|
||||
/**
|
||||
* Maximum number of entries returned on one result page. If not set, the default is 100. Optional.
|
||||
*/
|
||||
maxResults?: number;
|
||||
/**
|
||||
* 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.
|
||||
*/
|
||||
pageToken?: string;
|
||||
/**
|
||||
* When specified, only creatives having the given status are returned.
|
||||
*/
|
||||
statusFilter?: string;
|
||||
}
|
||||
}
|
||||
276
node_modules/googleapis/build/src/apis/adexchangebuyer/v1.2.js
generated
vendored
Normal file
276
node_modules/googleapis/build/src/apis/adexchangebuyer/v1.2.js
generated
vendored
Normal file
@@ -0,0 +1,276 @@
|
||||
"use strict";
|
||||
/**
|
||||
* Copyright 2019 Google LLC
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const googleapis_common_1 = require("googleapis-common");
|
||||
// tslint:disable: no-any
|
||||
// tslint:disable: class-name
|
||||
// tslint:disable: variable-name
|
||||
// tslint:disable: jsdoc-format
|
||||
// tslint:disable: no-namespace
|
||||
var adexchangebuyer_v1_2;
|
||||
(function (adexchangebuyer_v1_2) {
|
||||
/**
|
||||
* 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
|
||||
*/
|
||||
class Adexchangebuyer {
|
||||
constructor(options, google) {
|
||||
this.context = {
|
||||
_options: options || {},
|
||||
google,
|
||||
};
|
||||
this.accounts = new Resource$Accounts(this.context);
|
||||
this.creatives = new Resource$Creatives(this.context);
|
||||
}
|
||||
}
|
||||
adexchangebuyer_v1_2.Adexchangebuyer = Adexchangebuyer;
|
||||
class Resource$Accounts {
|
||||
constructor(context) {
|
||||
this.context = context;
|
||||
}
|
||||
get(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback || {});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
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,
|
||||
requiredParams: ['id'],
|
||||
pathParams: ['id'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
list(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback || {});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
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,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
patch(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback || {});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
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,
|
||||
requiredParams: ['id'],
|
||||
pathParams: ['id'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
update(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback || {});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
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,
|
||||
requiredParams: ['id'],
|
||||
pathParams: ['id'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
}
|
||||
adexchangebuyer_v1_2.Resource$Accounts = Resource$Accounts;
|
||||
class Resource$Creatives {
|
||||
constructor(context) {
|
||||
this.context = context;
|
||||
}
|
||||
get(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback || {});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
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,
|
||||
requiredParams: ['accountId', 'buyerCreativeId'],
|
||||
pathParams: ['accountId', 'buyerCreativeId'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
insert(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback || {});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
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,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
list(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback || {});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
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,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
}
|
||||
adexchangebuyer_v1_2.Resource$Creatives = Resource$Creatives;
|
||||
})(adexchangebuyer_v1_2 = exports.adexchangebuyer_v1_2 || (exports.adexchangebuyer_v1_2 = {}));
|
||||
//# sourceMappingURL=v1.2.js.map
|
||||
1325
node_modules/googleapis/build/src/apis/adexchangebuyer/v1.3.d.ts
generated
vendored
Normal file
1325
node_modules/googleapis/build/src/apis/adexchangebuyer/v1.3.d.ts
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
745
node_modules/googleapis/build/src/apis/adexchangebuyer/v1.3.js
generated
vendored
Normal file
745
node_modules/googleapis/build/src/apis/adexchangebuyer/v1.3.js
generated
vendored
Normal file
@@ -0,0 +1,745 @@
|
||||
"use strict";
|
||||
/**
|
||||
* Copyright 2019 Google LLC
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const googleapis_common_1 = require("googleapis-common");
|
||||
// tslint:disable: no-any
|
||||
// tslint:disable: class-name
|
||||
// tslint:disable: variable-name
|
||||
// tslint:disable: jsdoc-format
|
||||
// tslint:disable: no-namespace
|
||||
var adexchangebuyer_v1_3;
|
||||
(function (adexchangebuyer_v1_3) {
|
||||
/**
|
||||
* 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
|
||||
*/
|
||||
class Adexchangebuyer {
|
||||
constructor(options, google) {
|
||||
this.context = {
|
||||
_options: options || {},
|
||||
google,
|
||||
};
|
||||
this.accounts = new Resource$Accounts(this.context);
|
||||
this.billingInfo = new Resource$Billinginfo(this.context);
|
||||
this.budget = new Resource$Budget(this.context);
|
||||
this.creatives = new Resource$Creatives(this.context);
|
||||
this.directDeals = new Resource$Directdeals(this.context);
|
||||
this.performanceReport = new Resource$Performancereport(this.context);
|
||||
this.pretargetingConfig = new Resource$Pretargetingconfig(this.context);
|
||||
}
|
||||
}
|
||||
adexchangebuyer_v1_3.Adexchangebuyer = Adexchangebuyer;
|
||||
class Resource$Accounts {
|
||||
constructor(context) {
|
||||
this.context = context;
|
||||
}
|
||||
get(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback || {});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
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,
|
||||
requiredParams: ['id'],
|
||||
pathParams: ['id'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
list(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback || {});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
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,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
patch(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback || {});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
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,
|
||||
requiredParams: ['id'],
|
||||
pathParams: ['id'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
update(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback || {});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
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,
|
||||
requiredParams: ['id'],
|
||||
pathParams: ['id'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
}
|
||||
adexchangebuyer_v1_3.Resource$Accounts = Resource$Accounts;
|
||||
class Resource$Billinginfo {
|
||||
constructor(context) {
|
||||
this.context = context;
|
||||
}
|
||||
get(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback || {});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
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,
|
||||
requiredParams: ['accountId'],
|
||||
pathParams: ['accountId'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
list(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback || {});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
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,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
}
|
||||
adexchangebuyer_v1_3.Resource$Billinginfo = Resource$Billinginfo;
|
||||
class Resource$Budget {
|
||||
constructor(context) {
|
||||
this.context = context;
|
||||
}
|
||||
get(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback || {});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
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,
|
||||
requiredParams: ['accountId', 'billingId'],
|
||||
pathParams: ['accountId', 'billingId'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
patch(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback || {});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
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,
|
||||
requiredParams: ['accountId', 'billingId'],
|
||||
pathParams: ['accountId', 'billingId'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
update(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback || {});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
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,
|
||||
requiredParams: ['accountId', 'billingId'],
|
||||
pathParams: ['accountId', 'billingId'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
}
|
||||
adexchangebuyer_v1_3.Resource$Budget = Resource$Budget;
|
||||
class Resource$Creatives {
|
||||
constructor(context) {
|
||||
this.context = context;
|
||||
}
|
||||
get(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback || {});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
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,
|
||||
requiredParams: ['accountId', 'buyerCreativeId'],
|
||||
pathParams: ['accountId', 'buyerCreativeId'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
insert(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback || {});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
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,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
list(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback || {});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
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,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
}
|
||||
adexchangebuyer_v1_3.Resource$Creatives = Resource$Creatives;
|
||||
class Resource$Directdeals {
|
||||
constructor(context) {
|
||||
this.context = context;
|
||||
}
|
||||
get(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback || {});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
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,
|
||||
requiredParams: ['id'],
|
||||
pathParams: ['id'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
list(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback || {});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
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,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
}
|
||||
adexchangebuyer_v1_3.Resource$Directdeals = Resource$Directdeals;
|
||||
class Resource$Performancereport {
|
||||
constructor(context) {
|
||||
this.context = context;
|
||||
}
|
||||
list(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
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,
|
||||
requiredParams: ['accountId', 'endDateTime', 'startDateTime'],
|
||||
pathParams: [],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
}
|
||||
adexchangebuyer_v1_3.Resource$Performancereport = Resource$Performancereport;
|
||||
class Resource$Pretargetingconfig {
|
||||
constructor(context) {
|
||||
this.context = context;
|
||||
}
|
||||
delete(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
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,
|
||||
requiredParams: ['accountId', 'configId'],
|
||||
pathParams: ['accountId', 'configId'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
get(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
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,
|
||||
requiredParams: ['accountId', 'configId'],
|
||||
pathParams: ['accountId', 'configId'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
insert(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
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,
|
||||
requiredParams: ['accountId'],
|
||||
pathParams: ['accountId'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
list(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
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,
|
||||
requiredParams: ['accountId'],
|
||||
pathParams: ['accountId'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
patch(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
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,
|
||||
requiredParams: ['accountId', 'configId'],
|
||||
pathParams: ['accountId', 'configId'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
update(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
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,
|
||||
requiredParams: ['accountId', 'configId'],
|
||||
pathParams: ['accountId', 'configId'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
}
|
||||
adexchangebuyer_v1_3.Resource$Pretargetingconfig = Resource$Pretargetingconfig;
|
||||
})(adexchangebuyer_v1_3 = exports.adexchangebuyer_v1_3 || (exports.adexchangebuyer_v1_3 = {}));
|
||||
//# sourceMappingURL=v1.3.js.map
|
||||
2854
node_modules/googleapis/build/src/apis/adexchangebuyer/v1.4.d.ts
generated
vendored
Normal file
2854
node_modules/googleapis/build/src/apis/adexchangebuyer/v1.4.d.ts
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1312
node_modules/googleapis/build/src/apis/adexchangebuyer/v1.4.js
generated
vendored
Normal file
1312
node_modules/googleapis/build/src/apis/adexchangebuyer/v1.4.js
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
10
node_modules/googleapis/build/src/apis/adexchangebuyer2/index.d.ts
generated
vendored
Normal file
10
node_modules/googleapis/build/src/apis/adexchangebuyer2/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
/*! THIS FILE IS AUTO-GENERATED */
|
||||
import { AuthPlus } from 'googleapis-common';
|
||||
import { adexchangebuyer2_v2beta1 } from './v2beta1';
|
||||
export declare const VERSIONS: {
|
||||
v2beta1: typeof adexchangebuyer2_v2beta1.Adexchangebuyer2;
|
||||
};
|
||||
export declare function adexchangebuyer2(version: 'v2beta1'): adexchangebuyer2_v2beta1.Adexchangebuyer2;
|
||||
export declare function adexchangebuyer2(options: adexchangebuyer2_v2beta1.Options): adexchangebuyer2_v2beta1.Adexchangebuyer2;
|
||||
declare const auth: AuthPlus;
|
||||
export { auth };
|
||||
27
node_modules/googleapis/build/src/apis/adexchangebuyer2/index.js
generated
vendored
Normal file
27
node_modules/googleapis/build/src/apis/adexchangebuyer2/index.js
generated
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
"use strict";
|
||||
// Copyright 2019 Google LLC
|
||||
// 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.
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
/*! THIS FILE IS AUTO-GENERATED */
|
||||
const googleapis_common_1 = require("googleapis-common");
|
||||
const v2beta1_1 = require("./v2beta1");
|
||||
exports.VERSIONS = {
|
||||
v2beta1: v2beta1_1.adexchangebuyer2_v2beta1.Adexchangebuyer2,
|
||||
};
|
||||
function adexchangebuyer2(versionOrOptions) {
|
||||
return googleapis_common_1.getAPI('adexchangebuyer2', versionOrOptions, exports.VERSIONS, this);
|
||||
}
|
||||
exports.adexchangebuyer2 = adexchangebuyer2;
|
||||
const auth = new googleapis_common_1.AuthPlus();
|
||||
exports.auth = auth;
|
||||
//# sourceMappingURL=index.js.map
|
||||
4468
node_modules/googleapis/build/src/apis/adexchangebuyer2/v2beta1.d.ts
generated
vendored
Normal file
4468
node_modules/googleapis/build/src/apis/adexchangebuyer2/v2beta1.d.ts
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
2235
node_modules/googleapis/build/src/apis/adexchangebuyer2/v2beta1.js
generated
vendored
Normal file
2235
node_modules/googleapis/build/src/apis/adexchangebuyer2/v2beta1.js
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
10
node_modules/googleapis/build/src/apis/adexperiencereport/index.d.ts
generated
vendored
Normal file
10
node_modules/googleapis/build/src/apis/adexperiencereport/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
/*! THIS FILE IS AUTO-GENERATED */
|
||||
import { AuthPlus } from 'googleapis-common';
|
||||
import { adexperiencereport_v1 } from './v1';
|
||||
export declare const VERSIONS: {
|
||||
v1: typeof adexperiencereport_v1.Adexperiencereport;
|
||||
};
|
||||
export declare function adexperiencereport(version: 'v1'): adexperiencereport_v1.Adexperiencereport;
|
||||
export declare function adexperiencereport(options: adexperiencereport_v1.Options): adexperiencereport_v1.Adexperiencereport;
|
||||
declare const auth: AuthPlus;
|
||||
export { auth };
|
||||
27
node_modules/googleapis/build/src/apis/adexperiencereport/index.js
generated
vendored
Normal file
27
node_modules/googleapis/build/src/apis/adexperiencereport/index.js
generated
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
"use strict";
|
||||
// Copyright 2019 Google LLC
|
||||
// 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.
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
/*! THIS FILE IS AUTO-GENERATED */
|
||||
const googleapis_common_1 = require("googleapis-common");
|
||||
const v1_1 = require("./v1");
|
||||
exports.VERSIONS = {
|
||||
v1: v1_1.adexperiencereport_v1.Adexperiencereport,
|
||||
};
|
||||
function adexperiencereport(versionOrOptions) {
|
||||
return googleapis_common_1.getAPI('adexperiencereport', versionOrOptions, exports.VERSIONS, this);
|
||||
}
|
||||
exports.adexperiencereport = adexperiencereport;
|
||||
const auth = new googleapis_common_1.AuthPlus();
|
||||
exports.auth = auth;
|
||||
//# sourceMappingURL=index.js.map
|
||||
204
node_modules/googleapis/build/src/apis/adexperiencereport/v1.d.ts
generated
vendored
Normal file
204
node_modules/googleapis/build/src/apis/adexperiencereport/v1.d.ts
generated
vendored
Normal file
@@ -0,0 +1,204 @@
|
||||
/**
|
||||
* Copyright 2019 Google LLC
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
import { OAuth2Client, JWT, Compute, UserRefreshClient } from 'google-auth-library';
|
||||
import { GoogleConfigurable, MethodOptions, GlobalOptions, BodyResponseCallback, APIRequestContext } from 'googleapis-common';
|
||||
import { GaxiosPromise } from 'gaxios';
|
||||
export declare namespace adexperiencereport_v1 {
|
||||
interface Options extends GlobalOptions {
|
||||
version: 'v1';
|
||||
}
|
||||
interface StandardParameters {
|
||||
/**
|
||||
* V1 error format.
|
||||
*/
|
||||
'$.xgafv'?: string;
|
||||
/**
|
||||
* OAuth access token.
|
||||
*/
|
||||
access_token?: string;
|
||||
/**
|
||||
* Data format for response.
|
||||
*/
|
||||
alt?: string;
|
||||
/**
|
||||
* JSONP
|
||||
*/
|
||||
callback?: string;
|
||||
/**
|
||||
* Selector specifying which fields to include in a partial response.
|
||||
*/
|
||||
fields?: string;
|
||||
/**
|
||||
* API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
|
||||
*/
|
||||
key?: string;
|
||||
/**
|
||||
* OAuth 2.0 token for the current user.
|
||||
*/
|
||||
oauth_token?: string;
|
||||
/**
|
||||
* Returns response with indentations and line breaks.
|
||||
*/
|
||||
prettyPrint?: boolean;
|
||||
/**
|
||||
* Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
*/
|
||||
quotaUser?: string;
|
||||
/**
|
||||
* Legacy upload protocol for media (e.g. "media", "multipart").
|
||||
*/
|
||||
uploadType?: string;
|
||||
/**
|
||||
* Upload protocol for media (e.g. "raw", "multipart").
|
||||
*/
|
||||
upload_protocol?: string;
|
||||
}
|
||||
/**
|
||||
* Ad Experience Report API
|
||||
*
|
||||
* Views Ad Experience Report data, and gets 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
|
||||
*/
|
||||
class Adexperiencereport {
|
||||
context: APIRequestContext;
|
||||
sites: Resource$Sites;
|
||||
violatingSites: Resource$Violatingsites;
|
||||
constructor(options: GlobalOptions, google?: GoogleConfigurable);
|
||||
}
|
||||
/**
|
||||
* Summary of the ad experience rating of a site for a specific platform.
|
||||
*/
|
||||
interface Schema$PlatformSummary {
|
||||
/**
|
||||
* The status of the site reviewed for the Better Ads Standards.
|
||||
*/
|
||||
betterAdsStatus?: string;
|
||||
/**
|
||||
* The date on which ad filtering begins.
|
||||
*/
|
||||
enforcementTime?: string;
|
||||
/**
|
||||
* The ad filtering status of the site.
|
||||
*/
|
||||
filterStatus?: string;
|
||||
/**
|
||||
* The last time that the site changed status.
|
||||
*/
|
||||
lastChangeTime?: string;
|
||||
/**
|
||||
* The assigned regions for the site and platform.
|
||||
*/
|
||||
region?: string[];
|
||||
/**
|
||||
* A link that leads to a full ad experience report.
|
||||
*/
|
||||
reportUrl?: string;
|
||||
/**
|
||||
* Whether the site is currently under review.
|
||||
*/
|
||||
underReview?: boolean;
|
||||
}
|
||||
/**
|
||||
* Response message for GetSiteSummary.
|
||||
*/
|
||||
interface Schema$SiteSummaryResponse {
|
||||
/**
|
||||
* Summary for the desktop review of the site.
|
||||
*/
|
||||
desktopSummary?: Schema$PlatformSummary;
|
||||
/**
|
||||
* Summary for the mobile review of the site.
|
||||
*/
|
||||
mobileSummary?: Schema$PlatformSummary;
|
||||
/**
|
||||
* The name of the site reviewed.
|
||||
*/
|
||||
reviewedSite?: string;
|
||||
}
|
||||
/**
|
||||
* Response message for ListViolatingSites.
|
||||
*/
|
||||
interface Schema$ViolatingSitesResponse {
|
||||
/**
|
||||
* A list of summaries of violating sites.
|
||||
*/
|
||||
violatingSites?: Schema$SiteSummaryResponse[];
|
||||
}
|
||||
class Resource$Sites {
|
||||
context: APIRequestContext;
|
||||
constructor(context: APIRequestContext);
|
||||
/**
|
||||
* adexperiencereport.sites.get
|
||||
* @desc Gets a summary of the ad experience rating of a site.
|
||||
* @alias adexperiencereport.sites.get
|
||||
* @memberOf! ()
|
||||
*
|
||||
* @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(params?: Params$Resource$Sites$Get, options?: MethodOptions): GaxiosPromise<Schema$SiteSummaryResponse>;
|
||||
get(params: Params$Resource$Sites$Get, options: MethodOptions | BodyResponseCallback<Schema$SiteSummaryResponse>, callback: BodyResponseCallback<Schema$SiteSummaryResponse>): void;
|
||||
get(params: Params$Resource$Sites$Get, callback: BodyResponseCallback<Schema$SiteSummaryResponse>): void;
|
||||
get(callback: BodyResponseCallback<Schema$SiteSummaryResponse>): void;
|
||||
}
|
||||
interface Params$Resource$Sites$Get extends StandardParameters {
|
||||
/**
|
||||
* Auth client or API Key for the request
|
||||
*/
|
||||
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
|
||||
/**
|
||||
* 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.
|
||||
*/
|
||||
name?: string;
|
||||
}
|
||||
class Resource$Violatingsites {
|
||||
context: APIRequestContext;
|
||||
constructor(context: APIRequestContext);
|
||||
/**
|
||||
* adexperiencereport.violatingSites.list
|
||||
* @desc Lists sites with Ad Experience Report statuses of "Failing" or "Warning".
|
||||
* @alias adexperiencereport.violatingSites.list
|
||||
* @memberOf! ()
|
||||
*
|
||||
* @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(params?: Params$Resource$Violatingsites$List, options?: MethodOptions): GaxiosPromise<Schema$ViolatingSitesResponse>;
|
||||
list(params: Params$Resource$Violatingsites$List, options: MethodOptions | BodyResponseCallback<Schema$ViolatingSitesResponse>, callback: BodyResponseCallback<Schema$ViolatingSitesResponse>): void;
|
||||
list(params: Params$Resource$Violatingsites$List, callback: BodyResponseCallback<Schema$ViolatingSitesResponse>): void;
|
||||
list(callback: BodyResponseCallback<Schema$ViolatingSitesResponse>): void;
|
||||
}
|
||||
interface Params$Resource$Violatingsites$List extends StandardParameters {
|
||||
/**
|
||||
* Auth client or API Key for the request
|
||||
*/
|
||||
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
|
||||
}
|
||||
}
|
||||
126
node_modules/googleapis/build/src/apis/adexperiencereport/v1.js
generated
vendored
Normal file
126
node_modules/googleapis/build/src/apis/adexperiencereport/v1.js
generated
vendored
Normal file
@@ -0,0 +1,126 @@
|
||||
"use strict";
|
||||
/**
|
||||
* Copyright 2019 Google LLC
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const googleapis_common_1 = require("googleapis-common");
|
||||
// tslint:disable: no-any
|
||||
// tslint:disable: class-name
|
||||
// tslint:disable: variable-name
|
||||
// tslint:disable: jsdoc-format
|
||||
// tslint:disable: no-namespace
|
||||
var adexperiencereport_v1;
|
||||
(function (adexperiencereport_v1) {
|
||||
/**
|
||||
* Ad Experience Report API
|
||||
*
|
||||
* Views Ad Experience Report data, and gets 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
|
||||
*/
|
||||
class Adexperiencereport {
|
||||
constructor(options, google) {
|
||||
this.context = {
|
||||
_options: options || {},
|
||||
google,
|
||||
};
|
||||
this.sites = new Resource$Sites(this.context);
|
||||
this.violatingSites = new Resource$Violatingsites(this.context);
|
||||
}
|
||||
}
|
||||
adexperiencereport_v1.Adexperiencereport = Adexperiencereport;
|
||||
class Resource$Sites {
|
||||
constructor(context) {
|
||||
this.context = context;
|
||||
}
|
||||
get(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback || {});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
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,
|
||||
requiredParams: ['name'],
|
||||
pathParams: ['name'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
}
|
||||
adexperiencereport_v1.Resource$Sites = Resource$Sites;
|
||||
class Resource$Violatingsites {
|
||||
constructor(context) {
|
||||
this.context = context;
|
||||
}
|
||||
list(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
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,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
}
|
||||
adexperiencereport_v1.Resource$Violatingsites = Resource$Violatingsites;
|
||||
})(adexperiencereport_v1 = exports.adexperiencereport_v1 || (exports.adexperiencereport_v1 = {}));
|
||||
//# sourceMappingURL=v1.js.map
|
||||
381
node_modules/googleapis/build/src/apis/admin/datatransfer_v1.d.ts
generated
vendored
Normal file
381
node_modules/googleapis/build/src/apis/admin/datatransfer_v1.d.ts
generated
vendored
Normal file
@@ -0,0 +1,381 @@
|
||||
/**
|
||||
* Copyright 2019 Google LLC
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
import { OAuth2Client, JWT, Compute, UserRefreshClient } from 'google-auth-library';
|
||||
import { GoogleConfigurable, MethodOptions, GlobalOptions, BodyResponseCallback, APIRequestContext } from 'googleapis-common';
|
||||
import { GaxiosPromise } from 'gaxios';
|
||||
export declare namespace admin_datatransfer_v1 {
|
||||
interface Options extends GlobalOptions {
|
||||
version: 'datatransfer_v1';
|
||||
}
|
||||
interface StandardParameters {
|
||||
/**
|
||||
* Data format for the response.
|
||||
*/
|
||||
alt?: string;
|
||||
/**
|
||||
* Selector specifying which fields to include in a partial response.
|
||||
*/
|
||||
fields?: string;
|
||||
/**
|
||||
* API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
|
||||
*/
|
||||
key?: string;
|
||||
/**
|
||||
* OAuth 2.0 token for the current user.
|
||||
*/
|
||||
oauth_token?: string;
|
||||
/**
|
||||
* Returns response with indentations and line breaks.
|
||||
*/
|
||||
prettyPrint?: boolean;
|
||||
/**
|
||||
* An opaque string that represents a user for quota purposes. Must not exceed 40 characters.
|
||||
*/
|
||||
quotaUser?: string;
|
||||
/**
|
||||
* Deprecated. Please use quotaUser instead.
|
||||
*/
|
||||
userIp?: string;
|
||||
}
|
||||
/**
|
||||
* 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
|
||||
*/
|
||||
class Admin {
|
||||
context: APIRequestContext;
|
||||
applications: Resource$Applications;
|
||||
transfers: Resource$Transfers;
|
||||
constructor(options: GlobalOptions, google?: GoogleConfigurable);
|
||||
}
|
||||
/**
|
||||
* The JSON template for an Application resource.
|
||||
*/
|
||||
interface Schema$Application {
|
||||
/**
|
||||
* Etag of the resource.
|
||||
*/
|
||||
etag?: string;
|
||||
/**
|
||||
* The application's ID.
|
||||
*/
|
||||
id?: string;
|
||||
/**
|
||||
* Identifies the resource as a DataTransfer Application Resource.
|
||||
*/
|
||||
kind?: string;
|
||||
/**
|
||||
* The application's name.
|
||||
*/
|
||||
name?: string;
|
||||
/**
|
||||
* 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.
|
||||
*/
|
||||
transferParams?: Schema$ApplicationTransferParam[];
|
||||
}
|
||||
/**
|
||||
* Template to map fields of ApplicationDataTransfer resource.
|
||||
*/
|
||||
interface Schema$ApplicationDataTransfer {
|
||||
/**
|
||||
* The application's ID.
|
||||
*/
|
||||
applicationId?: string;
|
||||
/**
|
||||
* The transfer parameters for the application. These parameters are used to select the data which will get transfered in context of this application.
|
||||
*/
|
||||
applicationTransferParams?: Schema$ApplicationTransferParam[];
|
||||
/**
|
||||
* Current status of transfer for this application. (Read-only)
|
||||
*/
|
||||
applicationTransferStatus?: string;
|
||||
}
|
||||
/**
|
||||
* Template for a collection of Applications.
|
||||
*/
|
||||
interface Schema$ApplicationsListResponse {
|
||||
/**
|
||||
* List of applications that support data transfer and are also installed for the customer.
|
||||
*/
|
||||
applications?: Schema$Application[];
|
||||
/**
|
||||
* ETag of the resource.
|
||||
*/
|
||||
etag?: string;
|
||||
/**
|
||||
* Identifies the resource as a collection of Applications.
|
||||
*/
|
||||
kind?: string;
|
||||
/**
|
||||
* Continuation token which will be used to specify next page in list API.
|
||||
*/
|
||||
nextPageToken?: string;
|
||||
}
|
||||
/**
|
||||
* Template for application transfer parameters.
|
||||
*/
|
||||
interface Schema$ApplicationTransferParam {
|
||||
/**
|
||||
* The type of the transfer parameter. eg: 'PRIVACY_LEVEL'
|
||||
*/
|
||||
key?: string;
|
||||
/**
|
||||
* The value of the coressponding transfer parameter. eg: 'PRIVATE' or 'SHARED'
|
||||
*/
|
||||
value?: string[];
|
||||
}
|
||||
/**
|
||||
* The JSON template for a DataTransfer resource.
|
||||
*/
|
||||
interface Schema$DataTransfer {
|
||||
/**
|
||||
* 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.
|
||||
*/
|
||||
applicationDataTransfers?: Schema$ApplicationDataTransfer[];
|
||||
/**
|
||||
* ETag of the resource.
|
||||
*/
|
||||
etag?: string;
|
||||
/**
|
||||
* The transfer's ID (Read-only).
|
||||
*/
|
||||
id?: string;
|
||||
/**
|
||||
* Identifies the resource as a DataTransfer request.
|
||||
*/
|
||||
kind?: string;
|
||||
/**
|
||||
* ID of the user to whom the data is being transfered.
|
||||
*/
|
||||
newOwnerUserId?: string;
|
||||
/**
|
||||
* ID of the user whose data is being transfered.
|
||||
*/
|
||||
oldOwnerUserId?: string;
|
||||
/**
|
||||
* Overall transfer status (Read-only).
|
||||
*/
|
||||
overallTransferStatusCode?: string;
|
||||
/**
|
||||
* The time at which the data transfer was requested (Read-only).
|
||||
*/
|
||||
requestTime?: string;
|
||||
}
|
||||
/**
|
||||
* Template for a collection of DataTransfer resources.
|
||||
*/
|
||||
interface Schema$DataTransfersListResponse {
|
||||
/**
|
||||
* List of data transfer requests.
|
||||
*/
|
||||
dataTransfers?: Schema$DataTransfer[];
|
||||
/**
|
||||
* ETag of the resource.
|
||||
*/
|
||||
etag?: string;
|
||||
/**
|
||||
* Identifies the resource as a collection of data transfer requests.
|
||||
*/
|
||||
kind?: string;
|
||||
/**
|
||||
* Continuation token which will be used to specify next page in list API.
|
||||
*/
|
||||
nextPageToken?: string;
|
||||
}
|
||||
class Resource$Applications {
|
||||
context: APIRequestContext;
|
||||
constructor(context: APIRequestContext);
|
||||
/**
|
||||
* datatransfer.applications.get
|
||||
* @desc Retrieves information about an application for the given application ID.
|
||||
* @alias datatransfer.applications.get
|
||||
* @memberOf! ()
|
||||
*
|
||||
* @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(params?: Params$Resource$Applications$Get, options?: MethodOptions): GaxiosPromise<Schema$Application>;
|
||||
get(params: Params$Resource$Applications$Get, options: MethodOptions | BodyResponseCallback<Schema$Application>, callback: BodyResponseCallback<Schema$Application>): void;
|
||||
get(params: Params$Resource$Applications$Get, callback: BodyResponseCallback<Schema$Application>): void;
|
||||
get(callback: BodyResponseCallback<Schema$Application>): void;
|
||||
/**
|
||||
* datatransfer.applications.list
|
||||
* @desc Lists the applications available for data transfer for a customer.
|
||||
* @alias datatransfer.applications.list
|
||||
* @memberOf! ()
|
||||
*
|
||||
* @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(params?: Params$Resource$Applications$List, options?: MethodOptions): GaxiosPromise<Schema$ApplicationsListResponse>;
|
||||
list(params: Params$Resource$Applications$List, options: MethodOptions | BodyResponseCallback<Schema$ApplicationsListResponse>, callback: BodyResponseCallback<Schema$ApplicationsListResponse>): void;
|
||||
list(params: Params$Resource$Applications$List, callback: BodyResponseCallback<Schema$ApplicationsListResponse>): void;
|
||||
list(callback: BodyResponseCallback<Schema$ApplicationsListResponse>): void;
|
||||
}
|
||||
interface Params$Resource$Applications$Get extends StandardParameters {
|
||||
/**
|
||||
* Auth client or API Key for the request
|
||||
*/
|
||||
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
|
||||
/**
|
||||
* ID of the application resource to be retrieved.
|
||||
*/
|
||||
applicationId?: string;
|
||||
}
|
||||
interface Params$Resource$Applications$List extends StandardParameters {
|
||||
/**
|
||||
* Auth client or API Key for the request
|
||||
*/
|
||||
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
|
||||
/**
|
||||
* Immutable ID of the Google Apps account.
|
||||
*/
|
||||
customerId?: string;
|
||||
/**
|
||||
* Maximum number of results to return. Default is 100.
|
||||
*/
|
||||
maxResults?: number;
|
||||
/**
|
||||
* Token to specify next page in the list.
|
||||
*/
|
||||
pageToken?: string;
|
||||
}
|
||||
class Resource$Transfers {
|
||||
context: APIRequestContext;
|
||||
constructor(context: APIRequestContext);
|
||||
/**
|
||||
* datatransfer.transfers.get
|
||||
* @desc Retrieves a data transfer request by its resource ID.
|
||||
* @alias datatransfer.transfers.get
|
||||
* @memberOf! ()
|
||||
*
|
||||
* @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(params?: Params$Resource$Transfers$Get, options?: MethodOptions): GaxiosPromise<Schema$DataTransfer>;
|
||||
get(params: Params$Resource$Transfers$Get, options: MethodOptions | BodyResponseCallback<Schema$DataTransfer>, callback: BodyResponseCallback<Schema$DataTransfer>): void;
|
||||
get(params: Params$Resource$Transfers$Get, callback: BodyResponseCallback<Schema$DataTransfer>): void;
|
||||
get(callback: BodyResponseCallback<Schema$DataTransfer>): void;
|
||||
/**
|
||||
* datatransfer.transfers.insert
|
||||
* @desc Inserts a data transfer request.
|
||||
* @alias datatransfer.transfers.insert
|
||||
* @memberOf! ()
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {().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(params?: Params$Resource$Transfers$Insert, options?: MethodOptions): GaxiosPromise<Schema$DataTransfer>;
|
||||
insert(params: Params$Resource$Transfers$Insert, options: MethodOptions | BodyResponseCallback<Schema$DataTransfer>, callback: BodyResponseCallback<Schema$DataTransfer>): void;
|
||||
insert(params: Params$Resource$Transfers$Insert, callback: BodyResponseCallback<Schema$DataTransfer>): void;
|
||||
insert(callback: BodyResponseCallback<Schema$DataTransfer>): void;
|
||||
/**
|
||||
* datatransfer.transfers.list
|
||||
* @desc Lists the transfers for a customer by source user, destination user, or status.
|
||||
* @alias datatransfer.transfers.list
|
||||
* @memberOf! ()
|
||||
*
|
||||
* @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(params?: Params$Resource$Transfers$List, options?: MethodOptions): GaxiosPromise<Schema$DataTransfersListResponse>;
|
||||
list(params: Params$Resource$Transfers$List, options: MethodOptions | BodyResponseCallback<Schema$DataTransfersListResponse>, callback: BodyResponseCallback<Schema$DataTransfersListResponse>): void;
|
||||
list(params: Params$Resource$Transfers$List, callback: BodyResponseCallback<Schema$DataTransfersListResponse>): void;
|
||||
list(callback: BodyResponseCallback<Schema$DataTransfersListResponse>): void;
|
||||
}
|
||||
interface Params$Resource$Transfers$Get extends StandardParameters {
|
||||
/**
|
||||
* Auth client or API Key for the request
|
||||
*/
|
||||
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
|
||||
/**
|
||||
* ID of the resource to be retrieved. This is returned in the response from the insert method.
|
||||
*/
|
||||
dataTransferId?: string;
|
||||
}
|
||||
interface Params$Resource$Transfers$Insert extends StandardParameters {
|
||||
/**
|
||||
* Auth client or API Key for the request
|
||||
*/
|
||||
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
|
||||
/**
|
||||
* Request body metadata
|
||||
*/
|
||||
requestBody?: Schema$DataTransfer;
|
||||
}
|
||||
interface Params$Resource$Transfers$List extends StandardParameters {
|
||||
/**
|
||||
* Auth client or API Key for the request
|
||||
*/
|
||||
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
|
||||
/**
|
||||
* Immutable ID of the Google Apps account.
|
||||
*/
|
||||
customerId?: string;
|
||||
/**
|
||||
* Maximum number of results to return. Default is 100.
|
||||
*/
|
||||
maxResults?: number;
|
||||
/**
|
||||
* Destination user's profile ID.
|
||||
*/
|
||||
newOwnerUserId?: string;
|
||||
/**
|
||||
* Source user's profile ID.
|
||||
*/
|
||||
oldOwnerUserId?: string;
|
||||
/**
|
||||
* Token to specify the next page in the list.
|
||||
*/
|
||||
pageToken?: string;
|
||||
/**
|
||||
* Status of the transfer.
|
||||
*/
|
||||
status?: string;
|
||||
}
|
||||
}
|
||||
216
node_modules/googleapis/build/src/apis/admin/datatransfer_v1.js
generated
vendored
Normal file
216
node_modules/googleapis/build/src/apis/admin/datatransfer_v1.js
generated
vendored
Normal file
@@ -0,0 +1,216 @@
|
||||
"use strict";
|
||||
/**
|
||||
* Copyright 2019 Google LLC
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const googleapis_common_1 = require("googleapis-common");
|
||||
// tslint:disable: no-any
|
||||
// tslint:disable: class-name
|
||||
// tslint:disable: variable-name
|
||||
// tslint:disable: jsdoc-format
|
||||
// tslint:disable: no-namespace
|
||||
var admin_datatransfer_v1;
|
||||
(function (admin_datatransfer_v1) {
|
||||
/**
|
||||
* 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
|
||||
*/
|
||||
class Admin {
|
||||
constructor(options, google) {
|
||||
this.context = {
|
||||
_options: options || {},
|
||||
google,
|
||||
};
|
||||
this.applications = new Resource$Applications(this.context);
|
||||
this.transfers = new Resource$Transfers(this.context);
|
||||
}
|
||||
}
|
||||
admin_datatransfer_v1.Admin = Admin;
|
||||
class Resource$Applications {
|
||||
constructor(context) {
|
||||
this.context = context;
|
||||
}
|
||||
get(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback || {});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
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,
|
||||
requiredParams: ['applicationId'],
|
||||
pathParams: ['applicationId'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
list(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
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,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
}
|
||||
admin_datatransfer_v1.Resource$Applications = Resource$Applications;
|
||||
class Resource$Transfers {
|
||||
constructor(context) {
|
||||
this.context = context;
|
||||
}
|
||||
get(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback || {});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
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,
|
||||
requiredParams: ['dataTransferId'],
|
||||
pathParams: ['dataTransferId'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
insert(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback || {});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
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,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
list(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback || {});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
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,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
}
|
||||
admin_datatransfer_v1.Resource$Transfers = Resource$Transfers;
|
||||
})(admin_datatransfer_v1 = exports.admin_datatransfer_v1 || (exports.admin_datatransfer_v1 = {}));
|
||||
//# sourceMappingURL=datatransfer_v1.js.map
|
||||
6278
node_modules/googleapis/build/src/apis/admin/directory_v1.d.ts
generated
vendored
Normal file
6278
node_modules/googleapis/build/src/apis/admin/directory_v1.d.ts
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
3738
node_modules/googleapis/build/src/apis/admin/directory_v1.js
generated
vendored
Normal file
3738
node_modules/googleapis/build/src/apis/admin/directory_v1.js
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
18
node_modules/googleapis/build/src/apis/admin/index.d.ts
generated
vendored
Normal file
18
node_modules/googleapis/build/src/apis/admin/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
/*! THIS FILE IS AUTO-GENERATED */
|
||||
import { AuthPlus } from 'googleapis-common';
|
||||
import { admin_datatransfer_v1 } from './datatransfer_v1';
|
||||
import { admin_directory_v1 } from './directory_v1';
|
||||
import { admin_reports_v1 } from './reports_v1';
|
||||
export declare const VERSIONS: {
|
||||
datatransfer_v1: typeof admin_datatransfer_v1.Admin;
|
||||
directory_v1: typeof admin_directory_v1.Admin;
|
||||
reports_v1: typeof admin_reports_v1.Admin;
|
||||
};
|
||||
export declare function admin(version: 'datatransfer_v1'): admin_datatransfer_v1.Admin;
|
||||
export declare function admin(options: admin_datatransfer_v1.Options): admin_datatransfer_v1.Admin;
|
||||
export declare function admin(version: 'directory_v1'): admin_directory_v1.Admin;
|
||||
export declare function admin(options: admin_directory_v1.Options): admin_directory_v1.Admin;
|
||||
export declare function admin(version: 'reports_v1'): admin_reports_v1.Admin;
|
||||
export declare function admin(options: admin_reports_v1.Options): admin_reports_v1.Admin;
|
||||
declare const auth: AuthPlus;
|
||||
export { auth };
|
||||
31
node_modules/googleapis/build/src/apis/admin/index.js
generated
vendored
Normal file
31
node_modules/googleapis/build/src/apis/admin/index.js
generated
vendored
Normal file
@@ -0,0 +1,31 @@
|
||||
"use strict";
|
||||
// Copyright 2019 Google LLC
|
||||
// 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.
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
/*! THIS FILE IS AUTO-GENERATED */
|
||||
const googleapis_common_1 = require("googleapis-common");
|
||||
const datatransfer_v1_1 = require("./datatransfer_v1");
|
||||
const directory_v1_1 = require("./directory_v1");
|
||||
const reports_v1_1 = require("./reports_v1");
|
||||
exports.VERSIONS = {
|
||||
datatransfer_v1: datatransfer_v1_1.admin_datatransfer_v1.Admin,
|
||||
directory_v1: directory_v1_1.admin_directory_v1.Admin,
|
||||
reports_v1: reports_v1_1.admin_reports_v1.Admin,
|
||||
};
|
||||
function admin(versionOrOptions) {
|
||||
return googleapis_common_1.getAPI('admin', versionOrOptions, exports.VERSIONS, this);
|
||||
}
|
||||
exports.admin = admin;
|
||||
const auth = new googleapis_common_1.AuthPlus();
|
||||
exports.auth = auth;
|
||||
//# sourceMappingURL=index.js.map
|
||||
676
node_modules/googleapis/build/src/apis/admin/reports_v1.d.ts
generated
vendored
Normal file
676
node_modules/googleapis/build/src/apis/admin/reports_v1.d.ts
generated
vendored
Normal file
@@ -0,0 +1,676 @@
|
||||
/**
|
||||
* Copyright 2019 Google LLC
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
import { OAuth2Client, JWT, Compute, UserRefreshClient } from 'google-auth-library';
|
||||
import { GoogleConfigurable, MethodOptions, GlobalOptions, BodyResponseCallback, APIRequestContext } from 'googleapis-common';
|
||||
import { GaxiosPromise } from 'gaxios';
|
||||
export declare namespace admin_reports_v1 {
|
||||
interface Options extends GlobalOptions {
|
||||
version: 'reports_v1';
|
||||
}
|
||||
interface StandardParameters {
|
||||
/**
|
||||
* Data format for the response.
|
||||
*/
|
||||
alt?: string;
|
||||
/**
|
||||
* Selector specifying which fields to include in a partial response.
|
||||
*/
|
||||
fields?: string;
|
||||
/**
|
||||
* API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
|
||||
*/
|
||||
key?: string;
|
||||
/**
|
||||
* OAuth 2.0 token for the current user.
|
||||
*/
|
||||
oauth_token?: string;
|
||||
/**
|
||||
* Returns response with indentations and line breaks.
|
||||
*/
|
||||
prettyPrint?: boolean;
|
||||
/**
|
||||
* An opaque string that represents a user for quota purposes. Must not exceed 40 characters.
|
||||
*/
|
||||
quotaUser?: string;
|
||||
/**
|
||||
* Deprecated. Please use quotaUser instead.
|
||||
*/
|
||||
userIp?: string;
|
||||
}
|
||||
/**
|
||||
* 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
|
||||
*/
|
||||
class Admin {
|
||||
context: APIRequestContext;
|
||||
activities: Resource$Activities;
|
||||
channels: Resource$Channels;
|
||||
customerUsageReports: Resource$Customerusagereports;
|
||||
entityUsageReports: Resource$Entityusagereports;
|
||||
userUsageReport: Resource$Userusagereport;
|
||||
constructor(options: GlobalOptions, google?: GoogleConfigurable);
|
||||
}
|
||||
/**
|
||||
* JSON template for a collection of activites.
|
||||
*/
|
||||
interface Schema$Activities {
|
||||
/**
|
||||
* ETag of the resource.
|
||||
*/
|
||||
etag?: string;
|
||||
/**
|
||||
* Each record in read response.
|
||||
*/
|
||||
items?: Schema$Activity[];
|
||||
/**
|
||||
* Kind of list response this is.
|
||||
*/
|
||||
kind?: string;
|
||||
/**
|
||||
* Token for retrieving the next page
|
||||
*/
|
||||
nextPageToken?: string;
|
||||
}
|
||||
/**
|
||||
* JSON template for the activity resource.
|
||||
*/
|
||||
interface Schema$Activity {
|
||||
/**
|
||||
* User doing the action.
|
||||
*/
|
||||
actor?: {
|
||||
callerType?: string;
|
||||
email?: string;
|
||||
key?: string;
|
||||
profileId?: string;
|
||||
};
|
||||
/**
|
||||
* ETag of the entry.
|
||||
*/
|
||||
etag?: string;
|
||||
/**
|
||||
* Activity events.
|
||||
*/
|
||||
events?: Array<{
|
||||
name?: string;
|
||||
parameters?: Array<{
|
||||
boolValue?: boolean;
|
||||
intValue?: string;
|
||||
messageValue?: {
|
||||
parameter?: Schema$NestedParameter[];
|
||||
};
|
||||
multiIntValue?: string[];
|
||||
multiMessageValue?: Array<{
|
||||
parameter?: Schema$NestedParameter[];
|
||||
}>;
|
||||
multiValue?: string[];
|
||||
name?: string;
|
||||
value?: string;
|
||||
}>;
|
||||
type?: string;
|
||||
}>;
|
||||
/**
|
||||
* Unique identifier for each activity record.
|
||||
*/
|
||||
id?: {
|
||||
applicationName?: string;
|
||||
customerId?: string;
|
||||
time?: string;
|
||||
uniqueQualifier?: string;
|
||||
};
|
||||
/**
|
||||
* IP Address of the user doing the action.
|
||||
*/
|
||||
ipAddress?: string;
|
||||
/**
|
||||
* Kind of resource this is.
|
||||
*/
|
||||
kind?: string;
|
||||
/**
|
||||
* Domain of source customer.
|
||||
*/
|
||||
ownerDomain?: string;
|
||||
}
|
||||
/**
|
||||
* An notification channel used to watch for resource changes.
|
||||
*/
|
||||
interface Schema$Channel {
|
||||
/**
|
||||
* The address where notifications are delivered for this channel.
|
||||
*/
|
||||
address?: string;
|
||||
/**
|
||||
* Date and time of notification channel expiration, expressed as a Unix timestamp, in milliseconds. Optional.
|
||||
*/
|
||||
expiration?: string;
|
||||
/**
|
||||
* A UUID or similar unique string that identifies this channel.
|
||||
*/
|
||||
id?: string;
|
||||
/**
|
||||
* Identifies this as a notification channel used to watch for changes to a resource, which is "api#channel".
|
||||
*/
|
||||
kind?: string;
|
||||
/**
|
||||
* Additional parameters controlling delivery channel behavior. Optional.
|
||||
*/
|
||||
params?: {
|
||||
[key: string]: string;
|
||||
};
|
||||
/**
|
||||
* A Boolean value to indicate whether payload is wanted. Optional.
|
||||
*/
|
||||
payload?: boolean;
|
||||
/**
|
||||
* An opaque ID that identifies the resource being watched on this channel. Stable across different API versions.
|
||||
*/
|
||||
resourceId?: string;
|
||||
/**
|
||||
* A version-specific identifier for the watched resource.
|
||||
*/
|
||||
resourceUri?: string;
|
||||
/**
|
||||
* An arbitrary string delivered to the target address with each notification delivered over this channel. Optional.
|
||||
*/
|
||||
token?: string;
|
||||
/**
|
||||
* The type of delivery mechanism used for this channel.
|
||||
*/
|
||||
type?: string;
|
||||
}
|
||||
/**
|
||||
* JSON template for a parameter used in various reports.
|
||||
*/
|
||||
interface Schema$NestedParameter {
|
||||
/**
|
||||
* Boolean value of the parameter.
|
||||
*/
|
||||
boolValue?: boolean;
|
||||
/**
|
||||
* Integral value of the parameter.
|
||||
*/
|
||||
intValue?: string;
|
||||
/**
|
||||
* Multiple boolean values of the parameter.
|
||||
*/
|
||||
multiBoolValue?: boolean[];
|
||||
/**
|
||||
* Multiple integral values of the parameter.
|
||||
*/
|
||||
multiIntValue?: string[];
|
||||
/**
|
||||
* Multiple string values of the parameter.
|
||||
*/
|
||||
multiValue?: string[];
|
||||
/**
|
||||
* The name of the parameter.
|
||||
*/
|
||||
name?: string;
|
||||
/**
|
||||
* String value of the parameter.
|
||||
*/
|
||||
value?: string;
|
||||
}
|
||||
/**
|
||||
* JSON template for a usage report.
|
||||
*/
|
||||
interface Schema$UsageReport {
|
||||
/**
|
||||
* The date to which the record belongs.
|
||||
*/
|
||||
date?: string;
|
||||
/**
|
||||
* Information about the type of the item.
|
||||
*/
|
||||
entity?: {
|
||||
customerId?: string;
|
||||
entityId?: string;
|
||||
profileId?: string;
|
||||
type?: string;
|
||||
userEmail?: string;
|
||||
};
|
||||
/**
|
||||
* ETag of the resource.
|
||||
*/
|
||||
etag?: string;
|
||||
/**
|
||||
* The kind of object.
|
||||
*/
|
||||
kind?: string;
|
||||
/**
|
||||
* Parameter value pairs for various applications.
|
||||
*/
|
||||
parameters?: Array<{
|
||||
boolValue?: boolean;
|
||||
datetimeValue?: string;
|
||||
intValue?: string;
|
||||
msgValue?: Array<{
|
||||
[key: string]: any;
|
||||
}>;
|
||||
name?: string;
|
||||
stringValue?: string;
|
||||
}>;
|
||||
}
|
||||
/**
|
||||
* JSON template for a collection of usage reports.
|
||||
*/
|
||||
interface Schema$UsageReports {
|
||||
/**
|
||||
* ETag of the resource.
|
||||
*/
|
||||
etag?: string;
|
||||
/**
|
||||
* The kind of object.
|
||||
*/
|
||||
kind?: string;
|
||||
/**
|
||||
* Token for retrieving the next page
|
||||
*/
|
||||
nextPageToken?: string;
|
||||
/**
|
||||
* Various application parameter records.
|
||||
*/
|
||||
usageReports?: Schema$UsageReport[];
|
||||
/**
|
||||
* Warnings if any.
|
||||
*/
|
||||
warnings?: Array<{
|
||||
code?: string;
|
||||
data?: Array<{
|
||||
key?: string;
|
||||
value?: string;
|
||||
}>;
|
||||
message?: string;
|
||||
}>;
|
||||
}
|
||||
class Resource$Activities {
|
||||
context: APIRequestContext;
|
||||
constructor(context: APIRequestContext);
|
||||
/**
|
||||
* reports.activities.list
|
||||
* @desc Retrieves a list of activities for a specific customer and application.
|
||||
* @alias reports.activities.list
|
||||
* @memberOf! ()
|
||||
*
|
||||
* @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.orgUnitID the organizational unit's(OU) ID to filter activities from users belonging to a specific OU or one of its sub-OU(s)
|
||||
* @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(params?: Params$Resource$Activities$List, options?: MethodOptions): GaxiosPromise<Schema$Activities>;
|
||||
list(params: Params$Resource$Activities$List, options: MethodOptions | BodyResponseCallback<Schema$Activities>, callback: BodyResponseCallback<Schema$Activities>): void;
|
||||
list(params: Params$Resource$Activities$List, callback: BodyResponseCallback<Schema$Activities>): void;
|
||||
list(callback: BodyResponseCallback<Schema$Activities>): void;
|
||||
/**
|
||||
* reports.activities.watch
|
||||
* @desc Push changes to activities
|
||||
* @alias reports.activities.watch
|
||||
* @memberOf! ()
|
||||
*
|
||||
* @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.orgUnitID the organizational unit's(OU) ID to filter activities from users belonging to a specific OU or one of its sub-OU(s)
|
||||
* @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 {().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(params?: Params$Resource$Activities$Watch, options?: MethodOptions): GaxiosPromise<Schema$Channel>;
|
||||
watch(params: Params$Resource$Activities$Watch, options: MethodOptions | BodyResponseCallback<Schema$Channel>, callback: BodyResponseCallback<Schema$Channel>): void;
|
||||
watch(params: Params$Resource$Activities$Watch, callback: BodyResponseCallback<Schema$Channel>): void;
|
||||
watch(callback: BodyResponseCallback<Schema$Channel>): void;
|
||||
}
|
||||
interface Params$Resource$Activities$List extends StandardParameters {
|
||||
/**
|
||||
* Auth client or API Key for the request
|
||||
*/
|
||||
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
|
||||
/**
|
||||
* IP Address of host where the event was performed. Supports both IPv4 and IPv6 addresses.
|
||||
*/
|
||||
actorIpAddress?: string;
|
||||
/**
|
||||
* Application name for which the events are to be retrieved.
|
||||
*/
|
||||
applicationName?: string;
|
||||
/**
|
||||
* Represents the customer for which the data is to be fetched.
|
||||
*/
|
||||
customerId?: string;
|
||||
/**
|
||||
* Return events which occurred at or before this time.
|
||||
*/
|
||||
endTime?: string;
|
||||
/**
|
||||
* Name of the event being queried.
|
||||
*/
|
||||
eventName?: string;
|
||||
/**
|
||||
* Event parameters in the form [parameter1 name][operator][parameter1 value],[parameter2 name][operator][parameter2 value],...
|
||||
*/
|
||||
filters?: string;
|
||||
/**
|
||||
* Number of activity records to be shown in each page.
|
||||
*/
|
||||
maxResults?: number;
|
||||
/**
|
||||
* the organizational unit's(OU) ID to filter activities from users belonging to a specific OU or one of its sub-OU(s)
|
||||
*/
|
||||
orgUnitID?: string;
|
||||
/**
|
||||
* Token to specify next page.
|
||||
*/
|
||||
pageToken?: string;
|
||||
/**
|
||||
* Return events which occurred at or after this time.
|
||||
*/
|
||||
startTime?: string;
|
||||
/**
|
||||
* 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.
|
||||
*/
|
||||
userKey?: string;
|
||||
}
|
||||
interface Params$Resource$Activities$Watch extends StandardParameters {
|
||||
/**
|
||||
* Auth client or API Key for the request
|
||||
*/
|
||||
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
|
||||
/**
|
||||
* IP Address of host where the event was performed. Supports both IPv4 and IPv6 addresses.
|
||||
*/
|
||||
actorIpAddress?: string;
|
||||
/**
|
||||
* Application name for which the events are to be retrieved.
|
||||
*/
|
||||
applicationName?: string;
|
||||
/**
|
||||
* Represents the customer for which the data is to be fetched.
|
||||
*/
|
||||
customerId?: string;
|
||||
/**
|
||||
* Return events which occurred at or before this time.
|
||||
*/
|
||||
endTime?: string;
|
||||
/**
|
||||
* Name of the event being queried.
|
||||
*/
|
||||
eventName?: string;
|
||||
/**
|
||||
* Event parameters in the form [parameter1 name][operator][parameter1 value],[parameter2 name][operator][parameter2 value],...
|
||||
*/
|
||||
filters?: string;
|
||||
/**
|
||||
* Number of activity records to be shown in each page.
|
||||
*/
|
||||
maxResults?: number;
|
||||
/**
|
||||
* the organizational unit's(OU) ID to filter activities from users belonging to a specific OU or one of its sub-OU(s)
|
||||
*/
|
||||
orgUnitID?: string;
|
||||
/**
|
||||
* Token to specify next page.
|
||||
*/
|
||||
pageToken?: string;
|
||||
/**
|
||||
* Return events which occurred at or after this time.
|
||||
*/
|
||||
startTime?: string;
|
||||
/**
|
||||
* 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.
|
||||
*/
|
||||
userKey?: string;
|
||||
/**
|
||||
* Request body metadata
|
||||
*/
|
||||
requestBody?: Schema$Channel;
|
||||
}
|
||||
class Resource$Channels {
|
||||
context: APIRequestContext;
|
||||
constructor(context: APIRequestContext);
|
||||
/**
|
||||
* admin.channels.stop
|
||||
* @desc Stop watching resources through this channel
|
||||
* @alias admin.channels.stop
|
||||
* @memberOf! ()
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {().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(params?: Params$Resource$Channels$Stop, options?: MethodOptions): GaxiosPromise<void>;
|
||||
stop(params: Params$Resource$Channels$Stop, options: MethodOptions | BodyResponseCallback<void>, callback: BodyResponseCallback<void>): void;
|
||||
stop(params: Params$Resource$Channels$Stop, callback: BodyResponseCallback<void>): void;
|
||||
stop(callback: BodyResponseCallback<void>): void;
|
||||
}
|
||||
interface Params$Resource$Channels$Stop extends StandardParameters {
|
||||
/**
|
||||
* Auth client or API Key for the request
|
||||
*/
|
||||
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
|
||||
/**
|
||||
* Request body metadata
|
||||
*/
|
||||
requestBody?: Schema$Channel;
|
||||
}
|
||||
class Resource$Customerusagereports {
|
||||
context: APIRequestContext;
|
||||
constructor(context: APIRequestContext);
|
||||
/**
|
||||
* reports.customerUsageReports.get
|
||||
* @desc Retrieves a report which is a collection of properties / statistics for a specific customer.
|
||||
* @alias reports.customerUsageReports.get
|
||||
* @memberOf! ()
|
||||
*
|
||||
* @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(params?: Params$Resource$Customerusagereports$Get, options?: MethodOptions): GaxiosPromise<Schema$UsageReports>;
|
||||
get(params: Params$Resource$Customerusagereports$Get, options: MethodOptions | BodyResponseCallback<Schema$UsageReports>, callback: BodyResponseCallback<Schema$UsageReports>): void;
|
||||
get(params: Params$Resource$Customerusagereports$Get, callback: BodyResponseCallback<Schema$UsageReports>): void;
|
||||
get(callback: BodyResponseCallback<Schema$UsageReports>): void;
|
||||
}
|
||||
interface Params$Resource$Customerusagereports$Get extends StandardParameters {
|
||||
/**
|
||||
* Auth client or API Key for the request
|
||||
*/
|
||||
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
|
||||
/**
|
||||
* Represents the customer for which the data is to be fetched.
|
||||
*/
|
||||
customerId?: string;
|
||||
/**
|
||||
* Represents the date in yyyy-mm-dd format for which the data is to be fetched.
|
||||
*/
|
||||
date?: string;
|
||||
/**
|
||||
* Token to specify next page.
|
||||
*/
|
||||
pageToken?: string;
|
||||
/**
|
||||
* Represents the application name, parameter name pairs to fetch in csv as app_name1:param_name1, app_name2:param_name2.
|
||||
*/
|
||||
parameters?: string;
|
||||
}
|
||||
class Resource$Entityusagereports {
|
||||
context: APIRequestContext;
|
||||
constructor(context: APIRequestContext);
|
||||
/**
|
||||
* reports.entityUsageReports.get
|
||||
* @desc Retrieves a report which is a collection of properties / statistics for a set of objects.
|
||||
* @alias reports.entityUsageReports.get
|
||||
* @memberOf! ()
|
||||
*
|
||||
* @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.entityKey Represents the key of object for which the data should be filtered.
|
||||
* @param {string} params.entityType Type of object. Should be one of - gplus_communities.
|
||||
* @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 {object} [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(params?: Params$Resource$Entityusagereports$Get, options?: MethodOptions): GaxiosPromise<Schema$UsageReports>;
|
||||
get(params: Params$Resource$Entityusagereports$Get, options: MethodOptions | BodyResponseCallback<Schema$UsageReports>, callback: BodyResponseCallback<Schema$UsageReports>): void;
|
||||
get(params: Params$Resource$Entityusagereports$Get, callback: BodyResponseCallback<Schema$UsageReports>): void;
|
||||
get(callback: BodyResponseCallback<Schema$UsageReports>): void;
|
||||
}
|
||||
interface Params$Resource$Entityusagereports$Get extends StandardParameters {
|
||||
/**
|
||||
* Auth client or API Key for the request
|
||||
*/
|
||||
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
|
||||
/**
|
||||
* Represents the customer for which the data is to be fetched.
|
||||
*/
|
||||
customerId?: string;
|
||||
/**
|
||||
* Represents the date in yyyy-mm-dd format for which the data is to be fetched.
|
||||
*/
|
||||
date?: string;
|
||||
/**
|
||||
* Represents the key of object for which the data should be filtered.
|
||||
*/
|
||||
entityKey?: string;
|
||||
/**
|
||||
* Type of object. Should be one of - gplus_communities.
|
||||
*/
|
||||
entityType?: string;
|
||||
/**
|
||||
* Represents the set of filters including parameter operator value.
|
||||
*/
|
||||
filters?: string;
|
||||
/**
|
||||
* Maximum number of results to return. Maximum allowed is 1000
|
||||
*/
|
||||
maxResults?: number;
|
||||
/**
|
||||
* Token to specify next page.
|
||||
*/
|
||||
pageToken?: string;
|
||||
/**
|
||||
* Represents the application name, parameter name pairs to fetch in csv as app_name1:param_name1, app_name2:param_name2.
|
||||
*/
|
||||
parameters?: string;
|
||||
}
|
||||
class Resource$Userusagereport {
|
||||
context: APIRequestContext;
|
||||
constructor(context: APIRequestContext);
|
||||
/**
|
||||
* reports.userUsageReport.get
|
||||
* @desc Retrieves a report which is a collection of properties / statistics for a set of users.
|
||||
* @alias reports.userUsageReport.get
|
||||
* @memberOf! ()
|
||||
*
|
||||
* @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.orgUnitID the organizational unit's ID to filter usage parameters from users belonging to a specific OU or one of its sub-OU(s).
|
||||
* @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(params?: Params$Resource$Userusagereport$Get, options?: MethodOptions): GaxiosPromise<Schema$UsageReports>;
|
||||
get(params: Params$Resource$Userusagereport$Get, options: MethodOptions | BodyResponseCallback<Schema$UsageReports>, callback: BodyResponseCallback<Schema$UsageReports>): void;
|
||||
get(params: Params$Resource$Userusagereport$Get, callback: BodyResponseCallback<Schema$UsageReports>): void;
|
||||
get(callback: BodyResponseCallback<Schema$UsageReports>): void;
|
||||
}
|
||||
interface Params$Resource$Userusagereport$Get extends StandardParameters {
|
||||
/**
|
||||
* Auth client or API Key for the request
|
||||
*/
|
||||
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
|
||||
/**
|
||||
* Represents the customer for which the data is to be fetched.
|
||||
*/
|
||||
customerId?: string;
|
||||
/**
|
||||
* Represents the date in yyyy-mm-dd format for which the data is to be fetched.
|
||||
*/
|
||||
date?: string;
|
||||
/**
|
||||
* Represents the set of filters including parameter operator value.
|
||||
*/
|
||||
filters?: string;
|
||||
/**
|
||||
* Maximum number of results to return. Maximum allowed is 1000
|
||||
*/
|
||||
maxResults?: number;
|
||||
/**
|
||||
* the organizational unit's ID to filter usage parameters from users belonging to a specific OU or one of its sub-OU(s).
|
||||
*/
|
||||
orgUnitID?: string;
|
||||
/**
|
||||
* Token to specify next page.
|
||||
*/
|
||||
pageToken?: string;
|
||||
/**
|
||||
* Represents the application name, parameter name pairs to fetch in csv as app_name1:param_name1, app_name2:param_name2.
|
||||
*/
|
||||
parameters?: string;
|
||||
/**
|
||||
* Represents the profile id or the user email for which the data should be filtered.
|
||||
*/
|
||||
userKey?: string;
|
||||
}
|
||||
}
|
||||
272
node_modules/googleapis/build/src/apis/admin/reports_v1.js
generated
vendored
Normal file
272
node_modules/googleapis/build/src/apis/admin/reports_v1.js
generated
vendored
Normal file
@@ -0,0 +1,272 @@
|
||||
"use strict";
|
||||
/**
|
||||
* Copyright 2019 Google LLC
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const googleapis_common_1 = require("googleapis-common");
|
||||
// tslint:disable: no-any
|
||||
// tslint:disable: class-name
|
||||
// tslint:disable: variable-name
|
||||
// tslint:disable: jsdoc-format
|
||||
// tslint:disable: no-namespace
|
||||
var admin_reports_v1;
|
||||
(function (admin_reports_v1) {
|
||||
/**
|
||||
* 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
|
||||
*/
|
||||
class Admin {
|
||||
constructor(options, google) {
|
||||
this.context = {
|
||||
_options: options || {},
|
||||
google,
|
||||
};
|
||||
this.activities = new Resource$Activities(this.context);
|
||||
this.channels = new Resource$Channels(this.context);
|
||||
this.customerUsageReports = new Resource$Customerusagereports(this.context);
|
||||
this.entityUsageReports = new Resource$Entityusagereports(this.context);
|
||||
this.userUsageReport = new Resource$Userusagereport(this.context);
|
||||
}
|
||||
}
|
||||
admin_reports_v1.Admin = Admin;
|
||||
class Resource$Activities {
|
||||
constructor(context) {
|
||||
this.context = context;
|
||||
}
|
||||
list(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback || {});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
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,
|
||||
requiredParams: ['userKey', 'applicationName'],
|
||||
pathParams: ['applicationName', 'userKey'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
watch(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback || {});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
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,
|
||||
requiredParams: ['userKey', 'applicationName'],
|
||||
pathParams: ['applicationName', 'userKey'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
}
|
||||
admin_reports_v1.Resource$Activities = Resource$Activities;
|
||||
class Resource$Channels {
|
||||
constructor(context) {
|
||||
this.context = context;
|
||||
}
|
||||
stop(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback || {});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
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,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
}
|
||||
admin_reports_v1.Resource$Channels = Resource$Channels;
|
||||
class Resource$Customerusagereports {
|
||||
constructor(context) {
|
||||
this.context = context;
|
||||
}
|
||||
get(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
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,
|
||||
requiredParams: ['date'],
|
||||
pathParams: ['date'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
}
|
||||
admin_reports_v1.Resource$Customerusagereports = Resource$Customerusagereports;
|
||||
class Resource$Entityusagereports {
|
||||
constructor(context) {
|
||||
this.context = context;
|
||||
}
|
||||
get(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl +
|
||||
'/admin/reports/v1/usage/{entityType}/{entityKey}/dates/{date}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: ['entityType', 'entityKey', 'date'],
|
||||
pathParams: ['date', 'entityKey', 'entityType'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
}
|
||||
admin_reports_v1.Resource$Entityusagereports = Resource$Entityusagereports;
|
||||
class Resource$Userusagereport {
|
||||
constructor(context) {
|
||||
this.context = context;
|
||||
}
|
||||
get(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
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,
|
||||
requiredParams: ['userKey', 'date'],
|
||||
pathParams: ['date', 'userKey'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
}
|
||||
admin_reports_v1.Resource$Userusagereport = Resource$Userusagereport;
|
||||
})(admin_reports_v1 = exports.admin_reports_v1 || (exports.admin_reports_v1 = {}));
|
||||
//# sourceMappingURL=reports_v1.js.map
|
||||
10
node_modules/googleapis/build/src/apis/adsense/index.d.ts
generated
vendored
Normal file
10
node_modules/googleapis/build/src/apis/adsense/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
/*! THIS FILE IS AUTO-GENERATED */
|
||||
import { AuthPlus } from 'googleapis-common';
|
||||
import { adsense_v1_4 } from './v1.4';
|
||||
export declare const VERSIONS: {
|
||||
'v1.4': typeof adsense_v1_4.Adsense;
|
||||
};
|
||||
export declare function adsense(version: 'v1.4'): adsense_v1_4.Adsense;
|
||||
export declare function adsense(options: adsense_v1_4.Options): adsense_v1_4.Adsense;
|
||||
declare const auth: AuthPlus;
|
||||
export { auth };
|
||||
27
node_modules/googleapis/build/src/apis/adsense/index.js
generated
vendored
Normal file
27
node_modules/googleapis/build/src/apis/adsense/index.js
generated
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
"use strict";
|
||||
// Copyright 2019 Google LLC
|
||||
// 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.
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
/*! THIS FILE IS AUTO-GENERATED */
|
||||
const googleapis_common_1 = require("googleapis-common");
|
||||
const v1_4_1 = require("./v1.4");
|
||||
exports.VERSIONS = {
|
||||
'v1.4': v1_4_1.adsense_v1_4.Adsense,
|
||||
};
|
||||
function adsense(versionOrOptions) {
|
||||
return googleapis_common_1.getAPI('adsense', versionOrOptions, exports.VERSIONS, this);
|
||||
}
|
||||
exports.adsense = adsense;
|
||||
const auth = new googleapis_common_1.AuthPlus();
|
||||
exports.auth = auth;
|
||||
//# sourceMappingURL=index.js.map
|
||||
2131
node_modules/googleapis/build/src/apis/adsense/v1.4.d.ts
generated
vendored
Normal file
2131
node_modules/googleapis/build/src/apis/adsense/v1.4.d.ts
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1448
node_modules/googleapis/build/src/apis/adsense/v1.4.js
generated
vendored
Normal file
1448
node_modules/googleapis/build/src/apis/adsense/v1.4.js
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
10
node_modules/googleapis/build/src/apis/adsensehost/index.d.ts
generated
vendored
Normal file
10
node_modules/googleapis/build/src/apis/adsensehost/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
/*! THIS FILE IS AUTO-GENERATED */
|
||||
import { AuthPlus } from 'googleapis-common';
|
||||
import { adsensehost_v4_1 } from './v4.1';
|
||||
export declare const VERSIONS: {
|
||||
'v4.1': typeof adsensehost_v4_1.Adsensehost;
|
||||
};
|
||||
export declare function adsensehost(version: 'v4.1'): adsensehost_v4_1.Adsensehost;
|
||||
export declare function adsensehost(options: adsensehost_v4_1.Options): adsensehost_v4_1.Adsensehost;
|
||||
declare const auth: AuthPlus;
|
||||
export { auth };
|
||||
27
node_modules/googleapis/build/src/apis/adsensehost/index.js
generated
vendored
Normal file
27
node_modules/googleapis/build/src/apis/adsensehost/index.js
generated
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
"use strict";
|
||||
// Copyright 2019 Google LLC
|
||||
// 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.
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
/*! THIS FILE IS AUTO-GENERATED */
|
||||
const googleapis_common_1 = require("googleapis-common");
|
||||
const v4_1_1 = require("./v4.1");
|
||||
exports.VERSIONS = {
|
||||
'v4.1': v4_1_1.adsensehost_v4_1.Adsensehost,
|
||||
};
|
||||
function adsensehost(versionOrOptions) {
|
||||
return googleapis_common_1.getAPI('adsensehost', versionOrOptions, exports.VERSIONS, this);
|
||||
}
|
||||
exports.adsensehost = adsensehost;
|
||||
const auth = new googleapis_common_1.AuthPlus();
|
||||
exports.auth = auth;
|
||||
//# sourceMappingURL=index.js.map
|
||||
1377
node_modules/googleapis/build/src/apis/adsensehost/v4.1.d.ts
generated
vendored
Normal file
1377
node_modules/googleapis/build/src/apis/adsensehost/v4.1.d.ts
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
929
node_modules/googleapis/build/src/apis/adsensehost/v4.1.js
generated
vendored
Normal file
929
node_modules/googleapis/build/src/apis/adsensehost/v4.1.js
generated
vendored
Normal file
@@ -0,0 +1,929 @@
|
||||
"use strict";
|
||||
/**
|
||||
* Copyright 2019 Google LLC
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const googleapis_common_1 = require("googleapis-common");
|
||||
// tslint:disable: no-any
|
||||
// tslint:disable: class-name
|
||||
// tslint:disable: variable-name
|
||||
// tslint:disable: jsdoc-format
|
||||
// tslint:disable: no-namespace
|
||||
var adsensehost_v4_1;
|
||||
(function (adsensehost_v4_1) {
|
||||
/**
|
||||
* 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
|
||||
*/
|
||||
class Adsensehost {
|
||||
constructor(options, google) {
|
||||
this.context = {
|
||||
_options: options || {},
|
||||
google,
|
||||
};
|
||||
this.accounts = new Resource$Accounts(this.context);
|
||||
this.adclients = new Resource$Adclients(this.context);
|
||||
this.associationsessions = new Resource$Associationsessions(this.context);
|
||||
this.customchannels = new Resource$Customchannels(this.context);
|
||||
this.reports = new Resource$Reports(this.context);
|
||||
this.urlchannels = new Resource$Urlchannels(this.context);
|
||||
}
|
||||
}
|
||||
adsensehost_v4_1.Adsensehost = Adsensehost;
|
||||
class Resource$Accounts {
|
||||
constructor(context) {
|
||||
this.context = context;
|
||||
this.adclients = new Resource$Accounts$Adclients(this.context);
|
||||
this.adunits = new Resource$Accounts$Adunits(this.context);
|
||||
this.reports = new Resource$Accounts$Reports(this.context);
|
||||
}
|
||||
get(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback || {});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
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,
|
||||
requiredParams: ['accountId'],
|
||||
pathParams: ['accountId'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
list(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback || {});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
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,
|
||||
requiredParams: ['filterAdClientId'],
|
||||
pathParams: [],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
}
|
||||
adsensehost_v4_1.Resource$Accounts = Resource$Accounts;
|
||||
class Resource$Accounts$Adclients {
|
||||
constructor(context) {
|
||||
this.context = context;
|
||||
}
|
||||
get(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
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,
|
||||
requiredParams: ['accountId', 'adClientId'],
|
||||
pathParams: ['accountId', 'adClientId'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
list(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
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,
|
||||
requiredParams: ['accountId'],
|
||||
pathParams: ['accountId'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
}
|
||||
adsensehost_v4_1.Resource$Accounts$Adclients = Resource$Accounts$Adclients;
|
||||
class Resource$Accounts$Adunits {
|
||||
constructor(context) {
|
||||
this.context = context;
|
||||
}
|
||||
delete(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
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,
|
||||
requiredParams: ['accountId', 'adClientId', 'adUnitId'],
|
||||
pathParams: ['accountId', 'adClientId', 'adUnitId'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
get(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
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,
|
||||
requiredParams: ['accountId', 'adClientId', 'adUnitId'],
|
||||
pathParams: ['accountId', 'adClientId', 'adUnitId'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
getAdCode(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
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,
|
||||
requiredParams: ['accountId', 'adClientId', 'adUnitId'],
|
||||
pathParams: ['accountId', 'adClientId', 'adUnitId'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
insert(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
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,
|
||||
requiredParams: ['accountId', 'adClientId'],
|
||||
pathParams: ['accountId', 'adClientId'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
list(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
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,
|
||||
requiredParams: ['accountId', 'adClientId'],
|
||||
pathParams: ['accountId', 'adClientId'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
patch(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
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,
|
||||
requiredParams: ['accountId', 'adClientId', 'adUnitId'],
|
||||
pathParams: ['accountId', 'adClientId'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
update(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
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,
|
||||
requiredParams: ['accountId', 'adClientId'],
|
||||
pathParams: ['accountId', 'adClientId'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
}
|
||||
adsensehost_v4_1.Resource$Accounts$Adunits = Resource$Accounts$Adunits;
|
||||
class Resource$Accounts$Reports {
|
||||
constructor(context) {
|
||||
this.context = context;
|
||||
}
|
||||
generate(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
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,
|
||||
requiredParams: ['accountId', 'startDate', 'endDate'],
|
||||
pathParams: ['accountId'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
}
|
||||
adsensehost_v4_1.Resource$Accounts$Reports = Resource$Accounts$Reports;
|
||||
class Resource$Adclients {
|
||||
constructor(context) {
|
||||
this.context = context;
|
||||
}
|
||||
get(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback || {});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
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,
|
||||
requiredParams: ['adClientId'],
|
||||
pathParams: ['adClientId'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
list(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback || {});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
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,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
}
|
||||
adsensehost_v4_1.Resource$Adclients = Resource$Adclients;
|
||||
class Resource$Associationsessions {
|
||||
constructor(context) {
|
||||
this.context = context;
|
||||
}
|
||||
start(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
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,
|
||||
requiredParams: ['productCode', 'websiteUrl'],
|
||||
pathParams: [],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
verify(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
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,
|
||||
requiredParams: ['token'],
|
||||
pathParams: [],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
}
|
||||
adsensehost_v4_1.Resource$Associationsessions = Resource$Associationsessions;
|
||||
class Resource$Customchannels {
|
||||
constructor(context) {
|
||||
this.context = context;
|
||||
}
|
||||
delete(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
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,
|
||||
requiredParams: ['adClientId', 'customChannelId'],
|
||||
pathParams: ['adClientId', 'customChannelId'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
get(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
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,
|
||||
requiredParams: ['adClientId', 'customChannelId'],
|
||||
pathParams: ['adClientId', 'customChannelId'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
insert(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
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,
|
||||
requiredParams: ['adClientId'],
|
||||
pathParams: ['adClientId'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
list(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
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,
|
||||
requiredParams: ['adClientId'],
|
||||
pathParams: ['adClientId'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
patch(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
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,
|
||||
requiredParams: ['adClientId', 'customChannelId'],
|
||||
pathParams: ['adClientId'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
update(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
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,
|
||||
requiredParams: ['adClientId'],
|
||||
pathParams: ['adClientId'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
}
|
||||
adsensehost_v4_1.Resource$Customchannels = Resource$Customchannels;
|
||||
class Resource$Reports {
|
||||
constructor(context) {
|
||||
this.context = context;
|
||||
}
|
||||
generate(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback || {});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
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,
|
||||
requiredParams: ['startDate', 'endDate'],
|
||||
pathParams: [],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
}
|
||||
adsensehost_v4_1.Resource$Reports = Resource$Reports;
|
||||
class Resource$Urlchannels {
|
||||
constructor(context) {
|
||||
this.context = context;
|
||||
}
|
||||
delete(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
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,
|
||||
requiredParams: ['adClientId', 'urlChannelId'],
|
||||
pathParams: ['adClientId', 'urlChannelId'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
insert(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
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,
|
||||
requiredParams: ['adClientId'],
|
||||
pathParams: ['adClientId'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
list(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback || {});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
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,
|
||||
requiredParams: ['adClientId'],
|
||||
pathParams: ['adClientId'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
}
|
||||
adsensehost_v4_1.Resource$Urlchannels = Resource$Urlchannels;
|
||||
})(adsensehost_v4_1 = exports.adsensehost_v4_1 || (exports.adsensehost_v4_1 = {}));
|
||||
//# sourceMappingURL=v4.1.js.map
|
||||
10
node_modules/googleapis/build/src/apis/alertcenter/index.d.ts
generated
vendored
Normal file
10
node_modules/googleapis/build/src/apis/alertcenter/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
/*! THIS FILE IS AUTO-GENERATED */
|
||||
import { AuthPlus } from 'googleapis-common';
|
||||
import { alertcenter_v1beta1 } from './v1beta1';
|
||||
export declare const VERSIONS: {
|
||||
v1beta1: typeof alertcenter_v1beta1.Alertcenter;
|
||||
};
|
||||
export declare function alertcenter(version: 'v1beta1'): alertcenter_v1beta1.Alertcenter;
|
||||
export declare function alertcenter(options: alertcenter_v1beta1.Options): alertcenter_v1beta1.Alertcenter;
|
||||
declare const auth: AuthPlus;
|
||||
export { auth };
|
||||
27
node_modules/googleapis/build/src/apis/alertcenter/index.js
generated
vendored
Normal file
27
node_modules/googleapis/build/src/apis/alertcenter/index.js
generated
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
"use strict";
|
||||
// Copyright 2019 Google LLC
|
||||
// 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.
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
/*! THIS FILE IS AUTO-GENERATED */
|
||||
const googleapis_common_1 = require("googleapis-common");
|
||||
const v1beta1_1 = require("./v1beta1");
|
||||
exports.VERSIONS = {
|
||||
v1beta1: v1beta1_1.alertcenter_v1beta1.Alertcenter,
|
||||
};
|
||||
function alertcenter(versionOrOptions) {
|
||||
return googleapis_common_1.getAPI('alertcenter', versionOrOptions, exports.VERSIONS, this);
|
||||
}
|
||||
exports.alertcenter = alertcenter;
|
||||
const auth = new googleapis_common_1.AuthPlus();
|
||||
exports.auth = auth;
|
||||
//# sourceMappingURL=index.js.map
|
||||
893
node_modules/googleapis/build/src/apis/alertcenter/v1beta1.d.ts
generated
vendored
Normal file
893
node_modules/googleapis/build/src/apis/alertcenter/v1beta1.d.ts
generated
vendored
Normal file
@@ -0,0 +1,893 @@
|
||||
/**
|
||||
* Copyright 2019 Google LLC
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
import { OAuth2Client, JWT, Compute, UserRefreshClient } from 'google-auth-library';
|
||||
import { GoogleConfigurable, MethodOptions, GlobalOptions, BodyResponseCallback, APIRequestContext } from 'googleapis-common';
|
||||
import { GaxiosPromise } from 'gaxios';
|
||||
export declare namespace alertcenter_v1beta1 {
|
||||
interface Options extends GlobalOptions {
|
||||
version: 'v1beta1';
|
||||
}
|
||||
interface StandardParameters {
|
||||
/**
|
||||
* V1 error format.
|
||||
*/
|
||||
'$.xgafv'?: string;
|
||||
/**
|
||||
* OAuth access token.
|
||||
*/
|
||||
access_token?: string;
|
||||
/**
|
||||
* Data format for response.
|
||||
*/
|
||||
alt?: string;
|
||||
/**
|
||||
* JSONP
|
||||
*/
|
||||
callback?: string;
|
||||
/**
|
||||
* Selector specifying which fields to include in a partial response.
|
||||
*/
|
||||
fields?: string;
|
||||
/**
|
||||
* API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
|
||||
*/
|
||||
key?: string;
|
||||
/**
|
||||
* OAuth 2.0 token for the current user.
|
||||
*/
|
||||
oauth_token?: string;
|
||||
/**
|
||||
* Returns response with indentations and line breaks.
|
||||
*/
|
||||
prettyPrint?: boolean;
|
||||
/**
|
||||
* Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
*/
|
||||
quotaUser?: string;
|
||||
/**
|
||||
* Legacy upload protocol for media (e.g. "media", "multipart").
|
||||
*/
|
||||
uploadType?: string;
|
||||
/**
|
||||
* Upload protocol for media (e.g. "raw", "multipart").
|
||||
*/
|
||||
upload_protocol?: string;
|
||||
}
|
||||
/**
|
||||
* G Suite Alert Center API
|
||||
*
|
||||
* Manages alerts on issues affecting your domain.
|
||||
*
|
||||
* @example
|
||||
* const {google} = require('googleapis');
|
||||
* const alertcenter = google.alertcenter('v1beta1');
|
||||
*
|
||||
* @namespace alertcenter
|
||||
* @type {Function}
|
||||
* @version v1beta1
|
||||
* @variation v1beta1
|
||||
* @param {object=} options Options for Alertcenter
|
||||
*/
|
||||
class Alertcenter {
|
||||
context: APIRequestContext;
|
||||
alerts: Resource$Alerts;
|
||||
v1beta1: Resource$V1beta1;
|
||||
constructor(options: GlobalOptions, google?: GoogleConfigurable);
|
||||
}
|
||||
/**
|
||||
* Alerts for user account warning events.
|
||||
*/
|
||||
interface Schema$AccountWarning {
|
||||
/**
|
||||
* Required. The email of the user that this event belongs to.
|
||||
*/
|
||||
email?: string;
|
||||
/**
|
||||
* Optional. Details of the login action associated with the warning event. This is only available for: * Suspicious login * Suspicious login (less secure app) * Suspicious programmatic login * User suspended (suspicious activity)
|
||||
*/
|
||||
loginDetails?: Schema$LoginDetails;
|
||||
}
|
||||
/**
|
||||
* Alerts from G Suite Security Center rules service configured by admin.
|
||||
*/
|
||||
interface Schema$ActivityRule {
|
||||
/**
|
||||
* List of action names associated with the rule threshold.
|
||||
*/
|
||||
actionNames?: string[];
|
||||
/**
|
||||
* Rule create timestamp.
|
||||
*/
|
||||
createTime?: string;
|
||||
/**
|
||||
* Description of the rule.
|
||||
*/
|
||||
description?: string;
|
||||
/**
|
||||
* Alert display name.
|
||||
*/
|
||||
displayName?: string;
|
||||
/**
|
||||
* Rule name.
|
||||
*/
|
||||
name?: string;
|
||||
/**
|
||||
* Query that is used to get the data from the associated source.
|
||||
*/
|
||||
query?: string;
|
||||
/**
|
||||
* List of alert ids superseded by this alert. It is used to indicate that this alert is essentially extension of superseded alerts and we found the relationship after creating these alerts.
|
||||
*/
|
||||
supersededAlerts?: string[];
|
||||
/**
|
||||
* Alert id superseding this alert. It is used to indicate that superseding alert is essentially extension of this alert and we found the relationship after creating both alerts.
|
||||
*/
|
||||
supersedingAlert?: string;
|
||||
/**
|
||||
* Alert threshold is for example “COUNT > 5”.
|
||||
*/
|
||||
threshold?: string;
|
||||
/**
|
||||
* The trigger sources for this rule. * GMAIL_EVENTS * DEVICE_EVENTS * USER_EVENTS
|
||||
*/
|
||||
triggerSource?: string;
|
||||
/**
|
||||
* The timestamp of the last update to the rule.
|
||||
*/
|
||||
updateTime?: string;
|
||||
/**
|
||||
* Rule window size. Possible values are 1 hour or 24 hours.
|
||||
*/
|
||||
windowSize?: string;
|
||||
}
|
||||
/**
|
||||
* An alert affecting a customer.
|
||||
*/
|
||||
interface Schema$Alert {
|
||||
/**
|
||||
* Output only. The unique identifier for the alert.
|
||||
*/
|
||||
alertId?: string;
|
||||
/**
|
||||
* Output only. The time this alert was created.
|
||||
*/
|
||||
createTime?: string;
|
||||
/**
|
||||
* Output only. The unique identifier of the Google account of the customer.
|
||||
*/
|
||||
customerId?: string;
|
||||
/**
|
||||
* Optional. The data associated with this alert, for example google.apps.alertcenter.type.DeviceCompromised.
|
||||
*/
|
||||
data?: {
|
||||
[key: string]: any;
|
||||
};
|
||||
/**
|
||||
* Output only. `True` if this alert is marked for deletion.
|
||||
*/
|
||||
deleted?: boolean;
|
||||
/**
|
||||
* Optional. The time the event that caused this alert ceased being active. If provided, the end time must not be earlier than the start time. If not provided, it indicates an ongoing alert.
|
||||
*/
|
||||
endTime?: string;
|
||||
/**
|
||||
* Output only. An optional [Security Investigation Tool](https://support.google.com/a/answer/7575955) query for this alert.
|
||||
*/
|
||||
securityInvestigationToolLink?: string;
|
||||
/**
|
||||
* Required. A unique identifier for the system that reported the alert. This is output only after alert is created. Supported sources are any of the following: * Google Operations * Mobile device management * Gmail phishing * Domain wide takeout * Government attack warning * Google identity
|
||||
*/
|
||||
source?: string;
|
||||
/**
|
||||
* Required. The time the event that caused this alert was started or detected.
|
||||
*/
|
||||
startTime?: string;
|
||||
/**
|
||||
* Required. The type of the alert. This is output only after alert is created. For a list of available alert types see [G Suite Alert types](/admin-sdk/alertcenter/reference/alert-types).
|
||||
*/
|
||||
type?: string;
|
||||
/**
|
||||
* Output only. The time this alert was last updated.
|
||||
*/
|
||||
updateTime?: string;
|
||||
}
|
||||
/**
|
||||
* A customer feedback about an alert.
|
||||
*/
|
||||
interface Schema$AlertFeedback {
|
||||
/**
|
||||
* Output only. The alert identifier.
|
||||
*/
|
||||
alertId?: string;
|
||||
/**
|
||||
* Output only. The time this feedback was created.
|
||||
*/
|
||||
createTime?: string;
|
||||
/**
|
||||
* Output only. The unique identifier of the Google account of the customer.
|
||||
*/
|
||||
customerId?: string;
|
||||
/**
|
||||
* Output only. The email of the user that provided the feedback.
|
||||
*/
|
||||
email?: string;
|
||||
/**
|
||||
* Output only. The unique identifier for the feedback.
|
||||
*/
|
||||
feedbackId?: string;
|
||||
/**
|
||||
* Required. The type of the feedback.
|
||||
*/
|
||||
type?: string;
|
||||
}
|
||||
/**
|
||||
* Attachment with application-specific information about an alert.
|
||||
*/
|
||||
interface Schema$Attachment {
|
||||
/**
|
||||
* A CSV file attachment.
|
||||
*/
|
||||
csv?: Schema$Csv;
|
||||
}
|
||||
/**
|
||||
* Alert for setting the domain or IP that malicious email comes from as whitelisted domain or IP in Gmail advanced settings.
|
||||
*/
|
||||
interface Schema$BadWhitelist {
|
||||
/**
|
||||
* The domain ID.
|
||||
*/
|
||||
domainId?: Schema$DomainId;
|
||||
/**
|
||||
* The entity whose actions triggered a Gmail phishing alert.
|
||||
*/
|
||||
maliciousEntity?: Schema$MaliciousEntity;
|
||||
/**
|
||||
* The list of messages contained by this alert.
|
||||
*/
|
||||
messages?: Schema$GmailMessageInfo[];
|
||||
/**
|
||||
* The source IP address of the malicious email, for example, `127.0.0.1`.
|
||||
*/
|
||||
sourceIp?: string;
|
||||
}
|
||||
/**
|
||||
* A reference to a Cloud Pubsub topic. To register for notifications, the owner of the topic must grant `alerts-api-push-notifications@system.gserviceaccount.com` the `projects.topics.publish` permission.
|
||||
*/
|
||||
interface Schema$CloudPubsubTopic {
|
||||
/**
|
||||
* Optional. The format of the payload that would be sent. If not specified the format will be JSON.
|
||||
*/
|
||||
payloadFormat?: string;
|
||||
/**
|
||||
* The `name` field of a Cloud Pubsub [Topic] (https://cloud.google.com/pubsub/docs/reference/rest/v1/projects.topics#Topic).
|
||||
*/
|
||||
topicName?: string;
|
||||
}
|
||||
/**
|
||||
* A representation of a CSV file attachment, as a list of column headers and a list of data rows.
|
||||
*/
|
||||
interface Schema$Csv {
|
||||
/**
|
||||
* The list of data rows in a CSV file, as string arrays rather than as a single comma-separated string.
|
||||
*/
|
||||
dataRows?: Schema$CsvRow[];
|
||||
/**
|
||||
* The list of headers for data columns in a CSV file.
|
||||
*/
|
||||
headers?: string[];
|
||||
}
|
||||
/**
|
||||
* A representation of a single data row in a CSV file.
|
||||
*/
|
||||
interface Schema$CsvRow {
|
||||
/**
|
||||
* The data entries in a CSV file row, as a string array rather than a single comma-separated string.
|
||||
*/
|
||||
entries?: string[];
|
||||
}
|
||||
/**
|
||||
* A mobile device compromised alert. Derived from audit logs.
|
||||
*/
|
||||
interface Schema$DeviceCompromised {
|
||||
/**
|
||||
* The email of the user this alert was created for.
|
||||
*/
|
||||
email?: string;
|
||||
/**
|
||||
* Required. The list of security events.
|
||||
*/
|
||||
events?: Schema$DeviceCompromisedSecurityDetail[];
|
||||
}
|
||||
/**
|
||||
* Detailed information of a single MDM device compromised event.
|
||||
*/
|
||||
interface Schema$DeviceCompromisedSecurityDetail {
|
||||
/**
|
||||
* The device compromised state. Possible values are "`Compromised`" or "`Not Compromised`".
|
||||
*/
|
||||
deviceCompromisedState?: string;
|
||||
/**
|
||||
* Required. The device ID.
|
||||
*/
|
||||
deviceId?: string;
|
||||
/**
|
||||
* The model of the device.
|
||||
*/
|
||||
deviceModel?: string;
|
||||
/**
|
||||
* The type of the device.
|
||||
*/
|
||||
deviceType?: string;
|
||||
/**
|
||||
* Required for iOS, empty for others.
|
||||
*/
|
||||
iosVendorId?: string;
|
||||
/**
|
||||
* The device resource ID.
|
||||
*/
|
||||
resourceId?: string;
|
||||
/**
|
||||
* The serial number of the device.
|
||||
*/
|
||||
serialNumber?: string;
|
||||
}
|
||||
/**
|
||||
* Domain ID of Gmail phishing alerts.
|
||||
*/
|
||||
interface Schema$DomainId {
|
||||
/**
|
||||
* The primary domain for the customer.
|
||||
*/
|
||||
customerPrimaryDomain?: string;
|
||||
}
|
||||
/**
|
||||
* A takeout operation for the entire domain was initiated by an admin. Derived from audit logs.
|
||||
*/
|
||||
interface Schema$DomainWideTakeoutInitiated {
|
||||
/**
|
||||
* The email of the admin who initiated the takeout.
|
||||
*/
|
||||
email?: string;
|
||||
/**
|
||||
* The takeout request ID.
|
||||
*/
|
||||
takeoutRequestId?: string;
|
||||
}
|
||||
/**
|
||||
* A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`.
|
||||
*/
|
||||
interface Schema$Empty {
|
||||
}
|
||||
/**
|
||||
* Details of a message in phishing spike alert.
|
||||
*/
|
||||
interface Schema$GmailMessageInfo {
|
||||
/**
|
||||
* The `SHA256` hash of email's attachment and all MIME parts.
|
||||
*/
|
||||
attachmentsSha256Hash?: string[];
|
||||
/**
|
||||
* The date the malicious email was sent.
|
||||
*/
|
||||
date?: string;
|
||||
/**
|
||||
* The hash of the message body text.
|
||||
*/
|
||||
md5HashMessageBody?: string;
|
||||
/**
|
||||
* The MD5 Hash of email's subject (only available for reported emails).
|
||||
*/
|
||||
md5HashSubject?: string;
|
||||
/**
|
||||
* The snippet of the message body text (only available for reported emails).
|
||||
*/
|
||||
messageBodySnippet?: string;
|
||||
/**
|
||||
* The message ID.
|
||||
*/
|
||||
messageId?: string;
|
||||
/**
|
||||
* The recipient of this email.
|
||||
*/
|
||||
recipient?: string;
|
||||
/**
|
||||
* The email subject text (only available for reported emails).
|
||||
*/
|
||||
subjectText?: string;
|
||||
}
|
||||
/**
|
||||
* An incident reported by Google Operations for a G Suite application.
|
||||
*/
|
||||
interface Schema$GoogleOperations {
|
||||
/**
|
||||
* The list of emails which correspond to the users directly affected by the incident.
|
||||
*/
|
||||
affectedUserEmails?: string[];
|
||||
/**
|
||||
* Optional. Application-specific data for an incident, provided when the G Suite application which reported the incident cannot be completely restored to a valid state.
|
||||
*/
|
||||
attachmentData?: Schema$Attachment;
|
||||
/**
|
||||
* A detailed, freeform incident description.
|
||||
*/
|
||||
description?: string;
|
||||
/**
|
||||
* A one-line incident description.
|
||||
*/
|
||||
title?: string;
|
||||
}
|
||||
/**
|
||||
* Response message for an alert feedback listing request.
|
||||
*/
|
||||
interface Schema$ListAlertFeedbackResponse {
|
||||
/**
|
||||
* The list of alert feedback. Feedback entries for each alert are ordered by creation time descending.
|
||||
*/
|
||||
feedback?: Schema$AlertFeedback[];
|
||||
}
|
||||
/**
|
||||
* Response message for an alert listing request.
|
||||
*/
|
||||
interface Schema$ListAlertsResponse {
|
||||
/**
|
||||
* The list of alerts.
|
||||
*/
|
||||
alerts?: Schema$Alert[];
|
||||
/**
|
||||
* The token for the next page. If not empty, indicates that there may be more alerts that match the listing request; this value can be used in a subsequent ListAlertsRequest to get alerts continuing from last result of the current list call.
|
||||
*/
|
||||
nextPageToken?: string;
|
||||
}
|
||||
/**
|
||||
* The details of the login action.
|
||||
*/
|
||||
interface Schema$LoginDetails {
|
||||
/**
|
||||
* Optional. The human-readable IP address (for example, `11.22.33.44`) that is associated with the warning event.
|
||||
*/
|
||||
ipAddress?: string;
|
||||
/**
|
||||
* Optional. The successful login time that is associated with the warning event. This will not be present for blocked login attempts.
|
||||
*/
|
||||
loginTime?: string;
|
||||
}
|
||||
/**
|
||||
* Proto for all phishing alerts with common payload. Supported types are any of the following: * User reported phishing * User reported spam spike * Suspicious message reported * Phishing reclassification * Malware reclassification
|
||||
*/
|
||||
interface Schema$MailPhishing {
|
||||
/**
|
||||
* The domain ID.
|
||||
*/
|
||||
domainId?: Schema$DomainId;
|
||||
/**
|
||||
* If `true`, the email originated from within the organization.
|
||||
*/
|
||||
isInternal?: boolean;
|
||||
/**
|
||||
* The entity whose actions triggered a Gmail phishing alert.
|
||||
*/
|
||||
maliciousEntity?: Schema$MaliciousEntity;
|
||||
/**
|
||||
* The list of messages contained by this alert.
|
||||
*/
|
||||
messages?: Schema$GmailMessageInfo[];
|
||||
}
|
||||
/**
|
||||
* Entity whose actions triggered a Gmail phishing alert.
|
||||
*/
|
||||
interface Schema$MaliciousEntity {
|
||||
/**
|
||||
* The header from display name.
|
||||
*/
|
||||
displayName?: string;
|
||||
/**
|
||||
* The sender email address.
|
||||
*/
|
||||
fromHeader?: string;
|
||||
}
|
||||
/**
|
||||
* Settings for callback notifications. For more details see [G Suite Alert Notification](/admin-sdk/alertcenter/guides/notifications).
|
||||
*/
|
||||
interface Schema$Notification {
|
||||
/**
|
||||
* A Google Cloud Pub/sub topic destination.
|
||||
*/
|
||||
cloudPubsubTopic?: Schema$CloudPubsubTopic;
|
||||
}
|
||||
/**
|
||||
* Alert for a spike in user reported phishing. <aside class="warning"><b>Warning</b>: This type has been deprecated. Use [MailPhishing](/admin-sdk/alertcenter/reference/rest/v1beta1/MailPhishing) instead.</aside>
|
||||
*/
|
||||
interface Schema$PhishingSpike {
|
||||
/**
|
||||
* The domain ID.
|
||||
*/
|
||||
domainId?: Schema$DomainId;
|
||||
/**
|
||||
* If `true`, the email originated from within the organization.
|
||||
*/
|
||||
isInternal?: boolean;
|
||||
/**
|
||||
* The entity whose actions triggered a Gmail phishing alert.
|
||||
*/
|
||||
maliciousEntity?: Schema$MaliciousEntity;
|
||||
/**
|
||||
* The list of messages contained by this alert.
|
||||
*/
|
||||
messages?: Schema$GmailMessageInfo[];
|
||||
}
|
||||
/**
|
||||
* Customer-level settings.
|
||||
*/
|
||||
interface Schema$Settings {
|
||||
/**
|
||||
* The list of notifications.
|
||||
*/
|
||||
notifications?: Schema$Notification[];
|
||||
}
|
||||
/**
|
||||
* A state-sponsored attack alert. Derived from audit logs.
|
||||
*/
|
||||
interface Schema$StateSponsoredAttack {
|
||||
/**
|
||||
* The email of the user this incident was created for.
|
||||
*/
|
||||
email?: string;
|
||||
}
|
||||
/**
|
||||
* A mobile suspicious activity alert. Derived from audit logs.
|
||||
*/
|
||||
interface Schema$SuspiciousActivity {
|
||||
/**
|
||||
* The email of the user this alert was created for.
|
||||
*/
|
||||
email?: string;
|
||||
/**
|
||||
* Required. The list of security events.
|
||||
*/
|
||||
events?: Schema$SuspiciousActivitySecurityDetail[];
|
||||
}
|
||||
/**
|
||||
* Detailed information of a single MDM suspicious activity event.
|
||||
*/
|
||||
interface Schema$SuspiciousActivitySecurityDetail {
|
||||
/**
|
||||
* Required. The device ID.
|
||||
*/
|
||||
deviceId?: string;
|
||||
/**
|
||||
* The model of the device.
|
||||
*/
|
||||
deviceModel?: string;
|
||||
/**
|
||||
* The device property which was changed.
|
||||
*/
|
||||
deviceProperty?: string;
|
||||
/**
|
||||
* The type of the device.
|
||||
*/
|
||||
deviceType?: string;
|
||||
/**
|
||||
* Required for iOS, empty for others.
|
||||
*/
|
||||
iosVendorId?: string;
|
||||
/**
|
||||
* The new value of the device property after the change.
|
||||
*/
|
||||
newValue?: string;
|
||||
/**
|
||||
* The old value of the device property before the change.
|
||||
*/
|
||||
oldValue?: string;
|
||||
/**
|
||||
* The device resource ID.
|
||||
*/
|
||||
resourceId?: string;
|
||||
/**
|
||||
* The serial number of the device.
|
||||
*/
|
||||
serialNumber?: string;
|
||||
}
|
||||
/**
|
||||
* A request to undelete a specific alert that was marked for deletion.
|
||||
*/
|
||||
interface Schema$UndeleteAlertRequest {
|
||||
/**
|
||||
* Optional. The unique identifier of the G Suite organization account of the customer the alert is associated with. Inferred from the caller identity if not provided.
|
||||
*/
|
||||
customerId?: string;
|
||||
}
|
||||
class Resource$Alerts {
|
||||
context: APIRequestContext;
|
||||
feedback: Resource$Alerts$Feedback;
|
||||
constructor(context: APIRequestContext);
|
||||
/**
|
||||
* alertcenter.alerts.delete
|
||||
* @desc Marks the specified alert for deletion. An alert that has been marked for deletion is removed from Alert Center after 30 days. Marking an alert for deletion has no effect on an alert which has already been marked for deletion. Attempting to mark a nonexistent alert for deletion results in a `NOT_FOUND` error.
|
||||
* @alias alertcenter.alerts.delete
|
||||
* @memberOf! ()
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.alertId Required. The identifier of the alert to delete.
|
||||
* @param {string=} params.customerId Optional. The unique identifier of the G Suite organization account of the customer the alert is associated with. Inferred from the caller identity if not provided.
|
||||
* @param {object} [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(params?: Params$Resource$Alerts$Delete, options?: MethodOptions): GaxiosPromise<Schema$Empty>;
|
||||
delete(params: Params$Resource$Alerts$Delete, options: MethodOptions | BodyResponseCallback<Schema$Empty>, callback: BodyResponseCallback<Schema$Empty>): void;
|
||||
delete(params: Params$Resource$Alerts$Delete, callback: BodyResponseCallback<Schema$Empty>): void;
|
||||
delete(callback: BodyResponseCallback<Schema$Empty>): void;
|
||||
/**
|
||||
* alertcenter.alerts.get
|
||||
* @desc Gets the specified alert. Attempting to get a nonexistent alert returns `NOT_FOUND` error.
|
||||
* @alias alertcenter.alerts.get
|
||||
* @memberOf! ()
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.alertId Required. The identifier of the alert to retrieve.
|
||||
* @param {string=} params.customerId Optional. The unique identifier of the G Suite organization account of the customer the alert is associated with. Inferred from the caller identity if not provided.
|
||||
* @param {object} [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(params?: Params$Resource$Alerts$Get, options?: MethodOptions): GaxiosPromise<Schema$Alert>;
|
||||
get(params: Params$Resource$Alerts$Get, options: MethodOptions | BodyResponseCallback<Schema$Alert>, callback: BodyResponseCallback<Schema$Alert>): void;
|
||||
get(params: Params$Resource$Alerts$Get, callback: BodyResponseCallback<Schema$Alert>): void;
|
||||
get(callback: BodyResponseCallback<Schema$Alert>): void;
|
||||
/**
|
||||
* alertcenter.alerts.list
|
||||
* @desc Lists the alerts.
|
||||
* @alias alertcenter.alerts.list
|
||||
* @memberOf! ()
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string=} params.customerId Optional. The unique identifier of the G Suite organization account of the customer the alerts are associated with. Inferred from the caller identity if not provided.
|
||||
* @param {string=} params.filter Optional. A query string for filtering alert results. For more details, see [Query filters](/admin-sdk/alertcenter/guides/query-filters) and [Supported query filter fields](/admin-sdk/alertcenter/reference/filter-fields#alerts.list).
|
||||
* @param {string=} params.orderBy Optional. The sort order of the list results. If not specified results may be returned in arbitrary order. You can sort the results in descending order based on the creation timestamp using `order_by="create_time desc"`. Currently, supported sorting are `create_time asc`, `create_time desc`, `update_time desc`
|
||||
* @param {integer=} params.pageSize Optional. The requested page size. Server may return fewer items than requested. If unspecified, server picks an appropriate default.
|
||||
* @param {string=} params.pageToken Optional. A token identifying a page of results the server should return. If empty, a new iteration is started. To continue an iteration, pass in the value from the previous ListAlertsResponse's next_page_token field.
|
||||
* @param {object} [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(params?: Params$Resource$Alerts$List, options?: MethodOptions): GaxiosPromise<Schema$ListAlertsResponse>;
|
||||
list(params: Params$Resource$Alerts$List, options: MethodOptions | BodyResponseCallback<Schema$ListAlertsResponse>, callback: BodyResponseCallback<Schema$ListAlertsResponse>): void;
|
||||
list(params: Params$Resource$Alerts$List, callback: BodyResponseCallback<Schema$ListAlertsResponse>): void;
|
||||
list(callback: BodyResponseCallback<Schema$ListAlertsResponse>): void;
|
||||
/**
|
||||
* alertcenter.alerts.undelete
|
||||
* @desc Restores, or "undeletes", an alert that was marked for deletion within the past 30 days. Attempting to undelete an alert which was marked for deletion over 30 days ago (which has been removed from the Alert Center database) or a nonexistent alert returns a `NOT_FOUND` error. Attempting to undelete an alert which has not been marked for deletion has no effect.
|
||||
* @alias alertcenter.alerts.undelete
|
||||
* @memberOf! ()
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.alertId Required. The identifier of the alert to undelete.
|
||||
* @param {().UndeleteAlertRequest} 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
|
||||
*/
|
||||
undelete(params?: Params$Resource$Alerts$Undelete, options?: MethodOptions): GaxiosPromise<Schema$Alert>;
|
||||
undelete(params: Params$Resource$Alerts$Undelete, options: MethodOptions | BodyResponseCallback<Schema$Alert>, callback: BodyResponseCallback<Schema$Alert>): void;
|
||||
undelete(params: Params$Resource$Alerts$Undelete, callback: BodyResponseCallback<Schema$Alert>): void;
|
||||
undelete(callback: BodyResponseCallback<Schema$Alert>): void;
|
||||
}
|
||||
interface Params$Resource$Alerts$Delete extends StandardParameters {
|
||||
/**
|
||||
* Auth client or API Key for the request
|
||||
*/
|
||||
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
|
||||
/**
|
||||
* Required. The identifier of the alert to delete.
|
||||
*/
|
||||
alertId?: string;
|
||||
/**
|
||||
* Optional. The unique identifier of the G Suite organization account of the customer the alert is associated with. Inferred from the caller identity if not provided.
|
||||
*/
|
||||
customerId?: string;
|
||||
}
|
||||
interface Params$Resource$Alerts$Get extends StandardParameters {
|
||||
/**
|
||||
* Auth client or API Key for the request
|
||||
*/
|
||||
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
|
||||
/**
|
||||
* Required. The identifier of the alert to retrieve.
|
||||
*/
|
||||
alertId?: string;
|
||||
/**
|
||||
* Optional. The unique identifier of the G Suite organization account of the customer the alert is associated with. Inferred from the caller identity if not provided.
|
||||
*/
|
||||
customerId?: string;
|
||||
}
|
||||
interface Params$Resource$Alerts$List extends StandardParameters {
|
||||
/**
|
||||
* Auth client or API Key for the request
|
||||
*/
|
||||
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
|
||||
/**
|
||||
* Optional. The unique identifier of the G Suite organization account of the customer the alerts are associated with. Inferred from the caller identity if not provided.
|
||||
*/
|
||||
customerId?: string;
|
||||
/**
|
||||
* Optional. A query string for filtering alert results. For more details, see [Query filters](/admin-sdk/alertcenter/guides/query-filters) and [Supported query filter fields](/admin-sdk/alertcenter/reference/filter-fields#alerts.list).
|
||||
*/
|
||||
filter?: string;
|
||||
/**
|
||||
* Optional. The sort order of the list results. If not specified results may be returned in arbitrary order. You can sort the results in descending order based on the creation timestamp using `order_by="create_time desc"`. Currently, supported sorting are `create_time asc`, `create_time desc`, `update_time desc`
|
||||
*/
|
||||
orderBy?: string;
|
||||
/**
|
||||
* Optional. The requested page size. Server may return fewer items than requested. If unspecified, server picks an appropriate default.
|
||||
*/
|
||||
pageSize?: number;
|
||||
/**
|
||||
* Optional. A token identifying a page of results the server should return. If empty, a new iteration is started. To continue an iteration, pass in the value from the previous ListAlertsResponse's next_page_token field.
|
||||
*/
|
||||
pageToken?: string;
|
||||
}
|
||||
interface Params$Resource$Alerts$Undelete extends StandardParameters {
|
||||
/**
|
||||
* Auth client or API Key for the request
|
||||
*/
|
||||
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
|
||||
/**
|
||||
* Required. The identifier of the alert to undelete.
|
||||
*/
|
||||
alertId?: string;
|
||||
/**
|
||||
* Request body metadata
|
||||
*/
|
||||
requestBody?: Schema$UndeleteAlertRequest;
|
||||
}
|
||||
class Resource$Alerts$Feedback {
|
||||
context: APIRequestContext;
|
||||
constructor(context: APIRequestContext);
|
||||
/**
|
||||
* alertcenter.alerts.feedback.create
|
||||
* @desc Creates new feedback for an alert. Attempting to create a feedback for a non-existent alert returns `NOT_FOUND` error.
|
||||
* @alias alertcenter.alerts.feedback.create
|
||||
* @memberOf! ()
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.alertId Required. The identifier of the alert this feedback belongs to.
|
||||
* @param {string=} params.customerId Optional. The unique identifier of the G Suite organization account of the customer the alert is associated with. Inferred from the caller identity if not provided.
|
||||
* @param {().AlertFeedback} 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(params?: Params$Resource$Alerts$Feedback$Create, options?: MethodOptions): GaxiosPromise<Schema$AlertFeedback>;
|
||||
create(params: Params$Resource$Alerts$Feedback$Create, options: MethodOptions | BodyResponseCallback<Schema$AlertFeedback>, callback: BodyResponseCallback<Schema$AlertFeedback>): void;
|
||||
create(params: Params$Resource$Alerts$Feedback$Create, callback: BodyResponseCallback<Schema$AlertFeedback>): void;
|
||||
create(callback: BodyResponseCallback<Schema$AlertFeedback>): void;
|
||||
/**
|
||||
* alertcenter.alerts.feedback.list
|
||||
* @desc Lists all the feedback for an alert. Attempting to list feedbacks for a non-existent alert returns `NOT_FOUND` error.
|
||||
* @alias alertcenter.alerts.feedback.list
|
||||
* @memberOf! ()
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.alertId Required. The alert identifier. The "-" wildcard could be used to represent all alerts.
|
||||
* @param {string=} params.customerId Optional. The unique identifier of the G Suite organization account of the customer the alert feedback are associated with. Inferred from the caller identity if not provided.
|
||||
* @param {string=} params.filter Optional. A query string for filtering alert feedback results. For more details, see [Query filters](/admin-sdk/alertcenter/guides/query-filters) and [Supported query filter fields](/admin-sdk/alertcenter/reference/filter-fields#alerts.feedback.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(params?: Params$Resource$Alerts$Feedback$List, options?: MethodOptions): GaxiosPromise<Schema$ListAlertFeedbackResponse>;
|
||||
list(params: Params$Resource$Alerts$Feedback$List, options: MethodOptions | BodyResponseCallback<Schema$ListAlertFeedbackResponse>, callback: BodyResponseCallback<Schema$ListAlertFeedbackResponse>): void;
|
||||
list(params: Params$Resource$Alerts$Feedback$List, callback: BodyResponseCallback<Schema$ListAlertFeedbackResponse>): void;
|
||||
list(callback: BodyResponseCallback<Schema$ListAlertFeedbackResponse>): void;
|
||||
}
|
||||
interface Params$Resource$Alerts$Feedback$Create extends StandardParameters {
|
||||
/**
|
||||
* Auth client or API Key for the request
|
||||
*/
|
||||
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
|
||||
/**
|
||||
* Required. The identifier of the alert this feedback belongs to.
|
||||
*/
|
||||
alertId?: string;
|
||||
/**
|
||||
* Optional. The unique identifier of the G Suite organization account of the customer the alert is associated with. Inferred from the caller identity if not provided.
|
||||
*/
|
||||
customerId?: string;
|
||||
/**
|
||||
* Request body metadata
|
||||
*/
|
||||
requestBody?: Schema$AlertFeedback;
|
||||
}
|
||||
interface Params$Resource$Alerts$Feedback$List extends StandardParameters {
|
||||
/**
|
||||
* Auth client or API Key for the request
|
||||
*/
|
||||
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
|
||||
/**
|
||||
* Required. The alert identifier. The "-" wildcard could be used to represent all alerts.
|
||||
*/
|
||||
alertId?: string;
|
||||
/**
|
||||
* Optional. The unique identifier of the G Suite organization account of the customer the alert feedback are associated with. Inferred from the caller identity if not provided.
|
||||
*/
|
||||
customerId?: string;
|
||||
/**
|
||||
* Optional. A query string for filtering alert feedback results. For more details, see [Query filters](/admin-sdk/alertcenter/guides/query-filters) and [Supported query filter fields](/admin-sdk/alertcenter/reference/filter-fields#alerts.feedback.list).
|
||||
*/
|
||||
filter?: string;
|
||||
}
|
||||
class Resource$V1beta1 {
|
||||
context: APIRequestContext;
|
||||
constructor(context: APIRequestContext);
|
||||
/**
|
||||
* alertcenter.getSettings
|
||||
* @desc Returns customer-level settings.
|
||||
* @alias alertcenter.getSettings
|
||||
* @memberOf! ()
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string=} params.customerId Optional. The unique identifier of the G Suite organization account of the customer the alert settings are associated with. Inferred from the caller identity if not provided.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
getSettings(params?: Params$Resource$V1beta1$Getsettings, options?: MethodOptions): GaxiosPromise<Schema$Settings>;
|
||||
getSettings(params: Params$Resource$V1beta1$Getsettings, options: MethodOptions | BodyResponseCallback<Schema$Settings>, callback: BodyResponseCallback<Schema$Settings>): void;
|
||||
getSettings(params: Params$Resource$V1beta1$Getsettings, callback: BodyResponseCallback<Schema$Settings>): void;
|
||||
getSettings(callback: BodyResponseCallback<Schema$Settings>): void;
|
||||
/**
|
||||
* alertcenter.updateSettings
|
||||
* @desc Updates the customer-level settings.
|
||||
* @alias alertcenter.updateSettings
|
||||
* @memberOf! ()
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string=} params.customerId Optional. The unique identifier of the G Suite organization account of the customer the alert settings are associated with. Inferred from the caller identity if not provided.
|
||||
* @param {().Settings} 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
|
||||
*/
|
||||
updateSettings(params?: Params$Resource$V1beta1$Updatesettings, options?: MethodOptions): GaxiosPromise<Schema$Settings>;
|
||||
updateSettings(params: Params$Resource$V1beta1$Updatesettings, options: MethodOptions | BodyResponseCallback<Schema$Settings>, callback: BodyResponseCallback<Schema$Settings>): void;
|
||||
updateSettings(params: Params$Resource$V1beta1$Updatesettings, callback: BodyResponseCallback<Schema$Settings>): void;
|
||||
updateSettings(callback: BodyResponseCallback<Schema$Settings>): void;
|
||||
}
|
||||
interface Params$Resource$V1beta1$Getsettings extends StandardParameters {
|
||||
/**
|
||||
* Auth client or API Key for the request
|
||||
*/
|
||||
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
|
||||
/**
|
||||
* Optional. The unique identifier of the G Suite organization account of the customer the alert settings are associated with. Inferred from the caller identity if not provided.
|
||||
*/
|
||||
customerId?: string;
|
||||
}
|
||||
interface Params$Resource$V1beta1$Updatesettings extends StandardParameters {
|
||||
/**
|
||||
* Auth client or API Key for the request
|
||||
*/
|
||||
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
|
||||
/**
|
||||
* Optional. The unique identifier of the G Suite organization account of the customer the alert settings are associated with. Inferred from the caller identity if not provided.
|
||||
*/
|
||||
customerId?: string;
|
||||
/**
|
||||
* Request body metadata
|
||||
*/
|
||||
requestBody?: Schema$Settings;
|
||||
}
|
||||
}
|
||||
316
node_modules/googleapis/build/src/apis/alertcenter/v1beta1.js
generated
vendored
Normal file
316
node_modules/googleapis/build/src/apis/alertcenter/v1beta1.js
generated
vendored
Normal file
@@ -0,0 +1,316 @@
|
||||
"use strict";
|
||||
/**
|
||||
* Copyright 2019 Google LLC
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const googleapis_common_1 = require("googleapis-common");
|
||||
// tslint:disable: no-any
|
||||
// tslint:disable: class-name
|
||||
// tslint:disable: variable-name
|
||||
// tslint:disable: jsdoc-format
|
||||
// tslint:disable: no-namespace
|
||||
var alertcenter_v1beta1;
|
||||
(function (alertcenter_v1beta1) {
|
||||
/**
|
||||
* G Suite Alert Center API
|
||||
*
|
||||
* Manages alerts on issues affecting your domain.
|
||||
*
|
||||
* @example
|
||||
* const {google} = require('googleapis');
|
||||
* const alertcenter = google.alertcenter('v1beta1');
|
||||
*
|
||||
* @namespace alertcenter
|
||||
* @type {Function}
|
||||
* @version v1beta1
|
||||
* @variation v1beta1
|
||||
* @param {object=} options Options for Alertcenter
|
||||
*/
|
||||
class Alertcenter {
|
||||
constructor(options, google) {
|
||||
this.context = {
|
||||
_options: options || {},
|
||||
google,
|
||||
};
|
||||
this.alerts = new Resource$Alerts(this.context);
|
||||
this.v1beta1 = new Resource$V1beta1(this.context);
|
||||
}
|
||||
}
|
||||
alertcenter_v1beta1.Alertcenter = Alertcenter;
|
||||
class Resource$Alerts {
|
||||
constructor(context) {
|
||||
this.context = context;
|
||||
this.feedback = new Resource$Alerts$Feedback(this.context);
|
||||
}
|
||||
delete(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback || {});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://alertcenter.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1beta1/alerts/{alertId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'DELETE',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: ['alertId'],
|
||||
pathParams: ['alertId'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
get(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback || {});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://alertcenter.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1beta1/alerts/{alertId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: ['alertId'],
|
||||
pathParams: ['alertId'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
list(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback || {});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://alertcenter.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1beta1/alerts').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
undelete(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback || {});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://alertcenter.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1beta1/alerts/{alertId}:undelete').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: ['alertId'],
|
||||
pathParams: ['alertId'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
}
|
||||
alertcenter_v1beta1.Resource$Alerts = Resource$Alerts;
|
||||
class Resource$Alerts$Feedback {
|
||||
constructor(context) {
|
||||
this.context = context;
|
||||
}
|
||||
create(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://alertcenter.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1beta1/alerts/{alertId}/feedback').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: ['alertId'],
|
||||
pathParams: ['alertId'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
list(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://alertcenter.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1beta1/alerts/{alertId}/feedback').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: ['alertId'],
|
||||
pathParams: ['alertId'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
}
|
||||
alertcenter_v1beta1.Resource$Alerts$Feedback = Resource$Alerts$Feedback;
|
||||
class Resource$V1beta1 {
|
||||
constructor(context) {
|
||||
this.context = context;
|
||||
}
|
||||
getSettings(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://alertcenter.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1beta1/settings').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
updateSettings(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://alertcenter.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1beta1/settings').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'PATCH',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
}
|
||||
alertcenter_v1beta1.Resource$V1beta1 = Resource$V1beta1;
|
||||
})(alertcenter_v1beta1 = exports.alertcenter_v1beta1 || (exports.alertcenter_v1beta1 = {}));
|
||||
//# sourceMappingURL=v1beta1.js.map
|
||||
14
node_modules/googleapis/build/src/apis/analytics/index.d.ts
generated
vendored
Normal file
14
node_modules/googleapis/build/src/apis/analytics/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
/*! THIS FILE IS AUTO-GENERATED */
|
||||
import { AuthPlus } from 'googleapis-common';
|
||||
import { analytics_v2_4 } from './v2.4';
|
||||
import { analytics_v3 } from './v3';
|
||||
export declare const VERSIONS: {
|
||||
'v2.4': typeof analytics_v2_4.Analytics;
|
||||
v3: typeof analytics_v3.Analytics;
|
||||
};
|
||||
export declare function analytics(version: 'v2.4'): analytics_v2_4.Analytics;
|
||||
export declare function analytics(options: analytics_v2_4.Options): analytics_v2_4.Analytics;
|
||||
export declare function analytics(version: 'v3'): analytics_v3.Analytics;
|
||||
export declare function analytics(options: analytics_v3.Options): analytics_v3.Analytics;
|
||||
declare const auth: AuthPlus;
|
||||
export { auth };
|
||||
29
node_modules/googleapis/build/src/apis/analytics/index.js
generated
vendored
Normal file
29
node_modules/googleapis/build/src/apis/analytics/index.js
generated
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
"use strict";
|
||||
// Copyright 2019 Google LLC
|
||||
// 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.
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
/*! THIS FILE IS AUTO-GENERATED */
|
||||
const googleapis_common_1 = require("googleapis-common");
|
||||
const v2_4_1 = require("./v2.4");
|
||||
const v3_1 = require("./v3");
|
||||
exports.VERSIONS = {
|
||||
'v2.4': v2_4_1.analytics_v2_4.Analytics,
|
||||
v3: v3_1.analytics_v3.Analytics,
|
||||
};
|
||||
function analytics(versionOrOptions) {
|
||||
return googleapis_common_1.getAPI('analytics', versionOrOptions, exports.VERSIONS, this);
|
||||
}
|
||||
exports.analytics = analytics;
|
||||
const auth = new googleapis_common_1.AuthPlus();
|
||||
exports.auth = auth;
|
||||
//# sourceMappingURL=index.js.map
|
||||
363
node_modules/googleapis/build/src/apis/analytics/v2.4.d.ts
generated
vendored
Normal file
363
node_modules/googleapis/build/src/apis/analytics/v2.4.d.ts
generated
vendored
Normal file
@@ -0,0 +1,363 @@
|
||||
/**
|
||||
* Copyright 2019 Google LLC
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
import { OAuth2Client, JWT, Compute, UserRefreshClient } from 'google-auth-library';
|
||||
import { GoogleConfigurable, MethodOptions, GlobalOptions, BodyResponseCallback, APIRequestContext } from 'googleapis-common';
|
||||
import { GaxiosPromise } from 'gaxios';
|
||||
export declare namespace analytics_v2_4 {
|
||||
interface Options extends GlobalOptions {
|
||||
version: 'v2.4';
|
||||
}
|
||||
interface StandardParameters {
|
||||
/**
|
||||
* Data format for the response.
|
||||
*/
|
||||
alt?: string;
|
||||
/**
|
||||
* Selector specifying which fields to include in a partial response.
|
||||
*/
|
||||
fields?: string;
|
||||
/**
|
||||
* API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
|
||||
*/
|
||||
key?: string;
|
||||
/**
|
||||
* OAuth 2.0 token for the current user.
|
||||
*/
|
||||
oauth_token?: string;
|
||||
/**
|
||||
* Returns response with indentations and line breaks.
|
||||
*/
|
||||
prettyPrint?: boolean;
|
||||
/**
|
||||
* An opaque string that represents a user for quota purposes. Must not exceed 40 characters.
|
||||
*/
|
||||
quotaUser?: string;
|
||||
/**
|
||||
* Deprecated. Please use quotaUser instead.
|
||||
*/
|
||||
userIp?: string;
|
||||
}
|
||||
/**
|
||||
* 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
|
||||
*/
|
||||
class Analytics {
|
||||
context: APIRequestContext;
|
||||
data: Resource$Data;
|
||||
management: Resource$Management;
|
||||
constructor(options: GlobalOptions, google?: GoogleConfigurable);
|
||||
}
|
||||
class Resource$Data {
|
||||
context: APIRequestContext;
|
||||
constructor(context: APIRequestContext);
|
||||
/**
|
||||
* analytics.data.get
|
||||
* @desc Returns Analytics report data for a view (profile).
|
||||
* @alias analytics.data.get
|
||||
* @memberOf! ()
|
||||
*
|
||||
* @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(params?: Params$Resource$Data$Get, options?: MethodOptions): GaxiosPromise<void>;
|
||||
get(params: Params$Resource$Data$Get, options: MethodOptions | BodyResponseCallback<void>, callback: BodyResponseCallback<void>): void;
|
||||
get(params: Params$Resource$Data$Get, callback: BodyResponseCallback<void>): void;
|
||||
get(callback: BodyResponseCallback<void>): void;
|
||||
}
|
||||
interface Params$Resource$Data$Get extends StandardParameters {
|
||||
/**
|
||||
* Auth client or API Key for the request
|
||||
*/
|
||||
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
|
||||
/**
|
||||
* A comma-separated list of Analytics dimensions. E.g., 'ga:browser,ga:city'.
|
||||
*/
|
||||
dimensions?: string;
|
||||
/**
|
||||
* End date for fetching report data. All requests should specify an end date formatted as YYYY-MM-DD.
|
||||
*/
|
||||
'end-date'?: string;
|
||||
/**
|
||||
* A comma-separated list of dimension or metric filters to be applied to the report data.
|
||||
*/
|
||||
filters?: string;
|
||||
/**
|
||||
* Unique table ID for retrieving report data. Table ID is of the form ga:XXXX, where XXXX is the Analytics view (profile) ID.
|
||||
*/
|
||||
ids?: string;
|
||||
/**
|
||||
* The maximum number of entries to include in this feed.
|
||||
*/
|
||||
'max-results'?: number;
|
||||
/**
|
||||
* 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.
|
||||
*/
|
||||
metrics?: string;
|
||||
/**
|
||||
* An Analytics advanced segment to be applied to the report data.
|
||||
*/
|
||||
segment?: string;
|
||||
/**
|
||||
* A comma-separated list of dimensions or metrics that determine the sort order for the report data.
|
||||
*/
|
||||
sort?: string;
|
||||
/**
|
||||
* Start date for fetching report data. All requests should specify a start date formatted as YYYY-MM-DD.
|
||||
*/
|
||||
'start-date'?: string;
|
||||
/**
|
||||
* An index of the first entity to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.
|
||||
*/
|
||||
'start-index'?: number;
|
||||
}
|
||||
class Resource$Management {
|
||||
context: APIRequestContext;
|
||||
accounts: Resource$Management$Accounts;
|
||||
goals: Resource$Management$Goals;
|
||||
profiles: Resource$Management$Profiles;
|
||||
segments: Resource$Management$Segments;
|
||||
webproperties: Resource$Management$Webproperties;
|
||||
constructor(context: APIRequestContext);
|
||||
}
|
||||
class Resource$Management$Accounts {
|
||||
context: APIRequestContext;
|
||||
constructor(context: APIRequestContext);
|
||||
/**
|
||||
* analytics.management.accounts.list
|
||||
* @desc Lists all accounts to which the user has access.
|
||||
* @alias analytics.management.accounts.list
|
||||
* @memberOf! ()
|
||||
*
|
||||
* @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(params?: Params$Resource$Management$Accounts$List, options?: MethodOptions): GaxiosPromise<void>;
|
||||
list(params: Params$Resource$Management$Accounts$List, options: MethodOptions | BodyResponseCallback<void>, callback: BodyResponseCallback<void>): void;
|
||||
list(params: Params$Resource$Management$Accounts$List, callback: BodyResponseCallback<void>): void;
|
||||
list(callback: BodyResponseCallback<void>): void;
|
||||
}
|
||||
interface Params$Resource$Management$Accounts$List extends StandardParameters {
|
||||
/**
|
||||
* Auth client or API Key for the request
|
||||
*/
|
||||
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
|
||||
/**
|
||||
* The maximum number of accounts to include in this response.
|
||||
*/
|
||||
'max-results'?: number;
|
||||
/**
|
||||
* An index of the first account to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.
|
||||
*/
|
||||
'start-index'?: number;
|
||||
}
|
||||
class Resource$Management$Goals {
|
||||
context: APIRequestContext;
|
||||
constructor(context: APIRequestContext);
|
||||
/**
|
||||
* analytics.management.goals.list
|
||||
* @desc Lists goals to which the user has access.
|
||||
* @alias analytics.management.goals.list
|
||||
* @memberOf! ()
|
||||
*
|
||||
* @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(params?: Params$Resource$Management$Goals$List, options?: MethodOptions): GaxiosPromise<void>;
|
||||
list(params: Params$Resource$Management$Goals$List, options: MethodOptions | BodyResponseCallback<void>, callback: BodyResponseCallback<void>): void;
|
||||
list(params: Params$Resource$Management$Goals$List, callback: BodyResponseCallback<void>): void;
|
||||
list(callback: BodyResponseCallback<void>): void;
|
||||
}
|
||||
interface Params$Resource$Management$Goals$List extends StandardParameters {
|
||||
/**
|
||||
* Auth client or API Key for the request
|
||||
*/
|
||||
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
|
||||
/**
|
||||
* 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.
|
||||
*/
|
||||
accountId?: string;
|
||||
/**
|
||||
* The maximum number of goals to include in this response.
|
||||
*/
|
||||
'max-results'?: number;
|
||||
/**
|
||||
* 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.
|
||||
*/
|
||||
profileId?: string;
|
||||
/**
|
||||
* An index of the first goal to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.
|
||||
*/
|
||||
'start-index'?: number;
|
||||
/**
|
||||
* 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.
|
||||
*/
|
||||
webPropertyId?: string;
|
||||
}
|
||||
class Resource$Management$Profiles {
|
||||
context: APIRequestContext;
|
||||
constructor(context: APIRequestContext);
|
||||
/**
|
||||
* analytics.management.profiles.list
|
||||
* @desc Lists views (profiles) to which the user has access.
|
||||
* @alias analytics.management.profiles.list
|
||||
* @memberOf! ()
|
||||
*
|
||||
* @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(params?: Params$Resource$Management$Profiles$List, options?: MethodOptions): GaxiosPromise<void>;
|
||||
list(params: Params$Resource$Management$Profiles$List, options: MethodOptions | BodyResponseCallback<void>, callback: BodyResponseCallback<void>): void;
|
||||
list(params: Params$Resource$Management$Profiles$List, callback: BodyResponseCallback<void>): void;
|
||||
list(callback: BodyResponseCallback<void>): void;
|
||||
}
|
||||
interface Params$Resource$Management$Profiles$List extends StandardParameters {
|
||||
/**
|
||||
* Auth client or API Key for the request
|
||||
*/
|
||||
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
|
||||
/**
|
||||
* 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.
|
||||
*/
|
||||
accountId?: string;
|
||||
/**
|
||||
* The maximum number of views (profiles) to include in this response.
|
||||
*/
|
||||
'max-results'?: number;
|
||||
/**
|
||||
* An index of the first entity to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.
|
||||
*/
|
||||
'start-index'?: number;
|
||||
/**
|
||||
* 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.
|
||||
*/
|
||||
webPropertyId?: string;
|
||||
}
|
||||
class Resource$Management$Segments {
|
||||
context: APIRequestContext;
|
||||
constructor(context: APIRequestContext);
|
||||
/**
|
||||
* analytics.management.segments.list
|
||||
* @desc Lists advanced segments to which the user has access.
|
||||
* @alias analytics.management.segments.list
|
||||
* @memberOf! ()
|
||||
*
|
||||
* @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(params?: Params$Resource$Management$Segments$List, options?: MethodOptions): GaxiosPromise<void>;
|
||||
list(params: Params$Resource$Management$Segments$List, options: MethodOptions | BodyResponseCallback<void>, callback: BodyResponseCallback<void>): void;
|
||||
list(params: Params$Resource$Management$Segments$List, callback: BodyResponseCallback<void>): void;
|
||||
list(callback: BodyResponseCallback<void>): void;
|
||||
}
|
||||
interface Params$Resource$Management$Segments$List extends StandardParameters {
|
||||
/**
|
||||
* Auth client or API Key for the request
|
||||
*/
|
||||
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
|
||||
/**
|
||||
* The maximum number of advanced segments to include in this response.
|
||||
*/
|
||||
'max-results'?: number;
|
||||
/**
|
||||
* An index of the first advanced segment to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.
|
||||
*/
|
||||
'start-index'?: number;
|
||||
}
|
||||
class Resource$Management$Webproperties {
|
||||
context: APIRequestContext;
|
||||
constructor(context: APIRequestContext);
|
||||
/**
|
||||
* analytics.management.webproperties.list
|
||||
* @desc Lists web properties to which the user has access.
|
||||
* @alias analytics.management.webproperties.list
|
||||
* @memberOf! ()
|
||||
*
|
||||
* @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(params?: Params$Resource$Management$Webproperties$List, options?: MethodOptions): GaxiosPromise<void>;
|
||||
list(params: Params$Resource$Management$Webproperties$List, options: MethodOptions | BodyResponseCallback<void>, callback: BodyResponseCallback<void>): void;
|
||||
list(params: Params$Resource$Management$Webproperties$List, callback: BodyResponseCallback<void>): void;
|
||||
list(callback: BodyResponseCallback<void>): void;
|
||||
}
|
||||
interface Params$Resource$Management$Webproperties$List extends StandardParameters {
|
||||
/**
|
||||
* Auth client or API Key for the request
|
||||
*/
|
||||
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
|
||||
/**
|
||||
* 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.
|
||||
*/
|
||||
accountId?: string;
|
||||
/**
|
||||
* The maximum number of web properties to include in this response.
|
||||
*/
|
||||
'max-results'?: number;
|
||||
/**
|
||||
* An index of the first entity to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.
|
||||
*/
|
||||
'start-index'?: number;
|
||||
}
|
||||
}
|
||||
288
node_modules/googleapis/build/src/apis/analytics/v2.4.js
generated
vendored
Normal file
288
node_modules/googleapis/build/src/apis/analytics/v2.4.js
generated
vendored
Normal file
@@ -0,0 +1,288 @@
|
||||
"use strict";
|
||||
/**
|
||||
* Copyright 2019 Google LLC
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const googleapis_common_1 = require("googleapis-common");
|
||||
// tslint:disable: no-any
|
||||
// tslint:disable: class-name
|
||||
// tslint:disable: variable-name
|
||||
// tslint:disable: jsdoc-format
|
||||
// tslint:disable: no-namespace
|
||||
var analytics_v2_4;
|
||||
(function (analytics_v2_4) {
|
||||
/**
|
||||
* 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
|
||||
*/
|
||||
class Analytics {
|
||||
constructor(options, google) {
|
||||
this.context = {
|
||||
_options: options || {},
|
||||
google,
|
||||
};
|
||||
this.data = new Resource$Data(this.context);
|
||||
this.management = new Resource$Management(this.context);
|
||||
}
|
||||
}
|
||||
analytics_v2_4.Analytics = Analytics;
|
||||
class Resource$Data {
|
||||
constructor(context) {
|
||||
this.context = context;
|
||||
}
|
||||
get(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback || {});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
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,
|
||||
requiredParams: ['ids', 'start-date', 'end-date', 'metrics'],
|
||||
pathParams: [],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
}
|
||||
analytics_v2_4.Resource$Data = Resource$Data;
|
||||
class Resource$Management {
|
||||
constructor(context) {
|
||||
this.context = context;
|
||||
this.accounts = new Resource$Management$Accounts(this.context);
|
||||
this.goals = new Resource$Management$Goals(this.context);
|
||||
this.profiles = new Resource$Management$Profiles(this.context);
|
||||
this.segments = new Resource$Management$Segments(this.context);
|
||||
this.webproperties = new Resource$Management$Webproperties(this.context);
|
||||
}
|
||||
}
|
||||
analytics_v2_4.Resource$Management = Resource$Management;
|
||||
class Resource$Management$Accounts {
|
||||
constructor(context) {
|
||||
this.context = context;
|
||||
}
|
||||
list(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
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,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
}
|
||||
analytics_v2_4.Resource$Management$Accounts = Resource$Management$Accounts;
|
||||
class Resource$Management$Goals {
|
||||
constructor(context) {
|
||||
this.context = context;
|
||||
}
|
||||
list(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
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,
|
||||
requiredParams: ['accountId', 'webPropertyId', 'profileId'],
|
||||
pathParams: ['accountId', 'profileId', 'webPropertyId'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
}
|
||||
analytics_v2_4.Resource$Management$Goals = Resource$Management$Goals;
|
||||
class Resource$Management$Profiles {
|
||||
constructor(context) {
|
||||
this.context = context;
|
||||
}
|
||||
list(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
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,
|
||||
requiredParams: ['accountId', 'webPropertyId'],
|
||||
pathParams: ['accountId', 'webPropertyId'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
}
|
||||
analytics_v2_4.Resource$Management$Profiles = Resource$Management$Profiles;
|
||||
class Resource$Management$Segments {
|
||||
constructor(context) {
|
||||
this.context = context;
|
||||
}
|
||||
list(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
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,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
}
|
||||
analytics_v2_4.Resource$Management$Segments = Resource$Management$Segments;
|
||||
class Resource$Management$Webproperties {
|
||||
constructor(context) {
|
||||
this.context = context;
|
||||
}
|
||||
list(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
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,
|
||||
requiredParams: ['accountId'],
|
||||
pathParams: ['accountId'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
}
|
||||
analytics_v2_4.Resource$Management$Webproperties = Resource$Management$Webproperties;
|
||||
})(analytics_v2_4 = exports.analytics_v2_4 || (exports.analytics_v2_4 = {}));
|
||||
//# sourceMappingURL=v2.4.js.map
|
||||
6192
node_modules/googleapis/build/src/apis/analytics/v3.d.ts
generated
vendored
Normal file
6192
node_modules/googleapis/build/src/apis/analytics/v3.d.ts
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
3130
node_modules/googleapis/build/src/apis/analytics/v3.js
generated
vendored
Normal file
3130
node_modules/googleapis/build/src/apis/analytics/v3.js
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
10
node_modules/googleapis/build/src/apis/analyticsreporting/index.d.ts
generated
vendored
Normal file
10
node_modules/googleapis/build/src/apis/analyticsreporting/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
/*! THIS FILE IS AUTO-GENERATED */
|
||||
import { AuthPlus } from 'googleapis-common';
|
||||
import { analyticsreporting_v4 } from './v4';
|
||||
export declare const VERSIONS: {
|
||||
v4: typeof analyticsreporting_v4.Analyticsreporting;
|
||||
};
|
||||
export declare function analyticsreporting(version: 'v4'): analyticsreporting_v4.Analyticsreporting;
|
||||
export declare function analyticsreporting(options: analyticsreporting_v4.Options): analyticsreporting_v4.Analyticsreporting;
|
||||
declare const auth: AuthPlus;
|
||||
export { auth };
|
||||
27
node_modules/googleapis/build/src/apis/analyticsreporting/index.js
generated
vendored
Normal file
27
node_modules/googleapis/build/src/apis/analyticsreporting/index.js
generated
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
"use strict";
|
||||
// Copyright 2019 Google LLC
|
||||
// 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.
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
/*! THIS FILE IS AUTO-GENERATED */
|
||||
const googleapis_common_1 = require("googleapis-common");
|
||||
const v4_1 = require("./v4");
|
||||
exports.VERSIONS = {
|
||||
v4: v4_1.analyticsreporting_v4.Analyticsreporting,
|
||||
};
|
||||
function analyticsreporting(versionOrOptions) {
|
||||
return googleapis_common_1.getAPI('analyticsreporting', versionOrOptions, exports.VERSIONS, this);
|
||||
}
|
||||
exports.analyticsreporting = analyticsreporting;
|
||||
const auth = new googleapis_common_1.AuthPlus();
|
||||
exports.auth = auth;
|
||||
//# sourceMappingURL=index.js.map
|
||||
1121
node_modules/googleapis/build/src/apis/analyticsreporting/v4.d.ts
generated
vendored
Normal file
1121
node_modules/googleapis/build/src/apis/analyticsreporting/v4.d.ts
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
126
node_modules/googleapis/build/src/apis/analyticsreporting/v4.js
generated
vendored
Normal file
126
node_modules/googleapis/build/src/apis/analyticsreporting/v4.js
generated
vendored
Normal file
@@ -0,0 +1,126 @@
|
||||
"use strict";
|
||||
/**
|
||||
* Copyright 2019 Google LLC
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const googleapis_common_1 = require("googleapis-common");
|
||||
// tslint:disable: no-any
|
||||
// tslint:disable: class-name
|
||||
// tslint:disable: variable-name
|
||||
// tslint:disable: jsdoc-format
|
||||
// tslint:disable: no-namespace
|
||||
var analyticsreporting_v4;
|
||||
(function (analyticsreporting_v4) {
|
||||
/**
|
||||
* 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
|
||||
*/
|
||||
class Analyticsreporting {
|
||||
constructor(options, google) {
|
||||
this.context = {
|
||||
_options: options || {},
|
||||
google,
|
||||
};
|
||||
this.reports = new Resource$Reports(this.context);
|
||||
this.userActivity = new Resource$Useractivity(this.context);
|
||||
}
|
||||
}
|
||||
analyticsreporting_v4.Analyticsreporting = Analyticsreporting;
|
||||
class Resource$Reports {
|
||||
constructor(context) {
|
||||
this.context = context;
|
||||
}
|
||||
batchGet(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback || {});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
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,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
}
|
||||
analyticsreporting_v4.Resource$Reports = Resource$Reports;
|
||||
class Resource$Useractivity {
|
||||
constructor(context) {
|
||||
this.context = context;
|
||||
}
|
||||
search(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://analyticsreporting.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v4/userActivity:search').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
}
|
||||
analyticsreporting_v4.Resource$Useractivity = Resource$Useractivity;
|
||||
})(analyticsreporting_v4 = exports.analyticsreporting_v4 || (exports.analyticsreporting_v4 = {}));
|
||||
//# sourceMappingURL=v4.js.map
|
||||
10
node_modules/googleapis/build/src/apis/androiddeviceprovisioning/index.d.ts
generated
vendored
Normal file
10
node_modules/googleapis/build/src/apis/androiddeviceprovisioning/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
/*! THIS FILE IS AUTO-GENERATED */
|
||||
import { AuthPlus } from 'googleapis-common';
|
||||
import { androiddeviceprovisioning_v1 } from './v1';
|
||||
export declare const VERSIONS: {
|
||||
v1: typeof androiddeviceprovisioning_v1.Androiddeviceprovisioning;
|
||||
};
|
||||
export declare function androiddeviceprovisioning(version: 'v1'): androiddeviceprovisioning_v1.Androiddeviceprovisioning;
|
||||
export declare function androiddeviceprovisioning(options: androiddeviceprovisioning_v1.Options): androiddeviceprovisioning_v1.Androiddeviceprovisioning;
|
||||
declare const auth: AuthPlus;
|
||||
export { auth };
|
||||
27
node_modules/googleapis/build/src/apis/androiddeviceprovisioning/index.js
generated
vendored
Normal file
27
node_modules/googleapis/build/src/apis/androiddeviceprovisioning/index.js
generated
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
"use strict";
|
||||
// Copyright 2019 Google LLC
|
||||
// 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.
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
/*! THIS FILE IS AUTO-GENERATED */
|
||||
const googleapis_common_1 = require("googleapis-common");
|
||||
const v1_1 = require("./v1");
|
||||
exports.VERSIONS = {
|
||||
v1: v1_1.androiddeviceprovisioning_v1.Androiddeviceprovisioning,
|
||||
};
|
||||
function androiddeviceprovisioning(versionOrOptions) {
|
||||
return googleapis_common_1.getAPI('androiddeviceprovisioning', versionOrOptions, exports.VERSIONS, this);
|
||||
}
|
||||
exports.androiddeviceprovisioning = androiddeviceprovisioning;
|
||||
const auth = new googleapis_common_1.AuthPlus();
|
||||
exports.auth = auth;
|
||||
//# sourceMappingURL=index.js.map
|
||||
1623
node_modules/googleapis/build/src/apis/androiddeviceprovisioning/v1.d.ts
generated
vendored
Normal file
1623
node_modules/googleapis/build/src/apis/androiddeviceprovisioning/v1.d.ts
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
926
node_modules/googleapis/build/src/apis/androiddeviceprovisioning/v1.js
generated
vendored
Normal file
926
node_modules/googleapis/build/src/apis/androiddeviceprovisioning/v1.js
generated
vendored
Normal file
@@ -0,0 +1,926 @@
|
||||
"use strict";
|
||||
/**
|
||||
* Copyright 2019 Google LLC
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const googleapis_common_1 = require("googleapis-common");
|
||||
// tslint:disable: no-any
|
||||
// tslint:disable: class-name
|
||||
// tslint:disable: variable-name
|
||||
// tslint:disable: jsdoc-format
|
||||
// tslint:disable: no-namespace
|
||||
var androiddeviceprovisioning_v1;
|
||||
(function (androiddeviceprovisioning_v1) {
|
||||
/**
|
||||
* Android Device Provisioning Partner API
|
||||
*
|
||||
* Automates Android zero-touch enrollment for device resellers, customers, and EMMs.
|
||||
*
|
||||
* @example
|
||||
* const {google} = require('googleapis');
|
||||
* const androiddeviceprovisioning = google.androiddeviceprovisioning('v1');
|
||||
*
|
||||
* @namespace androiddeviceprovisioning
|
||||
* @type {Function}
|
||||
* @version v1
|
||||
* @variation v1
|
||||
* @param {object=} options Options for Androiddeviceprovisioning
|
||||
*/
|
||||
class Androiddeviceprovisioning {
|
||||
constructor(options, google) {
|
||||
this.context = {
|
||||
_options: options || {},
|
||||
google,
|
||||
};
|
||||
this.customers = new Resource$Customers(this.context);
|
||||
this.operations = new Resource$Operations(this.context);
|
||||
this.partners = new Resource$Partners(this.context);
|
||||
}
|
||||
}
|
||||
androiddeviceprovisioning_v1.Androiddeviceprovisioning = Androiddeviceprovisioning;
|
||||
class Resource$Customers {
|
||||
constructor(context) {
|
||||
this.context = context;
|
||||
this.configurations = new Resource$Customers$Configurations(this.context);
|
||||
this.devices = new Resource$Customers$Devices(this.context);
|
||||
this.dpcs = new Resource$Customers$Dpcs(this.context);
|
||||
}
|
||||
list(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback || {});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://androiddeviceprovisioning.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/customers').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
}
|
||||
androiddeviceprovisioning_v1.Resource$Customers = Resource$Customers;
|
||||
class Resource$Customers$Configurations {
|
||||
constructor(context) {
|
||||
this.context = context;
|
||||
}
|
||||
create(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://androiddeviceprovisioning.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/{+parent}/configurations').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: ['parent'],
|
||||
pathParams: ['parent'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
delete(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://androiddeviceprovisioning.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'DELETE',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: ['name'],
|
||||
pathParams: ['name'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
get(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
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,
|
||||
requiredParams: ['name'],
|
||||
pathParams: ['name'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
list(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://androiddeviceprovisioning.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/{+parent}/configurations').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: ['parent'],
|
||||
pathParams: ['parent'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
patch(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://androiddeviceprovisioning.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'PATCH',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: ['name'],
|
||||
pathParams: ['name'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
}
|
||||
androiddeviceprovisioning_v1.Resource$Customers$Configurations = Resource$Customers$Configurations;
|
||||
class Resource$Customers$Devices {
|
||||
constructor(context) {
|
||||
this.context = context;
|
||||
}
|
||||
applyConfiguration(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://androiddeviceprovisioning.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/{+parent}/devices:applyConfiguration').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: ['parent'],
|
||||
pathParams: ['parent'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
get(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
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,
|
||||
requiredParams: ['name'],
|
||||
pathParams: ['name'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
list(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://androiddeviceprovisioning.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/{+parent}/devices').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: ['parent'],
|
||||
pathParams: ['parent'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
removeConfiguration(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://androiddeviceprovisioning.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/{+parent}/devices:removeConfiguration').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: ['parent'],
|
||||
pathParams: ['parent'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
unclaim(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://androiddeviceprovisioning.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/{+parent}/devices:unclaim').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: ['parent'],
|
||||
pathParams: ['parent'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
}
|
||||
androiddeviceprovisioning_v1.Resource$Customers$Devices = Resource$Customers$Devices;
|
||||
class Resource$Customers$Dpcs {
|
||||
constructor(context) {
|
||||
this.context = context;
|
||||
}
|
||||
list(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://androiddeviceprovisioning.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/{+parent}/dpcs').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: ['parent'],
|
||||
pathParams: ['parent'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
}
|
||||
androiddeviceprovisioning_v1.Resource$Customers$Dpcs = Resource$Customers$Dpcs;
|
||||
class Resource$Operations {
|
||||
constructor(context) {
|
||||
this.context = context;
|
||||
}
|
||||
get(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback || {});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
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,
|
||||
requiredParams: ['name'],
|
||||
pathParams: ['name'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
}
|
||||
androiddeviceprovisioning_v1.Resource$Operations = Resource$Operations;
|
||||
class Resource$Partners {
|
||||
constructor(context) {
|
||||
this.context = context;
|
||||
this.customers = new Resource$Partners$Customers(this.context);
|
||||
this.devices = new Resource$Partners$Devices(this.context);
|
||||
this.vendors = new Resource$Partners$Vendors(this.context);
|
||||
}
|
||||
}
|
||||
androiddeviceprovisioning_v1.Resource$Partners = Resource$Partners;
|
||||
class Resource$Partners$Customers {
|
||||
constructor(context) {
|
||||
this.context = context;
|
||||
}
|
||||
create(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
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,
|
||||
requiredParams: ['parent'],
|
||||
pathParams: ['parent'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
list(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
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,
|
||||
requiredParams: ['partnerId'],
|
||||
pathParams: ['partnerId'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
}
|
||||
androiddeviceprovisioning_v1.Resource$Partners$Customers = Resource$Partners$Customers;
|
||||
class Resource$Partners$Devices {
|
||||
constructor(context) {
|
||||
this.context = context;
|
||||
}
|
||||
claim(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
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,
|
||||
requiredParams: ['partnerId'],
|
||||
pathParams: ['partnerId'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
claimAsync(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
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,
|
||||
requiredParams: ['partnerId'],
|
||||
pathParams: ['partnerId'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
findByIdentifier(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
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,
|
||||
requiredParams: ['partnerId'],
|
||||
pathParams: ['partnerId'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
findByOwner(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
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,
|
||||
requiredParams: ['partnerId'],
|
||||
pathParams: ['partnerId'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
get(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
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,
|
||||
requiredParams: ['name'],
|
||||
pathParams: ['name'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
metadata(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
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,
|
||||
requiredParams: ['metadataOwnerId', 'deviceId'],
|
||||
pathParams: ['deviceId', 'metadataOwnerId'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
unclaim(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
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,
|
||||
requiredParams: ['partnerId'],
|
||||
pathParams: ['partnerId'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
unclaimAsync(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
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,
|
||||
requiredParams: ['partnerId'],
|
||||
pathParams: ['partnerId'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
updateMetadataAsync(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
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,
|
||||
requiredParams: ['partnerId'],
|
||||
pathParams: ['partnerId'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
}
|
||||
androiddeviceprovisioning_v1.Resource$Partners$Devices = Resource$Partners$Devices;
|
||||
class Resource$Partners$Vendors {
|
||||
constructor(context) {
|
||||
this.context = context;
|
||||
this.customers = new Resource$Partners$Vendors$Customers(this.context);
|
||||
}
|
||||
list(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://androiddeviceprovisioning.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/{+parent}/vendors').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: ['parent'],
|
||||
pathParams: ['parent'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
}
|
||||
androiddeviceprovisioning_v1.Resource$Partners$Vendors = Resource$Partners$Vendors;
|
||||
class Resource$Partners$Vendors$Customers {
|
||||
constructor(context) {
|
||||
this.context = context;
|
||||
}
|
||||
list(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://androiddeviceprovisioning.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/{+parent}/customers').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: ['parent'],
|
||||
pathParams: ['parent'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
}
|
||||
androiddeviceprovisioning_v1.Resource$Partners$Vendors$Customers = Resource$Partners$Vendors$Customers;
|
||||
})(androiddeviceprovisioning_v1 = exports.androiddeviceprovisioning_v1 || (exports.androiddeviceprovisioning_v1 = {}));
|
||||
//# sourceMappingURL=v1.js.map
|
||||
10
node_modules/googleapis/build/src/apis/androidenterprise/index.d.ts
generated
vendored
Normal file
10
node_modules/googleapis/build/src/apis/androidenterprise/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
/*! THIS FILE IS AUTO-GENERATED */
|
||||
import { AuthPlus } from 'googleapis-common';
|
||||
import { androidenterprise_v1 } from './v1';
|
||||
export declare const VERSIONS: {
|
||||
v1: typeof androidenterprise_v1.Androidenterprise;
|
||||
};
|
||||
export declare function androidenterprise(version: 'v1'): androidenterprise_v1.Androidenterprise;
|
||||
export declare function androidenterprise(options: androidenterprise_v1.Options): androidenterprise_v1.Androidenterprise;
|
||||
declare const auth: AuthPlus;
|
||||
export { auth };
|
||||
27
node_modules/googleapis/build/src/apis/androidenterprise/index.js
generated
vendored
Normal file
27
node_modules/googleapis/build/src/apis/androidenterprise/index.js
generated
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
"use strict";
|
||||
// Copyright 2019 Google LLC
|
||||
// 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.
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
/*! THIS FILE IS AUTO-GENERATED */
|
||||
const googleapis_common_1 = require("googleapis-common");
|
||||
const v1_1 = require("./v1");
|
||||
exports.VERSIONS = {
|
||||
v1: v1_1.androidenterprise_v1.Androidenterprise,
|
||||
};
|
||||
function androidenterprise(versionOrOptions) {
|
||||
return googleapis_common_1.getAPI('androidenterprise', versionOrOptions, exports.VERSIONS, this);
|
||||
}
|
||||
exports.androidenterprise = androidenterprise;
|
||||
const auth = new googleapis_common_1.AuthPlus();
|
||||
exports.auth = auth;
|
||||
//# sourceMappingURL=index.js.map
|
||||
4601
node_modules/googleapis/build/src/apis/androidenterprise/v1.d.ts
generated
vendored
Normal file
4601
node_modules/googleapis/build/src/apis/androidenterprise/v1.d.ts
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
2932
node_modules/googleapis/build/src/apis/androidenterprise/v1.js
generated
vendored
Normal file
2932
node_modules/googleapis/build/src/apis/androidenterprise/v1.js
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
10
node_modules/googleapis/build/src/apis/androidmanagement/index.d.ts
generated
vendored
Normal file
10
node_modules/googleapis/build/src/apis/androidmanagement/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
/*! THIS FILE IS AUTO-GENERATED */
|
||||
import { AuthPlus } from 'googleapis-common';
|
||||
import { androidmanagement_v1 } from './v1';
|
||||
export declare const VERSIONS: {
|
||||
v1: typeof androidmanagement_v1.Androidmanagement;
|
||||
};
|
||||
export declare function androidmanagement(version: 'v1'): androidmanagement_v1.Androidmanagement;
|
||||
export declare function androidmanagement(options: androidmanagement_v1.Options): androidmanagement_v1.Androidmanagement;
|
||||
declare const auth: AuthPlus;
|
||||
export { auth };
|
||||
27
node_modules/googleapis/build/src/apis/androidmanagement/index.js
generated
vendored
Normal file
27
node_modules/googleapis/build/src/apis/androidmanagement/index.js
generated
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
"use strict";
|
||||
// Copyright 2019 Google LLC
|
||||
// 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.
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
/*! THIS FILE IS AUTO-GENERATED */
|
||||
const googleapis_common_1 = require("googleapis-common");
|
||||
const v1_1 = require("./v1");
|
||||
exports.VERSIONS = {
|
||||
v1: v1_1.androidmanagement_v1.Androidmanagement,
|
||||
};
|
||||
function androidmanagement(versionOrOptions) {
|
||||
return googleapis_common_1.getAPI('androidmanagement', versionOrOptions, exports.VERSIONS, this);
|
||||
}
|
||||
exports.androidmanagement = androidmanagement;
|
||||
const auth = new googleapis_common_1.AuthPlus();
|
||||
exports.auth = auth;
|
||||
//# sourceMappingURL=index.js.map
|
||||
2610
node_modules/googleapis/build/src/apis/androidmanagement/v1.d.ts
generated
vendored
Normal file
2610
node_modules/googleapis/build/src/apis/androidmanagement/v1.d.ts
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
919
node_modules/googleapis/build/src/apis/androidmanagement/v1.js
generated
vendored
Normal file
919
node_modules/googleapis/build/src/apis/androidmanagement/v1.js
generated
vendored
Normal file
@@ -0,0 +1,919 @@
|
||||
"use strict";
|
||||
/**
|
||||
* Copyright 2019 Google LLC
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const googleapis_common_1 = require("googleapis-common");
|
||||
// tslint:disable: no-any
|
||||
// tslint:disable: class-name
|
||||
// tslint:disable: variable-name
|
||||
// tslint:disable: jsdoc-format
|
||||
// tslint:disable: no-namespace
|
||||
var androidmanagement_v1;
|
||||
(function (androidmanagement_v1) {
|
||||
/**
|
||||
* 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
|
||||
*/
|
||||
class Androidmanagement {
|
||||
constructor(options, google) {
|
||||
this.context = {
|
||||
_options: options || {},
|
||||
google,
|
||||
};
|
||||
this.enterprises = new Resource$Enterprises(this.context);
|
||||
this.signupUrls = new Resource$Signupurls(this.context);
|
||||
}
|
||||
}
|
||||
androidmanagement_v1.Androidmanagement = Androidmanagement;
|
||||
class Resource$Enterprises {
|
||||
constructor(context) {
|
||||
this.context = context;
|
||||
this.applications = new Resource$Enterprises$Applications(this.context);
|
||||
this.devices = new Resource$Enterprises$Devices(this.context);
|
||||
this.enrollmentTokens = new Resource$Enterprises$Enrollmenttokens(this.context);
|
||||
this.policies = new Resource$Enterprises$Policies(this.context);
|
||||
this.webApps = new Resource$Enterprises$Webapps(this.context);
|
||||
this.webTokens = new Resource$Enterprises$Webtokens(this.context);
|
||||
}
|
||||
create(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
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,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
get(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback || {});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
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,
|
||||
requiredParams: ['name'],
|
||||
pathParams: ['name'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
patch(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
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,
|
||||
requiredParams: ['name'],
|
||||
pathParams: ['name'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
}
|
||||
androidmanagement_v1.Resource$Enterprises = Resource$Enterprises;
|
||||
class Resource$Enterprises$Applications {
|
||||
constructor(context) {
|
||||
this.context = context;
|
||||
}
|
||||
get(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
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,
|
||||
requiredParams: ['name'],
|
||||
pathParams: ['name'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
}
|
||||
androidmanagement_v1.Resource$Enterprises$Applications = Resource$Enterprises$Applications;
|
||||
class Resource$Enterprises$Devices {
|
||||
constructor(context) {
|
||||
this.context = context;
|
||||
this.operations = new Resource$Enterprises$Devices$Operations(this.context);
|
||||
}
|
||||
delete(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
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,
|
||||
requiredParams: ['name'],
|
||||
pathParams: ['name'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
get(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
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,
|
||||
requiredParams: ['name'],
|
||||
pathParams: ['name'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
issueCommand(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
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,
|
||||
requiredParams: ['name'],
|
||||
pathParams: ['name'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
list(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
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,
|
||||
requiredParams: ['parent'],
|
||||
pathParams: ['parent'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
patch(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
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,
|
||||
requiredParams: ['name'],
|
||||
pathParams: ['name'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
}
|
||||
androidmanagement_v1.Resource$Enterprises$Devices = Resource$Enterprises$Devices;
|
||||
class Resource$Enterprises$Devices$Operations {
|
||||
constructor(context) {
|
||||
this.context = context;
|
||||
}
|
||||
cancel(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
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,
|
||||
requiredParams: ['name'],
|
||||
pathParams: ['name'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
delete(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
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,
|
||||
requiredParams: ['name'],
|
||||
pathParams: ['name'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
get(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
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,
|
||||
requiredParams: ['name'],
|
||||
pathParams: ['name'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
list(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
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,
|
||||
requiredParams: ['name'],
|
||||
pathParams: ['name'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
}
|
||||
androidmanagement_v1.Resource$Enterprises$Devices$Operations = Resource$Enterprises$Devices$Operations;
|
||||
class Resource$Enterprises$Enrollmenttokens {
|
||||
constructor(context) {
|
||||
this.context = context;
|
||||
}
|
||||
create(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
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,
|
||||
requiredParams: ['parent'],
|
||||
pathParams: ['parent'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
delete(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
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,
|
||||
requiredParams: ['name'],
|
||||
pathParams: ['name'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
}
|
||||
androidmanagement_v1.Resource$Enterprises$Enrollmenttokens = Resource$Enterprises$Enrollmenttokens;
|
||||
class Resource$Enterprises$Policies {
|
||||
constructor(context) {
|
||||
this.context = context;
|
||||
}
|
||||
delete(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
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,
|
||||
requiredParams: ['name'],
|
||||
pathParams: ['name'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
get(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
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,
|
||||
requiredParams: ['name'],
|
||||
pathParams: ['name'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
list(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
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,
|
||||
requiredParams: ['parent'],
|
||||
pathParams: ['parent'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
patch(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
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,
|
||||
requiredParams: ['name'],
|
||||
pathParams: ['name'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
}
|
||||
androidmanagement_v1.Resource$Enterprises$Policies = Resource$Enterprises$Policies;
|
||||
class Resource$Enterprises$Webapps {
|
||||
constructor(context) {
|
||||
this.context = context;
|
||||
}
|
||||
create(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://androidmanagement.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/{+parent}/webApps').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: ['parent'],
|
||||
pathParams: ['parent'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
delete(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
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,
|
||||
requiredParams: ['name'],
|
||||
pathParams: ['name'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
get(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
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,
|
||||
requiredParams: ['name'],
|
||||
pathParams: ['name'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
list(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://androidmanagement.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/{+parent}/webApps').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: ['parent'],
|
||||
pathParams: ['parent'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
patch(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
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,
|
||||
requiredParams: ['name'],
|
||||
pathParams: ['name'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
}
|
||||
androidmanagement_v1.Resource$Enterprises$Webapps = Resource$Enterprises$Webapps;
|
||||
class Resource$Enterprises$Webtokens {
|
||||
constructor(context) {
|
||||
this.context = context;
|
||||
}
|
||||
create(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
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,
|
||||
requiredParams: ['parent'],
|
||||
pathParams: ['parent'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
}
|
||||
androidmanagement_v1.Resource$Enterprises$Webtokens = Resource$Enterprises$Webtokens;
|
||||
class Resource$Signupurls {
|
||||
constructor(context) {
|
||||
this.context = context;
|
||||
}
|
||||
create(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
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,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
}
|
||||
androidmanagement_v1.Resource$Signupurls = Resource$Signupurls;
|
||||
})(androidmanagement_v1 = exports.androidmanagement_v1 || (exports.androidmanagement_v1 = {}));
|
||||
//# sourceMappingURL=v1.js.map
|
||||
22
node_modules/googleapis/build/src/apis/androidpublisher/index.d.ts
generated
vendored
Normal file
22
node_modules/googleapis/build/src/apis/androidpublisher/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
/*! THIS FILE IS AUTO-GENERATED */
|
||||
import { AuthPlus } from 'googleapis-common';
|
||||
import { androidpublisher_v1_1 } from './v1.1';
|
||||
import { androidpublisher_v1 } from './v1';
|
||||
import { androidpublisher_v2 } from './v2';
|
||||
import { androidpublisher_v3 } from './v3';
|
||||
export declare const VERSIONS: {
|
||||
'v1.1': typeof androidpublisher_v1_1.Androidpublisher;
|
||||
v1: typeof androidpublisher_v1.Androidpublisher;
|
||||
v2: typeof androidpublisher_v2.Androidpublisher;
|
||||
v3: typeof androidpublisher_v3.Androidpublisher;
|
||||
};
|
||||
export declare function androidpublisher(version: 'v1.1'): androidpublisher_v1_1.Androidpublisher;
|
||||
export declare function androidpublisher(options: androidpublisher_v1_1.Options): androidpublisher_v1_1.Androidpublisher;
|
||||
export declare function androidpublisher(version: 'v1'): androidpublisher_v1.Androidpublisher;
|
||||
export declare function androidpublisher(options: androidpublisher_v1.Options): androidpublisher_v1.Androidpublisher;
|
||||
export declare function androidpublisher(version: 'v2'): androidpublisher_v2.Androidpublisher;
|
||||
export declare function androidpublisher(options: androidpublisher_v2.Options): androidpublisher_v2.Androidpublisher;
|
||||
export declare function androidpublisher(version: 'v3'): androidpublisher_v3.Androidpublisher;
|
||||
export declare function androidpublisher(options: androidpublisher_v3.Options): androidpublisher_v3.Androidpublisher;
|
||||
declare const auth: AuthPlus;
|
||||
export { auth };
|
||||
33
node_modules/googleapis/build/src/apis/androidpublisher/index.js
generated
vendored
Normal file
33
node_modules/googleapis/build/src/apis/androidpublisher/index.js
generated
vendored
Normal file
@@ -0,0 +1,33 @@
|
||||
"use strict";
|
||||
// Copyright 2019 Google LLC
|
||||
// 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.
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
/*! THIS FILE IS AUTO-GENERATED */
|
||||
const googleapis_common_1 = require("googleapis-common");
|
||||
const v1_1_1 = require("./v1.1");
|
||||
const v1_1 = require("./v1");
|
||||
const v2_1 = require("./v2");
|
||||
const v3_1 = require("./v3");
|
||||
exports.VERSIONS = {
|
||||
'v1.1': v1_1_1.androidpublisher_v1_1.Androidpublisher,
|
||||
v1: v1_1.androidpublisher_v1.Androidpublisher,
|
||||
v2: v2_1.androidpublisher_v2.Androidpublisher,
|
||||
v3: v3_1.androidpublisher_v3.Androidpublisher,
|
||||
};
|
||||
function androidpublisher(versionOrOptions) {
|
||||
return googleapis_common_1.getAPI('androidpublisher', versionOrOptions, exports.VERSIONS, this);
|
||||
}
|
||||
exports.androidpublisher = androidpublisher;
|
||||
const auth = new googleapis_common_1.AuthPlus();
|
||||
exports.auth = auth;
|
||||
//# sourceMappingURL=index.js.map
|
||||
244
node_modules/googleapis/build/src/apis/androidpublisher/v1.1.d.ts
generated
vendored
Normal file
244
node_modules/googleapis/build/src/apis/androidpublisher/v1.1.d.ts
generated
vendored
Normal file
@@ -0,0 +1,244 @@
|
||||
/**
|
||||
* Copyright 2019 Google LLC
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
import { OAuth2Client, JWT, Compute, UserRefreshClient } from 'google-auth-library';
|
||||
import { GoogleConfigurable, MethodOptions, GlobalOptions, BodyResponseCallback, APIRequestContext } from 'googleapis-common';
|
||||
import { GaxiosPromise } from 'gaxios';
|
||||
export declare namespace androidpublisher_v1_1 {
|
||||
interface Options extends GlobalOptions {
|
||||
version: 'v1.1';
|
||||
}
|
||||
interface StandardParameters {
|
||||
/**
|
||||
* Data format for the response.
|
||||
*/
|
||||
alt?: string;
|
||||
/**
|
||||
* Selector specifying which fields to include in a partial response.
|
||||
*/
|
||||
fields?: string;
|
||||
/**
|
||||
* API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
|
||||
*/
|
||||
key?: string;
|
||||
/**
|
||||
* OAuth 2.0 token for the current user.
|
||||
*/
|
||||
oauth_token?: string;
|
||||
/**
|
||||
* Returns response with indentations and line breaks.
|
||||
*/
|
||||
prettyPrint?: boolean;
|
||||
/**
|
||||
* An opaque string that represents a user for quota purposes. Must not exceed 40 characters.
|
||||
*/
|
||||
quotaUser?: string;
|
||||
/**
|
||||
* Deprecated. Please use quotaUser instead.
|
||||
*/
|
||||
userIp?: string;
|
||||
}
|
||||
/**
|
||||
* Google Play Developer API
|
||||
*
|
||||
* Accesses Android application developers' 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
|
||||
*/
|
||||
class Androidpublisher {
|
||||
context: APIRequestContext;
|
||||
inapppurchases: Resource$Inapppurchases;
|
||||
purchases: Resource$Purchases;
|
||||
constructor(options: GlobalOptions, google?: GoogleConfigurable);
|
||||
}
|
||||
/**
|
||||
* An InappPurchase resource indicates the status of a user's inapp product purchase.
|
||||
*/
|
||||
interface Schema$InappPurchase {
|
||||
/**
|
||||
* The consumption state of the inapp product. Possible values are: - Yet to be consumed - Consumed
|
||||
*/
|
||||
consumptionState?: number;
|
||||
/**
|
||||
* A developer-specified string that contains supplemental information about an order.
|
||||
*/
|
||||
developerPayload?: string;
|
||||
/**
|
||||
* This kind represents an inappPurchase object in the androidpublisher service.
|
||||
*/
|
||||
kind?: string;
|
||||
/**
|
||||
* The order id associated with the purchase of the inapp product.
|
||||
*/
|
||||
orderId?: string;
|
||||
/**
|
||||
* The purchase state of the order. Possible values are: - Purchased - Canceled - Pending
|
||||
*/
|
||||
purchaseState?: number;
|
||||
/**
|
||||
* The time the product was purchased, in milliseconds since the epoch (Jan 1, 1970).
|
||||
*/
|
||||
purchaseTime?: string;
|
||||
/**
|
||||
* The type of purchase of the inapp product. This field is only set if this purchase was not made using the standard in-app billing flow. Possible values are: - Test (i.e. purchased from a license testing account) - Promo (i.e. purchased using a promo code) - Rewarded (i.e. from watching a video ad instead of paying)
|
||||
*/
|
||||
purchaseType?: number;
|
||||
}
|
||||
/**
|
||||
* A SubscriptionPurchase resource indicates the status of a user's subscription purchase.
|
||||
*/
|
||||
interface Schema$SubscriptionPurchase {
|
||||
/**
|
||||
* Whether the subscription will automatically be renewed when it reaches its current expiry time.
|
||||
*/
|
||||
autoRenewing?: boolean;
|
||||
/**
|
||||
* Time at which the subscription was granted, in milliseconds since the Epoch.
|
||||
*/
|
||||
initiationTimestampMsec?: string;
|
||||
/**
|
||||
* This kind represents a subscriptionPurchase object in the androidpublisher service.
|
||||
*/
|
||||
kind?: string;
|
||||
/**
|
||||
* Time at which the subscription will expire, in milliseconds since the Epoch.
|
||||
*/
|
||||
validUntilTimestampMsec?: string;
|
||||
}
|
||||
class Resource$Inapppurchases {
|
||||
context: APIRequestContext;
|
||||
constructor(context: APIRequestContext);
|
||||
/**
|
||||
* androidpublisher.inapppurchases.get
|
||||
* @desc Checks the purchase and consumption status of an inapp item.
|
||||
* @alias androidpublisher.inapppurchases.get
|
||||
* @memberOf! ()
|
||||
*
|
||||
* @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(params?: Params$Resource$Inapppurchases$Get, options?: MethodOptions): GaxiosPromise<Schema$InappPurchase>;
|
||||
get(params: Params$Resource$Inapppurchases$Get, options: MethodOptions | BodyResponseCallback<Schema$InappPurchase>, callback: BodyResponseCallback<Schema$InappPurchase>): void;
|
||||
get(params: Params$Resource$Inapppurchases$Get, callback: BodyResponseCallback<Schema$InappPurchase>): void;
|
||||
get(callback: BodyResponseCallback<Schema$InappPurchase>): void;
|
||||
}
|
||||
interface Params$Resource$Inapppurchases$Get extends StandardParameters {
|
||||
/**
|
||||
* Auth client or API Key for the request
|
||||
*/
|
||||
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
|
||||
/**
|
||||
* The package name of the application the inapp product was sold in (for example, 'com.some.thing').
|
||||
*/
|
||||
packageName?: string;
|
||||
/**
|
||||
* The inapp product SKU (for example, 'com.some.thing.inapp1').
|
||||
*/
|
||||
productId?: string;
|
||||
/**
|
||||
* The token provided to the user's device when the inapp product was purchased.
|
||||
*/
|
||||
token?: string;
|
||||
}
|
||||
class Resource$Purchases {
|
||||
context: APIRequestContext;
|
||||
constructor(context: APIRequestContext);
|
||||
/**
|
||||
* androidpublisher.purchases.cancel
|
||||
* @desc Cancels a user's subscription purchase. The subscription remains valid until its expiration time.
|
||||
* @alias androidpublisher.purchases.cancel
|
||||
* @memberOf! ()
|
||||
*
|
||||
* @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(params?: Params$Resource$Purchases$Cancel, options?: MethodOptions): GaxiosPromise<void>;
|
||||
cancel(params: Params$Resource$Purchases$Cancel, options: MethodOptions | BodyResponseCallback<void>, callback: BodyResponseCallback<void>): void;
|
||||
cancel(params: Params$Resource$Purchases$Cancel, callback: BodyResponseCallback<void>): void;
|
||||
cancel(callback: BodyResponseCallback<void>): void;
|
||||
/**
|
||||
* androidpublisher.purchases.get
|
||||
* @desc Checks whether a user's subscription purchase is valid and returns its expiry time.
|
||||
* @alias androidpublisher.purchases.get
|
||||
* @memberOf! ()
|
||||
*
|
||||
* @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(params?: Params$Resource$Purchases$Get, options?: MethodOptions): GaxiosPromise<Schema$SubscriptionPurchase>;
|
||||
get(params: Params$Resource$Purchases$Get, options: MethodOptions | BodyResponseCallback<Schema$SubscriptionPurchase>, callback: BodyResponseCallback<Schema$SubscriptionPurchase>): void;
|
||||
get(params: Params$Resource$Purchases$Get, callback: BodyResponseCallback<Schema$SubscriptionPurchase>): void;
|
||||
get(callback: BodyResponseCallback<Schema$SubscriptionPurchase>): void;
|
||||
}
|
||||
interface Params$Resource$Purchases$Cancel extends StandardParameters {
|
||||
/**
|
||||
* Auth client or API Key for the request
|
||||
*/
|
||||
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
|
||||
/**
|
||||
* The package name of the application for which this subscription was purchased (for example, 'com.some.thing').
|
||||
*/
|
||||
packageName?: string;
|
||||
/**
|
||||
* The purchased subscription ID (for example, 'monthly001').
|
||||
*/
|
||||
subscriptionId?: string;
|
||||
/**
|
||||
* The token provided to the user's device when the subscription was purchased.
|
||||
*/
|
||||
token?: string;
|
||||
}
|
||||
interface Params$Resource$Purchases$Get extends StandardParameters {
|
||||
/**
|
||||
* Auth client or API Key for the request
|
||||
*/
|
||||
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
|
||||
/**
|
||||
* The package name of the application for which this subscription was purchased (for example, 'com.some.thing').
|
||||
*/
|
||||
packageName?: string;
|
||||
/**
|
||||
* The purchased subscription ID (for example, 'monthly001').
|
||||
*/
|
||||
subscriptionId?: string;
|
||||
/**
|
||||
* The token provided to the user's device when the subscription was purchased.
|
||||
*/
|
||||
token?: string;
|
||||
}
|
||||
}
|
||||
159
node_modules/googleapis/build/src/apis/androidpublisher/v1.1.js
generated
vendored
Normal file
159
node_modules/googleapis/build/src/apis/androidpublisher/v1.1.js
generated
vendored
Normal file
@@ -0,0 +1,159 @@
|
||||
"use strict";
|
||||
/**
|
||||
* Copyright 2019 Google LLC
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const googleapis_common_1 = require("googleapis-common");
|
||||
// tslint:disable: no-any
|
||||
// tslint:disable: class-name
|
||||
// tslint:disable: variable-name
|
||||
// tslint:disable: jsdoc-format
|
||||
// tslint:disable: no-namespace
|
||||
var androidpublisher_v1_1;
|
||||
(function (androidpublisher_v1_1) {
|
||||
/**
|
||||
* Google Play Developer API
|
||||
*
|
||||
* Accesses Android application developers' 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
|
||||
*/
|
||||
class Androidpublisher {
|
||||
constructor(options, google) {
|
||||
this.context = {
|
||||
_options: options || {},
|
||||
google,
|
||||
};
|
||||
this.inapppurchases = new Resource$Inapppurchases(this.context);
|
||||
this.purchases = new Resource$Purchases(this.context);
|
||||
}
|
||||
}
|
||||
androidpublisher_v1_1.Androidpublisher = Androidpublisher;
|
||||
class Resource$Inapppurchases {
|
||||
constructor(context) {
|
||||
this.context = context;
|
||||
}
|
||||
get(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
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,
|
||||
requiredParams: ['packageName', 'productId', 'token'],
|
||||
pathParams: ['packageName', 'productId', 'token'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
}
|
||||
androidpublisher_v1_1.Resource$Inapppurchases = Resource$Inapppurchases;
|
||||
class Resource$Purchases {
|
||||
constructor(context) {
|
||||
this.context = context;
|
||||
}
|
||||
cancel(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback || {});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
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,
|
||||
requiredParams: ['packageName', 'subscriptionId', 'token'],
|
||||
pathParams: ['packageName', 'subscriptionId', 'token'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
get(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback || {});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
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,
|
||||
requiredParams: ['packageName', 'subscriptionId', 'token'],
|
||||
pathParams: ['packageName', 'subscriptionId', 'token'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
}
|
||||
androidpublisher_v1_1.Resource$Purchases = Resource$Purchases;
|
||||
})(androidpublisher_v1_1 = exports.androidpublisher_v1_1 || (exports.androidpublisher_v1_1 = {}));
|
||||
//# sourceMappingURL=v1.1.js.map
|
||||
170
node_modules/googleapis/build/src/apis/androidpublisher/v1.d.ts
generated
vendored
Normal file
170
node_modules/googleapis/build/src/apis/androidpublisher/v1.d.ts
generated
vendored
Normal file
@@ -0,0 +1,170 @@
|
||||
/**
|
||||
* Copyright 2019 Google LLC
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
import { OAuth2Client, JWT, Compute, UserRefreshClient } from 'google-auth-library';
|
||||
import { GoogleConfigurable, MethodOptions, GlobalOptions, BodyResponseCallback, APIRequestContext } from 'googleapis-common';
|
||||
import { GaxiosPromise } from 'gaxios';
|
||||
export declare namespace androidpublisher_v1 {
|
||||
interface Options extends GlobalOptions {
|
||||
version: 'v1';
|
||||
}
|
||||
interface StandardParameters {
|
||||
/**
|
||||
* Data format for the response.
|
||||
*/
|
||||
alt?: string;
|
||||
/**
|
||||
* Selector specifying which fields to include in a partial response.
|
||||
*/
|
||||
fields?: string;
|
||||
/**
|
||||
* API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
|
||||
*/
|
||||
key?: string;
|
||||
/**
|
||||
* OAuth 2.0 token for the current user.
|
||||
*/
|
||||
oauth_token?: string;
|
||||
/**
|
||||
* Returns response with indentations and line breaks.
|
||||
*/
|
||||
prettyPrint?: boolean;
|
||||
/**
|
||||
* An opaque string that represents a user for quota purposes. Must not exceed 40 characters.
|
||||
*/
|
||||
quotaUser?: string;
|
||||
/**
|
||||
* Deprecated. Please use quotaUser instead.
|
||||
*/
|
||||
userIp?: string;
|
||||
}
|
||||
/**
|
||||
* Google Play Developer API
|
||||
*
|
||||
* Accesses Android application developers' 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
|
||||
*/
|
||||
class Androidpublisher {
|
||||
context: APIRequestContext;
|
||||
purchases: Resource$Purchases;
|
||||
constructor(options: GlobalOptions, google?: GoogleConfigurable);
|
||||
}
|
||||
/**
|
||||
* A SubscriptionPurchase resource indicates the status of a user's subscription purchase.
|
||||
*/
|
||||
interface Schema$SubscriptionPurchase {
|
||||
/**
|
||||
* Whether the subscription will automatically be renewed when it reaches its current expiry time.
|
||||
*/
|
||||
autoRenewing?: boolean;
|
||||
/**
|
||||
* Time at which the subscription was granted, in milliseconds since the Epoch.
|
||||
*/
|
||||
initiationTimestampMsec?: string;
|
||||
/**
|
||||
* This kind represents a subscriptionPurchase object in the androidpublisher service.
|
||||
*/
|
||||
kind?: string;
|
||||
/**
|
||||
* Time at which the subscription will expire, in milliseconds since the Epoch.
|
||||
*/
|
||||
validUntilTimestampMsec?: string;
|
||||
}
|
||||
class Resource$Purchases {
|
||||
context: APIRequestContext;
|
||||
constructor(context: APIRequestContext);
|
||||
/**
|
||||
* androidpublisher.purchases.cancel
|
||||
* @desc Cancels a user's subscription purchase. The subscription remains valid until its expiration time.
|
||||
* @alias androidpublisher.purchases.cancel
|
||||
* @memberOf! ()
|
||||
*
|
||||
* @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(params?: Params$Resource$Purchases$Cancel, options?: MethodOptions): GaxiosPromise<void>;
|
||||
cancel(params: Params$Resource$Purchases$Cancel, options: MethodOptions | BodyResponseCallback<void>, callback: BodyResponseCallback<void>): void;
|
||||
cancel(params: Params$Resource$Purchases$Cancel, callback: BodyResponseCallback<void>): void;
|
||||
cancel(callback: BodyResponseCallback<void>): void;
|
||||
/**
|
||||
* androidpublisher.purchases.get
|
||||
* @desc Checks whether a user's subscription purchase is valid and returns its expiry time.
|
||||
* @alias androidpublisher.purchases.get
|
||||
* @memberOf! ()
|
||||
*
|
||||
* @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(params?: Params$Resource$Purchases$Get, options?: MethodOptions): GaxiosPromise<Schema$SubscriptionPurchase>;
|
||||
get(params: Params$Resource$Purchases$Get, options: MethodOptions | BodyResponseCallback<Schema$SubscriptionPurchase>, callback: BodyResponseCallback<Schema$SubscriptionPurchase>): void;
|
||||
get(params: Params$Resource$Purchases$Get, callback: BodyResponseCallback<Schema$SubscriptionPurchase>): void;
|
||||
get(callback: BodyResponseCallback<Schema$SubscriptionPurchase>): void;
|
||||
}
|
||||
interface Params$Resource$Purchases$Cancel extends StandardParameters {
|
||||
/**
|
||||
* Auth client or API Key for the request
|
||||
*/
|
||||
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
|
||||
/**
|
||||
* The package name of the application for which this subscription was purchased (for example, 'com.some.thing').
|
||||
*/
|
||||
packageName?: string;
|
||||
/**
|
||||
* The purchased subscription ID (for example, 'monthly001').
|
||||
*/
|
||||
subscriptionId?: string;
|
||||
/**
|
||||
* The token provided to the user's device when the subscription was purchased.
|
||||
*/
|
||||
token?: string;
|
||||
}
|
||||
interface Params$Resource$Purchases$Get extends StandardParameters {
|
||||
/**
|
||||
* Auth client or API Key for the request
|
||||
*/
|
||||
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
|
||||
/**
|
||||
* The package name of the application for which this subscription was purchased (for example, 'com.some.thing').
|
||||
*/
|
||||
packageName?: string;
|
||||
/**
|
||||
* The purchased subscription ID (for example, 'monthly001').
|
||||
*/
|
||||
subscriptionId?: string;
|
||||
/**
|
||||
* The token provided to the user's device when the subscription was purchased.
|
||||
*/
|
||||
token?: string;
|
||||
}
|
||||
}
|
||||
120
node_modules/googleapis/build/src/apis/androidpublisher/v1.js
generated
vendored
Normal file
120
node_modules/googleapis/build/src/apis/androidpublisher/v1.js
generated
vendored
Normal file
@@ -0,0 +1,120 @@
|
||||
"use strict";
|
||||
/**
|
||||
* Copyright 2019 Google LLC
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const googleapis_common_1 = require("googleapis-common");
|
||||
// tslint:disable: no-any
|
||||
// tslint:disable: class-name
|
||||
// tslint:disable: variable-name
|
||||
// tslint:disable: jsdoc-format
|
||||
// tslint:disable: no-namespace
|
||||
var androidpublisher_v1;
|
||||
(function (androidpublisher_v1) {
|
||||
/**
|
||||
* Google Play Developer API
|
||||
*
|
||||
* Accesses Android application developers' 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
|
||||
*/
|
||||
class Androidpublisher {
|
||||
constructor(options, google) {
|
||||
this.context = {
|
||||
_options: options || {},
|
||||
google,
|
||||
};
|
||||
this.purchases = new Resource$Purchases(this.context);
|
||||
}
|
||||
}
|
||||
androidpublisher_v1.Androidpublisher = Androidpublisher;
|
||||
class Resource$Purchases {
|
||||
constructor(context) {
|
||||
this.context = context;
|
||||
}
|
||||
cancel(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback || {});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
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,
|
||||
requiredParams: ['packageName', 'subscriptionId', 'token'],
|
||||
pathParams: ['packageName', 'subscriptionId', 'token'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
get(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback || {});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
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,
|
||||
requiredParams: ['packageName', 'subscriptionId', 'token'],
|
||||
pathParams: ['packageName', 'subscriptionId', 'token'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
}
|
||||
androidpublisher_v1.Resource$Purchases = Resource$Purchases;
|
||||
})(androidpublisher_v1 = exports.androidpublisher_v1 || (exports.androidpublisher_v1 = {}));
|
||||
//# sourceMappingURL=v1.js.map
|
||||
3187
node_modules/googleapis/build/src/apis/androidpublisher/v2.d.ts
generated
vendored
Normal file
3187
node_modules/googleapis/build/src/apis/androidpublisher/v2.d.ts
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
2093
node_modules/googleapis/build/src/apis/androidpublisher/v2.js
generated
vendored
Normal file
2093
node_modules/googleapis/build/src/apis/androidpublisher/v2.js
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
3192
node_modules/googleapis/build/src/apis/androidpublisher/v3.d.ts
generated
vendored
Normal file
3192
node_modules/googleapis/build/src/apis/androidpublisher/v3.d.ts
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
2033
node_modules/googleapis/build/src/apis/androidpublisher/v3.js
generated
vendored
Normal file
2033
node_modules/googleapis/build/src/apis/androidpublisher/v3.js
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
18
node_modules/googleapis/build/src/apis/appengine/index.d.ts
generated
vendored
Normal file
18
node_modules/googleapis/build/src/apis/appengine/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
/*! THIS FILE IS AUTO-GENERATED */
|
||||
import { AuthPlus } from 'googleapis-common';
|
||||
import { appengine_v1 } from './v1';
|
||||
import { appengine_v1alpha } from './v1alpha';
|
||||
import { appengine_v1beta } from './v1beta';
|
||||
export declare const VERSIONS: {
|
||||
v1: typeof appengine_v1.Appengine;
|
||||
v1alpha: typeof appengine_v1alpha.Appengine;
|
||||
v1beta: typeof appengine_v1beta.Appengine;
|
||||
};
|
||||
export declare function appengine(version: 'v1'): appengine_v1.Appengine;
|
||||
export declare function appengine(options: appengine_v1.Options): appengine_v1.Appengine;
|
||||
export declare function appengine(version: 'v1alpha'): appengine_v1alpha.Appengine;
|
||||
export declare function appengine(options: appengine_v1alpha.Options): appengine_v1alpha.Appengine;
|
||||
export declare function appengine(version: 'v1beta'): appengine_v1beta.Appengine;
|
||||
export declare function appengine(options: appengine_v1beta.Options): appengine_v1beta.Appengine;
|
||||
declare const auth: AuthPlus;
|
||||
export { auth };
|
||||
31
node_modules/googleapis/build/src/apis/appengine/index.js
generated
vendored
Normal file
31
node_modules/googleapis/build/src/apis/appengine/index.js
generated
vendored
Normal file
@@ -0,0 +1,31 @@
|
||||
"use strict";
|
||||
// Copyright 2019 Google LLC
|
||||
// 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.
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
/*! THIS FILE IS AUTO-GENERATED */
|
||||
const googleapis_common_1 = require("googleapis-common");
|
||||
const v1_1 = require("./v1");
|
||||
const v1alpha_1 = require("./v1alpha");
|
||||
const v1beta_1 = require("./v1beta");
|
||||
exports.VERSIONS = {
|
||||
v1: v1_1.appengine_v1.Appengine,
|
||||
v1alpha: v1alpha_1.appengine_v1alpha.Appengine,
|
||||
v1beta: v1beta_1.appengine_v1beta.Appengine,
|
||||
};
|
||||
function appengine(versionOrOptions) {
|
||||
return googleapis_common_1.getAPI('appengine', versionOrOptions, exports.VERSIONS, this);
|
||||
}
|
||||
exports.appengine = appengine;
|
||||
const auth = new googleapis_common_1.AuthPlus();
|
||||
exports.auth = auth;
|
||||
//# sourceMappingURL=index.js.map
|
||||
3007
node_modules/googleapis/build/src/apis/appengine/v1.d.ts
generated
vendored
Normal file
3007
node_modules/googleapis/build/src/apis/appengine/v1.d.ts
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1315
node_modules/googleapis/build/src/apis/appengine/v1.js
generated
vendored
Normal file
1315
node_modules/googleapis/build/src/apis/appengine/v1.js
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1083
node_modules/googleapis/build/src/apis/appengine/v1alpha.d.ts
generated
vendored
Normal file
1083
node_modules/googleapis/build/src/apis/appengine/v1alpha.d.ts
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
564
node_modules/googleapis/build/src/apis/appengine/v1alpha.js
generated
vendored
Normal file
564
node_modules/googleapis/build/src/apis/appengine/v1alpha.js
generated
vendored
Normal file
@@ -0,0 +1,564 @@
|
||||
"use strict";
|
||||
/**
|
||||
* Copyright 2019 Google LLC
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const googleapis_common_1 = require("googleapis-common");
|
||||
// tslint:disable: no-any
|
||||
// tslint:disable: class-name
|
||||
// tslint:disable: variable-name
|
||||
// tslint:disable: jsdoc-format
|
||||
// tslint:disable: no-namespace
|
||||
var appengine_v1alpha;
|
||||
(function (appengine_v1alpha) {
|
||||
/**
|
||||
* App Engine Admin API
|
||||
*
|
||||
* Provisions and manages developers' 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
|
||||
*/
|
||||
class Appengine {
|
||||
constructor(options, google) {
|
||||
this.context = {
|
||||
_options: options || {},
|
||||
google,
|
||||
};
|
||||
this.apps = new Resource$Apps(this.context);
|
||||
}
|
||||
}
|
||||
appengine_v1alpha.Appengine = Appengine;
|
||||
class Resource$Apps {
|
||||
constructor(context) {
|
||||
this.context = context;
|
||||
this.authorizedCertificates = new Resource$Apps$Authorizedcertificates(this.context);
|
||||
this.authorizedDomains = new Resource$Apps$Authorizeddomains(this.context);
|
||||
this.domainMappings = new Resource$Apps$Domainmappings(this.context);
|
||||
this.locations = new Resource$Apps$Locations(this.context);
|
||||
this.operations = new Resource$Apps$Operations(this.context);
|
||||
}
|
||||
}
|
||||
appengine_v1alpha.Resource$Apps = Resource$Apps;
|
||||
class Resource$Apps$Authorizedcertificates {
|
||||
constructor(context) {
|
||||
this.context = context;
|
||||
}
|
||||
create(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
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,
|
||||
requiredParams: ['appsId'],
|
||||
pathParams: ['appsId'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
delete(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
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,
|
||||
requiredParams: ['appsId', 'authorizedCertificatesId'],
|
||||
pathParams: ['appsId', 'authorizedCertificatesId'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
get(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
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,
|
||||
requiredParams: ['appsId', 'authorizedCertificatesId'],
|
||||
pathParams: ['appsId', 'authorizedCertificatesId'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
list(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
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,
|
||||
requiredParams: ['appsId'],
|
||||
pathParams: ['appsId'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
patch(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
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,
|
||||
requiredParams: ['appsId', 'authorizedCertificatesId'],
|
||||
pathParams: ['appsId', 'authorizedCertificatesId'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
}
|
||||
appengine_v1alpha.Resource$Apps$Authorizedcertificates = Resource$Apps$Authorizedcertificates;
|
||||
class Resource$Apps$Authorizeddomains {
|
||||
constructor(context) {
|
||||
this.context = context;
|
||||
}
|
||||
list(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
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,
|
||||
requiredParams: ['appsId'],
|
||||
pathParams: ['appsId'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
}
|
||||
appengine_v1alpha.Resource$Apps$Authorizeddomains = Resource$Apps$Authorizeddomains;
|
||||
class Resource$Apps$Domainmappings {
|
||||
constructor(context) {
|
||||
this.context = context;
|
||||
}
|
||||
create(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
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,
|
||||
requiredParams: ['appsId'],
|
||||
pathParams: ['appsId'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
delete(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
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,
|
||||
requiredParams: ['appsId', 'domainMappingsId'],
|
||||
pathParams: ['appsId', 'domainMappingsId'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
get(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
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,
|
||||
requiredParams: ['appsId', 'domainMappingsId'],
|
||||
pathParams: ['appsId', 'domainMappingsId'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
list(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
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,
|
||||
requiredParams: ['appsId'],
|
||||
pathParams: ['appsId'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
patch(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
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,
|
||||
requiredParams: ['appsId', 'domainMappingsId'],
|
||||
pathParams: ['appsId', 'domainMappingsId'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
}
|
||||
appengine_v1alpha.Resource$Apps$Domainmappings = Resource$Apps$Domainmappings;
|
||||
class Resource$Apps$Locations {
|
||||
constructor(context) {
|
||||
this.context = context;
|
||||
}
|
||||
get(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
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,
|
||||
requiredParams: ['appsId', 'locationsId'],
|
||||
pathParams: ['appsId', 'locationsId'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
list(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
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,
|
||||
requiredParams: ['appsId'],
|
||||
pathParams: ['appsId'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
}
|
||||
appengine_v1alpha.Resource$Apps$Locations = Resource$Apps$Locations;
|
||||
class Resource$Apps$Operations {
|
||||
constructor(context) {
|
||||
this.context = context;
|
||||
}
|
||||
get(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
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,
|
||||
requiredParams: ['appsId', 'operationsId'],
|
||||
pathParams: ['appsId', 'operationsId'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
list(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
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,
|
||||
requiredParams: ['appsId'],
|
||||
pathParams: ['appsId'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
}
|
||||
appengine_v1alpha.Resource$Apps$Operations = Resource$Apps$Operations;
|
||||
})(appengine_v1alpha = exports.appengine_v1alpha || (exports.appengine_v1alpha = {}));
|
||||
//# sourceMappingURL=v1alpha.js.map
|
||||
3067
node_modules/googleapis/build/src/apis/appengine/v1beta.d.ts
generated
vendored
Normal file
3067
node_modules/googleapis/build/src/apis/appengine/v1beta.d.ts
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1319
node_modules/googleapis/build/src/apis/appengine/v1beta.js
generated
vendored
Normal file
1319
node_modules/googleapis/build/src/apis/appengine/v1beta.js
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
10
node_modules/googleapis/build/src/apis/appsactivity/index.d.ts
generated
vendored
Normal file
10
node_modules/googleapis/build/src/apis/appsactivity/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
/*! THIS FILE IS AUTO-GENERATED */
|
||||
import { AuthPlus } from 'googleapis-common';
|
||||
import { appsactivity_v1 } from './v1';
|
||||
export declare const VERSIONS: {
|
||||
v1: typeof appsactivity_v1.Appsactivity;
|
||||
};
|
||||
export declare function appsactivity(version: 'v1'): appsactivity_v1.Appsactivity;
|
||||
export declare function appsactivity(options: appsactivity_v1.Options): appsactivity_v1.Appsactivity;
|
||||
declare const auth: AuthPlus;
|
||||
export { auth };
|
||||
27
node_modules/googleapis/build/src/apis/appsactivity/index.js
generated
vendored
Normal file
27
node_modules/googleapis/build/src/apis/appsactivity/index.js
generated
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
"use strict";
|
||||
// Copyright 2019 Google LLC
|
||||
// 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.
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
/*! THIS FILE IS AUTO-GENERATED */
|
||||
const googleapis_common_1 = require("googleapis-common");
|
||||
const v1_1 = require("./v1");
|
||||
exports.VERSIONS = {
|
||||
v1: v1_1.appsactivity_v1.Appsactivity,
|
||||
};
|
||||
function appsactivity(versionOrOptions) {
|
||||
return googleapis_common_1.getAPI('appsactivity', versionOrOptions, exports.VERSIONS, this);
|
||||
}
|
||||
exports.appsactivity = appsactivity;
|
||||
const auth = new googleapis_common_1.AuthPlus();
|
||||
exports.auth = auth;
|
||||
//# sourceMappingURL=index.js.map
|
||||
336
node_modules/googleapis/build/src/apis/appsactivity/v1.d.ts
generated
vendored
Normal file
336
node_modules/googleapis/build/src/apis/appsactivity/v1.d.ts
generated
vendored
Normal file
@@ -0,0 +1,336 @@
|
||||
/**
|
||||
* Copyright 2019 Google LLC
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
import { OAuth2Client, JWT, Compute, UserRefreshClient } from 'google-auth-library';
|
||||
import { GoogleConfigurable, MethodOptions, GlobalOptions, BodyResponseCallback, APIRequestContext } from 'googleapis-common';
|
||||
import { GaxiosPromise } from 'gaxios';
|
||||
export declare namespace appsactivity_v1 {
|
||||
interface Options extends GlobalOptions {
|
||||
version: 'v1';
|
||||
}
|
||||
interface StandardParameters {
|
||||
/**
|
||||
* Data format for the response.
|
||||
*/
|
||||
alt?: string;
|
||||
/**
|
||||
* Selector specifying which fields to include in a partial response.
|
||||
*/
|
||||
fields?: string;
|
||||
/**
|
||||
* API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
|
||||
*/
|
||||
key?: string;
|
||||
/**
|
||||
* OAuth 2.0 token for the current user.
|
||||
*/
|
||||
oauth_token?: string;
|
||||
/**
|
||||
* Returns response with indentations and line breaks.
|
||||
*/
|
||||
prettyPrint?: boolean;
|
||||
/**
|
||||
* An opaque string that represents a user for quota purposes. Must not exceed 40 characters.
|
||||
*/
|
||||
quotaUser?: string;
|
||||
/**
|
||||
* Deprecated. Please use quotaUser instead.
|
||||
*/
|
||||
userIp?: string;
|
||||
}
|
||||
/**
|
||||
* Drive 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
|
||||
*/
|
||||
class Appsactivity {
|
||||
context: APIRequestContext;
|
||||
activities: Resource$Activities;
|
||||
constructor(options: GlobalOptions, google?: GoogleConfigurable);
|
||||
}
|
||||
/**
|
||||
* An Activity resource is a combined view of multiple events. An activity has a list of individual events and a combined view of the common fields among all events.
|
||||
*/
|
||||
interface Schema$Activity {
|
||||
/**
|
||||
* The fields common to all of the singleEvents that make up the Activity.
|
||||
*/
|
||||
combinedEvent?: Schema$Event;
|
||||
/**
|
||||
* A list of all the Events that make up the Activity.
|
||||
*/
|
||||
singleEvents?: Schema$Event[];
|
||||
}
|
||||
/**
|
||||
* Represents the changes associated with an action taken by a user.
|
||||
*/
|
||||
interface Schema$Event {
|
||||
/**
|
||||
* 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.
|
||||
*/
|
||||
additionalEventTypes?: string[];
|
||||
/**
|
||||
* The time at which the event occurred formatted as Unix time in milliseconds.
|
||||
*/
|
||||
eventTimeMillis?: string;
|
||||
/**
|
||||
* Whether this event is caused by a user being deleted.
|
||||
*/
|
||||
fromUserDeletion?: boolean;
|
||||
/**
|
||||
* Extra information for move type events, such as changes in an object's parents.
|
||||
*/
|
||||
move?: Schema$Move;
|
||||
/**
|
||||
* Extra information for permissionChange type events, such as the user or group the new permission applies to.
|
||||
*/
|
||||
permissionChanges?: Schema$PermissionChange[];
|
||||
/**
|
||||
* The main type of event that occurred.
|
||||
*/
|
||||
primaryEventType?: string;
|
||||
/**
|
||||
* Extra information for rename type events, such as the old and new names.
|
||||
*/
|
||||
rename?: Schema$Rename;
|
||||
/**
|
||||
* Information specific to the Target object modified by the event.
|
||||
*/
|
||||
target?: Schema$Target;
|
||||
/**
|
||||
* Represents the user responsible for the event.
|
||||
*/
|
||||
user?: Schema$User;
|
||||
}
|
||||
/**
|
||||
* The response from the list request. Contains a list of activities and a token to retrieve the next page of results.
|
||||
*/
|
||||
interface Schema$ListActivitiesResponse {
|
||||
/**
|
||||
* List of activities.
|
||||
*/
|
||||
activities?: Schema$Activity[];
|
||||
/**
|
||||
* Token for the next page of results.
|
||||
*/
|
||||
nextPageToken?: string;
|
||||
}
|
||||
/**
|
||||
* Contains information about changes in an object's parents as a result of a move type event.
|
||||
*/
|
||||
interface Schema$Move {
|
||||
/**
|
||||
* The added parent(s).
|
||||
*/
|
||||
addedParents?: Schema$Parent[];
|
||||
/**
|
||||
* The removed parent(s).
|
||||
*/
|
||||
removedParents?: Schema$Parent[];
|
||||
}
|
||||
/**
|
||||
* Contains information about a parent object. For example, a folder in Drive is a parent for all files within it.
|
||||
*/
|
||||
interface Schema$Parent {
|
||||
/**
|
||||
* The parent's ID.
|
||||
*/
|
||||
id?: string;
|
||||
/**
|
||||
* Whether this is the root folder.
|
||||
*/
|
||||
isRoot?: boolean;
|
||||
/**
|
||||
* The parent's title.
|
||||
*/
|
||||
title?: string;
|
||||
}
|
||||
/**
|
||||
* Contains information about the permissions and type of access allowed with regards to a Google Drive object. This is a subset of the fields contained in a corresponding Drive Permissions object.
|
||||
*/
|
||||
interface Schema$Permission {
|
||||
/**
|
||||
* The name of the user or group the permission applies to.
|
||||
*/
|
||||
name?: string;
|
||||
/**
|
||||
* The ID for this permission. Corresponds to the Drive API's permission ID returned as part of the Drive Permissions resource.
|
||||
*/
|
||||
permissionId?: string;
|
||||
/**
|
||||
* Indicates the Google Drive permissions role. The role determines a user's ability to read, write, or comment on the file.
|
||||
*/
|
||||
role?: string;
|
||||
/**
|
||||
* Indicates how widely permissions are granted.
|
||||
*/
|
||||
type?: string;
|
||||
/**
|
||||
* The user's information if the type is USER.
|
||||
*/
|
||||
user?: Schema$User;
|
||||
/**
|
||||
* Whether the permission requires a link to the file.
|
||||
*/
|
||||
withLink?: boolean;
|
||||
}
|
||||
/**
|
||||
* Contains information about a Drive object's permissions that changed as a result of a permissionChange type event.
|
||||
*/
|
||||
interface Schema$PermissionChange {
|
||||
/**
|
||||
* Lists all Permission objects added.
|
||||
*/
|
||||
addedPermissions?: Schema$Permission[];
|
||||
/**
|
||||
* Lists all Permission objects removed.
|
||||
*/
|
||||
removedPermissions?: Schema$Permission[];
|
||||
}
|
||||
/**
|
||||
* Photo information for a user.
|
||||
*/
|
||||
interface Schema$Photo {
|
||||
/**
|
||||
* The URL of the photo.
|
||||
*/
|
||||
url?: string;
|
||||
}
|
||||
/**
|
||||
* Contains information about a renametype event.
|
||||
*/
|
||||
interface Schema$Rename {
|
||||
/**
|
||||
* The new title.
|
||||
*/
|
||||
newTitle?: string;
|
||||
/**
|
||||
* The old title.
|
||||
*/
|
||||
oldTitle?: string;
|
||||
}
|
||||
/**
|
||||
* Information about the object modified by the event.
|
||||
*/
|
||||
interface Schema$Target {
|
||||
/**
|
||||
* The ID of the target. For example, in Google Drive, this is the file or folder ID.
|
||||
*/
|
||||
id?: string;
|
||||
/**
|
||||
* The MIME type of the target.
|
||||
*/
|
||||
mimeType?: string;
|
||||
/**
|
||||
* The name of the target. For example, in Google Drive, this is the title of the file.
|
||||
*/
|
||||
name?: string;
|
||||
}
|
||||
/**
|
||||
* A representation of a user.
|
||||
*/
|
||||
interface Schema$User {
|
||||
/**
|
||||
* A boolean which indicates whether the specified User was deleted. If true, name, photo and permission_id will be omitted.
|
||||
*/
|
||||
isDeleted?: boolean;
|
||||
/**
|
||||
* Whether the user is the authenticated user.
|
||||
*/
|
||||
isMe?: boolean;
|
||||
/**
|
||||
* The displayable name of the user.
|
||||
*/
|
||||
name?: string;
|
||||
/**
|
||||
* The permission ID associated with this user. Equivalent to the Drive API's permission ID for this user, returned as part of the Drive Permissions resource.
|
||||
*/
|
||||
permissionId?: string;
|
||||
/**
|
||||
* The profile photo of the user. Not present if the user has no profile photo.
|
||||
*/
|
||||
photo?: Schema$Photo;
|
||||
}
|
||||
class Resource$Activities {
|
||||
context: APIRequestContext;
|
||||
constructor(context: APIRequestContext);
|
||||
/**
|
||||
* appsactivity.activities.list
|
||||
* @desc Returns a list of activities visible to the current logged in user. Visible activities are determined by the visibility 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! ()
|
||||
*
|
||||
* @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 The ID used for ACL checks (does not filter the resulting event list by the assigned value). 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(params?: Params$Resource$Activities$List, options?: MethodOptions): GaxiosPromise<Schema$ListActivitiesResponse>;
|
||||
list(params: Params$Resource$Activities$List, options: MethodOptions | BodyResponseCallback<Schema$ListActivitiesResponse>, callback: BodyResponseCallback<Schema$ListActivitiesResponse>): void;
|
||||
list(params: Params$Resource$Activities$List, callback: BodyResponseCallback<Schema$ListActivitiesResponse>): void;
|
||||
list(callback: BodyResponseCallback<Schema$ListActivitiesResponse>): void;
|
||||
}
|
||||
interface Params$Resource$Activities$List extends StandardParameters {
|
||||
/**
|
||||
* Auth client or API Key for the request
|
||||
*/
|
||||
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
|
||||
/**
|
||||
* Identifies the Drive folder containing the items for which to return activities.
|
||||
*/
|
||||
'drive.ancestorId'?: string;
|
||||
/**
|
||||
* Identifies the Drive item to return activities for.
|
||||
*/
|
||||
'drive.fileId'?: string;
|
||||
/**
|
||||
* Indicates the strategy to use when grouping singleEvents items in the associated combinedEvent object.
|
||||
*/
|
||||
groupingStrategy?: string;
|
||||
/**
|
||||
* The maximum number of events to return on a page. The response includes a continuation token if there are more events.
|
||||
*/
|
||||
pageSize?: number;
|
||||
/**
|
||||
* A token to retrieve a specific page of results.
|
||||
*/
|
||||
pageToken?: string;
|
||||
/**
|
||||
* The Google service from which to return activities. Possible values of source are: - drive.google.com
|
||||
*/
|
||||
source?: string;
|
||||
/**
|
||||
* The ID used for ACL checks (does not filter the resulting event list by the assigned value). Use the special value me to indicate the currently authenticated user.
|
||||
*/
|
||||
userId?: string;
|
||||
}
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user