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: 99-SNAPSHOT-8d569e8f-20201030-111043
17
+ # IBM OpenAPI SDK Code Generator Version: 99-SNAPSHOT-ef9b3113-20201118-074613
18
18
19
19
"""
20
20
The catalog service manages offerings across geographies as the system of record. The
@@ -836,7 +836,7 @@ def get_pricing(self,
836
836
Get the pricing for an object.
837
837
838
838
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.
840
840
841
841
:param str id: The object's unique ID.
842
842
:param str account: (optional) This changes the scope of the request
@@ -2092,16 +2092,16 @@ class CatalogEntry():
2092
2092
object returned.
2093
2093
:attr str id: (optional) Catalog entry's unique ID. It's the same across all
2094
2094
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
2098
2098
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.
2105
2105
"""
2106
2106
2107
2107
def __init__ (self ,
@@ -2118,13 +2118,13 @@ def __init__(self,
2118
2118
active : bool = None ,
2119
2119
metadata : 'CatalogEntryMetadata' = None ,
2120
2120
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 :
2128
2128
"""
2129
2129
Initialize a CatalogEntry object.
2130
2130
@@ -2226,9 +2226,9 @@ def from_dict(cls, _dict: Dict) -> 'CatalogEntry':
2226
2226
if 'pricing_tags' in _dict :
2227
2227
args ['pricing_tags' ] = _dict .get ('pricing_tags' )
2228
2228
if 'created' in _dict :
2229
- args ['created' ] = _dict .get ('created' )
2229
+ args ['created' ] = string_to_datetime ( _dict .get ('created' ) )
2230
2230
if 'updated' in _dict :
2231
- args ['updated' ] = _dict .get ('updated' )
2231
+ args ['updated' ] = string_to_datetime ( _dict .get ('updated' ) )
2232
2232
return cls (** args )
2233
2233
2234
2234
@classmethod
@@ -2274,9 +2274,9 @@ def to_dict(self) -> Dict:
2274
2274
if hasattr (self , 'pricing_tags' ) and getattr (self , 'pricing_tags' ) is not None :
2275
2275
_dict ['pricing_tags' ] = getattr (self , 'pricing_tags' )
2276
2276
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' ) )
2278
2278
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' ) )
2280
2280
return _dict
2281
2281
2282
2282
def _to_dict (self ):
@@ -3114,7 +3114,7 @@ class Message():
3114
3114
:attr str gid: (optional) transaction id associatd with action.
3115
3115
:attr str type: (optional) type of action taken.
3116
3116
: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
3118
3118
object data.
3119
3119
"""
3120
3120
@@ -3130,7 +3130,7 @@ def __init__(self,
3130
3130
gid : str = None ,
3131
3131
type : str = None ,
3132
3132
message : str = None ,
3133
- data : object = None ) -> None :
3133
+ data : dict = None ) -> None :
3134
3134
"""
3135
3135
Initialize a Message object.
3136
3136
@@ -3145,8 +3145,8 @@ def __init__(self,
3145
3145
:param str gid: (optional) transaction id associatd with action.
3146
3146
:param str type: (optional) type of action taken.
3147
3147
: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.
3150
3150
"""
3151
3151
self .id = id
3152
3152
self .effective = effective
0 commit comments