Skip to content

Commit

Permalink
fix: LRO annotations for method DiagnoseCluster. (#409)
Browse files Browse the repository at this point in the history
* fix: fix LRO annotations for method `DiagnoseCluster`.

PiperOrigin-RevId: 321255718

Source-Author: Google APIs <[email protected]>
Source-Date: Tue Jul 14 16:13:13 2020 -0700
Source-Repo: googleapis/googleapis
Source-Sha: 0e7900e3950d32ccafae22a2ccb85fa61ffe08f9
Source-Link: googleapis/googleapis@0e7900e
  • Loading branch information
yoshi-automation authored Jul 16, 2020
1 parent f6d0e46 commit e634bb9
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 29 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,8 @@ service ClusterController {
};
option (google.api.method_signature) = "project_id,region,cluster_name";
option (google.longrunning.operation_info) = {
response_type: "google.protobuf.Empty"
metadata_type: "DiagnoseClusterResults"
response_type: "DiagnoseClusterResults"
metadata_type: "google.cloud.dataproc.v1.ClusterOperationMetadata"
};
}
}
Expand Down
4 changes: 2 additions & 2 deletions packages/google-cloud-dataproc/protos/protos.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

36 changes: 18 additions & 18 deletions packages/google-cloud-dataproc/src/v1/cluster_controller_client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -223,10 +223,10 @@ export class ClusterControllerClient {
'.google.cloud.dataproc.v1.ClusterOperationMetadata'
) as gax.protobuf.Type;
const diagnoseClusterResponse = protoFilesRoot.lookup(
'.google.protobuf.Empty'
'.google.cloud.dataproc.v1.DiagnoseClusterResults'
) as gax.protobuf.Type;
const diagnoseClusterMetadata = protoFilesRoot.lookup(
'.google.cloud.dataproc.v1.DiagnoseClusterResults'
'.google.cloud.dataproc.v1.ClusterOperationMetadata'
) as gax.protobuf.Type;

this.descriptors.longrunning = {
Expand Down Expand Up @@ -1001,8 +1001,8 @@ export class ClusterControllerClient {
): Promise<
[
LROperation<
protos.google.protobuf.IEmpty,
protos.google.cloud.dataproc.v1.IDiagnoseClusterResults
protos.google.cloud.dataproc.v1.IDiagnoseClusterResults,
protos.google.cloud.dataproc.v1.IClusterOperationMetadata
>,
protos.google.longrunning.IOperation | undefined,
{} | undefined
Expand All @@ -1013,8 +1013,8 @@ export class ClusterControllerClient {
options: gax.CallOptions,
callback: Callback<
LROperation<
protos.google.protobuf.IEmpty,
protos.google.cloud.dataproc.v1.IDiagnoseClusterResults
protos.google.cloud.dataproc.v1.IDiagnoseClusterResults,
protos.google.cloud.dataproc.v1.IClusterOperationMetadata
>,
protos.google.longrunning.IOperation | null | undefined,
{} | null | undefined
Expand All @@ -1024,8 +1024,8 @@ export class ClusterControllerClient {
request: protos.google.cloud.dataproc.v1.IDiagnoseClusterRequest,
callback: Callback<
LROperation<
protos.google.protobuf.IEmpty,
protos.google.cloud.dataproc.v1.IDiagnoseClusterResults
protos.google.cloud.dataproc.v1.IDiagnoseClusterResults,
protos.google.cloud.dataproc.v1.IClusterOperationMetadata
>,
protos.google.longrunning.IOperation | null | undefined,
{} | null | undefined
Expand Down Expand Up @@ -1061,25 +1061,25 @@ export class ClusterControllerClient {
| gax.CallOptions
| Callback<
LROperation<
protos.google.protobuf.IEmpty,
protos.google.cloud.dataproc.v1.IDiagnoseClusterResults
protos.google.cloud.dataproc.v1.IDiagnoseClusterResults,
protos.google.cloud.dataproc.v1.IClusterOperationMetadata
>,
protos.google.longrunning.IOperation | null | undefined,
{} | null | undefined
>,
callback?: Callback<
LROperation<
protos.google.protobuf.IEmpty,
protos.google.cloud.dataproc.v1.IDiagnoseClusterResults
protos.google.cloud.dataproc.v1.IDiagnoseClusterResults,
protos.google.cloud.dataproc.v1.IClusterOperationMetadata
>,
protos.google.longrunning.IOperation | null | undefined,
{} | null | undefined
>
): Promise<
[
LROperation<
protos.google.protobuf.IEmpty,
protos.google.cloud.dataproc.v1.IDiagnoseClusterResults
protos.google.cloud.dataproc.v1.IDiagnoseClusterResults,
protos.google.cloud.dataproc.v1.IClusterOperationMetadata
>,
protos.google.longrunning.IOperation | undefined,
{} | undefined
Expand Down Expand Up @@ -1122,8 +1122,8 @@ export class ClusterControllerClient {
name: string
): Promise<
LROperation<
protos.google.protobuf.Empty,
protos.google.cloud.dataproc.v1.DiagnoseClusterResults
protos.google.cloud.dataproc.v1.DiagnoseClusterResults,
protos.google.cloud.dataproc.v1.ClusterOperationMetadata
>
> {
const request = new operationsProtos.google.longrunning.GetOperationRequest(
Expand All @@ -1136,8 +1136,8 @@ export class ClusterControllerClient {
gax.createDefaultBackoffSettings()
);
return decodeOperation as LROperation<
protos.google.protobuf.Empty,
protos.google.cloud.dataproc.v1.DiagnoseClusterResults
protos.google.cloud.dataproc.v1.DiagnoseClusterResults,
protos.google.cloud.dataproc.v1.ClusterOperationMetadata
>;
}
listClusters(
Expand Down
6 changes: 3 additions & 3 deletions packages/google-cloud-dataproc/synth.metadata
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@
"git": {
"name": ".",
"remote": "https://github.com/googleapis/nodejs-dataproc.git",
"sha": "7654222e12f9152acfbf7b4f6ccaeabb4e8aed2e"
"sha": "9ffa8085dbbafe55bf21a49bff50e88a0b819e11"
}
},
{
"git": {
"name": "googleapis",
"remote": "https://github.com/googleapis/googleapis.git",
"sha": "4f4aa3a03e470f1390758b9d89eb1aa88837a5be",
"internalRef": "320300472"
"sha": "0e7900e3950d32ccafae22a2ccb85fa61ffe08f9",
"internalRef": "321255718"
}
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -993,8 +993,8 @@ describe('v1.ClusterControllerClient', () => {
(
err?: Error | null,
result?: LROperation<
protos.google.protobuf.IEmpty,
protos.google.cloud.dataproc.v1.IDiagnoseClusterResults
protos.google.cloud.dataproc.v1.IDiagnoseClusterResults,
protos.google.cloud.dataproc.v1.IClusterOperationMetadata
> | null
) => {
if (err) {
Expand All @@ -1006,8 +1006,8 @@ describe('v1.ClusterControllerClient', () => {
);
});
const operation = (await promise) as LROperation<
protos.google.protobuf.IEmpty,
protos.google.cloud.dataproc.v1.IDiagnoseClusterResults
protos.google.cloud.dataproc.v1.IDiagnoseClusterResults,
protos.google.cloud.dataproc.v1.IClusterOperationMetadata
>;
const [response] = await operation.promise();
assert.deepStrictEqual(response, expectedResponse);
Expand Down

0 comments on commit e634bb9

Please sign in to comment.