v1alpha1.d.ts
28.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
/**
* Copyright 2019 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { OAuth2Client, JWT, Compute, UserRefreshClient } from 'google-auth-library';
import { GoogleConfigurable, MethodOptions, GlobalOptions, BodyResponseCallback, APIRequestContext } from 'googleapis-common';
import { GaxiosPromise } from 'gaxios';
export declare namespace factchecktools_v1alpha1 {
export interface Options extends GlobalOptions {
version: 'v1alpha1';
}
interface StandardParameters {
/**
* V1 error format.
*/
'$.xgafv'?: string;
/**
* OAuth access token.
*/
access_token?: string;
/**
* Data format for response.
*/
alt?: string;
/**
* JSONP
*/
callback?: string;
/**
* Selector specifying which fields to include in a partial response.
*/
fields?: string;
/**
* API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
*/
key?: string;
/**
* OAuth 2.0 token for the current user.
*/
oauth_token?: string;
/**
* Returns response with indentations and line breaks.
*/
prettyPrint?: boolean;
/**
* Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
*/
quotaUser?: string;
/**
* Legacy upload protocol for media (e.g. "media", "multipart").
*/
uploadType?: string;
/**
* Upload protocol for media (e.g. "raw", "multipart").
*/
upload_protocol?: string;
}
/**
* Fact Check Tools API
*
*
*
* @example
* const {google} = require('googleapis');
* const factchecktools = google.factchecktools('v1alpha1');
*
* @namespace factchecktools
* @type {Function}
* @version v1alpha1
* @variation v1alpha1
* @param {object=} options Options for Factchecktools
*/
export class Factchecktools {
context: APIRequestContext;
claims: Resource$Claims;
pages: Resource$Pages;
constructor(options: GlobalOptions, google?: GoogleConfigurable);
}
/**
* Information about the claim.
*/
export interface Schema$GoogleFactcheckingFactchecktoolsV1alpha1Claim {
/**
* A person or organization stating the claim. For instance, "John Doe".
*/
claimant?: string | null;
/**
* The date that the claim was made.
*/
claimDate?: string | null;
/**
* One or more reviews of this claim (namely, a fact-checking article).
*/
claimReview?: Schema$GoogleFactcheckingFactchecktoolsV1alpha1ClaimReview[];
/**
* The claim text. For instance, "Crime has doubled in the last 2 years."
*/
text?: string | null;
}
/**
* Information about the claim author.
*/
export interface Schema$GoogleFactcheckingFactchecktoolsV1alpha1ClaimAuthor {
/**
* Corresponds to `ClaimReview.itemReviewed.author.image`.
*/
imageUrl?: string | null;
/**
* Corresponds to `ClaimReview.itemReviewed.author.jobTitle`.
*/
jobTitle?: string | null;
/**
* A person or organization stating the claim. For instance, "John Doe".<br> Corresponds to `ClaimReview.itemReviewed.author.name`.
*/
name?: string | null;
/**
* Corresponds to `ClaimReview.itemReviewed.author.sameAs`.
*/
sameAs?: string | null;
}
/**
* Information about the claim rating.
*/
export interface Schema$GoogleFactcheckingFactchecktoolsV1alpha1ClaimRating {
/**
* For numeric ratings, the best value possible in the scale from worst to best.<br> Corresponds to `ClaimReview.reviewRating.bestRating`.
*/
bestRating?: number | null;
/**
* Corresponds to `ClaimReview.reviewRating.image`.
*/
imageUrl?: string | null;
/**
* Corresponds to `ClaimReview.reviewRating.ratingExplanation`.
*/
ratingExplanation?: string | null;
/**
* A numeric rating of this claim, in the range worstRating — bestRating inclusive.<br> Corresponds to `ClaimReview.reviewRating.ratingValue`.
*/
ratingValue?: number | null;
/**
* The truthfulness rating as a human-readible short word or phrase.<br> Corresponds to `ClaimReview.reviewRating.alternateName`.
*/
textualRating?: string | null;
/**
* For numeric ratings, the worst value possible in the scale from worst to best.<br> Corresponds to `ClaimReview.reviewRating.worstRating`.
*/
worstRating?: number | null;
}
/**
* Information about a claim review.
*/
export interface Schema$GoogleFactcheckingFactchecktoolsV1alpha1ClaimReview {
/**
* The language this review was written in. For instance, "en" or "de".
*/
languageCode?: string | null;
/**
* The publisher of this claim review.
*/
publisher?: Schema$GoogleFactcheckingFactchecktoolsV1alpha1Publisher;
/**
* The date the claim was reviewed.
*/
reviewDate?: string | null;
/**
* Textual rating. For instance, "Mostly false".
*/
textualRating?: string | null;
/**
* The title of this claim review, if it can be determined.
*/
title?: string | null;
/**
* The URL of this claim review.
*/
url?: string | null;
}
/**
* Information about the claim review author.
*/
export interface Schema$GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewAuthor {
/**
* Corresponds to `ClaimReview.author.image`.
*/
imageUrl?: string | null;
/**
* Name of the organization that is publishing the fact check.<br> Corresponds to `ClaimReview.author.name`.
*/
name?: string | null;
}
/**
* Fields for an individual `ClaimReview` element. Except for sub-messages that group fields together, each of these fields correspond those in https://schema.org/ClaimReview. We list the precise mapping for each field.
*/
export interface Schema$GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewMarkup {
/**
* A list of links to works in which this claim appears, aside from the one specified in `claim_first_appearance`.<br> Corresponds to `ClaimReview.itemReviewed[@type=Claim].appearance.url`.
*/
claimAppearances?: string[] | null;
/**
* Info about the author of this claim.
*/
claimAuthor?: Schema$GoogleFactcheckingFactchecktoolsV1alpha1ClaimAuthor;
/**
* The date when the claim was made or entered public discourse.<br> Corresponds to `ClaimReview.itemReviewed.datePublished`.
*/
claimDate?: string | null;
/**
* A link to a work in which this claim first appears.<br> Corresponds to `ClaimReview.itemReviewed[@type=Claim].firstAppearance.url`.
*/
claimFirstAppearance?: string | null;
/**
* The location where this claim was made.<br> Corresponds to `ClaimReview.itemReviewed.name`.
*/
claimLocation?: string | null;
/**
* A short summary of the claim being evaluated.<br> Corresponds to `ClaimReview.claimReviewed`.
*/
claimReviewed?: string | null;
/**
* Info about the rating of this claim review.
*/
rating?: Schema$GoogleFactcheckingFactchecktoolsV1alpha1ClaimRating;
/**
* This field is optional, and will default to the page URL. We provide this field to allow you the override the default value, but the only permitted override is the page URL plus an optional anchor link ("page jump").<br> Corresponds to `ClaimReview.url`
*/
url?: string | null;
}
/**
* Holds one or more instances of `ClaimReview` markup for a webpage.
*/
export interface Schema$GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewMarkupPage {
/**
* Info about the author of this claim review. Similar to the above, semantically these are page-level fields, and each `ClaimReview` on this page will contain the same values.
*/
claimReviewAuthor?: Schema$GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewAuthor;
/**
* A list of individual claim reviews for this page. Each item in the list corresponds to one `ClaimReview` element.
*/
claimReviewMarkups?: Schema$GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewMarkup[];
/**
* The name of this `ClaimReview` markup page resource, in the form of `pages/{page_id}`. Except for update requests, this field is output-only and should not be set by the user.
*/
name?: string | null;
/**
* The URL of the page associated with this `ClaimReview` markup. While every individual `ClaimReview` has its own URL field, semantically this is a page-level field, and each `ClaimReview` on this page will use this value unless individually overridden.<br> Corresponds to `ClaimReview.url`
*/
pageUrl?: string | null;
/**
* The date when the fact check was published. Similar to the URL, semantically this is a page-level field, and each `ClaimReview` on this page will contain the same value.<br> Corresponds to `ClaimReview.datePublished`
*/
publishDate?: string | null;
/**
* The version ID for this markup. Except for update requests, this field is output-only and should not be set by the user.
*/
versionId?: string | null;
}
/**
* Response from searching fact-checked claims.
*/
export interface Schema$GoogleFactcheckingFactchecktoolsV1alpha1FactCheckedClaimSearchResponse {
/**
* The list of claims and all of their associated information.
*/
claims?: Schema$GoogleFactcheckingFactchecktoolsV1alpha1Claim[];
/**
* The next pagination token in the Search response. It should be used as the `page_token` for the following request. An empty value means no more results.
*/
nextPageToken?: string | null;
}
/**
* Response from listing `ClaimReview` markup.
*/
export interface Schema$GoogleFactcheckingFactchecktoolsV1alpha1ListClaimReviewMarkupPagesResponse {
/**
* The result list of pages of `ClaimReview` markup.
*/
claimReviewMarkupPages?: Schema$GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewMarkupPage[];
/**
* The next pagination token in the Search response. It should be used as the `page_token` for the following request. An empty value means no more results.
*/
nextPageToken?: string | null;
}
/**
* Information about the publisher.
*/
export interface Schema$GoogleFactcheckingFactchecktoolsV1alpha1Publisher {
/**
* The name of this publisher. For instance, "Awesome Fact Checks".
*/
name?: string | null;
/**
* Host-level site name, without the protocol or "www" prefix. For instance, "awesomefactchecks.com". This value of this field is based purely on the claim review URL.
*/
site?: string | 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); } The JSON representation for `Empty` is empty JSON object `{}`.
*/
export interface Schema$GoogleProtobufEmpty {
}
export class Resource$Claims {
context: APIRequestContext;
constructor(context: APIRequestContext);
/**
* factchecktools.claims.search
* @desc Search through fact-checked claims.
* @alias factchecktools.claims.search
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string=} params.languageCode The BCP-47 language code, such as "en-US" or "sr-Latn". Can be used to restrict results by language, though we do not currently consider the region.
* @param {integer=} params.maxAgeDays The maximum age of the returned search results, in days. Age is determined by either claim date or review date, whichever is newer.
* @param {integer=} params.offset An integer that specifies the current offset (that is, starting result location) in search results. This field is only considered if `page_token` is unset. For example, 0 means to return results starting from the first matching result, and 10 means to return from the 11th result.
* @param {integer=} params.pageSize The pagination size. We will return up to that many results. Defaults to 10 if not set.
* @param {string=} params.pageToken The pagination token. You may provide the `next_page_token` returned from a previous List request, if any, in order to get the next page. All other fields must have the same values as in the previous request.
* @param {string=} params.query Textual query string. Required unless `review_publisher_site_filter` is specified.
* @param {string=} params.reviewPublisherSiteFilter The review publisher site to filter results by, e.g. nytimes.com.
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
search(params?: Params$Resource$Claims$Search, options?: MethodOptions): GaxiosPromise<Schema$GoogleFactcheckingFactchecktoolsV1alpha1FactCheckedClaimSearchResponse>;
search(params: Params$Resource$Claims$Search, options: MethodOptions | BodyResponseCallback<Schema$GoogleFactcheckingFactchecktoolsV1alpha1FactCheckedClaimSearchResponse>, callback: BodyResponseCallback<Schema$GoogleFactcheckingFactchecktoolsV1alpha1FactCheckedClaimSearchResponse>): void;
search(params: Params$Resource$Claims$Search, callback: BodyResponseCallback<Schema$GoogleFactcheckingFactchecktoolsV1alpha1FactCheckedClaimSearchResponse>): void;
search(callback: BodyResponseCallback<Schema$GoogleFactcheckingFactchecktoolsV1alpha1FactCheckedClaimSearchResponse>): void;
}
export interface Params$Resource$Claims$Search extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* The BCP-47 language code, such as "en-US" or "sr-Latn". Can be used to restrict results by language, though we do not currently consider the region.
*/
languageCode?: string;
/**
* The maximum age of the returned search results, in days. Age is determined by either claim date or review date, whichever is newer.
*/
maxAgeDays?: number;
/**
* An integer that specifies the current offset (that is, starting result location) in search results. This field is only considered if `page_token` is unset. For example, 0 means to return results starting from the first matching result, and 10 means to return from the 11th result.
*/
offset?: number;
/**
* The pagination size. We will return up to that many results. Defaults to 10 if not set.
*/
pageSize?: number;
/**
* The pagination token. You may provide the `next_page_token` returned from a previous List request, if any, in order to get the next page. All other fields must have the same values as in the previous request.
*/
pageToken?: string;
/**
* Textual query string. Required unless `review_publisher_site_filter` is specified.
*/
query?: string;
/**
* The review publisher site to filter results by, e.g. nytimes.com.
*/
reviewPublisherSiteFilter?: string;
}
export class Resource$Pages {
context: APIRequestContext;
constructor(context: APIRequestContext);
/**
* factchecktools.pages.create
* @desc Create `ClaimReview` markup on a page.
* @alias factchecktools.pages.create
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {().GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewMarkupPage} params.resource Request body data
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
create(params?: Params$Resource$Pages$Create, options?: MethodOptions): GaxiosPromise<Schema$GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewMarkupPage>;
create(params: Params$Resource$Pages$Create, options: MethodOptions | BodyResponseCallback<Schema$GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewMarkupPage>, callback: BodyResponseCallback<Schema$GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewMarkupPage>): void;
create(params: Params$Resource$Pages$Create, callback: BodyResponseCallback<Schema$GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewMarkupPage>): void;
create(callback: BodyResponseCallback<Schema$GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewMarkupPage>): void;
/**
* factchecktools.pages.delete
* @desc Delete all `ClaimReview` markup on a page.
* @alias factchecktools.pages.delete
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.name The name of the resource to delete, in the form of `pages/{page_id}`.
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
delete(params?: Params$Resource$Pages$Delete, options?: MethodOptions): GaxiosPromise<Schema$GoogleProtobufEmpty>;
delete(params: Params$Resource$Pages$Delete, options: MethodOptions | BodyResponseCallback<Schema$GoogleProtobufEmpty>, callback: BodyResponseCallback<Schema$GoogleProtobufEmpty>): void;
delete(params: Params$Resource$Pages$Delete, callback: BodyResponseCallback<Schema$GoogleProtobufEmpty>): void;
delete(callback: BodyResponseCallback<Schema$GoogleProtobufEmpty>): void;
/**
* factchecktools.pages.get
* @desc Get all `ClaimReview` markup on a page.
* @alias factchecktools.pages.get
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.name The name of the resource to get, in the form of `pages/{page_id}`.
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
get(params?: Params$Resource$Pages$Get, options?: MethodOptions): GaxiosPromise<Schema$GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewMarkupPage>;
get(params: Params$Resource$Pages$Get, options: MethodOptions | BodyResponseCallback<Schema$GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewMarkupPage>, callback: BodyResponseCallback<Schema$GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewMarkupPage>): void;
get(params: Params$Resource$Pages$Get, callback: BodyResponseCallback<Schema$GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewMarkupPage>): void;
get(callback: BodyResponseCallback<Schema$GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewMarkupPage>): void;
/**
* factchecktools.pages.list
* @desc List the `ClaimReview` markup pages for a specific URL or for an organization.
* @alias factchecktools.pages.list
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {integer=} params.offset An integer that specifies the current offset (that is, starting result location) in search results. This field is only considered if `page_token` is unset, and if the request is not for a specific URL. For example, 0 means to return results starting from the first matching result, and 10 means to return from the 11th result.
* @param {string=} params.organization The organization for which we want to fetch markups for. For instance, "site.com". Cannot be specified along with an URL.
* @param {integer=} params.pageSize The pagination size. We will return up to that many results. Defaults to 10 if not set. Has no effect if a URL is requested.
* @param {string=} params.pageToken The pagination token. You may provide the `next_page_token` returned from a previous List request, if any, in order to get the next page. All other fields must have the same values as in the previous request.
* @param {string=} params.url The URL from which to get `ClaimReview` markup. There will be at most one result. If markup is associated with a more canonical version of the URL provided, we will return that URL instead. Cannot be specified along with an organization.
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
list(params?: Params$Resource$Pages$List, options?: MethodOptions): GaxiosPromise<Schema$GoogleFactcheckingFactchecktoolsV1alpha1ListClaimReviewMarkupPagesResponse>;
list(params: Params$Resource$Pages$List, options: MethodOptions | BodyResponseCallback<Schema$GoogleFactcheckingFactchecktoolsV1alpha1ListClaimReviewMarkupPagesResponse>, callback: BodyResponseCallback<Schema$GoogleFactcheckingFactchecktoolsV1alpha1ListClaimReviewMarkupPagesResponse>): void;
list(params: Params$Resource$Pages$List, callback: BodyResponseCallback<Schema$GoogleFactcheckingFactchecktoolsV1alpha1ListClaimReviewMarkupPagesResponse>): void;
list(callback: BodyResponseCallback<Schema$GoogleFactcheckingFactchecktoolsV1alpha1ListClaimReviewMarkupPagesResponse>): void;
/**
* factchecktools.pages.update
* @desc Update for all `ClaimReview` markup on a page Note that this is a full update. To retain the existing `ClaimReview` markup on a page, first perform a Get operation, then modify the returned markup, and finally call Update with the entire `ClaimReview` markup as the body.
* @alias factchecktools.pages.update
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.name The name of this `ClaimReview` markup page resource, in the form of `pages/{page_id}`. Except for update requests, this field is output-only and should not be set by the user.
* @param {().GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewMarkupPage} params.resource Request body data
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
update(params?: Params$Resource$Pages$Update, options?: MethodOptions): GaxiosPromise<Schema$GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewMarkupPage>;
update(params: Params$Resource$Pages$Update, options: MethodOptions | BodyResponseCallback<Schema$GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewMarkupPage>, callback: BodyResponseCallback<Schema$GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewMarkupPage>): void;
update(params: Params$Resource$Pages$Update, callback: BodyResponseCallback<Schema$GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewMarkupPage>): void;
update(callback: BodyResponseCallback<Schema$GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewMarkupPage>): void;
}
export interface Params$Resource$Pages$Create extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* Request body metadata
*/
requestBody?: Schema$GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewMarkupPage;
}
export interface Params$Resource$Pages$Delete extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* The name of the resource to delete, in the form of `pages/{page_id}`.
*/
name?: string;
}
export interface Params$Resource$Pages$Get extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* The name of the resource to get, in the form of `pages/{page_id}`.
*/
name?: string;
}
export interface Params$Resource$Pages$List extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* An integer that specifies the current offset (that is, starting result location) in search results. This field is only considered if `page_token` is unset, and if the request is not for a specific URL. For example, 0 means to return results starting from the first matching result, and 10 means to return from the 11th result.
*/
offset?: number;
/**
* The organization for which we want to fetch markups for. For instance, "site.com". Cannot be specified along with an URL.
*/
organization?: string;
/**
* The pagination size. We will return up to that many results. Defaults to 10 if not set. Has no effect if a URL is requested.
*/
pageSize?: number;
/**
* The pagination token. You may provide the `next_page_token` returned from a previous List request, if any, in order to get the next page. All other fields must have the same values as in the previous request.
*/
pageToken?: string;
/**
* The URL from which to get `ClaimReview` markup. There will be at most one result. If markup is associated with a more canonical version of the URL provided, we will return that URL instead. Cannot be specified along with an organization.
*/
url?: string;
}
export interface Params$Resource$Pages$Update extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* The name of this `ClaimReview` markup page resource, in the form of `pages/{page_id}`. Except for update requests, this field is output-only and should not be set by the user.
*/
name?: string;
/**
* Request body metadata
*/
requestBody?: Schema$GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewMarkupPage;
}
export {};
}