From 7224d760a5ab8d80e73e54313cb5740009f84fb3 Mon Sep 17 00:00:00 2001 From: yoshi-automation Date: Mon, 30 Nov 2020 05:19:46 -0800 Subject: [PATCH] fix(policytroubleshooter): update the API --- src/apis/policytroubleshooter/v1.ts | 49 ++++++++----------------- src/apis/policytroubleshooter/v1beta.ts | 49 ++++++++----------------- 2 files changed, 32 insertions(+), 66 deletions(-) diff --git a/src/apis/policytroubleshooter/v1.ts b/src/apis/policytroubleshooter/v1.ts index ca125a79a2..fa2a4d3fc8 100644 --- a/src/apis/policytroubleshooter/v1.ts +++ b/src/apis/policytroubleshooter/v1.ts @@ -392,9 +392,7 @@ export namespace policytroubleshooter_v1 { troubleshoot( params?: Params$Resource$Iam$Troubleshoot, options?: MethodOptions - ): GaxiosPromise< - Schema$GoogleCloudPolicytroubleshooterV1TroubleshootIamPolicyResponse - >; + ): GaxiosPromise; troubleshoot( params: Params$Resource$Iam$Troubleshoot, options: StreamMethodOptions | BodyResponseCallback, @@ -404,48 +402,32 @@ export namespace policytroubleshooter_v1 { params: Params$Resource$Iam$Troubleshoot, options: | MethodOptions - | BodyResponseCallback< - Schema$GoogleCloudPolicytroubleshooterV1TroubleshootIamPolicyResponse - >, - callback: BodyResponseCallback< - Schema$GoogleCloudPolicytroubleshooterV1TroubleshootIamPolicyResponse - > + | BodyResponseCallback, + callback: BodyResponseCallback ): void; troubleshoot( params: Params$Resource$Iam$Troubleshoot, - callback: BodyResponseCallback< - Schema$GoogleCloudPolicytroubleshooterV1TroubleshootIamPolicyResponse - > + callback: BodyResponseCallback ): void; troubleshoot( - callback: BodyResponseCallback< - Schema$GoogleCloudPolicytroubleshooterV1TroubleshootIamPolicyResponse - > + callback: BodyResponseCallback ): void; troubleshoot( paramsOrCallback?: | Params$Resource$Iam$Troubleshoot - | BodyResponseCallback< - Schema$GoogleCloudPolicytroubleshooterV1TroubleshootIamPolicyResponse - > + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback< - Schema$GoogleCloudPolicytroubleshooterV1TroubleshootIamPolicyResponse - > + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback< - Schema$GoogleCloudPolicytroubleshooterV1TroubleshootIamPolicyResponse - > + | BodyResponseCallback | BodyResponseCallback ): | void - | GaxiosPromise< - Schema$GoogleCloudPolicytroubleshooterV1TroubleshootIamPolicyResponse - > + | GaxiosPromise | GaxiosPromise { let params = (paramsOrCallback || {}) as Params$Resource$Iam$Troubleshoot; let options = (optionsOrCallback || {}) as MethodOptions; @@ -480,13 +462,14 @@ export namespace policytroubleshooter_v1 { context: this.context, }; if (callback) { - createAPIRequest< - Schema$GoogleCloudPolicytroubleshooterV1TroubleshootIamPolicyResponse - >(parameters, callback as BodyResponseCallback); + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); } else { - return createAPIRequest< - Schema$GoogleCloudPolicytroubleshooterV1TroubleshootIamPolicyResponse - >(parameters); + return createAPIRequest( + parameters + ); } } } diff --git a/src/apis/policytroubleshooter/v1beta.ts b/src/apis/policytroubleshooter/v1beta.ts index 2b7100fbbc..0b7c8d23de 100644 --- a/src/apis/policytroubleshooter/v1beta.ts +++ b/src/apis/policytroubleshooter/v1beta.ts @@ -392,9 +392,7 @@ export namespace policytroubleshooter_v1beta { troubleshoot( params?: Params$Resource$Iam$Troubleshoot, options?: MethodOptions - ): GaxiosPromise< - Schema$GoogleCloudPolicytroubleshooterV1betaTroubleshootIamPolicyResponse - >; + ): GaxiosPromise; troubleshoot( params: Params$Resource$Iam$Troubleshoot, options: StreamMethodOptions | BodyResponseCallback, @@ -404,48 +402,32 @@ export namespace policytroubleshooter_v1beta { params: Params$Resource$Iam$Troubleshoot, options: | MethodOptions - | BodyResponseCallback< - Schema$GoogleCloudPolicytroubleshooterV1betaTroubleshootIamPolicyResponse - >, - callback: BodyResponseCallback< - Schema$GoogleCloudPolicytroubleshooterV1betaTroubleshootIamPolicyResponse - > + | BodyResponseCallback, + callback: BodyResponseCallback ): void; troubleshoot( params: Params$Resource$Iam$Troubleshoot, - callback: BodyResponseCallback< - Schema$GoogleCloudPolicytroubleshooterV1betaTroubleshootIamPolicyResponse - > + callback: BodyResponseCallback ): void; troubleshoot( - callback: BodyResponseCallback< - Schema$GoogleCloudPolicytroubleshooterV1betaTroubleshootIamPolicyResponse - > + callback: BodyResponseCallback ): void; troubleshoot( paramsOrCallback?: | Params$Resource$Iam$Troubleshoot - | BodyResponseCallback< - Schema$GoogleCloudPolicytroubleshooterV1betaTroubleshootIamPolicyResponse - > + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback< - Schema$GoogleCloudPolicytroubleshooterV1betaTroubleshootIamPolicyResponse - > + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback< - Schema$GoogleCloudPolicytroubleshooterV1betaTroubleshootIamPolicyResponse - > + | BodyResponseCallback | BodyResponseCallback ): | void - | GaxiosPromise< - Schema$GoogleCloudPolicytroubleshooterV1betaTroubleshootIamPolicyResponse - > + | GaxiosPromise | GaxiosPromise { let params = (paramsOrCallback || {}) as Params$Resource$Iam$Troubleshoot; let options = (optionsOrCallback || {}) as MethodOptions; @@ -480,13 +462,14 @@ export namespace policytroubleshooter_v1beta { context: this.context, }; if (callback) { - createAPIRequest< - Schema$GoogleCloudPolicytroubleshooterV1betaTroubleshootIamPolicyResponse - >(parameters, callback as BodyResponseCallback); + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); } else { - return createAPIRequest< - Schema$GoogleCloudPolicytroubleshooterV1betaTroubleshootIamPolicyResponse - >(parameters); + return createAPIRequest( + parameters + ); } } }