Skip to content

Commit 26e3a15

Browse files
feat: make the d.ts useful (#1096)
1 parent f124a9f commit 26e3a15

File tree

201 files changed

+21269
-25467
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

201 files changed

+21269
-25467
lines changed

src/apis/abusiveexperiencereport/v1.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -133,12 +133,12 @@ export class Resource$Sites {
133133
* @param {callback} callback The callback that handles the response.
134134
* @return {object} Request object
135135
*/
136-
get(params: any,
136+
get(params?: any,
137137
options?: MethodOptions): AxiosPromise<Schema$SiteSummaryResponse>;
138-
get(params: any,
139-
options: MethodOptions|BodyResponseCallback<Schema$SiteSummaryResponse>,
138+
get(params?: any,
139+
options?: MethodOptions|BodyResponseCallback<Schema$SiteSummaryResponse>,
140140
callback?: BodyResponseCallback<Schema$SiteSummaryResponse>): void;
141-
get(params: any,
141+
get(params?: any,
142142
options?: MethodOptions|BodyResponseCallback<Schema$SiteSummaryResponse>,
143143
callback?: BodyResponseCallback<Schema$SiteSummaryResponse>):
144144
void|AxiosPromise<Schema$SiteSummaryResponse> {
@@ -196,15 +196,15 @@ export class Resource$Violatingsites {
196196
* @param {callback} callback The callback that handles the response.
197197
* @return {object} Request object
198198
*/
199-
list(params: any, options?: MethodOptions):
199+
list(params?: any, options?: MethodOptions):
200200
AxiosPromise<Schema$ViolatingSitesResponse>;
201201
list(
202-
params: any,
203-
options: MethodOptions|
202+
params?: any,
203+
options?: MethodOptions|
204204
BodyResponseCallback<Schema$ViolatingSitesResponse>,
205205
callback?: BodyResponseCallback<Schema$ViolatingSitesResponse>): void;
206206
list(
207-
params: any,
207+
params?: any,
208208
options?: MethodOptions|
209209
BodyResponseCallback<Schema$ViolatingSitesResponse>,
210210
callback?: BodyResponseCallback<Schema$ViolatingSitesResponse>):

src/apis/acceleratedmobilepageurl/v1.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -155,15 +155,15 @@ export class Resource$Ampurls {
155155
* @param {callback} callback The callback that handles the response.
156156
* @return {object} Request object
157157
*/
158-
batchGet(params: any, options?: MethodOptions):
158+
batchGet(params?: any, options?: MethodOptions):
159159
AxiosPromise<Schema$BatchGetAmpUrlsResponse>;
160160
batchGet(
161-
params: any,
162-
options: MethodOptions|
161+
params?: any,
162+
options?: MethodOptions|
163163
BodyResponseCallback<Schema$BatchGetAmpUrlsResponse>,
164164
callback?: BodyResponseCallback<Schema$BatchGetAmpUrlsResponse>): void;
165165
batchGet(
166-
params: any,
166+
params?: any,
167167
options?: MethodOptions|
168168
BodyResponseCallback<Schema$BatchGetAmpUrlsResponse>,
169169
callback?: BodyResponseCallback<Schema$BatchGetAmpUrlsResponse>):

src/apis/adexchangebuyer/v1.2.ts

Lines changed: 32 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -279,10 +279,12 @@ export class Resource$Accounts {
279279
* @param {callback} callback The callback that handles the response.
280280
* @return {object} Request object
281281
*/
282-
get(params: any, options?: MethodOptions): AxiosPromise<Schema$Account>;
283-
get(params: any, options: MethodOptions|BodyResponseCallback<Schema$Account>,
282+
get(params?: any, options?: MethodOptions): AxiosPromise<Schema$Account>;
283+
get(params?: any,
284+
options?: MethodOptions|BodyResponseCallback<Schema$Account>,
284285
callback?: BodyResponseCallback<Schema$Account>): void;
285-
get(params: any, options?: MethodOptions|BodyResponseCallback<Schema$Account>,
286+
get(params?: any,
287+
options?: MethodOptions|BodyResponseCallback<Schema$Account>,
286288
callback?: BodyResponseCallback<Schema$Account>):
287289
void|AxiosPromise<Schema$Account> {
288290
if (typeof options === 'function') {
@@ -327,13 +329,14 @@ export class Resource$Accounts {
327329
* @param {callback} callback The callback that handles the response.
328330
* @return {object} Request object
329331
*/
330-
list(params: any, options?: MethodOptions): AxiosPromise<Schema$AccountsList>;
332+
list(params?: any, options?: MethodOptions):
333+
AxiosPromise<Schema$AccountsList>;
331334
list(
332-
params: any,
333-
options: MethodOptions|BodyResponseCallback<Schema$AccountsList>,
335+
params?: any,
336+
options?: MethodOptions|BodyResponseCallback<Schema$AccountsList>,
334337
callback?: BodyResponseCallback<Schema$AccountsList>): void;
335338
list(
336-
params: any,
339+
params?: any,
337340
options?: MethodOptions|BodyResponseCallback<Schema$AccountsList>,
338341
callback?: BodyResponseCallback<Schema$AccountsList>):
339342
void|AxiosPromise<Schema$AccountsList> {
@@ -381,12 +384,14 @@ export class Resource$Accounts {
381384
* @param {callback} callback The callback that handles the response.
382385
* @return {object} Request object
383386
*/
384-
patch(params: any, options?: MethodOptions): AxiosPromise<Schema$Account>;
387+
patch(params?: any, options?: MethodOptions): AxiosPromise<Schema$Account>;
385388
patch(
386-
params: any, options: MethodOptions|BodyResponseCallback<Schema$Account>,
389+
params?: any,
390+
options?: MethodOptions|BodyResponseCallback<Schema$Account>,
387391
callback?: BodyResponseCallback<Schema$Account>): void;
388392
patch(
389-
params: any, options?: MethodOptions|BodyResponseCallback<Schema$Account>,
393+
params?: any,
394+
options?: MethodOptions|BodyResponseCallback<Schema$Account>,
390395
callback?: BodyResponseCallback<Schema$Account>):
391396
void|AxiosPromise<Schema$Account> {
392397
if (typeof options === 'function') {
@@ -433,12 +438,14 @@ export class Resource$Accounts {
433438
* @param {callback} callback The callback that handles the response.
434439
* @return {object} Request object
435440
*/
436-
update(params: any, options?: MethodOptions): AxiosPromise<Schema$Account>;
441+
update(params?: any, options?: MethodOptions): AxiosPromise<Schema$Account>;
437442
update(
438-
params: any, options: MethodOptions|BodyResponseCallback<Schema$Account>,
443+
params?: any,
444+
options?: MethodOptions|BodyResponseCallback<Schema$Account>,
439445
callback?: BodyResponseCallback<Schema$Account>): void;
440446
update(
441-
params: any, options?: MethodOptions|BodyResponseCallback<Schema$Account>,
447+
params?: any,
448+
options?: MethodOptions|BodyResponseCallback<Schema$Account>,
442449
callback?: BodyResponseCallback<Schema$Account>):
443450
void|AxiosPromise<Schema$Account> {
444451
if (typeof options === 'function') {
@@ -498,10 +505,11 @@ export class Resource$Creatives {
498505
* @param {callback} callback The callback that handles the response.
499506
* @return {object} Request object
500507
*/
501-
get(params: any, options?: MethodOptions): AxiosPromise<Schema$Creative>;
502-
get(params: any, options: MethodOptions|BodyResponseCallback<Schema$Creative>,
508+
get(params?: any, options?: MethodOptions): AxiosPromise<Schema$Creative>;
509+
get(params?: any,
510+
options?: MethodOptions|BodyResponseCallback<Schema$Creative>,
503511
callback?: BodyResponseCallback<Schema$Creative>): void;
504-
get(params: any,
512+
get(params?: any,
505513
options?: MethodOptions|BodyResponseCallback<Schema$Creative>,
506514
callback?: BodyResponseCallback<Schema$Creative>):
507515
void|AxiosPromise<Schema$Creative> {
@@ -550,12 +558,13 @@ export class Resource$Creatives {
550558
* @param {callback} callback The callback that handles the response.
551559
* @return {object} Request object
552560
*/
553-
insert(params: any, options?: MethodOptions): AxiosPromise<Schema$Creative>;
561+
insert(params?: any, options?: MethodOptions): AxiosPromise<Schema$Creative>;
554562
insert(
555-
params: any, options: MethodOptions|BodyResponseCallback<Schema$Creative>,
563+
params?: any,
564+
options?: MethodOptions|BodyResponseCallback<Schema$Creative>,
556565
callback?: BodyResponseCallback<Schema$Creative>): void;
557566
insert(
558-
params: any,
567+
params?: any,
559568
options?: MethodOptions|BodyResponseCallback<Schema$Creative>,
560569
callback?: BodyResponseCallback<Schema$Creative>):
561570
void|AxiosPromise<Schema$Creative> {
@@ -605,14 +614,14 @@ export class Resource$Creatives {
605614
* @param {callback} callback The callback that handles the response.
606615
* @return {object} Request object
607616
*/
608-
list(params: any, options?: MethodOptions):
617+
list(params?: any, options?: MethodOptions):
609618
AxiosPromise<Schema$CreativesList>;
610619
list(
611-
params: any,
612-
options: MethodOptions|BodyResponseCallback<Schema$CreativesList>,
620+
params?: any,
621+
options?: MethodOptions|BodyResponseCallback<Schema$CreativesList>,
613622
callback?: BodyResponseCallback<Schema$CreativesList>): void;
614623
list(
615-
params: any,
624+
params?: any,
616625
options?: MethodOptions|BodyResponseCallback<Schema$CreativesList>,
617626
callback?: BodyResponseCallback<Schema$CreativesList>):
618627
void|AxiosPromise<Schema$CreativesList> {

0 commit comments

Comments
 (0)