Skip to content
Open
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
17 changes: 13 additions & 4 deletions global-search/v2.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* (C) Copyright IBM Corp. 2025.
* (C) Copyright IBM Corp. 2026.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -15,12 +15,13 @@
*/

/**
* IBM OpenAPI SDK Code Generator Version: 3.100.0-2ad7a784-20250212-162551
* IBM OpenAPI SDK Code Generator Version: 3.113.1-d76630af-20260320-135953
*/

import * as extend from 'extend';
import { IncomingHttpHeaders, OutgoingHttpHeaders } from 'http';
import {
AbortSignal,
Authenticator,
BaseService,
UserOptions,
Expand Down Expand Up @@ -186,6 +187,7 @@ class GlobalSearchV2 extends BaseService {
'impersonateUser',
'canTag',
'isProjectResource',
'signal',
'headers',
];
const _validationErrors = validateParams(_params, _requiredParams, _validParams);
Expand Down Expand Up @@ -233,6 +235,9 @@ class GlobalSearchV2 extends BaseService {
},
_params.headers
),
axiosOptions: {
signal: _params.signal,
},
}),
};

Expand Down Expand Up @@ -268,8 +273,13 @@ namespace GlobalSearchV2 {
* request interfaces
************************/

interface DefaultParams {
headers?: OutgoingHttpHeaders;
signal?: AbortSignal;
}

/** Parameters for the `search` operation. */
export interface SearchParams {
export interface SearchParams extends DefaultParams {
/** The Lucene-formatted query string. Default to '*' if not set. */
query?: string;
/** The list of the fields returned by the search. By default, the returned fields are the `account_id`, `name`,
Expand Down Expand Up @@ -335,7 +345,6 @@ namespace GlobalSearchV2 {
* Only authorized ServiceIds can use this query parameter.
*/
isProjectResource?: SearchConstants.IsProjectResource | string;
headers?: OutgoingHttpHeaders;
}

/** Constants for the `search` operation. */
Expand Down
2 changes: 1 addition & 1 deletion global-tagging/v1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/

/**
* IBM OpenAPI SDK Code Generator Version: 3.111.0-1bfb72c2-20260206-185521
* IBM OpenAPI SDK Code Generator Version: 3.113.1-d76630af-20260320-135953
*/

import * as extend from 'extend';
Expand Down
2 changes: 1 addition & 1 deletion test/unit/global-search.v2.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* (C) Copyright IBM Corp. 2025.
* (C) Copyright IBM Corp. 2026.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion test/unit/global-tagging.v1.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* (C) Copyright IBM Corp. 2025.
* (C) Copyright IBM Corp. 2026.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Loading