Skip to content

Commit 548313c

Browse files
fix(Global Search): remove is_hidden param from search operation (#191)
Signed-off-by: francescadecicco <[email protected]>
1 parent 2843954 commit 548313c

File tree

2 files changed

+1
-21
lines changed

2 files changed

+1
-21
lines changed

ibm_platform_services/global_search_v2.py

Lines changed: 1 addition & 18 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.63.0-5dae26c1-20230111-193039
17+
# IBM OpenAPI SDK Code Generator Version: 3.67.0-df2073a1-20230222-221157
1818

1919
"""
2020
Search for resources with the global and shared resource properties repository that is
@@ -101,7 +101,6 @@ def search(
101101
is_public: str = None,
102102
impersonate_user: str = None,
103103
can_tag: str = None,
104-
is_hidden: str = None,
105104
**kwargs
106105
) -> DetailedResponse:
107106
"""
@@ -169,10 +168,6 @@ def search(
169168
(only a GhoST admin can use this parameter). If false (default), only
170169
resources user can view are returned; if true, only resources that user has
171170
permissions for tagging are returned (_for administrators only_).
172-
:param str is_hidden: (optional) Determines if the result set must return
173-
only the visible resources or not. If false (default), only visible
174-
resources are returned; if true, only hidden resources are returned; if
175-
any, all resources are returned.
176171
:param dict headers: A `dict` containing the request headers
177172
:return: A `DetailedResponse` containing the result, headers and HTTP status code.
178173
:rtype: DetailedResponse with `dict` result representing a `ScanResult` object
@@ -197,7 +192,6 @@ def search(
197192
'is_public': is_public,
198193
'impersonate_user': impersonate_user,
199194
'can_tag': can_tag,
200-
'is_hidden': is_hidden,
201195
}
202196

203197
data = {
@@ -318,17 +312,6 @@ class CanTag(str, Enum):
318312
TRUE = 'true'
319313
FALSE = 'false'
320314

321-
class IsHidden(str, Enum):
322-
"""
323-
Determines if the result set must return only the visible resources or not. If
324-
false (default), only visible resources are returned; if true, only hidden
325-
resources are returned; if any, all resources are returned.
326-
"""
327-
328-
TRUE = 'true'
329-
FALSE = 'false'
330-
ANY = 'any'
331-
332315

333316
##############################################################################
334317
# Models

test/unit/test_global_search_v2.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,6 @@ def test_search_all_params(self):
125125
is_public = 'false'
126126
impersonate_user = 'testString'
127127
can_tag = 'false'
128-
is_hidden = 'false'
129128

130129
# Invoke method
131130
response = _service.search(
@@ -143,7 +142,6 @@ def test_search_all_params(self):
143142
is_public=is_public,
144143
impersonate_user=impersonate_user,
145144
can_tag=can_tag,
146-
is_hidden=is_hidden,
147145
headers={},
148146
)
149147

@@ -163,7 +161,6 @@ def test_search_all_params(self):
163161
assert 'is_public={}'.format(is_public) in query_string
164162
assert 'impersonate_user={}'.format(impersonate_user) in query_string
165163
assert 'can_tag={}'.format(can_tag) in query_string
166-
assert 'is_hidden={}'.format(is_hidden) in query_string
167164
# Validate body params
168165
req_body = json.loads(str(responses.calls[0].request.body, 'utf-8'))
169166
assert req_body['query'] == 'testString'

0 commit comments

Comments
 (0)