Skip to content

Commit b79d16e

Browse files
fix(Global Search/Tagging): regenerated services with latest API definition
Signed-off-by: francescadecicco <[email protected]>
1 parent c611b41 commit b79d16e

File tree

2 files changed

+1239
-331
lines changed

2 files changed

+1239
-331
lines changed

ibm_platform_services/global_tagging_v1.py

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,7 @@ def new_instance(
6363
parameters and external configuration.
6464
"""
6565
authenticator = get_authenticator_from_environment(service_name)
66-
service = cls(
67-
authenticator
68-
)
66+
service = cls(authenticator)
6967
service.configure_service(service_name)
7068
return service
7169

@@ -682,6 +680,7 @@ class TagType(str, Enum):
682680
USER = 'user'
683681
SERVICE = 'service'
684682
ACCESS = 'access'
683+
685684
class Providers(str, Enum):
686685
"""
687686
Select a provider. Supported values are `ghost` and `ims`. To list both Global
@@ -692,6 +691,7 @@ class Providers(str, Enum):
692691

693692
GHOST = 'ghost'
694693
IMS = 'ims'
694+
695695
class OrderByName(str, Enum):
696696
"""
697697
Order the output by tag name.
@@ -726,6 +726,7 @@ class Providers(str, Enum):
726726

727727
GHOST = 'ghost'
728728
IMS = 'ims'
729+
729730
class TagType(str, Enum):
730731
"""
731732
The type of the tag. Supported values are `user`, `service` and `access`.
@@ -751,6 +752,7 @@ class Providers(str, Enum):
751752

752753
GHOST = 'ghost'
753754
IMS = 'ims'
755+
754756
class TagType(str, Enum):
755757
"""
756758
The type of the tag. Supported values are `user`, `service` and `access`.
@@ -1049,9 +1051,9 @@ def from_dict(cls, _dict: Dict) -> 'DeleteTagResultsItem':
10491051
args['is_error'] = is_error
10501052
for k, v in _dict.items():
10511053
if k not in cls._properties:
1052-
if not isinstance(v, object):
1053-
raise ValueError('Value for additional property {} must be of type object'.format(k))
1054-
args[k] = v
1054+
if not isinstance(v, object):
1055+
raise ValueError('Value for additional property {} must be of type object'.format(k))
1056+
args[k] = v
10551057
return cls(**args)
10561058

10571059
@classmethod
@@ -1116,7 +1118,6 @@ class ProviderEnum(str, Enum):
11161118
IMS = 'ims'
11171119

11181120

1119-
11201121
class DeleteTagsResult:
11211122
"""
11221123
Results of deleting unattatched tags.

0 commit comments

Comments
 (0)