aspose_tasks_cloud 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (79) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE +22 -0
  3. data/README.md +49 -0
  4. data/aspose_tasks_cloud.gemspec +26 -0
  5. data/lib/aspose_tasks_cloud.rb +92 -0
  6. data/lib/aspose_tasks_cloud/api/tasks_api.rb +2585 -0
  7. data/lib/aspose_tasks_cloud/api_client.rb +335 -0
  8. data/lib/aspose_tasks_cloud/api_error.rb +24 -0
  9. data/lib/aspose_tasks_cloud/configuration.rb +166 -0
  10. data/lib/aspose_tasks_cloud/models/assignment_item.rb +61 -0
  11. data/lib/aspose_tasks_cloud/models/assignment_item_response.rb +61 -0
  12. data/lib/aspose_tasks_cloud/models/assignment_items.rb +47 -0
  13. data/lib/aspose_tasks_cloud/models/assignment_items_response.rb +61 -0
  14. data/lib/aspose_tasks_cloud/models/assignment_response.rb +61 -0
  15. data/lib/aspose_tasks_cloud/models/assignments_response.rb +61 -0
  16. data/lib/aspose_tasks_cloud/models/base_object.rb +86 -0
  17. data/lib/aspose_tasks_cloud/models/base_response.rb +53 -0
  18. data/lib/aspose_tasks_cloud/models/calendar.rb +89 -0
  19. data/lib/aspose_tasks_cloud/models/calendar_exception.rb +145 -0
  20. data/lib/aspose_tasks_cloud/models/calendar_exceptions_response.rb +63 -0
  21. data/lib/aspose_tasks_cloud/models/calendar_item.rb +53 -0
  22. data/lib/aspose_tasks_cloud/models/calendar_item_response.rb +61 -0
  23. data/lib/aspose_tasks_cloud/models/calendar_items.rb +47 -0
  24. data/lib/aspose_tasks_cloud/models/calendar_items_response.rb +61 -0
  25. data/lib/aspose_tasks_cloud/models/calendar_response.rb +61 -0
  26. data/lib/aspose_tasks_cloud/models/document_properties.rb +47 -0
  27. data/lib/aspose_tasks_cloud/models/document_properties_response.rb +61 -0
  28. data/lib/aspose_tasks_cloud/models/document_property.rb +53 -0
  29. data/lib/aspose_tasks_cloud/models/document_property_response.rb +61 -0
  30. data/lib/aspose_tasks_cloud/models/extended_attribute.rb +61 -0
  31. data/lib/aspose_tasks_cloud/models/extended_attribute_definition.rb +207 -0
  32. data/lib/aspose_tasks_cloud/models/extended_attribute_item.rb +53 -0
  33. data/lib/aspose_tasks_cloud/models/extended_attribute_items.rb +47 -0
  34. data/lib/aspose_tasks_cloud/models/extended_attribute_items_response.rb +61 -0
  35. data/lib/aspose_tasks_cloud/models/extended_attribute_response.rb +61 -0
  36. data/lib/aspose_tasks_cloud/models/link.rb +61 -0
  37. data/lib/aspose_tasks_cloud/models/outline_code.rb +53 -0
  38. data/lib/aspose_tasks_cloud/models/outline_code_definition.rb +145 -0
  39. data/lib/aspose_tasks_cloud/models/outline_code_item.rb +45 -0
  40. data/lib/aspose_tasks_cloud/models/outline_code_items.rb +47 -0
  41. data/lib/aspose_tasks_cloud/models/outline_code_items_response.rb +61 -0
  42. data/lib/aspose_tasks_cloud/models/outline_code_response.rb +61 -0
  43. data/lib/aspose_tasks_cloud/models/outline_mask.rb +61 -0
  44. data/lib/aspose_tasks_cloud/models/outline_value.rb +85 -0
  45. data/lib/aspose_tasks_cloud/models/recurring_info.rb +197 -0
  46. data/lib/aspose_tasks_cloud/models/recurring_info_response.rb +61 -0
  47. data/lib/aspose_tasks_cloud/models/resource.rb +945 -0
  48. data/lib/aspose_tasks_cloud/models/resource_assignment.rb +1063 -0
  49. data/lib/aspose_tasks_cloud/models/resource_assignments.rb +47 -0
  50. data/lib/aspose_tasks_cloud/models/resource_item.rb +61 -0
  51. data/lib/aspose_tasks_cloud/models/resource_item_response.rb +61 -0
  52. data/lib/aspose_tasks_cloud/models/resource_items.rb +47 -0
  53. data/lib/aspose_tasks_cloud/models/resource_items_response.rb +61 -0
  54. data/lib/aspose_tasks_cloud/models/resource_response.rb +61 -0
  55. data/lib/aspose_tasks_cloud/models/task.rb +1595 -0
  56. data/lib/aspose_tasks_cloud/models/task_document.rb +63 -0
  57. data/lib/aspose_tasks_cloud/models/task_document_response.rb +61 -0
  58. data/lib/aspose_tasks_cloud/models/task_item.rb +85 -0
  59. data/lib/aspose_tasks_cloud/models/task_item_response.rb +61 -0
  60. data/lib/aspose_tasks_cloud/models/task_items.rb +47 -0
  61. data/lib/aspose_tasks_cloud/models/task_items_response.rb +61 -0
  62. data/lib/aspose_tasks_cloud/models/task_link.rb +85 -0
  63. data/lib/aspose_tasks_cloud/models/task_link_response.rb +61 -0
  64. data/lib/aspose_tasks_cloud/models/task_links_response.rb +63 -0
  65. data/lib/aspose_tasks_cloud/models/task_response.rb +61 -0
  66. data/lib/aspose_tasks_cloud/models/value.rb +61 -0
  67. data/lib/aspose_tasks_cloud/models/wbs_code_mask.rb +61 -0
  68. data/lib/aspose_tasks_cloud/models/wbs_definition.rb +63 -0
  69. data/lib/aspose_tasks_cloud/models/wbs_definition_response.rb +61 -0
  70. data/lib/aspose_tasks_cloud/models/week_day.rb +71 -0
  71. data/lib/aspose_tasks_cloud/models/working_time.rb +45 -0
  72. data/lib/aspose_tasks_cloud/version.rb +3 -0
  73. data/test/data/ExtendedAttribute.mpp +0 -0
  74. data/test/data/Outlinecode.mpp +0 -0
  75. data/test/data/ResourceWithExtAttribs.xml +345 -0
  76. data/test/data/sample-project-2.mpp +0 -0
  77. data/test/data/sample-project.mpp +0 -0
  78. data/test/tasks_tests.rb +430 -0
  79. metadata +207 -0
@@ -0,0 +1,61 @@
1
+ module AsposeTasksCloud
2
+ #
3
+ class CalendarItemsResponse < BaseObject
4
+ attr_accessor :calendars, :status, :code
5
+ # attribute mapping from ruby-style variable name to JSON key
6
+ def self.attribute_map
7
+ {
8
+
9
+ #
10
+ :'calendars' => :'Calendars',
11
+
12
+ #
13
+ :'status' => :'Status',
14
+
15
+ #
16
+ :'code' => :'Code'
17
+
18
+ }
19
+ end
20
+
21
+ # attribute type
22
+ def self.swagger_types
23
+ {
24
+ :'calendars' => :'CalendarItems',
25
+ :'status' => :'String',
26
+ :'code' => :'String'
27
+
28
+ }
29
+ end
30
+
31
+ def initialize(attributes = {})
32
+ return if !attributes.is_a?(Hash) || attributes.empty?
33
+
34
+ # convert string to symbol for hash key
35
+ attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}
36
+
37
+
38
+ if attributes[:'Calendars']
39
+ self.calendars = attributes[:'Calendars']
40
+ end
41
+
42
+ if attributes[:'Status']
43
+ self.status = attributes[:'Status']
44
+ end
45
+
46
+ if attributes[:'Code']
47
+ self.code = attributes[:'Code']
48
+ end
49
+
50
+ end
51
+
52
+ def status=(status)
53
+ allowed_values = ["Continue", "SwitchingProtocols", "OK", "Created", "Accepted", "NonAuthoritativeInformation", "NoContent", "ResetContent", "PartialContent", "MultipleChoices", "Ambiguous", "MovedPermanently", "Moved", "Found", "Redirect", "SeeOther", "RedirectMethod", "NotModified", "UseProxy", "Unused", "TemporaryRedirect", "RedirectKeepVerb", "BadRequest", "Unauthorized", "PaymentRequired", "Forbidden", "NotFound", "MethodNotAllowed", "NotAcceptable", "ProxyAuthenticationRequired", "RequestTimeout", "Conflict", "Gone", "LengthRequired", "PreconditionFailed", "RequestEntityTooLarge", "RequestUriTooLong", "UnsupportedMediaType", "RequestedRangeNotSatisfiable", "ExpectationFailed", "UpgradeRequired", "InternalServerError", "NotImplemented", "BadGateway", "ServiceUnavailable", "GatewayTimeout", "HttpVersionNotSupported"]
54
+ if status && !allowed_values.include?(status)
55
+ fail "invalid value for 'status', must be one of #{allowed_values}"
56
+ end
57
+ @status = status
58
+ end
59
+
60
+ end
61
+ end
@@ -0,0 +1,61 @@
1
+ module AsposeTasksCloud
2
+ #
3
+ class CalendarResponse < BaseObject
4
+ attr_accessor :calendar, :status, :code
5
+ # attribute mapping from ruby-style variable name to JSON key
6
+ def self.attribute_map
7
+ {
8
+
9
+ #
10
+ :'calendar' => :'Calendar',
11
+
12
+ #
13
+ :'status' => :'Status',
14
+
15
+ #
16
+ :'code' => :'Code'
17
+
18
+ }
19
+ end
20
+
21
+ # attribute type
22
+ def self.swagger_types
23
+ {
24
+ :'calendar' => :'Calendar',
25
+ :'status' => :'String',
26
+ :'code' => :'String'
27
+
28
+ }
29
+ end
30
+
31
+ def initialize(attributes = {})
32
+ return if !attributes.is_a?(Hash) || attributes.empty?
33
+
34
+ # convert string to symbol for hash key
35
+ attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}
36
+
37
+
38
+ if attributes[:'Calendar']
39
+ self.calendar = attributes[:'Calendar']
40
+ end
41
+
42
+ if attributes[:'Status']
43
+ self.status = attributes[:'Status']
44
+ end
45
+
46
+ if attributes[:'Code']
47
+ self.code = attributes[:'Code']
48
+ end
49
+
50
+ end
51
+
52
+ def status=(status)
53
+ allowed_values = ["Continue", "SwitchingProtocols", "OK", "Created", "Accepted", "NonAuthoritativeInformation", "NoContent", "ResetContent", "PartialContent", "MultipleChoices", "Ambiguous", "MovedPermanently", "Moved", "Found", "Redirect", "SeeOther", "RedirectMethod", "NotModified", "UseProxy", "Unused", "TemporaryRedirect", "RedirectKeepVerb", "BadRequest", "Unauthorized", "PaymentRequired", "Forbidden", "NotFound", "MethodNotAllowed", "NotAcceptable", "ProxyAuthenticationRequired", "RequestTimeout", "Conflict", "Gone", "LengthRequired", "PreconditionFailed", "RequestEntityTooLarge", "RequestUriTooLong", "UnsupportedMediaType", "RequestedRangeNotSatisfiable", "ExpectationFailed", "UpgradeRequired", "InternalServerError", "NotImplemented", "BadGateway", "ServiceUnavailable", "GatewayTimeout", "HttpVersionNotSupported"]
54
+ if status && !allowed_values.include?(status)
55
+ fail "invalid value for 'status', must be one of #{allowed_values}"
56
+ end
57
+ @status = status
58
+ end
59
+
60
+ end
61
+ end
@@ -0,0 +1,47 @@
1
+ module AsposeTasksCloud
2
+ #
3
+ class DocumentProperties < BaseObject
4
+ attr_accessor :list, :link
5
+ # attribute mapping from ruby-style variable name to JSON key
6
+ def self.attribute_map
7
+ {
8
+
9
+ #
10
+ :'list' => :'List',
11
+
12
+ #
13
+ :'link' => :'link'
14
+
15
+ }
16
+ end
17
+
18
+ # attribute type
19
+ def self.swagger_types
20
+ {
21
+ :'list' => :'Array<DocumentProperty>',
22
+ :'link' => :'Link'
23
+
24
+ }
25
+ end
26
+
27
+ def initialize(attributes = {})
28
+ return if !attributes.is_a?(Hash) || attributes.empty?
29
+
30
+ # convert string to symbol for hash key
31
+ attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}
32
+
33
+
34
+ if attributes[:'List']
35
+ if (value = attributes[:'List']).is_a?(Array)
36
+ self.list = value
37
+ end
38
+ end
39
+
40
+ if attributes[:'link']
41
+ self.link = attributes[:'link']
42
+ end
43
+
44
+ end
45
+
46
+ end
47
+ end
@@ -0,0 +1,61 @@
1
+ module AsposeTasksCloud
2
+ #
3
+ class DocumentPropertiesResponse < BaseObject
4
+ attr_accessor :properties, :status, :code
5
+ # attribute mapping from ruby-style variable name to JSON key
6
+ def self.attribute_map
7
+ {
8
+
9
+ #
10
+ :'properties' => :'Properties',
11
+
12
+ #
13
+ :'status' => :'Status',
14
+
15
+ #
16
+ :'code' => :'Code'
17
+
18
+ }
19
+ end
20
+
21
+ # attribute type
22
+ def self.swagger_types
23
+ {
24
+ :'properties' => :'DocumentProperties',
25
+ :'status' => :'String',
26
+ :'code' => :'String'
27
+
28
+ }
29
+ end
30
+
31
+ def initialize(attributes = {})
32
+ return if !attributes.is_a?(Hash) || attributes.empty?
33
+
34
+ # convert string to symbol for hash key
35
+ attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}
36
+
37
+
38
+ if attributes[:'Properties']
39
+ self.properties = attributes[:'Properties']
40
+ end
41
+
42
+ if attributes[:'Status']
43
+ self.status = attributes[:'Status']
44
+ end
45
+
46
+ if attributes[:'Code']
47
+ self.code = attributes[:'Code']
48
+ end
49
+
50
+ end
51
+
52
+ def status=(status)
53
+ allowed_values = ["Continue", "SwitchingProtocols", "OK", "Created", "Accepted", "NonAuthoritativeInformation", "NoContent", "ResetContent", "PartialContent", "MultipleChoices", "Ambiguous", "MovedPermanently", "Moved", "Found", "Redirect", "SeeOther", "RedirectMethod", "NotModified", "UseProxy", "Unused", "TemporaryRedirect", "RedirectKeepVerb", "BadRequest", "Unauthorized", "PaymentRequired", "Forbidden", "NotFound", "MethodNotAllowed", "NotAcceptable", "ProxyAuthenticationRequired", "RequestTimeout", "Conflict", "Gone", "LengthRequired", "PreconditionFailed", "RequestEntityTooLarge", "RequestUriTooLong", "UnsupportedMediaType", "RequestedRangeNotSatisfiable", "ExpectationFailed", "UpgradeRequired", "InternalServerError", "NotImplemented", "BadGateway", "ServiceUnavailable", "GatewayTimeout", "HttpVersionNotSupported"]
54
+ if status && !allowed_values.include?(status)
55
+ fail "invalid value for 'status', must be one of #{allowed_values}"
56
+ end
57
+ @status = status
58
+ end
59
+
60
+ end
61
+ end
@@ -0,0 +1,53 @@
1
+ module AsposeTasksCloud
2
+ #
3
+ class DocumentProperty < BaseObject
4
+ attr_accessor :name, :value, :link
5
+ # attribute mapping from ruby-style variable name to JSON key
6
+ def self.attribute_map
7
+ {
8
+
9
+ #
10
+ :'name' => :'Name',
11
+
12
+ #
13
+ :'value' => :'Value',
14
+
15
+ #
16
+ :'link' => :'link'
17
+
18
+ }
19
+ end
20
+
21
+ # attribute type
22
+ def self.swagger_types
23
+ {
24
+ :'name' => :'String',
25
+ :'value' => :'String',
26
+ :'link' => :'Link'
27
+
28
+ }
29
+ end
30
+
31
+ def initialize(attributes = {})
32
+ return if !attributes.is_a?(Hash) || attributes.empty?
33
+
34
+ # convert string to symbol for hash key
35
+ attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}
36
+
37
+
38
+ if attributes[:'Name']
39
+ self.name = attributes[:'Name']
40
+ end
41
+
42
+ if attributes[:'Value']
43
+ self.value = attributes[:'Value']
44
+ end
45
+
46
+ if attributes[:'link']
47
+ self.link = attributes[:'link']
48
+ end
49
+
50
+ end
51
+
52
+ end
53
+ end
@@ -0,0 +1,61 @@
1
+ module AsposeTasksCloud
2
+ #
3
+ class DocumentPropertyResponse < BaseObject
4
+ attr_accessor :property, :status, :code
5
+ # attribute mapping from ruby-style variable name to JSON key
6
+ def self.attribute_map
7
+ {
8
+
9
+ #
10
+ :'property' => :'Property',
11
+
12
+ #
13
+ :'status' => :'Status',
14
+
15
+ #
16
+ :'code' => :'Code'
17
+
18
+ }
19
+ end
20
+
21
+ # attribute type
22
+ def self.swagger_types
23
+ {
24
+ :'property' => :'DocumentProperty',
25
+ :'status' => :'String',
26
+ :'code' => :'String'
27
+
28
+ }
29
+ end
30
+
31
+ def initialize(attributes = {})
32
+ return if !attributes.is_a?(Hash) || attributes.empty?
33
+
34
+ # convert string to symbol for hash key
35
+ attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}
36
+
37
+
38
+ if attributes[:'Property']
39
+ self.property = attributes[:'Property']
40
+ end
41
+
42
+ if attributes[:'Status']
43
+ self.status = attributes[:'Status']
44
+ end
45
+
46
+ if attributes[:'Code']
47
+ self.code = attributes[:'Code']
48
+ end
49
+
50
+ end
51
+
52
+ def status=(status)
53
+ allowed_values = ["Continue", "SwitchingProtocols", "OK", "Created", "Accepted", "NonAuthoritativeInformation", "NoContent", "ResetContent", "PartialContent", "MultipleChoices", "Ambiguous", "MovedPermanently", "Moved", "Found", "Redirect", "SeeOther", "RedirectMethod", "NotModified", "UseProxy", "Unused", "TemporaryRedirect", "RedirectKeepVerb", "BadRequest", "Unauthorized", "PaymentRequired", "Forbidden", "NotFound", "MethodNotAllowed", "NotAcceptable", "ProxyAuthenticationRequired", "RequestTimeout", "Conflict", "Gone", "LengthRequired", "PreconditionFailed", "RequestEntityTooLarge", "RequestUriTooLong", "UnsupportedMediaType", "RequestedRangeNotSatisfiable", "ExpectationFailed", "UpgradeRequired", "InternalServerError", "NotImplemented", "BadGateway", "ServiceUnavailable", "GatewayTimeout", "HttpVersionNotSupported"]
54
+ if status && !allowed_values.include?(status)
55
+ fail "invalid value for 'status', must be one of #{allowed_values}"
56
+ end
57
+ @status = status
58
+ end
59
+
60
+ end
61
+ end
@@ -0,0 +1,61 @@
1
+ module AsposeTasksCloud
2
+ #
3
+ class ExtendedAttribute < BaseObject
4
+ attr_accessor :field_id, :value, :value_guid, :duration_format
5
+ # attribute mapping from ruby-style variable name to JSON key
6
+ def self.attribute_map
7
+ {
8
+
9
+ #
10
+ :'field_id' => :'FieldId',
11
+
12
+ #
13
+ :'value' => :'Value',
14
+
15
+ #
16
+ :'value_guid' => :'ValueGuid',
17
+
18
+ #
19
+ :'duration_format' => :'DurationFormat'
20
+
21
+ }
22
+ end
23
+
24
+ # attribute type
25
+ def self.swagger_types
26
+ {
27
+ :'field_id' => :'String',
28
+ :'value' => :'String',
29
+ :'value_guid' => :'String',
30
+ :'duration_format' => :'String'
31
+
32
+ }
33
+ end
34
+
35
+ def initialize(attributes = {})
36
+ return if !attributes.is_a?(Hash) || attributes.empty?
37
+
38
+ # convert string to symbol for hash key
39
+ attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}
40
+
41
+
42
+ if attributes[:'FieldId']
43
+ self.field_id = attributes[:'FieldId']
44
+ end
45
+
46
+ if attributes[:'Value']
47
+ self.value = attributes[:'Value']
48
+ end
49
+
50
+ if attributes[:'ValueGuid']
51
+ self.value_guid = attributes[:'ValueGuid']
52
+ end
53
+
54
+ if attributes[:'DurationFormat']
55
+ self.duration_format = attributes[:'DurationFormat']
56
+ end
57
+
58
+ end
59
+
60
+ end
61
+ end
@@ -0,0 +1,207 @@
1
+ module AsposeTasksCloud
2
+ #
3
+ class ExtendedAttributeDefinition < BaseObject
4
+ attr_accessor :field_id, :field_name, :cf_type, :guid, :element_type, :max_multi_values, :user_def, :_alias, :secondary_pid, :auto_roll_down, :default_guid, :lookup_uid, :phonetics_alias, :rollup_type, :calculation_type, :formula, :restrict_values, :valuelist_sort_order, :append_new_values, :default, :value_list, :secondary_guid
5
+ # attribute mapping from ruby-style variable name to JSON key
6
+ def self.attribute_map
7
+ {
8
+
9
+ #
10
+ :'field_id' => :'FieldId',
11
+
12
+ #
13
+ :'field_name' => :'FieldName',
14
+
15
+ #
16
+ :'cf_type' => :'CfType',
17
+
18
+ #
19
+ :'guid' => :'Guid',
20
+
21
+ #
22
+ :'element_type' => :'ElementType',
23
+
24
+ #
25
+ :'max_multi_values' => :'MaxMultiValues',
26
+
27
+ #
28
+ :'user_def' => :'UserDef',
29
+
30
+ #
31
+ :'_alias' => :'Alias',
32
+
33
+ #
34
+ :'secondary_pid' => :'SecondaryPid',
35
+
36
+ #
37
+ :'auto_roll_down' => :'AutoRollDown',
38
+
39
+ #
40
+ :'default_guid' => :'DefaultGuid',
41
+
42
+ #
43
+ :'lookup_uid' => :'LookupUid',
44
+
45
+ #
46
+ :'phonetics_alias' => :'PhoneticsAlias',
47
+
48
+ #
49
+ :'rollup_type' => :'RollupType',
50
+
51
+ #
52
+ :'calculation_type' => :'CalculationType',
53
+
54
+ #
55
+ :'formula' => :'Formula',
56
+
57
+ #
58
+ :'restrict_values' => :'RestrictValues',
59
+
60
+ #
61
+ :'valuelist_sort_order' => :'ValuelistSortOrder',
62
+
63
+ #
64
+ :'append_new_values' => :'AppendNewValues',
65
+
66
+ #
67
+ :'default' => :'Default',
68
+
69
+ #
70
+ :'value_list' => :'ValueList',
71
+
72
+ #
73
+ :'secondary_guid' => :'SecondaryGuid'
74
+
75
+ }
76
+ end
77
+
78
+ # attribute type
79
+ def self.swagger_types
80
+ {
81
+ :'field_id' => :'String',
82
+ :'field_name' => :'String',
83
+ :'cf_type' => :'String',
84
+ :'guid' => :'String',
85
+ :'element_type' => :'String',
86
+ :'max_multi_values' => :'Integer',
87
+ :'user_def' => :'BOOLEAN',
88
+ :'_alias' => :'String',
89
+ :'secondary_pid' => :'String',
90
+ :'auto_roll_down' => :'BOOLEAN',
91
+ :'default_guid' => :'String',
92
+ :'lookup_uid' => :'String',
93
+ :'phonetics_alias' => :'String',
94
+ :'rollup_type' => :'String',
95
+ :'calculation_type' => :'String',
96
+ :'formula' => :'String',
97
+ :'restrict_values' => :'BOOLEAN',
98
+ :'valuelist_sort_order' => :'Integer',
99
+ :'append_new_values' => :'BOOLEAN',
100
+ :'default' => :'String',
101
+ :'value_list' => :'Array<Value>',
102
+ :'secondary_guid' => :'String'
103
+
104
+ }
105
+ end
106
+
107
+ def initialize(attributes = {})
108
+ return if !attributes.is_a?(Hash) || attributes.empty?
109
+
110
+ # convert string to symbol for hash key
111
+ attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}
112
+
113
+
114
+ if attributes[:'FieldId']
115
+ self.field_id = attributes[:'FieldId']
116
+ end
117
+
118
+ if attributes[:'FieldName']
119
+ self.field_name = attributes[:'FieldName']
120
+ end
121
+
122
+ if attributes[:'CfType']
123
+ self.cf_type = attributes[:'CfType']
124
+ end
125
+
126
+ if attributes[:'Guid']
127
+ self.guid = attributes[:'Guid']
128
+ end
129
+
130
+ if attributes[:'ElementType']
131
+ self.element_type = attributes[:'ElementType']
132
+ end
133
+
134
+ if attributes[:'MaxMultiValues']
135
+ self.max_multi_values = attributes[:'MaxMultiValues']
136
+ end
137
+
138
+ if attributes[:'UserDef']
139
+ self.user_def = attributes[:'UserDef']
140
+ end
141
+
142
+ if attributes[:'Alias']
143
+ self._alias = attributes[:'Alias']
144
+ end
145
+
146
+ if attributes[:'SecondaryPid']
147
+ self.secondary_pid = attributes[:'SecondaryPid']
148
+ end
149
+
150
+ if attributes[:'AutoRollDown']
151
+ self.auto_roll_down = attributes[:'AutoRollDown']
152
+ end
153
+
154
+ if attributes[:'DefaultGuid']
155
+ self.default_guid = attributes[:'DefaultGuid']
156
+ end
157
+
158
+ if attributes[:'LookupUid']
159
+ self.lookup_uid = attributes[:'LookupUid']
160
+ end
161
+
162
+ if attributes[:'PhoneticsAlias']
163
+ self.phonetics_alias = attributes[:'PhoneticsAlias']
164
+ end
165
+
166
+ if attributes[:'RollupType']
167
+ self.rollup_type = attributes[:'RollupType']
168
+ end
169
+
170
+ if attributes[:'CalculationType']
171
+ self.calculation_type = attributes[:'CalculationType']
172
+ end
173
+
174
+ if attributes[:'Formula']
175
+ self.formula = attributes[:'Formula']
176
+ end
177
+
178
+ if attributes[:'RestrictValues']
179
+ self.restrict_values = attributes[:'RestrictValues']
180
+ end
181
+
182
+ if attributes[:'ValuelistSortOrder']
183
+ self.valuelist_sort_order = attributes[:'ValuelistSortOrder']
184
+ end
185
+
186
+ if attributes[:'AppendNewValues']
187
+ self.append_new_values = attributes[:'AppendNewValues']
188
+ end
189
+
190
+ if attributes[:'Default']
191
+ self.default = attributes[:'Default']
192
+ end
193
+
194
+ if attributes[:'ValueList']
195
+ if (value = attributes[:'ValueList']).is_a?(Array)
196
+ self.value_list = value
197
+ end
198
+ end
199
+
200
+ if attributes[:'SecondaryGuid']
201
+ self.secondary_guid = attributes[:'SecondaryGuid']
202
+ end
203
+
204
+ end
205
+
206
+ end
207
+ end