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,53 @@
1
+ module AsposeTasksCloud
2
+ #
3
+ class ExtendedAttributeItem < BaseObject
4
+ attr_accessor :link, :index, :field_name
5
+ # attribute mapping from ruby-style variable name to JSON key
6
+ def self.attribute_map
7
+ {
8
+
9
+ #
10
+ :'link' => :'Link',
11
+
12
+ #
13
+ :'index' => :'Index',
14
+
15
+ #
16
+ :'field_name' => :'FieldName'
17
+
18
+ }
19
+ end
20
+
21
+ # attribute type
22
+ def self.swagger_types
23
+ {
24
+ :'link' => :'Link',
25
+ :'index' => :'Integer',
26
+ :'field_name' => :'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[:'Link']
39
+ self.link = attributes[:'Link']
40
+ end
41
+
42
+ if attributes[:'Index']
43
+ self.index = attributes[:'Index']
44
+ end
45
+
46
+ if attributes[:'FieldName']
47
+ self.field_name = attributes[:'FieldName']
48
+ end
49
+
50
+ end
51
+
52
+ end
53
+ end
@@ -0,0 +1,47 @@
1
+ module AsposeTasksCloud
2
+ #
3
+ class ExtendedAttributeItems < 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<ExtendedAttributeItem>',
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 ExtendedAttributeItemsResponse < BaseObject
4
+ attr_accessor :extended_attributes, :status, :code
5
+ # attribute mapping from ruby-style variable name to JSON key
6
+ def self.attribute_map
7
+ {
8
+
9
+ #
10
+ :'extended_attributes' => :'ExtendedAttributes',
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
+ :'extended_attributes' => :'ExtendedAttributeItems',
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[:'ExtendedAttributes']
39
+ self.extended_attributes = attributes[:'ExtendedAttributes']
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 ExtendedAttributeResponse < BaseObject
4
+ attr_accessor :extended_attribute, :status, :code
5
+ # attribute mapping from ruby-style variable name to JSON key
6
+ def self.attribute_map
7
+ {
8
+
9
+ #
10
+ :'extended_attribute' => :'ExtendedAttribute',
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
+ :'extended_attribute' => :'ExtendedAttributeDefinition',
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[:'ExtendedAttribute']
39
+ self.extended_attribute = attributes[:'ExtendedAttribute']
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 Link < BaseObject
4
+ attr_accessor :href, :rel, :type, :title
5
+ # attribute mapping from ruby-style variable name to JSON key
6
+ def self.attribute_map
7
+ {
8
+
9
+ #
10
+ :'href' => :'Href',
11
+
12
+ #
13
+ :'rel' => :'Rel',
14
+
15
+ #
16
+ :'type' => :'Type',
17
+
18
+ #
19
+ :'title' => :'Title'
20
+
21
+ }
22
+ end
23
+
24
+ # attribute type
25
+ def self.swagger_types
26
+ {
27
+ :'href' => :'String',
28
+ :'rel' => :'String',
29
+ :'type' => :'String',
30
+ :'title' => :'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[:'Href']
43
+ self.href = attributes[:'Href']
44
+ end
45
+
46
+ if attributes[:'Rel']
47
+ self.rel = attributes[:'Rel']
48
+ end
49
+
50
+ if attributes[:'Type']
51
+ self.type = attributes[:'Type']
52
+ end
53
+
54
+ if attributes[:'Title']
55
+ self.title = attributes[:'Title']
56
+ end
57
+
58
+ end
59
+
60
+ end
61
+ end
@@ -0,0 +1,53 @@
1
+ module AsposeTasksCloud
2
+ #
3
+ class OutlineCode < BaseObject
4
+ attr_accessor :field_id, :value_id, :value_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
+ :'value_id' => :'ValueId',
14
+
15
+ #
16
+ :'value_guid' => :'ValueGuid'
17
+
18
+ }
19
+ end
20
+
21
+ # attribute type
22
+ def self.swagger_types
23
+ {
24
+ :'field_id' => :'String',
25
+ :'value_id' => :'Integer',
26
+ :'value_guid' => :'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[:'FieldId']
39
+ self.field_id = attributes[:'FieldId']
40
+ end
41
+
42
+ if attributes[:'ValueId']
43
+ self.value_id = attributes[:'ValueId']
44
+ end
45
+
46
+ if attributes[:'ValueGuid']
47
+ self.value_guid = attributes[:'ValueGuid']
48
+ end
49
+
50
+ end
51
+
52
+ end
53
+ end
@@ -0,0 +1,145 @@
1
+ module AsposeTasksCloud
2
+ #
3
+ class OutlineCodeDefinition < BaseObject
4
+ attr_accessor :guid, :field_id, :field_name, :_alias, :phonetic_alias, :values, :enterprise, :enterprise_outline_code_alias, :resource_substitution_enabled, :leaf_only, :all_levels_required, :only_table_values_allowed, :masks, :show_indent
5
+ # attribute mapping from ruby-style variable name to JSON key
6
+ def self.attribute_map
7
+ {
8
+
9
+ #
10
+ :'guid' => :'Guid',
11
+
12
+ #
13
+ :'field_id' => :'FieldId',
14
+
15
+ #
16
+ :'field_name' => :'FieldName',
17
+
18
+ #
19
+ :'_alias' => :'Alias',
20
+
21
+ #
22
+ :'phonetic_alias' => :'PhoneticAlias',
23
+
24
+ #
25
+ :'values' => :'Values',
26
+
27
+ #
28
+ :'enterprise' => :'Enterprise',
29
+
30
+ #
31
+ :'enterprise_outline_code_alias' => :'EnterpriseOutlineCodeAlias',
32
+
33
+ #
34
+ :'resource_substitution_enabled' => :'ResourceSubstitutionEnabled',
35
+
36
+ #
37
+ :'leaf_only' => :'LeafOnly',
38
+
39
+ #
40
+ :'all_levels_required' => :'AllLevelsRequired',
41
+
42
+ #
43
+ :'only_table_values_allowed' => :'OnlyTableValuesAllowed',
44
+
45
+ #
46
+ :'masks' => :'Masks',
47
+
48
+ #
49
+ :'show_indent' => :'ShowIndent'
50
+
51
+ }
52
+ end
53
+
54
+ # attribute type
55
+ def self.swagger_types
56
+ {
57
+ :'guid' => :'String',
58
+ :'field_id' => :'String',
59
+ :'field_name' => :'String',
60
+ :'_alias' => :'String',
61
+ :'phonetic_alias' => :'String',
62
+ :'values' => :'Array<OutlineValue>',
63
+ :'enterprise' => :'BOOLEAN',
64
+ :'enterprise_outline_code_alias' => :'Integer',
65
+ :'resource_substitution_enabled' => :'BOOLEAN',
66
+ :'leaf_only' => :'BOOLEAN',
67
+ :'all_levels_required' => :'BOOLEAN',
68
+ :'only_table_values_allowed' => :'BOOLEAN',
69
+ :'masks' => :'Array<OutlineMask>',
70
+ :'show_indent' => :'BOOLEAN'
71
+
72
+ }
73
+ end
74
+
75
+ def initialize(attributes = {})
76
+ return if !attributes.is_a?(Hash) || attributes.empty?
77
+
78
+ # convert string to symbol for hash key
79
+ attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}
80
+
81
+
82
+ if attributes[:'Guid']
83
+ self.guid = attributes[:'Guid']
84
+ end
85
+
86
+ if attributes[:'FieldId']
87
+ self.field_id = attributes[:'FieldId']
88
+ end
89
+
90
+ if attributes[:'FieldName']
91
+ self.field_name = attributes[:'FieldName']
92
+ end
93
+
94
+ if attributes[:'Alias']
95
+ self._alias = attributes[:'Alias']
96
+ end
97
+
98
+ if attributes[:'PhoneticAlias']
99
+ self.phonetic_alias = attributes[:'PhoneticAlias']
100
+ end
101
+
102
+ if attributes[:'Values']
103
+ if (value = attributes[:'Values']).is_a?(Array)
104
+ self.values = value
105
+ end
106
+ end
107
+
108
+ if attributes[:'Enterprise']
109
+ self.enterprise = attributes[:'Enterprise']
110
+ end
111
+
112
+ if attributes[:'EnterpriseOutlineCodeAlias']
113
+ self.enterprise_outline_code_alias = attributes[:'EnterpriseOutlineCodeAlias']
114
+ end
115
+
116
+ if attributes[:'ResourceSubstitutionEnabled']
117
+ self.resource_substitution_enabled = attributes[:'ResourceSubstitutionEnabled']
118
+ end
119
+
120
+ if attributes[:'LeafOnly']
121
+ self.leaf_only = attributes[:'LeafOnly']
122
+ end
123
+
124
+ if attributes[:'AllLevelsRequired']
125
+ self.all_levels_required = attributes[:'AllLevelsRequired']
126
+ end
127
+
128
+ if attributes[:'OnlyTableValuesAllowed']
129
+ self.only_table_values_allowed = attributes[:'OnlyTableValuesAllowed']
130
+ end
131
+
132
+ if attributes[:'Masks']
133
+ if (value = attributes[:'Masks']).is_a?(Array)
134
+ self.masks = value
135
+ end
136
+ end
137
+
138
+ if attributes[:'ShowIndent']
139
+ self.show_indent = attributes[:'ShowIndent']
140
+ end
141
+
142
+ end
143
+
144
+ end
145
+ end