@googleapis/translate 3.4.0 → 4.0.1

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/v2.ts CHANGED
@@ -23,7 +23,7 @@ import {
23
23
  Compute,
24
24
  UserRefreshClient,
25
25
  BaseExternalAccountClient,
26
- GaxiosPromise,
26
+ GaxiosResponseWithHTTP2,
27
27
  GoogleConfigurable,
28
28
  createAPIRequest,
29
29
  MethodOptions,
@@ -263,11 +263,11 @@ export namespace translate_v2 {
263
263
  detect(
264
264
  params: Params$Resource$Detections$Detect,
265
265
  options: StreamMethodOptions
266
- ): GaxiosPromise<Readable>;
266
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
267
267
  detect(
268
268
  params?: Params$Resource$Detections$Detect,
269
269
  options?: MethodOptions
270
- ): GaxiosPromise<Schema$DetectionsListResponse>;
270
+ ): Promise<GaxiosResponseWithHTTP2<Schema$DetectionsListResponse>>;
271
271
  detect(
272
272
  params: Params$Resource$Detections$Detect,
273
273
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -300,8 +300,8 @@ export namespace translate_v2 {
300
300
  | BodyResponseCallback<Readable>
301
301
  ):
302
302
  | void
303
- | GaxiosPromise<Schema$DetectionsListResponse>
304
- | GaxiosPromise<Readable> {
303
+ | Promise<GaxiosResponseWithHTTP2<Schema$DetectionsListResponse>>
304
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
305
305
  let params = (paramsOrCallback ||
306
306
  {}) as Params$Resource$Detections$Detect;
307
307
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -356,11 +356,11 @@ export namespace translate_v2 {
356
356
  list(
357
357
  params: Params$Resource$Detections$List,
358
358
  options: StreamMethodOptions
359
- ): GaxiosPromise<Readable>;
359
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
360
360
  list(
361
361
  params?: Params$Resource$Detections$List,
362
362
  options?: MethodOptions
363
- ): GaxiosPromise<Schema$DetectionsListResponse>;
363
+ ): Promise<GaxiosResponseWithHTTP2<Schema$DetectionsListResponse>>;
364
364
  list(
365
365
  params: Params$Resource$Detections$List,
366
366
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -393,8 +393,8 @@ export namespace translate_v2 {
393
393
  | BodyResponseCallback<Readable>
394
394
  ):
395
395
  | void
396
- | GaxiosPromise<Schema$DetectionsListResponse>
397
- | GaxiosPromise<Readable> {
396
+ | Promise<GaxiosResponseWithHTTP2<Schema$DetectionsListResponse>>
397
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
398
398
  let params = (paramsOrCallback || {}) as Params$Resource$Detections$List;
399
399
  let options = (optionsOrCallback || {}) as MethodOptions;
400
400
 
@@ -470,11 +470,11 @@ export namespace translate_v2 {
470
470
  list(
471
471
  params: Params$Resource$Languages$List,
472
472
  options: StreamMethodOptions
473
- ): GaxiosPromise<Readable>;
473
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
474
474
  list(
475
475
  params?: Params$Resource$Languages$List,
476
476
  options?: MethodOptions
477
- ): GaxiosPromise<Schema$LanguagesListResponse>;
477
+ ): Promise<GaxiosResponseWithHTTP2<Schema$LanguagesListResponse>>;
478
478
  list(
479
479
  params: Params$Resource$Languages$List,
480
480
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -507,8 +507,8 @@ export namespace translate_v2 {
507
507
  | BodyResponseCallback<Readable>
508
508
  ):
509
509
  | void
510
- | GaxiosPromise<Schema$LanguagesListResponse>
511
- | GaxiosPromise<Readable> {
510
+ | Promise<GaxiosResponseWithHTTP2<Schema$LanguagesListResponse>>
511
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
512
512
  let params = (paramsOrCallback || {}) as Params$Resource$Languages$List;
513
513
  let options = (optionsOrCallback || {}) as MethodOptions;
514
514
 
@@ -581,11 +581,11 @@ export namespace translate_v2 {
581
581
  list(
582
582
  params: Params$Resource$Translations$List,
583
583
  options: StreamMethodOptions
584
- ): GaxiosPromise<Readable>;
584
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
585
585
  list(
586
586
  params?: Params$Resource$Translations$List,
587
587
  options?: MethodOptions
588
- ): GaxiosPromise<Schema$TranslationsListResponse>;
588
+ ): Promise<GaxiosResponseWithHTTP2<Schema$TranslationsListResponse>>;
589
589
  list(
590
590
  params: Params$Resource$Translations$List,
591
591
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -618,8 +618,8 @@ export namespace translate_v2 {
618
618
  | BodyResponseCallback<Readable>
619
619
  ):
620
620
  | void
621
- | GaxiosPromise<Schema$TranslationsListResponse>
622
- | GaxiosPromise<Readable> {
621
+ | Promise<GaxiosResponseWithHTTP2<Schema$TranslationsListResponse>>
622
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
623
623
  let params = (paramsOrCallback ||
624
624
  {}) as Params$Resource$Translations$List;
625
625
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -674,11 +674,11 @@ export namespace translate_v2 {
674
674
  translate(
675
675
  params: Params$Resource$Translations$Translate,
676
676
  options: StreamMethodOptions
677
- ): GaxiosPromise<Readable>;
677
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
678
678
  translate(
679
679
  params?: Params$Resource$Translations$Translate,
680
680
  options?: MethodOptions
681
- ): GaxiosPromise<Schema$TranslationsListResponse>;
681
+ ): Promise<GaxiosResponseWithHTTP2<Schema$TranslationsListResponse>>;
682
682
  translate(
683
683
  params: Params$Resource$Translations$Translate,
684
684
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -713,8 +713,8 @@ export namespace translate_v2 {
713
713
  | BodyResponseCallback<Readable>
714
714
  ):
715
715
  | void
716
- | GaxiosPromise<Schema$TranslationsListResponse>
717
- | GaxiosPromise<Readable> {
716
+ | Promise<GaxiosResponseWithHTTP2<Schema$TranslationsListResponse>>
717
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
718
718
  let params = (paramsOrCallback ||
719
719
  {}) as Params$Resource$Translations$Translate;
720
720
  let options = (optionsOrCallback || {}) as MethodOptions;