Skip to content

Commit 9cd3301

Browse files
fix(Global Search/Tagging): regen services with latest API definitions (#220)
Signed-off-by: francescadecicco <[email protected]>
1 parent 204100c commit 9cd3301

File tree

4 files changed

+463
-78
lines changed

4 files changed

+463
-78
lines changed

ibm_platform_services/global_search_v2.py

Lines changed: 26 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
# See the License for the specific language governing permissions and
1515
# limitations under the License.
1616

17-
# IBM OpenAPI SDK Code Generator Version: 3.70.0-7df966bf-20230419-195904
17+
# IBM OpenAPI SDK Code Generator Version: 3.79.0-2eb6af3d-20230905-174838
1818

1919
"""
2020
Search for resources with the global and shared resource properties repository that is
@@ -23,7 +23,7 @@
2323
logical component that can be created or reserved for an application or service instance.
2424
They are owned by resource providers, such as Cloud Foundry, IBM Kubernetes Service, or
2525
resource controller in IBM Cloud. Resources are uniquely identified by a Cloud Resource
26-
Name (CRN) or by an IMS ID. The properties of a resource include tags and system
26+
Name (CRN) or by an IMS ID. The properties of a resource include tags and system
2727
properties. Both properties are defined in an IBM Cloud billing account, and span across
2828
many regions.
2929
@@ -89,6 +89,8 @@ def search(
8989
query: str = None,
9090
fields: List[str] = None,
9191
search_cursor: str = None,
92+
x_request_id: str = None,
93+
x_correlation_id: str = None,
9294
transaction_id: str = None,
9395
account_id: str = None,
9496
limit: int = None,
@@ -129,9 +131,26 @@ def search(
129131
each call and that must be set on the subsequent call to get the next batch
130132
of items. If the search returns no items, then the search_cursor is not
131133
present in the response.
132-
:param str transaction_id: (optional) An alphanumeric string that can be
133-
used to trace a request across services. If not specified, it automatically
134-
generated with the prefix "gst-".
134+
:param str x_request_id: (optional) An alphanumeric string that is used to
135+
trace the request. The value may include ASCII alphanumerics and any of
136+
following segment separators: space ( ), comma (,), hyphen, (-), and
137+
underscore (_) and may have a length up to 1024 bytes. The value is
138+
considered invalid and must be ignored if that value includes any other
139+
character or is longer than 1024 bytes or is fewer than 8 characters. If
140+
not specified or invalid, it is automatically replaced by a random (version
141+
4) UUID.
142+
:param str x_correlation_id: (optional) An alphanumeric string that is used
143+
to trace the request as a part of a larger context: the same value is used
144+
for downstream requests and retries of those requests. The value may
145+
include ASCII alphanumerics and any of following segment separators: space
146+
( ), comma (,), hyphen, (-), and underscore (_) and may have a length up to
147+
1024 bytes. The value is considered invalid and must be ignored if that
148+
value includes any other character or is longer than 1024 bytes or is fewer
149+
than 8 characters. If not specified or invalid, it is automatically
150+
replaced by a random (version 4) UUID.
151+
:param str transaction_id: (optional) Deprecated: An alphanumeric string
152+
that can be used to trace a request across services. If not specified, it
153+
automatically generated with the prefix "gst-".
135154
:param str account_id: (optional) The account ID to filter resources.
136155
:param int limit: (optional) The maximum number of hits to return. Defaults
137156
to 10.
@@ -170,6 +189,8 @@ def search(
170189
"""
171190

172191
headers = {
192+
'x-request-id': x_request_id,
193+
'x-correlation-id': x_correlation_id,
173194
'transaction-id': transaction_id,
174195
}
175196
sdk_headers = get_sdk_headers(

0 commit comments

Comments
 (0)