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

Commit

Permalink
fix: make request optional in all cases (#153)
Browse files Browse the repository at this point in the history
Committer: @miraleung
PiperOrigin-RevId: 380641501
  • Loading branch information
gcf-owl-bot[bot] authored Jun 23, 2021
1 parent 4dd9517 commit 3bc4004
Show file tree
Hide file tree
Showing 4 changed files with 76 additions and 76 deletions.
4 changes: 2 additions & 2 deletions src/v1/lookup_service_client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ export class LookupServiceClient {
// -- Service calls --
// -------------------
resolveService(
request: protos.google.cloud.servicedirectory.v1.IResolveServiceRequest,
request?: protos.google.cloud.servicedirectory.v1.IResolveServiceRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -359,7 +359,7 @@ export class LookupServiceClient {
* const [response] = await client.resolveService(request);
*/
resolveService(
request: protos.google.cloud.servicedirectory.v1.IResolveServiceRequest,
request?: protos.google.cloud.servicedirectory.v1.IResolveServiceRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down
72 changes: 36 additions & 36 deletions src/v1/registration_service_client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ export class RegistrationServiceClient {
// -- Service calls --
// -------------------
createNamespace(
request: protos.google.cloud.servicedirectory.v1.ICreateNamespaceRequest,
request?: protos.google.cloud.servicedirectory.v1.ICreateNamespaceRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -412,7 +412,7 @@ export class RegistrationServiceClient {
* const [response] = await client.createNamespace(request);
*/
createNamespace(
request: protos.google.cloud.servicedirectory.v1.ICreateNamespaceRequest,
request?: protos.google.cloud.servicedirectory.v1.ICreateNamespaceRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -458,7 +458,7 @@ export class RegistrationServiceClient {
return this.innerApiCalls.createNamespace(request, options, callback);
}
getNamespace(
request: protos.google.cloud.servicedirectory.v1.IGetNamespaceRequest,
request?: protos.google.cloud.servicedirectory.v1.IGetNamespaceRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -506,7 +506,7 @@ export class RegistrationServiceClient {
* const [response] = await client.getNamespace(request);
*/
getNamespace(
request: protos.google.cloud.servicedirectory.v1.IGetNamespaceRequest,
request?: protos.google.cloud.servicedirectory.v1.IGetNamespaceRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -549,7 +549,7 @@ export class RegistrationServiceClient {
return this.innerApiCalls.getNamespace(request, options, callback);
}
updateNamespace(
request: protos.google.cloud.servicedirectory.v1.IUpdateNamespaceRequest,
request?: protos.google.cloud.servicedirectory.v1.IUpdateNamespaceRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -602,7 +602,7 @@ export class RegistrationServiceClient {
* const [response] = await client.updateNamespace(request);
*/
updateNamespace(
request: protos.google.cloud.servicedirectory.v1.IUpdateNamespaceRequest,
request?: protos.google.cloud.servicedirectory.v1.IUpdateNamespaceRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -648,7 +648,7 @@ export class RegistrationServiceClient {
return this.innerApiCalls.updateNamespace(request, options, callback);
}
deleteNamespace(
request: protos.google.cloud.servicedirectory.v1.IDeleteNamespaceRequest,
request?: protos.google.cloud.servicedirectory.v1.IDeleteNamespaceRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -700,7 +700,7 @@ export class RegistrationServiceClient {
* const [response] = await client.deleteNamespace(request);
*/
deleteNamespace(
request: protos.google.cloud.servicedirectory.v1.IDeleteNamespaceRequest,
request?: protos.google.cloud.servicedirectory.v1.IDeleteNamespaceRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -746,7 +746,7 @@ export class RegistrationServiceClient {
return this.innerApiCalls.deleteNamespace(request, options, callback);
}
createService(
request: protos.google.cloud.servicedirectory.v1.ICreateServiceRequest,
request?: protos.google.cloud.servicedirectory.v1.ICreateServiceRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -804,7 +804,7 @@ export class RegistrationServiceClient {
* const [response] = await client.createService(request);
*/
createService(
request: protos.google.cloud.servicedirectory.v1.ICreateServiceRequest,
request?: protos.google.cloud.servicedirectory.v1.ICreateServiceRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -847,7 +847,7 @@ export class RegistrationServiceClient {
return this.innerApiCalls.createService(request, options, callback);
}
getService(
request: protos.google.cloud.servicedirectory.v1.IGetServiceRequest,
request?: protos.google.cloud.servicedirectory.v1.IGetServiceRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -895,7 +895,7 @@ export class RegistrationServiceClient {
* const [response] = await client.getService(request);
*/
getService(
request: protos.google.cloud.servicedirectory.v1.IGetServiceRequest,
request?: protos.google.cloud.servicedirectory.v1.IGetServiceRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -938,7 +938,7 @@ export class RegistrationServiceClient {
return this.innerApiCalls.getService(request, options, callback);
}
updateService(
request: protos.google.cloud.servicedirectory.v1.IUpdateServiceRequest,
request?: protos.google.cloud.servicedirectory.v1.IUpdateServiceRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -988,7 +988,7 @@ export class RegistrationServiceClient {
* const [response] = await client.updateService(request);
*/
updateService(
request: protos.google.cloud.servicedirectory.v1.IUpdateServiceRequest,
request?: protos.google.cloud.servicedirectory.v1.IUpdateServiceRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -1031,7 +1031,7 @@ export class RegistrationServiceClient {
return this.innerApiCalls.updateService(request, options, callback);
}
deleteService(
request: protos.google.cloud.servicedirectory.v1.IDeleteServiceRequest,
request?: protos.google.cloud.servicedirectory.v1.IDeleteServiceRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -1080,7 +1080,7 @@ export class RegistrationServiceClient {
* const [response] = await client.deleteService(request);
*/
deleteService(
request: protos.google.cloud.servicedirectory.v1.IDeleteServiceRequest,
request?: protos.google.cloud.servicedirectory.v1.IDeleteServiceRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -1123,7 +1123,7 @@ export class RegistrationServiceClient {
return this.innerApiCalls.deleteService(request, options, callback);
}
createEndpoint(
request: protos.google.cloud.servicedirectory.v1.ICreateEndpointRequest,
request?: protos.google.cloud.servicedirectory.v1.ICreateEndpointRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -1184,7 +1184,7 @@ export class RegistrationServiceClient {
* const [response] = await client.createEndpoint(request);
*/
createEndpoint(
request: protos.google.cloud.servicedirectory.v1.ICreateEndpointRequest,
request?: protos.google.cloud.servicedirectory.v1.ICreateEndpointRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -1230,7 +1230,7 @@ export class RegistrationServiceClient {
return this.innerApiCalls.createEndpoint(request, options, callback);
}
getEndpoint(
request: protos.google.cloud.servicedirectory.v1.IGetEndpointRequest,
request?: protos.google.cloud.servicedirectory.v1.IGetEndpointRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -1278,7 +1278,7 @@ export class RegistrationServiceClient {
* const [response] = await client.getEndpoint(request);
*/
getEndpoint(
request: protos.google.cloud.servicedirectory.v1.IGetEndpointRequest,
request?: protos.google.cloud.servicedirectory.v1.IGetEndpointRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -1321,7 +1321,7 @@ export class RegistrationServiceClient {
return this.innerApiCalls.getEndpoint(request, options, callback);
}
updateEndpoint(
request: protos.google.cloud.servicedirectory.v1.IUpdateEndpointRequest,
request?: protos.google.cloud.servicedirectory.v1.IUpdateEndpointRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -1374,7 +1374,7 @@ export class RegistrationServiceClient {
* const [response] = await client.updateEndpoint(request);
*/
updateEndpoint(
request: protos.google.cloud.servicedirectory.v1.IUpdateEndpointRequest,
request?: protos.google.cloud.servicedirectory.v1.IUpdateEndpointRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -1420,7 +1420,7 @@ export class RegistrationServiceClient {
return this.innerApiCalls.updateEndpoint(request, options, callback);
}
deleteEndpoint(
request: protos.google.cloud.servicedirectory.v1.IDeleteEndpointRequest,
request?: protos.google.cloud.servicedirectory.v1.IDeleteEndpointRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -1471,7 +1471,7 @@ export class RegistrationServiceClient {
* const [response] = await client.deleteEndpoint(request);
*/
deleteEndpoint(
request: protos.google.cloud.servicedirectory.v1.IDeleteEndpointRequest,
request?: protos.google.cloud.servicedirectory.v1.IDeleteEndpointRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -1517,7 +1517,7 @@ export class RegistrationServiceClient {
return this.innerApiCalls.deleteEndpoint(request, options, callback);
}
getIamPolicy(
request: protos.google.iam.v1.IGetIamPolicyRequest,
request?: protos.google.iam.v1.IGetIamPolicyRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -1565,7 +1565,7 @@ export class RegistrationServiceClient {
* const [response] = await client.getIamPolicy(request);
*/
getIamPolicy(
request: protos.google.iam.v1.IGetIamPolicyRequest,
request?: protos.google.iam.v1.IGetIamPolicyRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -1604,7 +1604,7 @@ export class RegistrationServiceClient {
return this.innerApiCalls.getIamPolicy(request, options, callback);
}
setIamPolicy(
request: protos.google.iam.v1.ISetIamPolicyRequest,
request?: protos.google.iam.v1.ISetIamPolicyRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -1654,7 +1654,7 @@ export class RegistrationServiceClient {
* const [response] = await client.setIamPolicy(request);
*/
setIamPolicy(
request: protos.google.iam.v1.ISetIamPolicyRequest,
request?: protos.google.iam.v1.ISetIamPolicyRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -1693,7 +1693,7 @@ export class RegistrationServiceClient {
return this.innerApiCalls.setIamPolicy(request, options, callback);
}
testIamPermissions(
request: protos.google.iam.v1.ITestIamPermissionsRequest,
request?: protos.google.iam.v1.ITestIamPermissionsRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -1743,7 +1743,7 @@ export class RegistrationServiceClient {
* const [response] = await client.testIamPermissions(request);
*/
testIamPermissions(
request: protos.google.iam.v1.ITestIamPermissionsRequest,
request?: protos.google.iam.v1.ITestIamPermissionsRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -1783,7 +1783,7 @@ export class RegistrationServiceClient {
}

listNamespaces(
request: protos.google.cloud.servicedirectory.v1.IListNamespacesRequest,
request?: protos.google.cloud.servicedirectory.v1.IListNamespacesRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -1874,7 +1874,7 @@ export class RegistrationServiceClient {
* for more details and examples.
*/
listNamespaces(
request: protos.google.cloud.servicedirectory.v1.IListNamespacesRequest,
request?: protos.google.cloud.servicedirectory.v1.IListNamespacesRequest,
optionsOrCallback?:
| CallOptions
| PaginationCallback<
Expand Down Expand Up @@ -2082,7 +2082,7 @@ export class RegistrationServiceClient {
) as AsyncIterable<protos.google.cloud.servicedirectory.v1.INamespace>;
}
listServices(
request: protos.google.cloud.servicedirectory.v1.IListServicesRequest,
request?: protos.google.cloud.servicedirectory.v1.IListServicesRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -2165,7 +2165,7 @@ export class RegistrationServiceClient {
* for more details and examples.
*/
listServices(
request: protos.google.cloud.servicedirectory.v1.IListServicesRequest,
request?: protos.google.cloud.servicedirectory.v1.IListServicesRequest,
optionsOrCallback?:
| CallOptions
| PaginationCallback<
Expand Down Expand Up @@ -2357,7 +2357,7 @@ export class RegistrationServiceClient {
) as AsyncIterable<protos.google.cloud.servicedirectory.v1.IService>;
}
listEndpoints(
request: protos.google.cloud.servicedirectory.v1.IListEndpointsRequest,
request?: protos.google.cloud.servicedirectory.v1.IListEndpointsRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -2442,7 +2442,7 @@ export class RegistrationServiceClient {
* for more details and examples.
*/
listEndpoints(
request: protos.google.cloud.servicedirectory.v1.IListEndpointsRequest,
request?: protos.google.cloud.servicedirectory.v1.IListEndpointsRequest,
optionsOrCallback?:
| CallOptions
| PaginationCallback<
Expand Down
4 changes: 2 additions & 2 deletions src/v1beta1/lookup_service_client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ export class LookupServiceClient {
// -- Service calls --
// -------------------
resolveService(
request: protos.google.cloud.servicedirectory.v1beta1.IResolveServiceRequest,
request?: protos.google.cloud.servicedirectory.v1beta1.IResolveServiceRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -360,7 +360,7 @@ export class LookupServiceClient {
* const [response] = await client.resolveService(request);
*/
resolveService(
request: protos.google.cloud.servicedirectory.v1beta1.IResolveServiceRequest,
request?: protos.google.cloud.servicedirectory.v1beta1.IResolveServiceRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down
Loading

0 comments on commit 3bc4004

Please sign in to comment.