@maxim_mazurok/gapi.client.checks-v1alpha 0.0.20230713 → 0.0.20230716
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 +52 -1
- package/package.json +1 -1
- package/tests.ts +5 -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: 20230716
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -299,9 +299,60 @@ declare namespace gapi.client {
|
|
|
299
299
|
},
|
|
300
300
|
body: AnalyzePrivacyPolicyRequest): Request<AnalyzePrivacyPolicyResponse>;
|
|
301
301
|
}
|
|
302
|
+
interface OperationsResource {
|
|
303
|
+
/** 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. */
|
|
304
|
+
get(request?: {
|
|
305
|
+
/** V1 error format. */
|
|
306
|
+
"$.xgafv"?:
|
|
307
|
+
string;
|
|
308
|
+
/** OAuth access token. */
|
|
309
|
+
access_token?:
|
|
310
|
+
string;
|
|
311
|
+
/** Data format for response. */
|
|
312
|
+
alt?:
|
|
313
|
+
string;
|
|
314
|
+
/** JSONP */
|
|
315
|
+
callback?:
|
|
316
|
+
string;
|
|
317
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
318
|
+
fields?:
|
|
319
|
+
string;
|
|
320
|
+
/** 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. */
|
|
321
|
+
key?:
|
|
322
|
+
string;
|
|
323
|
+
/** The name of the operation resource. */
|
|
324
|
+
name:
|
|
325
|
+
string;
|
|
326
|
+
/** OAuth 2.0 token for the current user. */
|
|
327
|
+
oauth_token?:
|
|
328
|
+
string;
|
|
329
|
+
/** Returns response with indentations and line breaks. */
|
|
330
|
+
prettyPrint?:
|
|
331
|
+
boolean;
|
|
332
|
+
/** 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. */
|
|
333
|
+
quotaUser?:
|
|
334
|
+
string;
|
|
335
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
336
|
+
upload_protocol?:
|
|
337
|
+
string;
|
|
338
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
339
|
+
uploadType?:
|
|
340
|
+
string;
|
|
341
|
+
}): Request<Operation>;
|
|
342
|
+
}
|
|
343
|
+
interface PrivacypolicyResource {
|
|
344
|
+
operations:
|
|
345
|
+
OperationsResource;
|
|
346
|
+
}
|
|
347
|
+
interface ProjectsResource {
|
|
348
|
+
privacypolicy:
|
|
349
|
+
PrivacypolicyResource;
|
|
350
|
+
}
|
|
302
351
|
|
|
303
352
|
const accounts: AccountsResource;
|
|
304
353
|
|
|
305
354
|
const privacypolicy: PrivacypolicyResource;
|
|
355
|
+
|
|
356
|
+
const projects: ProjectsResource;
|
|
306
357
|
}
|
|
307
358
|
}
|
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: 20230716
|
|
7
7
|
|
|
8
8
|
gapi.load('client', async () => {
|
|
9
9
|
/** now we can use gapi.client */
|
|
@@ -39,5 +39,9 @@ gapi.load('client', async () => {
|
|
|
39
39
|
privacyPolicyPageContent: "Test string",
|
|
40
40
|
privacyPolicyUri: "Test string",
|
|
41
41
|
});
|
|
42
|
+
/** 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. */
|
|
43
|
+
await gapi.client.checks.projects.privacypolicy.operations.get({
|
|
44
|
+
name: "Test string",
|
|
45
|
+
});
|
|
42
46
|
}
|
|
43
47
|
});
|