Skip to content

Commit

Permalink
fix: make request optional in all cases (#490)
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] authored Jun 22, 2021
1 parent 1814ca0 commit 0689cf9
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 36 deletions.
36 changes: 18 additions & 18 deletions packages/google-cloud-redis/src/v1/cloud_redis_client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ export class CloudRedisClient {
// -- Service calls --
// -------------------
getInstance(
request: protos.google.cloud.redis.v1.IGetInstanceRequest,
request?: protos.google.cloud.redis.v1.IGetInstanceRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -468,7 +468,7 @@ export class CloudRedisClient {
* const [response] = await client.getInstance(request);
*/
getInstance(
request: protos.google.cloud.redis.v1.IGetInstanceRequest,
request?: protos.google.cloud.redis.v1.IGetInstanceRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -508,7 +508,7 @@ export class CloudRedisClient {
}

createInstance(
request: protos.google.cloud.redis.v1.ICreateInstanceRequest,
request?: protos.google.cloud.redis.v1.ICreateInstanceRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -588,7 +588,7 @@ export class CloudRedisClient {
* const [response] = await operation.promise();
*/
createInstance(
request: protos.google.cloud.redis.v1.ICreateInstanceRequest,
request?: protos.google.cloud.redis.v1.ICreateInstanceRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -673,7 +673,7 @@ export class CloudRedisClient {
>;
}
updateInstance(
request: protos.google.cloud.redis.v1.IUpdateInstanceRequest,
request?: protos.google.cloud.redis.v1.IUpdateInstanceRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -743,7 +743,7 @@ export class CloudRedisClient {
* const [response] = await operation.promise();
*/
updateInstance(
request: protos.google.cloud.redis.v1.IUpdateInstanceRequest,
request?: protos.google.cloud.redis.v1.IUpdateInstanceRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -828,7 +828,7 @@ export class CloudRedisClient {
>;
}
upgradeInstance(
request: protos.google.cloud.redis.v1.IUpgradeInstanceRequest,
request?: protos.google.cloud.redis.v1.IUpgradeInstanceRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -889,7 +889,7 @@ export class CloudRedisClient {
* const [response] = await operation.promise();
*/
upgradeInstance(
request: protos.google.cloud.redis.v1.IUpgradeInstanceRequest,
request?: protos.google.cloud.redis.v1.IUpgradeInstanceRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -974,7 +974,7 @@ export class CloudRedisClient {
>;
}
importInstance(
request: protos.google.cloud.redis.v1.IImportInstanceRequest,
request?: protos.google.cloud.redis.v1.IImportInstanceRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -1041,7 +1041,7 @@ export class CloudRedisClient {
* const [response] = await operation.promise();
*/
importInstance(
request: protos.google.cloud.redis.v1.IImportInstanceRequest,
request?: protos.google.cloud.redis.v1.IImportInstanceRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -1126,7 +1126,7 @@ export class CloudRedisClient {
>;
}
exportInstance(
request: protos.google.cloud.redis.v1.IExportInstanceRequest,
request?: protos.google.cloud.redis.v1.IExportInstanceRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -1191,7 +1191,7 @@ export class CloudRedisClient {
* const [response] = await operation.promise();
*/
exportInstance(
request: protos.google.cloud.redis.v1.IExportInstanceRequest,
request?: protos.google.cloud.redis.v1.IExportInstanceRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -1276,7 +1276,7 @@ export class CloudRedisClient {
>;
}
failoverInstance(
request: protos.google.cloud.redis.v1.IFailoverInstanceRequest,
request?: protos.google.cloud.redis.v1.IFailoverInstanceRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -1338,7 +1338,7 @@ export class CloudRedisClient {
* const [response] = await operation.promise();
*/
failoverInstance(
request: protos.google.cloud.redis.v1.IFailoverInstanceRequest,
request?: protos.google.cloud.redis.v1.IFailoverInstanceRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -1423,7 +1423,7 @@ export class CloudRedisClient {
>;
}
deleteInstance(
request: protos.google.cloud.redis.v1.IDeleteInstanceRequest,
request?: protos.google.cloud.redis.v1.IDeleteInstanceRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -1482,7 +1482,7 @@ export class CloudRedisClient {
* const [response] = await operation.promise();
*/
deleteInstance(
request: protos.google.cloud.redis.v1.IDeleteInstanceRequest,
request?: protos.google.cloud.redis.v1.IDeleteInstanceRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -1567,7 +1567,7 @@ export class CloudRedisClient {
>;
}
listInstances(
request: protos.google.cloud.redis.v1.IListInstancesRequest,
request?: protos.google.cloud.redis.v1.IListInstancesRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -1635,7 +1635,7 @@ export class CloudRedisClient {
* for more details and examples.
*/
listInstances(
request: protos.google.cloud.redis.v1.IListInstancesRequest,
request?: protos.google.cloud.redis.v1.IListInstancesRequest,
optionsOrCallback?:
| CallOptions
| PaginationCallback<
Expand Down
36 changes: 18 additions & 18 deletions packages/google-cloud-redis/src/v1beta1/cloud_redis_client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ export class CloudRedisClient {
// -- Service calls --
// -------------------
getInstance(
request: protos.google.cloud.redis.v1beta1.IGetInstanceRequest,
request?: protos.google.cloud.redis.v1beta1.IGetInstanceRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -468,7 +468,7 @@ export class CloudRedisClient {
* const [response] = await client.getInstance(request);
*/
getInstance(
request: protos.google.cloud.redis.v1beta1.IGetInstanceRequest,
request?: protos.google.cloud.redis.v1beta1.IGetInstanceRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -510,7 +510,7 @@ export class CloudRedisClient {
}

createInstance(
request: protos.google.cloud.redis.v1beta1.ICreateInstanceRequest,
request?: protos.google.cloud.redis.v1beta1.ICreateInstanceRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -590,7 +590,7 @@ export class CloudRedisClient {
* const [response] = await operation.promise();
*/
createInstance(
request: protos.google.cloud.redis.v1beta1.ICreateInstanceRequest,
request?: protos.google.cloud.redis.v1beta1.ICreateInstanceRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -675,7 +675,7 @@ export class CloudRedisClient {
>;
}
updateInstance(
request: protos.google.cloud.redis.v1beta1.IUpdateInstanceRequest,
request?: protos.google.cloud.redis.v1beta1.IUpdateInstanceRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -745,7 +745,7 @@ export class CloudRedisClient {
* const [response] = await operation.promise();
*/
updateInstance(
request: protos.google.cloud.redis.v1beta1.IUpdateInstanceRequest,
request?: protos.google.cloud.redis.v1beta1.IUpdateInstanceRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -830,7 +830,7 @@ export class CloudRedisClient {
>;
}
upgradeInstance(
request: protos.google.cloud.redis.v1beta1.IUpgradeInstanceRequest,
request?: protos.google.cloud.redis.v1beta1.IUpgradeInstanceRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -891,7 +891,7 @@ export class CloudRedisClient {
* const [response] = await operation.promise();
*/
upgradeInstance(
request: protos.google.cloud.redis.v1beta1.IUpgradeInstanceRequest,
request?: protos.google.cloud.redis.v1beta1.IUpgradeInstanceRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -976,7 +976,7 @@ export class CloudRedisClient {
>;
}
importInstance(
request: protos.google.cloud.redis.v1beta1.IImportInstanceRequest,
request?: protos.google.cloud.redis.v1beta1.IImportInstanceRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -1043,7 +1043,7 @@ export class CloudRedisClient {
* const [response] = await operation.promise();
*/
importInstance(
request: protos.google.cloud.redis.v1beta1.IImportInstanceRequest,
request?: protos.google.cloud.redis.v1beta1.IImportInstanceRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -1128,7 +1128,7 @@ export class CloudRedisClient {
>;
}
exportInstance(
request: protos.google.cloud.redis.v1beta1.IExportInstanceRequest,
request?: protos.google.cloud.redis.v1beta1.IExportInstanceRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -1193,7 +1193,7 @@ export class CloudRedisClient {
* const [response] = await operation.promise();
*/
exportInstance(
request: protos.google.cloud.redis.v1beta1.IExportInstanceRequest,
request?: protos.google.cloud.redis.v1beta1.IExportInstanceRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -1278,7 +1278,7 @@ export class CloudRedisClient {
>;
}
failoverInstance(
request: protos.google.cloud.redis.v1beta1.IFailoverInstanceRequest,
request?: protos.google.cloud.redis.v1beta1.IFailoverInstanceRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -1340,7 +1340,7 @@ export class CloudRedisClient {
* const [response] = await operation.promise();
*/
failoverInstance(
request: protos.google.cloud.redis.v1beta1.IFailoverInstanceRequest,
request?: protos.google.cloud.redis.v1beta1.IFailoverInstanceRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -1425,7 +1425,7 @@ export class CloudRedisClient {
>;
}
deleteInstance(
request: protos.google.cloud.redis.v1beta1.IDeleteInstanceRequest,
request?: protos.google.cloud.redis.v1beta1.IDeleteInstanceRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -1475,7 +1475,7 @@ export class CloudRedisClient {
* const [response] = await operation.promise();
*/
deleteInstance(
request: protos.google.cloud.redis.v1beta1.IDeleteInstanceRequest,
request?: protos.google.cloud.redis.v1beta1.IDeleteInstanceRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -1551,7 +1551,7 @@ export class CloudRedisClient {
>;
}
listInstances(
request: protos.google.cloud.redis.v1beta1.IListInstancesRequest,
request?: protos.google.cloud.redis.v1beta1.IListInstancesRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -1623,7 +1623,7 @@ export class CloudRedisClient {
* for more details and examples.
*/
listInstances(
request: protos.google.cloud.redis.v1beta1.IListInstancesRequest,
request?: protos.google.cloud.redis.v1beta1.IListInstancesRequest,
optionsOrCallback?:
| CallOptions
| PaginationCallback<
Expand Down

0 comments on commit 0689cf9

Please sign in to comment.