Skip to content

Commit 6c7c46f

Browse files
committed
fix(Global Catalog): re-gen service after recent API changes
1 parent add2939 commit 6c7c46f

File tree

3 files changed

+238
-194
lines changed

3 files changed

+238
-194
lines changed

ibm_platform_services/global_catalog_v1.py

Lines changed: 26 additions & 26 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: 99-SNAPSHOT-8d569e8f-20201030-111043
17+
# IBM OpenAPI SDK Code Generator Version: 99-SNAPSHOT-ef9b3113-20201118-074613
1818

1919
"""
2020
The catalog service manages offerings across geographies as the system of record. The
@@ -836,7 +836,7 @@ def get_pricing(self,
836836
Get the pricing for an object.
837837
838838
This endpoint returns the pricing for an object. Static pricing is defined in the
839-
catalog. Dynamic pricing is stored in Bluemix Pricing Catalog.
839+
catalog. Dynamic pricing is stored in IBM Cloud Pricing Catalog.
840840
841841
:param str id: The object's unique ID.
842842
:param str account: (optional) This changes the scope of the request
@@ -2092,16 +2092,16 @@ class CatalogEntry():
20922092
object returned.
20932093
:attr str id: (optional) Catalog entry's unique ID. It's the same across all
20942094
catalog instances.
2095-
:attr object catalog_crn: (optional)
2096-
:attr object url: (optional) URL to get details about this object.
2097-
:attr object children_url: (optional) URL to get details about children of this
2095+
:attr str catalog_crn: (optional) The CRN associated with the catalog entry.
2096+
:attr str url: (optional) URL to get details about this object.
2097+
:attr str children_url: (optional) URL to get details about children of this
20982098
object.
2099-
:attr object geo_tags: (optional) tags to indicate the locations this service is
2100-
deployable to.
2101-
:attr object pricing_tags: (optional) tags to indicate the type of pricing plans
2102-
this service supports.
2103-
:attr object created: (optional) Date created.
2104-
:attr object updated: (optional) Date last updated.
2099+
:attr List[str] geo_tags: (optional) tags to indicate the locations this service
2100+
is deployable to.
2101+
:attr List[str] pricing_tags: (optional) tags to indicate the type of pricing
2102+
plans this service supports.
2103+
:attr datetime created: (optional) Date created.
2104+
:attr datetime updated: (optional) Date last updated.
21052105
"""
21062106

21072107
def __init__(self,
@@ -2118,13 +2118,13 @@ def __init__(self,
21182118
active: bool = None,
21192119
metadata: 'CatalogEntryMetadata' = None,
21202120
id: str = None,
2121-
catalog_crn: object = None,
2122-
url: object = None,
2123-
children_url: object = None,
2124-
geo_tags: object = None,
2125-
pricing_tags: object = None,
2126-
created: object = None,
2127-
updated: object = None) -> None:
2121+
catalog_crn: str = None,
2122+
url: str = None,
2123+
children_url: str = None,
2124+
geo_tags: List[str] = None,
2125+
pricing_tags: List[str] = None,
2126+
created: datetime = None,
2127+
updated: datetime = None) -> None:
21282128
"""
21292129
Initialize a CatalogEntry object.
21302130
@@ -2226,9 +2226,9 @@ def from_dict(cls, _dict: Dict) -> 'CatalogEntry':
22262226
if 'pricing_tags' in _dict:
22272227
args['pricing_tags'] = _dict.get('pricing_tags')
22282228
if 'created' in _dict:
2229-
args['created'] = _dict.get('created')
2229+
args['created'] = string_to_datetime(_dict.get('created'))
22302230
if 'updated' in _dict:
2231-
args['updated'] = _dict.get('updated')
2231+
args['updated'] = string_to_datetime(_dict.get('updated'))
22322232
return cls(**args)
22332233

22342234
@classmethod
@@ -2274,9 +2274,9 @@ def to_dict(self) -> Dict:
22742274
if hasattr(self, 'pricing_tags') and getattr(self, 'pricing_tags') is not None:
22752275
_dict['pricing_tags'] = getattr(self, 'pricing_tags')
22762276
if hasattr(self, 'created') and getattr(self, 'created') is not None:
2277-
_dict['created'] = getattr(self, 'created')
2277+
_dict['created'] = datetime_to_string(getattr(self, 'created'))
22782278
if hasattr(self, 'updated') and getattr(self, 'updated') is not None:
2279-
_dict['updated'] = getattr(self, 'updated')
2279+
_dict['updated'] = datetime_to_string(getattr(self, 'updated'))
22802280
return _dict
22812281

22822282
def _to_dict(self):
@@ -3114,7 +3114,7 @@ class Message():
31143114
:attr str gid: (optional) transaction id associatd with action.
31153115
:attr str type: (optional) type of action taken.
31163116
:attr str message: (optional) message describing action.
3117-
:attr object data: (optional) JSON object containing details on changes made to
3117+
:attr dict data: (optional) An object containing details on changes made to
31183118
object data.
31193119
"""
31203120

@@ -3130,7 +3130,7 @@ def __init__(self,
31303130
gid: str = None,
31313131
type: str = None,
31323132
message: str = None,
3133-
data: object = None) -> None:
3133+
data: dict = None) -> None:
31343134
"""
31353135
Initialize a Message object.
31363136
@@ -3145,8 +3145,8 @@ def __init__(self,
31453145
:param str gid: (optional) transaction id associatd with action.
31463146
:param str type: (optional) type of action taken.
31473147
:param str message: (optional) message describing action.
3148-
:param object data: (optional) JSON object containing details on changes
3149-
made to object data.
3148+
:param dict data: (optional) An object containing details on changes made
3149+
to object data.
31503150
"""
31513151
self.id = id
31523152
self.effective = effective

0 commit comments

Comments
 (0)