Skip to content

Commit

Permalink
fix(remotebuildexecution): 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 6330721 commit b5f5e99
Show file tree
Hide file tree
Showing 3 changed files with 139 additions and 300 deletions.
12 changes: 3 additions & 9 deletions src/apis/remotebuildexecution/v1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1978,20 +1978,14 @@ export namespace remotebuildexecution_v1 {
options:
| MethodOptions
| BodyResponseCallback<Schema$GoogleLongrunningListOperationsResponse>,
callback: BodyResponseCallback<
Schema$GoogleLongrunningListOperationsResponse
>
callback: BodyResponseCallback<Schema$GoogleLongrunningListOperationsResponse>
): void;
list(
params: Params$Resource$Operations$List,
callback: BodyResponseCallback<
Schema$GoogleLongrunningListOperationsResponse
>
callback: BodyResponseCallback<Schema$GoogleLongrunningListOperationsResponse>
): void;
list(
callback: BodyResponseCallback<
Schema$GoogleLongrunningListOperationsResponse
>
callback: BodyResponseCallback<Schema$GoogleLongrunningListOperationsResponse>
): void;
list(
paramsOrCallback?:
Expand Down
196 changes: 64 additions & 132 deletions src/apis/remotebuildexecution/v1alpha.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1646,9 +1646,7 @@ export namespace remotebuildexecution_v1alpha {
get(
params?: Params$Resource$Projects$Instances$Get,
options?: MethodOptions
): GaxiosPromise<
Schema$GoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance
>;
): GaxiosPromise<Schema$GoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance>;
get(
params: Params$Resource$Projects$Instances$Get,
options: StreamMethodOptions | BodyResponseCallback<Readable>,
Expand All @@ -1658,48 +1656,32 @@ export namespace remotebuildexecution_v1alpha {
params: Params$Resource$Projects$Instances$Get,
options:
| MethodOptions
| BodyResponseCallback<
Schema$GoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance
>,
callback: BodyResponseCallback<
Schema$GoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance
>
| BodyResponseCallback<Schema$GoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance>,
callback: BodyResponseCallback<Schema$GoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance>
): void;
get(
params: Params$Resource$Projects$Instances$Get,
callback: BodyResponseCallback<
Schema$GoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance
>
callback: BodyResponseCallback<Schema$GoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance>
): void;
get(
callback: BodyResponseCallback<
Schema$GoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance
>
callback: BodyResponseCallback<Schema$GoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance>
): void;
get(
paramsOrCallback?:
| Params$Resource$Projects$Instances$Get
| BodyResponseCallback<
Schema$GoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance
>
| BodyResponseCallback<Schema$GoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance>
| BodyResponseCallback<Readable>,
optionsOrCallback?:
| MethodOptions
| StreamMethodOptions
| BodyResponseCallback<
Schema$GoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance
>
| BodyResponseCallback<Schema$GoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance>
| BodyResponseCallback<Readable>,
callback?:
| BodyResponseCallback<
Schema$GoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance
>
| BodyResponseCallback<Schema$GoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance>
| BodyResponseCallback<Readable>
):
| void
| GaxiosPromise<
Schema$GoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance
>
| GaxiosPromise<Schema$GoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance>
| GaxiosPromise<Readable> {
let params = (paramsOrCallback ||
{}) as Params$Resource$Projects$Instances$Get;
Expand Down Expand Up @@ -1732,13 +1714,14 @@ export namespace remotebuildexecution_v1alpha {
context: this.context,
};
if (callback) {
createAPIRequest<
Schema$GoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance
>(parameters, callback as BodyResponseCallback<unknown>);
createAPIRequest<Schema$GoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance>(
parameters,
callback as BodyResponseCallback<unknown>
);
} else {
return createAPIRequest<
Schema$GoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance
>(parameters);
return createAPIRequest<Schema$GoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance>(
parameters
);
}
}

Expand Down Expand Up @@ -1799,9 +1782,7 @@ export namespace remotebuildexecution_v1alpha {
list(
params?: Params$Resource$Projects$Instances$List,
options?: MethodOptions
): GaxiosPromise<
Schema$GoogleDevtoolsRemotebuildexecutionAdminV1alphaListInstancesResponse
>;
): GaxiosPromise<Schema$GoogleDevtoolsRemotebuildexecutionAdminV1alphaListInstancesResponse>;
list(
params: Params$Resource$Projects$Instances$List,
options: StreamMethodOptions | BodyResponseCallback<Readable>,
Expand All @@ -1811,48 +1792,32 @@ export namespace remotebuildexecution_v1alpha {
params: Params$Resource$Projects$Instances$List,
options:
| MethodOptions
| BodyResponseCallback<
Schema$GoogleDevtoolsRemotebuildexecutionAdminV1alphaListInstancesResponse
>,
callback: BodyResponseCallback<
Schema$GoogleDevtoolsRemotebuildexecutionAdminV1alphaListInstancesResponse
>
| BodyResponseCallback<Schema$GoogleDevtoolsRemotebuildexecutionAdminV1alphaListInstancesResponse>,
callback: BodyResponseCallback<Schema$GoogleDevtoolsRemotebuildexecutionAdminV1alphaListInstancesResponse>
): void;
list(
params: Params$Resource$Projects$Instances$List,
callback: BodyResponseCallback<
Schema$GoogleDevtoolsRemotebuildexecutionAdminV1alphaListInstancesResponse
>
callback: BodyResponseCallback<Schema$GoogleDevtoolsRemotebuildexecutionAdminV1alphaListInstancesResponse>
): void;
list(
callback: BodyResponseCallback<
Schema$GoogleDevtoolsRemotebuildexecutionAdminV1alphaListInstancesResponse
>
callback: BodyResponseCallback<Schema$GoogleDevtoolsRemotebuildexecutionAdminV1alphaListInstancesResponse>
): void;
list(
paramsOrCallback?:
| Params$Resource$Projects$Instances$List
| BodyResponseCallback<
Schema$GoogleDevtoolsRemotebuildexecutionAdminV1alphaListInstancesResponse
>
| BodyResponseCallback<Schema$GoogleDevtoolsRemotebuildexecutionAdminV1alphaListInstancesResponse>
| BodyResponseCallback<Readable>,
optionsOrCallback?:
| MethodOptions
| StreamMethodOptions
| BodyResponseCallback<
Schema$GoogleDevtoolsRemotebuildexecutionAdminV1alphaListInstancesResponse
>
| BodyResponseCallback<Schema$GoogleDevtoolsRemotebuildexecutionAdminV1alphaListInstancesResponse>
| BodyResponseCallback<Readable>,
callback?:
| BodyResponseCallback<
Schema$GoogleDevtoolsRemotebuildexecutionAdminV1alphaListInstancesResponse
>
| BodyResponseCallback<Schema$GoogleDevtoolsRemotebuildexecutionAdminV1alphaListInstancesResponse>
| BodyResponseCallback<Readable>
):
| void
| GaxiosPromise<
Schema$GoogleDevtoolsRemotebuildexecutionAdminV1alphaListInstancesResponse
>
| GaxiosPromise<Schema$GoogleDevtoolsRemotebuildexecutionAdminV1alphaListInstancesResponse>
| GaxiosPromise<Readable> {
let params = (paramsOrCallback ||
{}) as Params$Resource$Projects$Instances$List;
Expand Down Expand Up @@ -1888,13 +1853,14 @@ export namespace remotebuildexecution_v1alpha {
context: this.context,
};
if (callback) {
createAPIRequest<
Schema$GoogleDevtoolsRemotebuildexecutionAdminV1alphaListInstancesResponse
>(parameters, callback as BodyResponseCallback<unknown>);
createAPIRequest<Schema$GoogleDevtoolsRemotebuildexecutionAdminV1alphaListInstancesResponse>(
parameters,
callback as BodyResponseCallback<unknown>
);
} else {
return createAPIRequest<
Schema$GoogleDevtoolsRemotebuildexecutionAdminV1alphaListInstancesResponse
>(parameters);
return createAPIRequest<Schema$GoogleDevtoolsRemotebuildexecutionAdminV1alphaListInstancesResponse>(
parameters
);
}
}

Expand Down Expand Up @@ -2470,9 +2436,7 @@ export namespace remotebuildexecution_v1alpha {
get(
params?: Params$Resource$Projects$Instances$Workerpools$Get,
options?: MethodOptions
): GaxiosPromise<
Schema$GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerPool
>;
): GaxiosPromise<Schema$GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerPool>;
get(
params: Params$Resource$Projects$Instances$Workerpools$Get,
options: StreamMethodOptions | BodyResponseCallback<Readable>,
Expand All @@ -2482,48 +2446,32 @@ export namespace remotebuildexecution_v1alpha {
params: Params$Resource$Projects$Instances$Workerpools$Get,
options:
| MethodOptions
| BodyResponseCallback<
Schema$GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerPool
>,
callback: BodyResponseCallback<
Schema$GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerPool
>
| BodyResponseCallback<Schema$GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerPool>,
callback: BodyResponseCallback<Schema$GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerPool>
): void;
get(
params: Params$Resource$Projects$Instances$Workerpools$Get,
callback: BodyResponseCallback<
Schema$GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerPool
>
callback: BodyResponseCallback<Schema$GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerPool>
): void;
get(
callback: BodyResponseCallback<
Schema$GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerPool
>
callback: BodyResponseCallback<Schema$GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerPool>
): void;
get(
paramsOrCallback?:
| Params$Resource$Projects$Instances$Workerpools$Get
| BodyResponseCallback<
Schema$GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerPool
>
| BodyResponseCallback<Schema$GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerPool>
| BodyResponseCallback<Readable>,
optionsOrCallback?:
| MethodOptions
| StreamMethodOptions
| BodyResponseCallback<
Schema$GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerPool
>
| BodyResponseCallback<Schema$GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerPool>
| BodyResponseCallback<Readable>,
callback?:
| BodyResponseCallback<
Schema$GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerPool
>
| BodyResponseCallback<Schema$GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerPool>
| BodyResponseCallback<Readable>
):
| void
| GaxiosPromise<
Schema$GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerPool
>
| GaxiosPromise<Schema$GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerPool>
| GaxiosPromise<Readable> {
let params = (paramsOrCallback ||
{}) as Params$Resource$Projects$Instances$Workerpools$Get;
Expand Down Expand Up @@ -2556,13 +2504,14 @@ export namespace remotebuildexecution_v1alpha {
context: this.context,
};
if (callback) {
createAPIRequest<
Schema$GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerPool
>(parameters, callback as BodyResponseCallback<unknown>);
createAPIRequest<Schema$GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerPool>(
parameters,
callback as BodyResponseCallback<unknown>
);
} else {
return createAPIRequest<
Schema$GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerPool
>(parameters);
return createAPIRequest<Schema$GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerPool>(
parameters
);
}
}

Expand Down Expand Up @@ -2625,9 +2574,7 @@ export namespace remotebuildexecution_v1alpha {
list(
params?: Params$Resource$Projects$Instances$Workerpools$List,
options?: MethodOptions
): GaxiosPromise<
Schema$GoogleDevtoolsRemotebuildexecutionAdminV1alphaListWorkerPoolsResponse
>;
): GaxiosPromise<Schema$GoogleDevtoolsRemotebuildexecutionAdminV1alphaListWorkerPoolsResponse>;
list(
params: Params$Resource$Projects$Instances$Workerpools$List,
options: StreamMethodOptions | BodyResponseCallback<Readable>,
Expand All @@ -2637,48 +2584,32 @@ export namespace remotebuildexecution_v1alpha {
params: Params$Resource$Projects$Instances$Workerpools$List,
options:
| MethodOptions
| BodyResponseCallback<
Schema$GoogleDevtoolsRemotebuildexecutionAdminV1alphaListWorkerPoolsResponse
>,
callback: BodyResponseCallback<
Schema$GoogleDevtoolsRemotebuildexecutionAdminV1alphaListWorkerPoolsResponse
>
| BodyResponseCallback<Schema$GoogleDevtoolsRemotebuildexecutionAdminV1alphaListWorkerPoolsResponse>,
callback: BodyResponseCallback<Schema$GoogleDevtoolsRemotebuildexecutionAdminV1alphaListWorkerPoolsResponse>
): void;
list(
params: Params$Resource$Projects$Instances$Workerpools$List,
callback: BodyResponseCallback<
Schema$GoogleDevtoolsRemotebuildexecutionAdminV1alphaListWorkerPoolsResponse
>
callback: BodyResponseCallback<Schema$GoogleDevtoolsRemotebuildexecutionAdminV1alphaListWorkerPoolsResponse>
): void;
list(
callback: BodyResponseCallback<
Schema$GoogleDevtoolsRemotebuildexecutionAdminV1alphaListWorkerPoolsResponse
>
callback: BodyResponseCallback<Schema$GoogleDevtoolsRemotebuildexecutionAdminV1alphaListWorkerPoolsResponse>
): void;
list(
paramsOrCallback?:
| Params$Resource$Projects$Instances$Workerpools$List
| BodyResponseCallback<
Schema$GoogleDevtoolsRemotebuildexecutionAdminV1alphaListWorkerPoolsResponse
>
| BodyResponseCallback<Schema$GoogleDevtoolsRemotebuildexecutionAdminV1alphaListWorkerPoolsResponse>
| BodyResponseCallback<Readable>,
optionsOrCallback?:
| MethodOptions
| StreamMethodOptions
| BodyResponseCallback<
Schema$GoogleDevtoolsRemotebuildexecutionAdminV1alphaListWorkerPoolsResponse
>
| BodyResponseCallback<Schema$GoogleDevtoolsRemotebuildexecutionAdminV1alphaListWorkerPoolsResponse>
| BodyResponseCallback<Readable>,
callback?:
| BodyResponseCallback<
Schema$GoogleDevtoolsRemotebuildexecutionAdminV1alphaListWorkerPoolsResponse
>
| BodyResponseCallback<Schema$GoogleDevtoolsRemotebuildexecutionAdminV1alphaListWorkerPoolsResponse>
| BodyResponseCallback<Readable>
):
| void
| GaxiosPromise<
Schema$GoogleDevtoolsRemotebuildexecutionAdminV1alphaListWorkerPoolsResponse
>
| GaxiosPromise<Schema$GoogleDevtoolsRemotebuildexecutionAdminV1alphaListWorkerPoolsResponse>
| GaxiosPromise<Readable> {
let params = (paramsOrCallback ||
{}) as Params$Resource$Projects$Instances$Workerpools$List;
Expand Down Expand Up @@ -2714,13 +2645,14 @@ export namespace remotebuildexecution_v1alpha {
context: this.context,
};
if (callback) {
createAPIRequest<
Schema$GoogleDevtoolsRemotebuildexecutionAdminV1alphaListWorkerPoolsResponse
>(parameters, callback as BodyResponseCallback<unknown>);
createAPIRequest<Schema$GoogleDevtoolsRemotebuildexecutionAdminV1alphaListWorkerPoolsResponse>(
parameters,
callback as BodyResponseCallback<unknown>
);
} else {
return createAPIRequest<
Schema$GoogleDevtoolsRemotebuildexecutionAdminV1alphaListWorkerPoolsResponse
>(parameters);
return createAPIRequest<Schema$GoogleDevtoolsRemotebuildexecutionAdminV1alphaListWorkerPoolsResponse>(
parameters
);
}
}

Expand Down

0 comments on commit b5f5e99

Please sign in to comment.