lib/purecloud/models/prompt_asset.rb in purecloud-0.28.0 vs lib/purecloud/models/prompt_asset.rb in purecloud-0.29.1
- old
+ new
@@ -17,10 +17,14 @@
attr_accessor :upload_status
attr_accessor :upload_uri
+ attr_accessor :language_default
+
+ attr_accessor :tags
+
attr_accessor :duration_seconds
# The URI for this object
attr_accessor :self_uri
@@ -42,10 +46,14 @@
:'upload_status' => :'uploadStatus',
:'upload_uri' => :'uploadUri',
+ :'language_default' => :'languageDefault',
+
+ :'tags' => :'tags',
+
:'duration_seconds' => :'durationSeconds',
:'self_uri' => :'selfUri'
}
@@ -60,10 +68,12 @@
:'language' => :'String',
:'media_uri' => :'String',
:'tts_string' => :'String',
:'upload_status' => :'String',
:'upload_uri' => :'String',
+ :'language_default' => :'BOOLEAN',
+ :'tags' => :'Hash<String, String>',
:'duration_seconds' => :'Float',
:'self_uri' => :'String'
}
end
@@ -105,10 +115,22 @@
if attributes[:'uploadUri']
self.upload_uri = attributes[:'uploadUri']
end
+ if attributes[:'languageDefault']
+ self.language_default = attributes[:'languageDefault']
+ else
+ self.language_default = false
+ end
+
+ if attributes[:'tags']
+ if (value = attributes[:'tags']).is_a?(Array)
+ self.tags = value
+ end
+ end
+
if attributes[:'durationSeconds']
self.duration_seconds = attributes[:'durationSeconds']
end
if attributes[:'selfUri']
@@ -127,10 +149,12 @@
language == o.language &&
media_uri == o.media_uri &&
tts_string == o.tts_string &&
upload_status == o.upload_status &&
upload_uri == o.upload_uri &&
+ language_default == o.language_default &&
+ tags == o.tags &&
duration_seconds == o.duration_seconds &&
self_uri == o.self_uri
end
# @see the `==` method
@@ -138,10 +162,10 @@
self == o
end
# Calculate hash code according to all attributes.
def hash
- [id, name, prompt_id, language, media_uri, tts_string, upload_status, upload_uri, duration_seconds, self_uri].hash
+ [id, name, prompt_id, language, media_uri, tts_string, upload_status, upload_uri, language_default, tags, duration_seconds, self_uri].hash
end
# build the object from hash
def build_from_hash(attributes)
return nil unless attributes.is_a?(Hash)