Skip to content

Commit

Permalink
fix(billingbudgets): 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 7b8c35b commit b88a8fc
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 84 deletions.
34 changes: 10 additions & 24 deletions src/apis/billingbudgets/v1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -799,42 +799,28 @@ export namespace billingbudgets_v1 {
params: Params$Resource$Billingaccounts$Budgets$List,
options:
| MethodOptions
| BodyResponseCallback<
Schema$GoogleCloudBillingBudgetsV1ListBudgetsResponse
>,
callback: BodyResponseCallback<
Schema$GoogleCloudBillingBudgetsV1ListBudgetsResponse
>
| BodyResponseCallback<Schema$GoogleCloudBillingBudgetsV1ListBudgetsResponse>,
callback: BodyResponseCallback<Schema$GoogleCloudBillingBudgetsV1ListBudgetsResponse>
): void;
list(
params: Params$Resource$Billingaccounts$Budgets$List,
callback: BodyResponseCallback<
Schema$GoogleCloudBillingBudgetsV1ListBudgetsResponse
>
callback: BodyResponseCallback<Schema$GoogleCloudBillingBudgetsV1ListBudgetsResponse>
): void;
list(
callback: BodyResponseCallback<
Schema$GoogleCloudBillingBudgetsV1ListBudgetsResponse
>
callback: BodyResponseCallback<Schema$GoogleCloudBillingBudgetsV1ListBudgetsResponse>
): void;
list(
paramsOrCallback?:
| Params$Resource$Billingaccounts$Budgets$List
| BodyResponseCallback<
Schema$GoogleCloudBillingBudgetsV1ListBudgetsResponse
>
| BodyResponseCallback<Schema$GoogleCloudBillingBudgetsV1ListBudgetsResponse>
| BodyResponseCallback<Readable>,
optionsOrCallback?:
| MethodOptions
| StreamMethodOptions
| BodyResponseCallback<
Schema$GoogleCloudBillingBudgetsV1ListBudgetsResponse
>
| BodyResponseCallback<Schema$GoogleCloudBillingBudgetsV1ListBudgetsResponse>
| BodyResponseCallback<Readable>,
callback?:
| BodyResponseCallback<
Schema$GoogleCloudBillingBudgetsV1ListBudgetsResponse
>
| BodyResponseCallback<Schema$GoogleCloudBillingBudgetsV1ListBudgetsResponse>
| BodyResponseCallback<Readable>
):
| void
Expand Down Expand Up @@ -879,9 +865,9 @@ export namespace billingbudgets_v1 {
callback as BodyResponseCallback<unknown>
);
} else {
return createAPIRequest<
Schema$GoogleCloudBillingBudgetsV1ListBudgetsResponse
>(parameters);
return createAPIRequest<Schema$GoogleCloudBillingBudgetsV1ListBudgetsResponse>(
parameters
);
}
}

Expand Down
85 changes: 25 additions & 60 deletions src/apis/billingbudgets/v1beta1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -393,20 +393,14 @@ export namespace billingbudgets_v1beta1 {
options:
| MethodOptions
| BodyResponseCallback<Schema$GoogleCloudBillingBudgetsV1beta1Budget>,
callback: BodyResponseCallback<
Schema$GoogleCloudBillingBudgetsV1beta1Budget
>
callback: BodyResponseCallback<Schema$GoogleCloudBillingBudgetsV1beta1Budget>
): void;
create(
params: Params$Resource$Billingaccounts$Budgets$Create,
callback: BodyResponseCallback<
Schema$GoogleCloudBillingBudgetsV1beta1Budget
>
callback: BodyResponseCallback<Schema$GoogleCloudBillingBudgetsV1beta1Budget>
): void;
create(
callback: BodyResponseCallback<
Schema$GoogleCloudBillingBudgetsV1beta1Budget
>
callback: BodyResponseCallback<Schema$GoogleCloudBillingBudgetsV1beta1Budget>
): void;
create(
paramsOrCallback?:
Expand Down Expand Up @@ -678,20 +672,14 @@ export namespace billingbudgets_v1beta1 {
options:
| MethodOptions
| BodyResponseCallback<Schema$GoogleCloudBillingBudgetsV1beta1Budget>,
callback: BodyResponseCallback<
Schema$GoogleCloudBillingBudgetsV1beta1Budget
>
callback: BodyResponseCallback<Schema$GoogleCloudBillingBudgetsV1beta1Budget>
): void;
get(
params: Params$Resource$Billingaccounts$Budgets$Get,
callback: BodyResponseCallback<
Schema$GoogleCloudBillingBudgetsV1beta1Budget
>
callback: BodyResponseCallback<Schema$GoogleCloudBillingBudgetsV1beta1Budget>
): void;
get(
callback: BodyResponseCallback<
Schema$GoogleCloudBillingBudgetsV1beta1Budget
>
callback: BodyResponseCallback<Schema$GoogleCloudBillingBudgetsV1beta1Budget>
): void;
get(
paramsOrCallback?:
Expand Down Expand Up @@ -817,9 +805,7 @@ export namespace billingbudgets_v1beta1 {
list(
params?: Params$Resource$Billingaccounts$Budgets$List,
options?: MethodOptions
): GaxiosPromise<
Schema$GoogleCloudBillingBudgetsV1beta1ListBudgetsResponse
>;
): GaxiosPromise<Schema$GoogleCloudBillingBudgetsV1beta1ListBudgetsResponse>;
list(
params: Params$Resource$Billingaccounts$Budgets$List,
options: StreamMethodOptions | BodyResponseCallback<Readable>,
Expand All @@ -829,48 +815,32 @@ export namespace billingbudgets_v1beta1 {
params: Params$Resource$Billingaccounts$Budgets$List,
options:
| MethodOptions
| BodyResponseCallback<
Schema$GoogleCloudBillingBudgetsV1beta1ListBudgetsResponse
>,
callback: BodyResponseCallback<
Schema$GoogleCloudBillingBudgetsV1beta1ListBudgetsResponse
>
| BodyResponseCallback<Schema$GoogleCloudBillingBudgetsV1beta1ListBudgetsResponse>,
callback: BodyResponseCallback<Schema$GoogleCloudBillingBudgetsV1beta1ListBudgetsResponse>
): void;
list(
params: Params$Resource$Billingaccounts$Budgets$List,
callback: BodyResponseCallback<
Schema$GoogleCloudBillingBudgetsV1beta1ListBudgetsResponse
>
callback: BodyResponseCallback<Schema$GoogleCloudBillingBudgetsV1beta1ListBudgetsResponse>
): void;
list(
callback: BodyResponseCallback<
Schema$GoogleCloudBillingBudgetsV1beta1ListBudgetsResponse
>
callback: BodyResponseCallback<Schema$GoogleCloudBillingBudgetsV1beta1ListBudgetsResponse>
): void;
list(
paramsOrCallback?:
| Params$Resource$Billingaccounts$Budgets$List
| BodyResponseCallback<
Schema$GoogleCloudBillingBudgetsV1beta1ListBudgetsResponse
>
| BodyResponseCallback<Schema$GoogleCloudBillingBudgetsV1beta1ListBudgetsResponse>
| BodyResponseCallback<Readable>,
optionsOrCallback?:
| MethodOptions
| StreamMethodOptions
| BodyResponseCallback<
Schema$GoogleCloudBillingBudgetsV1beta1ListBudgetsResponse
>
| BodyResponseCallback<Schema$GoogleCloudBillingBudgetsV1beta1ListBudgetsResponse>
| BodyResponseCallback<Readable>,
callback?:
| BodyResponseCallback<
Schema$GoogleCloudBillingBudgetsV1beta1ListBudgetsResponse
>
| BodyResponseCallback<Schema$GoogleCloudBillingBudgetsV1beta1ListBudgetsResponse>
| BodyResponseCallback<Readable>
):
| void
| GaxiosPromise<
Schema$GoogleCloudBillingBudgetsV1beta1ListBudgetsResponse
>
| GaxiosPromise<Schema$GoogleCloudBillingBudgetsV1beta1ListBudgetsResponse>
| GaxiosPromise<Readable> {
let params = (paramsOrCallback ||
{}) as Params$Resource$Billingaccounts$Budgets$List;
Expand Down Expand Up @@ -906,13 +876,14 @@ export namespace billingbudgets_v1beta1 {
context: this.context,
};
if (callback) {
createAPIRequest<
Schema$GoogleCloudBillingBudgetsV1beta1ListBudgetsResponse
>(parameters, callback as BodyResponseCallback<unknown>);
createAPIRequest<Schema$GoogleCloudBillingBudgetsV1beta1ListBudgetsResponse>(
parameters,
callback as BodyResponseCallback<unknown>
);
} else {
return createAPIRequest<
Schema$GoogleCloudBillingBudgetsV1beta1ListBudgetsResponse
>(parameters);
return createAPIRequest<Schema$GoogleCloudBillingBudgetsV1beta1ListBudgetsResponse>(
parameters
);
}
}

Expand Down Expand Up @@ -1002,20 +973,14 @@ export namespace billingbudgets_v1beta1 {
options:
| MethodOptions
| BodyResponseCallback<Schema$GoogleCloudBillingBudgetsV1beta1Budget>,
callback: BodyResponseCallback<
Schema$GoogleCloudBillingBudgetsV1beta1Budget
>
callback: BodyResponseCallback<Schema$GoogleCloudBillingBudgetsV1beta1Budget>
): void;
patch(
params: Params$Resource$Billingaccounts$Budgets$Patch,
callback: BodyResponseCallback<
Schema$GoogleCloudBillingBudgetsV1beta1Budget
>
callback: BodyResponseCallback<Schema$GoogleCloudBillingBudgetsV1beta1Budget>
): void;
patch(
callback: BodyResponseCallback<
Schema$GoogleCloudBillingBudgetsV1beta1Budget
>
callback: BodyResponseCallback<Schema$GoogleCloudBillingBudgetsV1beta1Budget>
): void;
patch(
paramsOrCallback?:
Expand Down

0 comments on commit b88a8fc

Please sign in to comment.