@@ -2944,7 +2944,8 @@ class AcousticModel(object):
29442944 :attr str status: (optional) The current status of the custom acoustic model:
29452945 * `pending`: The model was created but is waiting either for valid training data to be
29462946 added or for the service to finish analyzing added data.
2947- * `ready`: The model contains valid data and is ready to be trained.
2947+ * `ready`: The model contains valid data and is ready to be trained. If the model
2948+ contains a mix of valid and invalid resources, you need to set the `strict` parameter
29482949 to `false` for the training to proceed.
29492950 * `training`: The model is currently being trained.
29502951 * `available`: The model is trained and ready to use.
@@ -2962,6 +2963,7 @@ class AcousticModel(object):
29622963 def __init__ (self ,
29632964 customization_id ,
29642965 created = None ,
2966+ updated = None ,
29652967 language = None ,
29662968 versions = None ,
29672969 owner = None ,
@@ -2980,6 +2982,10 @@ def __init__(self,
29802982 :param str created: (optional) The date and time in Coordinated Universal Time
29812983 (UTC) at which the custom acoustic model was created. The value is provided in
29822984 full ISO 8601 format (`YYYY-MM-DDThh:mm:ss.sTZD`).
2985+ :param str updated: (optional) The date and time in Coordinated Universal Time
2986+ (UTC) at which the custom acoustic model was last modified. The `created` and
2987+ `updated` fields are equal when an acoustic model is first added but has yet to be
2988+ updated. The value is provided in full ISO 8601 format (YYYY-MM-DDThh:mm:ss.sTZD).
29832989 :param str language: (optional) The language identifier of the custom acoustic
29842990 model (for example, `en-US`).
29852991 :param list[str] versions: (optional) A list of the available versions of the
@@ -2995,7 +3001,8 @@ def __init__(self,
29953001 :param str status: (optional) The current status of the custom acoustic model:
29963002 * `pending`: The model was created but is waiting either for valid training data
29973003 to be added or for the service to finish analyzing added data.
2998- * `ready`: The model contains valid data and is ready to be trained.
3004+ * `ready`: The model contains valid data and is ready to be trained. If the model
3005+ contains a mix of valid and invalid resources, you need to set the `strict`
29993006 parameter to `false` for the training to proceed.
30003007 * `training`: The model is currently being trained.
30013008 * `available`: The model is trained and ready to use.
@@ -3012,6 +3019,7 @@ def __init__(self,
30123019 """
30133020 self .customization_id = customization_id
30143021 self .created = created
3022+ self .updated = updated
30153023 self .language = language
30163024 self .versions = versions
30173025 self .owner = owner
@@ -3027,9 +3035,9 @@ def _from_dict(cls, _dict):
30273035 """Initialize a AcousticModel object from a json dictionary."""
30283036 args = {}
30293037 validKeys = [
3030- 'customization_id' , 'created' , 'language ' , 'versions ' , 'owner ' ,
3031- 'name ' , 'description ' , 'base_model_name ' , 'status ' , 'progress ' ,
3032- 'warnings'
3038+ 'customization_id' , 'created' , 'updated ' , 'language ' , 'versions ' ,
3039+ 'owner ' , 'name ' , 'description ' , 'base_model_name ' , 'status ' ,
3040+ 'progress' , ' warnings'
30333041 ]
30343042 badKeys = set (_dict .keys ()) - set (validKeys )
30353043 if badKeys :
@@ -3044,6 +3052,8 @@ def _from_dict(cls, _dict):
30443052 )
30453053 if 'created' in _dict :
30463054 args ['created' ] = _dict .get ('created' )
3055+ if 'updated' in _dict :
3056+ args ['updated' ] = _dict .get ('updated' )
30473057 if 'language' in _dict :
30483058 args ['language' ] = _dict .get ('language' )
30493059 if 'versions' in _dict :
@@ -3072,6 +3082,8 @@ def _to_dict(self):
30723082 _dict ['customization_id' ] = self .customization_id
30733083 if hasattr (self , 'created' ) and self .created is not None :
30743084 _dict ['created' ] = self .created
3085+ if hasattr (self , 'updated' ) and self .updated is not None :
3086+ _dict ['updated' ] = self .updated
30753087 if hasattr (self , 'language' ) and self .language is not None :
30763088 _dict ['language' ] = self .language
30773089 if hasattr (self , 'versions' ) and self .versions is not None :
@@ -4536,6 +4548,10 @@ class LanguageModel(object):
45364548 :attr str created: (optional) The date and time in Coordinated Universal Time (UTC) at
45374549 which the custom language model was created. The value is provided in full ISO 8601
45384550 format (`YYYY-MM-DDThh:mm:ss.sTZD`).
4551+ :attr str updated: (optional) The date and time in Coordinated Universal Time (UTC) at
4552+ which the custom language model was last modified. The `created` and `updated` fields
4553+ are equal when a language model is first added but has yet to be updated. The value is
4554+ provided in full ISO 8601 format (YYYY-MM-DDThh:mm:ss.sTZD).
45394555 :attr str language: (optional) The language identifier of the custom language model
45404556 (for example, `en-US`).
45414557 :attr str dialect: (optional) The dialect of the language for the custom language
@@ -4558,7 +4574,9 @@ class LanguageModel(object):
45584574 :attr str status: (optional) The current status of the custom language model:
45594575 * `pending`: The model was created but is waiting either for valid training data to be
45604576 added or for the service to finish analyzing added data.
4561- * `ready`: The model contains valid data and is ready to be trained.
4577+ * `ready`: The model contains valid data and is ready to be trained. If the model
4578+ contains a mix of valid and invalid resources, you need to set the `strict` parameter
4579+ to `false` for the training to proceed.
45624580 * `training`: The model is currently being trained.
45634581 * `available`: The model is trained and ready to use.
45644582 * `upgrading`: The model is currently being upgraded.
@@ -4579,6 +4597,7 @@ class LanguageModel(object):
45794597 def __init__ (self ,
45804598 customization_id ,
45814599 created = None ,
4600+ updated = None ,
45824601 language = None ,
45834602 dialect = None ,
45844603 versions = None ,
@@ -4599,6 +4618,10 @@ def __init__(self,
45994618 :param str created: (optional) The date and time in Coordinated Universal Time
46004619 (UTC) at which the custom language model was created. The value is provided in
46014620 full ISO 8601 format (`YYYY-MM-DDThh:mm:ss.sTZD`).
4621+ :param str updated: (optional) The date and time in Coordinated Universal Time
4622+ (UTC) at which the custom language model was last modified. The `created` and
4623+ `updated` fields are equal when a language model is first added but has yet to be
4624+ updated. The value is provided in full ISO 8601 format (YYYY-MM-DDThh:mm:ss.sTZD).
46024625 :param str language: (optional) The language identifier of the custom language
46034626 model (for example, `en-US`).
46044627 :param str dialect: (optional) The dialect of the language for the custom language
@@ -4621,7 +4644,8 @@ def __init__(self,
46214644 :param str status: (optional) The current status of the custom language model:
46224645 * `pending`: The model was created but is waiting either for valid training data
46234646 to be added or for the service to finish analyzing added data.
4624- * `ready`: The model contains valid data and is ready to be trained.
4647+ * `ready`: The model contains valid data and is ready to be trained. If the model
4648+ contains a mix of valid and invalid resources, you need to set the `strict`
46254649 parameter to `false` for the training to proceed.
46264650 * `training`: The model is currently being trained.
46274651 * `available`: The model is trained and ready to use.
@@ -4642,6 +4666,7 @@ def __init__(self,
46424666 """
46434667 self .customization_id = customization_id
46444668 self .created = created
4669+ self .updated = updated
46454670 self .language = language
46464671 self .dialect = dialect
46474672 self .versions = versions
@@ -4659,9 +4684,9 @@ def _from_dict(cls, _dict):
46594684 """Initialize a LanguageModel object from a json dictionary."""
46604685 args = {}
46614686 validKeys = [
4662- 'customization_id' , 'created' , 'language ' , 'dialect ' , 'versions ' ,
4663- 'owner ' , 'name ' , 'description ' , 'base_model_name ' , 'status ' ,
4664- 'progress' , 'error' , 'warnings'
4687+ 'customization_id' , 'created' , 'updated ' , 'language ' , 'dialect ' ,
4688+ 'versions ' , 'owner ' , 'name ' , 'description ' , 'base_model_name ' ,
4689+ 'status' , ' progress' , 'error' , 'warnings'
46654690 ]
46664691 badKeys = set (_dict .keys ()) - set (validKeys )
46674692 if badKeys :
@@ -4676,6 +4701,8 @@ def _from_dict(cls, _dict):
46764701 )
46774702 if 'created' in _dict :
46784703 args ['created' ] = _dict .get ('created' )
4704+ if 'updated' in _dict :
4705+ args ['updated' ] = _dict .get ('updated' )
46794706 if 'language' in _dict :
46804707 args ['language' ] = _dict .get ('language' )
46814708 if 'dialect' in _dict :
@@ -4708,6 +4735,8 @@ def _to_dict(self):
47084735 _dict ['customization_id' ] = self .customization_id
47094736 if hasattr (self , 'created' ) and self .created is not None :
47104737 _dict ['created' ] = self .created
4738+ if hasattr (self , 'updated' ) and self .updated is not None :
4739+ _dict ['updated' ] = self .updated
47114740 if hasattr (self , 'language' ) and self .language is not None :
47124741 _dict ['language' ] = self .language
47134742 if hasattr (self , 'dialect' ) and self .dialect is not None :
0 commit comments