@google-cloud/run
Advanced tools
Comparing version
"use strict"; | ||
// Copyright 2024 Google LLC | ||
// Copyright 2025 Google LLC | ||
// | ||
@@ -4,0 +4,0 @@ // Licensed under the Apache License, Version 2.0 (the "License"); |
"use strict"; | ||
// Copyright 2024 Google LLC | ||
// Copyright 2025 Google LLC | ||
// | ||
@@ -4,0 +4,0 @@ // Licensed under the Apache License, Version 2.0 (the "License"); |
@@ -275,3 +275,3 @@ import type * as gax from 'google-gax'; | ||
/** | ||
* Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object. | ||
* Equivalent to `listExecutions`, but returns a NodeJS Stream object. | ||
* @param {Object} request | ||
@@ -415,3 +415,3 @@ * The request object that will be sent. | ||
*/ | ||
getOperation(request: protos.google.longrunning.GetOperationRequest, options?: gax.CallOptions | Callback<protos.google.longrunning.Operation, protos.google.longrunning.GetOperationRequest, {} | null | undefined>, callback?: Callback<protos.google.longrunning.Operation, protos.google.longrunning.GetOperationRequest, {} | null | undefined>): Promise<[protos.google.longrunning.Operation]>; | ||
getOperation(request: protos.google.longrunning.GetOperationRequest, optionsOrCallback?: gax.CallOptions | Callback<protos.google.longrunning.Operation, protos.google.longrunning.GetOperationRequest, {} | null | undefined>, callback?: Callback<protos.google.longrunning.Operation, protos.google.longrunning.GetOperationRequest, {} | null | undefined>): Promise<[protos.google.longrunning.Operation]>; | ||
/** | ||
@@ -479,3 +479,3 @@ * Lists operations that match the specified filter in the request. If the | ||
*/ | ||
cancelOperation(request: protos.google.longrunning.CancelOperationRequest, options?: gax.CallOptions | Callback<protos.google.protobuf.Empty, protos.google.longrunning.CancelOperationRequest, {} | undefined | null>, callback?: Callback<protos.google.longrunning.CancelOperationRequest, protos.google.protobuf.Empty, {} | undefined | null>): Promise<protos.google.protobuf.Empty>; | ||
cancelOperation(request: protos.google.longrunning.CancelOperationRequest, optionsOrCallback?: gax.CallOptions | Callback<protos.google.longrunning.CancelOperationRequest, protos.google.protobuf.Empty, {} | undefined | null>, callback?: Callback<protos.google.longrunning.CancelOperationRequest, protos.google.protobuf.Empty, {} | undefined | null>): Promise<protos.google.protobuf.Empty>; | ||
/** | ||
@@ -506,3 +506,3 @@ * Deletes a long-running operation. This method indicates that the client is | ||
*/ | ||
deleteOperation(request: protos.google.longrunning.DeleteOperationRequest, options?: gax.CallOptions | Callback<protos.google.protobuf.Empty, protos.google.longrunning.DeleteOperationRequest, {} | null | undefined>, callback?: Callback<protos.google.protobuf.Empty, protos.google.longrunning.DeleteOperationRequest, {} | null | undefined>): Promise<protos.google.protobuf.Empty>; | ||
deleteOperation(request: protos.google.longrunning.DeleteOperationRequest, optionsOrCallback?: gax.CallOptions | Callback<protos.google.protobuf.Empty, protos.google.longrunning.DeleteOperationRequest, {} | null | undefined>, callback?: Callback<protos.google.protobuf.Empty, protos.google.longrunning.DeleteOperationRequest, {} | null | undefined>): Promise<protos.google.protobuf.Empty>; | ||
/** | ||
@@ -509,0 +509,0 @@ * Return a fully-qualified execution resource name string. |
"use strict"; | ||
// Copyright 2024 Google LLC | ||
// Copyright 2025 Google LLC | ||
// | ||
@@ -443,3 +443,3 @@ // Licensed under the Apache License, Version 2.0 (the "License"); | ||
/** | ||
* Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object. | ||
* Equivalent to `listExecutions`, but returns a NodeJS Stream object. | ||
* @param {Object} request | ||
@@ -615,3 +615,19 @@ * The request object that will be sent. | ||
*/ | ||
getOperation(request, options, callback) { | ||
getOperation(request, optionsOrCallback, callback) { | ||
var _a; | ||
let options; | ||
if (typeof optionsOrCallback === 'function' && callback === undefined) { | ||
callback = optionsOrCallback; | ||
options = {}; | ||
} | ||
else { | ||
options = optionsOrCallback; | ||
} | ||
options = options || {}; | ||
options.otherArgs = options.otherArgs || {}; | ||
options.otherArgs.headers = options.otherArgs.headers || {}; | ||
options.otherArgs.headers['x-goog-request-params'] = | ||
this._gaxModule.routingHeader.fromParams({ | ||
name: (_a = request.name) !== null && _a !== void 0 ? _a : '', | ||
}); | ||
return this.operationsClient.getOperation(request, options, callback); | ||
@@ -650,2 +666,10 @@ } | ||
listOperationsAsync(request, options) { | ||
var _a; | ||
options = options || {}; | ||
options.otherArgs = options.otherArgs || {}; | ||
options.otherArgs.headers = options.otherArgs.headers || {}; | ||
options.otherArgs.headers['x-goog-request-params'] = | ||
this._gaxModule.routingHeader.fromParams({ | ||
name: (_a = request.name) !== null && _a !== void 0 ? _a : '', | ||
}); | ||
return this.operationsClient.listOperationsAsync(request, options); | ||
@@ -684,3 +708,19 @@ } | ||
*/ | ||
cancelOperation(request, options, callback) { | ||
cancelOperation(request, optionsOrCallback, callback) { | ||
var _a; | ||
let options; | ||
if (typeof optionsOrCallback === 'function' && callback === undefined) { | ||
callback = optionsOrCallback; | ||
options = {}; | ||
} | ||
else { | ||
options = optionsOrCallback; | ||
} | ||
options = options || {}; | ||
options.otherArgs = options.otherArgs || {}; | ||
options.otherArgs.headers = options.otherArgs.headers || {}; | ||
options.otherArgs.headers['x-goog-request-params'] = | ||
this._gaxModule.routingHeader.fromParams({ | ||
name: (_a = request.name) !== null && _a !== void 0 ? _a : '', | ||
}); | ||
return this.operationsClient.cancelOperation(request, options, callback); | ||
@@ -713,3 +753,19 @@ } | ||
*/ | ||
deleteOperation(request, options, callback) { | ||
deleteOperation(request, optionsOrCallback, callback) { | ||
var _a; | ||
let options; | ||
if (typeof optionsOrCallback === 'function' && callback === undefined) { | ||
callback = optionsOrCallback; | ||
options = {}; | ||
} | ||
else { | ||
options = optionsOrCallback; | ||
} | ||
options = options || {}; | ||
options.otherArgs = options.otherArgs || {}; | ||
options.otherArgs.headers = options.otherArgs.headers || {}; | ||
options.otherArgs.headers['x-goog-request-params'] = | ||
this._gaxModule.routingHeader.fromParams({ | ||
name: (_a = request.name) !== null && _a !== void 0 ? _a : '', | ||
}); | ||
return this.operationsClient.deleteOperation(request, options, callback); | ||
@@ -716,0 +772,0 @@ } |
"use strict"; | ||
// Copyright 2024 Google LLC | ||
// Copyright 2025 Google LLC | ||
// | ||
@@ -4,0 +4,0 @@ // Licensed under the Apache License, Version 2.0 (the "License"); |
@@ -459,3 +459,3 @@ import type * as gax from 'google-gax'; | ||
/** | ||
* Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object. | ||
* Equivalent to `listJobs`, but returns a NodeJS Stream object. | ||
* @param {Object} request | ||
@@ -597,3 +597,3 @@ * The request object that will be sent. | ||
*/ | ||
getOperation(request: protos.google.longrunning.GetOperationRequest, options?: gax.CallOptions | Callback<protos.google.longrunning.Operation, protos.google.longrunning.GetOperationRequest, {} | null | undefined>, callback?: Callback<protos.google.longrunning.Operation, protos.google.longrunning.GetOperationRequest, {} | null | undefined>): Promise<[protos.google.longrunning.Operation]>; | ||
getOperation(request: protos.google.longrunning.GetOperationRequest, optionsOrCallback?: gax.CallOptions | Callback<protos.google.longrunning.Operation, protos.google.longrunning.GetOperationRequest, {} | null | undefined>, callback?: Callback<protos.google.longrunning.Operation, protos.google.longrunning.GetOperationRequest, {} | null | undefined>): Promise<[protos.google.longrunning.Operation]>; | ||
/** | ||
@@ -661,3 +661,3 @@ * Lists operations that match the specified filter in the request. If the | ||
*/ | ||
cancelOperation(request: protos.google.longrunning.CancelOperationRequest, options?: gax.CallOptions | Callback<protos.google.protobuf.Empty, protos.google.longrunning.CancelOperationRequest, {} | undefined | null>, callback?: Callback<protos.google.longrunning.CancelOperationRequest, protos.google.protobuf.Empty, {} | undefined | null>): Promise<protos.google.protobuf.Empty>; | ||
cancelOperation(request: protos.google.longrunning.CancelOperationRequest, optionsOrCallback?: gax.CallOptions | Callback<protos.google.longrunning.CancelOperationRequest, protos.google.protobuf.Empty, {} | undefined | null>, callback?: Callback<protos.google.longrunning.CancelOperationRequest, protos.google.protobuf.Empty, {} | undefined | null>): Promise<protos.google.protobuf.Empty>; | ||
/** | ||
@@ -688,3 +688,3 @@ * Deletes a long-running operation. This method indicates that the client is | ||
*/ | ||
deleteOperation(request: protos.google.longrunning.DeleteOperationRequest, options?: gax.CallOptions | Callback<protos.google.protobuf.Empty, protos.google.longrunning.DeleteOperationRequest, {} | null | undefined>, callback?: Callback<protos.google.protobuf.Empty, protos.google.longrunning.DeleteOperationRequest, {} | null | undefined>): Promise<protos.google.protobuf.Empty>; | ||
deleteOperation(request: protos.google.longrunning.DeleteOperationRequest, optionsOrCallback?: gax.CallOptions | Callback<protos.google.protobuf.Empty, protos.google.longrunning.DeleteOperationRequest, {} | null | undefined>, callback?: Callback<protos.google.protobuf.Empty, protos.google.longrunning.DeleteOperationRequest, {} | null | undefined>): Promise<protos.google.protobuf.Empty>; | ||
/** | ||
@@ -691,0 +691,0 @@ * Return a fully-qualified execution resource name string. |
"use strict"; | ||
// Copyright 2024 Google LLC | ||
// Copyright 2025 Google LLC | ||
// | ||
@@ -659,3 +659,3 @@ // Licensed under the Apache License, Version 2.0 (the "License"); | ||
/** | ||
* Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object. | ||
* Equivalent to `listJobs`, but returns a NodeJS Stream object. | ||
* @param {Object} request | ||
@@ -851,3 +851,19 @@ * The request object that will be sent. | ||
*/ | ||
getOperation(request, options, callback) { | ||
getOperation(request, optionsOrCallback, callback) { | ||
var _a; | ||
let options; | ||
if (typeof optionsOrCallback === 'function' && callback === undefined) { | ||
callback = optionsOrCallback; | ||
options = {}; | ||
} | ||
else { | ||
options = optionsOrCallback; | ||
} | ||
options = options || {}; | ||
options.otherArgs = options.otherArgs || {}; | ||
options.otherArgs.headers = options.otherArgs.headers || {}; | ||
options.otherArgs.headers['x-goog-request-params'] = | ||
this._gaxModule.routingHeader.fromParams({ | ||
name: (_a = request.name) !== null && _a !== void 0 ? _a : '', | ||
}); | ||
return this.operationsClient.getOperation(request, options, callback); | ||
@@ -886,2 +902,10 @@ } | ||
listOperationsAsync(request, options) { | ||
var _a; | ||
options = options || {}; | ||
options.otherArgs = options.otherArgs || {}; | ||
options.otherArgs.headers = options.otherArgs.headers || {}; | ||
options.otherArgs.headers['x-goog-request-params'] = | ||
this._gaxModule.routingHeader.fromParams({ | ||
name: (_a = request.name) !== null && _a !== void 0 ? _a : '', | ||
}); | ||
return this.operationsClient.listOperationsAsync(request, options); | ||
@@ -920,3 +944,19 @@ } | ||
*/ | ||
cancelOperation(request, options, callback) { | ||
cancelOperation(request, optionsOrCallback, callback) { | ||
var _a; | ||
let options; | ||
if (typeof optionsOrCallback === 'function' && callback === undefined) { | ||
callback = optionsOrCallback; | ||
options = {}; | ||
} | ||
else { | ||
options = optionsOrCallback; | ||
} | ||
options = options || {}; | ||
options.otherArgs = options.otherArgs || {}; | ||
options.otherArgs.headers = options.otherArgs.headers || {}; | ||
options.otherArgs.headers['x-goog-request-params'] = | ||
this._gaxModule.routingHeader.fromParams({ | ||
name: (_a = request.name) !== null && _a !== void 0 ? _a : '', | ||
}); | ||
return this.operationsClient.cancelOperation(request, options, callback); | ||
@@ -949,3 +989,19 @@ } | ||
*/ | ||
deleteOperation(request, options, callback) { | ||
deleteOperation(request, optionsOrCallback, callback) { | ||
var _a; | ||
let options; | ||
if (typeof optionsOrCallback === 'function' && callback === undefined) { | ||
callback = optionsOrCallback; | ||
options = {}; | ||
} | ||
else { | ||
options = optionsOrCallback; | ||
} | ||
options = options || {}; | ||
options.otherArgs = options.otherArgs || {}; | ||
options.otherArgs.headers = options.otherArgs.headers || {}; | ||
options.otherArgs.headers['x-goog-request-params'] = | ||
this._gaxModule.routingHeader.fromParams({ | ||
name: (_a = request.name) !== null && _a !== void 0 ? _a : '', | ||
}); | ||
return this.operationsClient.deleteOperation(request, options, callback); | ||
@@ -952,0 +1008,0 @@ } |
@@ -227,3 +227,3 @@ import type * as gax from 'google-gax'; | ||
/** | ||
* Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object. | ||
* Equivalent to `listRevisions`, but returns a NodeJS Stream object. | ||
* @param {Object} request | ||
@@ -367,3 +367,3 @@ * The request object that will be sent. | ||
*/ | ||
getOperation(request: protos.google.longrunning.GetOperationRequest, options?: gax.CallOptions | Callback<protos.google.longrunning.Operation, protos.google.longrunning.GetOperationRequest, {} | null | undefined>, callback?: Callback<protos.google.longrunning.Operation, protos.google.longrunning.GetOperationRequest, {} | null | undefined>): Promise<[protos.google.longrunning.Operation]>; | ||
getOperation(request: protos.google.longrunning.GetOperationRequest, optionsOrCallback?: gax.CallOptions | Callback<protos.google.longrunning.Operation, protos.google.longrunning.GetOperationRequest, {} | null | undefined>, callback?: Callback<protos.google.longrunning.Operation, protos.google.longrunning.GetOperationRequest, {} | null | undefined>): Promise<[protos.google.longrunning.Operation]>; | ||
/** | ||
@@ -431,3 +431,3 @@ * Lists operations that match the specified filter in the request. If the | ||
*/ | ||
cancelOperation(request: protos.google.longrunning.CancelOperationRequest, options?: gax.CallOptions | Callback<protos.google.protobuf.Empty, protos.google.longrunning.CancelOperationRequest, {} | undefined | null>, callback?: Callback<protos.google.longrunning.CancelOperationRequest, protos.google.protobuf.Empty, {} | undefined | null>): Promise<protos.google.protobuf.Empty>; | ||
cancelOperation(request: protos.google.longrunning.CancelOperationRequest, optionsOrCallback?: gax.CallOptions | Callback<protos.google.longrunning.CancelOperationRequest, protos.google.protobuf.Empty, {} | undefined | null>, callback?: Callback<protos.google.longrunning.CancelOperationRequest, protos.google.protobuf.Empty, {} | undefined | null>): Promise<protos.google.protobuf.Empty>; | ||
/** | ||
@@ -458,3 +458,3 @@ * Deletes a long-running operation. This method indicates that the client is | ||
*/ | ||
deleteOperation(request: protos.google.longrunning.DeleteOperationRequest, options?: gax.CallOptions | Callback<protos.google.protobuf.Empty, protos.google.longrunning.DeleteOperationRequest, {} | null | undefined>, callback?: Callback<protos.google.protobuf.Empty, protos.google.longrunning.DeleteOperationRequest, {} | null | undefined>): Promise<protos.google.protobuf.Empty>; | ||
deleteOperation(request: protos.google.longrunning.DeleteOperationRequest, optionsOrCallback?: gax.CallOptions | Callback<protos.google.protobuf.Empty, protos.google.longrunning.DeleteOperationRequest, {} | null | undefined>, callback?: Callback<protos.google.protobuf.Empty, protos.google.longrunning.DeleteOperationRequest, {} | null | undefined>): Promise<protos.google.protobuf.Empty>; | ||
/** | ||
@@ -461,0 +461,0 @@ * Return a fully-qualified cryptoKey resource name string. |
"use strict"; | ||
// Copyright 2024 Google LLC | ||
// Copyright 2025 Google LLC | ||
// | ||
@@ -435,3 +435,3 @@ // Licensed under the Apache License, Version 2.0 (the "License"); | ||
/** | ||
* Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object. | ||
* Equivalent to `listRevisions`, but returns a NodeJS Stream object. | ||
* @param {Object} request | ||
@@ -629,3 +629,19 @@ * The request object that will be sent. | ||
*/ | ||
getOperation(request, options, callback) { | ||
getOperation(request, optionsOrCallback, callback) { | ||
var _a; | ||
let options; | ||
if (typeof optionsOrCallback === 'function' && callback === undefined) { | ||
callback = optionsOrCallback; | ||
options = {}; | ||
} | ||
else { | ||
options = optionsOrCallback; | ||
} | ||
options = options || {}; | ||
options.otherArgs = options.otherArgs || {}; | ||
options.otherArgs.headers = options.otherArgs.headers || {}; | ||
options.otherArgs.headers['x-goog-request-params'] = | ||
this._gaxModule.routingHeader.fromParams({ | ||
name: (_a = request.name) !== null && _a !== void 0 ? _a : '', | ||
}); | ||
return this.operationsClient.getOperation(request, options, callback); | ||
@@ -664,2 +680,10 @@ } | ||
listOperationsAsync(request, options) { | ||
var _a; | ||
options = options || {}; | ||
options.otherArgs = options.otherArgs || {}; | ||
options.otherArgs.headers = options.otherArgs.headers || {}; | ||
options.otherArgs.headers['x-goog-request-params'] = | ||
this._gaxModule.routingHeader.fromParams({ | ||
name: (_a = request.name) !== null && _a !== void 0 ? _a : '', | ||
}); | ||
return this.operationsClient.listOperationsAsync(request, options); | ||
@@ -698,3 +722,19 @@ } | ||
*/ | ||
cancelOperation(request, options, callback) { | ||
cancelOperation(request, optionsOrCallback, callback) { | ||
var _a; | ||
let options; | ||
if (typeof optionsOrCallback === 'function' && callback === undefined) { | ||
callback = optionsOrCallback; | ||
options = {}; | ||
} | ||
else { | ||
options = optionsOrCallback; | ||
} | ||
options = options || {}; | ||
options.otherArgs = options.otherArgs || {}; | ||
options.otherArgs.headers = options.otherArgs.headers || {}; | ||
options.otherArgs.headers['x-goog-request-params'] = | ||
this._gaxModule.routingHeader.fromParams({ | ||
name: (_a = request.name) !== null && _a !== void 0 ? _a : '', | ||
}); | ||
return this.operationsClient.cancelOperation(request, options, callback); | ||
@@ -727,3 +767,19 @@ } | ||
*/ | ||
deleteOperation(request, options, callback) { | ||
deleteOperation(request, optionsOrCallback, callback) { | ||
var _a; | ||
let options; | ||
if (typeof optionsOrCallback === 'function' && callback === undefined) { | ||
callback = optionsOrCallback; | ||
options = {}; | ||
} | ||
else { | ||
options = optionsOrCallback; | ||
} | ||
options = options || {}; | ||
options.otherArgs = options.otherArgs || {}; | ||
options.otherArgs.headers = options.otherArgs.headers || {}; | ||
options.otherArgs.headers['x-goog-request-params'] = | ||
this._gaxModule.routingHeader.fromParams({ | ||
name: (_a = request.name) !== null && _a !== void 0 ? _a : '', | ||
}); | ||
return this.operationsClient.deleteOperation(request, options, callback); | ||
@@ -730,0 +786,0 @@ } |
@@ -417,3 +417,3 @@ import type * as gax from 'google-gax'; | ||
/** | ||
* Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object. | ||
* Equivalent to `listServices`, but returns a NodeJS Stream object. | ||
* @param {Object} request | ||
@@ -557,3 +557,3 @@ * The request object that will be sent. | ||
*/ | ||
getOperation(request: protos.google.longrunning.GetOperationRequest, options?: gax.CallOptions | Callback<protos.google.longrunning.Operation, protos.google.longrunning.GetOperationRequest, {} | null | undefined>, callback?: Callback<protos.google.longrunning.Operation, protos.google.longrunning.GetOperationRequest, {} | null | undefined>): Promise<[protos.google.longrunning.Operation]>; | ||
getOperation(request: protos.google.longrunning.GetOperationRequest, optionsOrCallback?: gax.CallOptions | Callback<protos.google.longrunning.Operation, protos.google.longrunning.GetOperationRequest, {} | null | undefined>, callback?: Callback<protos.google.longrunning.Operation, protos.google.longrunning.GetOperationRequest, {} | null | undefined>): Promise<[protos.google.longrunning.Operation]>; | ||
/** | ||
@@ -621,3 +621,3 @@ * Lists operations that match the specified filter in the request. If the | ||
*/ | ||
cancelOperation(request: protos.google.longrunning.CancelOperationRequest, options?: gax.CallOptions | Callback<protos.google.protobuf.Empty, protos.google.longrunning.CancelOperationRequest, {} | undefined | null>, callback?: Callback<protos.google.longrunning.CancelOperationRequest, protos.google.protobuf.Empty, {} | undefined | null>): Promise<protos.google.protobuf.Empty>; | ||
cancelOperation(request: protos.google.longrunning.CancelOperationRequest, optionsOrCallback?: gax.CallOptions | Callback<protos.google.longrunning.CancelOperationRequest, protos.google.protobuf.Empty, {} | undefined | null>, callback?: Callback<protos.google.longrunning.CancelOperationRequest, protos.google.protobuf.Empty, {} | undefined | null>): Promise<protos.google.protobuf.Empty>; | ||
/** | ||
@@ -648,3 +648,3 @@ * Deletes a long-running operation. This method indicates that the client is | ||
*/ | ||
deleteOperation(request: protos.google.longrunning.DeleteOperationRequest, options?: gax.CallOptions | Callback<protos.google.protobuf.Empty, protos.google.longrunning.DeleteOperationRequest, {} | null | undefined>, callback?: Callback<protos.google.protobuf.Empty, protos.google.longrunning.DeleteOperationRequest, {} | null | undefined>): Promise<protos.google.protobuf.Empty>; | ||
deleteOperation(request: protos.google.longrunning.DeleteOperationRequest, optionsOrCallback?: gax.CallOptions | Callback<protos.google.protobuf.Empty, protos.google.longrunning.DeleteOperationRequest, {} | null | undefined>, callback?: Callback<protos.google.protobuf.Empty, protos.google.longrunning.DeleteOperationRequest, {} | null | undefined>): Promise<protos.google.protobuf.Empty>; | ||
/** | ||
@@ -651,0 +651,0 @@ * Return a fully-qualified execution resource name string. |
"use strict"; | ||
// Copyright 2024 Google LLC | ||
// Copyright 2025 Google LLC | ||
// | ||
@@ -606,3 +606,3 @@ // Licensed under the Apache License, Version 2.0 (the "License"); | ||
/** | ||
* Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object. | ||
* Equivalent to `listServices`, but returns a NodeJS Stream object. | ||
* @param {Object} request | ||
@@ -800,3 +800,19 @@ * The request object that will be sent. | ||
*/ | ||
getOperation(request, options, callback) { | ||
getOperation(request, optionsOrCallback, callback) { | ||
var _a; | ||
let options; | ||
if (typeof optionsOrCallback === 'function' && callback === undefined) { | ||
callback = optionsOrCallback; | ||
options = {}; | ||
} | ||
else { | ||
options = optionsOrCallback; | ||
} | ||
options = options || {}; | ||
options.otherArgs = options.otherArgs || {}; | ||
options.otherArgs.headers = options.otherArgs.headers || {}; | ||
options.otherArgs.headers['x-goog-request-params'] = | ||
this._gaxModule.routingHeader.fromParams({ | ||
name: (_a = request.name) !== null && _a !== void 0 ? _a : '', | ||
}); | ||
return this.operationsClient.getOperation(request, options, callback); | ||
@@ -835,2 +851,10 @@ } | ||
listOperationsAsync(request, options) { | ||
var _a; | ||
options = options || {}; | ||
options.otherArgs = options.otherArgs || {}; | ||
options.otherArgs.headers = options.otherArgs.headers || {}; | ||
options.otherArgs.headers['x-goog-request-params'] = | ||
this._gaxModule.routingHeader.fromParams({ | ||
name: (_a = request.name) !== null && _a !== void 0 ? _a : '', | ||
}); | ||
return this.operationsClient.listOperationsAsync(request, options); | ||
@@ -869,3 +893,19 @@ } | ||
*/ | ||
cancelOperation(request, options, callback) { | ||
cancelOperation(request, optionsOrCallback, callback) { | ||
var _a; | ||
let options; | ||
if (typeof optionsOrCallback === 'function' && callback === undefined) { | ||
callback = optionsOrCallback; | ||
options = {}; | ||
} | ||
else { | ||
options = optionsOrCallback; | ||
} | ||
options = options || {}; | ||
options.otherArgs = options.otherArgs || {}; | ||
options.otherArgs.headers = options.otherArgs.headers || {}; | ||
options.otherArgs.headers['x-goog-request-params'] = | ||
this._gaxModule.routingHeader.fromParams({ | ||
name: (_a = request.name) !== null && _a !== void 0 ? _a : '', | ||
}); | ||
return this.operationsClient.cancelOperation(request, options, callback); | ||
@@ -898,3 +938,19 @@ } | ||
*/ | ||
deleteOperation(request, options, callback) { | ||
deleteOperation(request, optionsOrCallback, callback) { | ||
var _a; | ||
let options; | ||
if (typeof optionsOrCallback === 'function' && callback === undefined) { | ||
callback = optionsOrCallback; | ||
options = {}; | ||
} | ||
else { | ||
options = optionsOrCallback; | ||
} | ||
options = options || {}; | ||
options.otherArgs = options.otherArgs || {}; | ||
options.otherArgs.headers = options.otherArgs.headers || {}; | ||
options.otherArgs.headers['x-goog-request-params'] = | ||
this._gaxModule.routingHeader.fromParams({ | ||
name: (_a = request.name) !== null && _a !== void 0 ? _a : '', | ||
}); | ||
return this.operationsClient.deleteOperation(request, options, callback); | ||
@@ -901,0 +957,0 @@ } |
@@ -180,3 +180,3 @@ import type * as gax from 'google-gax'; | ||
/** | ||
* Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object. | ||
* Equivalent to `listTasks`, but returns a NodeJS Stream object. | ||
* @param {Object} request | ||
@@ -183,0 +183,0 @@ * The request object that will be sent. |
"use strict"; | ||
// Copyright 2024 Google LLC | ||
// Copyright 2025 Google LLC | ||
// | ||
@@ -320,3 +320,3 @@ // Licensed under the Apache License, Version 2.0 (the "License"); | ||
/** | ||
* Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object. | ||
* Equivalent to `listTasks`, but returns a NodeJS Stream object. | ||
* @param {Object} request | ||
@@ -323,0 +323,0 @@ * The request object that will be sent. |
# Changelog | ||
## [1.5.1](https://github.com/googleapis/google-cloud-node/compare/run-v1.5.0...run-v1.5.1) (2025-02-12) | ||
### Bug Fixes | ||
* [run] finalize fixing typings for headers in generator ([#6016](https://github.com/googleapis/google-cloud-node/issues/6016)) ([34bda26](https://github.com/googleapis/google-cloud-node/commit/34bda26d89163c60fdb602b6e81bd8c263148709)) | ||
## [1.5.0](https://github.com/googleapis/google-cloud-node/compare/run-v1.4.0...run-v1.5.0) (2024-11-21) | ||
@@ -4,0 +11,0 @@ |
{ | ||
"name": "@google-cloud/run", | ||
"version": "1.5.0", | ||
"version": "1.5.1", | ||
"description": "Cloud Run Admin API", | ||
@@ -48,3 +48,3 @@ "repository": { | ||
"@types/mocha": "^10.0.0", | ||
"@types/node": "^20.4.5", | ||
"@types/node": "^22.0.0", | ||
"@types/sinon": "^17.0.0", | ||
@@ -51,0 +51,0 @@ "c8": "^9.0.0", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
4911389
1.64%82536
1.59%