Skip to content

Commit

Permalink
fix(policytroubleshooter): update the API
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshi-automation authored and JustinBeckwith committed Nov 30, 2020
1 parent b329ad0 commit 7224d76
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 66 deletions.
49 changes: 16 additions & 33 deletions src/apis/policytroubleshooter/v1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -392,9 +392,7 @@ export namespace policytroubleshooter_v1 {
troubleshoot(
params?: Params$Resource$Iam$Troubleshoot,
options?: MethodOptions
): GaxiosPromise<
Schema$GoogleCloudPolicytroubleshooterV1TroubleshootIamPolicyResponse
>;
): GaxiosPromise<Schema$GoogleCloudPolicytroubleshooterV1TroubleshootIamPolicyResponse>;
troubleshoot(
params: Params$Resource$Iam$Troubleshoot,
options: StreamMethodOptions | BodyResponseCallback<Readable>,
Expand All @@ -404,48 +402,32 @@ export namespace policytroubleshooter_v1 {
params: Params$Resource$Iam$Troubleshoot,
options:
| MethodOptions
| BodyResponseCallback<
Schema$GoogleCloudPolicytroubleshooterV1TroubleshootIamPolicyResponse
>,
callback: BodyResponseCallback<
Schema$GoogleCloudPolicytroubleshooterV1TroubleshootIamPolicyResponse
>
| BodyResponseCallback<Schema$GoogleCloudPolicytroubleshooterV1TroubleshootIamPolicyResponse>,
callback: BodyResponseCallback<Schema$GoogleCloudPolicytroubleshooterV1TroubleshootIamPolicyResponse>
): void;
troubleshoot(
params: Params$Resource$Iam$Troubleshoot,
callback: BodyResponseCallback<
Schema$GoogleCloudPolicytroubleshooterV1TroubleshootIamPolicyResponse
>
callback: BodyResponseCallback<Schema$GoogleCloudPolicytroubleshooterV1TroubleshootIamPolicyResponse>
): void;
troubleshoot(
callback: BodyResponseCallback<
Schema$GoogleCloudPolicytroubleshooterV1TroubleshootIamPolicyResponse
>
callback: BodyResponseCallback<Schema$GoogleCloudPolicytroubleshooterV1TroubleshootIamPolicyResponse>
): void;
troubleshoot(
paramsOrCallback?:
| Params$Resource$Iam$Troubleshoot
| BodyResponseCallback<
Schema$GoogleCloudPolicytroubleshooterV1TroubleshootIamPolicyResponse
>
| BodyResponseCallback<Schema$GoogleCloudPolicytroubleshooterV1TroubleshootIamPolicyResponse>
| BodyResponseCallback<Readable>,
optionsOrCallback?:
| MethodOptions
| StreamMethodOptions
| BodyResponseCallback<
Schema$GoogleCloudPolicytroubleshooterV1TroubleshootIamPolicyResponse
>
| BodyResponseCallback<Schema$GoogleCloudPolicytroubleshooterV1TroubleshootIamPolicyResponse>
| BodyResponseCallback<Readable>,
callback?:
| BodyResponseCallback<
Schema$GoogleCloudPolicytroubleshooterV1TroubleshootIamPolicyResponse
>
| BodyResponseCallback<Schema$GoogleCloudPolicytroubleshooterV1TroubleshootIamPolicyResponse>
| BodyResponseCallback<Readable>
):
| void
| GaxiosPromise<
Schema$GoogleCloudPolicytroubleshooterV1TroubleshootIamPolicyResponse
>
| GaxiosPromise<Schema$GoogleCloudPolicytroubleshooterV1TroubleshootIamPolicyResponse>
| GaxiosPromise<Readable> {
let params = (paramsOrCallback || {}) as Params$Resource$Iam$Troubleshoot;
let options = (optionsOrCallback || {}) as MethodOptions;
Expand Down Expand Up @@ -480,13 +462,14 @@ export namespace policytroubleshooter_v1 {
context: this.context,
};
if (callback) {
createAPIRequest<
Schema$GoogleCloudPolicytroubleshooterV1TroubleshootIamPolicyResponse
>(parameters, callback as BodyResponseCallback<unknown>);
createAPIRequest<Schema$GoogleCloudPolicytroubleshooterV1TroubleshootIamPolicyResponse>(
parameters,
callback as BodyResponseCallback<unknown>
);
} else {
return createAPIRequest<
Schema$GoogleCloudPolicytroubleshooterV1TroubleshootIamPolicyResponse
>(parameters);
return createAPIRequest<Schema$GoogleCloudPolicytroubleshooterV1TroubleshootIamPolicyResponse>(
parameters
);
}
}
}
Expand Down
49 changes: 16 additions & 33 deletions src/apis/policytroubleshooter/v1beta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -392,9 +392,7 @@ export namespace policytroubleshooter_v1beta {
troubleshoot(
params?: Params$Resource$Iam$Troubleshoot,
options?: MethodOptions
): GaxiosPromise<
Schema$GoogleCloudPolicytroubleshooterV1betaTroubleshootIamPolicyResponse
>;
): GaxiosPromise<Schema$GoogleCloudPolicytroubleshooterV1betaTroubleshootIamPolicyResponse>;
troubleshoot(
params: Params$Resource$Iam$Troubleshoot,
options: StreamMethodOptions | BodyResponseCallback<Readable>,
Expand All @@ -404,48 +402,32 @@ export namespace policytroubleshooter_v1beta {
params: Params$Resource$Iam$Troubleshoot,
options:
| MethodOptions
| BodyResponseCallback<
Schema$GoogleCloudPolicytroubleshooterV1betaTroubleshootIamPolicyResponse
>,
callback: BodyResponseCallback<
Schema$GoogleCloudPolicytroubleshooterV1betaTroubleshootIamPolicyResponse
>
| BodyResponseCallback<Schema$GoogleCloudPolicytroubleshooterV1betaTroubleshootIamPolicyResponse>,
callback: BodyResponseCallback<Schema$GoogleCloudPolicytroubleshooterV1betaTroubleshootIamPolicyResponse>
): void;
troubleshoot(
params: Params$Resource$Iam$Troubleshoot,
callback: BodyResponseCallback<
Schema$GoogleCloudPolicytroubleshooterV1betaTroubleshootIamPolicyResponse
>
callback: BodyResponseCallback<Schema$GoogleCloudPolicytroubleshooterV1betaTroubleshootIamPolicyResponse>
): void;
troubleshoot(
callback: BodyResponseCallback<
Schema$GoogleCloudPolicytroubleshooterV1betaTroubleshootIamPolicyResponse
>
callback: BodyResponseCallback<Schema$GoogleCloudPolicytroubleshooterV1betaTroubleshootIamPolicyResponse>
): void;
troubleshoot(
paramsOrCallback?:
| Params$Resource$Iam$Troubleshoot
| BodyResponseCallback<
Schema$GoogleCloudPolicytroubleshooterV1betaTroubleshootIamPolicyResponse
>
| BodyResponseCallback<Schema$GoogleCloudPolicytroubleshooterV1betaTroubleshootIamPolicyResponse>
| BodyResponseCallback<Readable>,
optionsOrCallback?:
| MethodOptions
| StreamMethodOptions
| BodyResponseCallback<
Schema$GoogleCloudPolicytroubleshooterV1betaTroubleshootIamPolicyResponse
>
| BodyResponseCallback<Schema$GoogleCloudPolicytroubleshooterV1betaTroubleshootIamPolicyResponse>
| BodyResponseCallback<Readable>,
callback?:
| BodyResponseCallback<
Schema$GoogleCloudPolicytroubleshooterV1betaTroubleshootIamPolicyResponse
>
| BodyResponseCallback<Schema$GoogleCloudPolicytroubleshooterV1betaTroubleshootIamPolicyResponse>
| BodyResponseCallback<Readable>
):
| void
| GaxiosPromise<
Schema$GoogleCloudPolicytroubleshooterV1betaTroubleshootIamPolicyResponse
>
| GaxiosPromise<Schema$GoogleCloudPolicytroubleshooterV1betaTroubleshootIamPolicyResponse>
| GaxiosPromise<Readable> {
let params = (paramsOrCallback || {}) as Params$Resource$Iam$Troubleshoot;
let options = (optionsOrCallback || {}) as MethodOptions;
Expand Down Expand Up @@ -480,13 +462,14 @@ export namespace policytroubleshooter_v1beta {
context: this.context,
};
if (callback) {
createAPIRequest<
Schema$GoogleCloudPolicytroubleshooterV1betaTroubleshootIamPolicyResponse
>(parameters, callback as BodyResponseCallback<unknown>);
createAPIRequest<Schema$GoogleCloudPolicytroubleshooterV1betaTroubleshootIamPolicyResponse>(
parameters,
callback as BodyResponseCallback<unknown>
);
} else {
return createAPIRequest<
Schema$GoogleCloudPolicytroubleshooterV1betaTroubleshootIamPolicyResponse
>(parameters);
return createAPIRequest<Schema$GoogleCloudPolicytroubleshooterV1betaTroubleshootIamPolicyResponse>(
parameters
);
}
}
}
Expand Down

0 comments on commit 7224d76

Please sign in to comment.