|
14 | 14 | # See the License for the specific language governing permissions and
|
15 | 15 | # limitations under the License.
|
16 | 16 |
|
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 |
18 | 18 |
|
19 | 19 | """
|
20 | 20 | Search for resources with the global and shared resource properties repository that is
|
|
23 | 23 | logical component that can be created or reserved for an application or service instance.
|
24 | 24 | They are owned by resource providers, such as Cloud Foundry, IBM Kubernetes Service, or
|
25 | 25 | 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 |
27 | 27 | properties. Both properties are defined in an IBM Cloud billing account, and span across
|
28 | 28 | many regions.
|
29 | 29 |
|
@@ -89,6 +89,8 @@ def search(
|
89 | 89 | query: str = None,
|
90 | 90 | fields: List[str] = None,
|
91 | 91 | search_cursor: str = None,
|
| 92 | + x_request_id: str = None, |
| 93 | + x_correlation_id: str = None, |
92 | 94 | transaction_id: str = None,
|
93 | 95 | account_id: str = None,
|
94 | 96 | limit: int = None,
|
@@ -129,9 +131,26 @@ def search(
|
129 | 131 | each call and that must be set on the subsequent call to get the next batch
|
130 | 132 | of items. If the search returns no items, then the search_cursor is not
|
131 | 133 | 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-". |
135 | 154 | :param str account_id: (optional) The account ID to filter resources.
|
136 | 155 | :param int limit: (optional) The maximum number of hits to return. Defaults
|
137 | 156 | to 10.
|
@@ -170,6 +189,8 @@ def search(
|
170 | 189 | """
|
171 | 190 |
|
172 | 191 | headers = {
|
| 192 | + 'x-request-id': x_request_id, |
| 193 | + 'x-correlation-id': x_correlation_id, |
173 | 194 | 'transaction-id': transaction_id,
|
174 | 195 | }
|
175 | 196 | sdk_headers = get_sdk_headers(
|
|
0 commit comments