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

fix: make request optional in all cases #504

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions src/v1/autoscaling_policy_service_client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ export class AutoscalingPolicyServiceClient {
// -- Service calls --
// -------------------
createAutoscalingPolicy(
request: protos.google.cloud.dataproc.v1.ICreateAutoscalingPolicyRequest,
request?: protos.google.cloud.dataproc.v1.ICreateAutoscalingPolicyRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -387,7 +387,7 @@ export class AutoscalingPolicyServiceClient {
* const [response] = await client.createAutoscalingPolicy(request);
*/
createAutoscalingPolicy(
request: protos.google.cloud.dataproc.v1.ICreateAutoscalingPolicyRequest,
request?: protos.google.cloud.dataproc.v1.ICreateAutoscalingPolicyRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -437,7 +437,7 @@ export class AutoscalingPolicyServiceClient {
);
}
updateAutoscalingPolicy(
request: protos.google.cloud.dataproc.v1.IUpdateAutoscalingPolicyRequest,
request?: protos.google.cloud.dataproc.v1.IUpdateAutoscalingPolicyRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -491,7 +491,7 @@ export class AutoscalingPolicyServiceClient {
* const [response] = await client.updateAutoscalingPolicy(request);
*/
updateAutoscalingPolicy(
request: protos.google.cloud.dataproc.v1.IUpdateAutoscalingPolicyRequest,
request?: protos.google.cloud.dataproc.v1.IUpdateAutoscalingPolicyRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -541,7 +541,7 @@ export class AutoscalingPolicyServiceClient {
);
}
getAutoscalingPolicy(
request: protos.google.cloud.dataproc.v1.IGetAutoscalingPolicyRequest,
request?: protos.google.cloud.dataproc.v1.IGetAutoscalingPolicyRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -598,7 +598,7 @@ export class AutoscalingPolicyServiceClient {
* const [response] = await client.getAutoscalingPolicy(request);
*/
getAutoscalingPolicy(
request: protos.google.cloud.dataproc.v1.IGetAutoscalingPolicyRequest,
request?: protos.google.cloud.dataproc.v1.IGetAutoscalingPolicyRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -641,7 +641,7 @@ export class AutoscalingPolicyServiceClient {
return this.innerApiCalls.getAutoscalingPolicy(request, options, callback);
}
deleteAutoscalingPolicy(
request: protos.google.cloud.dataproc.v1.IDeleteAutoscalingPolicyRequest,
request?: protos.google.cloud.dataproc.v1.IDeleteAutoscalingPolicyRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -702,7 +702,7 @@ export class AutoscalingPolicyServiceClient {
* const [response] = await client.deleteAutoscalingPolicy(request);
*/
deleteAutoscalingPolicy(
request: protos.google.cloud.dataproc.v1.IDeleteAutoscalingPolicyRequest,
request?: protos.google.cloud.dataproc.v1.IDeleteAutoscalingPolicyRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -753,7 +753,7 @@ export class AutoscalingPolicyServiceClient {
}

listAutoscalingPolicies(
request: protos.google.cloud.dataproc.v1.IListAutoscalingPoliciesRequest,
request?: protos.google.cloud.dataproc.v1.IListAutoscalingPoliciesRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -819,7 +819,7 @@ export class AutoscalingPolicyServiceClient {
* for more details and examples.
*/
listAutoscalingPolicies(
request: protos.google.cloud.dataproc.v1.IListAutoscalingPoliciesRequest,
request?: protos.google.cloud.dataproc.v1.IListAutoscalingPoliciesRequest,
optionsOrCallback?:
| CallOptions
| PaginationCallback<
Expand Down
32 changes: 16 additions & 16 deletions src/v1/cluster_controller_client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ export class ClusterControllerClient {
// -- Service calls --
// -------------------
getCluster(
request: protos.google.cloud.dataproc.v1.IGetClusterRequest,
request?: protos.google.cloud.dataproc.v1.IGetClusterRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -459,7 +459,7 @@ export class ClusterControllerClient {
* const [response] = await client.getCluster(request);
*/
getCluster(
request: protos.google.cloud.dataproc.v1.IGetClusterRequest,
request?: protos.google.cloud.dataproc.v1.IGetClusterRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -499,7 +499,7 @@ export class ClusterControllerClient {
}

createCluster(
request: protos.google.cloud.dataproc.v1.ICreateClusterRequest,
request?: protos.google.cloud.dataproc.v1.ICreateClusterRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -574,7 +574,7 @@ export class ClusterControllerClient {
* const [response] = await operation.promise();
*/
createCluster(
request: protos.google.cloud.dataproc.v1.ICreateClusterRequest,
request?: protos.google.cloud.dataproc.v1.ICreateClusterRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -659,7 +659,7 @@ export class ClusterControllerClient {
>;
}
updateCluster(
request: protos.google.cloud.dataproc.v1.IUpdateClusterRequest,
request?: protos.google.cloud.dataproc.v1.IUpdateClusterRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -799,7 +799,7 @@ export class ClusterControllerClient {
* const [response] = await operation.promise();
*/
updateCluster(
request: protos.google.cloud.dataproc.v1.IUpdateClusterRequest,
request?: protos.google.cloud.dataproc.v1.IUpdateClusterRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -884,7 +884,7 @@ export class ClusterControllerClient {
>;
}
stopCluster(
request: protos.google.cloud.dataproc.v1.IStopClusterRequest,
request?: protos.google.cloud.dataproc.v1.IStopClusterRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -961,7 +961,7 @@ export class ClusterControllerClient {
* const [response] = await operation.promise();
*/
stopCluster(
request: protos.google.cloud.dataproc.v1.IStopClusterRequest,
request?: protos.google.cloud.dataproc.v1.IStopClusterRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -1046,7 +1046,7 @@ export class ClusterControllerClient {
>;
}
startCluster(
request: protos.google.cloud.dataproc.v1.IStartClusterRequest,
request?: protos.google.cloud.dataproc.v1.IStartClusterRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -1123,7 +1123,7 @@ export class ClusterControllerClient {
* const [response] = await operation.promise();
*/
startCluster(
request: protos.google.cloud.dataproc.v1.IStartClusterRequest,
request?: protos.google.cloud.dataproc.v1.IStartClusterRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -1208,7 +1208,7 @@ export class ClusterControllerClient {
>;
}
deleteCluster(
request: protos.google.cloud.dataproc.v1.IDeleteClusterRequest,
request?: protos.google.cloud.dataproc.v1.IDeleteClusterRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -1287,7 +1287,7 @@ export class ClusterControllerClient {
* const [response] = await operation.promise();
*/
deleteCluster(
request: protos.google.cloud.dataproc.v1.IDeleteClusterRequest,
request?: protos.google.cloud.dataproc.v1.IDeleteClusterRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -1372,7 +1372,7 @@ export class ClusterControllerClient {
>;
}
diagnoseCluster(
request: protos.google.cloud.dataproc.v1.IDiagnoseClusterRequest,
request?: protos.google.cloud.dataproc.v1.IDiagnoseClusterRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -1439,7 +1439,7 @@ export class ClusterControllerClient {
* const [response] = await operation.promise();
*/
diagnoseCluster(
request: protos.google.cloud.dataproc.v1.IDiagnoseClusterRequest,
request?: protos.google.cloud.dataproc.v1.IDiagnoseClusterRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -1524,7 +1524,7 @@ export class ClusterControllerClient {
>;
}
listClusters(
request: protos.google.cloud.dataproc.v1.IListClustersRequest,
request?: protos.google.cloud.dataproc.v1.IListClustersRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -1598,7 +1598,7 @@ export class ClusterControllerClient {
* for more details and examples.
*/
listClusters(
request: protos.google.cloud.dataproc.v1.IListClustersRequest,
request?: protos.google.cloud.dataproc.v1.IListClustersRequest,
optionsOrCallback?:
| CallOptions
| PaginationCallback<
Expand Down
28 changes: 14 additions & 14 deletions src/v1/job_controller_client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ export class JobControllerClient {
// -- Service calls --
// -------------------
submitJob(
request: protos.google.cloud.dataproc.v1.ISubmitJobRequest,
request?: protos.google.cloud.dataproc.v1.ISubmitJobRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -412,7 +412,7 @@ export class JobControllerClient {
* const [response] = await client.submitJob(request);
*/
submitJob(
request: protos.google.cloud.dataproc.v1.ISubmitJobRequest,
request?: protos.google.cloud.dataproc.v1.ISubmitJobRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -451,7 +451,7 @@ export class JobControllerClient {
return this.innerApiCalls.submitJob(request, options, callback);
}
getJob(
request: protos.google.cloud.dataproc.v1.IGetJobRequest,
request?: protos.google.cloud.dataproc.v1.IGetJobRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -500,7 +500,7 @@ export class JobControllerClient {
* const [response] = await client.getJob(request);
*/
getJob(
request: protos.google.cloud.dataproc.v1.IGetJobRequest,
request?: protos.google.cloud.dataproc.v1.IGetJobRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -539,7 +539,7 @@ export class JobControllerClient {
return this.innerApiCalls.getJob(request, options, callback);
}
updateJob(
request: protos.google.cloud.dataproc.v1.IUpdateJobRequest,
request?: protos.google.cloud.dataproc.v1.IUpdateJobRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -597,7 +597,7 @@ export class JobControllerClient {
* const [response] = await client.updateJob(request);
*/
updateJob(
request: protos.google.cloud.dataproc.v1.IUpdateJobRequest,
request?: protos.google.cloud.dataproc.v1.IUpdateJobRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -636,7 +636,7 @@ export class JobControllerClient {
return this.innerApiCalls.updateJob(request, options, callback);
}
cancelJob(
request: protos.google.cloud.dataproc.v1.ICancelJobRequest,
request?: protos.google.cloud.dataproc.v1.ICancelJobRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -689,7 +689,7 @@ export class JobControllerClient {
* const [response] = await client.cancelJob(request);
*/
cancelJob(
request: protos.google.cloud.dataproc.v1.ICancelJobRequest,
request?: protos.google.cloud.dataproc.v1.ICancelJobRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -728,7 +728,7 @@ export class JobControllerClient {
return this.innerApiCalls.cancelJob(request, options, callback);
}
deleteJob(
request: protos.google.cloud.dataproc.v1.IDeleteJobRequest,
request?: protos.google.cloud.dataproc.v1.IDeleteJobRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -778,7 +778,7 @@ export class JobControllerClient {
* const [response] = await client.deleteJob(request);
*/
deleteJob(
request: protos.google.cloud.dataproc.v1.IDeleteJobRequest,
request?: protos.google.cloud.dataproc.v1.IDeleteJobRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -818,7 +818,7 @@ export class JobControllerClient {
}

submitJobAsOperation(
request: protos.google.cloud.dataproc.v1.ISubmitJobRequest,
request?: protos.google.cloud.dataproc.v1.ISubmitJobRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -892,7 +892,7 @@ export class JobControllerClient {
* const [response] = await operation.promise();
*/
submitJobAsOperation(
request: protos.google.cloud.dataproc.v1.ISubmitJobRequest,
request?: protos.google.cloud.dataproc.v1.ISubmitJobRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -977,7 +977,7 @@ export class JobControllerClient {
>;
}
listJobs(
request: protos.google.cloud.dataproc.v1.IListJobsRequest,
request?: protos.google.cloud.dataproc.v1.IListJobsRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -1055,7 +1055,7 @@ export class JobControllerClient {
* for more details and examples.
*/
listJobs(
request: protos.google.cloud.dataproc.v1.IListJobsRequest,
request?: protos.google.cloud.dataproc.v1.IListJobsRequest,
optionsOrCallback?:
| CallOptions
| PaginationCallback<
Expand Down
Loading