Skip to content
This repository has been archived by the owner on Jul 20, 2023. It is now read-only.

Commit

Permalink
fix: make request optional in all cases (#152)
Browse files Browse the repository at this point in the history
... chore: update gapic-generator-ruby to the latest commit chore: release gapic-generator-typescript 1.5.0

Committer: @miraleung
PiperOrigin-RevId: 380641501

Source-Link: googleapis/googleapis@076f7e9

Source-Link: googleapis/googleapis-gen@27e4c88
  • Loading branch information
gcf-owl-bot[bot] committed Jun 22, 2021
1 parent d0bc766 commit 96b9fba
Show file tree
Hide file tree
Showing 23 changed files with 462 additions and 462 deletions.
40 changes: 20 additions & 20 deletions src/v1/dataset_service_client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ export class DatasetServiceClient {
// -- Service calls --
// -------------------
getDataset(
request: protos.google.cloud.aiplatform.v1.IGetDatasetRequest,
request?: protos.google.cloud.aiplatform.v1.IGetDatasetRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -473,7 +473,7 @@ export class DatasetServiceClient {
* const [response] = await client.getDataset(request);
*/
getDataset(
request: protos.google.cloud.aiplatform.v1.IGetDatasetRequest,
request?: protos.google.cloud.aiplatform.v1.IGetDatasetRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -514,7 +514,7 @@ export class DatasetServiceClient {
return this.innerApiCalls.getDataset(request, options, callback);
}
updateDataset(
request: protos.google.cloud.aiplatform.v1.IUpdateDatasetRequest,
request?: protos.google.cloud.aiplatform.v1.IUpdateDatasetRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -570,7 +570,7 @@ export class DatasetServiceClient {
* const [response] = await client.updateDataset(request);
*/
updateDataset(
request: protos.google.cloud.aiplatform.v1.IUpdateDatasetRequest,
request?: protos.google.cloud.aiplatform.v1.IUpdateDatasetRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -613,7 +613,7 @@ export class DatasetServiceClient {
return this.innerApiCalls.updateDataset(request, options, callback);
}
getAnnotationSpec(
request: protos.google.cloud.aiplatform.v1.IGetAnnotationSpecRequest,
request?: protos.google.cloud.aiplatform.v1.IGetAnnotationSpecRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -665,7 +665,7 @@ export class DatasetServiceClient {
* const [response] = await client.getAnnotationSpec(request);
*/
getAnnotationSpec(
request: protos.google.cloud.aiplatform.v1.IGetAnnotationSpecRequest,
request?: protos.google.cloud.aiplatform.v1.IGetAnnotationSpecRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -709,7 +709,7 @@ export class DatasetServiceClient {
}

createDataset(
request: protos.google.cloud.aiplatform.v1.ICreateDatasetRequest,
request?: protos.google.cloud.aiplatform.v1.ICreateDatasetRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -768,7 +768,7 @@ export class DatasetServiceClient {
* const [response] = await operation.promise();
*/
createDataset(
request: protos.google.cloud.aiplatform.v1.ICreateDatasetRequest,
request?: protos.google.cloud.aiplatform.v1.ICreateDatasetRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -853,7 +853,7 @@ export class DatasetServiceClient {
>;
}
deleteDataset(
request: protos.google.cloud.aiplatform.v1.IDeleteDatasetRequest,
request?: protos.google.cloud.aiplatform.v1.IDeleteDatasetRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -911,7 +911,7 @@ export class DatasetServiceClient {
* const [response] = await operation.promise();
*/
deleteDataset(
request: protos.google.cloud.aiplatform.v1.IDeleteDatasetRequest,
request?: protos.google.cloud.aiplatform.v1.IDeleteDatasetRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -996,7 +996,7 @@ export class DatasetServiceClient {
>;
}
importData(
request: protos.google.cloud.aiplatform.v1.IImportDataRequest,
request?: protos.google.cloud.aiplatform.v1.IImportDataRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -1057,7 +1057,7 @@ export class DatasetServiceClient {
* const [response] = await operation.promise();
*/
importData(
request: protos.google.cloud.aiplatform.v1.IImportDataRequest,
request?: protos.google.cloud.aiplatform.v1.IImportDataRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -1142,7 +1142,7 @@ export class DatasetServiceClient {
>;
}
exportData(
request: protos.google.cloud.aiplatform.v1.IExportDataRequest,
request?: protos.google.cloud.aiplatform.v1.IExportDataRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -1202,7 +1202,7 @@ export class DatasetServiceClient {
* const [response] = await operation.promise();
*/
exportData(
request: protos.google.cloud.aiplatform.v1.IExportDataRequest,
request?: protos.google.cloud.aiplatform.v1.IExportDataRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -1287,7 +1287,7 @@ export class DatasetServiceClient {
>;
}
listDatasets(
request: protos.google.cloud.aiplatform.v1.IListDatasetsRequest,
request?: protos.google.cloud.aiplatform.v1.IListDatasetsRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -1366,7 +1366,7 @@ export class DatasetServiceClient {
* for more details and examples.
*/
listDatasets(
request: protos.google.cloud.aiplatform.v1.IListDatasetsRequest,
request?: protos.google.cloud.aiplatform.v1.IListDatasetsRequest,
optionsOrCallback?:
| CallOptions
| PaginationCallback<
Expand Down Expand Up @@ -1550,7 +1550,7 @@ export class DatasetServiceClient {
) as AsyncIterable<protos.google.cloud.aiplatform.v1.IDataset>;
}
listDataItems(
request: protos.google.cloud.aiplatform.v1.IListDataItemsRequest,
request?: protos.google.cloud.aiplatform.v1.IListDataItemsRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -1614,7 +1614,7 @@ export class DatasetServiceClient {
* for more details and examples.
*/
listDataItems(
request: protos.google.cloud.aiplatform.v1.IListDataItemsRequest,
request?: protos.google.cloud.aiplatform.v1.IListDataItemsRequest,
optionsOrCallback?:
| CallOptions
| PaginationCallback<
Expand Down Expand Up @@ -1768,7 +1768,7 @@ export class DatasetServiceClient {
) as AsyncIterable<protos.google.cloud.aiplatform.v1.IDataItem>;
}
listAnnotations(
request: protos.google.cloud.aiplatform.v1.IListAnnotationsRequest,
request?: protos.google.cloud.aiplatform.v1.IListAnnotationsRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -1832,7 +1832,7 @@ export class DatasetServiceClient {
* for more details and examples.
*/
listAnnotations(
request: protos.google.cloud.aiplatform.v1.IListAnnotationsRequest,
request?: protos.google.cloud.aiplatform.v1.IListAnnotationsRequest,
optionsOrCallback?:
| CallOptions
| PaginationCallback<
Expand Down
28 changes: 14 additions & 14 deletions src/v1/endpoint_service_client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ export class EndpointServiceClient {
// -- Service calls --
// -------------------
getEndpoint(
request: protos.google.cloud.aiplatform.v1.IGetEndpointRequest,
request?: protos.google.cloud.aiplatform.v1.IGetEndpointRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -460,7 +460,7 @@ export class EndpointServiceClient {
* const [response] = await client.getEndpoint(request);
*/
getEndpoint(
request: protos.google.cloud.aiplatform.v1.IGetEndpointRequest,
request?: protos.google.cloud.aiplatform.v1.IGetEndpointRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -501,7 +501,7 @@ export class EndpointServiceClient {
return this.innerApiCalls.getEndpoint(request, options, callback);
}
updateEndpoint(
request: protos.google.cloud.aiplatform.v1.IUpdateEndpointRequest,
request?: protos.google.cloud.aiplatform.v1.IUpdateEndpointRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -551,7 +551,7 @@ export class EndpointServiceClient {
* const [response] = await client.updateEndpoint(request);
*/
updateEndpoint(
request: protos.google.cloud.aiplatform.v1.IUpdateEndpointRequest,
request?: protos.google.cloud.aiplatform.v1.IUpdateEndpointRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -595,7 +595,7 @@ export class EndpointServiceClient {
}

createEndpoint(
request: protos.google.cloud.aiplatform.v1.ICreateEndpointRequest,
request?: protos.google.cloud.aiplatform.v1.ICreateEndpointRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -654,7 +654,7 @@ export class EndpointServiceClient {
* const [response] = await operation.promise();
*/
createEndpoint(
request: protos.google.cloud.aiplatform.v1.ICreateEndpointRequest,
request?: protos.google.cloud.aiplatform.v1.ICreateEndpointRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -739,7 +739,7 @@ export class EndpointServiceClient {
>;
}
deleteEndpoint(
request: protos.google.cloud.aiplatform.v1.IDeleteEndpointRequest,
request?: protos.google.cloud.aiplatform.v1.IDeleteEndpointRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -797,7 +797,7 @@ export class EndpointServiceClient {
* const [response] = await operation.promise();
*/
deleteEndpoint(
request: protos.google.cloud.aiplatform.v1.IDeleteEndpointRequest,
request?: protos.google.cloud.aiplatform.v1.IDeleteEndpointRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -882,7 +882,7 @@ export class EndpointServiceClient {
>;
}
deployModel(
request: protos.google.cloud.aiplatform.v1.IDeployModelRequest,
request?: protos.google.cloud.aiplatform.v1.IDeployModelRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -957,7 +957,7 @@ export class EndpointServiceClient {
* const [response] = await operation.promise();
*/
deployModel(
request: protos.google.cloud.aiplatform.v1.IDeployModelRequest,
request?: protos.google.cloud.aiplatform.v1.IDeployModelRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -1042,7 +1042,7 @@ export class EndpointServiceClient {
>;
}
undeployModel(
request: protos.google.cloud.aiplatform.v1.IUndeployModelRequest,
request?: protos.google.cloud.aiplatform.v1.IUndeployModelRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -1111,7 +1111,7 @@ export class EndpointServiceClient {
* const [response] = await operation.promise();
*/
undeployModel(
request: protos.google.cloud.aiplatform.v1.IUndeployModelRequest,
request?: protos.google.cloud.aiplatform.v1.IUndeployModelRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -1196,7 +1196,7 @@ export class EndpointServiceClient {
>;
}
listEndpoints(
request: protos.google.cloud.aiplatform.v1.IListEndpointsRequest,
request?: protos.google.cloud.aiplatform.v1.IListEndpointsRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -1282,7 +1282,7 @@ export class EndpointServiceClient {
* for more details and examples.
*/
listEndpoints(
request: protos.google.cloud.aiplatform.v1.IListEndpointsRequest,
request?: protos.google.cloud.aiplatform.v1.IListEndpointsRequest,
optionsOrCallback?:
| CallOptions
| PaginationCallback<
Expand Down
Loading

0 comments on commit 96b9fba

Please sign in to comment.