@maxim_mazurok/gapi.client.checks-v1alpha 0.0.20230713 → 0.0.20230717
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +108 -1
- package/package.json +1 -1
- package/tests.ts +12 -1
package/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
10
10
|
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
11
11
|
// Generated from: https://checks.googleapis.com/$discovery/rest?version=v1alpha
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20230717
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -72,6 +72,14 @@ declare namespace gapi.client {
|
|
|
72
72
|
textContent?:
|
|
73
73
|
string;
|
|
74
74
|
}
|
|
75
|
+
interface ListOperationsResponse {
|
|
76
|
+
/** The standard List next-page token. */
|
|
77
|
+
nextPageToken?:
|
|
78
|
+
string;
|
|
79
|
+
/** A list of operations that matches the specified filter in the request. */
|
|
80
|
+
operations?:
|
|
81
|
+
Operation[];
|
|
82
|
+
}
|
|
75
83
|
interface Operation {
|
|
76
84
|
/** 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. */
|
|
77
85
|
done?:
|
|
@@ -213,6 +221,54 @@ declare namespace gapi.client {
|
|
|
213
221
|
uploadType?:
|
|
214
222
|
string;
|
|
215
223
|
}): Request<Operation>;
|
|
224
|
+
/** Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. */
|
|
225
|
+
list(request?: {
|
|
226
|
+
/** V1 error format. */
|
|
227
|
+
"$.xgafv"?:
|
|
228
|
+
string;
|
|
229
|
+
/** OAuth access token. */
|
|
230
|
+
access_token?:
|
|
231
|
+
string;
|
|
232
|
+
/** Data format for response. */
|
|
233
|
+
alt?:
|
|
234
|
+
string;
|
|
235
|
+
/** JSONP */
|
|
236
|
+
callback?:
|
|
237
|
+
string;
|
|
238
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
239
|
+
fields?:
|
|
240
|
+
string;
|
|
241
|
+
/** The standard list filter. */
|
|
242
|
+
filter?:
|
|
243
|
+
string;
|
|
244
|
+
/** 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. */
|
|
245
|
+
key?:
|
|
246
|
+
string;
|
|
247
|
+
/** The name of the operation's parent resource. */
|
|
248
|
+
name:
|
|
249
|
+
string;
|
|
250
|
+
/** OAuth 2.0 token for the current user. */
|
|
251
|
+
oauth_token?:
|
|
252
|
+
string;
|
|
253
|
+
/** The standard list page size. */
|
|
254
|
+
pageSize?:
|
|
255
|
+
number;
|
|
256
|
+
/** The standard list page token. */
|
|
257
|
+
pageToken?:
|
|
258
|
+
string;
|
|
259
|
+
/** Returns response with indentations and line breaks. */
|
|
260
|
+
prettyPrint?:
|
|
261
|
+
boolean;
|
|
262
|
+
/** 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. */
|
|
263
|
+
quotaUser?:
|
|
264
|
+
string;
|
|
265
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
266
|
+
upload_protocol?:
|
|
267
|
+
string;
|
|
268
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
269
|
+
uploadType?:
|
|
270
|
+
string;
|
|
271
|
+
}): Request<ListOperationsResponse>;
|
|
216
272
|
}
|
|
217
273
|
interface AppsResource {
|
|
218
274
|
operations:
|
|
@@ -299,9 +355,60 @@ declare namespace gapi.client {
|
|
|
299
355
|
},
|
|
300
356
|
body: AnalyzePrivacyPolicyRequest): Request<AnalyzePrivacyPolicyResponse>;
|
|
301
357
|
}
|
|
358
|
+
interface OperationsResource {
|
|
359
|
+
/** 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. */
|
|
360
|
+
get(request?: {
|
|
361
|
+
/** V1 error format. */
|
|
362
|
+
"$.xgafv"?:
|
|
363
|
+
string;
|
|
364
|
+
/** OAuth access token. */
|
|
365
|
+
access_token?:
|
|
366
|
+
string;
|
|
367
|
+
/** Data format for response. */
|
|
368
|
+
alt?:
|
|
369
|
+
string;
|
|
370
|
+
/** JSONP */
|
|
371
|
+
callback?:
|
|
372
|
+
string;
|
|
373
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
374
|
+
fields?:
|
|
375
|
+
string;
|
|
376
|
+
/** 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. */
|
|
377
|
+
key?:
|
|
378
|
+
string;
|
|
379
|
+
/** The name of the operation resource. */
|
|
380
|
+
name:
|
|
381
|
+
string;
|
|
382
|
+
/** OAuth 2.0 token for the current user. */
|
|
383
|
+
oauth_token?:
|
|
384
|
+
string;
|
|
385
|
+
/** Returns response with indentations and line breaks. */
|
|
386
|
+
prettyPrint?:
|
|
387
|
+
boolean;
|
|
388
|
+
/** 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. */
|
|
389
|
+
quotaUser?:
|
|
390
|
+
string;
|
|
391
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
392
|
+
upload_protocol?:
|
|
393
|
+
string;
|
|
394
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
395
|
+
uploadType?:
|
|
396
|
+
string;
|
|
397
|
+
}): Request<Operation>;
|
|
398
|
+
}
|
|
399
|
+
interface PrivacypolicyResource {
|
|
400
|
+
operations:
|
|
401
|
+
OperationsResource;
|
|
402
|
+
}
|
|
403
|
+
interface ProjectsResource {
|
|
404
|
+
privacypolicy:
|
|
405
|
+
PrivacypolicyResource;
|
|
406
|
+
}
|
|
302
407
|
|
|
303
408
|
const accounts: AccountsResource;
|
|
304
409
|
|
|
305
410
|
const privacypolicy: PrivacypolicyResource;
|
|
411
|
+
|
|
412
|
+
const projects: ProjectsResource;
|
|
306
413
|
}
|
|
307
414
|
}
|
package/package.json
CHANGED
package/tests.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
4
4
|
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
5
5
|
|
|
6
|
-
// Revision:
|
|
6
|
+
// Revision: 20230717
|
|
7
7
|
|
|
8
8
|
gapi.load('client', async () => {
|
|
9
9
|
/** now we can use gapi.client */
|
|
@@ -33,11 +33,22 @@ gapi.load('client', async () => {
|
|
|
33
33
|
await gapi.client.checks.accounts.apps.operations.get({
|
|
34
34
|
name: "Test string",
|
|
35
35
|
});
|
|
36
|
+
/** Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. */
|
|
37
|
+
await gapi.client.checks.accounts.apps.operations.list({
|
|
38
|
+
filter: "Test string",
|
|
39
|
+
name: "Test string",
|
|
40
|
+
pageSize: 42,
|
|
41
|
+
pageToken: "Test string",
|
|
42
|
+
});
|
|
36
43
|
/** Analyzes the privacy policy of the given policy URL or content. */
|
|
37
44
|
await gapi.client.checks.privacypolicy.analyze({
|
|
38
45
|
}, {
|
|
39
46
|
privacyPolicyPageContent: "Test string",
|
|
40
47
|
privacyPolicyUri: "Test string",
|
|
41
48
|
});
|
|
49
|
+
/** 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. */
|
|
50
|
+
await gapi.client.checks.projects.privacypolicy.operations.get({
|
|
51
|
+
name: "Test string",
|
|
52
|
+
});
|
|
42
53
|
}
|
|
43
54
|
});
|