lib/phrase/models/project_update_parameters.rb in phrase-2.8.3 vs lib/phrase/models/project_update_parameters.rb in phrase-2.8.7
- old
+ new
@@ -6,13 +6,19 @@
attr_accessor :account_id
# (Optional) Name of the project
attr_accessor :name
- # (Optional) Main file format specified by its API Extension name. Used for locale downloads if no format is specified. For API Extension names of available file formats see <a href=\"https://support.phrase.com/hc/en-us/articles/5784070560412\">Format Guide</a> or our <a href=\"#formats\">Formats API Endpoint</a>.
+ # (Optional) User ID of the point of contact for the project. Pass `null` to unset.
+ attr_accessor :point_of_contact
+
+ # (Optional) Main file format specified by its API Extension name. Used for locale downloads if no format is specified. For API Extension names of available file formats see <a href=\"https://support.phrase.com/hc/en-us/sections/6111343326364\">Format Guide</a> or our <a href=\"#formats\">Formats API Endpoint</a>.
attr_accessor :main_format
+ # (Optional) Main technology stack used in the project. It affects for example the suggested placeholder style. Predefined values include: `Ruby`, `JavaScript`, `AngularJS`, `React`, `iOS`, `Android`, `Python`, `PHP`, `Java`, `Go`, `Windows Phone`, `Rails`, `Node.js`, `.NET`, `Django`, `Symfony`, `Yii Framework`, `Zend Framework`, `Apple App Store Description`, `Google Play Description`, but it can also take any other value.
+ attr_accessor :media
+
# (Optional) Indicates whether the project should share the account's translation memory
attr_accessor :shares_translation_memory
# (Optional) Image to identify the project
attr_accessor :project_image
@@ -74,11 +80,13 @@
# Attribute mapping from ruby-style variable name to JSON key.
def self.attribute_map
{
:'account_id' => :'account_id',
:'name' => :'name',
+ :'point_of_contact' => :'point_of_contact',
:'main_format' => :'main_format',
+ :'media' => :'media',
:'shares_translation_memory' => :'shares_translation_memory',
:'project_image' => :'project_image',
:'remove_project_image' => :'remove_project_image',
:'workflow' => :'workflow',
:'machine_translation_enabled' => :'machine_translation_enabled',
@@ -103,11 +111,13 @@
# Attribute type mapping.
def self.openapi_types
{
:'account_id' => :'String',
:'name' => :'String',
+ :'point_of_contact' => :'String',
:'main_format' => :'String',
+ :'media' => :'String',
:'shares_translation_memory' => :'Boolean',
:'project_image' => :'File',
:'remove_project_image' => :'Boolean',
:'workflow' => :'String',
:'machine_translation_enabled' => :'Boolean',
@@ -156,14 +166,22 @@
if attributes.key?(:'name')
self.name = attributes[:'name']
end
+ if attributes.key?(:'point_of_contact')
+ self.point_of_contact = attributes[:'point_of_contact']
+ end
+
if attributes.key?(:'main_format')
self.main_format = attributes[:'main_format']
end
+ if attributes.key?(:'media')
+ self.media = attributes[:'media']
+ end
+
if attributes.key?(:'shares_translation_memory')
self.shares_translation_memory = attributes[:'shares_translation_memory']
end
if attributes.key?(:'project_image')
@@ -261,11 +279,13 @@
def ==(o)
return true if self.equal?(o)
self.class == o.class &&
account_id == o.account_id &&
name == o.name &&
+ point_of_contact == o.point_of_contact &&
main_format == o.main_format &&
+ media == o.media &&
shares_translation_memory == o.shares_translation_memory &&
project_image == o.project_image &&
remove_project_image == o.remove_project_image &&
workflow == o.workflow &&
machine_translation_enabled == o.machine_translation_enabled &&
@@ -293,10 +313,10 @@
end
# Calculates hash code according to all attributes.
# @return [Integer] Hash code
def hash
- [account_id, name, main_format, shares_translation_memory, project_image, remove_project_image, workflow, machine_translation_enabled, enable_branching, protect_master_branch, enable_all_data_type_translation_keys_for_translators, enable_icu_message_format, zero_plural_form_enabled, autotranslate_enabled, autotranslate_check_new_translation_keys, autotranslate_check_new_uploads, autotranslate_check_new_locales, autotranslate_mark_as_unverified, autotranslate_use_machine_translation, autotranslate_use_translation_memory, smart_suggest_enabled, smart_suggest_use_glossary, smart_suggest_use_machine_translation].hash
+ [account_id, name, point_of_contact, main_format, media, shares_translation_memory, project_image, remove_project_image, workflow, machine_translation_enabled, enable_branching, protect_master_branch, enable_all_data_type_translation_keys_for_translators, enable_icu_message_format, zero_plural_form_enabled, autotranslate_enabled, autotranslate_check_new_translation_keys, autotranslate_check_new_uploads, autotranslate_check_new_locales, autotranslate_mark_as_unverified, autotranslate_use_machine_translation, autotranslate_use_translation_memory, smart_suggest_enabled, smart_suggest_use_glossary, smart_suggest_use_machine_translation].hash
end
# Builds the object from hash
# @param [Hash] attributes Model attributes in the form of hash
# @return [Object] Returns the model itself