Auto-commit 2026-05-02 09:37
This commit is contained in:
8941
node_modules/googleapis/CHANGELOG.md
generated
vendored
Normal file
8941
node_modules/googleapis/CHANGELOG.md
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
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.
|
||||
662
node_modules/googleapis/README.md
generated
vendored
Normal file
662
node_modules/googleapis/README.md
generated
vendored
Normal file
@@ -0,0 +1,662 @@
|
||||
<img src="https://avatars0.githubusercontent.com/u/1342004?v=3&s=96" alt="Google Inc. logo" title="Google" align="right" height="96" width="96"/>
|
||||
|
||||
# Google APIs Node.js Client
|
||||
|
||||
[![npm version][npmimg]][npm]
|
||||
[![Downloads][downloadsimg]][downloads]
|
||||
[![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)
|
||||
* [Using the client library](#using-the-client-library)
|
||||
* [Samples](#samples)
|
||||
* [API Reference](#api-reference)
|
||||
* [Authentication and authorization](#authentication-and-authorization)
|
||||
* [OAuth2 client](#oauth2-client)
|
||||
* [Using API keys](#using-api-keys)
|
||||
* [Application default credentials](#application-default-credentials)
|
||||
* [Service account credentials](#service-account-credentials)
|
||||
* [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)
|
||||
* [HTTP/2](#http2)
|
||||
* [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
|
||||
```
|
||||
|
||||
If you need to reduce startup times, you can alternatively install a submodule as its own dependency. We make an effort to publish submodules that are __not__ in this [list](https://github.com/googleapis/google-cloud-node#google-cloud-nodejs-client-libraries). In order to add it as a dependency, run the following sample command, replacing with your preferred API:
|
||||
|
||||
``` sh
|
||||
$ npm install @googleapis/docs
|
||||
```
|
||||
|
||||
You can run [this search](https://www.npmjs.com/search?q=scope%3Agoogleapis) on npm, to find a list of the submodules available.
|
||||
### Using the client library
|
||||
|
||||
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 versions. 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);
|
||||
```
|
||||
|
||||
Alternatively, you can make calls directly to the APIs by installing a submodule:
|
||||
|
||||
``` js
|
||||
const docs = require('@googleapis/docs')
|
||||
|
||||
const auth = new docs.auth.GoogleAuth({
|
||||
keyFilename: 'PATH_TO_SERVICE_ACCOUNT_KEY.json',
|
||||
// Scopes can be specified either as an array or as a single, space-delimited string.
|
||||
scopes: ['https://www.googleapis.com/auth/documents']
|
||||
});
|
||||
const authClient = await auth.getClient();
|
||||
|
||||
const client = await docs.docs({
|
||||
version: 'v1',
|
||||
auth: authClient
|
||||
});
|
||||
|
||||
const createResponse = await client.documents.create({
|
||||
requestBody: {
|
||||
title: 'Your new document!',
|
||||
},
|
||||
});
|
||||
|
||||
console.log(createResponse.data);
|
||||
```
|
||||
|
||||
### Samples
|
||||
There are a lot of [samples](https://github.com/googleapis/google-api-nodejs-client/tree/main/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 multiple ways to authenticate to Google APIs. Some services support all authentication methods, while others 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).
|
||||
|
||||
- **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).
|
||||
|
||||
- **Application default credentials** - Provides automatic access to Google APIs using the [Google Cloud SDK](https://cloud.google.com/sdk/) for local development, or the [GCE Metadata Server](https://cloud.google.com/compute/docs/storing-retrieving-metadata) for applications deployed to Google Cloud Platform. [Learn more](#application-default-credentials).
|
||||
|
||||
- **Service account credentials** - 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-account-credentials).
|
||||
|
||||
To learn more about the authentication client, see the [Google Auth Library](https://github.com/googleapis/google-auth-library-nodejs).
|
||||
|
||||
### OAuth2 client
|
||||
This module 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.
|
||||
- Navigate to the Cloud Console and [Create a new OAuth2 Client Id](https://console.cloud.google.com/apis/credentials/oauthclient)
|
||||
- Select `Web Application` for the application type
|
||||
- Add an authorized redirect URI with the value `http://localhost:3000/oauth2callback` (or applicable value for your scenario)
|
||||
- Click `Create`, and `Ok` on the following screen
|
||||
- Click the `Download` icon next to your newly created OAuth2 Client Id
|
||||
|
||||
Make sure to store this file in safe place, and *do not check this file into source control!*
|
||||
|
||||
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);
|
||||
});
|
||||
```
|
||||
This tokens event only occurs in the first authorization, and you need to have set your `access_type` to `offline` when calling the `generateAuthUrl` method to receive the refresh token. If you have already given your app the requisiste permissions without setting the appropriate constraints for receiving a refresh token, you will need to re-authorize the application to receive a fresh refresh token. You can revoke your app's access to your account [here](https://myaccount.google.com/permissions).
|
||||
|
||||
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.
|
||||
|
||||
Refresh tokens may stop working after they are granted, either because:
|
||||
- The user has revoked your app's access
|
||||
- The refresh token has not been used for 6 months
|
||||
- The user changed passwords and the refresh token contains Gmail scopes
|
||||
- The user account has exceeded a max number of live refresh tokens
|
||||
- The application has a status of 'Testing' and the consent screen is configured for an external user type, causing the token to expire in 7 days
|
||||
|
||||
As a developer, you should write your code to handle the case where a refresh token is no longer working.
|
||||
|
||||
|
||||
### 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].
|
||||
|
||||
#### Application default credentials
|
||||
|
||||
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.
|
||||
|
||||
To use Application default credentials locally with the [Google Cloud SDK](https://cloud.google.com/sdk/), run:
|
||||
|
||||
```sh
|
||||
$ gcloud auth application-default login
|
||||
```
|
||||
|
||||
When running in GCP, service authorize is automatically provided via the GCE Metadata server.
|
||||
|
||||
```js
|
||||
const {google} = require('googleapis');
|
||||
const compute = google.compute('v1');
|
||||
|
||||
async function main () {
|
||||
const auth = new google.auth.GoogleAuth({
|
||||
// Scopes can be specified either as an array or as a single, space-delimited string.
|
||||
scopes: ['https://www.googleapis.com/auth/compute']
|
||||
});
|
||||
const authClient = await auth.getClient();
|
||||
|
||||
// obtain the current project Id
|
||||
const project = await auth.getProjectId();
|
||||
|
||||
// Fetch the list of GCE zones within a project.
|
||||
const res = await compute.zones.list({ project, auth: authClient });
|
||||
console.log(res.data);
|
||||
}
|
||||
|
||||
main().catch(console.error);
|
||||
```
|
||||
|
||||
### Service account credentials
|
||||
|
||||
Service accounts allow you to perform server to server, app-level authentication using a robot account. You will create a service account, download a keyfile, and use that to authenticate to Google APIs. To create a service account:
|
||||
- Go to the [Create Service Account Key page](https://console.cloud.google.com/apis/credentials/serviceaccountkey)
|
||||
- Select `New Service Account` in the drop down
|
||||
- Click the `Create` button
|
||||
|
||||
Save the service account credential file somewhere safe, and *do not check this file into source control*! To reference the service account credential file, you have a few options.
|
||||
|
||||
#### Using the `GOOGLE_APPLICATION_CREDENTIALS` env var
|
||||
You can start process with an environment variable named `GOOGLE_APPLICATION_CREDENTIALS`. The value of this env var should be the full path to the service account credential file:
|
||||
|
||||
```
|
||||
$ GOOGLE_APPLICATION_CREDENTIALS=./your-secret-key.json node server.js
|
||||
```
|
||||
|
||||
#### Using the `keyFile` property
|
||||
Alternatively, you can specify the path to the service account credential file via the `keyFile` property in the `GoogleAuth` constructor:
|
||||
|
||||
```js
|
||||
const {google} = require('googleapis');
|
||||
|
||||
const auth = new google.auth.GoogleAuth({
|
||||
keyFile: '/path/to/your-secret-key.json',
|
||||
scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
||||
});
|
||||
```
|
||||
|
||||
|
||||
### 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](https://github.com/googleapis/gaxios/#request-options).
|
||||
|
||||
#### 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 auth = new google.auth.GoogleAuth({
|
||||
scopes: ['https://www.googleapis.com/auth/cloud-platform']
|
||||
});
|
||||
const authClient = await auth.getClient();
|
||||
|
||||
const projectId = await auth.getProjectId();
|
||||
|
||||
const request = {
|
||||
projectId,
|
||||
datasetId: '<YOUR_DATASET_ID>',
|
||||
|
||||
// This is a "request-level" option
|
||||
auth: authClient
|
||||
};
|
||||
|
||||
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 `responseType`.
|
||||
|
||||
For example:
|
||||
|
||||
```js
|
||||
const res = await drive.files.export({
|
||||
fileId: 'asxKJod9s79', // A Google Doc
|
||||
mimeType: 'application/pdf'
|
||||
}, {
|
||||
// Make sure we get the binary data
|
||||
responseType: 'stream'
|
||||
});
|
||||
```
|
||||
|
||||
### 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 programmatically 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 {
|
||||
google, // The top level object used to access services
|
||||
drive_v3, // For every service client, there is an exported namespace
|
||||
Auth, // Namespace for auth related types
|
||||
Common, // General types used throughout the library
|
||||
} from 'googleapis';
|
||||
|
||||
// Note: using explicit types like `Auth.GoogleAuth` are only here for
|
||||
// demonstration purposes. Generally with TypeScript, these types would
|
||||
// be inferred.
|
||||
const auth: Auth.GoogleAuth = new google.auth.GoogleAuth();
|
||||
const drive: drive_v3.Drive = google.drive({
|
||||
version: 'v3',
|
||||
auth,
|
||||
});
|
||||
|
||||
// There are generated types for every set of request parameters
|
||||
const listParams: drive_v3.Params$Resource$Files$List = {};
|
||||
const res = await drive.files.list(listParams);
|
||||
|
||||
// There are generated types for the response fields as well
|
||||
const listResults: drive_v3.Schema$FileList = res.data;
|
||||
```
|
||||
|
||||
### HTTP/2
|
||||
This library has support for [HTTP/2](https://developers.google.com/web/fundamentals/performance/http2). To enable it, use the `http2` option anywhere request parameters are accepted:
|
||||
|
||||
```js
|
||||
const {google} = require('googleapis');
|
||||
google.options({
|
||||
http2: true,
|
||||
});
|
||||
```
|
||||
|
||||
HTTP/2 is often more performant, as it allows multiplexing of multiple concurrent requests over a single socket. In a traditional HTTP/2 API, the client is directly responsible for opening and closing the sessions made to make requests. To maintain compatibility with the existing API, this module will automatically re-use existing sessions, which are collected after idling for 500ms. Much of the performance gains will be visible in batch style workloads, and tight loops.
|
||||
|
||||
## 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
|
||||
[npmimg]: https://img.shields.io/npm/v/googleapis.svg
|
||||
[npm]: https://www.npmjs.org/package/googleapis
|
||||
[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/main/CONTRIBUTING.md
|
||||
[license]: https://github.com/googleapis/google-api-nodejs-client/tree/main/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.cloud.google.com/apis/credentials
|
||||
[oauth]: https://developers.google.com/identity/protocols/OAuth2
|
||||
[oauthexample]: https://github.com/googleapis/google-api-nodejs-client/tree/main/samples/oauth2.js
|
||||
[options]: https://github.com/googleapis/google-api-nodejs-client/tree/main#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/
|
||||
[downloadsimg]: https://img.shields.io/npm/dm/googleapis.svg
|
||||
[downloads]: https://www.npmjs.com/package/googleapis
|
||||
12
node_modules/googleapis/build/src/apis/abusiveexperiencereport/index.d.ts
generated
vendored
Normal file
12
node_modules/googleapis/build/src/apis/abusiveexperiencereport/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
/*! 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 };
|
||||
export { abusiveexperiencereport_v1 };
|
||||
export { AuthPlus, GlobalOptions, APIRequestContext, GoogleConfigurable, StreamMethodOptions, GaxiosPromise, MethodOptions, BodyResponseCallback, } from 'googleapis-common';
|
||||
30
node_modules/googleapis/build/src/apis/abusiveexperiencereport/index.js
generated
vendored
Normal file
30
node_modules/googleapis/build/src/apis/abusiveexperiencereport/index.js
generated
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
"use strict";
|
||||
// Copyright 2020 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 });
|
||||
exports.AuthPlus = exports.abusiveexperiencereport_v1 = exports.auth = exports.abusiveexperiencereport = exports.VERSIONS = void 0;
|
||||
/*! THIS FILE IS AUTO-GENERATED */
|
||||
const googleapis_common_1 = require("googleapis-common");
|
||||
const v1_1 = require("./v1");
|
||||
Object.defineProperty(exports, "abusiveexperiencereport_v1", { enumerable: true, get: function () { return v1_1.abusiveexperiencereport_v1; } });
|
||||
exports.VERSIONS = {
|
||||
v1: v1_1.abusiveexperiencereport_v1.Abusiveexperiencereport,
|
||||
};
|
||||
function abusiveexperiencereport(versionOrOptions) {
|
||||
return (0, googleapis_common_1.getAPI)('abusiveexperiencereport', versionOrOptions, exports.VERSIONS, this);
|
||||
}
|
||||
exports.abusiveexperiencereport = abusiveexperiencereport;
|
||||
const auth = new googleapis_common_1.AuthPlus();
|
||||
exports.auth = auth;
|
||||
var googleapis_common_2 = require("googleapis-common");
|
||||
Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } });
|
||||
162
node_modules/googleapis/build/src/apis/abusiveexperiencereport/v1.d.ts
generated
vendored
Normal file
162
node_modules/googleapis/build/src/apis/abusiveexperiencereport/v1.d.ts
generated
vendored
Normal file
@@ -0,0 +1,162 @@
|
||||
/// <reference types="node" />
|
||||
import { OAuth2Client, JWT, Compute, UserRefreshClient, BaseExternalAccountClient, GaxiosPromise, GoogleConfigurable, MethodOptions, StreamMethodOptions, GlobalOptions, GoogleAuth, BodyResponseCallback, APIRequestContext } from 'googleapis-common';
|
||||
import { Readable } from 'stream';
|
||||
export declare namespace abusiveexperiencereport_v1 {
|
||||
export interface Options extends GlobalOptions {
|
||||
version: 'v1';
|
||||
}
|
||||
interface StandardParameters {
|
||||
/**
|
||||
* Auth client or API Key for the request
|
||||
*/
|
||||
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient | BaseExternalAccountClient | GoogleAuth;
|
||||
/**
|
||||
* 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
|
||||
* ```js
|
||||
* const {google} = require('googleapis');
|
||||
* const abusiveexperiencereport = google.abusiveexperiencereport('v1');
|
||||
* ```
|
||||
*/
|
||||
export class Abusiveexperiencereport {
|
||||
context: APIRequestContext;
|
||||
sites: Resource$Sites;
|
||||
violatingSites: Resource$Violatingsites;
|
||||
constructor(options: GlobalOptions, google?: GoogleConfigurable);
|
||||
}
|
||||
/**
|
||||
* Response message for GetSiteSummary.
|
||||
*/
|
||||
export interface Schema$SiteSummaryResponse {
|
||||
/**
|
||||
* The site's Abusive Experience Report status.
|
||||
*/
|
||||
abusiveStatus?: string | null;
|
||||
/**
|
||||
* The time at which [enforcement](https://support.google.com/webtools/answer/7538608) against the site began or will begin. Not set when the filter_status is OFF.
|
||||
*/
|
||||
enforcementTime?: string | null;
|
||||
/**
|
||||
* The site's [enforcement status](https://support.google.com/webtools/answer/7538608).
|
||||
*/
|
||||
filterStatus?: string | null;
|
||||
/**
|
||||
* The time at which the site's status last changed.
|
||||
*/
|
||||
lastChangeTime?: string | null;
|
||||
/**
|
||||
* A link to the full Abusive Experience Report for the site. Not set in ViolatingSitesResponse. Note that you must complete the [Search Console verification process](https://support.google.com/webmasters/answer/9008080) for the site before you can access the full report.
|
||||
*/
|
||||
reportUrl?: string | null;
|
||||
/**
|
||||
* The name of the reviewed site, e.g. `google.com`.
|
||||
*/
|
||||
reviewedSite?: string | null;
|
||||
/**
|
||||
* Whether the site is currently under review.
|
||||
*/
|
||||
underReview?: boolean | null;
|
||||
}
|
||||
/**
|
||||
* Response message for ListViolatingSites.
|
||||
*/
|
||||
export interface Schema$ViolatingSitesResponse {
|
||||
/**
|
||||
* The list of violating sites.
|
||||
*/
|
||||
violatingSites?: Schema$SiteSummaryResponse[];
|
||||
}
|
||||
export class Resource$Sites {
|
||||
context: APIRequestContext;
|
||||
constructor(context: APIRequestContext);
|
||||
/**
|
||||
* Gets a site's Abusive Experience Report summary.
|
||||
*
|
||||
* @param params - Parameters for request
|
||||
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param callback - Optional callback that handles the response.
|
||||
* @returns A promise if used with async/await, or void if used with a callback.
|
||||
*/
|
||||
get(params: Params$Resource$Sites$Get, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
||||
get(params?: Params$Resource$Sites$Get, options?: MethodOptions): GaxiosPromise<Schema$SiteSummaryResponse>;
|
||||
get(params: Params$Resource$Sites$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
||||
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;
|
||||
}
|
||||
export interface Params$Resource$Sites$Get extends StandardParameters {
|
||||
/**
|
||||
* Required. The name of the site whose summary to get, e.g. `sites/http%3A%2F%2Fwww.google.com%2F`. Format: `sites/{site\}`
|
||||
*/
|
||||
name?: string;
|
||||
}
|
||||
export class Resource$Violatingsites {
|
||||
context: APIRequestContext;
|
||||
constructor(context: APIRequestContext);
|
||||
/**
|
||||
* Lists sites that are failing in the Abusive Experience Report.
|
||||
*
|
||||
* @param params - Parameters for request
|
||||
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param callback - Optional callback that handles the response.
|
||||
* @returns A promise if used with async/await, or void if used with a callback.
|
||||
*/
|
||||
list(params: Params$Resource$Violatingsites$List, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
||||
list(params?: Params$Resource$Violatingsites$List, options?: MethodOptions): GaxiosPromise<Schema$ViolatingSitesResponse>;
|
||||
list(params: Params$Resource$Violatingsites$List, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
||||
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;
|
||||
}
|
||||
export interface Params$Resource$Violatingsites$List extends StandardParameters {
|
||||
}
|
||||
export {};
|
||||
}
|
||||
119
node_modules/googleapis/build/src/apis/abusiveexperiencereport/v1.js
generated
vendored
Normal file
119
node_modules/googleapis/build/src/apis/abusiveexperiencereport/v1.js
generated
vendored
Normal file
@@ -0,0 +1,119 @@
|
||||
"use strict";
|
||||
// Copyright 2020 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 });
|
||||
exports.abusiveexperiencereport_v1 = void 0;
|
||||
/* eslint-disable @typescript-eslint/no-explicit-any */
|
||||
/* eslint-disable @typescript-eslint/no-unused-vars */
|
||||
/* eslint-disable @typescript-eslint/no-empty-interface */
|
||||
/* eslint-disable @typescript-eslint/no-namespace */
|
||||
/* eslint-disable no-irregular-whitespace */
|
||||
const googleapis_common_1 = require("googleapis-common");
|
||||
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
|
||||
* ```js
|
||||
* const {google} = require('googleapis');
|
||||
* const abusiveexperiencereport = google.abusiveexperiencereport('v1');
|
||||
* ```
|
||||
*/
|
||||
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) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, 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) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, googleapis_common_1.createAPIRequest)(parameters);
|
||||
}
|
||||
}
|
||||
}
|
||||
abusiveexperiencereport_v1.Resource$Violatingsites = Resource$Violatingsites;
|
||||
})(abusiveexperiencereport_v1 || (exports.abusiveexperiencereport_v1 = abusiveexperiencereport_v1 = {}));
|
||||
12
node_modules/googleapis/build/src/apis/acceleratedmobilepageurl/index.d.ts
generated
vendored
Normal file
12
node_modules/googleapis/build/src/apis/acceleratedmobilepageurl/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
/*! 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 };
|
||||
export { acceleratedmobilepageurl_v1 };
|
||||
export { AuthPlus, GlobalOptions, APIRequestContext, GoogleConfigurable, StreamMethodOptions, GaxiosPromise, MethodOptions, BodyResponseCallback, } from 'googleapis-common';
|
||||
30
node_modules/googleapis/build/src/apis/acceleratedmobilepageurl/index.js
generated
vendored
Normal file
30
node_modules/googleapis/build/src/apis/acceleratedmobilepageurl/index.js
generated
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
"use strict";
|
||||
// Copyright 2020 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 });
|
||||
exports.AuthPlus = exports.acceleratedmobilepageurl_v1 = exports.auth = exports.acceleratedmobilepageurl = exports.VERSIONS = void 0;
|
||||
/*! THIS FILE IS AUTO-GENERATED */
|
||||
const googleapis_common_1 = require("googleapis-common");
|
||||
const v1_1 = require("./v1");
|
||||
Object.defineProperty(exports, "acceleratedmobilepageurl_v1", { enumerable: true, get: function () { return v1_1.acceleratedmobilepageurl_v1; } });
|
||||
exports.VERSIONS = {
|
||||
v1: v1_1.acceleratedmobilepageurl_v1.Acceleratedmobilepageurl,
|
||||
};
|
||||
function acceleratedmobilepageurl(versionOrOptions) {
|
||||
return (0, googleapis_common_1.getAPI)('acceleratedmobilepageurl', versionOrOptions, exports.VERSIONS, this);
|
||||
}
|
||||
exports.acceleratedmobilepageurl = acceleratedmobilepageurl;
|
||||
const auth = new googleapis_common_1.AuthPlus();
|
||||
exports.auth = auth;
|
||||
var googleapis_common_2 = require("googleapis-common");
|
||||
Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } });
|
||||
159
node_modules/googleapis/build/src/apis/acceleratedmobilepageurl/v1.d.ts
generated
vendored
Normal file
159
node_modules/googleapis/build/src/apis/acceleratedmobilepageurl/v1.d.ts
generated
vendored
Normal file
@@ -0,0 +1,159 @@
|
||||
/// <reference types="node" />
|
||||
import { OAuth2Client, JWT, Compute, UserRefreshClient, BaseExternalAccountClient, GaxiosPromise, GoogleConfigurable, MethodOptions, StreamMethodOptions, GlobalOptions, GoogleAuth, BodyResponseCallback, APIRequestContext } from 'googleapis-common';
|
||||
import { Readable } from 'stream';
|
||||
export declare namespace acceleratedmobilepageurl_v1 {
|
||||
export interface Options extends GlobalOptions {
|
||||
version: 'v1';
|
||||
}
|
||||
interface StandardParameters {
|
||||
/**
|
||||
* Auth client or API Key for the request
|
||||
*/
|
||||
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient | BaseExternalAccountClient | GoogleAuth;
|
||||
/**
|
||||
* 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
|
||||
* ```js
|
||||
* const {google} = require('googleapis');
|
||||
* const acceleratedmobilepageurl = google.acceleratedmobilepageurl('v1');
|
||||
* ```
|
||||
*/
|
||||
export class Acceleratedmobilepageurl {
|
||||
context: APIRequestContext;
|
||||
ampUrls: Resource$Ampurls;
|
||||
constructor(options: GlobalOptions, google?: GoogleConfigurable);
|
||||
}
|
||||
/**
|
||||
* AMP URL response for a requested URL.
|
||||
*/
|
||||
export interface Schema$AmpUrl {
|
||||
/**
|
||||
* The AMP URL pointing to the publisher's web server.
|
||||
*/
|
||||
ampUrl?: string | null;
|
||||
/**
|
||||
* The [AMP Cache URL](/amp/cache/overview#amp-cache-url-format) pointing to the cached document in the Google AMP Cache.
|
||||
*/
|
||||
cdnAmpUrl?: string | null;
|
||||
/**
|
||||
* The original non-AMP URL.
|
||||
*/
|
||||
originalUrl?: string | null;
|
||||
}
|
||||
/**
|
||||
* AMP URL Error resource for a requested URL that couldn't be found.
|
||||
*/
|
||||
export interface Schema$AmpUrlError {
|
||||
/**
|
||||
* The error code of an API call.
|
||||
*/
|
||||
errorCode?: string | null;
|
||||
/**
|
||||
* An optional descriptive error message.
|
||||
*/
|
||||
errorMessage?: string | null;
|
||||
/**
|
||||
* The original non-AMP URL.
|
||||
*/
|
||||
originalUrl?: string | null;
|
||||
}
|
||||
/**
|
||||
* AMP URL request for a batch of URLs.
|
||||
*/
|
||||
export interface Schema$BatchGetAmpUrlsRequest {
|
||||
/**
|
||||
* The lookup_strategy being requested.
|
||||
*/
|
||||
lookupStrategy?: string | null;
|
||||
/**
|
||||
* 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[] | null;
|
||||
}
|
||||
/**
|
||||
* Batch AMP URL response.
|
||||
*/
|
||||
export 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[];
|
||||
}
|
||||
export class Resource$Ampurls {
|
||||
context: APIRequestContext;
|
||||
constructor(context: APIRequestContext);
|
||||
/**
|
||||
* Returns AMP URL(s) and equivalent [AMP Cache URL(s)](/amp/cache/overview#amp-cache-url-format).
|
||||
*
|
||||
* @param params - Parameters for request
|
||||
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param callback - Optional callback that handles the response.
|
||||
* @returns A promise if used with async/await, or void if used with a callback.
|
||||
*/
|
||||
batchGet(params: Params$Resource$Ampurls$Batchget, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
||||
batchGet(params?: Params$Resource$Ampurls$Batchget, options?: MethodOptions): GaxiosPromise<Schema$BatchGetAmpUrlsResponse>;
|
||||
batchGet(params: Params$Resource$Ampurls$Batchget, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
||||
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;
|
||||
}
|
||||
export interface Params$Resource$Ampurls$Batchget extends StandardParameters {
|
||||
/**
|
||||
* Request body metadata
|
||||
*/
|
||||
requestBody?: Schema$BatchGetAmpUrlsRequest;
|
||||
}
|
||||
export {};
|
||||
}
|
||||
81
node_modules/googleapis/build/src/apis/acceleratedmobilepageurl/v1.js
generated
vendored
Normal file
81
node_modules/googleapis/build/src/apis/acceleratedmobilepageurl/v1.js
generated
vendored
Normal file
@@ -0,0 +1,81 @@
|
||||
"use strict";
|
||||
// Copyright 2020 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 });
|
||||
exports.acceleratedmobilepageurl_v1 = void 0;
|
||||
/* eslint-disable @typescript-eslint/no-explicit-any */
|
||||
/* eslint-disable @typescript-eslint/no-unused-vars */
|
||||
/* eslint-disable @typescript-eslint/no-empty-interface */
|
||||
/* eslint-disable @typescript-eslint/no-namespace */
|
||||
/* eslint-disable no-irregular-whitespace */
|
||||
const googleapis_common_1 = require("googleapis-common");
|
||||
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
|
||||
* ```js
|
||||
* const {google} = require('googleapis');
|
||||
* const acceleratedmobilepageurl = google.acceleratedmobilepageurl('v1');
|
||||
* ```
|
||||
*/
|
||||
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) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, googleapis_common_1.createAPIRequest)(parameters);
|
||||
}
|
||||
}
|
||||
}
|
||||
acceleratedmobilepageurl_v1.Resource$Ampurls = Resource$Ampurls;
|
||||
})(acceleratedmobilepageurl_v1 || (exports.acceleratedmobilepageurl_v1 = acceleratedmobilepageurl_v1 = {}));
|
||||
17
node_modules/googleapis/build/src/apis/accessapproval/index.d.ts
generated
vendored
Normal file
17
node_modules/googleapis/build/src/apis/accessapproval/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
/*! THIS FILE IS AUTO-GENERATED */
|
||||
import { AuthPlus } from 'googleapis-common';
|
||||
import { accessapproval_v1 } from './v1';
|
||||
import { accessapproval_v1beta1 } from './v1beta1';
|
||||
export declare const VERSIONS: {
|
||||
v1: typeof accessapproval_v1.Accessapproval;
|
||||
v1beta1: typeof accessapproval_v1beta1.Accessapproval;
|
||||
};
|
||||
export declare function accessapproval(version: 'v1'): accessapproval_v1.Accessapproval;
|
||||
export declare function accessapproval(options: accessapproval_v1.Options): accessapproval_v1.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 };
|
||||
export { accessapproval_v1 };
|
||||
export { accessapproval_v1beta1 };
|
||||
export { AuthPlus, GlobalOptions, APIRequestContext, GoogleConfigurable, StreamMethodOptions, GaxiosPromise, MethodOptions, BodyResponseCallback, } from 'googleapis-common';
|
||||
33
node_modules/googleapis/build/src/apis/accessapproval/index.js
generated
vendored
Normal file
33
node_modules/googleapis/build/src/apis/accessapproval/index.js
generated
vendored
Normal file
@@ -0,0 +1,33 @@
|
||||
"use strict";
|
||||
// Copyright 2020 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 });
|
||||
exports.AuthPlus = exports.accessapproval_v1beta1 = exports.accessapproval_v1 = exports.auth = exports.accessapproval = exports.VERSIONS = void 0;
|
||||
/*! THIS FILE IS AUTO-GENERATED */
|
||||
const googleapis_common_1 = require("googleapis-common");
|
||||
const v1_1 = require("./v1");
|
||||
Object.defineProperty(exports, "accessapproval_v1", { enumerable: true, get: function () { return v1_1.accessapproval_v1; } });
|
||||
const v1beta1_1 = require("./v1beta1");
|
||||
Object.defineProperty(exports, "accessapproval_v1beta1", { enumerable: true, get: function () { return v1beta1_1.accessapproval_v1beta1; } });
|
||||
exports.VERSIONS = {
|
||||
v1: v1_1.accessapproval_v1.Accessapproval,
|
||||
v1beta1: v1beta1_1.accessapproval_v1beta1.Accessapproval,
|
||||
};
|
||||
function accessapproval(versionOrOptions) {
|
||||
return (0, googleapis_common_1.getAPI)('accessapproval', versionOrOptions, exports.VERSIONS, this);
|
||||
}
|
||||
exports.accessapproval = accessapproval;
|
||||
const auth = new googleapis_common_1.AuthPlus();
|
||||
exports.auth = auth;
|
||||
var googleapis_common_2 = require("googleapis-common");
|
||||
Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } });
|
||||
976
node_modules/googleapis/build/src/apis/accessapproval/v1.d.ts
generated
vendored
Normal file
976
node_modules/googleapis/build/src/apis/accessapproval/v1.d.ts
generated
vendored
Normal file
@@ -0,0 +1,976 @@
|
||||
/// <reference types="node" />
|
||||
import { OAuth2Client, JWT, Compute, UserRefreshClient, BaseExternalAccountClient, GaxiosPromise, GoogleConfigurable, MethodOptions, StreamMethodOptions, GlobalOptions, GoogleAuth, BodyResponseCallback, APIRequestContext } from 'googleapis-common';
|
||||
import { Readable } from 'stream';
|
||||
export declare namespace accessapproval_v1 {
|
||||
export interface Options extends GlobalOptions {
|
||||
version: 'v1';
|
||||
}
|
||||
interface StandardParameters {
|
||||
/**
|
||||
* Auth client or API Key for the request
|
||||
*/
|
||||
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient | BaseExternalAccountClient | GoogleAuth;
|
||||
/**
|
||||
* 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
|
||||
* ```js
|
||||
* const {google} = require('googleapis');
|
||||
* const accessapproval = google.accessapproval('v1');
|
||||
* ```
|
||||
*/
|
||||
export class Accessapproval {
|
||||
context: APIRequestContext;
|
||||
folders: Resource$Folders;
|
||||
organizations: Resource$Organizations;
|
||||
projects: Resource$Projects;
|
||||
constructor(options: GlobalOptions, google?: GoogleConfigurable);
|
||||
}
|
||||
/**
|
||||
* Access Approval service account related to a project/folder/organization.
|
||||
*/
|
||||
export interface Schema$AccessApprovalServiceAccount {
|
||||
/**
|
||||
* Email address of the service account.
|
||||
*/
|
||||
accountEmail?: string | null;
|
||||
/**
|
||||
* The resource name of the Access Approval service account. Format is one of: * "projects/{project\}/serviceAccount" * "folders/{folder\}/serviceAccount" * "organizations/{organization\}/serviceAccount"
|
||||
*/
|
||||
name?: string | null;
|
||||
}
|
||||
/**
|
||||
* Settings on a Project/Folder/Organization related to Access Approval.
|
||||
*/
|
||||
export interface Schema$AccessApprovalSettings {
|
||||
/**
|
||||
* The asymmetric crypto key version to use for signing approval requests. Empty active_key_version indicates that a Google-managed key should be used for signing. This property will be ignored if set by an ancestor of this resource, and new non-empty values may not be set.
|
||||
*/
|
||||
activeKeyVersion?: string | null;
|
||||
/**
|
||||
* Output only. This field is read only (not settable via UpdateAccessApprovalSettings method). If the field is true, that indicates that an ancestor of this Project or Folder has set active_key_version (this field will always be unset for the organization since organizations do not have ancestors).
|
||||
*/
|
||||
ancestorHasActiveKeyVersion?: boolean | null;
|
||||
/**
|
||||
* Output only. This field is read only (not settable via UpdateAccessApprovalSettings method). If the field is true, that indicates that at least one service is enrolled for Access Approval in one or more ancestors of the Project or Folder (this field will always be unset for the organization since organizations do not have ancestors).
|
||||
*/
|
||||
enrolledAncestor?: boolean | null;
|
||||
/**
|
||||
* A list of Google Cloud Services for which the given resource has Access Approval enrolled. Access requests for the resource given by name against any of these services contained here will be required to have explicit approval. If name refers to an organization, enrollment can be done for individual services. If name refers to a folder or project, enrollment can only be done on an all or nothing basis. If a cloud_product is repeated in this list, the first entry will be honored and all following entries will be discarded. A maximum of 10 enrolled services will be enforced, to be expanded as the set of supported services is expanded.
|
||||
*/
|
||||
enrolledServices?: Schema$EnrolledService[];
|
||||
/**
|
||||
* Output only. This field is read only (not settable via UpdateAccessApprovalSettings method). If the field is true, that indicates that there is some configuration issue with the active_key_version configured at this level in the resource hierarchy (e.g. it doesn't exist or the Access Approval service account doesn't have the correct permissions on it, etc.) This key version is not necessarily the effective key version at this level, as key versions are inherited top-down.
|
||||
*/
|
||||
invalidKeyVersion?: boolean | null;
|
||||
/**
|
||||
* The resource name of the settings. Format is one of: * "projects/{project\}/accessApprovalSettings" * "folders/{folder\}/accessApprovalSettings" * "organizations/{organization\}/accessApprovalSettings"
|
||||
*/
|
||||
name?: string | null;
|
||||
/**
|
||||
* 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. A maximum of 50 email addresses are allowed.
|
||||
*/
|
||||
notificationEmails?: string[] | null;
|
||||
/**
|
||||
* Optional. A pubsub topic to which notifications relating to approval requests should be sent.
|
||||
*/
|
||||
notificationPubsubTopic?: string | null;
|
||||
/**
|
||||
* This preference is communicated to Google personnel when sending an approval request but can be overridden if necessary.
|
||||
*/
|
||||
preferNoBroadApprovalRequests?: boolean | null;
|
||||
/**
|
||||
* This preference is shared with Google personnel, but can be overridden if said personnel deems necessary. The approver ultimately can set the expiration at approval time.
|
||||
*/
|
||||
preferredRequestExpirationDays?: number | null;
|
||||
}
|
||||
/**
|
||||
* Home office and physical location of the principal.
|
||||
*/
|
||||
export 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: * ASI: Asia * EUR: Europe * OCE: Oceania * AFR: Africa * NAM: North America * SAM: South America * ANT: Antarctica * ANY: Any location
|
||||
*/
|
||||
principalOfficeCountry?: string | null;
|
||||
/**
|
||||
* 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: * ASI: Asia * EUR: Europe * OCE: Oceania * AFR: Africa * NAM: North America * SAM: South America * ANT: Antarctica * ANY: Any location
|
||||
*/
|
||||
principalPhysicalLocationCountry?: string | null;
|
||||
}
|
||||
export interface Schema$AccessReason {
|
||||
/**
|
||||
* More detail about certain reason types. See comments for each type above.
|
||||
*/
|
||||
detail?: string | null;
|
||||
/**
|
||||
* Type of access justification.
|
||||
*/
|
||||
type?: string | null;
|
||||
}
|
||||
/**
|
||||
* A request for the customer to approve access to a resource.
|
||||
*/
|
||||
export 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\}".
|
||||
*/
|
||||
name?: string | null;
|
||||
/**
|
||||
* 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 | null;
|
||||
/**
|
||||
* 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 | null;
|
||||
/**
|
||||
* Properties related to the resource represented by requested_resource_name.
|
||||
*/
|
||||
requestedResourceProperties?: Schema$ResourceProperties;
|
||||
/**
|
||||
* The time at which approval was requested.
|
||||
*/
|
||||
requestTime?: string | null;
|
||||
}
|
||||
/**
|
||||
* Request to approve an ApprovalRequest.
|
||||
*/
|
||||
export interface Schema$ApproveApprovalRequestMessage {
|
||||
/**
|
||||
* The expiration time of this approval.
|
||||
*/
|
||||
expireTime?: string | null;
|
||||
}
|
||||
/**
|
||||
* A decision that has been made to approve access to a resource.
|
||||
*/
|
||||
export interface Schema$ApproveDecision {
|
||||
/**
|
||||
* The time at which approval was granted.
|
||||
*/
|
||||
approveTime?: string | null;
|
||||
/**
|
||||
* True when the request has been auto-approved.
|
||||
*/
|
||||
autoApproved?: boolean | null;
|
||||
/**
|
||||
* The time at which the approval expires.
|
||||
*/
|
||||
expireTime?: string | null;
|
||||
/**
|
||||
* If set, denotes the timestamp at which the approval is invalidated.
|
||||
*/
|
||||
invalidateTime?: string | null;
|
||||
/**
|
||||
* The signature for the ApprovalRequest and details on how it was signed.
|
||||
*/
|
||||
signatureInfo?: Schema$SignatureInfo;
|
||||
}
|
||||
/**
|
||||
* Request to dismiss an approval request.
|
||||
*/
|
||||
export interface Schema$DismissApprovalRequestMessage {
|
||||
}
|
||||
/**
|
||||
* A decision that has been made to dismiss an approval request.
|
||||
*/
|
||||
export interface Schema$DismissDecision {
|
||||
/**
|
||||
* The time at which the approval request was dismissed.
|
||||
*/
|
||||
dismissTime?: string | null;
|
||||
/**
|
||||
* This field will be true if the ApprovalRequest was implicitly dismissed due to inaction by the access approval approvers (the request is not acted on by the approvers before the exiration time).
|
||||
*/
|
||||
implicit?: boolean | null;
|
||||
}
|
||||
/**
|
||||
* 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); \}
|
||||
*/
|
||||
export interface Schema$Empty {
|
||||
}
|
||||
/**
|
||||
* Represents the enrollment of a cloud resource into a specific service.
|
||||
*/
|
||||
export interface Schema$EnrolledService {
|
||||
/**
|
||||
* The product for which Access Approval will be enrolled. Allowed values are listed below (case-sensitive): * all * GA * App Engine * Artifact Registry * BigQuery * Certificate Authority Service * Cloud Bigtable * Cloud Key Management Service * Compute Engine * Cloud Composer * Cloud Dataflow * Cloud Dataproc * Cloud DLP * Cloud EKM * Cloud Firestore * Cloud HSM * Cloud Identity and Access Management * Cloud Logging * Cloud NAT * Cloud Pub/Sub * Cloud Spanner * Cloud SQL * Cloud Storage * Eventarc * Google Kubernetes Engine * Organization Policy Serivice * Persistent Disk * Resource Manager * Secret Manager * Speaker ID Note: These values are supported as input for legacy purposes, but will not be returned from the API. * all * ga-only * appengine.googleapis.com * artifactregistry.googleapis.com * bigquery.googleapis.com * bigtable.googleapis.com * container.googleapis.com * cloudkms.googleapis.com * cloudresourcemanager.googleapis.com * cloudsql.googleapis.com * compute.googleapis.com * dataflow.googleapis.com * dataproc.googleapis.com * dlp.googleapis.com * iam.googleapis.com * logging.googleapis.com * orgpolicy.googleapis.com * pubsub.googleapis.com * spanner.googleapis.com * secretmanager.googleapis.com * speakerid.googleapis.com * storage.googleapis.com Calls to UpdateAccessApprovalSettings using 'all' or any of the XXX.googleapis.com will be translated to the associated product name ('all', 'App Engine', etc.). Note: 'all' will enroll the resource in all products supported at both 'GA' and 'Preview' levels. More information about levels of support is available at https://cloud.google.com/access-approval/docs/supported-services
|
||||
*/
|
||||
cloudProduct?: string | null;
|
||||
/**
|
||||
* The enrollment level of the service.
|
||||
*/
|
||||
enrollmentLevel?: string | null;
|
||||
}
|
||||
/**
|
||||
* Request to invalidate an existing approval.
|
||||
*/
|
||||
export interface Schema$InvalidateApprovalRequestMessage {
|
||||
}
|
||||
/**
|
||||
* Response to listing of ApprovalRequest objects.
|
||||
*/
|
||||
export 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 | null;
|
||||
}
|
||||
/**
|
||||
* The properties associated with the resource of the request.
|
||||
*/
|
||||
export interface Schema$ResourceProperties {
|
||||
/**
|
||||
* Whether an approval will exclude the descendants of the resource being requested.
|
||||
*/
|
||||
excludesDescendants?: boolean | null;
|
||||
}
|
||||
/**
|
||||
* Information about the digital signature of the resource.
|
||||
*/
|
||||
export interface Schema$SignatureInfo {
|
||||
/**
|
||||
* The resource name of the customer CryptoKeyVersion used for signing.
|
||||
*/
|
||||
customerKmsKeyVersion?: string | null;
|
||||
/**
|
||||
* The public key for the Google default signing, encoded in PEM format. The signature was created using a private key which may be verified using this public key.
|
||||
*/
|
||||
googlePublicKeyPem?: string | null;
|
||||
/**
|
||||
* The digital signature.
|
||||
*/
|
||||
signature?: string | null;
|
||||
}
|
||||
export class Resource$Folders {
|
||||
context: APIRequestContext;
|
||||
approvalRequests: Resource$Folders$Approvalrequests;
|
||||
constructor(context: APIRequestContext);
|
||||
/**
|
||||
* Deletes the settings associated with a project, folder, or organization. This will have the effect of disabling Access Approval for the project, folder, or organization, but only if all ancestors also have Access Approval disabled. If Access Approval is enabled at a higher level of the hierarchy, then Access Approval will still be enabled at this level as the settings are inherited.
|
||||
*
|
||||
* @param params - Parameters for request
|
||||
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param callback - Optional callback that handles the response.
|
||||
* @returns A promise if used with async/await, or void if used with a callback.
|
||||
*/
|
||||
deleteAccessApprovalSettings(params: Params$Resource$Folders$Deleteaccessapprovalsettings, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
||||
deleteAccessApprovalSettings(params?: Params$Resource$Folders$Deleteaccessapprovalsettings, options?: MethodOptions): GaxiosPromise<Schema$Empty>;
|
||||
deleteAccessApprovalSettings(params: Params$Resource$Folders$Deleteaccessapprovalsettings, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
||||
deleteAccessApprovalSettings(params: Params$Resource$Folders$Deleteaccessapprovalsettings, options: MethodOptions | BodyResponseCallback<Schema$Empty>, callback: BodyResponseCallback<Schema$Empty>): void;
|
||||
deleteAccessApprovalSettings(params: Params$Resource$Folders$Deleteaccessapprovalsettings, callback: BodyResponseCallback<Schema$Empty>): void;
|
||||
deleteAccessApprovalSettings(callback: BodyResponseCallback<Schema$Empty>): void;
|
||||
/**
|
||||
* Gets the settings associated with a project, folder, or organization.
|
||||
*
|
||||
* @param params - Parameters for request
|
||||
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param callback - Optional callback that handles the response.
|
||||
* @returns A promise if used with async/await, or void if used with a callback.
|
||||
*/
|
||||
getAccessApprovalSettings(params: Params$Resource$Folders$Getaccessapprovalsettings, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
||||
getAccessApprovalSettings(params?: Params$Resource$Folders$Getaccessapprovalsettings, options?: MethodOptions): GaxiosPromise<Schema$AccessApprovalSettings>;
|
||||
getAccessApprovalSettings(params: Params$Resource$Folders$Getaccessapprovalsettings, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
||||
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;
|
||||
/**
|
||||
* Retrieves the service account that is used by Access Approval to access KMS keys for signing approved approval requests.
|
||||
*
|
||||
* @param params - Parameters for request
|
||||
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param callback - Optional callback that handles the response.
|
||||
* @returns A promise if used with async/await, or void if used with a callback.
|
||||
*/
|
||||
getServiceAccount(params: Params$Resource$Folders$Getserviceaccount, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
||||
getServiceAccount(params?: Params$Resource$Folders$Getserviceaccount, options?: MethodOptions): GaxiosPromise<Schema$AccessApprovalServiceAccount>;
|
||||
getServiceAccount(params: Params$Resource$Folders$Getserviceaccount, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
||||
getServiceAccount(params: Params$Resource$Folders$Getserviceaccount, options: MethodOptions | BodyResponseCallback<Schema$AccessApprovalServiceAccount>, callback: BodyResponseCallback<Schema$AccessApprovalServiceAccount>): void;
|
||||
getServiceAccount(params: Params$Resource$Folders$Getserviceaccount, callback: BodyResponseCallback<Schema$AccessApprovalServiceAccount>): void;
|
||||
getServiceAccount(callback: BodyResponseCallback<Schema$AccessApprovalServiceAccount>): void;
|
||||
/**
|
||||
* Updates the settings associated with a project, folder, or organization. Settings to update are determined by the value of field_mask.
|
||||
*
|
||||
* @param params - Parameters for request
|
||||
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param callback - Optional callback that handles the response.
|
||||
* @returns A promise if used with async/await, or void if used with a callback.
|
||||
*/
|
||||
updateAccessApprovalSettings(params: Params$Resource$Folders$Updateaccessapprovalsettings, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
||||
updateAccessApprovalSettings(params?: Params$Resource$Folders$Updateaccessapprovalsettings, options?: MethodOptions): GaxiosPromise<Schema$AccessApprovalSettings>;
|
||||
updateAccessApprovalSettings(params: Params$Resource$Folders$Updateaccessapprovalsettings, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
||||
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;
|
||||
}
|
||||
export interface Params$Resource$Folders$Deleteaccessapprovalsettings extends StandardParameters {
|
||||
/**
|
||||
* Name of the AccessApprovalSettings to delete.
|
||||
*/
|
||||
name?: string;
|
||||
}
|
||||
export interface Params$Resource$Folders$Getaccessapprovalsettings extends StandardParameters {
|
||||
/**
|
||||
* The name of the AccessApprovalSettings to retrieve. Format: "{projects|folders|organizations\}/{id\}/accessApprovalSettings"
|
||||
*/
|
||||
name?: string;
|
||||
}
|
||||
export interface Params$Resource$Folders$Getserviceaccount extends StandardParameters {
|
||||
/**
|
||||
* Name of the AccessApprovalServiceAccount to retrieve.
|
||||
*/
|
||||
name?: string;
|
||||
}
|
||||
export interface Params$Resource$Folders$Updateaccessapprovalsettings extends StandardParameters {
|
||||
/**
|
||||
* The resource name of the settings. Format is one of: * "projects/{project\}/accessApprovalSettings" * "folders/{folder\}/accessApprovalSettings" * "organizations/{organization\}/accessApprovalSettings"
|
||||
*/
|
||||
name?: string;
|
||||
/**
|
||||
* The update mask applies to the settings. Only the top level fields of AccessApprovalSettings (notification_emails & enrolled_services) are supported. For each field, if it is included, the currently stored value will be entirely overwritten with the value of the field passed in this request. For the `FieldMask` definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask If this field is left unset, only the notification_emails field will be updated.
|
||||
*/
|
||||
updateMask?: string;
|
||||
/**
|
||||
* Request body metadata
|
||||
*/
|
||||
requestBody?: Schema$AccessApprovalSettings;
|
||||
}
|
||||
export class Resource$Folders$Approvalrequests {
|
||||
context: APIRequestContext;
|
||||
constructor(context: APIRequestContext);
|
||||
/**
|
||||
* 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.
|
||||
*
|
||||
* @param params - Parameters for request
|
||||
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param callback - Optional callback that handles the response.
|
||||
* @returns A promise if used with async/await, or void if used with a callback.
|
||||
*/
|
||||
approve(params: Params$Resource$Folders$Approvalrequests$Approve, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
||||
approve(params?: Params$Resource$Folders$Approvalrequests$Approve, options?: MethodOptions): GaxiosPromise<Schema$ApprovalRequest>;
|
||||
approve(params: Params$Resource$Folders$Approvalrequests$Approve, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
||||
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;
|
||||
/**
|
||||
* 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.
|
||||
*
|
||||
* @param params - Parameters for request
|
||||
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param callback - Optional callback that handles the response.
|
||||
* @returns A promise if used with async/await, or void if used with a callback.
|
||||
*/
|
||||
dismiss(params: Params$Resource$Folders$Approvalrequests$Dismiss, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
||||
dismiss(params?: Params$Resource$Folders$Approvalrequests$Dismiss, options?: MethodOptions): GaxiosPromise<Schema$ApprovalRequest>;
|
||||
dismiss(params: Params$Resource$Folders$Approvalrequests$Dismiss, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
||||
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;
|
||||
/**
|
||||
* Gets an approval request. Returns NOT_FOUND if the request does not exist.
|
||||
*
|
||||
* @param params - Parameters for request
|
||||
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param callback - Optional callback that handles the response.
|
||||
* @returns A promise if used with async/await, or void if used with a callback.
|
||||
*/
|
||||
get(params: Params$Resource$Folders$Approvalrequests$Get, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
||||
get(params?: Params$Resource$Folders$Approvalrequests$Get, options?: MethodOptions): GaxiosPromise<Schema$ApprovalRequest>;
|
||||
get(params: Params$Resource$Folders$Approvalrequests$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
||||
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;
|
||||
/**
|
||||
* Invalidates an existing ApprovalRequest. Returns the updated ApprovalRequest. NOTE: This does not deny access to the resource if another request has been made and approved. It only invalidates a single approval. Returns FAILED_PRECONDITION if the request exists but is not in an approved state.
|
||||
*
|
||||
* @param params - Parameters for request
|
||||
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param callback - Optional callback that handles the response.
|
||||
* @returns A promise if used with async/await, or void if used with a callback.
|
||||
*/
|
||||
invalidate(params: Params$Resource$Folders$Approvalrequests$Invalidate, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
||||
invalidate(params?: Params$Resource$Folders$Approvalrequests$Invalidate, options?: MethodOptions): GaxiosPromise<Schema$ApprovalRequest>;
|
||||
invalidate(params: Params$Resource$Folders$Approvalrequests$Invalidate, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
||||
invalidate(params: Params$Resource$Folders$Approvalrequests$Invalidate, options: MethodOptions | BodyResponseCallback<Schema$ApprovalRequest>, callback: BodyResponseCallback<Schema$ApprovalRequest>): void;
|
||||
invalidate(params: Params$Resource$Folders$Approvalrequests$Invalidate, callback: BodyResponseCallback<Schema$ApprovalRequest>): void;
|
||||
invalidate(callback: BodyResponseCallback<Schema$ApprovalRequest>): void;
|
||||
/**
|
||||
* 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.
|
||||
*
|
||||
* @param params - Parameters for request
|
||||
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param callback - Optional callback that handles the response.
|
||||
* @returns A promise if used with async/await, or void if used with a callback.
|
||||
*/
|
||||
list(params: Params$Resource$Folders$Approvalrequests$List, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
||||
list(params?: Params$Resource$Folders$Approvalrequests$List, options?: MethodOptions): GaxiosPromise<Schema$ListApprovalRequestsResponse>;
|
||||
list(params: Params$Resource$Folders$Approvalrequests$List, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
||||
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;
|
||||
}
|
||||
export interface Params$Resource$Folders$Approvalrequests$Approve extends StandardParameters {
|
||||
/**
|
||||
* Name of the approval request to approve.
|
||||
*/
|
||||
name?: string;
|
||||
/**
|
||||
* Request body metadata
|
||||
*/
|
||||
requestBody?: Schema$ApproveApprovalRequestMessage;
|
||||
}
|
||||
export interface Params$Resource$Folders$Approvalrequests$Dismiss extends StandardParameters {
|
||||
/**
|
||||
* Name of the ApprovalRequest to dismiss.
|
||||
*/
|
||||
name?: string;
|
||||
/**
|
||||
* Request body metadata
|
||||
*/
|
||||
requestBody?: Schema$DismissApprovalRequestMessage;
|
||||
}
|
||||
export interface Params$Resource$Folders$Approvalrequests$Get extends StandardParameters {
|
||||
/**
|
||||
* The name of the approval request to retrieve. Format: "{projects|folders|organizations\}/{id\}/approvalRequests/{approval_request\}"
|
||||
*/
|
||||
name?: string;
|
||||
}
|
||||
export interface Params$Resource$Folders$Approvalrequests$Invalidate extends StandardParameters {
|
||||
/**
|
||||
* Name of the ApprovalRequest to invalidate.
|
||||
*/
|
||||
name?: string;
|
||||
/**
|
||||
* Request body metadata
|
||||
*/
|
||||
requestBody?: Schema$InvalidateApprovalRequestMessage;
|
||||
}
|
||||
export interface Params$Resource$Folders$Approvalrequests$List extends StandardParameters {
|
||||
/**
|
||||
* A filter on the type of approval requests to retrieve. Must be one of the following values: * [not set]: Requests that are pending or have active approvals. * ALL: All requests. * PENDING: Only pending requests. * ACTIVE: Only active (i.e. currently approved) requests. * DISMISSED: Only requests that have been dismissed, or requests that are not approved and past expiration. * EXPIRED: Only requests that have been approved, and the approval has expired. * HISTORY: Active, dismissed and expired requests.
|
||||
*/
|
||||
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\}", "folders/{folder\}", or "organizations/{organization\}".
|
||||
*/
|
||||
parent?: string;
|
||||
}
|
||||
export class Resource$Organizations {
|
||||
context: APIRequestContext;
|
||||
approvalRequests: Resource$Organizations$Approvalrequests;
|
||||
constructor(context: APIRequestContext);
|
||||
/**
|
||||
* Deletes the settings associated with a project, folder, or organization. This will have the effect of disabling Access Approval for the project, folder, or organization, but only if all ancestors also have Access Approval disabled. If Access Approval is enabled at a higher level of the hierarchy, then Access Approval will still be enabled at this level as the settings are inherited.
|
||||
*
|
||||
* @param params - Parameters for request
|
||||
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param callback - Optional callback that handles the response.
|
||||
* @returns A promise if used with async/await, or void if used with a callback.
|
||||
*/
|
||||
deleteAccessApprovalSettings(params: Params$Resource$Organizations$Deleteaccessapprovalsettings, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
||||
deleteAccessApprovalSettings(params?: Params$Resource$Organizations$Deleteaccessapprovalsettings, options?: MethodOptions): GaxiosPromise<Schema$Empty>;
|
||||
deleteAccessApprovalSettings(params: Params$Resource$Organizations$Deleteaccessapprovalsettings, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
||||
deleteAccessApprovalSettings(params: Params$Resource$Organizations$Deleteaccessapprovalsettings, options: MethodOptions | BodyResponseCallback<Schema$Empty>, callback: BodyResponseCallback<Schema$Empty>): void;
|
||||
deleteAccessApprovalSettings(params: Params$Resource$Organizations$Deleteaccessapprovalsettings, callback: BodyResponseCallback<Schema$Empty>): void;
|
||||
deleteAccessApprovalSettings(callback: BodyResponseCallback<Schema$Empty>): void;
|
||||
/**
|
||||
* Gets the settings associated with a project, folder, or organization.
|
||||
*
|
||||
* @param params - Parameters for request
|
||||
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param callback - Optional callback that handles the response.
|
||||
* @returns A promise if used with async/await, or void if used with a callback.
|
||||
*/
|
||||
getAccessApprovalSettings(params: Params$Resource$Organizations$Getaccessapprovalsettings, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
||||
getAccessApprovalSettings(params?: Params$Resource$Organizations$Getaccessapprovalsettings, options?: MethodOptions): GaxiosPromise<Schema$AccessApprovalSettings>;
|
||||
getAccessApprovalSettings(params: Params$Resource$Organizations$Getaccessapprovalsettings, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
||||
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;
|
||||
/**
|
||||
* Retrieves the service account that is used by Access Approval to access KMS keys for signing approved approval requests.
|
||||
*
|
||||
* @param params - Parameters for request
|
||||
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param callback - Optional callback that handles the response.
|
||||
* @returns A promise if used with async/await, or void if used with a callback.
|
||||
*/
|
||||
getServiceAccount(params: Params$Resource$Organizations$Getserviceaccount, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
||||
getServiceAccount(params?: Params$Resource$Organizations$Getserviceaccount, options?: MethodOptions): GaxiosPromise<Schema$AccessApprovalServiceAccount>;
|
||||
getServiceAccount(params: Params$Resource$Organizations$Getserviceaccount, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
||||
getServiceAccount(params: Params$Resource$Organizations$Getserviceaccount, options: MethodOptions | BodyResponseCallback<Schema$AccessApprovalServiceAccount>, callback: BodyResponseCallback<Schema$AccessApprovalServiceAccount>): void;
|
||||
getServiceAccount(params: Params$Resource$Organizations$Getserviceaccount, callback: BodyResponseCallback<Schema$AccessApprovalServiceAccount>): void;
|
||||
getServiceAccount(callback: BodyResponseCallback<Schema$AccessApprovalServiceAccount>): void;
|
||||
/**
|
||||
* Updates the settings associated with a project, folder, or organization. Settings to update are determined by the value of field_mask.
|
||||
*
|
||||
* @param params - Parameters for request
|
||||
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param callback - Optional callback that handles the response.
|
||||
* @returns A promise if used with async/await, or void if used with a callback.
|
||||
*/
|
||||
updateAccessApprovalSettings(params: Params$Resource$Organizations$Updateaccessapprovalsettings, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
||||
updateAccessApprovalSettings(params?: Params$Resource$Organizations$Updateaccessapprovalsettings, options?: MethodOptions): GaxiosPromise<Schema$AccessApprovalSettings>;
|
||||
updateAccessApprovalSettings(params: Params$Resource$Organizations$Updateaccessapprovalsettings, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
||||
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;
|
||||
}
|
||||
export interface Params$Resource$Organizations$Deleteaccessapprovalsettings extends StandardParameters {
|
||||
/**
|
||||
* Name of the AccessApprovalSettings to delete.
|
||||
*/
|
||||
name?: string;
|
||||
}
|
||||
export interface Params$Resource$Organizations$Getaccessapprovalsettings extends StandardParameters {
|
||||
/**
|
||||
* The name of the AccessApprovalSettings to retrieve. Format: "{projects|folders|organizations\}/{id\}/accessApprovalSettings"
|
||||
*/
|
||||
name?: string;
|
||||
}
|
||||
export interface Params$Resource$Organizations$Getserviceaccount extends StandardParameters {
|
||||
/**
|
||||
* Name of the AccessApprovalServiceAccount to retrieve.
|
||||
*/
|
||||
name?: string;
|
||||
}
|
||||
export interface Params$Resource$Organizations$Updateaccessapprovalsettings extends StandardParameters {
|
||||
/**
|
||||
* The resource name of the settings. Format is one of: * "projects/{project\}/accessApprovalSettings" * "folders/{folder\}/accessApprovalSettings" * "organizations/{organization\}/accessApprovalSettings"
|
||||
*/
|
||||
name?: string;
|
||||
/**
|
||||
* The update mask applies to the settings. Only the top level fields of AccessApprovalSettings (notification_emails & enrolled_services) are supported. For each field, if it is included, the currently stored value will be entirely overwritten with the value of the field passed in this request. For the `FieldMask` definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask If this field is left unset, only the notification_emails field will be updated.
|
||||
*/
|
||||
updateMask?: string;
|
||||
/**
|
||||
* Request body metadata
|
||||
*/
|
||||
requestBody?: Schema$AccessApprovalSettings;
|
||||
}
|
||||
export class Resource$Organizations$Approvalrequests {
|
||||
context: APIRequestContext;
|
||||
constructor(context: APIRequestContext);
|
||||
/**
|
||||
* 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.
|
||||
*
|
||||
* @param params - Parameters for request
|
||||
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param callback - Optional callback that handles the response.
|
||||
* @returns A promise if used with async/await, or void if used with a callback.
|
||||
*/
|
||||
approve(params: Params$Resource$Organizations$Approvalrequests$Approve, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
||||
approve(params?: Params$Resource$Organizations$Approvalrequests$Approve, options?: MethodOptions): GaxiosPromise<Schema$ApprovalRequest>;
|
||||
approve(params: Params$Resource$Organizations$Approvalrequests$Approve, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
||||
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;
|
||||
/**
|
||||
* 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.
|
||||
*
|
||||
* @param params - Parameters for request
|
||||
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param callback - Optional callback that handles the response.
|
||||
* @returns A promise if used with async/await, or void if used with a callback.
|
||||
*/
|
||||
dismiss(params: Params$Resource$Organizations$Approvalrequests$Dismiss, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
||||
dismiss(params?: Params$Resource$Organizations$Approvalrequests$Dismiss, options?: MethodOptions): GaxiosPromise<Schema$ApprovalRequest>;
|
||||
dismiss(params: Params$Resource$Organizations$Approvalrequests$Dismiss, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
||||
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;
|
||||
/**
|
||||
* Gets an approval request. Returns NOT_FOUND if the request does not exist.
|
||||
*
|
||||
* @param params - Parameters for request
|
||||
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param callback - Optional callback that handles the response.
|
||||
* @returns A promise if used with async/await, or void if used with a callback.
|
||||
*/
|
||||
get(params: Params$Resource$Organizations$Approvalrequests$Get, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
||||
get(params?: Params$Resource$Organizations$Approvalrequests$Get, options?: MethodOptions): GaxiosPromise<Schema$ApprovalRequest>;
|
||||
get(params: Params$Resource$Organizations$Approvalrequests$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
||||
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;
|
||||
/**
|
||||
* Invalidates an existing ApprovalRequest. Returns the updated ApprovalRequest. NOTE: This does not deny access to the resource if another request has been made and approved. It only invalidates a single approval. Returns FAILED_PRECONDITION if the request exists but is not in an approved state.
|
||||
*
|
||||
* @param params - Parameters for request
|
||||
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param callback - Optional callback that handles the response.
|
||||
* @returns A promise if used with async/await, or void if used with a callback.
|
||||
*/
|
||||
invalidate(params: Params$Resource$Organizations$Approvalrequests$Invalidate, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
||||
invalidate(params?: Params$Resource$Organizations$Approvalrequests$Invalidate, options?: MethodOptions): GaxiosPromise<Schema$ApprovalRequest>;
|
||||
invalidate(params: Params$Resource$Organizations$Approvalrequests$Invalidate, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
||||
invalidate(params: Params$Resource$Organizations$Approvalrequests$Invalidate, options: MethodOptions | BodyResponseCallback<Schema$ApprovalRequest>, callback: BodyResponseCallback<Schema$ApprovalRequest>): void;
|
||||
invalidate(params: Params$Resource$Organizations$Approvalrequests$Invalidate, callback: BodyResponseCallback<Schema$ApprovalRequest>): void;
|
||||
invalidate(callback: BodyResponseCallback<Schema$ApprovalRequest>): void;
|
||||
/**
|
||||
* 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.
|
||||
*
|
||||
* @param params - Parameters for request
|
||||
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param callback - Optional callback that handles the response.
|
||||
* @returns A promise if used with async/await, or void if used with a callback.
|
||||
*/
|
||||
list(params: Params$Resource$Organizations$Approvalrequests$List, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
||||
list(params?: Params$Resource$Organizations$Approvalrequests$List, options?: MethodOptions): GaxiosPromise<Schema$ListApprovalRequestsResponse>;
|
||||
list(params: Params$Resource$Organizations$Approvalrequests$List, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
||||
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;
|
||||
}
|
||||
export interface Params$Resource$Organizations$Approvalrequests$Approve extends StandardParameters {
|
||||
/**
|
||||
* Name of the approval request to approve.
|
||||
*/
|
||||
name?: string;
|
||||
/**
|
||||
* Request body metadata
|
||||
*/
|
||||
requestBody?: Schema$ApproveApprovalRequestMessage;
|
||||
}
|
||||
export interface Params$Resource$Organizations$Approvalrequests$Dismiss extends StandardParameters {
|
||||
/**
|
||||
* Name of the ApprovalRequest to dismiss.
|
||||
*/
|
||||
name?: string;
|
||||
/**
|
||||
* Request body metadata
|
||||
*/
|
||||
requestBody?: Schema$DismissApprovalRequestMessage;
|
||||
}
|
||||
export interface Params$Resource$Organizations$Approvalrequests$Get extends StandardParameters {
|
||||
/**
|
||||
* The name of the approval request to retrieve. Format: "{projects|folders|organizations\}/{id\}/approvalRequests/{approval_request\}"
|
||||
*/
|
||||
name?: string;
|
||||
}
|
||||
export interface Params$Resource$Organizations$Approvalrequests$Invalidate extends StandardParameters {
|
||||
/**
|
||||
* Name of the ApprovalRequest to invalidate.
|
||||
*/
|
||||
name?: string;
|
||||
/**
|
||||
* Request body metadata
|
||||
*/
|
||||
requestBody?: Schema$InvalidateApprovalRequestMessage;
|
||||
}
|
||||
export interface Params$Resource$Organizations$Approvalrequests$List extends StandardParameters {
|
||||
/**
|
||||
* A filter on the type of approval requests to retrieve. Must be one of the following values: * [not set]: Requests that are pending or have active approvals. * ALL: All requests. * PENDING: Only pending requests. * ACTIVE: Only active (i.e. currently approved) requests. * DISMISSED: Only requests that have been dismissed, or requests that are not approved and past expiration. * EXPIRED: Only requests that have been approved, and the approval has expired. * HISTORY: Active, dismissed and expired requests.
|
||||
*/
|
||||
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\}", "folders/{folder\}", or "organizations/{organization\}".
|
||||
*/
|
||||
parent?: string;
|
||||
}
|
||||
export class Resource$Projects {
|
||||
context: APIRequestContext;
|
||||
approvalRequests: Resource$Projects$Approvalrequests;
|
||||
constructor(context: APIRequestContext);
|
||||
/**
|
||||
* Deletes the settings associated with a project, folder, or organization. This will have the effect of disabling Access Approval for the project, folder, or organization, but only if all ancestors also have Access Approval disabled. If Access Approval is enabled at a higher level of the hierarchy, then Access Approval will still be enabled at this level as the settings are inherited.
|
||||
*
|
||||
* @param params - Parameters for request
|
||||
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param callback - Optional callback that handles the response.
|
||||
* @returns A promise if used with async/await, or void if used with a callback.
|
||||
*/
|
||||
deleteAccessApprovalSettings(params: Params$Resource$Projects$Deleteaccessapprovalsettings, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
||||
deleteAccessApprovalSettings(params?: Params$Resource$Projects$Deleteaccessapprovalsettings, options?: MethodOptions): GaxiosPromise<Schema$Empty>;
|
||||
deleteAccessApprovalSettings(params: Params$Resource$Projects$Deleteaccessapprovalsettings, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
||||
deleteAccessApprovalSettings(params: Params$Resource$Projects$Deleteaccessapprovalsettings, options: MethodOptions | BodyResponseCallback<Schema$Empty>, callback: BodyResponseCallback<Schema$Empty>): void;
|
||||
deleteAccessApprovalSettings(params: Params$Resource$Projects$Deleteaccessapprovalsettings, callback: BodyResponseCallback<Schema$Empty>): void;
|
||||
deleteAccessApprovalSettings(callback: BodyResponseCallback<Schema$Empty>): void;
|
||||
/**
|
||||
* Gets the settings associated with a project, folder, or organization.
|
||||
*
|
||||
* @param params - Parameters for request
|
||||
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param callback - Optional callback that handles the response.
|
||||
* @returns A promise if used with async/await, or void if used with a callback.
|
||||
*/
|
||||
getAccessApprovalSettings(params: Params$Resource$Projects$Getaccessapprovalsettings, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
||||
getAccessApprovalSettings(params?: Params$Resource$Projects$Getaccessapprovalsettings, options?: MethodOptions): GaxiosPromise<Schema$AccessApprovalSettings>;
|
||||
getAccessApprovalSettings(params: Params$Resource$Projects$Getaccessapprovalsettings, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
||||
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;
|
||||
/**
|
||||
* Retrieves the service account that is used by Access Approval to access KMS keys for signing approved approval requests.
|
||||
*
|
||||
* @param params - Parameters for request
|
||||
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param callback - Optional callback that handles the response.
|
||||
* @returns A promise if used with async/await, or void if used with a callback.
|
||||
*/
|
||||
getServiceAccount(params: Params$Resource$Projects$Getserviceaccount, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
||||
getServiceAccount(params?: Params$Resource$Projects$Getserviceaccount, options?: MethodOptions): GaxiosPromise<Schema$AccessApprovalServiceAccount>;
|
||||
getServiceAccount(params: Params$Resource$Projects$Getserviceaccount, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
||||
getServiceAccount(params: Params$Resource$Projects$Getserviceaccount, options: MethodOptions | BodyResponseCallback<Schema$AccessApprovalServiceAccount>, callback: BodyResponseCallback<Schema$AccessApprovalServiceAccount>): void;
|
||||
getServiceAccount(params: Params$Resource$Projects$Getserviceaccount, callback: BodyResponseCallback<Schema$AccessApprovalServiceAccount>): void;
|
||||
getServiceAccount(callback: BodyResponseCallback<Schema$AccessApprovalServiceAccount>): void;
|
||||
/**
|
||||
* Updates the settings associated with a project, folder, or organization. Settings to update are determined by the value of field_mask.
|
||||
*
|
||||
* @param params - Parameters for request
|
||||
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param callback - Optional callback that handles the response.
|
||||
* @returns A promise if used with async/await, or void if used with a callback.
|
||||
*/
|
||||
updateAccessApprovalSettings(params: Params$Resource$Projects$Updateaccessapprovalsettings, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
||||
updateAccessApprovalSettings(params?: Params$Resource$Projects$Updateaccessapprovalsettings, options?: MethodOptions): GaxiosPromise<Schema$AccessApprovalSettings>;
|
||||
updateAccessApprovalSettings(params: Params$Resource$Projects$Updateaccessapprovalsettings, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
||||
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;
|
||||
}
|
||||
export interface Params$Resource$Projects$Deleteaccessapprovalsettings extends StandardParameters {
|
||||
/**
|
||||
* Name of the AccessApprovalSettings to delete.
|
||||
*/
|
||||
name?: string;
|
||||
}
|
||||
export interface Params$Resource$Projects$Getaccessapprovalsettings extends StandardParameters {
|
||||
/**
|
||||
* The name of the AccessApprovalSettings to retrieve. Format: "{projects|folders|organizations\}/{id\}/accessApprovalSettings"
|
||||
*/
|
||||
name?: string;
|
||||
}
|
||||
export interface Params$Resource$Projects$Getserviceaccount extends StandardParameters {
|
||||
/**
|
||||
* Name of the AccessApprovalServiceAccount to retrieve.
|
||||
*/
|
||||
name?: string;
|
||||
}
|
||||
export interface Params$Resource$Projects$Updateaccessapprovalsettings extends StandardParameters {
|
||||
/**
|
||||
* The resource name of the settings. Format is one of: * "projects/{project\}/accessApprovalSettings" * "folders/{folder\}/accessApprovalSettings" * "organizations/{organization\}/accessApprovalSettings"
|
||||
*/
|
||||
name?: string;
|
||||
/**
|
||||
* The update mask applies to the settings. Only the top level fields of AccessApprovalSettings (notification_emails & enrolled_services) are supported. For each field, if it is included, the currently stored value will be entirely overwritten with the value of the field passed in this request. For the `FieldMask` definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask If this field is left unset, only the notification_emails field will be updated.
|
||||
*/
|
||||
updateMask?: string;
|
||||
/**
|
||||
* Request body metadata
|
||||
*/
|
||||
requestBody?: Schema$AccessApprovalSettings;
|
||||
}
|
||||
export class Resource$Projects$Approvalrequests {
|
||||
context: APIRequestContext;
|
||||
constructor(context: APIRequestContext);
|
||||
/**
|
||||
* 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.
|
||||
*
|
||||
* @param params - Parameters for request
|
||||
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param callback - Optional callback that handles the response.
|
||||
* @returns A promise if used with async/await, or void if used with a callback.
|
||||
*/
|
||||
approve(params: Params$Resource$Projects$Approvalrequests$Approve, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
||||
approve(params?: Params$Resource$Projects$Approvalrequests$Approve, options?: MethodOptions): GaxiosPromise<Schema$ApprovalRequest>;
|
||||
approve(params: Params$Resource$Projects$Approvalrequests$Approve, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
||||
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;
|
||||
/**
|
||||
* 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.
|
||||
*
|
||||
* @param params - Parameters for request
|
||||
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param callback - Optional callback that handles the response.
|
||||
* @returns A promise if used with async/await, or void if used with a callback.
|
||||
*/
|
||||
dismiss(params: Params$Resource$Projects$Approvalrequests$Dismiss, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
||||
dismiss(params?: Params$Resource$Projects$Approvalrequests$Dismiss, options?: MethodOptions): GaxiosPromise<Schema$ApprovalRequest>;
|
||||
dismiss(params: Params$Resource$Projects$Approvalrequests$Dismiss, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
||||
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;
|
||||
/**
|
||||
* Gets an approval request. Returns NOT_FOUND if the request does not exist.
|
||||
*
|
||||
* @param params - Parameters for request
|
||||
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param callback - Optional callback that handles the response.
|
||||
* @returns A promise if used with async/await, or void if used with a callback.
|
||||
*/
|
||||
get(params: Params$Resource$Projects$Approvalrequests$Get, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
||||
get(params?: Params$Resource$Projects$Approvalrequests$Get, options?: MethodOptions): GaxiosPromise<Schema$ApprovalRequest>;
|
||||
get(params: Params$Resource$Projects$Approvalrequests$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
||||
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;
|
||||
/**
|
||||
* Invalidates an existing ApprovalRequest. Returns the updated ApprovalRequest. NOTE: This does not deny access to the resource if another request has been made and approved. It only invalidates a single approval. Returns FAILED_PRECONDITION if the request exists but is not in an approved state.
|
||||
*
|
||||
* @param params - Parameters for request
|
||||
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param callback - Optional callback that handles the response.
|
||||
* @returns A promise if used with async/await, or void if used with a callback.
|
||||
*/
|
||||
invalidate(params: Params$Resource$Projects$Approvalrequests$Invalidate, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
||||
invalidate(params?: Params$Resource$Projects$Approvalrequests$Invalidate, options?: MethodOptions): GaxiosPromise<Schema$ApprovalRequest>;
|
||||
invalidate(params: Params$Resource$Projects$Approvalrequests$Invalidate, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
||||
invalidate(params: Params$Resource$Projects$Approvalrequests$Invalidate, options: MethodOptions | BodyResponseCallback<Schema$ApprovalRequest>, callback: BodyResponseCallback<Schema$ApprovalRequest>): void;
|
||||
invalidate(params: Params$Resource$Projects$Approvalrequests$Invalidate, callback: BodyResponseCallback<Schema$ApprovalRequest>): void;
|
||||
invalidate(callback: BodyResponseCallback<Schema$ApprovalRequest>): void;
|
||||
/**
|
||||
* 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.
|
||||
*
|
||||
* @param params - Parameters for request
|
||||
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param callback - Optional callback that handles the response.
|
||||
* @returns A promise if used with async/await, or void if used with a callback.
|
||||
*/
|
||||
list(params: Params$Resource$Projects$Approvalrequests$List, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
||||
list(params?: Params$Resource$Projects$Approvalrequests$List, options?: MethodOptions): GaxiosPromise<Schema$ListApprovalRequestsResponse>;
|
||||
list(params: Params$Resource$Projects$Approvalrequests$List, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
||||
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;
|
||||
}
|
||||
export interface Params$Resource$Projects$Approvalrequests$Approve extends StandardParameters {
|
||||
/**
|
||||
* Name of the approval request to approve.
|
||||
*/
|
||||
name?: string;
|
||||
/**
|
||||
* Request body metadata
|
||||
*/
|
||||
requestBody?: Schema$ApproveApprovalRequestMessage;
|
||||
}
|
||||
export interface Params$Resource$Projects$Approvalrequests$Dismiss extends StandardParameters {
|
||||
/**
|
||||
* Name of the ApprovalRequest to dismiss.
|
||||
*/
|
||||
name?: string;
|
||||
/**
|
||||
* Request body metadata
|
||||
*/
|
||||
requestBody?: Schema$DismissApprovalRequestMessage;
|
||||
}
|
||||
export interface Params$Resource$Projects$Approvalrequests$Get extends StandardParameters {
|
||||
/**
|
||||
* The name of the approval request to retrieve. Format: "{projects|folders|organizations\}/{id\}/approvalRequests/{approval_request\}"
|
||||
*/
|
||||
name?: string;
|
||||
}
|
||||
export interface Params$Resource$Projects$Approvalrequests$Invalidate extends StandardParameters {
|
||||
/**
|
||||
* Name of the ApprovalRequest to invalidate.
|
||||
*/
|
||||
name?: string;
|
||||
/**
|
||||
* Request body metadata
|
||||
*/
|
||||
requestBody?: Schema$InvalidateApprovalRequestMessage;
|
||||
}
|
||||
export interface Params$Resource$Projects$Approvalrequests$List extends StandardParameters {
|
||||
/**
|
||||
* A filter on the type of approval requests to retrieve. Must be one of the following values: * [not set]: Requests that are pending or have active approvals. * ALL: All requests. * PENDING: Only pending requests. * ACTIVE: Only active (i.e. currently approved) requests. * DISMISSED: Only requests that have been dismissed, or requests that are not approved and past expiration. * EXPIRED: Only requests that have been approved, and the approval has expired. * HISTORY: Active, dismissed and expired requests.
|
||||
*/
|
||||
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\}", "folders/{folder\}", or "organizations/{organization\}".
|
||||
*/
|
||||
parent?: string;
|
||||
}
|
||||
export {};
|
||||
}
|
||||
926
node_modules/googleapis/build/src/apis/accessapproval/v1.js
generated
vendored
Normal file
926
node_modules/googleapis/build/src/apis/accessapproval/v1.js
generated
vendored
Normal file
@@ -0,0 +1,926 @@
|
||||
"use strict";
|
||||
// Copyright 2020 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 });
|
||||
exports.accessapproval_v1 = void 0;
|
||||
/* eslint-disable @typescript-eslint/no-explicit-any */
|
||||
/* eslint-disable @typescript-eslint/no-unused-vars */
|
||||
/* eslint-disable @typescript-eslint/no-empty-interface */
|
||||
/* eslint-disable @typescript-eslint/no-namespace */
|
||||
/* eslint-disable no-irregular-whitespace */
|
||||
const googleapis_common_1 = require("googleapis-common");
|
||||
var accessapproval_v1;
|
||||
(function (accessapproval_v1) {
|
||||
/**
|
||||
* Access Approval API
|
||||
*
|
||||
* An API for controlling access to data by Google personnel.
|
||||
*
|
||||
* @example
|
||||
* ```js
|
||||
* const {google} = require('googleapis');
|
||||
* const accessapproval = google.accessapproval('v1');
|
||||
* ```
|
||||
*/
|
||||
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_v1.Accessapproval = Accessapproval;
|
||||
class Resource$Folders {
|
||||
constructor(context) {
|
||||
this.context = context;
|
||||
this.approvalRequests = new Resource$Folders$Approvalrequests(this.context);
|
||||
}
|
||||
deleteAccessApprovalSettings(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 + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'DELETE',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: ['name'],
|
||||
pathParams: ['name'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, googleapis_common_1.createAPIRequest)(parameters);
|
||||
}
|
||||
}
|
||||
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 + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: ['name'],
|
||||
pathParams: ['name'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, googleapis_common_1.createAPIRequest)(parameters);
|
||||
}
|
||||
}
|
||||
getServiceAccount(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 + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: ['name'],
|
||||
pathParams: ['name'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, 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 + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'PATCH',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: ['name'],
|
||||
pathParams: ['name'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, googleapis_common_1.createAPIRequest)(parameters);
|
||||
}
|
||||
}
|
||||
}
|
||||
accessapproval_v1.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 + '/v1/{+name}:approve').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: ['name'],
|
||||
pathParams: ['name'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, 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 + '/v1/{+name}:dismiss').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: ['name'],
|
||||
pathParams: ['name'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, 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 + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: ['name'],
|
||||
pathParams: ['name'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, googleapis_common_1.createAPIRequest)(parameters);
|
||||
}
|
||||
}
|
||||
invalidate(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 + '/v1/{+name}:invalidate').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: ['name'],
|
||||
pathParams: ['name'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, 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 + '/v1/{+parent}/approvalRequests').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: ['parent'],
|
||||
pathParams: ['parent'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, googleapis_common_1.createAPIRequest)(parameters);
|
||||
}
|
||||
}
|
||||
}
|
||||
accessapproval_v1.Resource$Folders$Approvalrequests = Resource$Folders$Approvalrequests;
|
||||
class Resource$Organizations {
|
||||
constructor(context) {
|
||||
this.context = context;
|
||||
this.approvalRequests = new Resource$Organizations$Approvalrequests(this.context);
|
||||
}
|
||||
deleteAccessApprovalSettings(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 + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'DELETE',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: ['name'],
|
||||
pathParams: ['name'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, googleapis_common_1.createAPIRequest)(parameters);
|
||||
}
|
||||
}
|
||||
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 + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: ['name'],
|
||||
pathParams: ['name'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, googleapis_common_1.createAPIRequest)(parameters);
|
||||
}
|
||||
}
|
||||
getServiceAccount(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 + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: ['name'],
|
||||
pathParams: ['name'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, 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 + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'PATCH',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: ['name'],
|
||||
pathParams: ['name'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, googleapis_common_1.createAPIRequest)(parameters);
|
||||
}
|
||||
}
|
||||
}
|
||||
accessapproval_v1.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 + '/v1/{+name}:approve').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: ['name'],
|
||||
pathParams: ['name'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, 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 + '/v1/{+name}:dismiss').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: ['name'],
|
||||
pathParams: ['name'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, 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 + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: ['name'],
|
||||
pathParams: ['name'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, googleapis_common_1.createAPIRequest)(parameters);
|
||||
}
|
||||
}
|
||||
invalidate(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 + '/v1/{+name}:invalidate').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: ['name'],
|
||||
pathParams: ['name'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, 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 + '/v1/{+parent}/approvalRequests').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: ['parent'],
|
||||
pathParams: ['parent'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, googleapis_common_1.createAPIRequest)(parameters);
|
||||
}
|
||||
}
|
||||
}
|
||||
accessapproval_v1.Resource$Organizations$Approvalrequests = Resource$Organizations$Approvalrequests;
|
||||
class Resource$Projects {
|
||||
constructor(context) {
|
||||
this.context = context;
|
||||
this.approvalRequests = new Resource$Projects$Approvalrequests(this.context);
|
||||
}
|
||||
deleteAccessApprovalSettings(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 + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'DELETE',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: ['name'],
|
||||
pathParams: ['name'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, googleapis_common_1.createAPIRequest)(parameters);
|
||||
}
|
||||
}
|
||||
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 + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: ['name'],
|
||||
pathParams: ['name'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, googleapis_common_1.createAPIRequest)(parameters);
|
||||
}
|
||||
}
|
||||
getServiceAccount(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 + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: ['name'],
|
||||
pathParams: ['name'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, 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 + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'PATCH',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: ['name'],
|
||||
pathParams: ['name'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, googleapis_common_1.createAPIRequest)(parameters);
|
||||
}
|
||||
}
|
||||
}
|
||||
accessapproval_v1.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 + '/v1/{+name}:approve').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: ['name'],
|
||||
pathParams: ['name'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, 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 + '/v1/{+name}:dismiss').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: ['name'],
|
||||
pathParams: ['name'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, 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 + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: ['name'],
|
||||
pathParams: ['name'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, googleapis_common_1.createAPIRequest)(parameters);
|
||||
}
|
||||
}
|
||||
invalidate(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 + '/v1/{+name}:invalidate').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: ['name'],
|
||||
pathParams: ['name'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, 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 + '/v1/{+parent}/approvalRequests').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: ['parent'],
|
||||
pathParams: ['parent'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, googleapis_common_1.createAPIRequest)(parameters);
|
||||
}
|
||||
}
|
||||
}
|
||||
accessapproval_v1.Resource$Projects$Approvalrequests = Resource$Projects$Approvalrequests;
|
||||
})(accessapproval_v1 || (exports.accessapproval_v1 = accessapproval_v1 = {}));
|
||||
1958
node_modules/googleapis/build/src/apis/accessapproval/v1beta1.d.ts
generated
vendored
Normal file
1958
node_modules/googleapis/build/src/apis/accessapproval/v1beta1.d.ts
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
742
node_modules/googleapis/build/src/apis/accessapproval/v1beta1.js
generated
vendored
Normal file
742
node_modules/googleapis/build/src/apis/accessapproval/v1beta1.js
generated
vendored
Normal file
@@ -0,0 +1,742 @@
|
||||
"use strict";
|
||||
// Copyright 2020 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 });
|
||||
exports.accessapproval_v1beta1 = void 0;
|
||||
/* eslint-disable @typescript-eslint/no-explicit-any */
|
||||
/* eslint-disable @typescript-eslint/class-name-casing */
|
||||
/* eslint-disable @typescript-eslint/no-unused-vars */
|
||||
/* eslint-disable @typescript-eslint/no-empty-interface */
|
||||
/* eslint-disable @typescript-eslint/no-namespace */
|
||||
/* eslint-disable no-irregular-whitespace */
|
||||
const googleapis_common_1 = require("googleapis-common");
|
||||
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);
|
||||
}
|
||||
deleteAccessApprovalSettings(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: 'DELETE',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: ['name'],
|
||||
pathParams: ['name'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, googleapis_common_1.createAPIRequest)(parameters);
|
||||
}
|
||||
}
|
||||
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) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, 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) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, 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) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, 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) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, 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) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, 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) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, 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);
|
||||
}
|
||||
deleteAccessApprovalSettings(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: 'DELETE',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: ['name'],
|
||||
pathParams: ['name'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, googleapis_common_1.createAPIRequest)(parameters);
|
||||
}
|
||||
}
|
||||
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) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, 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) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, 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) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, 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) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, 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) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, 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) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, 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);
|
||||
}
|
||||
deleteAccessApprovalSettings(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: 'DELETE',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: ['name'],
|
||||
pathParams: ['name'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, googleapis_common_1.createAPIRequest)(parameters);
|
||||
}
|
||||
}
|
||||
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) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, 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) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, 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) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, 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) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, 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) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, 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) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, googleapis_common_1.createAPIRequest)(parameters);
|
||||
}
|
||||
}
|
||||
}
|
||||
accessapproval_v1beta1.Resource$Projects$Approvalrequests = Resource$Projects$Approvalrequests;
|
||||
})(accessapproval_v1beta1 || (exports.accessapproval_v1beta1 = accessapproval_v1beta1 = {}));
|
||||
17
node_modules/googleapis/build/src/apis/accesscontextmanager/index.d.ts
generated
vendored
Normal file
17
node_modules/googleapis/build/src/apis/accesscontextmanager/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
/*! 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 };
|
||||
export { accesscontextmanager_v1 };
|
||||
export { accesscontextmanager_v1beta };
|
||||
export { AuthPlus, GlobalOptions, APIRequestContext, GoogleConfigurable, StreamMethodOptions, GaxiosPromise, MethodOptions, BodyResponseCallback, } from 'googleapis-common';
|
||||
33
node_modules/googleapis/build/src/apis/accesscontextmanager/index.js
generated
vendored
Normal file
33
node_modules/googleapis/build/src/apis/accesscontextmanager/index.js
generated
vendored
Normal file
@@ -0,0 +1,33 @@
|
||||
"use strict";
|
||||
// Copyright 2020 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 });
|
||||
exports.AuthPlus = exports.accesscontextmanager_v1beta = exports.accesscontextmanager_v1 = exports.auth = exports.accesscontextmanager = exports.VERSIONS = void 0;
|
||||
/*! THIS FILE IS AUTO-GENERATED */
|
||||
const googleapis_common_1 = require("googleapis-common");
|
||||
const v1_1 = require("./v1");
|
||||
Object.defineProperty(exports, "accesscontextmanager_v1", { enumerable: true, get: function () { return v1_1.accesscontextmanager_v1; } });
|
||||
const v1beta_1 = require("./v1beta");
|
||||
Object.defineProperty(exports, "accesscontextmanager_v1beta", { enumerable: true, get: function () { return v1beta_1.accesscontextmanager_v1beta; } });
|
||||
exports.VERSIONS = {
|
||||
v1: v1_1.accesscontextmanager_v1.Accesscontextmanager,
|
||||
v1beta: v1beta_1.accesscontextmanager_v1beta.Accesscontextmanager,
|
||||
};
|
||||
function accesscontextmanager(versionOrOptions) {
|
||||
return (0, googleapis_common_1.getAPI)('accesscontextmanager', versionOrOptions, exports.VERSIONS, this);
|
||||
}
|
||||
exports.accesscontextmanager = accesscontextmanager;
|
||||
const auth = new googleapis_common_1.AuthPlus();
|
||||
exports.auth = auth;
|
||||
var googleapis_common_2 = require("googleapis-common");
|
||||
Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } });
|
||||
1779
node_modules/googleapis/build/src/apis/accesscontextmanager/v1.d.ts
generated
vendored
Normal file
1779
node_modules/googleapis/build/src/apis/accesscontextmanager/v1.d.ts
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1248
node_modules/googleapis/build/src/apis/accesscontextmanager/v1.js
generated
vendored
Normal file
1248
node_modules/googleapis/build/src/apis/accesscontextmanager/v1.js
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
793
node_modules/googleapis/build/src/apis/accesscontextmanager/v1beta.d.ts
generated
vendored
Normal file
793
node_modules/googleapis/build/src/apis/accesscontextmanager/v1beta.d.ts
generated
vendored
Normal file
@@ -0,0 +1,793 @@
|
||||
/// <reference types="node" />
|
||||
import { OAuth2Client, JWT, Compute, UserRefreshClient, BaseExternalAccountClient, GaxiosPromise, GoogleConfigurable, MethodOptions, StreamMethodOptions, GlobalOptions, GoogleAuth, BodyResponseCallback, APIRequestContext } from 'googleapis-common';
|
||||
import { Readable } from 'stream';
|
||||
export declare namespace accesscontextmanager_v1beta {
|
||||
export interface Options extends GlobalOptions {
|
||||
version: 'v1beta';
|
||||
}
|
||||
interface StandardParameters {
|
||||
/**
|
||||
* Auth client or API Key for the request
|
||||
*/
|
||||
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient | BaseExternalAccountClient | GoogleAuth;
|
||||
/**
|
||||
* 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 Google Cloud services.
|
||||
*
|
||||
* @example
|
||||
* ```js
|
||||
* const {google} = require('googleapis');
|
||||
* const accesscontextmanager = google.accesscontextmanager('v1beta');
|
||||
* ```
|
||||
*/
|
||||
export class Accesscontextmanager {
|
||||
context: APIRequestContext;
|
||||
accessPolicies: Resource$Accesspolicies;
|
||||
operations: Resource$Operations;
|
||||
constructor(options: GlobalOptions, google?: GoogleConfigurable);
|
||||
}
|
||||
/**
|
||||
* Metadata of Access Context Manager's Long Running Operations.
|
||||
*/
|
||||
export interface Schema$AccessContextManagerOperationMetadata {
|
||||
}
|
||||
/**
|
||||
* An `AccessLevel` is a label that can be applied to requests to Google Cloud services, along with a list of requirements necessary for the label to be applied.
|
||||
*/
|
||||
export interface Schema$AccessLevel {
|
||||
/**
|
||||
* A `BasicLevel` composed of `Conditions`.
|
||||
*/
|
||||
basic?: Schema$BasicLevel;
|
||||
/**
|
||||
* A `CustomLevel` written in the Common Expression Language.
|
||||
*/
|
||||
custom?: Schema$CustomLevel;
|
||||
/**
|
||||
* Description of the `AccessLevel` and its use. Does not affect behavior.
|
||||
*/
|
||||
description?: string | null;
|
||||
/**
|
||||
* Resource name for the `AccessLevel`. Format: `accessPolicies/{access_policy\}/accessLevels/{access_level\}`. The `access_level` component must begin with a letter, followed by alphanumeric characters or `_`. Its maximum length is 50 characters. After you create an `AccessLevel`, you cannot change its `name`.
|
||||
*/
|
||||
name?: string | null;
|
||||
/**
|
||||
* Human readable title. Must be unique within the Policy.
|
||||
*/
|
||||
title?: string | null;
|
||||
}
|
||||
/**
|
||||
* `AccessPolicy` is a container for `AccessLevels` (which define the necessary attributes to use Google Cloud 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.
|
||||
*/
|
||||
export interface Schema$AccessPolicy {
|
||||
/**
|
||||
* Output only. Resource name of the `AccessPolicy`. Format: `accessPolicies/{policy_id\}`
|
||||
*/
|
||||
name?: string | null;
|
||||
/**
|
||||
* Required. The parent of this `AccessPolicy` in the Cloud Resource Hierarchy. Currently immutable once created. Format: `organizations/{organization_id\}`
|
||||
*/
|
||||
parent?: string | null;
|
||||
/**
|
||||
* Required. Human readable title. Does not affect behavior.
|
||||
*/
|
||||
title?: string | null;
|
||||
}
|
||||
/**
|
||||
* `BasicLevel` is an `AccessLevel` using a set of recommended features.
|
||||
*/
|
||||
export 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 | null;
|
||||
/**
|
||||
* Required. A list of requirements for the `AccessLevel` to be granted.
|
||||
*/
|
||||
conditions?: Schema$Condition[];
|
||||
}
|
||||
/**
|
||||
* 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.
|
||||
*/
|
||||
export 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[] | null;
|
||||
/**
|
||||
* 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[] | null;
|
||||
/**
|
||||
* Whether to negate the Condition. If true, the Condition becomes a NAND over its non-empty fields. Any non-empty field criteria evaluating to false will result in the Condition to be satisfied. Defaults to false.
|
||||
*/
|
||||
negate?: boolean | null;
|
||||
/**
|
||||
* The request must originate from one of the provided countries/regions. Must be valid ISO 3166-1 alpha-2 codes.
|
||||
*/
|
||||
regions?: string[] | null;
|
||||
/**
|
||||
* 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[] | null;
|
||||
}
|
||||
/**
|
||||
* `CustomLevel` is an `AccessLevel` using the Cloud Common Expression Language to represent the necessary conditions for the level to apply to a request. See CEL spec at: https://github.com/google/cel-spec
|
||||
*/
|
||||
export interface Schema$CustomLevel {
|
||||
/**
|
||||
* Required. A Cloud CEL expression evaluating to a boolean.
|
||||
*/
|
||||
expr?: Schema$Expr;
|
||||
}
|
||||
/**
|
||||
* `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.
|
||||
*/
|
||||
export interface Schema$DevicePolicy {
|
||||
/**
|
||||
* Allowed device management levels, an empty list allows all management levels.
|
||||
*/
|
||||
allowedDeviceManagementLevels?: string[] | null;
|
||||
/**
|
||||
* Allowed encryptions statuses, an empty list allows all statuses.
|
||||
*/
|
||||
allowedEncryptionStatuses?: string[] | null;
|
||||
/**
|
||||
* 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 | null;
|
||||
/**
|
||||
* Whether the device needs to be corp owned.
|
||||
*/
|
||||
requireCorpOwned?: boolean | null;
|
||||
/**
|
||||
* Whether or not screenlock is required for the DevicePolicy to be true. Defaults to `false`.
|
||||
*/
|
||||
requireScreenlock?: boolean | null;
|
||||
}
|
||||
/**
|
||||
* Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec. Example (Comparison): title: "Summary size limit" description: "Determines if a summary is less than 100 chars" expression: "document.summary.size() < 100" Example (Equality): title: "Requestor is owner" description: "Determines if requestor is the document owner" expression: "document.owner == request.auth.claims.email" Example (Logic): title: "Public documents" description: "Determine whether the document should be publicly visible" expression: "document.type != 'private' && document.type != 'internal'" Example (Data Manipulation): title: "Notification string" description: "Create a notification string with a timestamp." expression: "'New message received at ' + string(document.create_time)" The exact variables and functions that may be referenced within an expression are determined by the service that evaluates it. See the service documentation for additional information.
|
||||
*/
|
||||
export interface Schema$Expr {
|
||||
/**
|
||||
* Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.
|
||||
*/
|
||||
description?: string | null;
|
||||
/**
|
||||
* Textual representation of an expression in Common Expression Language syntax.
|
||||
*/
|
||||
expression?: string | null;
|
||||
/**
|
||||
* Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file.
|
||||
*/
|
||||
location?: string | null;
|
||||
/**
|
||||
* Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression.
|
||||
*/
|
||||
title?: string | null;
|
||||
}
|
||||
/**
|
||||
* A response to `ListAccessLevelsRequest`.
|
||||
*/
|
||||
export 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 | null;
|
||||
}
|
||||
/**
|
||||
* A response to `ListAccessPoliciesRequest`.
|
||||
*/
|
||||
export 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 | null;
|
||||
}
|
||||
/**
|
||||
* A response to `ListServicePerimetersRequest`.
|
||||
*/
|
||||
export interface Schema$ListServicePerimetersResponse {
|
||||
/**
|
||||
* The pagination token to retrieve the next page of results. If the value is empty, no further results remain.
|
||||
*/
|
||||
nextPageToken?: string | null;
|
||||
/**
|
||||
* 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.
|
||||
*/
|
||||
export 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 | null;
|
||||
/**
|
||||
* 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;
|
||||
} | null;
|
||||
/**
|
||||
* 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 | null;
|
||||
/**
|
||||
* The normal, successful response of the operation. 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;
|
||||
} | null;
|
||||
}
|
||||
/**
|
||||
* A restriction on the OS type and version of devices making requests.
|
||||
*/
|
||||
export 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 | null;
|
||||
/**
|
||||
* Required. The allowed OS type.
|
||||
*/
|
||||
osType?: string | null;
|
||||
/**
|
||||
* Only allows requests from devices with a verified Chrome OS. Verifications includes requirements that the device is enterprise-managed, conformant to domain policies, and the caller has permission to call the API targeted by the request.
|
||||
*/
|
||||
requireVerifiedChromeOs?: boolean | null;
|
||||
}
|
||||
/**
|
||||
* `ServicePerimeter` describes a set of Google Cloud 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 Google Cloud project can only belong to a single regular Service Perimeter. Service Perimeter Bridges can contain only Google Cloud projects as members, a single Google Cloud project may belong to multiple Service Perimeter Bridges.
|
||||
*/
|
||||
export interface Schema$ServicePerimeter {
|
||||
/**
|
||||
* Description of the `ServicePerimeter` and its use. Does not affect behavior.
|
||||
*/
|
||||
description?: string | null;
|
||||
/**
|
||||
* Resource name for the `ServicePerimeter`. Format: `accessPolicies/{access_policy\}/servicePerimeters/{service_perimeter\}`. The `service_perimeter` component must begin with a letter, followed by alphanumeric characters or `_`. After you create a `ServicePerimeter`, you cannot change its `name`.
|
||||
*/
|
||||
name?: string | null;
|
||||
/**
|
||||
* 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 | null;
|
||||
/**
|
||||
* 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 | null;
|
||||
}
|
||||
/**
|
||||
* `ServicePerimeterConfig` specifies a set of Google Cloud resources that describe specific Service Perimeter configuration.
|
||||
*/
|
||||
export 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 Google Cloud calls with request origins within the perimeter. Example: `"accessPolicies/MY_POLICY/accessLevels/MY_LEVEL"`. For Service Perimeter Bridge, must be empty.
|
||||
*/
|
||||
accessLevels?: string[] | null;
|
||||
/**
|
||||
* A list of Google Cloud resources that are inside of the service perimeter. Currently only projects are allowed. Format: `projects/{project_number\}`
|
||||
*/
|
||||
resources?: string[] | null;
|
||||
/**
|
||||
* Google Cloud 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[] | null;
|
||||
/**
|
||||
* Google Cloud 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[] | null;
|
||||
/**
|
||||
* Beta. Configuration for APIs allowed within Perimeter.
|
||||
*/
|
||||
vpcAccessibleServices?: Schema$VpcAccessibleServices;
|
||||
}
|
||||
/**
|
||||
* 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).
|
||||
*/
|
||||
export interface Schema$Status {
|
||||
/**
|
||||
* The status code, which should be an enum value of google.rpc.Code.
|
||||
*/
|
||||
code?: number | null;
|
||||
/**
|
||||
* 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;
|
||||
}> | null;
|
||||
/**
|
||||
* 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 | null;
|
||||
}
|
||||
/**
|
||||
* Specifies how APIs are allowed to communicate within the Service Perimeter.
|
||||
*/
|
||||
export interface Schema$VpcAccessibleServices {
|
||||
/**
|
||||
* The list of APIs usable within the Service Perimeter. Must be empty unless 'enable_restriction' is True. You can specify a list of individual services, as well as include the 'RESTRICTED-SERVICES' value, which automatically includes all of the services protected by the perimeter.
|
||||
*/
|
||||
allowedServices?: string[] | null;
|
||||
/**
|
||||
* Whether to restrict API calls within the Service Perimeter to the list of APIs specified in 'allowed_services'.
|
||||
*/
|
||||
enableRestriction?: boolean | null;
|
||||
}
|
||||
export class Resource$Accesspolicies {
|
||||
context: APIRequestContext;
|
||||
accessLevels: Resource$Accesspolicies$Accesslevels;
|
||||
servicePerimeters: Resource$Accesspolicies$Serviceperimeters;
|
||||
constructor(context: APIRequestContext);
|
||||
/**
|
||||
* 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.
|
||||
*
|
||||
* @param params - Parameters for request
|
||||
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param callback - Optional callback that handles the response.
|
||||
* @returns A promise if used with async/await, or void if used with a callback.
|
||||
*/
|
||||
create(params: Params$Resource$Accesspolicies$Create, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
||||
create(params?: Params$Resource$Accesspolicies$Create, options?: MethodOptions): GaxiosPromise<Schema$Operation>;
|
||||
create(params: Params$Resource$Accesspolicies$Create, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
||||
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;
|
||||
/**
|
||||
* Delete an AccessPolicy by resource name. The longrunning Operation will have a successful status once the AccessPolicy has been removed from long-lasting storage.
|
||||
*
|
||||
* @param params - Parameters for request
|
||||
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param callback - Optional callback that handles the response.
|
||||
* @returns A promise if used with async/await, or void if used with a callback.
|
||||
*/
|
||||
delete(params: Params$Resource$Accesspolicies$Delete, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
||||
delete(params?: Params$Resource$Accesspolicies$Delete, options?: MethodOptions): GaxiosPromise<Schema$Operation>;
|
||||
delete(params: Params$Resource$Accesspolicies$Delete, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
||||
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;
|
||||
/**
|
||||
* Get an AccessPolicy by name.
|
||||
*
|
||||
* @param params - Parameters for request
|
||||
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param callback - Optional callback that handles the response.
|
||||
* @returns A promise if used with async/await, or void if used with a callback.
|
||||
*/
|
||||
get(params: Params$Resource$Accesspolicies$Get, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
||||
get(params?: Params$Resource$Accesspolicies$Get, options?: MethodOptions): GaxiosPromise<Schema$AccessPolicy>;
|
||||
get(params: Params$Resource$Accesspolicies$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
||||
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;
|
||||
/**
|
||||
* List all AccessPolicies under a container.
|
||||
*
|
||||
* @param params - Parameters for request
|
||||
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param callback - Optional callback that handles the response.
|
||||
* @returns A promise if used with async/await, or void if used with a callback.
|
||||
*/
|
||||
list(params: Params$Resource$Accesspolicies$List, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
||||
list(params?: Params$Resource$Accesspolicies$List, options?: MethodOptions): GaxiosPromise<Schema$ListAccessPoliciesResponse>;
|
||||
list(params: Params$Resource$Accesspolicies$List, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
||||
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;
|
||||
/**
|
||||
* 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.
|
||||
*
|
||||
* @param params - Parameters for request
|
||||
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param callback - Optional callback that handles the response.
|
||||
* @returns A promise if used with async/await, or void if used with a callback.
|
||||
*/
|
||||
patch(params: Params$Resource$Accesspolicies$Patch, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
||||
patch(params?: Params$Resource$Accesspolicies$Patch, options?: MethodOptions): GaxiosPromise<Schema$Operation>;
|
||||
patch(params: Params$Resource$Accesspolicies$Patch, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
||||
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;
|
||||
}
|
||||
export interface Params$Resource$Accesspolicies$Create extends StandardParameters {
|
||||
/**
|
||||
* Request body metadata
|
||||
*/
|
||||
requestBody?: Schema$AccessPolicy;
|
||||
}
|
||||
export interface Params$Resource$Accesspolicies$Delete extends StandardParameters {
|
||||
/**
|
||||
* Required. Resource name for the access policy to delete. Format `accessPolicies/{policy_id\}`
|
||||
*/
|
||||
name?: string;
|
||||
}
|
||||
export interface Params$Resource$Accesspolicies$Get extends StandardParameters {
|
||||
/**
|
||||
* Required. Resource name for the access policy to get. Format `accessPolicies/{policy_id\}`
|
||||
*/
|
||||
name?: string;
|
||||
}
|
||||
export interface Params$Resource$Accesspolicies$List extends StandardParameters {
|
||||
/**
|
||||
* 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;
|
||||
}
|
||||
export interface Params$Resource$Accesspolicies$Patch extends StandardParameters {
|
||||
/**
|
||||
* 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;
|
||||
}
|
||||
export class Resource$Accesspolicies$Accesslevels {
|
||||
context: APIRequestContext;
|
||||
constructor(context: APIRequestContext);
|
||||
/**
|
||||
* 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.
|
||||
*
|
||||
* @param params - Parameters for request
|
||||
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param callback - Optional callback that handles the response.
|
||||
* @returns A promise if used with async/await, or void if used with a callback.
|
||||
*/
|
||||
create(params: Params$Resource$Accesspolicies$Accesslevels$Create, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
||||
create(params?: Params$Resource$Accesspolicies$Accesslevels$Create, options?: MethodOptions): GaxiosPromise<Schema$Operation>;
|
||||
create(params: Params$Resource$Accesspolicies$Accesslevels$Create, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
||||
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;
|
||||
/**
|
||||
* 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.
|
||||
*
|
||||
* @param params - Parameters for request
|
||||
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param callback - Optional callback that handles the response.
|
||||
* @returns A promise if used with async/await, or void if used with a callback.
|
||||
*/
|
||||
delete(params: Params$Resource$Accesspolicies$Accesslevels$Delete, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
||||
delete(params?: Params$Resource$Accesspolicies$Accesslevels$Delete, options?: MethodOptions): GaxiosPromise<Schema$Operation>;
|
||||
delete(params: Params$Resource$Accesspolicies$Accesslevels$Delete, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
||||
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;
|
||||
/**
|
||||
* Get an Access Level by resource name.
|
||||
*
|
||||
* @param params - Parameters for request
|
||||
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param callback - Optional callback that handles the response.
|
||||
* @returns A promise if used with async/await, or void if used with a callback.
|
||||
*/
|
||||
get(params: Params$Resource$Accesspolicies$Accesslevels$Get, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
||||
get(params?: Params$Resource$Accesspolicies$Accesslevels$Get, options?: MethodOptions): GaxiosPromise<Schema$AccessLevel>;
|
||||
get(params: Params$Resource$Accesspolicies$Accesslevels$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
||||
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;
|
||||
/**
|
||||
* List all Access Levels for an access policy.
|
||||
*
|
||||
* @param params - Parameters for request
|
||||
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param callback - Optional callback that handles the response.
|
||||
* @returns A promise if used with async/await, or void if used with a callback.
|
||||
*/
|
||||
list(params: Params$Resource$Accesspolicies$Accesslevels$List, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
||||
list(params?: Params$Resource$Accesspolicies$Accesslevels$List, options?: MethodOptions): GaxiosPromise<Schema$ListAccessLevelsResponse>;
|
||||
list(params: Params$Resource$Accesspolicies$Accesslevels$List, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
||||
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;
|
||||
/**
|
||||
* 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.
|
||||
*
|
||||
* @param params - Parameters for request
|
||||
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param callback - Optional callback that handles the response.
|
||||
* @returns A promise if used with async/await, or void if used with a callback.
|
||||
*/
|
||||
patch(params: Params$Resource$Accesspolicies$Accesslevels$Patch, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
||||
patch(params?: Params$Resource$Accesspolicies$Accesslevels$Patch, options?: MethodOptions): GaxiosPromise<Schema$Operation>;
|
||||
patch(params: Params$Resource$Accesspolicies$Accesslevels$Patch, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
||||
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;
|
||||
}
|
||||
export interface Params$Resource$Accesspolicies$Accesslevels$Create extends StandardParameters {
|
||||
/**
|
||||
* Required. Resource name for the access policy which owns this Access Level. Format: `accessPolicies/{policy_id\}`
|
||||
*/
|
||||
parent?: string;
|
||||
/**
|
||||
* Request body metadata
|
||||
*/
|
||||
requestBody?: Schema$AccessLevel;
|
||||
}
|
||||
export interface Params$Resource$Accesspolicies$Accesslevels$Delete extends StandardParameters {
|
||||
/**
|
||||
* Required. Resource name for the Access Level. Format: `accessPolicies/{policy_id\}/accessLevels/{access_level_id\}`
|
||||
*/
|
||||
name?: string;
|
||||
}
|
||||
export interface Params$Resource$Accesspolicies$Accesslevels$Get extends StandardParameters {
|
||||
/**
|
||||
* 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;
|
||||
}
|
||||
export interface Params$Resource$Accesspolicies$Accesslevels$List extends StandardParameters {
|
||||
/**
|
||||
* 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;
|
||||
}
|
||||
export interface Params$Resource$Accesspolicies$Accesslevels$Patch extends StandardParameters {
|
||||
/**
|
||||
* Resource name for the `AccessLevel`. Format: `accessPolicies/{access_policy\}/accessLevels/{access_level\}`. The `access_level` component must begin with a letter, followed by alphanumeric characters or `_`. Its maximum length is 50 characters. After you create an `AccessLevel`, you cannot change its `name`.
|
||||
*/
|
||||
name?: string;
|
||||
/**
|
||||
* Required. Mask to control which fields get updated. Must be non-empty.
|
||||
*/
|
||||
updateMask?: string;
|
||||
/**
|
||||
* Request body metadata
|
||||
*/
|
||||
requestBody?: Schema$AccessLevel;
|
||||
}
|
||||
export class Resource$Accesspolicies$Serviceperimeters {
|
||||
context: APIRequestContext;
|
||||
constructor(context: APIRequestContext);
|
||||
/**
|
||||
* Create a 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.
|
||||
*
|
||||
* @param params - Parameters for request
|
||||
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param callback - Optional callback that handles the response.
|
||||
* @returns A promise if used with async/await, or void if used with a callback.
|
||||
*/
|
||||
create(params: Params$Resource$Accesspolicies$Serviceperimeters$Create, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
||||
create(params?: Params$Resource$Accesspolicies$Serviceperimeters$Create, options?: MethodOptions): GaxiosPromise<Schema$Operation>;
|
||||
create(params: Params$Resource$Accesspolicies$Serviceperimeters$Create, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
||||
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;
|
||||
/**
|
||||
* Delete a 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.
|
||||
*
|
||||
* @param params - Parameters for request
|
||||
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param callback - Optional callback that handles the response.
|
||||
* @returns A promise if used with async/await, or void if used with a callback.
|
||||
*/
|
||||
delete(params: Params$Resource$Accesspolicies$Serviceperimeters$Delete, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
||||
delete(params?: Params$Resource$Accesspolicies$Serviceperimeters$Delete, options?: MethodOptions): GaxiosPromise<Schema$Operation>;
|
||||
delete(params: Params$Resource$Accesspolicies$Serviceperimeters$Delete, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
||||
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;
|
||||
/**
|
||||
* Get a Service Perimeter by resource name.
|
||||
*
|
||||
* @param params - Parameters for request
|
||||
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param callback - Optional callback that handles the response.
|
||||
* @returns A promise if used with async/await, or void if used with a callback.
|
||||
*/
|
||||
get(params: Params$Resource$Accesspolicies$Serviceperimeters$Get, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
||||
get(params?: Params$Resource$Accesspolicies$Serviceperimeters$Get, options?: MethodOptions): GaxiosPromise<Schema$ServicePerimeter>;
|
||||
get(params: Params$Resource$Accesspolicies$Serviceperimeters$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
||||
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;
|
||||
/**
|
||||
* List all Service Perimeters for an access policy.
|
||||
*
|
||||
* @param params - Parameters for request
|
||||
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param callback - Optional callback that handles the response.
|
||||
* @returns A promise if used with async/await, or void if used with a callback.
|
||||
*/
|
||||
list(params: Params$Resource$Accesspolicies$Serviceperimeters$List, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
||||
list(params?: Params$Resource$Accesspolicies$Serviceperimeters$List, options?: MethodOptions): GaxiosPromise<Schema$ListServicePerimetersResponse>;
|
||||
list(params: Params$Resource$Accesspolicies$Serviceperimeters$List, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
||||
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;
|
||||
/**
|
||||
* Update a 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.
|
||||
*
|
||||
* @param params - Parameters for request
|
||||
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param callback - Optional callback that handles the response.
|
||||
* @returns A promise if used with async/await, or void if used with a callback.
|
||||
*/
|
||||
patch(params: Params$Resource$Accesspolicies$Serviceperimeters$Patch, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
||||
patch(params?: Params$Resource$Accesspolicies$Serviceperimeters$Patch, options?: MethodOptions): GaxiosPromise<Schema$Operation>;
|
||||
patch(params: Params$Resource$Accesspolicies$Serviceperimeters$Patch, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
||||
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;
|
||||
}
|
||||
export interface Params$Resource$Accesspolicies$Serviceperimeters$Create extends StandardParameters {
|
||||
/**
|
||||
* Required. Resource name for the access policy which owns this Service Perimeter. Format: `accessPolicies/{policy_id\}`
|
||||
*/
|
||||
parent?: string;
|
||||
/**
|
||||
* Request body metadata
|
||||
*/
|
||||
requestBody?: Schema$ServicePerimeter;
|
||||
}
|
||||
export interface Params$Resource$Accesspolicies$Serviceperimeters$Delete extends StandardParameters {
|
||||
/**
|
||||
* Required. Resource name for the Service Perimeter. Format: `accessPolicies/{policy_id\}/servicePerimeters/{service_perimeter_id\}`
|
||||
*/
|
||||
name?: string;
|
||||
}
|
||||
export interface Params$Resource$Accesspolicies$Serviceperimeters$Get extends StandardParameters {
|
||||
/**
|
||||
* Required. Resource name for the Service Perimeter. Format: `accessPolicies/{policy_id\}/servicePerimeters/{service_perimeters_id\}`
|
||||
*/
|
||||
name?: string;
|
||||
}
|
||||
export interface Params$Resource$Accesspolicies$Serviceperimeters$List extends StandardParameters {
|
||||
/**
|
||||
* 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;
|
||||
}
|
||||
export interface Params$Resource$Accesspolicies$Serviceperimeters$Patch extends StandardParameters {
|
||||
/**
|
||||
* Resource name for the `ServicePerimeter`. Format: `accessPolicies/{access_policy\}/servicePerimeters/{service_perimeter\}`. The `service_perimeter` component must begin with a letter, followed by alphanumeric characters or `_`. After you create a `ServicePerimeter`, you cannot change its `name`.
|
||||
*/
|
||||
name?: string;
|
||||
/**
|
||||
* Required. Mask to control which fields get updated. Must be non-empty.
|
||||
*/
|
||||
updateMask?: string;
|
||||
/**
|
||||
* Request body metadata
|
||||
*/
|
||||
requestBody?: Schema$ServicePerimeter;
|
||||
}
|
||||
export class Resource$Operations {
|
||||
context: APIRequestContext;
|
||||
constructor(context: APIRequestContext);
|
||||
/**
|
||||
* 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.
|
||||
*
|
||||
* @param params - Parameters for request
|
||||
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param callback - Optional callback that handles the response.
|
||||
* @returns A promise if used with async/await, or void if used with a callback.
|
||||
*/
|
||||
get(params: Params$Resource$Operations$Get, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
||||
get(params?: Params$Resource$Operations$Get, options?: MethodOptions): GaxiosPromise<Schema$Operation>;
|
||||
get(params: Params$Resource$Operations$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
||||
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;
|
||||
}
|
||||
export interface Params$Resource$Operations$Get extends StandardParameters {
|
||||
/**
|
||||
* The name of the operation resource.
|
||||
*/
|
||||
name?: string;
|
||||
}
|
||||
export {};
|
||||
}
|
||||
567
node_modules/googleapis/build/src/apis/accesscontextmanager/v1beta.js
generated
vendored
Normal file
567
node_modules/googleapis/build/src/apis/accesscontextmanager/v1beta.js
generated
vendored
Normal file
@@ -0,0 +1,567 @@
|
||||
"use strict";
|
||||
// Copyright 2020 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 });
|
||||
exports.accesscontextmanager_v1beta = void 0;
|
||||
/* eslint-disable @typescript-eslint/no-explicit-any */
|
||||
/* eslint-disable @typescript-eslint/no-unused-vars */
|
||||
/* eslint-disable @typescript-eslint/no-empty-interface */
|
||||
/* eslint-disable @typescript-eslint/no-namespace */
|
||||
/* eslint-disable no-irregular-whitespace */
|
||||
const googleapis_common_1 = require("googleapis-common");
|
||||
var accesscontextmanager_v1beta;
|
||||
(function (accesscontextmanager_v1beta) {
|
||||
/**
|
||||
* Access Context Manager API
|
||||
*
|
||||
* An API for setting attribute based access control to requests to Google Cloud services.
|
||||
*
|
||||
* @example
|
||||
* ```js
|
||||
* const {google} = require('googleapis');
|
||||
* const accesscontextmanager = google.accesscontextmanager('v1beta');
|
||||
* ```
|
||||
*/
|
||||
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) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, 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) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, 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) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, 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) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, 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) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, 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) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, 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) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, 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) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, 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) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, 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) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, 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) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, 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) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, 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) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, 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) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, 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) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, 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) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, googleapis_common_1.createAPIRequest)(parameters);
|
||||
}
|
||||
}
|
||||
}
|
||||
accesscontextmanager_v1beta.Resource$Operations = Resource$Operations;
|
||||
})(accesscontextmanager_v1beta || (exports.accesscontextmanager_v1beta = accesscontextmanager_v1beta = {}));
|
||||
12
node_modules/googleapis/build/src/apis/acmedns/index.d.ts
generated
vendored
Normal file
12
node_modules/googleapis/build/src/apis/acmedns/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
/*! THIS FILE IS AUTO-GENERATED */
|
||||
import { AuthPlus } from 'googleapis-common';
|
||||
import { acmedns_v1 } from './v1';
|
||||
export declare const VERSIONS: {
|
||||
v1: typeof acmedns_v1.Acmedns;
|
||||
};
|
||||
export declare function acmedns(version: 'v1'): acmedns_v1.Acmedns;
|
||||
export declare function acmedns(options: acmedns_v1.Options): acmedns_v1.Acmedns;
|
||||
declare const auth: AuthPlus;
|
||||
export { auth };
|
||||
export { acmedns_v1 };
|
||||
export { AuthPlus, GlobalOptions, APIRequestContext, GoogleConfigurable, StreamMethodOptions, GaxiosPromise, MethodOptions, BodyResponseCallback, } from 'googleapis-common';
|
||||
30
node_modules/googleapis/build/src/apis/acmedns/index.js
generated
vendored
Normal file
30
node_modules/googleapis/build/src/apis/acmedns/index.js
generated
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
"use strict";
|
||||
// Copyright 2020 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 });
|
||||
exports.AuthPlus = exports.acmedns_v1 = exports.auth = exports.acmedns = exports.VERSIONS = void 0;
|
||||
/*! THIS FILE IS AUTO-GENERATED */
|
||||
const googleapis_common_1 = require("googleapis-common");
|
||||
const v1_1 = require("./v1");
|
||||
Object.defineProperty(exports, "acmedns_v1", { enumerable: true, get: function () { return v1_1.acmedns_v1; } });
|
||||
exports.VERSIONS = {
|
||||
v1: v1_1.acmedns_v1.Acmedns,
|
||||
};
|
||||
function acmedns(versionOrOptions) {
|
||||
return (0, googleapis_common_1.getAPI)('acmedns', versionOrOptions, exports.VERSIONS, this);
|
||||
}
|
||||
exports.acmedns = acmedns;
|
||||
const auth = new googleapis_common_1.AuthPlus();
|
||||
exports.auth = auth;
|
||||
var googleapis_common_2 = require("googleapis-common");
|
||||
Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } });
|
||||
170
node_modules/googleapis/build/src/apis/acmedns/v1.d.ts
generated
vendored
Normal file
170
node_modules/googleapis/build/src/apis/acmedns/v1.d.ts
generated
vendored
Normal file
@@ -0,0 +1,170 @@
|
||||
/// <reference types="node" />
|
||||
import { OAuth2Client, JWT, Compute, UserRefreshClient, BaseExternalAccountClient, GaxiosPromise, GoogleConfigurable, MethodOptions, StreamMethodOptions, GlobalOptions, GoogleAuth, BodyResponseCallback, APIRequestContext } from 'googleapis-common';
|
||||
import { Readable } from 'stream';
|
||||
export declare namespace acmedns_v1 {
|
||||
export interface Options extends GlobalOptions {
|
||||
version: 'v1';
|
||||
}
|
||||
interface StandardParameters {
|
||||
/**
|
||||
* Auth client or API Key for the request
|
||||
*/
|
||||
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient | BaseExternalAccountClient | GoogleAuth;
|
||||
/**
|
||||
* 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;
|
||||
}
|
||||
/**
|
||||
* ACME DNS API
|
||||
*
|
||||
* Google Domains ACME DNS API that allows users to complete ACME DNS-01 challenges for a domain.
|
||||
*
|
||||
* @example
|
||||
* ```js
|
||||
* const {google} = require('googleapis');
|
||||
* const acmedns = google.acmedns('v1');
|
||||
* ```
|
||||
*/
|
||||
export class Acmedns {
|
||||
context: APIRequestContext;
|
||||
acmeChallengeSets: Resource$Acmechallengesets;
|
||||
constructor(options: GlobalOptions, google?: GoogleConfigurable);
|
||||
}
|
||||
/**
|
||||
* The up-to-date ACME challenge set on a domain for an RPC. This contains all of the ACME TXT records that exist on the domain.
|
||||
*/
|
||||
export interface Schema$AcmeChallengeSet {
|
||||
/**
|
||||
* The ACME challenges on the requested domain represented as individual TXT records.
|
||||
*/
|
||||
record?: Schema$AcmeTxtRecord[];
|
||||
}
|
||||
/**
|
||||
* The TXT record message that represents an ACME DNS-01 challenge.
|
||||
*/
|
||||
export interface Schema$AcmeTxtRecord {
|
||||
/**
|
||||
* Holds the ACME challenge data put in the TXT record. This will be checked to be a valid TXT record data entry.
|
||||
*/
|
||||
digest?: string | null;
|
||||
/**
|
||||
* The domain/subdomain for the record. In a request, this MAY be Unicode or Punycode. In a response, this will be in Unicode. The fqdn MUST contain the root_domain field on the request.
|
||||
*/
|
||||
fqdn?: string | null;
|
||||
/**
|
||||
* Output only. The time when this record was last updated. This will be in UTC time.
|
||||
*/
|
||||
updateTime?: string | null;
|
||||
}
|
||||
/**
|
||||
* The request message for the RotateChallenges RPC. Requires an access token, a root domain, and either records_to_add or records_to_remove to be populated. Records may be set for multiple subdomains at once to support SAN requests for multiple subdomains in a single domain. By default, ACME TXT record challenges that are older than 30 days will be removed. Set `keep_expired_records` to false if this behavior is undesired. There is a record maximum of 100 records per domain including expired records. Any request sent that would exceed this maximum will result in a FAILED_PRECONDITION error. NEXT ID: 6
|
||||
*/
|
||||
export interface Schema$RotateChallengesRequest {
|
||||
/**
|
||||
* Required. ACME DNS access token. This is a base64 token secret that is procured from the Google Domains website. It authorizes ACME TXT record updates for a domain.
|
||||
*/
|
||||
accessToken?: string | null;
|
||||
/**
|
||||
* Keep records older than 30 days that were used for previous requests.
|
||||
*/
|
||||
keepExpiredRecords?: boolean | null;
|
||||
/**
|
||||
* ACME TXT record challenges to add. Supports multiple challenges on the same FQDN.
|
||||
*/
|
||||
recordsToAdd?: Schema$AcmeTxtRecord[];
|
||||
/**
|
||||
* ACME TXT record challenges to remove.
|
||||
*/
|
||||
recordsToRemove?: Schema$AcmeTxtRecord[];
|
||||
}
|
||||
export class Resource$Acmechallengesets {
|
||||
context: APIRequestContext;
|
||||
constructor(context: APIRequestContext);
|
||||
/**
|
||||
* Gets the ACME challenge set for a given domain name. Domain names must be provided in Punycode.
|
||||
*
|
||||
* @param params - Parameters for request
|
||||
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param callback - Optional callback that handles the response.
|
||||
* @returns A promise if used with async/await, or void if used with a callback.
|
||||
*/
|
||||
get(params: Params$Resource$Acmechallengesets$Get, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
||||
get(params?: Params$Resource$Acmechallengesets$Get, options?: MethodOptions): GaxiosPromise<Schema$AcmeChallengeSet>;
|
||||
get(params: Params$Resource$Acmechallengesets$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
||||
get(params: Params$Resource$Acmechallengesets$Get, options: MethodOptions | BodyResponseCallback<Schema$AcmeChallengeSet>, callback: BodyResponseCallback<Schema$AcmeChallengeSet>): void;
|
||||
get(params: Params$Resource$Acmechallengesets$Get, callback: BodyResponseCallback<Schema$AcmeChallengeSet>): void;
|
||||
get(callback: BodyResponseCallback<Schema$AcmeChallengeSet>): void;
|
||||
/**
|
||||
* Rotate the ACME challenges for a given domain name. By default, removes any challenges that are older than 30 days. Domain names must be provided in Punycode.
|
||||
*
|
||||
* @param params - Parameters for request
|
||||
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param callback - Optional callback that handles the response.
|
||||
* @returns A promise if used with async/await, or void if used with a callback.
|
||||
*/
|
||||
rotateChallenges(params: Params$Resource$Acmechallengesets$Rotatechallenges, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
||||
rotateChallenges(params?: Params$Resource$Acmechallengesets$Rotatechallenges, options?: MethodOptions): GaxiosPromise<Schema$AcmeChallengeSet>;
|
||||
rotateChallenges(params: Params$Resource$Acmechallengesets$Rotatechallenges, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
||||
rotateChallenges(params: Params$Resource$Acmechallengesets$Rotatechallenges, options: MethodOptions | BodyResponseCallback<Schema$AcmeChallengeSet>, callback: BodyResponseCallback<Schema$AcmeChallengeSet>): void;
|
||||
rotateChallenges(params: Params$Resource$Acmechallengesets$Rotatechallenges, callback: BodyResponseCallback<Schema$AcmeChallengeSet>): void;
|
||||
rotateChallenges(callback: BodyResponseCallback<Schema$AcmeChallengeSet>): void;
|
||||
}
|
||||
export interface Params$Resource$Acmechallengesets$Get extends StandardParameters {
|
||||
/**
|
||||
* Required. SLD + TLD domain name to list challenges. For example, this would be "google.com" for any FQDN under "google.com". That includes challenges for "subdomain.google.com". This MAY be Unicode or Punycode.
|
||||
*/
|
||||
rootDomain?: string;
|
||||
}
|
||||
export interface Params$Resource$Acmechallengesets$Rotatechallenges extends StandardParameters {
|
||||
/**
|
||||
* Required. SLD + TLD domain name to update records for. For example, this would be "google.com" for any FQDN under "google.com". That includes challenges for "subdomain.google.com". This MAY be Unicode or Punycode.
|
||||
*/
|
||||
rootDomain?: string;
|
||||
/**
|
||||
* Request body metadata
|
||||
*/
|
||||
requestBody?: Schema$RotateChallengesRequest;
|
||||
}
|
||||
export {};
|
||||
}
|
||||
113
node_modules/googleapis/build/src/apis/acmedns/v1.js
generated
vendored
Normal file
113
node_modules/googleapis/build/src/apis/acmedns/v1.js
generated
vendored
Normal file
@@ -0,0 +1,113 @@
|
||||
"use strict";
|
||||
// Copyright 2020 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 });
|
||||
exports.acmedns_v1 = void 0;
|
||||
/* eslint-disable @typescript-eslint/no-explicit-any */
|
||||
/* eslint-disable @typescript-eslint/no-unused-vars */
|
||||
/* eslint-disable @typescript-eslint/no-empty-interface */
|
||||
/* eslint-disable @typescript-eslint/no-namespace */
|
||||
/* eslint-disable no-irregular-whitespace */
|
||||
const googleapis_common_1 = require("googleapis-common");
|
||||
var acmedns_v1;
|
||||
(function (acmedns_v1) {
|
||||
/**
|
||||
* ACME DNS API
|
||||
*
|
||||
* Google Domains ACME DNS API that allows users to complete ACME DNS-01 challenges for a domain.
|
||||
*
|
||||
* @example
|
||||
* ```js
|
||||
* const {google} = require('googleapis');
|
||||
* const acmedns = google.acmedns('v1');
|
||||
* ```
|
||||
*/
|
||||
class Acmedns {
|
||||
constructor(options, google) {
|
||||
this.context = {
|
||||
_options: options || {},
|
||||
google,
|
||||
};
|
||||
this.acmeChallengeSets = new Resource$Acmechallengesets(this.context);
|
||||
}
|
||||
}
|
||||
acmedns_v1.Acmedns = Acmedns;
|
||||
class Resource$Acmechallengesets {
|
||||
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://acmedns.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/acmeChallengeSets/{rootDomain}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: ['rootDomain'],
|
||||
pathParams: ['rootDomain'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, googleapis_common_1.createAPIRequest)(parameters);
|
||||
}
|
||||
}
|
||||
rotateChallenges(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://acmedns.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/acmeChallengeSets/{rootDomain}:rotateChallenges').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: ['rootDomain'],
|
||||
pathParams: ['rootDomain'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, googleapis_common_1.createAPIRequest)(parameters);
|
||||
}
|
||||
}
|
||||
}
|
||||
acmedns_v1.Resource$Acmechallengesets = Resource$Acmechallengesets;
|
||||
})(acmedns_v1 || (exports.acmedns_v1 = acmedns_v1 = {}));
|
||||
22
node_modules/googleapis/build/src/apis/adexchangebuyer/index.d.ts
generated
vendored
Normal file
22
node_modules/googleapis/build/src/apis/adexchangebuyer/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
/*! 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 };
|
||||
export { adexchangebuyer_v1_2 };
|
||||
export { adexchangebuyer_v1_3 };
|
||||
export { adexchangebuyer_v1_4 };
|
||||
export { AuthPlus, GlobalOptions, APIRequestContext, GoogleConfigurable, StreamMethodOptions, GaxiosPromise, MethodOptions, BodyResponseCallback, } from 'googleapis-common';
|
||||
36
node_modules/googleapis/build/src/apis/adexchangebuyer/index.js
generated
vendored
Normal file
36
node_modules/googleapis/build/src/apis/adexchangebuyer/index.js
generated
vendored
Normal file
@@ -0,0 +1,36 @@
|
||||
"use strict";
|
||||
// Copyright 2020 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 });
|
||||
exports.AuthPlus = exports.adexchangebuyer_v1_4 = exports.adexchangebuyer_v1_3 = exports.adexchangebuyer_v1_2 = exports.auth = exports.adexchangebuyer = exports.VERSIONS = void 0;
|
||||
/*! THIS FILE IS AUTO-GENERATED */
|
||||
const googleapis_common_1 = require("googleapis-common");
|
||||
const v1_2_1 = require("./v1.2");
|
||||
Object.defineProperty(exports, "adexchangebuyer_v1_2", { enumerable: true, get: function () { return v1_2_1.adexchangebuyer_v1_2; } });
|
||||
const v1_3_1 = require("./v1.3");
|
||||
Object.defineProperty(exports, "adexchangebuyer_v1_3", { enumerable: true, get: function () { return v1_3_1.adexchangebuyer_v1_3; } });
|
||||
const v1_4_1 = require("./v1.4");
|
||||
Object.defineProperty(exports, "adexchangebuyer_v1_4", { enumerable: true, get: function () { return v1_4_1.adexchangebuyer_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 (0, googleapis_common_1.getAPI)('adexchangebuyer', versionOrOptions, exports.VERSIONS, this);
|
||||
}
|
||||
exports.adexchangebuyer = adexchangebuyer;
|
||||
const auth = new googleapis_common_1.AuthPlus();
|
||||
exports.auth = auth;
|
||||
var googleapis_common_2 = require("googleapis-common");
|
||||
Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } });
|
||||
826
node_modules/googleapis/build/src/apis/adexchangebuyer/v1.2.d.ts
generated
vendored
Normal file
826
node_modules/googleapis/build/src/apis/adexchangebuyer/v1.2.d.ts
generated
vendored
Normal file
@@ -0,0 +1,826 @@
|
||||
/// <reference types="node" />
|
||||
import { OAuth2Client, JWT, Compute, UserRefreshClient, BaseExternalAccountClient, GaxiosPromise, GoogleConfigurable, MethodOptions, StreamMethodOptions, GlobalOptions, GoogleAuth, BodyResponseCallback, APIRequestContext } from 'googleapis-common';
|
||||
import { Readable } from 'stream';
|
||||
export declare namespace adexchangebuyer_v1_2 {
|
||||
export interface Options extends GlobalOptions {
|
||||
version: 'v1.2';
|
||||
}
|
||||
interface StandardParameters {
|
||||
/**
|
||||
* Auth client or API Key for the request
|
||||
*/
|
||||
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient | BaseExternalAccountClient | GoogleAuth;
|
||||
/**
|
||||
* 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
|
||||
* ```js
|
||||
* const {google} = require('googleapis');
|
||||
* const adexchangebuyer = google.adexchangebuyer('v1.2');
|
||||
* ```
|
||||
*/
|
||||
export class Adexchangebuyer {
|
||||
context: APIRequestContext;
|
||||
accounts: Resource$Accounts;
|
||||
creatives: Resource$Creatives;
|
||||
constructor(options: GlobalOptions, google?: GoogleConfigurable);
|
||||
}
|
||||
/**
|
||||
* Configuration data for an Ad Exchange buyer account.
|
||||
*/
|
||||
export interface Schema$Account {
|
||||
/**
|
||||
* Your bidder locations that have distinct URLs.
|
||||
*/
|
||||
bidderLocation?: Array<{
|
||||
maximumQps?: number;
|
||||
region?: string;
|
||||
url?: string;
|
||||
}> | null;
|
||||
/**
|
||||
* The nid parameter value used in cookie match requests. Please contact your technical account manager if you need to change this.
|
||||
*/
|
||||
cookieMatchingNid?: string | null;
|
||||
/**
|
||||
* The base URL used in cookie match requests.
|
||||
*/
|
||||
cookieMatchingUrl?: string | null;
|
||||
/**
|
||||
* Account id.
|
||||
*/
|
||||
id?: number | null;
|
||||
/**
|
||||
* Resource type.
|
||||
*/
|
||||
kind?: string | null;
|
||||
/**
|
||||
* 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 | null;
|
||||
/**
|
||||
* The sum of all bidderLocation.maximumQps values cannot exceed this. Please contact your technical account manager if you need to change this.
|
||||
*/
|
||||
maximumTotalQps?: number | null;
|
||||
/**
|
||||
* The number of creatives that this account inserted or bid with in the last 30 days.
|
||||
*/
|
||||
numberActiveCreatives?: number | null;
|
||||
}
|
||||
/**
|
||||
* 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.
|
||||
*/
|
||||
export interface Schema$AccountsList {
|
||||
/**
|
||||
* A list of accounts.
|
||||
*/
|
||||
items?: Schema$Account[];
|
||||
/**
|
||||
* Resource type.
|
||||
*/
|
||||
kind?: string | null;
|
||||
}
|
||||
/**
|
||||
* A creative and its classification data.
|
||||
*/
|
||||
export interface Schema$Creative {
|
||||
/**
|
||||
* Account id.
|
||||
*/
|
||||
accountId?: number | null;
|
||||
/**
|
||||
* Detected advertiser id, if any. Read-only. This field should not be set in requests.
|
||||
*/
|
||||
advertiserId?: string[] | null;
|
||||
/**
|
||||
* The name of the company being advertised in the creative.
|
||||
*/
|
||||
advertiserName?: string | null;
|
||||
/**
|
||||
* The agency id for this creative.
|
||||
*/
|
||||
agencyId?: string | null;
|
||||
/**
|
||||
* 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 | null;
|
||||
/**
|
||||
* All attributes for the ads that may be shown from this snippet.
|
||||
*/
|
||||
attribute?: number[] | null;
|
||||
/**
|
||||
* A buyer-specific id identifying the creative in this ad.
|
||||
*/
|
||||
buyerCreativeId?: string | null;
|
||||
/**
|
||||
* The set of destination urls for the snippet.
|
||||
*/
|
||||
clickThroughUrl?: string[] | null;
|
||||
/**
|
||||
* 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;
|
||||
}> | null;
|
||||
/**
|
||||
* 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;
|
||||
}> | null;
|
||||
/**
|
||||
* 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;
|
||||
}>;
|
||||
} | null;
|
||||
/**
|
||||
* Ad height.
|
||||
*/
|
||||
height?: number | null;
|
||||
/**
|
||||
* The HTML snippet that displays the ad when inserted in the web page. If set, videoURL should not be set.
|
||||
*/
|
||||
HTMLSnippet?: string | null;
|
||||
/**
|
||||
* The set of urls to be called to record an impression.
|
||||
*/
|
||||
impressionTrackingUrl?: string[] | null;
|
||||
/**
|
||||
* Resource type.
|
||||
*/
|
||||
kind?: string | null;
|
||||
/**
|
||||
* Detected product categories, if any. Read-only. This field should not be set in requests.
|
||||
*/
|
||||
productCategories?: number[] | null;
|
||||
/**
|
||||
* All restricted categories for the ads that may be shown from this snippet.
|
||||
*/
|
||||
restrictedCategories?: number[] | null;
|
||||
/**
|
||||
* Detected sensitive categories, if any. Read-only. This field should not be set in requests.
|
||||
*/
|
||||
sensitiveCategories?: number[] | null;
|
||||
/**
|
||||
* Creative serving status. Read-only. This field should not be set in requests.
|
||||
*/
|
||||
status?: string | null;
|
||||
/**
|
||||
* All vendor types for the ads that may be shown from this snippet.
|
||||
*/
|
||||
vendorType?: number[] | null;
|
||||
/**
|
||||
* The version for this creative. Read-only. This field should not be set in requests.
|
||||
*/
|
||||
version?: number | null;
|
||||
/**
|
||||
* The url to fetch a video ad. If set, HTMLSnippet should not be set.
|
||||
*/
|
||||
videoURL?: string | null;
|
||||
/**
|
||||
* Ad width.
|
||||
*/
|
||||
width?: number | null;
|
||||
}
|
||||
/**
|
||||
* 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.
|
||||
*/
|
||||
export interface Schema$CreativesList {
|
||||
/**
|
||||
* A list of creatives.
|
||||
*/
|
||||
items?: Schema$Creative[];
|
||||
/**
|
||||
* Resource type.
|
||||
*/
|
||||
kind?: string | null;
|
||||
/**
|
||||
* 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 | null;
|
||||
}
|
||||
export class Resource$Accounts {
|
||||
context: APIRequestContext;
|
||||
constructor(context: APIRequestContext);
|
||||
/**
|
||||
* Gets one account by ID.
|
||||
* @example
|
||||
* ```js
|
||||
* // Before running the sample:
|
||||
* // - Enable the API at:
|
||||
* // https://console.developers.google.com/apis/api/adexchangebuyer.googleapis.com
|
||||
* // - Login into gcloud by running:
|
||||
* // `$ gcloud auth application-default login`
|
||||
* // - Install the npm module by running:
|
||||
* // `$ npm install googleapis`
|
||||
*
|
||||
* const {google} = require('googleapis');
|
||||
* const adexchangebuyer = google.adexchangebuyer('v1.2');
|
||||
*
|
||||
* async function main() {
|
||||
* const auth = new google.auth.GoogleAuth({
|
||||
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
||||
* scopes: ['https://www.googleapis.com/auth/adexchange.buyer'],
|
||||
* });
|
||||
*
|
||||
* // Acquire an auth client, and bind it to all future calls
|
||||
* const authClient = await auth.getClient();
|
||||
* google.options({auth: authClient});
|
||||
*
|
||||
* // Do the magic
|
||||
* const res = await adexchangebuyer.accounts.get({
|
||||
* // The account id
|
||||
* id: 'placeholder-value',
|
||||
* });
|
||||
* console.log(res.data);
|
||||
*
|
||||
* // Example response
|
||||
* // {
|
||||
* // "bidderLocation": [],
|
||||
* // "cookieMatchingNid": "my_cookieMatchingNid",
|
||||
* // "cookieMatchingUrl": "my_cookieMatchingUrl",
|
||||
* // "id": 0,
|
||||
* // "kind": "my_kind",
|
||||
* // "maximumActiveCreatives": 0,
|
||||
* // "maximumTotalQps": 0,
|
||||
* // "numberActiveCreatives": 0
|
||||
* // }
|
||||
* }
|
||||
*
|
||||
* main().catch(e => {
|
||||
* console.error(e);
|
||||
* throw e;
|
||||
* });
|
||||
*
|
||||
* ```
|
||||
*
|
||||
* @param params - Parameters for request
|
||||
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param callback - Optional callback that handles the response.
|
||||
* @returns A promise if used with async/await, or void if used with a callback.
|
||||
*/
|
||||
get(params: Params$Resource$Accounts$Get, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
||||
get(params?: Params$Resource$Accounts$Get, options?: MethodOptions): GaxiosPromise<Schema$Account>;
|
||||
get(params: Params$Resource$Accounts$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
||||
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;
|
||||
/**
|
||||
* Retrieves the authenticated user's list of accounts.
|
||||
* @example
|
||||
* ```js
|
||||
* // Before running the sample:
|
||||
* // - Enable the API at:
|
||||
* // https://console.developers.google.com/apis/api/adexchangebuyer.googleapis.com
|
||||
* // - Login into gcloud by running:
|
||||
* // `$ gcloud auth application-default login`
|
||||
* // - Install the npm module by running:
|
||||
* // `$ npm install googleapis`
|
||||
*
|
||||
* const {google} = require('googleapis');
|
||||
* const adexchangebuyer = google.adexchangebuyer('v1.2');
|
||||
*
|
||||
* async function main() {
|
||||
* const auth = new google.auth.GoogleAuth({
|
||||
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
||||
* scopes: ['https://www.googleapis.com/auth/adexchange.buyer'],
|
||||
* });
|
||||
*
|
||||
* // Acquire an auth client, and bind it to all future calls
|
||||
* const authClient = await auth.getClient();
|
||||
* google.options({auth: authClient});
|
||||
*
|
||||
* // Do the magic
|
||||
* const res = await adexchangebuyer.accounts.list({});
|
||||
* console.log(res.data);
|
||||
*
|
||||
* // Example response
|
||||
* // {
|
||||
* // "items": [],
|
||||
* // "kind": "my_kind"
|
||||
* // }
|
||||
* }
|
||||
*
|
||||
* main().catch(e => {
|
||||
* console.error(e);
|
||||
* throw e;
|
||||
* });
|
||||
*
|
||||
* ```
|
||||
*
|
||||
* @param params - Parameters for request
|
||||
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param callback - Optional callback that handles the response.
|
||||
* @returns A promise if used with async/await, or void if used with a callback.
|
||||
*/
|
||||
list(params: Params$Resource$Accounts$List, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
||||
list(params?: Params$Resource$Accounts$List, options?: MethodOptions): GaxiosPromise<Schema$AccountsList>;
|
||||
list(params: Params$Resource$Accounts$List, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
||||
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;
|
||||
/**
|
||||
* Updates an existing account. This method supports patch semantics.
|
||||
* @example
|
||||
* ```js
|
||||
* // Before running the sample:
|
||||
* // - Enable the API at:
|
||||
* // https://console.developers.google.com/apis/api/adexchangebuyer.googleapis.com
|
||||
* // - Login into gcloud by running:
|
||||
* // `$ gcloud auth application-default login`
|
||||
* // - Install the npm module by running:
|
||||
* // `$ npm install googleapis`
|
||||
*
|
||||
* const {google} = require('googleapis');
|
||||
* const adexchangebuyer = google.adexchangebuyer('v1.2');
|
||||
*
|
||||
* async function main() {
|
||||
* const auth = new google.auth.GoogleAuth({
|
||||
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
||||
* scopes: ['https://www.googleapis.com/auth/adexchange.buyer'],
|
||||
* });
|
||||
*
|
||||
* // Acquire an auth client, and bind it to all future calls
|
||||
* const authClient = await auth.getClient();
|
||||
* google.options({auth: authClient});
|
||||
*
|
||||
* // Do the magic
|
||||
* const res = await adexchangebuyer.accounts.patch({
|
||||
* // The account id
|
||||
* id: 'placeholder-value',
|
||||
*
|
||||
* // Request body metadata
|
||||
* requestBody: {
|
||||
* // request body parameters
|
||||
* // {
|
||||
* // "bidderLocation": [],
|
||||
* // "cookieMatchingNid": "my_cookieMatchingNid",
|
||||
* // "cookieMatchingUrl": "my_cookieMatchingUrl",
|
||||
* // "id": 0,
|
||||
* // "kind": "my_kind",
|
||||
* // "maximumActiveCreatives": 0,
|
||||
* // "maximumTotalQps": 0,
|
||||
* // "numberActiveCreatives": 0
|
||||
* // }
|
||||
* },
|
||||
* });
|
||||
* console.log(res.data);
|
||||
*
|
||||
* // Example response
|
||||
* // {
|
||||
* // "bidderLocation": [],
|
||||
* // "cookieMatchingNid": "my_cookieMatchingNid",
|
||||
* // "cookieMatchingUrl": "my_cookieMatchingUrl",
|
||||
* // "id": 0,
|
||||
* // "kind": "my_kind",
|
||||
* // "maximumActiveCreatives": 0,
|
||||
* // "maximumTotalQps": 0,
|
||||
* // "numberActiveCreatives": 0
|
||||
* // }
|
||||
* }
|
||||
*
|
||||
* main().catch(e => {
|
||||
* console.error(e);
|
||||
* throw e;
|
||||
* });
|
||||
*
|
||||
* ```
|
||||
*
|
||||
* @param params - Parameters for request
|
||||
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param callback - Optional callback that handles the response.
|
||||
* @returns A promise if used with async/await, or void if used with a callback.
|
||||
*/
|
||||
patch(params: Params$Resource$Accounts$Patch, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
||||
patch(params?: Params$Resource$Accounts$Patch, options?: MethodOptions): GaxiosPromise<Schema$Account>;
|
||||
patch(params: Params$Resource$Accounts$Patch, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
||||
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;
|
||||
/**
|
||||
* Updates an existing account.
|
||||
* @example
|
||||
* ```js
|
||||
* // Before running the sample:
|
||||
* // - Enable the API at:
|
||||
* // https://console.developers.google.com/apis/api/adexchangebuyer.googleapis.com
|
||||
* // - Login into gcloud by running:
|
||||
* // `$ gcloud auth application-default login`
|
||||
* // - Install the npm module by running:
|
||||
* // `$ npm install googleapis`
|
||||
*
|
||||
* const {google} = require('googleapis');
|
||||
* const adexchangebuyer = google.adexchangebuyer('v1.2');
|
||||
*
|
||||
* async function main() {
|
||||
* const auth = new google.auth.GoogleAuth({
|
||||
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
||||
* scopes: ['https://www.googleapis.com/auth/adexchange.buyer'],
|
||||
* });
|
||||
*
|
||||
* // Acquire an auth client, and bind it to all future calls
|
||||
* const authClient = await auth.getClient();
|
||||
* google.options({auth: authClient});
|
||||
*
|
||||
* // Do the magic
|
||||
* const res = await adexchangebuyer.accounts.update({
|
||||
* // The account id
|
||||
* id: 'placeholder-value',
|
||||
*
|
||||
* // Request body metadata
|
||||
* requestBody: {
|
||||
* // request body parameters
|
||||
* // {
|
||||
* // "bidderLocation": [],
|
||||
* // "cookieMatchingNid": "my_cookieMatchingNid",
|
||||
* // "cookieMatchingUrl": "my_cookieMatchingUrl",
|
||||
* // "id": 0,
|
||||
* // "kind": "my_kind",
|
||||
* // "maximumActiveCreatives": 0,
|
||||
* // "maximumTotalQps": 0,
|
||||
* // "numberActiveCreatives": 0
|
||||
* // }
|
||||
* },
|
||||
* });
|
||||
* console.log(res.data);
|
||||
*
|
||||
* // Example response
|
||||
* // {
|
||||
* // "bidderLocation": [],
|
||||
* // "cookieMatchingNid": "my_cookieMatchingNid",
|
||||
* // "cookieMatchingUrl": "my_cookieMatchingUrl",
|
||||
* // "id": 0,
|
||||
* // "kind": "my_kind",
|
||||
* // "maximumActiveCreatives": 0,
|
||||
* // "maximumTotalQps": 0,
|
||||
* // "numberActiveCreatives": 0
|
||||
* // }
|
||||
* }
|
||||
*
|
||||
* main().catch(e => {
|
||||
* console.error(e);
|
||||
* throw e;
|
||||
* });
|
||||
*
|
||||
* ```
|
||||
*
|
||||
* @param params - Parameters for request
|
||||
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param callback - Optional callback that handles the response.
|
||||
* @returns A promise if used with async/await, or void if used with a callback.
|
||||
*/
|
||||
update(params: Params$Resource$Accounts$Update, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
||||
update(params?: Params$Resource$Accounts$Update, options?: MethodOptions): GaxiosPromise<Schema$Account>;
|
||||
update(params: Params$Resource$Accounts$Update, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
||||
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;
|
||||
}
|
||||
export interface Params$Resource$Accounts$Get extends StandardParameters {
|
||||
/**
|
||||
* The account id
|
||||
*/
|
||||
id?: number;
|
||||
}
|
||||
export interface Params$Resource$Accounts$List extends StandardParameters {
|
||||
}
|
||||
export interface Params$Resource$Accounts$Patch extends StandardParameters {
|
||||
/**
|
||||
* The account id
|
||||
*/
|
||||
id?: number;
|
||||
/**
|
||||
* Request body metadata
|
||||
*/
|
||||
requestBody?: Schema$Account;
|
||||
}
|
||||
export interface Params$Resource$Accounts$Update extends StandardParameters {
|
||||
/**
|
||||
* The account id
|
||||
*/
|
||||
id?: number;
|
||||
/**
|
||||
* Request body metadata
|
||||
*/
|
||||
requestBody?: Schema$Account;
|
||||
}
|
||||
export class Resource$Creatives {
|
||||
context: APIRequestContext;
|
||||
constructor(context: APIRequestContext);
|
||||
/**
|
||||
* Gets the status for a single creative. A creative will be available 30-40 minutes after submission.
|
||||
* @example
|
||||
* ```js
|
||||
* // Before running the sample:
|
||||
* // - Enable the API at:
|
||||
* // https://console.developers.google.com/apis/api/adexchangebuyer.googleapis.com
|
||||
* // - Login into gcloud by running:
|
||||
* // `$ gcloud auth application-default login`
|
||||
* // - Install the npm module by running:
|
||||
* // `$ npm install googleapis`
|
||||
*
|
||||
* const {google} = require('googleapis');
|
||||
* const adexchangebuyer = google.adexchangebuyer('v1.2');
|
||||
*
|
||||
* async function main() {
|
||||
* const auth = new google.auth.GoogleAuth({
|
||||
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
||||
* scopes: ['https://www.googleapis.com/auth/adexchange.buyer'],
|
||||
* });
|
||||
*
|
||||
* // Acquire an auth client, and bind it to all future calls
|
||||
* const authClient = await auth.getClient();
|
||||
* google.options({auth: authClient});
|
||||
*
|
||||
* // Do the magic
|
||||
* const res = await adexchangebuyer.creatives.get({
|
||||
* // The id for the account that will serve this creative.
|
||||
* accountId: 'placeholder-value',
|
||||
* // The buyer-specific id for this creative.
|
||||
* buyerCreativeId: 'placeholder-value',
|
||||
* });
|
||||
* console.log(res.data);
|
||||
*
|
||||
* // Example response
|
||||
* // {
|
||||
* // "HTMLSnippet": "my_HTMLSnippet",
|
||||
* // "accountId": 0,
|
||||
* // "advertiserId": [],
|
||||
* // "advertiserName": "my_advertiserName",
|
||||
* // "agencyId": "my_agencyId",
|
||||
* // "apiUploadTimestamp": "my_apiUploadTimestamp",
|
||||
* // "attribute": [],
|
||||
* // "buyerCreativeId": "my_buyerCreativeId",
|
||||
* // "clickThroughUrl": [],
|
||||
* // "corrections": [],
|
||||
* // "disapprovalReasons": [],
|
||||
* // "filteringReasons": {},
|
||||
* // "height": 0,
|
||||
* // "impressionTrackingUrl": [],
|
||||
* // "kind": "my_kind",
|
||||
* // "productCategories": [],
|
||||
* // "restrictedCategories": [],
|
||||
* // "sensitiveCategories": [],
|
||||
* // "status": "my_status",
|
||||
* // "vendorType": [],
|
||||
* // "version": 0,
|
||||
* // "videoURL": "my_videoURL",
|
||||
* // "width": 0
|
||||
* // }
|
||||
* }
|
||||
*
|
||||
* main().catch(e => {
|
||||
* console.error(e);
|
||||
* throw e;
|
||||
* });
|
||||
*
|
||||
* ```
|
||||
*
|
||||
* @param params - Parameters for request
|
||||
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param callback - Optional callback that handles the response.
|
||||
* @returns A promise if used with async/await, or void if used with a callback.
|
||||
*/
|
||||
get(params: Params$Resource$Creatives$Get, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
||||
get(params?: Params$Resource$Creatives$Get, options?: MethodOptions): GaxiosPromise<Schema$Creative>;
|
||||
get(params: Params$Resource$Creatives$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
||||
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;
|
||||
/**
|
||||
* Submit a new creative.
|
||||
* @example
|
||||
* ```js
|
||||
* // Before running the sample:
|
||||
* // - Enable the API at:
|
||||
* // https://console.developers.google.com/apis/api/adexchangebuyer.googleapis.com
|
||||
* // - Login into gcloud by running:
|
||||
* // `$ gcloud auth application-default login`
|
||||
* // - Install the npm module by running:
|
||||
* // `$ npm install googleapis`
|
||||
*
|
||||
* const {google} = require('googleapis');
|
||||
* const adexchangebuyer = google.adexchangebuyer('v1.2');
|
||||
*
|
||||
* async function main() {
|
||||
* const auth = new google.auth.GoogleAuth({
|
||||
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
||||
* scopes: ['https://www.googleapis.com/auth/adexchange.buyer'],
|
||||
* });
|
||||
*
|
||||
* // Acquire an auth client, and bind it to all future calls
|
||||
* const authClient = await auth.getClient();
|
||||
* google.options({auth: authClient});
|
||||
*
|
||||
* // Do the magic
|
||||
* const res = await adexchangebuyer.creatives.insert({
|
||||
* // Request body metadata
|
||||
* requestBody: {
|
||||
* // request body parameters
|
||||
* // {
|
||||
* // "HTMLSnippet": "my_HTMLSnippet",
|
||||
* // "accountId": 0,
|
||||
* // "advertiserId": [],
|
||||
* // "advertiserName": "my_advertiserName",
|
||||
* // "agencyId": "my_agencyId",
|
||||
* // "apiUploadTimestamp": "my_apiUploadTimestamp",
|
||||
* // "attribute": [],
|
||||
* // "buyerCreativeId": "my_buyerCreativeId",
|
||||
* // "clickThroughUrl": [],
|
||||
* // "corrections": [],
|
||||
* // "disapprovalReasons": [],
|
||||
* // "filteringReasons": {},
|
||||
* // "height": 0,
|
||||
* // "impressionTrackingUrl": [],
|
||||
* // "kind": "my_kind",
|
||||
* // "productCategories": [],
|
||||
* // "restrictedCategories": [],
|
||||
* // "sensitiveCategories": [],
|
||||
* // "status": "my_status",
|
||||
* // "vendorType": [],
|
||||
* // "version": 0,
|
||||
* // "videoURL": "my_videoURL",
|
||||
* // "width": 0
|
||||
* // }
|
||||
* },
|
||||
* });
|
||||
* console.log(res.data);
|
||||
*
|
||||
* // Example response
|
||||
* // {
|
||||
* // "HTMLSnippet": "my_HTMLSnippet",
|
||||
* // "accountId": 0,
|
||||
* // "advertiserId": [],
|
||||
* // "advertiserName": "my_advertiserName",
|
||||
* // "agencyId": "my_agencyId",
|
||||
* // "apiUploadTimestamp": "my_apiUploadTimestamp",
|
||||
* // "attribute": [],
|
||||
* // "buyerCreativeId": "my_buyerCreativeId",
|
||||
* // "clickThroughUrl": [],
|
||||
* // "corrections": [],
|
||||
* // "disapprovalReasons": [],
|
||||
* // "filteringReasons": {},
|
||||
* // "height": 0,
|
||||
* // "impressionTrackingUrl": [],
|
||||
* // "kind": "my_kind",
|
||||
* // "productCategories": [],
|
||||
* // "restrictedCategories": [],
|
||||
* // "sensitiveCategories": [],
|
||||
* // "status": "my_status",
|
||||
* // "vendorType": [],
|
||||
* // "version": 0,
|
||||
* // "videoURL": "my_videoURL",
|
||||
* // "width": 0
|
||||
* // }
|
||||
* }
|
||||
*
|
||||
* main().catch(e => {
|
||||
* console.error(e);
|
||||
* throw e;
|
||||
* });
|
||||
*
|
||||
* ```
|
||||
*
|
||||
* @param params - Parameters for request
|
||||
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param callback - Optional callback that handles the response.
|
||||
* @returns A promise if used with async/await, or void if used with a callback.
|
||||
*/
|
||||
insert(params: Params$Resource$Creatives$Insert, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
||||
insert(params?: Params$Resource$Creatives$Insert, options?: MethodOptions): GaxiosPromise<Schema$Creative>;
|
||||
insert(params: Params$Resource$Creatives$Insert, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
||||
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;
|
||||
/**
|
||||
* Retrieves a list of the authenticated user's active creatives. A creative will be available 30-40 minutes after submission.
|
||||
* @example
|
||||
* ```js
|
||||
* // Before running the sample:
|
||||
* // - Enable the API at:
|
||||
* // https://console.developers.google.com/apis/api/adexchangebuyer.googleapis.com
|
||||
* // - Login into gcloud by running:
|
||||
* // `$ gcloud auth application-default login`
|
||||
* // - Install the npm module by running:
|
||||
* // `$ npm install googleapis`
|
||||
*
|
||||
* const {google} = require('googleapis');
|
||||
* const adexchangebuyer = google.adexchangebuyer('v1.2');
|
||||
*
|
||||
* async function main() {
|
||||
* const auth = new google.auth.GoogleAuth({
|
||||
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
||||
* scopes: ['https://www.googleapis.com/auth/adexchange.buyer'],
|
||||
* });
|
||||
*
|
||||
* // Acquire an auth client, and bind it to all future calls
|
||||
* const authClient = await auth.getClient();
|
||||
* google.options({auth: authClient});
|
||||
*
|
||||
* // Do the magic
|
||||
* const res = await adexchangebuyer.creatives.list({
|
||||
* // Maximum number of entries returned on one result page. If not set, the default is 100. Optional.
|
||||
* maxResults: 'placeholder-value',
|
||||
* // 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: 'placeholder-value',
|
||||
* // When specified, only creatives having the given status are returned.
|
||||
* statusFilter: 'placeholder-value',
|
||||
* });
|
||||
* console.log(res.data);
|
||||
*
|
||||
* // Example response
|
||||
* // {
|
||||
* // "items": [],
|
||||
* // "kind": "my_kind",
|
||||
* // "nextPageToken": "my_nextPageToken"
|
||||
* // }
|
||||
* }
|
||||
*
|
||||
* main().catch(e => {
|
||||
* console.error(e);
|
||||
* throw e;
|
||||
* });
|
||||
*
|
||||
* ```
|
||||
*
|
||||
* @param params - Parameters for request
|
||||
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param callback - Optional callback that handles the response.
|
||||
* @returns A promise if used with async/await, or void if used with a callback.
|
||||
*/
|
||||
list(params: Params$Resource$Creatives$List, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
||||
list(params?: Params$Resource$Creatives$List, options?: MethodOptions): GaxiosPromise<Schema$CreativesList>;
|
||||
list(params: Params$Resource$Creatives$List, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
||||
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;
|
||||
}
|
||||
export interface Params$Resource$Creatives$Get extends StandardParameters {
|
||||
/**
|
||||
* The id for the account that will serve this creative.
|
||||
*/
|
||||
accountId?: number;
|
||||
/**
|
||||
* The buyer-specific id for this creative.
|
||||
*/
|
||||
buyerCreativeId?: string;
|
||||
}
|
||||
export interface Params$Resource$Creatives$Insert extends StandardParameters {
|
||||
/**
|
||||
* Request body metadata
|
||||
*/
|
||||
requestBody?: Schema$Creative;
|
||||
}
|
||||
export interface Params$Resource$Creatives$List extends StandardParameters {
|
||||
/**
|
||||
* 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;
|
||||
}
|
||||
export {};
|
||||
}
|
||||
270
node_modules/googleapis/build/src/apis/adexchangebuyer/v1.2.js
generated
vendored
Normal file
270
node_modules/googleapis/build/src/apis/adexchangebuyer/v1.2.js
generated
vendored
Normal file
@@ -0,0 +1,270 @@
|
||||
"use strict";
|
||||
// Copyright 2020 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 });
|
||||
exports.adexchangebuyer_v1_2 = void 0;
|
||||
/* eslint-disable @typescript-eslint/no-explicit-any */
|
||||
/* eslint-disable @typescript-eslint/class-name-casing */
|
||||
/* eslint-disable @typescript-eslint/no-unused-vars */
|
||||
/* eslint-disable @typescript-eslint/no-empty-interface */
|
||||
/* eslint-disable @typescript-eslint/no-namespace */
|
||||
/* eslint-disable no-irregular-whitespace */
|
||||
const googleapis_common_1 = require("googleapis-common");
|
||||
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
|
||||
* ```js
|
||||
* const {google} = require('googleapis');
|
||||
* const adexchangebuyer = google.adexchangebuyer('v1.2');
|
||||
* ```
|
||||
*/
|
||||
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) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, 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) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, 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) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, 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) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, 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) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, 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) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, 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) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, googleapis_common_1.createAPIRequest)(parameters);
|
||||
}
|
||||
}
|
||||
}
|
||||
adexchangebuyer_v1_2.Resource$Creatives = Resource$Creatives;
|
||||
})(adexchangebuyer_v1_2 || (exports.adexchangebuyer_v1_2 = adexchangebuyer_v1_2 = {}));
|
||||
2447
node_modules/googleapis/build/src/apis/adexchangebuyer/v1.3.d.ts
generated
vendored
Normal file
2447
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
739
node_modules/googleapis/build/src/apis/adexchangebuyer/v1.3.js
generated
vendored
Normal file
739
node_modules/googleapis/build/src/apis/adexchangebuyer/v1.3.js
generated
vendored
Normal file
@@ -0,0 +1,739 @@
|
||||
"use strict";
|
||||
// Copyright 2020 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 });
|
||||
exports.adexchangebuyer_v1_3 = void 0;
|
||||
/* eslint-disable @typescript-eslint/no-explicit-any */
|
||||
/* eslint-disable @typescript-eslint/class-name-casing */
|
||||
/* eslint-disable @typescript-eslint/no-unused-vars */
|
||||
/* eslint-disable @typescript-eslint/no-empty-interface */
|
||||
/* eslint-disable @typescript-eslint/no-namespace */
|
||||
/* eslint-disable no-irregular-whitespace */
|
||||
const googleapis_common_1 = require("googleapis-common");
|
||||
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
|
||||
* ```js
|
||||
* const {google} = require('googleapis');
|
||||
* const adexchangebuyer = google.adexchangebuyer('v1.3');
|
||||
* ```
|
||||
*/
|
||||
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) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, 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) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, 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) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, 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) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, 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) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, 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) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, 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) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, 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) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, 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) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, 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) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, 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) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, 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) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, 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) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, 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) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, 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) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, 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) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, 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) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, 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) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, 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) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, 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) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, 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) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, googleapis_common_1.createAPIRequest)(parameters);
|
||||
}
|
||||
}
|
||||
}
|
||||
adexchangebuyer_v1_3.Resource$Pretargetingconfig = Resource$Pretargetingconfig;
|
||||
})(adexchangebuyer_v1_3 || (exports.adexchangebuyer_v1_3 = adexchangebuyer_v1_3 = {}));
|
||||
4840
node_modules/googleapis/build/src/apis/adexchangebuyer/v1.4.d.ts
generated
vendored
Normal file
4840
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
1306
node_modules/googleapis/build/src/apis/adexchangebuyer/v1.4.js
generated
vendored
Normal file
1306
node_modules/googleapis/build/src/apis/adexchangebuyer/v1.4.js
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
12
node_modules/googleapis/build/src/apis/adexchangebuyer2/index.d.ts
generated
vendored
Normal file
12
node_modules/googleapis/build/src/apis/adexchangebuyer2/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
/*! 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 };
|
||||
export { adexchangebuyer2_v2beta1 };
|
||||
export { AuthPlus, GlobalOptions, APIRequestContext, GoogleConfigurable, StreamMethodOptions, GaxiosPromise, MethodOptions, BodyResponseCallback, } from 'googleapis-common';
|
||||
30
node_modules/googleapis/build/src/apis/adexchangebuyer2/index.js
generated
vendored
Normal file
30
node_modules/googleapis/build/src/apis/adexchangebuyer2/index.js
generated
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
"use strict";
|
||||
// Copyright 2020 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 });
|
||||
exports.AuthPlus = exports.adexchangebuyer2_v2beta1 = exports.auth = exports.adexchangebuyer2 = exports.VERSIONS = void 0;
|
||||
/*! THIS FILE IS AUTO-GENERATED */
|
||||
const googleapis_common_1 = require("googleapis-common");
|
||||
const v2beta1_1 = require("./v2beta1");
|
||||
Object.defineProperty(exports, "adexchangebuyer2_v2beta1", { enumerable: true, get: function () { return v2beta1_1.adexchangebuyer2_v2beta1; } });
|
||||
exports.VERSIONS = {
|
||||
v2beta1: v2beta1_1.adexchangebuyer2_v2beta1.Adexchangebuyer2,
|
||||
};
|
||||
function adexchangebuyer2(versionOrOptions) {
|
||||
return (0, googleapis_common_1.getAPI)('adexchangebuyer2', versionOrOptions, exports.VERSIONS, this);
|
||||
}
|
||||
exports.adexchangebuyer2 = adexchangebuyer2;
|
||||
const auth = new googleapis_common_1.AuthPlus();
|
||||
exports.auth = auth;
|
||||
var googleapis_common_2 = require("googleapis-common");
|
||||
Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } });
|
||||
4088
node_modules/googleapis/build/src/apis/adexchangebuyer2/v2beta1.d.ts
generated
vendored
Normal file
4088
node_modules/googleapis/build/src/apis/adexchangebuyer2/v2beta1.d.ts
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
2322
node_modules/googleapis/build/src/apis/adexchangebuyer2/v2beta1.js
generated
vendored
Normal file
2322
node_modules/googleapis/build/src/apis/adexchangebuyer2/v2beta1.js
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
12
node_modules/googleapis/build/src/apis/adexperiencereport/index.d.ts
generated
vendored
Normal file
12
node_modules/googleapis/build/src/apis/adexperiencereport/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
/*! 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 };
|
||||
export { adexperiencereport_v1 };
|
||||
export { AuthPlus, GlobalOptions, APIRequestContext, GoogleConfigurable, StreamMethodOptions, GaxiosPromise, MethodOptions, BodyResponseCallback, } from 'googleapis-common';
|
||||
30
node_modules/googleapis/build/src/apis/adexperiencereport/index.js
generated
vendored
Normal file
30
node_modules/googleapis/build/src/apis/adexperiencereport/index.js
generated
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
"use strict";
|
||||
// Copyright 2020 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 });
|
||||
exports.AuthPlus = exports.adexperiencereport_v1 = exports.auth = exports.adexperiencereport = exports.VERSIONS = void 0;
|
||||
/*! THIS FILE IS AUTO-GENERATED */
|
||||
const googleapis_common_1 = require("googleapis-common");
|
||||
const v1_1 = require("./v1");
|
||||
Object.defineProperty(exports, "adexperiencereport_v1", { enumerable: true, get: function () { return v1_1.adexperiencereport_v1; } });
|
||||
exports.VERSIONS = {
|
||||
v1: v1_1.adexperiencereport_v1.Adexperiencereport,
|
||||
};
|
||||
function adexperiencereport(versionOrOptions) {
|
||||
return (0, googleapis_common_1.getAPI)('adexperiencereport', versionOrOptions, exports.VERSIONS, this);
|
||||
}
|
||||
exports.adexperiencereport = adexperiencereport;
|
||||
const auth = new googleapis_common_1.AuthPlus();
|
||||
exports.auth = auth;
|
||||
var googleapis_common_2 = require("googleapis-common");
|
||||
Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } });
|
||||
179
node_modules/googleapis/build/src/apis/adexperiencereport/v1.d.ts
generated
vendored
Normal file
179
node_modules/googleapis/build/src/apis/adexperiencereport/v1.d.ts
generated
vendored
Normal file
@@ -0,0 +1,179 @@
|
||||
/// <reference types="node" />
|
||||
import { OAuth2Client, JWT, Compute, UserRefreshClient, BaseExternalAccountClient, GaxiosPromise, GoogleConfigurable, MethodOptions, StreamMethodOptions, GlobalOptions, GoogleAuth, BodyResponseCallback, APIRequestContext } from 'googleapis-common';
|
||||
import { Readable } from 'stream';
|
||||
export declare namespace adexperiencereport_v1 {
|
||||
export interface Options extends GlobalOptions {
|
||||
version: 'v1';
|
||||
}
|
||||
interface StandardParameters {
|
||||
/**
|
||||
* Auth client or API Key for the request
|
||||
*/
|
||||
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient | BaseExternalAccountClient | GoogleAuth;
|
||||
/**
|
||||
* 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
|
||||
* ```js
|
||||
* const {google} = require('googleapis');
|
||||
* const adexperiencereport = google.adexperiencereport('v1');
|
||||
* ```
|
||||
*/
|
||||
export class Adexperiencereport {
|
||||
context: APIRequestContext;
|
||||
sites: Resource$Sites;
|
||||
violatingSites: Resource$Violatingsites;
|
||||
constructor(options: GlobalOptions, google?: GoogleConfigurable);
|
||||
}
|
||||
/**
|
||||
* A site's Ad Experience Report summary on a single platform.
|
||||
*/
|
||||
export interface Schema$PlatformSummary {
|
||||
/**
|
||||
* The site's Ad Experience Report status on this platform.
|
||||
*/
|
||||
betterAdsStatus?: string | null;
|
||||
/**
|
||||
* The time at which [enforcement](https://support.google.com/webtools/answer/7308033) against the site began or will begin on this platform. Not set when the filter_status is OFF.
|
||||
*/
|
||||
enforcementTime?: string | null;
|
||||
/**
|
||||
* The site's [enforcement status](https://support.google.com/webtools/answer/7308033) on this platform.
|
||||
*/
|
||||
filterStatus?: string | null;
|
||||
/**
|
||||
* The time at which the site's status last changed on this platform.
|
||||
*/
|
||||
lastChangeTime?: string | null;
|
||||
/**
|
||||
* The site's regions on this platform. No longer populated, because there is no longer any semantic difference between sites in different regions.
|
||||
*/
|
||||
region?: string[] | null;
|
||||
/**
|
||||
* A link to the full Ad Experience Report for the site on this platform.. Not set in ViolatingSitesResponse. Note that you must complete the [Search Console verification process](https://support.google.com/webmasters/answer/9008080) for the site before you can access the full report.
|
||||
*/
|
||||
reportUrl?: string | null;
|
||||
/**
|
||||
* Whether the site is currently under review on this platform.
|
||||
*/
|
||||
underReview?: boolean | null;
|
||||
}
|
||||
/**
|
||||
* Response message for GetSiteSummary.
|
||||
*/
|
||||
export interface Schema$SiteSummaryResponse {
|
||||
/**
|
||||
* The site's Ad Experience Report summary on desktop.
|
||||
*/
|
||||
desktopSummary?: Schema$PlatformSummary;
|
||||
/**
|
||||
* The site's Ad Experience Report summary on mobile.
|
||||
*/
|
||||
mobileSummary?: Schema$PlatformSummary;
|
||||
/**
|
||||
* The name of the reviewed site, e.g. `google.com`.
|
||||
*/
|
||||
reviewedSite?: string | null;
|
||||
}
|
||||
/**
|
||||
* Response message for ListViolatingSites.
|
||||
*/
|
||||
export interface Schema$ViolatingSitesResponse {
|
||||
/**
|
||||
* The list of violating sites.
|
||||
*/
|
||||
violatingSites?: Schema$SiteSummaryResponse[];
|
||||
}
|
||||
export class Resource$Sites {
|
||||
context: APIRequestContext;
|
||||
constructor(context: APIRequestContext);
|
||||
/**
|
||||
* Gets a site's Ad Experience Report summary.
|
||||
*
|
||||
* @param params - Parameters for request
|
||||
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param callback - Optional callback that handles the response.
|
||||
* @returns A promise if used with async/await, or void if used with a callback.
|
||||
*/
|
||||
get(params: Params$Resource$Sites$Get, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
||||
get(params?: Params$Resource$Sites$Get, options?: MethodOptions): GaxiosPromise<Schema$SiteSummaryResponse>;
|
||||
get(params: Params$Resource$Sites$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
||||
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;
|
||||
}
|
||||
export interface Params$Resource$Sites$Get extends StandardParameters {
|
||||
/**
|
||||
* Required. The name of the site whose summary to get, e.g. `sites/http%3A%2F%2Fwww.google.com%2F`. Format: `sites/{site\}`
|
||||
*/
|
||||
name?: string;
|
||||
}
|
||||
export class Resource$Violatingsites {
|
||||
context: APIRequestContext;
|
||||
constructor(context: APIRequestContext);
|
||||
/**
|
||||
* Lists sites that are failing in the Ad Experience Report on at least one platform.
|
||||
*
|
||||
* @param params - Parameters for request
|
||||
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param callback - Optional callback that handles the response.
|
||||
* @returns A promise if used with async/await, or void if used with a callback.
|
||||
*/
|
||||
list(params: Params$Resource$Violatingsites$List, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
||||
list(params?: Params$Resource$Violatingsites$List, options?: MethodOptions): GaxiosPromise<Schema$ViolatingSitesResponse>;
|
||||
list(params: Params$Resource$Violatingsites$List, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
||||
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;
|
||||
}
|
||||
export interface Params$Resource$Violatingsites$List extends StandardParameters {
|
||||
}
|
||||
export {};
|
||||
}
|
||||
119
node_modules/googleapis/build/src/apis/adexperiencereport/v1.js
generated
vendored
Normal file
119
node_modules/googleapis/build/src/apis/adexperiencereport/v1.js
generated
vendored
Normal file
@@ -0,0 +1,119 @@
|
||||
"use strict";
|
||||
// Copyright 2020 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 });
|
||||
exports.adexperiencereport_v1 = void 0;
|
||||
/* eslint-disable @typescript-eslint/no-explicit-any */
|
||||
/* eslint-disable @typescript-eslint/no-unused-vars */
|
||||
/* eslint-disable @typescript-eslint/no-empty-interface */
|
||||
/* eslint-disable @typescript-eslint/no-namespace */
|
||||
/* eslint-disable no-irregular-whitespace */
|
||||
const googleapis_common_1 = require("googleapis-common");
|
||||
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
|
||||
* ```js
|
||||
* const {google} = require('googleapis');
|
||||
* const adexperiencereport = google.adexperiencereport('v1');
|
||||
* ```
|
||||
*/
|
||||
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) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, 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) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, googleapis_common_1.createAPIRequest)(parameters);
|
||||
}
|
||||
}
|
||||
}
|
||||
adexperiencereport_v1.Resource$Violatingsites = Resource$Violatingsites;
|
||||
})(adexperiencereport_v1 || (exports.adexperiencereport_v1 = adexperiencereport_v1 = {}));
|
||||
346
node_modules/googleapis/build/src/apis/admin/datatransfer_v1.d.ts
generated
vendored
Normal file
346
node_modules/googleapis/build/src/apis/admin/datatransfer_v1.d.ts
generated
vendored
Normal file
@@ -0,0 +1,346 @@
|
||||
/// <reference types="node" />
|
||||
import { OAuth2Client, JWT, Compute, UserRefreshClient, BaseExternalAccountClient, GaxiosPromise, GoogleConfigurable, MethodOptions, StreamMethodOptions, GlobalOptions, GoogleAuth, BodyResponseCallback, APIRequestContext } from 'googleapis-common';
|
||||
import { Readable } from 'stream';
|
||||
export declare namespace admin_datatransfer_v1 {
|
||||
export interface Options extends GlobalOptions {
|
||||
version: 'datatransfer_v1';
|
||||
}
|
||||
interface StandardParameters {
|
||||
/**
|
||||
* Auth client or API Key for the request
|
||||
*/
|
||||
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient | BaseExternalAccountClient | GoogleAuth;
|
||||
/**
|
||||
* 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;
|
||||
}
|
||||
/**
|
||||
* Admin SDK API
|
||||
*
|
||||
* Admin SDK lets administrators of enterprise domains to view and manage resources like user, groups etc. It also provides audit and usage reports of domain.
|
||||
*
|
||||
* @example
|
||||
* ```js
|
||||
* const {google} = require('googleapis');
|
||||
* const admin = google.admin('datatransfer_v1');
|
||||
* ```
|
||||
*/
|
||||
export class Admin {
|
||||
context: APIRequestContext;
|
||||
applications: Resource$Applications;
|
||||
transfers: Resource$Transfers;
|
||||
constructor(options: GlobalOptions, google?: GoogleConfigurable);
|
||||
}
|
||||
/**
|
||||
* Application resources represent applications installed on the domain that support transferring ownership of user data.
|
||||
*/
|
||||
export interface Schema$Application {
|
||||
/**
|
||||
* Etag of the resource.
|
||||
*/
|
||||
etag?: string | null;
|
||||
/**
|
||||
* The application's ID. Retrievable by using the [`applications.list()`](/admin-sdk/data-transfer/reference/rest/v1/applications/list) method.
|
||||
*/
|
||||
id?: string | null;
|
||||
/**
|
||||
* Identifies the resource as a DataTransfer Application Resource.
|
||||
*/
|
||||
kind?: string | null;
|
||||
/**
|
||||
* The application's name.
|
||||
*/
|
||||
name?: string | null;
|
||||
/**
|
||||
* The list of all possible transfer parameters for this application. These parameters select which categories of the user's data to transfer.
|
||||
*/
|
||||
transferParams?: Schema$ApplicationTransferParam[];
|
||||
}
|
||||
/**
|
||||
* Template to map fields of ApplicationDataTransfer resource.
|
||||
*/
|
||||
export interface Schema$ApplicationDataTransfer {
|
||||
/**
|
||||
* The application's ID.
|
||||
*/
|
||||
applicationId?: string | null;
|
||||
/**
|
||||
* The transfer parameters for the application. These parameters are used to select the data which will get transferred in context of this application. For more information about the specific values available for each application, see the [Transfer parameters](/admin-sdk/data-transfer/v1/parameters) reference.
|
||||
*/
|
||||
applicationTransferParams?: Schema$ApplicationTransferParam[];
|
||||
/**
|
||||
* Read-only. Current status of transfer for this application.
|
||||
*/
|
||||
applicationTransferStatus?: string | null;
|
||||
}
|
||||
/**
|
||||
* Template for a collection of Applications.
|
||||
*/
|
||||
export interface Schema$ApplicationsListResponse {
|
||||
/**
|
||||
* The list of applications that support data transfer and are also installed for the customer.
|
||||
*/
|
||||
applications?: Schema$Application[];
|
||||
/**
|
||||
* ETag of the resource.
|
||||
*/
|
||||
etag?: string | null;
|
||||
/**
|
||||
* Identifies the resource as a collection of Applications.
|
||||
*/
|
||||
kind?: string | null;
|
||||
/**
|
||||
* Token to specify the next page in the list.
|
||||
*/
|
||||
nextPageToken?: string | null;
|
||||
}
|
||||
/**
|
||||
* Template for application transfer parameters.
|
||||
*/
|
||||
export interface Schema$ApplicationTransferParam {
|
||||
/**
|
||||
* The type of the transfer parameter, such as `PRIVACY_LEVEL`.
|
||||
*/
|
||||
key?: string | null;
|
||||
/**
|
||||
* The value of the transfer parameter, such as `PRIVATE` or `SHARED`.
|
||||
*/
|
||||
value?: string[] | null;
|
||||
}
|
||||
/**
|
||||
* A Transfer resource represents the transfer of the ownership of user data between users.
|
||||
*/
|
||||
export interface Schema$DataTransfer {
|
||||
/**
|
||||
* The list of per-application data transfer resources. It contains details of the applications associated with this transfer resource, and also specifies 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 | null;
|
||||
/**
|
||||
* Read-only. The transfer's ID.
|
||||
*/
|
||||
id?: string | null;
|
||||
/**
|
||||
* Identifies the resource as a DataTransfer request.
|
||||
*/
|
||||
kind?: string | null;
|
||||
/**
|
||||
* ID of the user to whom the data is being transferred.
|
||||
*/
|
||||
newOwnerUserId?: string | null;
|
||||
/**
|
||||
* ID of the user whose data is being transferred.
|
||||
*/
|
||||
oldOwnerUserId?: string | null;
|
||||
/**
|
||||
* Read-only. Overall transfer status.
|
||||
*/
|
||||
overallTransferStatusCode?: string | null;
|
||||
/**
|
||||
* Read-only. The time at which the data transfer was requested.
|
||||
*/
|
||||
requestTime?: string | null;
|
||||
}
|
||||
/**
|
||||
* Template for a collection of DataTransfer resources.
|
||||
*/
|
||||
export interface Schema$DataTransfersListResponse {
|
||||
/**
|
||||
* List of data transfer requests.
|
||||
*/
|
||||
dataTransfers?: Schema$DataTransfer[];
|
||||
/**
|
||||
* ETag of the resource.
|
||||
*/
|
||||
etag?: string | null;
|
||||
/**
|
||||
* Identifies the resource as a collection of data transfer requests.
|
||||
*/
|
||||
kind?: string | null;
|
||||
/**
|
||||
* Token to specify the next page in the list.
|
||||
*/
|
||||
nextPageToken?: string | null;
|
||||
}
|
||||
export class Resource$Applications {
|
||||
context: APIRequestContext;
|
||||
constructor(context: APIRequestContext);
|
||||
/**
|
||||
* Retrieves information about an application for the given application ID.
|
||||
*
|
||||
* @param params - Parameters for request
|
||||
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param callback - Optional callback that handles the response.
|
||||
* @returns A promise if used with async/await, or void if used with a callback.
|
||||
*/
|
||||
get(params: Params$Resource$Applications$Get, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
||||
get(params?: Params$Resource$Applications$Get, options?: MethodOptions): GaxiosPromise<Schema$Application>;
|
||||
get(params: Params$Resource$Applications$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
||||
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;
|
||||
/**
|
||||
* Lists the applications available for data transfer for a customer.
|
||||
*
|
||||
* @param params - Parameters for request
|
||||
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param callback - Optional callback that handles the response.
|
||||
* @returns A promise if used with async/await, or void if used with a callback.
|
||||
*/
|
||||
list(params: Params$Resource$Applications$List, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
||||
list(params?: Params$Resource$Applications$List, options?: MethodOptions): GaxiosPromise<Schema$ApplicationsListResponse>;
|
||||
list(params: Params$Resource$Applications$List, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
||||
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;
|
||||
}
|
||||
export interface Params$Resource$Applications$Get extends StandardParameters {
|
||||
/**
|
||||
* ID of the application resource to be retrieved.
|
||||
*/
|
||||
applicationId?: string;
|
||||
}
|
||||
export interface Params$Resource$Applications$List extends StandardParameters {
|
||||
/**
|
||||
* Immutable ID of the Google Workspace account.
|
||||
*/
|
||||
customerId?: string;
|
||||
/**
|
||||
* Maximum number of results to return. Default is 100.
|
||||
*/
|
||||
maxResults?: number;
|
||||
/**
|
||||
* Token to specify next page in the list.
|
||||
*/
|
||||
pageToken?: string;
|
||||
}
|
||||
export class Resource$Transfers {
|
||||
context: APIRequestContext;
|
||||
constructor(context: APIRequestContext);
|
||||
/**
|
||||
* Retrieves a data transfer request by its resource ID.
|
||||
*
|
||||
* @param params - Parameters for request
|
||||
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param callback - Optional callback that handles the response.
|
||||
* @returns A promise if used with async/await, or void if used with a callback.
|
||||
*/
|
||||
get(params: Params$Resource$Transfers$Get, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
||||
get(params?: Params$Resource$Transfers$Get, options?: MethodOptions): GaxiosPromise<Schema$DataTransfer>;
|
||||
get(params: Params$Resource$Transfers$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
||||
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;
|
||||
/**
|
||||
* Inserts a data transfer request. See the [Transfer parameters](/admin-sdk/data-transfer/v1/parameters) reference for specific application requirements.
|
||||
*
|
||||
* @param params - Parameters for request
|
||||
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param callback - Optional callback that handles the response.
|
||||
* @returns A promise if used with async/await, or void if used with a callback.
|
||||
*/
|
||||
insert(params: Params$Resource$Transfers$Insert, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
||||
insert(params?: Params$Resource$Transfers$Insert, options?: MethodOptions): GaxiosPromise<Schema$DataTransfer>;
|
||||
insert(params: Params$Resource$Transfers$Insert, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
||||
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;
|
||||
/**
|
||||
* Lists the transfers for a customer by source user, destination user, or status.
|
||||
*
|
||||
* @param params - Parameters for request
|
||||
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param callback - Optional callback that handles the response.
|
||||
* @returns A promise if used with async/await, or void if used with a callback.
|
||||
*/
|
||||
list(params: Params$Resource$Transfers$List, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
||||
list(params?: Params$Resource$Transfers$List, options?: MethodOptions): GaxiosPromise<Schema$DataTransfersListResponse>;
|
||||
list(params: Params$Resource$Transfers$List, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
||||
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;
|
||||
}
|
||||
export interface Params$Resource$Transfers$Get extends StandardParameters {
|
||||
/**
|
||||
* ID of the resource to be retrieved. This is returned in the response from the insert method.
|
||||
*/
|
||||
dataTransferId?: string;
|
||||
}
|
||||
export interface Params$Resource$Transfers$Insert extends StandardParameters {
|
||||
/**
|
||||
* Request body metadata
|
||||
*/
|
||||
requestBody?: Schema$DataTransfer;
|
||||
}
|
||||
export interface Params$Resource$Transfers$List extends StandardParameters {
|
||||
/**
|
||||
* Immutable ID of the Google Workspace 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;
|
||||
}
|
||||
export {};
|
||||
}
|
||||
209
node_modules/googleapis/build/src/apis/admin/datatransfer_v1.js
generated
vendored
Normal file
209
node_modules/googleapis/build/src/apis/admin/datatransfer_v1.js
generated
vendored
Normal file
@@ -0,0 +1,209 @@
|
||||
"use strict";
|
||||
// Copyright 2020 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 });
|
||||
exports.admin_datatransfer_v1 = void 0;
|
||||
/* eslint-disable @typescript-eslint/no-explicit-any */
|
||||
/* eslint-disable @typescript-eslint/no-unused-vars */
|
||||
/* eslint-disable @typescript-eslint/no-empty-interface */
|
||||
/* eslint-disable @typescript-eslint/no-namespace */
|
||||
/* eslint-disable no-irregular-whitespace */
|
||||
const googleapis_common_1 = require("googleapis-common");
|
||||
var admin_datatransfer_v1;
|
||||
(function (admin_datatransfer_v1) {
|
||||
/**
|
||||
* Admin SDK API
|
||||
*
|
||||
* Admin SDK lets administrators of enterprise domains to view and manage resources like user, groups etc. It also provides audit and usage reports of domain.
|
||||
*
|
||||
* @example
|
||||
* ```js
|
||||
* const {google} = require('googleapis');
|
||||
* const admin = google.admin('datatransfer_v1');
|
||||
* ```
|
||||
*/
|
||||
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://admin.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) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, 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://admin.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) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, 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://admin.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) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, 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://admin.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) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, 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://admin.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) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, googleapis_common_1.createAPIRequest)(parameters);
|
||||
}
|
||||
}
|
||||
}
|
||||
admin_datatransfer_v1.Resource$Transfers = Resource$Transfers;
|
||||
})(admin_datatransfer_v1 || (exports.admin_datatransfer_v1 = admin_datatransfer_v1 = {}));
|
||||
6162
node_modules/googleapis/build/src/apis/admin/directory_v1.d.ts
generated
vendored
Normal file
6162
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
4153
node_modules/googleapis/build/src/apis/admin/directory_v1.js
generated
vendored
Normal file
4153
node_modules/googleapis/build/src/apis/admin/directory_v1.js
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
22
node_modules/googleapis/build/src/apis/admin/index.d.ts
generated
vendored
Normal file
22
node_modules/googleapis/build/src/apis/admin/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
/*! 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 };
|
||||
export { admin_datatransfer_v1 };
|
||||
export { admin_directory_v1 };
|
||||
export { admin_reports_v1 };
|
||||
export { AuthPlus, GlobalOptions, APIRequestContext, GoogleConfigurable, StreamMethodOptions, GaxiosPromise, MethodOptions, BodyResponseCallback, } from 'googleapis-common';
|
||||
36
node_modules/googleapis/build/src/apis/admin/index.js
generated
vendored
Normal file
36
node_modules/googleapis/build/src/apis/admin/index.js
generated
vendored
Normal file
@@ -0,0 +1,36 @@
|
||||
"use strict";
|
||||
// Copyright 2020 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 });
|
||||
exports.AuthPlus = exports.admin_reports_v1 = exports.admin_directory_v1 = exports.admin_datatransfer_v1 = exports.auth = exports.admin = exports.VERSIONS = void 0;
|
||||
/*! THIS FILE IS AUTO-GENERATED */
|
||||
const googleapis_common_1 = require("googleapis-common");
|
||||
const datatransfer_v1_1 = require("./datatransfer_v1");
|
||||
Object.defineProperty(exports, "admin_datatransfer_v1", { enumerable: true, get: function () { return datatransfer_v1_1.admin_datatransfer_v1; } });
|
||||
const directory_v1_1 = require("./directory_v1");
|
||||
Object.defineProperty(exports, "admin_directory_v1", { enumerable: true, get: function () { return directory_v1_1.admin_directory_v1; } });
|
||||
const reports_v1_1 = require("./reports_v1");
|
||||
Object.defineProperty(exports, "admin_reports_v1", { enumerable: true, get: function () { return reports_v1_1.admin_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 (0, googleapis_common_1.getAPI)('admin', versionOrOptions, exports.VERSIONS, this);
|
||||
}
|
||||
exports.admin = admin;
|
||||
const auth = new googleapis_common_1.AuthPlus();
|
||||
exports.auth = auth;
|
||||
var googleapis_common_2 = require("googleapis-common");
|
||||
Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } });
|
||||
613
node_modules/googleapis/build/src/apis/admin/reports_v1.d.ts
generated
vendored
Normal file
613
node_modules/googleapis/build/src/apis/admin/reports_v1.d.ts
generated
vendored
Normal file
@@ -0,0 +1,613 @@
|
||||
/// <reference types="node" />
|
||||
import { OAuth2Client, JWT, Compute, UserRefreshClient, BaseExternalAccountClient, GaxiosPromise, GoogleConfigurable, MethodOptions, StreamMethodOptions, GlobalOptions, GoogleAuth, BodyResponseCallback, APIRequestContext } from 'googleapis-common';
|
||||
import { Readable } from 'stream';
|
||||
export declare namespace admin_reports_v1 {
|
||||
export interface Options extends GlobalOptions {
|
||||
version: 'reports_v1';
|
||||
}
|
||||
interface StandardParameters {
|
||||
/**
|
||||
* Auth client or API Key for the request
|
||||
*/
|
||||
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient | BaseExternalAccountClient | GoogleAuth;
|
||||
/**
|
||||
* 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;
|
||||
}
|
||||
/**
|
||||
* Admin SDK API
|
||||
*
|
||||
* Admin SDK lets administrators of enterprise domains to view and manage resources like user, groups etc. It also provides audit and usage reports of domain.
|
||||
*
|
||||
* @example
|
||||
* ```js
|
||||
* const {google} = require('googleapis');
|
||||
* const admin = google.admin('reports_v1');
|
||||
* ```
|
||||
*/
|
||||
export 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 activities.
|
||||
*/
|
||||
export interface Schema$Activities {
|
||||
/**
|
||||
* ETag of the resource.
|
||||
*/
|
||||
etag?: string | null;
|
||||
/**
|
||||
* Each activity record in the response.
|
||||
*/
|
||||
items?: Schema$Activity[];
|
||||
/**
|
||||
* The type of API resource. For an activity report, the value is `reports#activities`.
|
||||
*/
|
||||
kind?: string | null;
|
||||
/**
|
||||
* Token for retrieving the follow-on next page of the report. The `nextPageToken` value is used in the request's `pageToken` query string.
|
||||
*/
|
||||
nextPageToken?: string | null;
|
||||
}
|
||||
/**
|
||||
* JSON template for the activity resource.
|
||||
*/
|
||||
export interface Schema$Activity {
|
||||
/**
|
||||
* User doing the action.
|
||||
*/
|
||||
actor?: {
|
||||
callerType?: string;
|
||||
email?: string;
|
||||
key?: string;
|
||||
profileId?: string;
|
||||
} | null;
|
||||
/**
|
||||
* ETag of the entry.
|
||||
*/
|
||||
etag?: string | null;
|
||||
/**
|
||||
* Activity events in the report.
|
||||
*/
|
||||
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;
|
||||
}> | null;
|
||||
/**
|
||||
* Unique identifier for each activity record.
|
||||
*/
|
||||
id?: {
|
||||
applicationName?: string;
|
||||
customerId?: string;
|
||||
time?: string;
|
||||
uniqueQualifier?: string;
|
||||
} | null;
|
||||
/**
|
||||
* IP address of the user doing the action. This is the Internet Protocol (IP) address of the user when logging into Google Workspace, which may or may not reflect the user's physical location. For example, the IP address can be the user's proxy server's address or a virtual private network (VPN) address. The API supports IPv4 and IPv6.
|
||||
*/
|
||||
ipAddress?: string | null;
|
||||
/**
|
||||
* The type of API resource. For an activity report, the value is `audit#activity`.
|
||||
*/
|
||||
kind?: string | null;
|
||||
/**
|
||||
* This is the domain that is affected by the report's event. For example domain of Admin console or the Drive application's document owner.
|
||||
*/
|
||||
ownerDomain?: string | null;
|
||||
}
|
||||
/**
|
||||
* A notification channel used to watch for resource changes.
|
||||
*/
|
||||
export interface Schema$Channel {
|
||||
/**
|
||||
* The address where notifications are delivered for this channel.
|
||||
*/
|
||||
address?: string | null;
|
||||
/**
|
||||
* Date and time of notification channel expiration, expressed as a Unix timestamp, in milliseconds. Optional.
|
||||
*/
|
||||
expiration?: string | null;
|
||||
/**
|
||||
* A UUID or similar unique string that identifies this channel.
|
||||
*/
|
||||
id?: string | null;
|
||||
/**
|
||||
* Identifies this as a notification channel used to watch for changes to a resource, which is "`api#channel`".
|
||||
*/
|
||||
kind?: string | null;
|
||||
/**
|
||||
* Additional parameters controlling delivery channel behavior. Optional.
|
||||
*/
|
||||
params?: {
|
||||
[key: string]: string;
|
||||
} | null;
|
||||
/**
|
||||
* A Boolean value to indicate whether payload is wanted. A payload is data that is sent in the body of an HTTP POST, PUT, or PATCH message and contains important information about the request. Optional.
|
||||
*/
|
||||
payload?: boolean | null;
|
||||
/**
|
||||
* An opaque ID that identifies the resource being watched on this channel. Stable across different API versions.
|
||||
*/
|
||||
resourceId?: string | null;
|
||||
/**
|
||||
* A version-specific identifier for the watched resource.
|
||||
*/
|
||||
resourceUri?: string | null;
|
||||
/**
|
||||
* An arbitrary string delivered to the target address with each notification delivered over this channel. Optional.
|
||||
*/
|
||||
token?: string | null;
|
||||
/**
|
||||
* The type of delivery mechanism used for this channel. The value should be set to `"web_hook"`.
|
||||
*/
|
||||
type?: string | null;
|
||||
}
|
||||
/**
|
||||
* JSON template for a parameter used in various reports.
|
||||
*/
|
||||
export interface Schema$NestedParameter {
|
||||
/**
|
||||
* Boolean value of the parameter.
|
||||
*/
|
||||
boolValue?: boolean | null;
|
||||
/**
|
||||
* Integer value of the parameter.
|
||||
*/
|
||||
intValue?: string | null;
|
||||
/**
|
||||
* Multiple boolean values of the parameter.
|
||||
*/
|
||||
multiBoolValue?: boolean[] | null;
|
||||
/**
|
||||
* Multiple integer values of the parameter.
|
||||
*/
|
||||
multiIntValue?: string[] | null;
|
||||
/**
|
||||
* Multiple string values of the parameter.
|
||||
*/
|
||||
multiValue?: string[] | null;
|
||||
/**
|
||||
* The name of the parameter.
|
||||
*/
|
||||
name?: string | null;
|
||||
/**
|
||||
* String value of the parameter.
|
||||
*/
|
||||
value?: string | null;
|
||||
}
|
||||
/**
|
||||
* JSON template for a usage report.
|
||||
*/
|
||||
export interface Schema$UsageReport {
|
||||
/**
|
||||
* Output only. The date of the report request.
|
||||
*/
|
||||
date?: string | null;
|
||||
/**
|
||||
* Output only. Information about the type of the item.
|
||||
*/
|
||||
entity?: {
|
||||
customerId?: string;
|
||||
entityId?: string;
|
||||
profileId?: string;
|
||||
type?: string;
|
||||
userEmail?: string;
|
||||
} | null;
|
||||
/**
|
||||
* ETag of the resource.
|
||||
*/
|
||||
etag?: string | null;
|
||||
/**
|
||||
* The type of API resource. For a usage report, the value is `admin#reports#usageReport`.
|
||||
*/
|
||||
kind?: string | null;
|
||||
/**
|
||||
* Output only. Parameter value pairs for various applications. For the Entity Usage Report parameters and values, see [the Entity Usage parameters reference](/admin-sdk/reports/v1/reference/usage-ref-appendix-a/entities).
|
||||
*/
|
||||
parameters?: Array<{
|
||||
boolValue?: boolean;
|
||||
datetimeValue?: string;
|
||||
intValue?: string;
|
||||
msgValue?: Array<{
|
||||
[key: string]: any;
|
||||
}>;
|
||||
name?: string;
|
||||
stringValue?: string;
|
||||
}> | null;
|
||||
}
|
||||
export interface Schema$UsageReports {
|
||||
/**
|
||||
* ETag of the resource.
|
||||
*/
|
||||
etag?: string | null;
|
||||
/**
|
||||
* The type of API resource. For a usage report, the value is `admin#reports#usageReports`.
|
||||
*/
|
||||
kind?: string | null;
|
||||
/**
|
||||
* Token to specify next page. A report with multiple pages has a `nextPageToken` property in the response. For your follow-on requests getting all of the report's pages, enter the `nextPageToken` value in the `pageToken` query string.
|
||||
*/
|
||||
nextPageToken?: string | null;
|
||||
/**
|
||||
* Various application parameter records.
|
||||
*/
|
||||
usageReports?: Schema$UsageReport[];
|
||||
/**
|
||||
* Warnings, if any.
|
||||
*/
|
||||
warnings?: Array<{
|
||||
code?: string;
|
||||
data?: Array<{
|
||||
key?: string;
|
||||
value?: string;
|
||||
}>;
|
||||
message?: string;
|
||||
}> | null;
|
||||
}
|
||||
export class Resource$Activities {
|
||||
context: APIRequestContext;
|
||||
constructor(context: APIRequestContext);
|
||||
/**
|
||||
* Retrieves a list of activities for a specific customer's account and application such as the Admin console application or the Google Drive application. For more information, see the guides for administrator and Google Drive activity reports. For more information about the activity report's parameters, see the activity parameters reference guides.
|
||||
*
|
||||
* @param params - Parameters for request
|
||||
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param callback - Optional callback that handles the response.
|
||||
* @returns A promise if used with async/await, or void if used with a callback.
|
||||
*/
|
||||
list(params: Params$Resource$Activities$List, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
||||
list(params?: Params$Resource$Activities$List, options?: MethodOptions): GaxiosPromise<Schema$Activities>;
|
||||
list(params: Params$Resource$Activities$List, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
||||
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;
|
||||
/**
|
||||
* Start receiving notifications for account activities. For more information, see Receiving Push Notifications.
|
||||
*
|
||||
* @param params - Parameters for request
|
||||
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param callback - Optional callback that handles the response.
|
||||
* @returns A promise if used with async/await, or void if used with a callback.
|
||||
*/
|
||||
watch(params: Params$Resource$Activities$Watch, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
||||
watch(params?: Params$Resource$Activities$Watch, options?: MethodOptions): GaxiosPromise<Schema$Channel>;
|
||||
watch(params: Params$Resource$Activities$Watch, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
||||
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;
|
||||
}
|
||||
export interface Params$Resource$Activities$List extends StandardParameters {
|
||||
/**
|
||||
* The Internet Protocol (IP) Address of host where the event was performed. This is an additional way to filter a report's summary using the IP address of the user whose activity is being reported. This IP address may or may not reflect the user's physical location. For example, the IP address can be the user's proxy server's address or a virtual private network (VPN) address. This parameter supports both IPv4 and IPv6 address versions.
|
||||
*/
|
||||
actorIpAddress?: string;
|
||||
/**
|
||||
* Application name for which the events are to be retrieved.
|
||||
*/
|
||||
applicationName?: string;
|
||||
/**
|
||||
* The unique ID of the customer to retrieve data for.
|
||||
*/
|
||||
customerId?: string;
|
||||
/**
|
||||
* Sets the end of the range of time shown in the report. The date is in the RFC 3339 format, for example 2010-10-28T10:26:35.000Z. The default value is the approximate time of the API request. An API report has three basic time concepts: - *Date of the API's request for a report*: When the API created and retrieved the report. - *Report's start time*: The beginning of the timespan shown in the report. The `startTime` must be before the `endTime` (if specified) and the current time when the request is made, or the API returns an error. - *Report's end time*: The end of the timespan shown in the report. For example, the timespan of events summarized in a report can start in April and end in May. The report itself can be requested in August. If the `endTime` is not specified, the report returns all activities from the `startTime` until the current time or the most recent 180 days if the `startTime` is more than 180 days in the past.
|
||||
*/
|
||||
endTime?: string;
|
||||
/**
|
||||
* The name of the event being queried by the API. Each `eventName` is related to a specific Google Workspace service or feature which the API organizes into types of events. An example is the Google Calendar events in the Admin console application's reports. The Calendar Settings `type` structure has all of the Calendar `eventName` activities reported by the API. When an administrator changes a Calendar setting, the API reports this activity in the Calendar Settings `type` and `eventName` parameters. For more information about `eventName` query strings and parameters, see the list of event names for various applications above in `applicationName`.
|
||||
*/
|
||||
eventName?: string;
|
||||
/**
|
||||
* The `filters` query string is a comma-separated list composed of event parameters manipulated by relational operators. Event parameters are in the form `{parameter1 name\}{relational operator\}{parameter1 value\},{parameter2 name\}{relational operator\}{parameter2 value\},...` These event parameters are associated with a specific `eventName`. An empty report is returned if the request's parameter doesn't belong to the `eventName`. For more information about the available `eventName` fields for each application and their associated parameters, go to the [ApplicationName](#applicationname) table, then click through to the Activity Events page in the Appendix for the application you want. In the following Drive activity examples, the returned list consists of all `edit` events where the `doc_id` parameter value matches the conditions defined by the relational operator. In the first example, the request returns all edited documents with a `doc_id` value equal to `12345`. In the second example, the report returns any edited documents where the `doc_id` value is not equal to `98765`. The `<\>` operator is URL-encoded in the request's query string (`%3C%3E`): ``` GET...&eventName=edit&filters=doc_id==12345 GET...&eventName=edit&filters=doc_id%3C%3E98765 ``` A `filters` query supports these relational operators: * `==`—'equal to'. * `<\>`—'not equal to'. Must be URL-encoded (%3C%3E). * `<`—'less than'. Must be URL-encoded (%3C). * `<=`—'less than or equal to'. Must be URL-encoded (%3C=). * `\>`—'greater than'. Must be URL-encoded (%3E). * `\>=`—'greater than or equal to'. Must be URL-encoded (%3E=). **Note:** The API doesn't accept multiple values of the same parameter. If a parameter is supplied more than once in the API request, the API only accepts the last value of that parameter. In addition, if an invalid parameter is supplied in the API request, the API ignores that parameter and returns the response corresponding to the remaining valid parameters. If no parameters are requested, all parameters are returned.
|
||||
*/
|
||||
filters?: string;
|
||||
/**
|
||||
* Comma separated group ids (obfuscated) on which user activities are filtered, i.e. the response will contain activities for only those users that are a part of at least one of the group ids mentioned here. Format: "id:abc123,id:xyz456"
|
||||
*/
|
||||
groupIdFilter?: string;
|
||||
/**
|
||||
* Determines how many activity records are shown on each response page. For example, if the request sets `maxResults=1` and the report has two activities, the report has two pages. The response's `nextPageToken` property has the token to the second page. The `maxResults` query string is optional in the request. The default value is 1000.
|
||||
*/
|
||||
maxResults?: number;
|
||||
/**
|
||||
* ID of the organizational unit to report on. Activity records will be shown only for users who belong to the specified organizational unit. Data before Dec 17, 2018 doesn't appear in the filtered results.
|
||||
*/
|
||||
orgUnitID?: string;
|
||||
/**
|
||||
* The token to specify next page. A report with multiple pages has a `nextPageToken` property in the response. In your follow-on request getting the next page of the report, enter the `nextPageToken` value in the `pageToken` query string.
|
||||
*/
|
||||
pageToken?: string;
|
||||
/**
|
||||
* Sets the beginning of the range of time shown in the report. The date is in the RFC 3339 format, for example 2010-10-28T10:26:35.000Z. The report returns all activities from `startTime` until `endTime`. The `startTime` must be before the `endTime` (if specified) and the current time when the request is made, or the API returns an error.
|
||||
*/
|
||||
startTime?: string;
|
||||
/**
|
||||
* Represents the profile ID or the user email for which the data should be filtered. Can be `all` for all information, or `userKey` for a user's unique Google Workspace profile ID or their primary email address. Must not be a deleted user. For a deleted user, call `users.list` in Directory API with `showDeleted=true`, then use the returned `ID` as the `userKey`.
|
||||
*/
|
||||
userKey?: string;
|
||||
}
|
||||
export interface Params$Resource$Activities$Watch extends StandardParameters {
|
||||
/**
|
||||
* The Internet Protocol (IP) Address of host where the event was performed. This is an additional way to filter a report's summary using the IP address of the user whose activity is being reported. This IP address may or may not reflect the user's physical location. For example, the IP address can be the user's proxy server's address or a virtual private network (VPN) address. This parameter supports both IPv4 and IPv6 address versions.
|
||||
*/
|
||||
actorIpAddress?: string;
|
||||
/**
|
||||
* Application name for which the events are to be retrieved.
|
||||
*/
|
||||
applicationName?: string;
|
||||
/**
|
||||
* The unique ID of the customer to retrieve data for.
|
||||
*/
|
||||
customerId?: string;
|
||||
/**
|
||||
* Sets the end of the range of time shown in the report. The date is in the RFC 3339 format, for example 2010-10-28T10:26:35.000Z. The default value is the approximate time of the API request. An API report has three basic time concepts: - *Date of the API's request for a report*: When the API created and retrieved the report. - *Report's start time*: The beginning of the timespan shown in the report. The `startTime` must be before the `endTime` (if specified) and the current time when the request is made, or the API returns an error. - *Report's end time*: The end of the timespan shown in the report. For example, the timespan of events summarized in a report can start in April and end in May. The report itself can be requested in August. If the `endTime` is not specified, the report returns all activities from the `startTime` until the current time or the most recent 180 days if the `startTime` is more than 180 days in the past.
|
||||
*/
|
||||
endTime?: string;
|
||||
/**
|
||||
* The name of the event being queried by the API. Each `eventName` is related to a specific Google Workspace service or feature which the API organizes into types of events. An example is the Google Calendar events in the Admin console application's reports. The Calendar Settings `type` structure has all of the Calendar `eventName` activities reported by the API. When an administrator changes a Calendar setting, the API reports this activity in the Calendar Settings `type` and `eventName` parameters. For more information about `eventName` query strings and parameters, see the list of event names for various applications above in `applicationName`.
|
||||
*/
|
||||
eventName?: string;
|
||||
/**
|
||||
* The `filters` query string is a comma-separated list composed of event parameters manipulated by relational operators. Event parameters are in the form `{parameter1 name\}{relational operator\}{parameter1 value\},{parameter2 name\}{relational operator\}{parameter2 value\},...` These event parameters are associated with a specific `eventName`. An empty report is returned if the request's parameter doesn't belong to the `eventName`. For more information about the available `eventName` fields for each application and their associated parameters, go to the [ApplicationName](#applicationname) table, then click through to the Activity Events page in the Appendix for the application you want. In the following Drive activity examples, the returned list consists of all `edit` events where the `doc_id` parameter value matches the conditions defined by the relational operator. In the first example, the request returns all edited documents with a `doc_id` value equal to `12345`. In the second example, the report returns any edited documents where the `doc_id` value is not equal to `98765`. The `<\>` operator is URL-encoded in the request's query string (`%3C%3E`): ``` GET...&eventName=edit&filters=doc_id==12345 GET...&eventName=edit&filters=doc_id%3C%3E98765 ``` A `filters` query supports these relational operators: * `==`—'equal to'. * `<\>`—'not equal to'. Must be URL-encoded (%3C%3E). * `<`—'less than'. Must be URL-encoded (%3C). * `<=`—'less than or equal to'. Must be URL-encoded (%3C=). * `\>`—'greater than'. Must be URL-encoded (%3E). * `\>=`—'greater than or equal to'. Must be URL-encoded (%3E=). **Note:** The API doesn't accept multiple values of the same parameter. If a parameter is supplied more than once in the API request, the API only accepts the last value of that parameter. In addition, if an invalid parameter is supplied in the API request, the API ignores that parameter and returns the response corresponding to the remaining valid parameters. If no parameters are requested, all parameters are returned.
|
||||
*/
|
||||
filters?: string;
|
||||
/**
|
||||
* Comma separated group ids (obfuscated) on which user activities are filtered, i.e. the response will contain activities for only those users that are a part of at least one of the group ids mentioned here. Format: "id:abc123,id:xyz456"
|
||||
*/
|
||||
groupIdFilter?: string;
|
||||
/**
|
||||
* Determines how many activity records are shown on each response page. For example, if the request sets `maxResults=1` and the report has two activities, the report has two pages. The response's `nextPageToken` property has the token to the second page. The `maxResults` query string is optional in the request. The default value is 1000.
|
||||
*/
|
||||
maxResults?: number;
|
||||
/**
|
||||
* ID of the organizational unit to report on. Activity records will be shown only for users who belong to the specified organizational unit. Data before Dec 17, 2018 doesn't appear in the filtered results.
|
||||
*/
|
||||
orgUnitID?: string;
|
||||
/**
|
||||
* The token to specify next page. A report with multiple pages has a `nextPageToken` property in the response. In your follow-on request getting the next page of the report, enter the `nextPageToken` value in the `pageToken` query string.
|
||||
*/
|
||||
pageToken?: string;
|
||||
/**
|
||||
* Sets the beginning of the range of time shown in the report. The date is in the RFC 3339 format, for example 2010-10-28T10:26:35.000Z. The report returns all activities from `startTime` until `endTime`. The `startTime` must be before the `endTime` (if specified) and the current time when the request is made, or the API returns an error.
|
||||
*/
|
||||
startTime?: string;
|
||||
/**
|
||||
* Represents the profile ID or the user email for which the data should be filtered. Can be `all` for all information, or `userKey` for a user's unique Google Workspace profile ID or their primary email address. Must not be a deleted user. For a deleted user, call `users.list` in Directory API with `showDeleted=true`, then use the returned `ID` as the `userKey`.
|
||||
*/
|
||||
userKey?: string;
|
||||
/**
|
||||
* Request body metadata
|
||||
*/
|
||||
requestBody?: Schema$Channel;
|
||||
}
|
||||
export class Resource$Channels {
|
||||
context: APIRequestContext;
|
||||
constructor(context: APIRequestContext);
|
||||
/**
|
||||
* Stop watching resources through this channel.
|
||||
*
|
||||
* @param params - Parameters for request
|
||||
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param callback - Optional callback that handles the response.
|
||||
* @returns A promise if used with async/await, or void if used with a callback.
|
||||
*/
|
||||
stop(params: Params$Resource$Channels$Stop, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
||||
stop(params?: Params$Resource$Channels$Stop, options?: MethodOptions): GaxiosPromise<void>;
|
||||
stop(params: Params$Resource$Channels$Stop, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): 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;
|
||||
}
|
||||
export interface Params$Resource$Channels$Stop extends StandardParameters {
|
||||
/**
|
||||
* Request body metadata
|
||||
*/
|
||||
requestBody?: Schema$Channel;
|
||||
}
|
||||
export class Resource$Customerusagereports {
|
||||
context: APIRequestContext;
|
||||
constructor(context: APIRequestContext);
|
||||
/**
|
||||
* Retrieves a report which is a collection of properties and statistics for a specific customer's account. For more information, see the Customers Usage Report guide. For more information about the customer report's parameters, see the Customers Usage parameters reference guides.
|
||||
*
|
||||
* @param params - Parameters for request
|
||||
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param callback - Optional callback that handles the response.
|
||||
* @returns A promise if used with async/await, or void if used with a callback.
|
||||
*/
|
||||
get(params: Params$Resource$Customerusagereports$Get, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
||||
get(params?: Params$Resource$Customerusagereports$Get, options?: MethodOptions): GaxiosPromise<Schema$UsageReports>;
|
||||
get(params: Params$Resource$Customerusagereports$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
||||
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;
|
||||
}
|
||||
export interface Params$Resource$Customerusagereports$Get extends StandardParameters {
|
||||
/**
|
||||
* The unique ID of the customer to retrieve data for.
|
||||
*/
|
||||
customerId?: string;
|
||||
/**
|
||||
* Represents the date the usage occurred, based on UTC-8:00 (Pacific Standard Time). The timestamp is in the [ISO 8601 format](https://en.wikipedia.org/wiki/ISO_8601), `yyyy-mm-dd`.
|
||||
*/
|
||||
date?: string;
|
||||
/**
|
||||
* Token to specify next page. A report with multiple pages has a `nextPageToken` property in the response. For your follow-on requests getting all of the report's pages, enter the `nextPageToken` value in the `pageToken` query string.
|
||||
*/
|
||||
pageToken?: string;
|
||||
/**
|
||||
* The `parameters` query string is a comma-separated list of event parameters that refine a report's results. The parameter is associated with a specific application. The application values for the Customers usage report include `accounts`, `app_maker`, `apps_scripts`, `calendar`, `classroom`, `cros`, `docs`, `gmail`, `gplus`, `device_management`, `meet`, and `sites`. A `parameters` query string is in the CSV form of `app_name1:param_name1, app_name2:param_name2`. *Note:* The API doesn't accept multiple values of a parameter. If a particular parameter is supplied more than once in the API request, the API only accepts the last value of that request parameter. In addition, if an invalid request parameter is supplied in the API request, the API ignores that request parameter and returns the response corresponding to the remaining valid request parameters. An example of an invalid request parameter is one that does not belong to the application. If no parameters are requested, all parameters are returned.
|
||||
*/
|
||||
parameters?: string;
|
||||
}
|
||||
export class Resource$Entityusagereports {
|
||||
context: APIRequestContext;
|
||||
constructor(context: APIRequestContext);
|
||||
/**
|
||||
* Retrieves a report which is a collection of properties and statistics for entities used by users within the account. For more information, see the Entities Usage Report guide. For more information about the entities report's parameters, see the Entities Usage parameters reference guides.
|
||||
*
|
||||
* @param params - Parameters for request
|
||||
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param callback - Optional callback that handles the response.
|
||||
* @returns A promise if used with async/await, or void if used with a callback.
|
||||
*/
|
||||
get(params: Params$Resource$Entityusagereports$Get, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
||||
get(params?: Params$Resource$Entityusagereports$Get, options?: MethodOptions): GaxiosPromise<Schema$UsageReports>;
|
||||
get(params: Params$Resource$Entityusagereports$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
||||
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;
|
||||
}
|
||||
export interface Params$Resource$Entityusagereports$Get extends StandardParameters {
|
||||
/**
|
||||
* The unique ID of the customer to retrieve data for.
|
||||
*/
|
||||
customerId?: string;
|
||||
/**
|
||||
* Represents the date the usage occurred, based on UTC-8:00 (Pacific Standard Time). The timestamp is in the [ISO 8601 format](https://en.wikipedia.org/wiki/ISO_8601), `yyyy-mm-dd`.
|
||||
*/
|
||||
date?: string;
|
||||
/**
|
||||
* Represents the key of the object to filter the data with. It is a string which can take the value `all` to get activity events for all users, or any other value for an app-specific entity. For details on how to obtain the `entityKey` for a particular `entityType`, see the Entities Usage parameters reference guides.
|
||||
*/
|
||||
entityKey?: string;
|
||||
/**
|
||||
* Represents the type of entity for the report.
|
||||
*/
|
||||
entityType?: string;
|
||||
/**
|
||||
* The `filters` query string is a comma-separated list of an application's event parameters where the parameter's value is manipulated by a relational operator. The `filters` query string includes the name of the application whose usage is returned in the report. The application values for the Entities usage report include `accounts`, `docs`, and `gmail`. Filters are in the form `[application name]:parameter name[parameter value],...`. In this example, the `<\>` 'not equal to' operator is URL-encoded in the request's query string (%3C%3E): GET https://www.googleapis.com/admin/reports/v1/usage/gplus_communities/all/dates/2017-12-01 ?parameters=gplus:community_name,gplus:num_total_members &filters=gplus:num_total_members%3C%3E0 The relational operators include: - `==` - 'equal to'. - `<\>` - 'not equal to'. It is URL-encoded (%3C%3E). - `<` - 'less than'. It is URL-encoded (%3C). - `<=` - 'less than or equal to'. It is URL-encoded (%3C=). - `\>` - 'greater than'. It is URL-encoded (%3E). - `\>=` - 'greater than or equal to'. It is URL-encoded (%3E=). Filters can only be applied to numeric parameters.
|
||||
*/
|
||||
filters?: string;
|
||||
/**
|
||||
* Determines how many activity records are shown on each response page. For example, if the request sets `maxResults=1` and the report has two activities, the report has two pages. The response's `nextPageToken` property has the token to the second page.
|
||||
*/
|
||||
maxResults?: number;
|
||||
/**
|
||||
* Token to specify next page. A report with multiple pages has a `nextPageToken` property in the response. In your follow-on request getting the next page of the report, enter the `nextPageToken` value in the `pageToken` query string.
|
||||
*/
|
||||
pageToken?: string;
|
||||
/**
|
||||
* The `parameters` query string is a comma-separated list of event parameters that refine a report's results. The parameter is associated with a specific application. The application values for the Entities usage report are only `gplus`. A `parameter` query string is in the CSV form of `[app_name1:param_name1], [app_name2:param_name2]...`. *Note:* The API doesn't accept multiple values of a parameter. If a particular parameter is supplied more than once in the API request, the API only accepts the last value of that request parameter. In addition, if an invalid request parameter is supplied in the API request, the API ignores that request parameter and returns the response corresponding to the remaining valid request parameters. An example of an invalid request parameter is one that does not belong to the application. If no parameters are requested, all parameters are returned.
|
||||
*/
|
||||
parameters?: string;
|
||||
}
|
||||
export class Resource$Userusagereport {
|
||||
context: APIRequestContext;
|
||||
constructor(context: APIRequestContext);
|
||||
/**
|
||||
* Retrieves a report which is a collection of properties and statistics for a set of users with the account. For more information, see the User Usage Report guide. For more information about the user report's parameters, see the Users Usage parameters reference guides.
|
||||
*
|
||||
* @param params - Parameters for request
|
||||
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param callback - Optional callback that handles the response.
|
||||
* @returns A promise if used with async/await, or void if used with a callback.
|
||||
*/
|
||||
get(params: Params$Resource$Userusagereport$Get, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
||||
get(params?: Params$Resource$Userusagereport$Get, options?: MethodOptions): GaxiosPromise<Schema$UsageReports>;
|
||||
get(params: Params$Resource$Userusagereport$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
||||
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;
|
||||
}
|
||||
export interface Params$Resource$Userusagereport$Get extends StandardParameters {
|
||||
/**
|
||||
* The unique ID of the customer to retrieve data for.
|
||||
*/
|
||||
customerId?: string;
|
||||
/**
|
||||
* Represents the date the usage occurred, based on UTC-8:00 (Pacific Standard Time). The timestamp is in the [ISO 8601 format](https://en.wikipedia.org/wiki/ISO_8601), `yyyy-mm-dd`.
|
||||
*/
|
||||
date?: string;
|
||||
/**
|
||||
* The `filters` query string is a comma-separated list of an application's event parameters where the parameter's value is manipulated by a relational operator. The `filters` query string includes the name of the application whose usage is returned in the report. The application values for the Users Usage Report include `accounts`, `docs`, and `gmail`. Filters are in the form `[application name]:parameter name[parameter value],...`. In this example, the `<\>` 'not equal to' operator is URL-encoded in the request's query string (%3C%3E): GET https://www.googleapis.com/admin/reports/v1/usage/users/all/dates/2013-03-03 ?parameters=accounts:last_login_time &filters=accounts:last_login_time%3C%3E2010-10-28T10:26:35.000Z The relational operators include: - `==` - 'equal to'. - `<\>` - 'not equal to'. It is URL-encoded (%3C%3E). - `<` - 'less than'. It is URL-encoded (%3C). - `<=` - 'less than or equal to'. It is URL-encoded (%3C=). - `\>` - 'greater than'. It is URL-encoded (%3E). - `\>=` - 'greater than or equal to'. It is URL-encoded (%3E=).
|
||||
*/
|
||||
filters?: string;
|
||||
/**
|
||||
* Comma separated group ids (obfuscated) on which user activities are filtered, i.e. the response will contain activities for only those users that are a part of at least one of the group ids mentioned here. Format: "id:abc123,id:xyz456"
|
||||
*/
|
||||
groupIdFilter?: string;
|
||||
/**
|
||||
* Determines how many activity records are shown on each response page. For example, if the request sets `maxResults=1` and the report has two activities, the report has two pages. The response's `nextPageToken` property has the token to the second page. The `maxResults` query string is optional.
|
||||
*/
|
||||
maxResults?: number;
|
||||
/**
|
||||
* ID of the organizational unit to report on. User activity will be shown only for users who belong to the specified organizational unit. Data before Dec 17, 2018 doesn't appear in the filtered results.
|
||||
*/
|
||||
orgUnitID?: string;
|
||||
/**
|
||||
* Token to specify next page. A report with multiple pages has a `nextPageToken` property in the response. In your follow-on request getting the next page of the report, enter the `nextPageToken` value in the `pageToken` query string.
|
||||
*/
|
||||
pageToken?: string;
|
||||
/**
|
||||
* The `parameters` query string is a comma-separated list of event parameters that refine a report's results. The parameter is associated with a specific application. The application values for the Customers Usage report include `accounts`, `app_maker`, `apps_scripts`, `calendar`, `classroom`, `cros`, `docs`, `gmail`, `gplus`, `device_management`, `meet`, and `sites`. A `parameters` query string is in the CSV form of `app_name1:param_name1, app_name2:param_name2`. *Note:* The API doesn't accept multiple values of a parameter. If a particular parameter is supplied more than once in the API request, the API only accepts the last value of that request parameter. In addition, if an invalid request parameter is supplied in the API request, the API ignores that request parameter and returns the response corresponding to the remaining valid request parameters. An example of an invalid request parameter is one that does not belong to the application. If no parameters are requested, all parameters are returned.
|
||||
*/
|
||||
parameters?: string;
|
||||
/**
|
||||
* Represents the profile ID or the user email for which the data should be filtered. Can be `all` for all information, or `userKey` for a user's unique Google Workspace profile ID or their primary email address. Must not be a deleted user. For a deleted user, call `users.list` in Directory API with `showDeleted=true`, then use the returned `ID` as the `userKey`.
|
||||
*/
|
||||
userKey?: string;
|
||||
}
|
||||
export {};
|
||||
}
|
||||
265
node_modules/googleapis/build/src/apis/admin/reports_v1.js
generated
vendored
Normal file
265
node_modules/googleapis/build/src/apis/admin/reports_v1.js
generated
vendored
Normal file
@@ -0,0 +1,265 @@
|
||||
"use strict";
|
||||
// Copyright 2020 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 });
|
||||
exports.admin_reports_v1 = void 0;
|
||||
/* eslint-disable @typescript-eslint/no-explicit-any */
|
||||
/* eslint-disable @typescript-eslint/no-unused-vars */
|
||||
/* eslint-disable @typescript-eslint/no-empty-interface */
|
||||
/* eslint-disable @typescript-eslint/no-namespace */
|
||||
/* eslint-disable no-irregular-whitespace */
|
||||
const googleapis_common_1 = require("googleapis-common");
|
||||
var admin_reports_v1;
|
||||
(function (admin_reports_v1) {
|
||||
/**
|
||||
* Admin SDK API
|
||||
*
|
||||
* Admin SDK lets administrators of enterprise domains to view and manage resources like user, groups etc. It also provides audit and usage reports of domain.
|
||||
*
|
||||
* @example
|
||||
* ```js
|
||||
* const {google} = require('googleapis');
|
||||
* const admin = google.admin('reports_v1');
|
||||
* ```
|
||||
*/
|
||||
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://admin.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) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, 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://admin.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) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, 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://admin.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/admin/reports_v1/channels/stop').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, 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://admin.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) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, 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://admin.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) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, 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://admin.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) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, googleapis_common_1.createAPIRequest)(parameters);
|
||||
}
|
||||
}
|
||||
}
|
||||
admin_reports_v1.Resource$Userusagereport = Resource$Userusagereport;
|
||||
})(admin_reports_v1 || (exports.admin_reports_v1 = admin_reports_v1 = {}));
|
||||
17
node_modules/googleapis/build/src/apis/admob/index.d.ts
generated
vendored
Normal file
17
node_modules/googleapis/build/src/apis/admob/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
/*! THIS FILE IS AUTO-GENERATED */
|
||||
import { AuthPlus } from 'googleapis-common';
|
||||
import { admob_v1 } from './v1';
|
||||
import { admob_v1beta } from './v1beta';
|
||||
export declare const VERSIONS: {
|
||||
v1: typeof admob_v1.Admob;
|
||||
v1beta: typeof admob_v1beta.Admob;
|
||||
};
|
||||
export declare function admob(version: 'v1'): admob_v1.Admob;
|
||||
export declare function admob(options: admob_v1.Options): admob_v1.Admob;
|
||||
export declare function admob(version: 'v1beta'): admob_v1beta.Admob;
|
||||
export declare function admob(options: admob_v1beta.Options): admob_v1beta.Admob;
|
||||
declare const auth: AuthPlus;
|
||||
export { auth };
|
||||
export { admob_v1 };
|
||||
export { admob_v1beta };
|
||||
export { AuthPlus, GlobalOptions, APIRequestContext, GoogleConfigurable, StreamMethodOptions, GaxiosPromise, MethodOptions, BodyResponseCallback, } from 'googleapis-common';
|
||||
33
node_modules/googleapis/build/src/apis/admob/index.js
generated
vendored
Normal file
33
node_modules/googleapis/build/src/apis/admob/index.js
generated
vendored
Normal file
@@ -0,0 +1,33 @@
|
||||
"use strict";
|
||||
// Copyright 2020 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 });
|
||||
exports.AuthPlus = exports.admob_v1beta = exports.admob_v1 = exports.auth = exports.admob = exports.VERSIONS = void 0;
|
||||
/*! THIS FILE IS AUTO-GENERATED */
|
||||
const googleapis_common_1 = require("googleapis-common");
|
||||
const v1_1 = require("./v1");
|
||||
Object.defineProperty(exports, "admob_v1", { enumerable: true, get: function () { return v1_1.admob_v1; } });
|
||||
const v1beta_1 = require("./v1beta");
|
||||
Object.defineProperty(exports, "admob_v1beta", { enumerable: true, get: function () { return v1beta_1.admob_v1beta; } });
|
||||
exports.VERSIONS = {
|
||||
v1: v1_1.admob_v1.Admob,
|
||||
v1beta: v1beta_1.admob_v1beta.Admob,
|
||||
};
|
||||
function admob(versionOrOptions) {
|
||||
return (0, googleapis_common_1.getAPI)('admob', versionOrOptions, exports.VERSIONS, this);
|
||||
}
|
||||
exports.admob = admob;
|
||||
const auth = new googleapis_common_1.AuthPlus();
|
||||
exports.auth = auth;
|
||||
var googleapis_common_2 = require("googleapis-common");
|
||||
Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } });
|
||||
715
node_modules/googleapis/build/src/apis/admob/v1.d.ts
generated
vendored
Normal file
715
node_modules/googleapis/build/src/apis/admob/v1.d.ts
generated
vendored
Normal file
@@ -0,0 +1,715 @@
|
||||
/// <reference types="node" />
|
||||
import { OAuth2Client, JWT, Compute, UserRefreshClient, BaseExternalAccountClient, GaxiosPromise, GoogleConfigurable, MethodOptions, StreamMethodOptions, GlobalOptions, GoogleAuth, BodyResponseCallback, APIRequestContext } from 'googleapis-common';
|
||||
import { Readable } from 'stream';
|
||||
export declare namespace admob_v1 {
|
||||
export interface Options extends GlobalOptions {
|
||||
version: 'v1';
|
||||
}
|
||||
interface StandardParameters {
|
||||
/**
|
||||
* Auth client or API Key for the request
|
||||
*/
|
||||
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient | BaseExternalAccountClient | GoogleAuth;
|
||||
/**
|
||||
* 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;
|
||||
}
|
||||
/**
|
||||
* AdMob API
|
||||
*
|
||||
* The AdMob API allows publishers to programmatically get information about their AdMob account.
|
||||
*
|
||||
* @example
|
||||
* ```js
|
||||
* const {google} = require('googleapis');
|
||||
* const admob = google.admob('v1');
|
||||
* ```
|
||||
*/
|
||||
export class Admob {
|
||||
context: APIRequestContext;
|
||||
accounts: Resource$Accounts;
|
||||
constructor(options: GlobalOptions, google?: GoogleConfigurable);
|
||||
}
|
||||
/**
|
||||
* Describes an AdMob ad unit.
|
||||
*/
|
||||
export interface Schema$AdUnit {
|
||||
/**
|
||||
* AdFormat of the ad unit. Possible values are as follows: "APP_OPEN" - App Open ad format. "BANNER" - Banner ad format. "BANNER_INTERSTITIAL" - Legacy format that can be used as either banner or interstitial. This format can no longer be created but can be targeted by mediation groups. "INTERSTITIAL" - A full screen ad. Supported ad types are "RICH_MEDIA" and "VIDEO". "NATIVE" - Native ad format. "REWARDED" - An ad that, once viewed, gets a callback verifying the view so that a reward can be given to the user. Supported ad types are "RICH_MEDIA" (interactive) and video where video can not be excluded. "REWARDED_INTERSTITIAL" - Rewarded Interstitial ad format. Only supports video ad type. See https://support.google.com/admob/answer/9884467.
|
||||
*/
|
||||
adFormat?: string | null;
|
||||
/**
|
||||
* Ad media type supported by this ad unit. Possible values as follows: "RICH_MEDIA" - Text, image, and other non-video media. "VIDEO" - Video media.
|
||||
*/
|
||||
adTypes?: string[] | null;
|
||||
/**
|
||||
* The externally visible ID of the ad unit which can be used to integrate with the AdMob SDK. This is a read only property. Example: ca-app-pub-9876543210987654/0123456789
|
||||
*/
|
||||
adUnitId?: string | null;
|
||||
/**
|
||||
* The externally visible ID of the app this ad unit is associated with. Example: ca-app-pub-9876543210987654~0123456789
|
||||
*/
|
||||
appId?: string | null;
|
||||
/**
|
||||
* The display name of the ad unit as shown in the AdMob UI, which is provided by the user. The maximum length allowed is 80 characters.
|
||||
*/
|
||||
displayName?: string | null;
|
||||
/**
|
||||
* Resource name for this ad unit. Format is accounts/{publisher_id\}/adUnits/{ad_unit_id_fragment\} Example: accounts/pub-9876543210987654/adUnits/0123456789
|
||||
*/
|
||||
name?: string | null;
|
||||
}
|
||||
/**
|
||||
* Describes an AdMob app for a specific platform (For example: Android or iOS).
|
||||
*/
|
||||
export interface Schema$App {
|
||||
/**
|
||||
* Output only. The approval state for the app. The field is read-only.
|
||||
*/
|
||||
appApprovalState?: string | null;
|
||||
/**
|
||||
* The externally visible ID of the app which can be used to integrate with the AdMob SDK. This is a read only property. Example: ca-app-pub-9876543210987654~0123456789
|
||||
*/
|
||||
appId?: string | null;
|
||||
/**
|
||||
* Immutable. The information for an app that is linked to an app store. This field is present if and only if the app is linked to an app store.
|
||||
*/
|
||||
linkedAppInfo?: Schema$AppLinkedAppInfo;
|
||||
/**
|
||||
* The information for an app that is not linked to any app store. After an app is linked, this information is still retrivable. If no name is provided for the app upon creation, a placeholder name will be used.
|
||||
*/
|
||||
manualAppInfo?: Schema$AppManualAppInfo;
|
||||
/**
|
||||
* Resource name for this app. Format is accounts/{publisher_id\}/apps/{app_id_fragment\} Example: accounts/pub-9876543210987654/apps/0123456789
|
||||
*/
|
||||
name?: string | null;
|
||||
/**
|
||||
* Describes the platform of the app. Limited to "IOS" and "ANDROID".
|
||||
*/
|
||||
platform?: string | null;
|
||||
}
|
||||
/**
|
||||
* Information from the app store if the app is linked to an app store.
|
||||
*/
|
||||
export interface Schema$AppLinkedAppInfo {
|
||||
/**
|
||||
* The app store ID of the app; present if and only if the app is linked to an app store. If the app is added to the Google Play store, it will be the application ID of the app. For example: "com.example.myapp". See https://developer.android.com/studio/build/application-id. If the app is added to the Apple App Store, it will be app store ID. For example "105169111". Note that setting the app store id is considered an irreversible action. Once an app is linked, it cannot be unlinked.
|
||||
*/
|
||||
appStoreId?: string | null;
|
||||
/**
|
||||
* Output only. Display name of the app as it appears in the app store. This is an output-only field, and may be empty if the app cannot be found in the store.
|
||||
*/
|
||||
displayName?: string | null;
|
||||
}
|
||||
/**
|
||||
* Information provided for manual apps which are not linked to an application store (Example: Google Play, App Store).
|
||||
*/
|
||||
export interface Schema$AppManualAppInfo {
|
||||
/**
|
||||
* The display name of the app as shown in the AdMob UI, which is provided by the user. The maximum length allowed is 80 characters.
|
||||
*/
|
||||
displayName?: string | null;
|
||||
}
|
||||
/**
|
||||
* Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp
|
||||
*/
|
||||
export interface Schema$Date {
|
||||
/**
|
||||
* Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant.
|
||||
*/
|
||||
day?: number | null;
|
||||
/**
|
||||
* Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
|
||||
*/
|
||||
month?: number | null;
|
||||
/**
|
||||
* Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
|
||||
*/
|
||||
year?: number | null;
|
||||
}
|
||||
/**
|
||||
* Specification of a single date range. Both dates are inclusive.
|
||||
*/
|
||||
export interface Schema$DateRange {
|
||||
/**
|
||||
* End date of the date range, inclusive. Must be greater than or equal to the start date.
|
||||
*/
|
||||
endDate?: Schema$Date;
|
||||
/**
|
||||
* Start date of the date range, inclusive. Must be less than or equal to the end date.
|
||||
*/
|
||||
startDate?: Schema$Date;
|
||||
}
|
||||
/**
|
||||
* Request to generate an AdMob mediation report.
|
||||
*/
|
||||
export interface Schema$GenerateMediationReportRequest {
|
||||
/**
|
||||
* Network report specification.
|
||||
*/
|
||||
reportSpec?: Schema$MediationReportSpec;
|
||||
}
|
||||
/**
|
||||
* The streaming response for the AdMob mediation report where the first response contains the report header, then a stream of row responses, and finally a footer as the last response message. For example: [{ "header": { "date_range": { "start_date": {"year": 2018, "month": 9, "day": 1\}, "end_date": {"year": 2018, "month": 9, "day": 1\} \}, "localization_settings": { "currency_code": "USD", "language_code": "en-US" \} \} \}, { "row": { "dimension_values": { "DATE": {"value": "20180918"\}, "APP": { "value": "ca-app-pub-8123415297019784~1001342552", "display_label": "My app name!" \} \}, "metric_values": { "ESTIMATED_EARNINGS": {"decimal_value": "1324746"\} \} \} \}, { "footer": {"matching_row_count": 1\} \}]
|
||||
*/
|
||||
export interface Schema$GenerateMediationReportResponse {
|
||||
/**
|
||||
* Additional information about the generated report, such as warnings about the data.
|
||||
*/
|
||||
footer?: Schema$ReportFooter;
|
||||
/**
|
||||
* Report generation settings that describes the report contents, such as the report date range and localization settings.
|
||||
*/
|
||||
header?: Schema$ReportHeader;
|
||||
/**
|
||||
* Actual report data.
|
||||
*/
|
||||
row?: Schema$ReportRow;
|
||||
}
|
||||
/**
|
||||
* Request to generate an AdMob Network report.
|
||||
*/
|
||||
export interface Schema$GenerateNetworkReportRequest {
|
||||
/**
|
||||
* Network report specification.
|
||||
*/
|
||||
reportSpec?: Schema$NetworkReportSpec;
|
||||
}
|
||||
/**
|
||||
* The streaming response for the AdMob Network report where the first response contains the report header, then a stream of row responses, and finally a footer as the last response message. For example: [{ "header": { "dateRange": { "startDate": {"year": 2018, "month": 9, "day": 1\}, "endDate": {"year": 2018, "month": 9, "day": 1\} \}, "localizationSettings": { "currencyCode": "USD", "languageCode": "en-US" \} \} \}, { "row": { "dimensionValues": { "DATE": {"value": "20180918"\}, "APP": { "value": "ca-app-pub-8123415297019784~1001342552", displayLabel: "My app name!" \} \}, "metricValues": { "ESTIMATED_EARNINGS": {"microsValue": 6500000\} \} \} \}, { "footer": {"matchingRowCount": 1\} \}]
|
||||
*/
|
||||
export interface Schema$GenerateNetworkReportResponse {
|
||||
/**
|
||||
* Additional information about the generated report, such as warnings about the data.
|
||||
*/
|
||||
footer?: Schema$ReportFooter;
|
||||
/**
|
||||
* Report generation settings that describes the report contents, such as the report date range and localization settings.
|
||||
*/
|
||||
header?: Schema$ReportHeader;
|
||||
/**
|
||||
* Actual report data.
|
||||
*/
|
||||
row?: Schema$ReportRow;
|
||||
}
|
||||
/**
|
||||
* Response for the ad units list request.
|
||||
*/
|
||||
export interface Schema$ListAdUnitsResponse {
|
||||
/**
|
||||
* The resulting ad units for the requested account.
|
||||
*/
|
||||
adUnits?: Schema$AdUnit[];
|
||||
/**
|
||||
* If not empty, indicates that there may be more ad units for the request; this value should be passed in a new `ListAdUnitsRequest`.
|
||||
*/
|
||||
nextPageToken?: string | null;
|
||||
}
|
||||
/**
|
||||
* Response for the apps list request.
|
||||
*/
|
||||
export interface Schema$ListAppsResponse {
|
||||
/**
|
||||
* The resulting apps for the requested account.
|
||||
*/
|
||||
apps?: Schema$App[];
|
||||
/**
|
||||
* If not empty, indicates that there may be more apps for the request; this value should be passed in a new `ListAppsRequest`.
|
||||
*/
|
||||
nextPageToken?: string | null;
|
||||
}
|
||||
/**
|
||||
* Response for the publisher account list request.
|
||||
*/
|
||||
export interface Schema$ListPublisherAccountsResponse {
|
||||
/**
|
||||
* Publisher that the client credentials can access.
|
||||
*/
|
||||
account?: Schema$PublisherAccount[];
|
||||
/**
|
||||
* If not empty, indicates that there might be more accounts for the request; you must pass this value in a new `ListPublisherAccountsRequest`.
|
||||
*/
|
||||
nextPageToken?: string | null;
|
||||
}
|
||||
/**
|
||||
* Localization settings for reports, such as currency and language. It affects how metrics are calculated.
|
||||
*/
|
||||
export interface Schema$LocalizationSettings {
|
||||
/**
|
||||
* Currency code of the earning related metrics, which is the 3-letter code defined in ISO 4217. The daily average rate is used for the currency conversion. Defaults to the account currency code if unspecified.
|
||||
*/
|
||||
currencyCode?: string | null;
|
||||
/**
|
||||
* Language used for any localized text, such as some dimension value display labels. The language tag defined in the IETF BCP47. Defaults to 'en-US' if unspecified.
|
||||
*/
|
||||
languageCode?: string | null;
|
||||
}
|
||||
/**
|
||||
* The specification for generating an AdMob Mediation report. For example, the specification to get observed ECPM sliced by ad source and app for the 'US' and 'CN' countries can look like the following example: { "date_range": { "start_date": {"year": 2021, "month": 9, "day": 1\}, "end_date": {"year": 2021, "month": 9, "day": 30\} \}, "dimensions": ["AD_SOURCE", "APP", "COUNTRY"], "metrics": ["OBSERVED_ECPM"], "dimension_filters": [ { "dimension": "COUNTRY", "matches_any": {"values": [{"value": "US", "value": "CN"\}]\} \} ], "sort_conditions": [ {"dimension":"APP", order: "ASCENDING"\} ], "localization_settings": { "currency_code": "USD", "language_code": "en-US" \} \} For a better understanding, you can treat the preceding specification like the following pseudo SQL: SELECT AD_SOURCE, APP, COUNTRY, OBSERVED_ECPM FROM MEDIATION_REPORT WHERE DATE \>= '2021-09-01' AND DATE <= '2021-09-30' AND COUNTRY IN ('US', 'CN') GROUP BY AD_SOURCE, APP, COUNTRY ORDER BY APP ASC;
|
||||
*/
|
||||
export interface Schema$MediationReportSpec {
|
||||
/**
|
||||
* The date range for which the report is generated.
|
||||
*/
|
||||
dateRange?: Schema$DateRange;
|
||||
/**
|
||||
* Describes which report rows to match based on their dimension values.
|
||||
*/
|
||||
dimensionFilters?: Schema$MediationReportSpecDimensionFilter[];
|
||||
/**
|
||||
* List of dimensions of the report. The value combination of these dimensions determines the row of the report. If no dimensions are specified, the report returns a single row of requested metrics for the entire account.
|
||||
*/
|
||||
dimensions?: string[] | null;
|
||||
/**
|
||||
* Localization settings of the report.
|
||||
*/
|
||||
localizationSettings?: Schema$LocalizationSettings;
|
||||
/**
|
||||
* Maximum number of report data rows to return. If the value is not set, the API returns as many rows as possible, up to 100000. Acceptable values are 1-100000, inclusive. Values larger than 100000 return an error.
|
||||
*/
|
||||
maxReportRows?: number | null;
|
||||
/**
|
||||
* List of metrics of the report. A report must specify at least one metric.
|
||||
*/
|
||||
metrics?: string[] | null;
|
||||
/**
|
||||
* Describes the sorting of report rows. The order of the condition in the list defines its precedence; the earlier the condition, the higher its precedence. If no sort conditions are specified, the row ordering is undefined.
|
||||
*/
|
||||
sortConditions?: Schema$MediationReportSpecSortCondition[];
|
||||
/**
|
||||
* A report time zone. Accepts an IANA TZ name values, such as "America/Los_Angeles." If no time zone is defined, the account default takes effect. Check default value by the get account action. **Warning:** The "America/Los_Angeles" is the only supported value at the moment.
|
||||
*/
|
||||
timeZone?: string | null;
|
||||
}
|
||||
/**
|
||||
* Describes which report rows to match based on their dimension values.
|
||||
*/
|
||||
export interface Schema$MediationReportSpecDimensionFilter {
|
||||
/**
|
||||
* Applies the filter criterion to the specified dimension.
|
||||
*/
|
||||
dimension?: string | null;
|
||||
/**
|
||||
* Matches a row if its value for the specified dimension is in one of the values specified in this condition.
|
||||
*/
|
||||
matchesAny?: Schema$StringList;
|
||||
}
|
||||
/**
|
||||
* Sorting direction to be applied on a dimension or a metric.
|
||||
*/
|
||||
export interface Schema$MediationReportSpecSortCondition {
|
||||
/**
|
||||
* Sort by the specified dimension.
|
||||
*/
|
||||
dimension?: string | null;
|
||||
/**
|
||||
* Sort by the specified metric.
|
||||
*/
|
||||
metric?: string | null;
|
||||
/**
|
||||
* Sorting order of the dimension or metric.
|
||||
*/
|
||||
order?: string | null;
|
||||
}
|
||||
/**
|
||||
* The specification for generating an AdMob Network report. For example, the specification to get clicks and estimated earnings for only the 'US' and 'CN' countries can look like the following example: { 'date_range': { 'start_date': {'year': 2021, 'month': 9, 'day': 1\}, 'end_date': {'year': 2021, 'month': 9, 'day': 30\} \}, 'dimensions': ['DATE', 'APP', 'COUNTRY'], 'metrics': ['CLICKS', 'ESTIMATED_EARNINGS'], 'dimension_filters': [ { 'dimension': 'COUNTRY', 'matches_any': {'values': [{'value': 'US', 'value': 'CN'\}]\} \} ], 'sort_conditions': [ {'dimension':'APP', order: 'ASCENDING'\}, {'metric':'CLICKS', order: 'DESCENDING'\} ], 'localization_settings': { 'currency_code': 'USD', 'language_code': 'en-US' \} \} For a better understanding, you can treat the preceding specification like the following pseudo SQL: SELECT DATE, APP, COUNTRY, CLICKS, ESTIMATED_EARNINGS FROM NETWORK_REPORT WHERE DATE \>= '2021-09-01' AND DATE <= '2021-09-30' AND COUNTRY IN ('US', 'CN') GROUP BY DATE, APP, COUNTRY ORDER BY APP ASC, CLICKS DESC;
|
||||
*/
|
||||
export interface Schema$NetworkReportSpec {
|
||||
/**
|
||||
* The date range for which the report is generated.
|
||||
*/
|
||||
dateRange?: Schema$DateRange;
|
||||
/**
|
||||
* Describes which report rows to match based on their dimension values.
|
||||
*/
|
||||
dimensionFilters?: Schema$NetworkReportSpecDimensionFilter[];
|
||||
/**
|
||||
* List of dimensions of the report. The value combination of these dimensions determines the row of the report. If no dimensions are specified, the report returns a single row of requested metrics for the entire account.
|
||||
*/
|
||||
dimensions?: string[] | null;
|
||||
/**
|
||||
* Localization settings of the report.
|
||||
*/
|
||||
localizationSettings?: Schema$LocalizationSettings;
|
||||
/**
|
||||
* Maximum number of report data rows to return. If the value is not set, the API returns as many rows as possible, up to 100000. Acceptable values are 1-100000, inclusive. Values larger than 100000 return an error.
|
||||
*/
|
||||
maxReportRows?: number | null;
|
||||
/**
|
||||
* List of metrics of the report. A report must specify at least one metric.
|
||||
*/
|
||||
metrics?: string[] | null;
|
||||
/**
|
||||
* Describes the sorting of report rows. The order of the condition in the list defines its precedence; the earlier the condition, the higher its precedence. If no sort conditions are specified, the row ordering is undefined.
|
||||
*/
|
||||
sortConditions?: Schema$NetworkReportSpecSortCondition[];
|
||||
/**
|
||||
* A report time zone. Accepts an IANA TZ name values, such as "America/Los_Angeles." If no time zone is defined, the account default takes effect. Check default value by the get account action. **Warning:** The "America/Los_Angeles" is the only supported value at the moment.
|
||||
*/
|
||||
timeZone?: string | null;
|
||||
}
|
||||
/**
|
||||
* Describes which report rows to match based on their dimension values.
|
||||
*/
|
||||
export interface Schema$NetworkReportSpecDimensionFilter {
|
||||
/**
|
||||
* Applies the filter criterion to the specified dimension.
|
||||
*/
|
||||
dimension?: string | null;
|
||||
/**
|
||||
* Matches a row if its value for the specified dimension is in one of the values specified in this condition.
|
||||
*/
|
||||
matchesAny?: Schema$StringList;
|
||||
}
|
||||
/**
|
||||
* Sorting direction to be applied on a dimension or a metric.
|
||||
*/
|
||||
export interface Schema$NetworkReportSpecSortCondition {
|
||||
/**
|
||||
* Sort by the specified dimension.
|
||||
*/
|
||||
dimension?: string | null;
|
||||
/**
|
||||
* Sort by the specified metric.
|
||||
*/
|
||||
metric?: string | null;
|
||||
/**
|
||||
* Sorting order of the dimension or metric.
|
||||
*/
|
||||
order?: string | null;
|
||||
}
|
||||
/**
|
||||
* A publisher account contains information relevant to the use of this API, such as the time zone used for the reports.
|
||||
*/
|
||||
export interface Schema$PublisherAccount {
|
||||
/**
|
||||
* Currency code of the earning-related metrics, which is the 3-letter code defined in ISO 4217. The daily average rate is used for the currency conversion.
|
||||
*/
|
||||
currencyCode?: string | null;
|
||||
/**
|
||||
* Resource name of this account. Format is accounts/{publisher_id\}.
|
||||
*/
|
||||
name?: string | null;
|
||||
/**
|
||||
* The unique ID by which this publisher account can be identified in the API requests (for example, pub-1234567890).
|
||||
*/
|
||||
publisherId?: string | null;
|
||||
/**
|
||||
* The time zone that is used in reports that are generated for this account. The value is a time-zone ID as specified by the CLDR project, for example, "America/Los_Angeles".
|
||||
*/
|
||||
reportingTimeZone?: string | null;
|
||||
}
|
||||
/**
|
||||
* Groups data available after report generation, for example, warnings and row counts. Always sent as the last message in the stream response.
|
||||
*/
|
||||
export interface Schema$ReportFooter {
|
||||
/**
|
||||
* Total number of rows that matched the request. Warning: This count does NOT always match the number of rows in the response. Do not make that assumption when processing the response.
|
||||
*/
|
||||
matchingRowCount?: string | null;
|
||||
/**
|
||||
* Warnings associated with generation of the report.
|
||||
*/
|
||||
warnings?: Schema$ReportWarning[];
|
||||
}
|
||||
/**
|
||||
* Groups data helps to treat the generated report. Always sent as a first message in the stream response.
|
||||
*/
|
||||
export interface Schema$ReportHeader {
|
||||
/**
|
||||
* The date range for which the report is generated. This is identical to the range specified in the report request.
|
||||
*/
|
||||
dateRange?: Schema$DateRange;
|
||||
/**
|
||||
* Localization settings of the report. This is identical to the settings in the report request.
|
||||
*/
|
||||
localizationSettings?: Schema$LocalizationSettings;
|
||||
/**
|
||||
* The report time zone. The value is a time-zone ID as specified by the CLDR project, for example, "America/Los_Angeles".
|
||||
*/
|
||||
reportingTimeZone?: string | null;
|
||||
}
|
||||
/**
|
||||
* A row of the returning report.
|
||||
*/
|
||||
export interface Schema$ReportRow {
|
||||
/**
|
||||
* Map of dimension values in a row, with keys as enum name of the dimensions.
|
||||
*/
|
||||
dimensionValues?: {
|
||||
[key: string]: Schema$ReportRowDimensionValue;
|
||||
} | null;
|
||||
/**
|
||||
* Map of metric values in a row, with keys as enum name of the metrics. If a metric being requested has no value returned, the map will not include it.
|
||||
*/
|
||||
metricValues?: {
|
||||
[key: string]: Schema$ReportRowMetricValue;
|
||||
} | null;
|
||||
}
|
||||
/**
|
||||
* Representation of a dimension value.
|
||||
*/
|
||||
export interface Schema$ReportRowDimensionValue {
|
||||
/**
|
||||
* The localized string representation of the value. If unspecified, the display label should be derived from the value.
|
||||
*/
|
||||
displayLabel?: string | null;
|
||||
/**
|
||||
* Dimension value in the format specified in the report's spec Dimension enum.
|
||||
*/
|
||||
value?: string | null;
|
||||
}
|
||||
/**
|
||||
* Representation of a metric value.
|
||||
*/
|
||||
export interface Schema$ReportRowMetricValue {
|
||||
/**
|
||||
* Double precision (approximate) decimal values. Rates are from 0 to 1.
|
||||
*/
|
||||
doubleValue?: number | null;
|
||||
/**
|
||||
* Metric integer value.
|
||||
*/
|
||||
integerValue?: string | null;
|
||||
/**
|
||||
* Amount in micros. One million is equivalent to one unit. Currency value is in the unit (USD, EUR or other) specified by the request. For example, $6.50 whould be represented as 6500000 micros.
|
||||
*/
|
||||
microsValue?: string | null;
|
||||
}
|
||||
/**
|
||||
* Warnings associated with generation of the report.
|
||||
*/
|
||||
export interface Schema$ReportWarning {
|
||||
/**
|
||||
* Describes the details of the warning message, in English.
|
||||
*/
|
||||
description?: string | null;
|
||||
/**
|
||||
* Type of the warning.
|
||||
*/
|
||||
type?: string | null;
|
||||
}
|
||||
/**
|
||||
* List of string values.
|
||||
*/
|
||||
export interface Schema$StringList {
|
||||
/**
|
||||
* The string values.
|
||||
*/
|
||||
values?: string[] | null;
|
||||
}
|
||||
export class Resource$Accounts {
|
||||
context: APIRequestContext;
|
||||
adUnits: Resource$Accounts$Adunits;
|
||||
apps: Resource$Accounts$Apps;
|
||||
mediationReport: Resource$Accounts$Mediationreport;
|
||||
networkReport: Resource$Accounts$Networkreport;
|
||||
constructor(context: APIRequestContext);
|
||||
/**
|
||||
* Gets information about the specified AdMob publisher account.
|
||||
*
|
||||
* @param params - Parameters for request
|
||||
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param callback - Optional callback that handles the response.
|
||||
* @returns A promise if used with async/await, or void if used with a callback.
|
||||
*/
|
||||
get(params: Params$Resource$Accounts$Get, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
||||
get(params?: Params$Resource$Accounts$Get, options?: MethodOptions): GaxiosPromise<Schema$PublisherAccount>;
|
||||
get(params: Params$Resource$Accounts$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
||||
get(params: Params$Resource$Accounts$Get, options: MethodOptions | BodyResponseCallback<Schema$PublisherAccount>, callback: BodyResponseCallback<Schema$PublisherAccount>): void;
|
||||
get(params: Params$Resource$Accounts$Get, callback: BodyResponseCallback<Schema$PublisherAccount>): void;
|
||||
get(callback: BodyResponseCallback<Schema$PublisherAccount>): void;
|
||||
/**
|
||||
* Lists the AdMob publisher account that was most recently signed in to from the AdMob UI. For more information, see https://support.google.com/admob/answer/10243672.
|
||||
*
|
||||
* @param params - Parameters for request
|
||||
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param callback - Optional callback that handles the response.
|
||||
* @returns A promise if used with async/await, or void if used with a callback.
|
||||
*/
|
||||
list(params: Params$Resource$Accounts$List, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
||||
list(params?: Params$Resource$Accounts$List, options?: MethodOptions): GaxiosPromise<Schema$ListPublisherAccountsResponse>;
|
||||
list(params: Params$Resource$Accounts$List, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
||||
list(params: Params$Resource$Accounts$List, options: MethodOptions | BodyResponseCallback<Schema$ListPublisherAccountsResponse>, callback: BodyResponseCallback<Schema$ListPublisherAccountsResponse>): void;
|
||||
list(params: Params$Resource$Accounts$List, callback: BodyResponseCallback<Schema$ListPublisherAccountsResponse>): void;
|
||||
list(callback: BodyResponseCallback<Schema$ListPublisherAccountsResponse>): void;
|
||||
}
|
||||
export interface Params$Resource$Accounts$Get extends StandardParameters {
|
||||
/**
|
||||
* Resource name of the publisher account to retrieve. Example: accounts/pub-9876543210987654
|
||||
*/
|
||||
name?: string;
|
||||
}
|
||||
export interface Params$Resource$Accounts$List extends StandardParameters {
|
||||
/**
|
||||
* Maximum number of accounts to return.
|
||||
*/
|
||||
pageSize?: number;
|
||||
/**
|
||||
* The value returned by the last `ListPublisherAccountsResponse`; indicates that this is a continuation of a prior `ListPublisherAccounts` call, and that the system should return the next page of data.
|
||||
*/
|
||||
pageToken?: string;
|
||||
}
|
||||
export class Resource$Accounts$Adunits {
|
||||
context: APIRequestContext;
|
||||
constructor(context: APIRequestContext);
|
||||
/**
|
||||
* List the ad units under the specified AdMob account.
|
||||
*
|
||||
* @param params - Parameters for request
|
||||
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param callback - Optional callback that handles the response.
|
||||
* @returns A promise if used with async/await, or void if used with a callback.
|
||||
*/
|
||||
list(params: Params$Resource$Accounts$Adunits$List, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
||||
list(params?: Params$Resource$Accounts$Adunits$List, options?: MethodOptions): GaxiosPromise<Schema$ListAdUnitsResponse>;
|
||||
list(params: Params$Resource$Accounts$Adunits$List, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
||||
list(params: Params$Resource$Accounts$Adunits$List, options: MethodOptions | BodyResponseCallback<Schema$ListAdUnitsResponse>, callback: BodyResponseCallback<Schema$ListAdUnitsResponse>): void;
|
||||
list(params: Params$Resource$Accounts$Adunits$List, callback: BodyResponseCallback<Schema$ListAdUnitsResponse>): void;
|
||||
list(callback: BodyResponseCallback<Schema$ListAdUnitsResponse>): void;
|
||||
}
|
||||
export interface Params$Resource$Accounts$Adunits$List extends StandardParameters {
|
||||
/**
|
||||
* The maximum number of ad units to return. If unspecified or 0, at most 10,000 ad units will be returned. The maximum value is 20,000; values above 20,000 will be coerced to 20,000.
|
||||
*/
|
||||
pageSize?: number;
|
||||
/**
|
||||
* The value returned by the last `ListAdUnitsResponse`; indicates that this is a continuation of a prior `ListAdUnits` call, and that the system should return the next page of data.
|
||||
*/
|
||||
pageToken?: string;
|
||||
/**
|
||||
* Required. Resource name of the account to list ad units for. Example: accounts/pub-9876543210987654
|
||||
*/
|
||||
parent?: string;
|
||||
}
|
||||
export class Resource$Accounts$Apps {
|
||||
context: APIRequestContext;
|
||||
constructor(context: APIRequestContext);
|
||||
/**
|
||||
* List the apps under the specified AdMob account.
|
||||
*
|
||||
* @param params - Parameters for request
|
||||
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param callback - Optional callback that handles the response.
|
||||
* @returns A promise if used with async/await, or void if used with a callback.
|
||||
*/
|
||||
list(params: Params$Resource$Accounts$Apps$List, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
||||
list(params?: Params$Resource$Accounts$Apps$List, options?: MethodOptions): GaxiosPromise<Schema$ListAppsResponse>;
|
||||
list(params: Params$Resource$Accounts$Apps$List, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
||||
list(params: Params$Resource$Accounts$Apps$List, options: MethodOptions | BodyResponseCallback<Schema$ListAppsResponse>, callback: BodyResponseCallback<Schema$ListAppsResponse>): void;
|
||||
list(params: Params$Resource$Accounts$Apps$List, callback: BodyResponseCallback<Schema$ListAppsResponse>): void;
|
||||
list(callback: BodyResponseCallback<Schema$ListAppsResponse>): void;
|
||||
}
|
||||
export interface Params$Resource$Accounts$Apps$List extends StandardParameters {
|
||||
/**
|
||||
* The maximum number of apps to return. If unspecified or 0, at most 10,000 apps will be returned. The maximum value is 20,000; values above 20,000 will be coerced to 20,000.
|
||||
*/
|
||||
pageSize?: number;
|
||||
/**
|
||||
* The value returned by the last `ListAppsResponse`; indicates that this is a continuation of a prior `ListApps` call, and that the system should return the next page of data.
|
||||
*/
|
||||
pageToken?: string;
|
||||
/**
|
||||
* Required. Resource name of the account to list apps for. Example: accounts/pub-9876543210987654
|
||||
*/
|
||||
parent?: string;
|
||||
}
|
||||
export class Resource$Accounts$Mediationreport {
|
||||
context: APIRequestContext;
|
||||
constructor(context: APIRequestContext);
|
||||
/**
|
||||
* Generates an AdMob mediation report based on the provided report specification. Returns result of a server-side streaming RPC. The result is returned in a sequence of responses.
|
||||
*
|
||||
* @param params - Parameters for request
|
||||
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param callback - Optional callback that handles the response.
|
||||
* @returns A promise if used with async/await, or void if used with a callback.
|
||||
*/
|
||||
generate(params: Params$Resource$Accounts$Mediationreport$Generate, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
||||
generate(params?: Params$Resource$Accounts$Mediationreport$Generate, options?: MethodOptions): GaxiosPromise<Schema$GenerateMediationReportResponse>;
|
||||
generate(params: Params$Resource$Accounts$Mediationreport$Generate, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
||||
generate(params: Params$Resource$Accounts$Mediationreport$Generate, options: MethodOptions | BodyResponseCallback<Schema$GenerateMediationReportResponse>, callback: BodyResponseCallback<Schema$GenerateMediationReportResponse>): void;
|
||||
generate(params: Params$Resource$Accounts$Mediationreport$Generate, callback: BodyResponseCallback<Schema$GenerateMediationReportResponse>): void;
|
||||
generate(callback: BodyResponseCallback<Schema$GenerateMediationReportResponse>): void;
|
||||
}
|
||||
export interface Params$Resource$Accounts$Mediationreport$Generate extends StandardParameters {
|
||||
/**
|
||||
* Resource name of the account to generate the report for. Example: accounts/pub-9876543210987654
|
||||
*/
|
||||
parent?: string;
|
||||
/**
|
||||
* Request body metadata
|
||||
*/
|
||||
requestBody?: Schema$GenerateMediationReportRequest;
|
||||
}
|
||||
export class Resource$Accounts$Networkreport {
|
||||
context: APIRequestContext;
|
||||
constructor(context: APIRequestContext);
|
||||
/**
|
||||
* Generates an AdMob Network report based on the provided report specification. Returns result of a server-side streaming RPC. The result is returned in a sequence of responses.
|
||||
*
|
||||
* @param params - Parameters for request
|
||||
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param callback - Optional callback that handles the response.
|
||||
* @returns A promise if used with async/await, or void if used with a callback.
|
||||
*/
|
||||
generate(params: Params$Resource$Accounts$Networkreport$Generate, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
||||
generate(params?: Params$Resource$Accounts$Networkreport$Generate, options?: MethodOptions): GaxiosPromise<Schema$GenerateNetworkReportResponse>;
|
||||
generate(params: Params$Resource$Accounts$Networkreport$Generate, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
||||
generate(params: Params$Resource$Accounts$Networkreport$Generate, options: MethodOptions | BodyResponseCallback<Schema$GenerateNetworkReportResponse>, callback: BodyResponseCallback<Schema$GenerateNetworkReportResponse>): void;
|
||||
generate(params: Params$Resource$Accounts$Networkreport$Generate, callback: BodyResponseCallback<Schema$GenerateNetworkReportResponse>): void;
|
||||
generate(callback: BodyResponseCallback<Schema$GenerateNetworkReportResponse>): void;
|
||||
}
|
||||
export interface Params$Resource$Accounts$Networkreport$Generate extends StandardParameters {
|
||||
/**
|
||||
* Resource name of the account to generate the report for. Example: accounts/pub-9876543210987654
|
||||
*/
|
||||
parent?: string;
|
||||
/**
|
||||
* Request body metadata
|
||||
*/
|
||||
requestBody?: Schema$GenerateNetworkReportRequest;
|
||||
}
|
||||
export {};
|
||||
}
|
||||
263
node_modules/googleapis/build/src/apis/admob/v1.js
generated
vendored
Normal file
263
node_modules/googleapis/build/src/apis/admob/v1.js
generated
vendored
Normal file
@@ -0,0 +1,263 @@
|
||||
"use strict";
|
||||
// Copyright 2020 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 });
|
||||
exports.admob_v1 = void 0;
|
||||
/* eslint-disable @typescript-eslint/no-explicit-any */
|
||||
/* eslint-disable @typescript-eslint/no-unused-vars */
|
||||
/* eslint-disable @typescript-eslint/no-empty-interface */
|
||||
/* eslint-disable @typescript-eslint/no-namespace */
|
||||
/* eslint-disable no-irregular-whitespace */
|
||||
const googleapis_common_1 = require("googleapis-common");
|
||||
var admob_v1;
|
||||
(function (admob_v1) {
|
||||
/**
|
||||
* AdMob API
|
||||
*
|
||||
* The AdMob API allows publishers to programmatically get information about their AdMob account.
|
||||
*
|
||||
* @example
|
||||
* ```js
|
||||
* const {google} = require('googleapis');
|
||||
* const admob = google.admob('v1');
|
||||
* ```
|
||||
*/
|
||||
class Admob {
|
||||
constructor(options, google) {
|
||||
this.context = {
|
||||
_options: options || {},
|
||||
google,
|
||||
};
|
||||
this.accounts = new Resource$Accounts(this.context);
|
||||
}
|
||||
}
|
||||
admob_v1.Admob = Admob;
|
||||
class Resource$Accounts {
|
||||
constructor(context) {
|
||||
this.context = context;
|
||||
this.adUnits = new Resource$Accounts$Adunits(this.context);
|
||||
this.apps = new Resource$Accounts$Apps(this.context);
|
||||
this.mediationReport = new Resource$Accounts$Mediationreport(this.context);
|
||||
this.networkReport = new Resource$Accounts$Networkreport(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://admob.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) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, 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://admob.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/accounts').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, googleapis_common_1.createAPIRequest)(parameters);
|
||||
}
|
||||
}
|
||||
}
|
||||
admob_v1.Resource$Accounts = Resource$Accounts;
|
||||
class Resource$Accounts$Adunits {
|
||||
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://admob.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/{+parent}/adUnits').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: ['parent'],
|
||||
pathParams: ['parent'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, googleapis_common_1.createAPIRequest)(parameters);
|
||||
}
|
||||
}
|
||||
}
|
||||
admob_v1.Resource$Accounts$Adunits = Resource$Accounts$Adunits;
|
||||
class Resource$Accounts$Apps {
|
||||
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://admob.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/{+parent}/apps').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: ['parent'],
|
||||
pathParams: ['parent'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, googleapis_common_1.createAPIRequest)(parameters);
|
||||
}
|
||||
}
|
||||
}
|
||||
admob_v1.Resource$Accounts$Apps = Resource$Accounts$Apps;
|
||||
class Resource$Accounts$Mediationreport {
|
||||
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://admob.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/{+parent}/mediationReport:generate').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: ['parent'],
|
||||
pathParams: ['parent'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, googleapis_common_1.createAPIRequest)(parameters);
|
||||
}
|
||||
}
|
||||
}
|
||||
admob_v1.Resource$Accounts$Mediationreport = Resource$Accounts$Mediationreport;
|
||||
class Resource$Accounts$Networkreport {
|
||||
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://admob.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/{+parent}/networkReport:generate').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: ['parent'],
|
||||
pathParams: ['parent'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, googleapis_common_1.createAPIRequest)(parameters);
|
||||
}
|
||||
}
|
||||
}
|
||||
admob_v1.Resource$Accounts$Networkreport = Resource$Accounts$Networkreport;
|
||||
})(admob_v1 || (exports.admob_v1 = admob_v1 = {}));
|
||||
1477
node_modules/googleapis/build/src/apis/admob/v1beta.d.ts
generated
vendored
Normal file
1477
node_modules/googleapis/build/src/apis/admob/v1beta.d.ts
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
718
node_modules/googleapis/build/src/apis/admob/v1beta.js
generated
vendored
Normal file
718
node_modules/googleapis/build/src/apis/admob/v1beta.js
generated
vendored
Normal file
@@ -0,0 +1,718 @@
|
||||
"use strict";
|
||||
// Copyright 2020 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 });
|
||||
exports.admob_v1beta = void 0;
|
||||
/* eslint-disable @typescript-eslint/no-explicit-any */
|
||||
/* eslint-disable @typescript-eslint/no-unused-vars */
|
||||
/* eslint-disable @typescript-eslint/no-empty-interface */
|
||||
/* eslint-disable @typescript-eslint/no-namespace */
|
||||
/* eslint-disable no-irregular-whitespace */
|
||||
const googleapis_common_1 = require("googleapis-common");
|
||||
var admob_v1beta;
|
||||
(function (admob_v1beta) {
|
||||
/**
|
||||
* AdMob API
|
||||
*
|
||||
* The AdMob API allows publishers to programmatically get information about their AdMob account.
|
||||
*
|
||||
* @example
|
||||
* ```js
|
||||
* const {google} = require('googleapis');
|
||||
* const admob = google.admob('v1beta');
|
||||
* ```
|
||||
*/
|
||||
class Admob {
|
||||
constructor(options, google) {
|
||||
this.context = {
|
||||
_options: options || {},
|
||||
google,
|
||||
};
|
||||
this.accounts = new Resource$Accounts(this.context);
|
||||
}
|
||||
}
|
||||
admob_v1beta.Admob = Admob;
|
||||
class Resource$Accounts {
|
||||
constructor(context) {
|
||||
this.context = context;
|
||||
this.adSources = new Resource$Accounts$Adsources(this.context);
|
||||
this.adUnitMappings = new Resource$Accounts$Adunitmappings(this.context);
|
||||
this.adUnits = new Resource$Accounts$Adunits(this.context);
|
||||
this.apps = new Resource$Accounts$Apps(this.context);
|
||||
this.campaignReport = new Resource$Accounts$Campaignreport(this.context);
|
||||
this.mediationGroups = new Resource$Accounts$Mediationgroups(this.context);
|
||||
this.mediationReport = new Resource$Accounts$Mediationreport(this.context);
|
||||
this.networkReport = new Resource$Accounts$Networkreport(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://admob.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) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, 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://admob.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1beta/accounts').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, googleapis_common_1.createAPIRequest)(parameters);
|
||||
}
|
||||
}
|
||||
}
|
||||
admob_v1beta.Resource$Accounts = Resource$Accounts;
|
||||
class Resource$Accounts$Adsources {
|
||||
constructor(context) {
|
||||
this.context = context;
|
||||
this.adapters = new Resource$Accounts$Adsources$Adapters(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://admob.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1beta/{+parent}/adSources').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: ['parent'],
|
||||
pathParams: ['parent'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, googleapis_common_1.createAPIRequest)(parameters);
|
||||
}
|
||||
}
|
||||
}
|
||||
admob_v1beta.Resource$Accounts$Adsources = Resource$Accounts$Adsources;
|
||||
class Resource$Accounts$Adsources$Adapters {
|
||||
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://admob.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1beta/{+parent}/adapters').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: ['parent'],
|
||||
pathParams: ['parent'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, googleapis_common_1.createAPIRequest)(parameters);
|
||||
}
|
||||
}
|
||||
}
|
||||
admob_v1beta.Resource$Accounts$Adsources$Adapters = Resource$Accounts$Adsources$Adapters;
|
||||
class Resource$Accounts$Adunitmappings {
|
||||
constructor(context) {
|
||||
this.context = context;
|
||||
}
|
||||
batchCreate(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://admob.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1beta/{+parent}/adUnitMappings:batchCreate').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: ['parent'],
|
||||
pathParams: ['parent'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, googleapis_common_1.createAPIRequest)(parameters);
|
||||
}
|
||||
}
|
||||
}
|
||||
admob_v1beta.Resource$Accounts$Adunitmappings = Resource$Accounts$Adunitmappings;
|
||||
class Resource$Accounts$Adunits {
|
||||
constructor(context) {
|
||||
this.context = context;
|
||||
this.adUnitMappings = new Resource$Accounts$Adunits$Adunitmappings(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://admob.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1beta/{+parent}/adUnits').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: ['parent'],
|
||||
pathParams: ['parent'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, 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://admob.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1beta/{+parent}/adUnits').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: ['parent'],
|
||||
pathParams: ['parent'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, googleapis_common_1.createAPIRequest)(parameters);
|
||||
}
|
||||
}
|
||||
}
|
||||
admob_v1beta.Resource$Accounts$Adunits = Resource$Accounts$Adunits;
|
||||
class Resource$Accounts$Adunits$Adunitmappings {
|
||||
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://admob.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1beta/{+parent}/adUnitMappings').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: ['parent'],
|
||||
pathParams: ['parent'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, 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://admob.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1beta/{+parent}/adUnitMappings').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: ['parent'],
|
||||
pathParams: ['parent'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, googleapis_common_1.createAPIRequest)(parameters);
|
||||
}
|
||||
}
|
||||
}
|
||||
admob_v1beta.Resource$Accounts$Adunits$Adunitmappings = Resource$Accounts$Adunits$Adunitmappings;
|
||||
class Resource$Accounts$Apps {
|
||||
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://admob.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1beta/{+parent}/apps').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: ['parent'],
|
||||
pathParams: ['parent'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, 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://admob.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1beta/{+parent}/apps').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: ['parent'],
|
||||
pathParams: ['parent'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, googleapis_common_1.createAPIRequest)(parameters);
|
||||
}
|
||||
}
|
||||
}
|
||||
admob_v1beta.Resource$Accounts$Apps = Resource$Accounts$Apps;
|
||||
class Resource$Accounts$Campaignreport {
|
||||
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://admob.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1beta/{+parent}/campaignReport:generate').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: ['parent'],
|
||||
pathParams: ['parent'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, googleapis_common_1.createAPIRequest)(parameters);
|
||||
}
|
||||
}
|
||||
}
|
||||
admob_v1beta.Resource$Accounts$Campaignreport = Resource$Accounts$Campaignreport;
|
||||
class Resource$Accounts$Mediationgroups {
|
||||
constructor(context) {
|
||||
this.context = context;
|
||||
this.mediationAbExperiments =
|
||||
new Resource$Accounts$Mediationgroups$Mediationabexperiments(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://admob.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1beta/{+parent}/mediationGroups').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: ['parent'],
|
||||
pathParams: ['parent'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, 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://admob.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1beta/{+parent}/mediationGroups').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: ['parent'],
|
||||
pathParams: ['parent'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, 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://admob.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) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, googleapis_common_1.createAPIRequest)(parameters);
|
||||
}
|
||||
}
|
||||
}
|
||||
admob_v1beta.Resource$Accounts$Mediationgroups = Resource$Accounts$Mediationgroups;
|
||||
class Resource$Accounts$Mediationgroups$Mediationabexperiments {
|
||||
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://admob.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1beta/{+parent}/mediationAbExperiments').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: ['parent'],
|
||||
pathParams: ['parent'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, googleapis_common_1.createAPIRequest)(parameters);
|
||||
}
|
||||
}
|
||||
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://admob.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1beta/{+name}:stop').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: ['name'],
|
||||
pathParams: ['name'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, googleapis_common_1.createAPIRequest)(parameters);
|
||||
}
|
||||
}
|
||||
}
|
||||
admob_v1beta.Resource$Accounts$Mediationgroups$Mediationabexperiments = Resource$Accounts$Mediationgroups$Mediationabexperiments;
|
||||
class Resource$Accounts$Mediationreport {
|
||||
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://admob.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1beta/{+parent}/mediationReport:generate').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: ['parent'],
|
||||
pathParams: ['parent'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, googleapis_common_1.createAPIRequest)(parameters);
|
||||
}
|
||||
}
|
||||
}
|
||||
admob_v1beta.Resource$Accounts$Mediationreport = Resource$Accounts$Mediationreport;
|
||||
class Resource$Accounts$Networkreport {
|
||||
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://admob.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1beta/{+parent}/networkReport:generate').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: ['parent'],
|
||||
pathParams: ['parent'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, googleapis_common_1.createAPIRequest)(parameters);
|
||||
}
|
||||
}
|
||||
}
|
||||
admob_v1beta.Resource$Accounts$Networkreport = Resource$Accounts$Networkreport;
|
||||
})(admob_v1beta || (exports.admob_v1beta = admob_v1beta = {}));
|
||||
17
node_modules/googleapis/build/src/apis/adsense/index.d.ts
generated
vendored
Normal file
17
node_modules/googleapis/build/src/apis/adsense/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
/*! THIS FILE IS AUTO-GENERATED */
|
||||
import { AuthPlus } from 'googleapis-common';
|
||||
import { adsense_v1_4 } from './v1.4';
|
||||
import { adsense_v2 } from './v2';
|
||||
export declare const VERSIONS: {
|
||||
'v1.4': typeof adsense_v1_4.Adsense;
|
||||
v2: typeof adsense_v2.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;
|
||||
export declare function adsense(version: 'v2'): adsense_v2.Adsense;
|
||||
export declare function adsense(options: adsense_v2.Options): adsense_v2.Adsense;
|
||||
declare const auth: AuthPlus;
|
||||
export { auth };
|
||||
export { adsense_v1_4 };
|
||||
export { adsense_v2 };
|
||||
export { AuthPlus, GlobalOptions, APIRequestContext, GoogleConfigurable, StreamMethodOptions, GaxiosPromise, MethodOptions, BodyResponseCallback, } from 'googleapis-common';
|
||||
33
node_modules/googleapis/build/src/apis/adsense/index.js
generated
vendored
Normal file
33
node_modules/googleapis/build/src/apis/adsense/index.js
generated
vendored
Normal file
@@ -0,0 +1,33 @@
|
||||
"use strict";
|
||||
// Copyright 2020 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 });
|
||||
exports.AuthPlus = exports.adsense_v2 = exports.adsense_v1_4 = exports.auth = exports.adsense = exports.VERSIONS = void 0;
|
||||
/*! THIS FILE IS AUTO-GENERATED */
|
||||
const googleapis_common_1 = require("googleapis-common");
|
||||
const v1_4_1 = require("./v1.4");
|
||||
Object.defineProperty(exports, "adsense_v1_4", { enumerable: true, get: function () { return v1_4_1.adsense_v1_4; } });
|
||||
const v2_1 = require("./v2");
|
||||
Object.defineProperty(exports, "adsense_v2", { enumerable: true, get: function () { return v2_1.adsense_v2; } });
|
||||
exports.VERSIONS = {
|
||||
'v1.4': v1_4_1.adsense_v1_4.Adsense,
|
||||
v2: v2_1.adsense_v2.Adsense,
|
||||
};
|
||||
function adsense(versionOrOptions) {
|
||||
return (0, googleapis_common_1.getAPI)('adsense', versionOrOptions, exports.VERSIONS, this);
|
||||
}
|
||||
exports.adsense = adsense;
|
||||
const auth = new googleapis_common_1.AuthPlus();
|
||||
exports.auth = auth;
|
||||
var googleapis_common_2 = require("googleapis-common");
|
||||
Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } });
|
||||
3853
node_modules/googleapis/build/src/apis/adsense/v1.4.d.ts
generated
vendored
Normal file
3853
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
1442
node_modules/googleapis/build/src/apis/adsense/v1.4.js
generated
vendored
Normal file
1442
node_modules/googleapis/build/src/apis/adsense/v1.4.js
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1567
node_modules/googleapis/build/src/apis/adsense/v2.d.ts
generated
vendored
Normal file
1567
node_modules/googleapis/build/src/apis/adsense/v2.d.ts
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1075
node_modules/googleapis/build/src/apis/adsense/v2.js
generated
vendored
Normal file
1075
node_modules/googleapis/build/src/apis/adsense/v2.js
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
12
node_modules/googleapis/build/src/apis/adsensehost/index.d.ts
generated
vendored
Normal file
12
node_modules/googleapis/build/src/apis/adsensehost/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
/*! 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 };
|
||||
export { adsensehost_v4_1 };
|
||||
export { AuthPlus, GlobalOptions, APIRequestContext, GoogleConfigurable, StreamMethodOptions, GaxiosPromise, MethodOptions, BodyResponseCallback, } from 'googleapis-common';
|
||||
30
node_modules/googleapis/build/src/apis/adsensehost/index.js
generated
vendored
Normal file
30
node_modules/googleapis/build/src/apis/adsensehost/index.js
generated
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
"use strict";
|
||||
// Copyright 2020 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 });
|
||||
exports.AuthPlus = exports.adsensehost_v4_1 = exports.auth = exports.adsensehost = exports.VERSIONS = void 0;
|
||||
/*! THIS FILE IS AUTO-GENERATED */
|
||||
const googleapis_common_1 = require("googleapis-common");
|
||||
const v4_1_1 = require("./v4.1");
|
||||
Object.defineProperty(exports, "adsensehost_v4_1", { enumerable: true, get: function () { return v4_1_1.adsensehost_v4_1; } });
|
||||
exports.VERSIONS = {
|
||||
'v4.1': v4_1_1.adsensehost_v4_1.Adsensehost,
|
||||
};
|
||||
function adsensehost(versionOrOptions) {
|
||||
return (0, googleapis_common_1.getAPI)('adsensehost', versionOrOptions, exports.VERSIONS, this);
|
||||
}
|
||||
exports.adsensehost = adsensehost;
|
||||
const auth = new googleapis_common_1.AuthPlus();
|
||||
exports.auth = auth;
|
||||
var googleapis_common_2 = require("googleapis-common");
|
||||
Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } });
|
||||
1162
node_modules/googleapis/build/src/apis/adsensehost/v4.1.d.ts
generated
vendored
Normal file
1162
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
922
node_modules/googleapis/build/src/apis/adsensehost/v4.1.js
generated
vendored
Normal file
922
node_modules/googleapis/build/src/apis/adsensehost/v4.1.js
generated
vendored
Normal file
@@ -0,0 +1,922 @@
|
||||
"use strict";
|
||||
// Copyright 2020 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 });
|
||||
exports.adsensehost_v4_1 = void 0;
|
||||
/* eslint-disable @typescript-eslint/no-explicit-any */
|
||||
/* eslint-disable @typescript-eslint/no-unused-vars */
|
||||
/* eslint-disable @typescript-eslint/no-empty-interface */
|
||||
/* eslint-disable @typescript-eslint/no-namespace */
|
||||
/* eslint-disable no-irregular-whitespace */
|
||||
const googleapis_common_1 = require("googleapis-common");
|
||||
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
|
||||
* ```js
|
||||
* const {google} = require('googleapis');
|
||||
* const adsensehost = google.adsensehost('v4.1');
|
||||
* ```
|
||||
*/
|
||||
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) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, 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) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, 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) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, 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) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, 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) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, 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) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, 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) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, 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) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, 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) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, 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) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, 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) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, 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) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, 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) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, 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) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, 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) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, 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) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, 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) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, 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) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, 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) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, 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) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, 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) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, 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) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, 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) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, 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) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, 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) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, 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) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, googleapis_common_1.createAPIRequest)(parameters);
|
||||
}
|
||||
}
|
||||
}
|
||||
adsensehost_v4_1.Resource$Urlchannels = Resource$Urlchannels;
|
||||
})(adsensehost_v4_1 || (exports.adsensehost_v4_1 = adsensehost_v4_1 = {}));
|
||||
12
node_modules/googleapis/build/src/apis/advisorynotifications/index.d.ts
generated
vendored
Normal file
12
node_modules/googleapis/build/src/apis/advisorynotifications/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
/*! THIS FILE IS AUTO-GENERATED */
|
||||
import { AuthPlus } from 'googleapis-common';
|
||||
import { advisorynotifications_v1 } from './v1';
|
||||
export declare const VERSIONS: {
|
||||
v1: typeof advisorynotifications_v1.Advisorynotifications;
|
||||
};
|
||||
export declare function advisorynotifications(version: 'v1'): advisorynotifications_v1.Advisorynotifications;
|
||||
export declare function advisorynotifications(options: advisorynotifications_v1.Options): advisorynotifications_v1.Advisorynotifications;
|
||||
declare const auth: AuthPlus;
|
||||
export { auth };
|
||||
export { advisorynotifications_v1 };
|
||||
export { AuthPlus, GlobalOptions, APIRequestContext, GoogleConfigurable, StreamMethodOptions, GaxiosPromise, MethodOptions, BodyResponseCallback, } from 'googleapis-common';
|
||||
30
node_modules/googleapis/build/src/apis/advisorynotifications/index.js
generated
vendored
Normal file
30
node_modules/googleapis/build/src/apis/advisorynotifications/index.js
generated
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
"use strict";
|
||||
// Copyright 2020 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 });
|
||||
exports.AuthPlus = exports.advisorynotifications_v1 = exports.auth = exports.advisorynotifications = exports.VERSIONS = void 0;
|
||||
/*! THIS FILE IS AUTO-GENERATED */
|
||||
const googleapis_common_1 = require("googleapis-common");
|
||||
const v1_1 = require("./v1");
|
||||
Object.defineProperty(exports, "advisorynotifications_v1", { enumerable: true, get: function () { return v1_1.advisorynotifications_v1; } });
|
||||
exports.VERSIONS = {
|
||||
v1: v1_1.advisorynotifications_v1.Advisorynotifications,
|
||||
};
|
||||
function advisorynotifications(versionOrOptions) {
|
||||
return (0, googleapis_common_1.getAPI)('advisorynotifications', versionOrOptions, exports.VERSIONS, this);
|
||||
}
|
||||
exports.advisorynotifications = advisorynotifications;
|
||||
const auth = new googleapis_common_1.AuthPlus();
|
||||
exports.auth = auth;
|
||||
var googleapis_common_2 = require("googleapis-common");
|
||||
Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } });
|
||||
354
node_modules/googleapis/build/src/apis/advisorynotifications/v1.d.ts
generated
vendored
Normal file
354
node_modules/googleapis/build/src/apis/advisorynotifications/v1.d.ts
generated
vendored
Normal file
@@ -0,0 +1,354 @@
|
||||
/// <reference types="node" />
|
||||
import { OAuth2Client, JWT, Compute, UserRefreshClient, BaseExternalAccountClient, GaxiosPromise, GoogleConfigurable, MethodOptions, StreamMethodOptions, GlobalOptions, GoogleAuth, BodyResponseCallback, APIRequestContext } from 'googleapis-common';
|
||||
import { Readable } from 'stream';
|
||||
export declare namespace advisorynotifications_v1 {
|
||||
export interface Options extends GlobalOptions {
|
||||
version: 'v1';
|
||||
}
|
||||
interface StandardParameters {
|
||||
/**
|
||||
* Auth client or API Key for the request
|
||||
*/
|
||||
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient | BaseExternalAccountClient | GoogleAuth;
|
||||
/**
|
||||
* 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;
|
||||
}
|
||||
/**
|
||||
* Advisory Notifications API
|
||||
*
|
||||
* An API for accessing Advisory Notifications in Google Cloud
|
||||
*
|
||||
* @example
|
||||
* ```js
|
||||
* const {google} = require('googleapis');
|
||||
* const advisorynotifications = google.advisorynotifications('v1');
|
||||
* ```
|
||||
*/
|
||||
export class Advisorynotifications {
|
||||
context: APIRequestContext;
|
||||
organizations: Resource$Organizations;
|
||||
constructor(options: GlobalOptions, google?: GoogleConfigurable);
|
||||
}
|
||||
/**
|
||||
* Attachment with specific information about the issue.
|
||||
*/
|
||||
export interface Schema$GoogleCloudAdvisorynotificationsV1Attachment {
|
||||
/**
|
||||
* A CSV file attachment. Max size is 10 MB.
|
||||
*/
|
||||
csv?: Schema$GoogleCloudAdvisorynotificationsV1Csv;
|
||||
/**
|
||||
* The title of the attachment.
|
||||
*/
|
||||
displayName?: string | null;
|
||||
}
|
||||
/**
|
||||
* A representation of a CSV file attachment, as a list of column headers and a list of data rows.
|
||||
*/
|
||||
export interface Schema$GoogleCloudAdvisorynotificationsV1Csv {
|
||||
/**
|
||||
* The list of data rows in a CSV file, as string arrays rather than as a single comma-separated string.
|
||||
*/
|
||||
dataRows?: Schema$GoogleCloudAdvisorynotificationsV1CsvCsvRow[];
|
||||
/**
|
||||
* The list of headers for data columns in a CSV file.
|
||||
*/
|
||||
headers?: string[] | null;
|
||||
}
|
||||
/**
|
||||
* A representation of a single data row in a CSV file.
|
||||
*/
|
||||
export interface Schema$GoogleCloudAdvisorynotificationsV1CsvCsvRow {
|
||||
/**
|
||||
* The data entries in a CSV file row, as a string array rather than a single comma-separated string.
|
||||
*/
|
||||
entries?: string[] | null;
|
||||
}
|
||||
/**
|
||||
* Response of ListNotifications endpoint.
|
||||
*/
|
||||
export interface Schema$GoogleCloudAdvisorynotificationsV1ListNotificationsResponse {
|
||||
/**
|
||||
* A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.
|
||||
*/
|
||||
nextPageToken?: string | null;
|
||||
/**
|
||||
* List of notifications under a given parent.
|
||||
*/
|
||||
notifications?: Schema$GoogleCloudAdvisorynotificationsV1Notification[];
|
||||
/**
|
||||
* Estimation of a total number of notifications.
|
||||
*/
|
||||
totalSize?: number | null;
|
||||
}
|
||||
/**
|
||||
* A message which contains notification details.
|
||||
*/
|
||||
export interface Schema$GoogleCloudAdvisorynotificationsV1Message {
|
||||
/**
|
||||
* The attachments to download.
|
||||
*/
|
||||
attachments?: Schema$GoogleCloudAdvisorynotificationsV1Attachment[];
|
||||
/**
|
||||
* The message content.
|
||||
*/
|
||||
body?: Schema$GoogleCloudAdvisorynotificationsV1MessageBody;
|
||||
/**
|
||||
* The Message creation timestamp.
|
||||
*/
|
||||
createTime?: string | null;
|
||||
/**
|
||||
* Time when Message was localized
|
||||
*/
|
||||
localizationTime?: string | null;
|
||||
}
|
||||
/**
|
||||
* A message body containing text.
|
||||
*/
|
||||
export interface Schema$GoogleCloudAdvisorynotificationsV1MessageBody {
|
||||
/**
|
||||
* The text content of the message body.
|
||||
*/
|
||||
text?: Schema$GoogleCloudAdvisorynotificationsV1Text;
|
||||
}
|
||||
/**
|
||||
* A notification object for notifying customers about security and privacy issues.
|
||||
*/
|
||||
export interface Schema$GoogleCloudAdvisorynotificationsV1Notification {
|
||||
/**
|
||||
* Output only. Time the notification was created.
|
||||
*/
|
||||
createTime?: string | null;
|
||||
/**
|
||||
* A list of messages in the notification.
|
||||
*/
|
||||
messages?: Schema$GoogleCloudAdvisorynotificationsV1Message[];
|
||||
/**
|
||||
* The resource name of the notification. Format: organizations/{organization\}/locations/{location\}/notifications/{notification\}.
|
||||
*/
|
||||
name?: string | null;
|
||||
/**
|
||||
* Type of notification
|
||||
*/
|
||||
notificationType?: string | null;
|
||||
/**
|
||||
* The subject line of the notification.
|
||||
*/
|
||||
subject?: Schema$GoogleCloudAdvisorynotificationsV1Subject;
|
||||
}
|
||||
/**
|
||||
* Settings for each NotificationType.
|
||||
*/
|
||||
export interface Schema$GoogleCloudAdvisorynotificationsV1NotificationSettings {
|
||||
/**
|
||||
* Whether the associated NotificationType is enabled.
|
||||
*/
|
||||
enabled?: boolean | null;
|
||||
}
|
||||
/**
|
||||
* Settings for Advisory Notifications.
|
||||
*/
|
||||
export interface Schema$GoogleCloudAdvisorynotificationsV1Settings {
|
||||
/**
|
||||
* Required. Fingerprint for optimistic concurrency returned in Get requests. Must be provided for Update requests. If the value provided does not match the value known to the server, ABORTED will be thrown, and the client should retry the read-modify-write cycle.
|
||||
*/
|
||||
etag?: string | null;
|
||||
/**
|
||||
* Output only. The resource name of the settings to retrieve. Format: organizations/{organization\}/locations/{location\}/settings.
|
||||
*/
|
||||
name?: string | null;
|
||||
/**
|
||||
* Required. Map of each notification type and its settings to get/set all settings at once. The server will validate the value for each notification type.
|
||||
*/
|
||||
notificationSettings?: {
|
||||
[key: string]: Schema$GoogleCloudAdvisorynotificationsV1NotificationSettings;
|
||||
} | null;
|
||||
}
|
||||
/**
|
||||
* A subject line of a notification.
|
||||
*/
|
||||
export interface Schema$GoogleCloudAdvisorynotificationsV1Subject {
|
||||
/**
|
||||
* The text content.
|
||||
*/
|
||||
text?: Schema$GoogleCloudAdvisorynotificationsV1Text;
|
||||
}
|
||||
/**
|
||||
* A text object containing the English text and its localized copies.
|
||||
*/
|
||||
export interface Schema$GoogleCloudAdvisorynotificationsV1Text {
|
||||
/**
|
||||
* The English copy.
|
||||
*/
|
||||
enText?: string | null;
|
||||
/**
|
||||
* Status of the localization.
|
||||
*/
|
||||
localizationState?: string | null;
|
||||
/**
|
||||
* The requested localized copy (if applicable).
|
||||
*/
|
||||
localizedText?: string | null;
|
||||
}
|
||||
export class Resource$Organizations {
|
||||
context: APIRequestContext;
|
||||
locations: Resource$Organizations$Locations;
|
||||
constructor(context: APIRequestContext);
|
||||
}
|
||||
export class Resource$Organizations$Locations {
|
||||
context: APIRequestContext;
|
||||
notifications: Resource$Organizations$Locations$Notifications;
|
||||
constructor(context: APIRequestContext);
|
||||
/**
|
||||
* Get notification settings.
|
||||
*
|
||||
* @param params - Parameters for request
|
||||
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param callback - Optional callback that handles the response.
|
||||
* @returns A promise if used with async/await, or void if used with a callback.
|
||||
*/
|
||||
getSettings(params: Params$Resource$Organizations$Locations$Getsettings, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
||||
getSettings(params?: Params$Resource$Organizations$Locations$Getsettings, options?: MethodOptions): GaxiosPromise<Schema$GoogleCloudAdvisorynotificationsV1Settings>;
|
||||
getSettings(params: Params$Resource$Organizations$Locations$Getsettings, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
||||
getSettings(params: Params$Resource$Organizations$Locations$Getsettings, options: MethodOptions | BodyResponseCallback<Schema$GoogleCloudAdvisorynotificationsV1Settings>, callback: BodyResponseCallback<Schema$GoogleCloudAdvisorynotificationsV1Settings>): void;
|
||||
getSettings(params: Params$Resource$Organizations$Locations$Getsettings, callback: BodyResponseCallback<Schema$GoogleCloudAdvisorynotificationsV1Settings>): void;
|
||||
getSettings(callback: BodyResponseCallback<Schema$GoogleCloudAdvisorynotificationsV1Settings>): void;
|
||||
/**
|
||||
* Update notification settings.
|
||||
*
|
||||
* @param params - Parameters for request
|
||||
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param callback - Optional callback that handles the response.
|
||||
* @returns A promise if used with async/await, or void if used with a callback.
|
||||
*/
|
||||
updateSettings(params: Params$Resource$Organizations$Locations$Updatesettings, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
||||
updateSettings(params?: Params$Resource$Organizations$Locations$Updatesettings, options?: MethodOptions): GaxiosPromise<Schema$GoogleCloudAdvisorynotificationsV1Settings>;
|
||||
updateSettings(params: Params$Resource$Organizations$Locations$Updatesettings, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
||||
updateSettings(params: Params$Resource$Organizations$Locations$Updatesettings, options: MethodOptions | BodyResponseCallback<Schema$GoogleCloudAdvisorynotificationsV1Settings>, callback: BodyResponseCallback<Schema$GoogleCloudAdvisorynotificationsV1Settings>): void;
|
||||
updateSettings(params: Params$Resource$Organizations$Locations$Updatesettings, callback: BodyResponseCallback<Schema$GoogleCloudAdvisorynotificationsV1Settings>): void;
|
||||
updateSettings(callback: BodyResponseCallback<Schema$GoogleCloudAdvisorynotificationsV1Settings>): void;
|
||||
}
|
||||
export interface Params$Resource$Organizations$Locations$Getsettings extends StandardParameters {
|
||||
/**
|
||||
* Required. The resource name of the settings to retrieve. Format: organizations/{organization\}/locations/{location\}/settings.
|
||||
*/
|
||||
name?: string;
|
||||
}
|
||||
export interface Params$Resource$Organizations$Locations$Updatesettings extends StandardParameters {
|
||||
/**
|
||||
* Output only. The resource name of the settings to retrieve. Format: organizations/{organization\}/locations/{location\}/settings.
|
||||
*/
|
||||
name?: string;
|
||||
/**
|
||||
* Request body metadata
|
||||
*/
|
||||
requestBody?: Schema$GoogleCloudAdvisorynotificationsV1Settings;
|
||||
}
|
||||
export class Resource$Organizations$Locations$Notifications {
|
||||
context: APIRequestContext;
|
||||
constructor(context: APIRequestContext);
|
||||
/**
|
||||
* Gets a notification.
|
||||
*
|
||||
* @param params - Parameters for request
|
||||
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param callback - Optional callback that handles the response.
|
||||
* @returns A promise if used with async/await, or void if used with a callback.
|
||||
*/
|
||||
get(params: Params$Resource$Organizations$Locations$Notifications$Get, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
||||
get(params?: Params$Resource$Organizations$Locations$Notifications$Get, options?: MethodOptions): GaxiosPromise<Schema$GoogleCloudAdvisorynotificationsV1Notification>;
|
||||
get(params: Params$Resource$Organizations$Locations$Notifications$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
||||
get(params: Params$Resource$Organizations$Locations$Notifications$Get, options: MethodOptions | BodyResponseCallback<Schema$GoogleCloudAdvisorynotificationsV1Notification>, callback: BodyResponseCallback<Schema$GoogleCloudAdvisorynotificationsV1Notification>): void;
|
||||
get(params: Params$Resource$Organizations$Locations$Notifications$Get, callback: BodyResponseCallback<Schema$GoogleCloudAdvisorynotificationsV1Notification>): void;
|
||||
get(callback: BodyResponseCallback<Schema$GoogleCloudAdvisorynotificationsV1Notification>): void;
|
||||
/**
|
||||
* Lists notifications under a given parent.
|
||||
*
|
||||
* @param params - Parameters for request
|
||||
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param callback - Optional callback that handles the response.
|
||||
* @returns A promise if used with async/await, or void if used with a callback.
|
||||
*/
|
||||
list(params: Params$Resource$Organizations$Locations$Notifications$List, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
||||
list(params?: Params$Resource$Organizations$Locations$Notifications$List, options?: MethodOptions): GaxiosPromise<Schema$GoogleCloudAdvisorynotificationsV1ListNotificationsResponse>;
|
||||
list(params: Params$Resource$Organizations$Locations$Notifications$List, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
||||
list(params: Params$Resource$Organizations$Locations$Notifications$List, options: MethodOptions | BodyResponseCallback<Schema$GoogleCloudAdvisorynotificationsV1ListNotificationsResponse>, callback: BodyResponseCallback<Schema$GoogleCloudAdvisorynotificationsV1ListNotificationsResponse>): void;
|
||||
list(params: Params$Resource$Organizations$Locations$Notifications$List, callback: BodyResponseCallback<Schema$GoogleCloudAdvisorynotificationsV1ListNotificationsResponse>): void;
|
||||
list(callback: BodyResponseCallback<Schema$GoogleCloudAdvisorynotificationsV1ListNotificationsResponse>): void;
|
||||
}
|
||||
export interface Params$Resource$Organizations$Locations$Notifications$Get extends StandardParameters {
|
||||
/**
|
||||
* ISO code for requested localization language. If unset, will be interpereted as "en". If the requested language is valid, but not supported for this notification, English will be returned with an "Not applicable" LocalizationState. If the ISO code is invalid (i.e. not a real language), this RPC will throw an error.
|
||||
*/
|
||||
languageCode?: string;
|
||||
/**
|
||||
* Required. A name of the notification to retrieve. Format: organizations/{organization\}/locations/{location\}/notifications/{notification\}.
|
||||
*/
|
||||
name?: string;
|
||||
}
|
||||
export interface Params$Resource$Organizations$Locations$Notifications$List extends StandardParameters {
|
||||
/**
|
||||
* ISO code for requested localization language. If unset, will be interpereted as "en". If the requested language is valid, but not supported for this notification, English will be returned with an "Not applicable" LocalizationState. If the ISO code is invalid (i.e. not a real language), this RPC will throw an error.
|
||||
*/
|
||||
languageCode?: string;
|
||||
/**
|
||||
* The maximum number of notifications to return. The service may return fewer than this value. If unspecified or equal to 0, at most 50 notifications will be returned. The maximum value is 50; values above 50 will be coerced to 50.
|
||||
*/
|
||||
pageSize?: number;
|
||||
/**
|
||||
* A page token returned from a previous request. When paginating, all other parameters provided in the request must match the call that returned the page token.
|
||||
*/
|
||||
pageToken?: string;
|
||||
/**
|
||||
* Required. The parent, which owns this collection of notifications. Must be of the form "organizations/{organization\}/locations/{location\}"
|
||||
*/
|
||||
parent?: string;
|
||||
/**
|
||||
* Specifies which parts of the notification resource should be returned in the response.
|
||||
*/
|
||||
view?: string;
|
||||
}
|
||||
export {};
|
||||
}
|
||||
191
node_modules/googleapis/build/src/apis/advisorynotifications/v1.js
generated
vendored
Normal file
191
node_modules/googleapis/build/src/apis/advisorynotifications/v1.js
generated
vendored
Normal file
@@ -0,0 +1,191 @@
|
||||
"use strict";
|
||||
// Copyright 2020 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 });
|
||||
exports.advisorynotifications_v1 = void 0;
|
||||
/* eslint-disable @typescript-eslint/no-explicit-any */
|
||||
/* eslint-disable @typescript-eslint/no-unused-vars */
|
||||
/* eslint-disable @typescript-eslint/no-empty-interface */
|
||||
/* eslint-disable @typescript-eslint/no-namespace */
|
||||
/* eslint-disable no-irregular-whitespace */
|
||||
const googleapis_common_1 = require("googleapis-common");
|
||||
var advisorynotifications_v1;
|
||||
(function (advisorynotifications_v1) {
|
||||
/**
|
||||
* Advisory Notifications API
|
||||
*
|
||||
* An API for accessing Advisory Notifications in Google Cloud
|
||||
*
|
||||
* @example
|
||||
* ```js
|
||||
* const {google} = require('googleapis');
|
||||
* const advisorynotifications = google.advisorynotifications('v1');
|
||||
* ```
|
||||
*/
|
||||
class Advisorynotifications {
|
||||
constructor(options, google) {
|
||||
this.context = {
|
||||
_options: options || {},
|
||||
google,
|
||||
};
|
||||
this.organizations = new Resource$Organizations(this.context);
|
||||
}
|
||||
}
|
||||
advisorynotifications_v1.Advisorynotifications = Advisorynotifications;
|
||||
class Resource$Organizations {
|
||||
constructor(context) {
|
||||
this.context = context;
|
||||
this.locations = new Resource$Organizations$Locations(this.context);
|
||||
}
|
||||
}
|
||||
advisorynotifications_v1.Resource$Organizations = Resource$Organizations;
|
||||
class Resource$Organizations$Locations {
|
||||
constructor(context) {
|
||||
this.context = context;
|
||||
this.notifications = new Resource$Organizations$Locations$Notifications(this.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://advisorynotifications.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) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, 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://advisorynotifications.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) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, googleapis_common_1.createAPIRequest)(parameters);
|
||||
}
|
||||
}
|
||||
}
|
||||
advisorynotifications_v1.Resource$Organizations$Locations = Resource$Organizations$Locations;
|
||||
class Resource$Organizations$Locations$Notifications {
|
||||
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://advisorynotifications.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) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, 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://advisorynotifications.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/{+parent}/notifications').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: ['parent'],
|
||||
pathParams: ['parent'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, googleapis_common_1.createAPIRequest)(parameters);
|
||||
}
|
||||
}
|
||||
}
|
||||
advisorynotifications_v1.Resource$Organizations$Locations$Notifications = Resource$Organizations$Locations$Notifications;
|
||||
})(advisorynotifications_v1 || (exports.advisorynotifications_v1 = advisorynotifications_v1 = {}));
|
||||
17
node_modules/googleapis/build/src/apis/aiplatform/index.d.ts
generated
vendored
Normal file
17
node_modules/googleapis/build/src/apis/aiplatform/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
/*! THIS FILE IS AUTO-GENERATED */
|
||||
import { AuthPlus } from 'googleapis-common';
|
||||
import { aiplatform_v1 } from './v1';
|
||||
import { aiplatform_v1beta1 } from './v1beta1';
|
||||
export declare const VERSIONS: {
|
||||
v1: typeof aiplatform_v1.Aiplatform;
|
||||
v1beta1: typeof aiplatform_v1beta1.Aiplatform;
|
||||
};
|
||||
export declare function aiplatform(version: 'v1'): aiplatform_v1.Aiplatform;
|
||||
export declare function aiplatform(options: aiplatform_v1.Options): aiplatform_v1.Aiplatform;
|
||||
export declare function aiplatform(version: 'v1beta1'): aiplatform_v1beta1.Aiplatform;
|
||||
export declare function aiplatform(options: aiplatform_v1beta1.Options): aiplatform_v1beta1.Aiplatform;
|
||||
declare const auth: AuthPlus;
|
||||
export { auth };
|
||||
export { aiplatform_v1 };
|
||||
export { aiplatform_v1beta1 };
|
||||
export { AuthPlus, GlobalOptions, APIRequestContext, GoogleConfigurable, StreamMethodOptions, GaxiosPromise, MethodOptions, BodyResponseCallback, } from 'googleapis-common';
|
||||
33
node_modules/googleapis/build/src/apis/aiplatform/index.js
generated
vendored
Normal file
33
node_modules/googleapis/build/src/apis/aiplatform/index.js
generated
vendored
Normal file
@@ -0,0 +1,33 @@
|
||||
"use strict";
|
||||
// Copyright 2020 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 });
|
||||
exports.AuthPlus = exports.aiplatform_v1beta1 = exports.aiplatform_v1 = exports.auth = exports.aiplatform = exports.VERSIONS = void 0;
|
||||
/*! THIS FILE IS AUTO-GENERATED */
|
||||
const googleapis_common_1 = require("googleapis-common");
|
||||
const v1_1 = require("./v1");
|
||||
Object.defineProperty(exports, "aiplatform_v1", { enumerable: true, get: function () { return v1_1.aiplatform_v1; } });
|
||||
const v1beta1_1 = require("./v1beta1");
|
||||
Object.defineProperty(exports, "aiplatform_v1beta1", { enumerable: true, get: function () { return v1beta1_1.aiplatform_v1beta1; } });
|
||||
exports.VERSIONS = {
|
||||
v1: v1_1.aiplatform_v1.Aiplatform,
|
||||
v1beta1: v1beta1_1.aiplatform_v1beta1.Aiplatform,
|
||||
};
|
||||
function aiplatform(versionOrOptions) {
|
||||
return (0, googleapis_common_1.getAPI)('aiplatform', versionOrOptions, exports.VERSIONS, this);
|
||||
}
|
||||
exports.aiplatform = aiplatform;
|
||||
const auth = new googleapis_common_1.AuthPlus();
|
||||
exports.auth = auth;
|
||||
var googleapis_common_2 = require("googleapis-common");
|
||||
Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } });
|
||||
21686
node_modules/googleapis/build/src/apis/aiplatform/v1.d.ts
generated
vendored
Normal file
21686
node_modules/googleapis/build/src/apis/aiplatform/v1.d.ts
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
13260
node_modules/googleapis/build/src/apis/aiplatform/v1.js
generated
vendored
Normal file
13260
node_modules/googleapis/build/src/apis/aiplatform/v1.js
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
25384
node_modules/googleapis/build/src/apis/aiplatform/v1beta1.d.ts
generated
vendored
Normal file
25384
node_modules/googleapis/build/src/apis/aiplatform/v1beta1.d.ts
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
16538
node_modules/googleapis/build/src/apis/aiplatform/v1beta1.js
generated
vendored
Normal file
16538
node_modules/googleapis/build/src/apis/aiplatform/v1beta1.js
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
12
node_modules/googleapis/build/src/apis/alertcenter/index.d.ts
generated
vendored
Normal file
12
node_modules/googleapis/build/src/apis/alertcenter/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
/*! 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 };
|
||||
export { alertcenter_v1beta1 };
|
||||
export { AuthPlus, GlobalOptions, APIRequestContext, GoogleConfigurable, StreamMethodOptions, GaxiosPromise, MethodOptions, BodyResponseCallback, } from 'googleapis-common';
|
||||
30
node_modules/googleapis/build/src/apis/alertcenter/index.js
generated
vendored
Normal file
30
node_modules/googleapis/build/src/apis/alertcenter/index.js
generated
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
"use strict";
|
||||
// Copyright 2020 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 });
|
||||
exports.AuthPlus = exports.alertcenter_v1beta1 = exports.auth = exports.alertcenter = exports.VERSIONS = void 0;
|
||||
/*! THIS FILE IS AUTO-GENERATED */
|
||||
const googleapis_common_1 = require("googleapis-common");
|
||||
const v1beta1_1 = require("./v1beta1");
|
||||
Object.defineProperty(exports, "alertcenter_v1beta1", { enumerable: true, get: function () { return v1beta1_1.alertcenter_v1beta1; } });
|
||||
exports.VERSIONS = {
|
||||
v1beta1: v1beta1_1.alertcenter_v1beta1.Alertcenter,
|
||||
};
|
||||
function alertcenter(versionOrOptions) {
|
||||
return (0, googleapis_common_1.getAPI)('alertcenter', versionOrOptions, exports.VERSIONS, this);
|
||||
}
|
||||
exports.alertcenter = alertcenter;
|
||||
const auth = new googleapis_common_1.AuthPlus();
|
||||
exports.auth = auth;
|
||||
var googleapis_common_2 = require("googleapis-common");
|
||||
Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } });
|
||||
1595
node_modules/googleapis/build/src/apis/alertcenter/v1beta1.d.ts
generated
vendored
Normal file
1595
node_modules/googleapis/build/src/apis/alertcenter/v1beta1.d.ts
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
402
node_modules/googleapis/build/src/apis/alertcenter/v1beta1.js
generated
vendored
Normal file
402
node_modules/googleapis/build/src/apis/alertcenter/v1beta1.js
generated
vendored
Normal file
@@ -0,0 +1,402 @@
|
||||
"use strict";
|
||||
// Copyright 2020 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 });
|
||||
exports.alertcenter_v1beta1 = void 0;
|
||||
/* eslint-disable @typescript-eslint/no-explicit-any */
|
||||
/* eslint-disable @typescript-eslint/no-unused-vars */
|
||||
/* eslint-disable @typescript-eslint/no-empty-interface */
|
||||
/* eslint-disable @typescript-eslint/no-namespace */
|
||||
/* eslint-disable no-irregular-whitespace */
|
||||
const googleapis_common_1 = require("googleapis-common");
|
||||
var alertcenter_v1beta1;
|
||||
(function (alertcenter_v1beta1) {
|
||||
/**
|
||||
* Google Workspace Alert Center API
|
||||
*
|
||||
* Manages alerts on issues affecting your domain. Note: The current version of this API (v1beta1) is available to all Google Workspace customers.
|
||||
*
|
||||
* @example
|
||||
* ```js
|
||||
* const {google} = require('googleapis');
|
||||
* const alertcenter = google.alertcenter('v1beta1');
|
||||
* ```
|
||||
*/
|
||||
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);
|
||||
}
|
||||
batchDelete(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:batchDelete').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, googleapis_common_1.createAPIRequest)(parameters);
|
||||
}
|
||||
}
|
||||
batchUndelete(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:batchUndelete').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, 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://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) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, 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) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, googleapis_common_1.createAPIRequest)(parameters);
|
||||
}
|
||||
}
|
||||
getMetadata(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}/metadata').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: ['alertId'],
|
||||
pathParams: ['alertId'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, 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) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, 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) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, 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) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, 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) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, 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) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, 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) {
|
||||
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return (0, googleapis_common_1.createAPIRequest)(parameters);
|
||||
}
|
||||
}
|
||||
}
|
||||
alertcenter_v1beta1.Resource$V1beta1 = Resource$V1beta1;
|
||||
})(alertcenter_v1beta1 || (exports.alertcenter_v1beta1 = alertcenter_v1beta1 = {}));
|
||||
22
node_modules/googleapis/build/src/apis/alloydb/index.d.ts
generated
vendored
Normal file
22
node_modules/googleapis/build/src/apis/alloydb/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
/*! THIS FILE IS AUTO-GENERATED */
|
||||
import { AuthPlus } from 'googleapis-common';
|
||||
import { alloydb_v1 } from './v1';
|
||||
import { alloydb_v1alpha } from './v1alpha';
|
||||
import { alloydb_v1beta } from './v1beta';
|
||||
export declare const VERSIONS: {
|
||||
v1: typeof alloydb_v1.Alloydb;
|
||||
v1alpha: typeof alloydb_v1alpha.Alloydb;
|
||||
v1beta: typeof alloydb_v1beta.Alloydb;
|
||||
};
|
||||
export declare function alloydb(version: 'v1'): alloydb_v1.Alloydb;
|
||||
export declare function alloydb(options: alloydb_v1.Options): alloydb_v1.Alloydb;
|
||||
export declare function alloydb(version: 'v1alpha'): alloydb_v1alpha.Alloydb;
|
||||
export declare function alloydb(options: alloydb_v1alpha.Options): alloydb_v1alpha.Alloydb;
|
||||
export declare function alloydb(version: 'v1beta'): alloydb_v1beta.Alloydb;
|
||||
export declare function alloydb(options: alloydb_v1beta.Options): alloydb_v1beta.Alloydb;
|
||||
declare const auth: AuthPlus;
|
||||
export { auth };
|
||||
export { alloydb_v1 };
|
||||
export { alloydb_v1alpha };
|
||||
export { alloydb_v1beta };
|
||||
export { AuthPlus, GlobalOptions, APIRequestContext, GoogleConfigurable, StreamMethodOptions, GaxiosPromise, MethodOptions, BodyResponseCallback, } from 'googleapis-common';
|
||||
36
node_modules/googleapis/build/src/apis/alloydb/index.js
generated
vendored
Normal file
36
node_modules/googleapis/build/src/apis/alloydb/index.js
generated
vendored
Normal file
@@ -0,0 +1,36 @@
|
||||
"use strict";
|
||||
// Copyright 2020 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 });
|
||||
exports.AuthPlus = exports.alloydb_v1beta = exports.alloydb_v1alpha = exports.alloydb_v1 = exports.auth = exports.alloydb = exports.VERSIONS = void 0;
|
||||
/*! THIS FILE IS AUTO-GENERATED */
|
||||
const googleapis_common_1 = require("googleapis-common");
|
||||
const v1_1 = require("./v1");
|
||||
Object.defineProperty(exports, "alloydb_v1", { enumerable: true, get: function () { return v1_1.alloydb_v1; } });
|
||||
const v1alpha_1 = require("./v1alpha");
|
||||
Object.defineProperty(exports, "alloydb_v1alpha", { enumerable: true, get: function () { return v1alpha_1.alloydb_v1alpha; } });
|
||||
const v1beta_1 = require("./v1beta");
|
||||
Object.defineProperty(exports, "alloydb_v1beta", { enumerable: true, get: function () { return v1beta_1.alloydb_v1beta; } });
|
||||
exports.VERSIONS = {
|
||||
v1: v1_1.alloydb_v1.Alloydb,
|
||||
v1alpha: v1alpha_1.alloydb_v1alpha.Alloydb,
|
||||
v1beta: v1beta_1.alloydb_v1beta.Alloydb,
|
||||
};
|
||||
function alloydb(versionOrOptions) {
|
||||
return (0, googleapis_common_1.getAPI)('alloydb', versionOrOptions, exports.VERSIONS, this);
|
||||
}
|
||||
exports.alloydb = alloydb;
|
||||
const auth = new googleapis_common_1.AuthPlus();
|
||||
exports.auth = auth;
|
||||
var googleapis_common_2 = require("googleapis-common");
|
||||
Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } });
|
||||
2555
node_modules/googleapis/build/src/apis/alloydb/v1.d.ts
generated
vendored
Normal file
2555
node_modules/googleapis/build/src/apis/alloydb/v1.d.ts
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1230
node_modules/googleapis/build/src/apis/alloydb/v1.js
generated
vendored
Normal file
1230
node_modules/googleapis/build/src/apis/alloydb/v1.js
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
2596
node_modules/googleapis/build/src/apis/alloydb/v1alpha.d.ts
generated
vendored
Normal file
2596
node_modules/googleapis/build/src/apis/alloydb/v1alpha.d.ts
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1230
node_modules/googleapis/build/src/apis/alloydb/v1alpha.js
generated
vendored
Normal file
1230
node_modules/googleapis/build/src/apis/alloydb/v1alpha.js
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
2575
node_modules/googleapis/build/src/apis/alloydb/v1beta.d.ts
generated
vendored
Normal file
2575
node_modules/googleapis/build/src/apis/alloydb/v1beta.d.ts
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1230
node_modules/googleapis/build/src/apis/alloydb/v1beta.js
generated
vendored
Normal file
1230
node_modules/googleapis/build/src/apis/alloydb/v1beta.js
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
12
node_modules/googleapis/build/src/apis/analytics/index.d.ts
generated
vendored
Normal file
12
node_modules/googleapis/build/src/apis/analytics/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
/*! THIS FILE IS AUTO-GENERATED */
|
||||
import { AuthPlus } from 'googleapis-common';
|
||||
import { analytics_v3 } from './v3';
|
||||
export declare const VERSIONS: {
|
||||
v3: typeof analytics_v3.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 };
|
||||
export { analytics_v3 };
|
||||
export { AuthPlus, GlobalOptions, APIRequestContext, GoogleConfigurable, StreamMethodOptions, GaxiosPromise, MethodOptions, BodyResponseCallback, } from 'googleapis-common';
|
||||
30
node_modules/googleapis/build/src/apis/analytics/index.js
generated
vendored
Normal file
30
node_modules/googleapis/build/src/apis/analytics/index.js
generated
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
"use strict";
|
||||
// Copyright 2020 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 });
|
||||
exports.AuthPlus = exports.analytics_v3 = exports.auth = exports.analytics = exports.VERSIONS = void 0;
|
||||
/*! THIS FILE IS AUTO-GENERATED */
|
||||
const googleapis_common_1 = require("googleapis-common");
|
||||
const v3_1 = require("./v3");
|
||||
Object.defineProperty(exports, "analytics_v3", { enumerable: true, get: function () { return v3_1.analytics_v3; } });
|
||||
exports.VERSIONS = {
|
||||
v3: v3_1.analytics_v3.Analytics,
|
||||
};
|
||||
function analytics(versionOrOptions) {
|
||||
return (0, googleapis_common_1.getAPI)('analytics', versionOrOptions, exports.VERSIONS, this);
|
||||
}
|
||||
exports.analytics = analytics;
|
||||
const auth = new googleapis_common_1.AuthPlus();
|
||||
exports.auth = auth;
|
||||
var googleapis_common_2 = require("googleapis-common");
|
||||
Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } });
|
||||
5510
node_modules/googleapis/build/src/apis/analytics/v3.d.ts
generated
vendored
Normal file
5510
node_modules/googleapis/build/src/apis/analytics/v3.d.ts
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
3127
node_modules/googleapis/build/src/apis/analytics/v3.js
generated
vendored
Normal file
3127
node_modules/googleapis/build/src/apis/analytics/v3.js
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
17
node_modules/googleapis/build/src/apis/analyticsadmin/index.d.ts
generated
vendored
Normal file
17
node_modules/googleapis/build/src/apis/analyticsadmin/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
/*! THIS FILE IS AUTO-GENERATED */
|
||||
import { AuthPlus } from 'googleapis-common';
|
||||
import { analyticsadmin_v1alpha } from './v1alpha';
|
||||
import { analyticsadmin_v1beta } from './v1beta';
|
||||
export declare const VERSIONS: {
|
||||
v1alpha: typeof analyticsadmin_v1alpha.Analyticsadmin;
|
||||
v1beta: typeof analyticsadmin_v1beta.Analyticsadmin;
|
||||
};
|
||||
export declare function analyticsadmin(version: 'v1alpha'): analyticsadmin_v1alpha.Analyticsadmin;
|
||||
export declare function analyticsadmin(options: analyticsadmin_v1alpha.Options): analyticsadmin_v1alpha.Analyticsadmin;
|
||||
export declare function analyticsadmin(version: 'v1beta'): analyticsadmin_v1beta.Analyticsadmin;
|
||||
export declare function analyticsadmin(options: analyticsadmin_v1beta.Options): analyticsadmin_v1beta.Analyticsadmin;
|
||||
declare const auth: AuthPlus;
|
||||
export { auth };
|
||||
export { analyticsadmin_v1alpha };
|
||||
export { analyticsadmin_v1beta };
|
||||
export { AuthPlus, GlobalOptions, APIRequestContext, GoogleConfigurable, StreamMethodOptions, GaxiosPromise, MethodOptions, BodyResponseCallback, } from 'googleapis-common';
|
||||
33
node_modules/googleapis/build/src/apis/analyticsadmin/index.js
generated
vendored
Normal file
33
node_modules/googleapis/build/src/apis/analyticsadmin/index.js
generated
vendored
Normal file
@@ -0,0 +1,33 @@
|
||||
"use strict";
|
||||
// Copyright 2020 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 });
|
||||
exports.AuthPlus = exports.analyticsadmin_v1beta = exports.analyticsadmin_v1alpha = exports.auth = exports.analyticsadmin = exports.VERSIONS = void 0;
|
||||
/*! THIS FILE IS AUTO-GENERATED */
|
||||
const googleapis_common_1 = require("googleapis-common");
|
||||
const v1alpha_1 = require("./v1alpha");
|
||||
Object.defineProperty(exports, "analyticsadmin_v1alpha", { enumerable: true, get: function () { return v1alpha_1.analyticsadmin_v1alpha; } });
|
||||
const v1beta_1 = require("./v1beta");
|
||||
Object.defineProperty(exports, "analyticsadmin_v1beta", { enumerable: true, get: function () { return v1beta_1.analyticsadmin_v1beta; } });
|
||||
exports.VERSIONS = {
|
||||
v1alpha: v1alpha_1.analyticsadmin_v1alpha.Analyticsadmin,
|
||||
v1beta: v1beta_1.analyticsadmin_v1beta.Analyticsadmin,
|
||||
};
|
||||
function analyticsadmin(versionOrOptions) {
|
||||
return (0, googleapis_common_1.getAPI)('analyticsadmin', versionOrOptions, exports.VERSIONS, this);
|
||||
}
|
||||
exports.analyticsadmin = analyticsadmin;
|
||||
const auth = new googleapis_common_1.AuthPlus();
|
||||
exports.auth = auth;
|
||||
var googleapis_common_2 = require("googleapis-common");
|
||||
Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } });
|
||||
6166
node_modules/googleapis/build/src/apis/analyticsadmin/v1alpha.d.ts
generated
vendored
Normal file
6166
node_modules/googleapis/build/src/apis/analyticsadmin/v1alpha.d.ts
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
4623
node_modules/googleapis/build/src/apis/analyticsadmin/v1alpha.js
generated
vendored
Normal file
4623
node_modules/googleapis/build/src/apis/analyticsadmin/v1alpha.js
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
2417
node_modules/googleapis/build/src/apis/analyticsadmin/v1beta.d.ts
generated
vendored
Normal file
2417
node_modules/googleapis/build/src/apis/analyticsadmin/v1beta.d.ts
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1663
node_modules/googleapis/build/src/apis/analyticsadmin/v1beta.js
generated
vendored
Normal file
1663
node_modules/googleapis/build/src/apis/analyticsadmin/v1beta.js
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
17
node_modules/googleapis/build/src/apis/analyticsdata/index.d.ts
generated
vendored
Normal file
17
node_modules/googleapis/build/src/apis/analyticsdata/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
/*! THIS FILE IS AUTO-GENERATED */
|
||||
import { AuthPlus } from 'googleapis-common';
|
||||
import { analyticsdata_v1alpha } from './v1alpha';
|
||||
import { analyticsdata_v1beta } from './v1beta';
|
||||
export declare const VERSIONS: {
|
||||
v1alpha: typeof analyticsdata_v1alpha.Analyticsdata;
|
||||
v1beta: typeof analyticsdata_v1beta.Analyticsdata;
|
||||
};
|
||||
export declare function analyticsdata(version: 'v1alpha'): analyticsdata_v1alpha.Analyticsdata;
|
||||
export declare function analyticsdata(options: analyticsdata_v1alpha.Options): analyticsdata_v1alpha.Analyticsdata;
|
||||
export declare function analyticsdata(version: 'v1beta'): analyticsdata_v1beta.Analyticsdata;
|
||||
export declare function analyticsdata(options: analyticsdata_v1beta.Options): analyticsdata_v1beta.Analyticsdata;
|
||||
declare const auth: AuthPlus;
|
||||
export { auth };
|
||||
export { analyticsdata_v1alpha };
|
||||
export { analyticsdata_v1beta };
|
||||
export { AuthPlus, GlobalOptions, APIRequestContext, GoogleConfigurable, StreamMethodOptions, GaxiosPromise, MethodOptions, BodyResponseCallback, } from 'googleapis-common';
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user