aspose_tasks_cloud 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE +22 -0
- data/README.md +49 -0
- data/aspose_tasks_cloud.gemspec +26 -0
- data/lib/aspose_tasks_cloud.rb +92 -0
- data/lib/aspose_tasks_cloud/api/tasks_api.rb +2585 -0
- data/lib/aspose_tasks_cloud/api_client.rb +335 -0
- data/lib/aspose_tasks_cloud/api_error.rb +24 -0
- data/lib/aspose_tasks_cloud/configuration.rb +166 -0
- data/lib/aspose_tasks_cloud/models/assignment_item.rb +61 -0
- data/lib/aspose_tasks_cloud/models/assignment_item_response.rb +61 -0
- data/lib/aspose_tasks_cloud/models/assignment_items.rb +47 -0
- data/lib/aspose_tasks_cloud/models/assignment_items_response.rb +61 -0
- data/lib/aspose_tasks_cloud/models/assignment_response.rb +61 -0
- data/lib/aspose_tasks_cloud/models/assignments_response.rb +61 -0
- data/lib/aspose_tasks_cloud/models/base_object.rb +86 -0
- data/lib/aspose_tasks_cloud/models/base_response.rb +53 -0
- data/lib/aspose_tasks_cloud/models/calendar.rb +89 -0
- data/lib/aspose_tasks_cloud/models/calendar_exception.rb +145 -0
- data/lib/aspose_tasks_cloud/models/calendar_exceptions_response.rb +63 -0
- data/lib/aspose_tasks_cloud/models/calendar_item.rb +53 -0
- data/lib/aspose_tasks_cloud/models/calendar_item_response.rb +61 -0
- data/lib/aspose_tasks_cloud/models/calendar_items.rb +47 -0
- data/lib/aspose_tasks_cloud/models/calendar_items_response.rb +61 -0
- data/lib/aspose_tasks_cloud/models/calendar_response.rb +61 -0
- data/lib/aspose_tasks_cloud/models/document_properties.rb +47 -0
- data/lib/aspose_tasks_cloud/models/document_properties_response.rb +61 -0
- data/lib/aspose_tasks_cloud/models/document_property.rb +53 -0
- data/lib/aspose_tasks_cloud/models/document_property_response.rb +61 -0
- data/lib/aspose_tasks_cloud/models/extended_attribute.rb +61 -0
- data/lib/aspose_tasks_cloud/models/extended_attribute_definition.rb +207 -0
- data/lib/aspose_tasks_cloud/models/extended_attribute_item.rb +53 -0
- data/lib/aspose_tasks_cloud/models/extended_attribute_items.rb +47 -0
- data/lib/aspose_tasks_cloud/models/extended_attribute_items_response.rb +61 -0
- data/lib/aspose_tasks_cloud/models/extended_attribute_response.rb +61 -0
- data/lib/aspose_tasks_cloud/models/link.rb +61 -0
- data/lib/aspose_tasks_cloud/models/outline_code.rb +53 -0
- data/lib/aspose_tasks_cloud/models/outline_code_definition.rb +145 -0
- data/lib/aspose_tasks_cloud/models/outline_code_item.rb +45 -0
- data/lib/aspose_tasks_cloud/models/outline_code_items.rb +47 -0
- data/lib/aspose_tasks_cloud/models/outline_code_items_response.rb +61 -0
- data/lib/aspose_tasks_cloud/models/outline_code_response.rb +61 -0
- data/lib/aspose_tasks_cloud/models/outline_mask.rb +61 -0
- data/lib/aspose_tasks_cloud/models/outline_value.rb +85 -0
- data/lib/aspose_tasks_cloud/models/recurring_info.rb +197 -0
- data/lib/aspose_tasks_cloud/models/recurring_info_response.rb +61 -0
- data/lib/aspose_tasks_cloud/models/resource.rb +945 -0
- data/lib/aspose_tasks_cloud/models/resource_assignment.rb +1063 -0
- data/lib/aspose_tasks_cloud/models/resource_assignments.rb +47 -0
- data/lib/aspose_tasks_cloud/models/resource_item.rb +61 -0
- data/lib/aspose_tasks_cloud/models/resource_item_response.rb +61 -0
- data/lib/aspose_tasks_cloud/models/resource_items.rb +47 -0
- data/lib/aspose_tasks_cloud/models/resource_items_response.rb +61 -0
- data/lib/aspose_tasks_cloud/models/resource_response.rb +61 -0
- data/lib/aspose_tasks_cloud/models/task.rb +1595 -0
- data/lib/aspose_tasks_cloud/models/task_document.rb +63 -0
- data/lib/aspose_tasks_cloud/models/task_document_response.rb +61 -0
- data/lib/aspose_tasks_cloud/models/task_item.rb +85 -0
- data/lib/aspose_tasks_cloud/models/task_item_response.rb +61 -0
- data/lib/aspose_tasks_cloud/models/task_items.rb +47 -0
- data/lib/aspose_tasks_cloud/models/task_items_response.rb +61 -0
- data/lib/aspose_tasks_cloud/models/task_link.rb +85 -0
- data/lib/aspose_tasks_cloud/models/task_link_response.rb +61 -0
- data/lib/aspose_tasks_cloud/models/task_links_response.rb +63 -0
- data/lib/aspose_tasks_cloud/models/task_response.rb +61 -0
- data/lib/aspose_tasks_cloud/models/value.rb +61 -0
- data/lib/aspose_tasks_cloud/models/wbs_code_mask.rb +61 -0
- data/lib/aspose_tasks_cloud/models/wbs_definition.rb +63 -0
- data/lib/aspose_tasks_cloud/models/wbs_definition_response.rb +61 -0
- data/lib/aspose_tasks_cloud/models/week_day.rb +71 -0
- data/lib/aspose_tasks_cloud/models/working_time.rb +45 -0
- data/lib/aspose_tasks_cloud/version.rb +3 -0
- data/test/data/ExtendedAttribute.mpp +0 -0
- data/test/data/Outlinecode.mpp +0 -0
- data/test/data/ResourceWithExtAttribs.xml +345 -0
- data/test/data/sample-project-2.mpp +0 -0
- data/test/data/sample-project.mpp +0 -0
- data/test/tasks_tests.rb +430 -0
- metadata +207 -0
@@ -0,0 +1,63 @@
|
|
1
|
+
module AsposeTasksCloud
|
2
|
+
#
|
3
|
+
class TaskDocument < BaseObject
|
4
|
+
attr_accessor :links, :file_name, :file_format, :document_properties
|
5
|
+
# attribute mapping from ruby-style variable name to JSON key
|
6
|
+
def self.attribute_map
|
7
|
+
{
|
8
|
+
|
9
|
+
#
|
10
|
+
:'links' => :'Links',
|
11
|
+
|
12
|
+
#
|
13
|
+
:'file_name' => :'FileName',
|
14
|
+
|
15
|
+
#
|
16
|
+
:'file_format' => :'FileFormat',
|
17
|
+
|
18
|
+
#
|
19
|
+
:'document_properties' => :'DocumentProperties'
|
20
|
+
|
21
|
+
}
|
22
|
+
end
|
23
|
+
|
24
|
+
# attribute type
|
25
|
+
def self.swagger_types
|
26
|
+
{
|
27
|
+
:'links' => :'Array<Link>',
|
28
|
+
:'file_name' => :'String',
|
29
|
+
:'file_format' => :'Integer',
|
30
|
+
:'document_properties' => :'DocumentProperties'
|
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[:'Links']
|
43
|
+
if (value = attributes[:'Links']).is_a?(Array)
|
44
|
+
self.links = value
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
if attributes[:'FileName']
|
49
|
+
self.file_name = attributes[:'FileName']
|
50
|
+
end
|
51
|
+
|
52
|
+
if attributes[:'FileFormat']
|
53
|
+
self.file_format = attributes[:'FileFormat']
|
54
|
+
end
|
55
|
+
|
56
|
+
if attributes[:'DocumentProperties']
|
57
|
+
self.document_properties = attributes[:'DocumentProperties']
|
58
|
+
end
|
59
|
+
|
60
|
+
end
|
61
|
+
|
62
|
+
end
|
63
|
+
end
|
@@ -0,0 +1,61 @@
|
|
1
|
+
module AsposeTasksCloud
|
2
|
+
#
|
3
|
+
class TaskDocumentResponse < BaseObject
|
4
|
+
attr_accessor :document, :status, :code
|
5
|
+
# attribute mapping from ruby-style variable name to JSON key
|
6
|
+
def self.attribute_map
|
7
|
+
{
|
8
|
+
|
9
|
+
#
|
10
|
+
:'document' => :'Document',
|
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
|
+
:'document' => :'TaskDocument',
|
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[:'Document']
|
39
|
+
self.document = attributes[:'Document']
|
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,85 @@
|
|
1
|
+
module AsposeTasksCloud
|
2
|
+
#
|
3
|
+
class TaskItem < BaseObject
|
4
|
+
attr_accessor :link, :uid, :id, :name, :start, :finish, :duration
|
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
|
+
:'uid' => :'Uid',
|
14
|
+
|
15
|
+
#
|
16
|
+
:'id' => :'Id',
|
17
|
+
|
18
|
+
#
|
19
|
+
:'name' => :'Name',
|
20
|
+
|
21
|
+
#
|
22
|
+
:'start' => :'Start',
|
23
|
+
|
24
|
+
#
|
25
|
+
:'finish' => :'Finish',
|
26
|
+
|
27
|
+
#
|
28
|
+
:'duration' => :'Duration'
|
29
|
+
|
30
|
+
}
|
31
|
+
end
|
32
|
+
|
33
|
+
# attribute type
|
34
|
+
def self.swagger_types
|
35
|
+
{
|
36
|
+
:'link' => :'Link',
|
37
|
+
:'uid' => :'Integer',
|
38
|
+
:'id' => :'Integer',
|
39
|
+
:'name' => :'String',
|
40
|
+
:'start' => :'String',
|
41
|
+
:'finish' => :'String',
|
42
|
+
:'duration' => :'String'
|
43
|
+
|
44
|
+
}
|
45
|
+
end
|
46
|
+
|
47
|
+
def initialize(attributes = {})
|
48
|
+
return if !attributes.is_a?(Hash) || attributes.empty?
|
49
|
+
|
50
|
+
# convert string to symbol for hash key
|
51
|
+
attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}
|
52
|
+
|
53
|
+
|
54
|
+
if attributes[:'Link']
|
55
|
+
self.link = attributes[:'Link']
|
56
|
+
end
|
57
|
+
|
58
|
+
if attributes[:'Uid']
|
59
|
+
self.uid = attributes[:'Uid']
|
60
|
+
end
|
61
|
+
|
62
|
+
if attributes[:'Id']
|
63
|
+
self.id = attributes[:'Id']
|
64
|
+
end
|
65
|
+
|
66
|
+
if attributes[:'Name']
|
67
|
+
self.name = attributes[:'Name']
|
68
|
+
end
|
69
|
+
|
70
|
+
if attributes[:'Start']
|
71
|
+
self.start = attributes[:'Start']
|
72
|
+
end
|
73
|
+
|
74
|
+
if attributes[:'Finish']
|
75
|
+
self.finish = attributes[:'Finish']
|
76
|
+
end
|
77
|
+
|
78
|
+
if attributes[:'Duration']
|
79
|
+
self.duration = attributes[:'Duration']
|
80
|
+
end
|
81
|
+
|
82
|
+
end
|
83
|
+
|
84
|
+
end
|
85
|
+
end
|
@@ -0,0 +1,61 @@
|
|
1
|
+
module AsposeTasksCloud
|
2
|
+
#
|
3
|
+
class TaskItemResponse < BaseObject
|
4
|
+
attr_accessor :task_item, :status, :code
|
5
|
+
# attribute mapping from ruby-style variable name to JSON key
|
6
|
+
def self.attribute_map
|
7
|
+
{
|
8
|
+
|
9
|
+
#
|
10
|
+
:'task_item' => :'TaskItem',
|
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
|
+
:'task_item' => :'TaskItem',
|
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[:'TaskItem']
|
39
|
+
self.task_item = attributes[:'TaskItem']
|
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 TaskItems < BaseObject
|
4
|
+
attr_accessor :task_item, :link
|
5
|
+
# attribute mapping from ruby-style variable name to JSON key
|
6
|
+
def self.attribute_map
|
7
|
+
{
|
8
|
+
|
9
|
+
#
|
10
|
+
:'task_item' => :'TaskItem',
|
11
|
+
|
12
|
+
#
|
13
|
+
:'link' => :'link'
|
14
|
+
|
15
|
+
}
|
16
|
+
end
|
17
|
+
|
18
|
+
# attribute type
|
19
|
+
def self.swagger_types
|
20
|
+
{
|
21
|
+
:'task_item' => :'Array<TaskItem>',
|
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[:'TaskItem']
|
35
|
+
if (value = attributes[:'TaskItem']).is_a?(Array)
|
36
|
+
self.task_item = 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 TaskItemsResponse < BaseObject
|
4
|
+
attr_accessor :tasks, :status, :code
|
5
|
+
# attribute mapping from ruby-style variable name to JSON key
|
6
|
+
def self.attribute_map
|
7
|
+
{
|
8
|
+
|
9
|
+
#
|
10
|
+
:'tasks' => :'Tasks',
|
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
|
+
:'tasks' => :'TaskItems',
|
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[:'Tasks']
|
39
|
+
self.tasks = attributes[:'Tasks']
|
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,85 @@
|
|
1
|
+
module AsposeTasksCloud
|
2
|
+
#
|
3
|
+
class TaskLink < BaseObject
|
4
|
+
attr_accessor :link, :index, :predecessor_uid, :successor_uid, :link_type, :lag, :lag_format
|
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
|
+
:'predecessor_uid' => :'PredecessorUid',
|
17
|
+
|
18
|
+
#
|
19
|
+
:'successor_uid' => :'SuccessorUid',
|
20
|
+
|
21
|
+
#
|
22
|
+
:'link_type' => :'LinkType',
|
23
|
+
|
24
|
+
#
|
25
|
+
:'lag' => :'Lag',
|
26
|
+
|
27
|
+
#
|
28
|
+
:'lag_format' => :'LagFormat'
|
29
|
+
|
30
|
+
}
|
31
|
+
end
|
32
|
+
|
33
|
+
# attribute type
|
34
|
+
def self.swagger_types
|
35
|
+
{
|
36
|
+
:'link' => :'Link',
|
37
|
+
:'index' => :'Integer',
|
38
|
+
:'predecessor_uid' => :'Integer',
|
39
|
+
:'successor_uid' => :'Integer',
|
40
|
+
:'link_type' => :'String',
|
41
|
+
:'lag' => :'Integer',
|
42
|
+
:'lag_format' => :'String'
|
43
|
+
|
44
|
+
}
|
45
|
+
end
|
46
|
+
|
47
|
+
def initialize(attributes = {})
|
48
|
+
return if !attributes.is_a?(Hash) || attributes.empty?
|
49
|
+
|
50
|
+
# convert string to symbol for hash key
|
51
|
+
attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}
|
52
|
+
|
53
|
+
|
54
|
+
if attributes[:'Link']
|
55
|
+
self.link = attributes[:'Link']
|
56
|
+
end
|
57
|
+
|
58
|
+
if attributes[:'Index']
|
59
|
+
self.index = attributes[:'Index']
|
60
|
+
end
|
61
|
+
|
62
|
+
if attributes[:'PredecessorUid']
|
63
|
+
self.predecessor_uid = attributes[:'PredecessorUid']
|
64
|
+
end
|
65
|
+
|
66
|
+
if attributes[:'SuccessorUid']
|
67
|
+
self.successor_uid = attributes[:'SuccessorUid']
|
68
|
+
end
|
69
|
+
|
70
|
+
if attributes[:'LinkType']
|
71
|
+
self.link_type = attributes[:'LinkType']
|
72
|
+
end
|
73
|
+
|
74
|
+
if attributes[:'Lag']
|
75
|
+
self.lag = attributes[:'Lag']
|
76
|
+
end
|
77
|
+
|
78
|
+
if attributes[:'LagFormat']
|
79
|
+
self.lag_format = attributes[:'LagFormat']
|
80
|
+
end
|
81
|
+
|
82
|
+
end
|
83
|
+
|
84
|
+
end
|
85
|
+
end
|