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,89 @@
|
|
1
|
+
module AsposeTasksCloud
|
2
|
+
#
|
3
|
+
class Calendar < BaseObject
|
4
|
+
attr_accessor :name, :uid, :days, :exceptions, :is_base_calendar, :base_calendar, :is_baseline_calendar
|
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
|
+
:'uid' => :'Uid',
|
14
|
+
|
15
|
+
#
|
16
|
+
:'days' => :'Days',
|
17
|
+
|
18
|
+
#
|
19
|
+
:'exceptions' => :'Exceptions',
|
20
|
+
|
21
|
+
#
|
22
|
+
:'is_base_calendar' => :'IsBaseCalendar',
|
23
|
+
|
24
|
+
#
|
25
|
+
:'base_calendar' => :'BaseCalendar',
|
26
|
+
|
27
|
+
#
|
28
|
+
:'is_baseline_calendar' => :'IsBaselineCalendar'
|
29
|
+
|
30
|
+
}
|
31
|
+
end
|
32
|
+
|
33
|
+
# attribute type
|
34
|
+
def self.swagger_types
|
35
|
+
{
|
36
|
+
:'name' => :'String',
|
37
|
+
:'uid' => :'Integer',
|
38
|
+
:'days' => :'Array<WeekDay>',
|
39
|
+
:'exceptions' => :'Array<CalendarException>',
|
40
|
+
:'is_base_calendar' => :'BOOLEAN',
|
41
|
+
:'base_calendar' => :'Calendar',
|
42
|
+
:'is_baseline_calendar' => :'BOOLEAN'
|
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[:'Name']
|
55
|
+
self.name = attributes[:'Name']
|
56
|
+
end
|
57
|
+
|
58
|
+
if attributes[:'Uid']
|
59
|
+
self.uid = attributes[:'Uid']
|
60
|
+
end
|
61
|
+
|
62
|
+
if attributes[:'Days']
|
63
|
+
if (value = attributes[:'Days']).is_a?(Array)
|
64
|
+
self.days = value
|
65
|
+
end
|
66
|
+
end
|
67
|
+
|
68
|
+
if attributes[:'Exceptions']
|
69
|
+
if (value = attributes[:'Exceptions']).is_a?(Array)
|
70
|
+
self.exceptions = value
|
71
|
+
end
|
72
|
+
end
|
73
|
+
|
74
|
+
if attributes[:'IsBaseCalendar']
|
75
|
+
self.is_base_calendar = attributes[:'IsBaseCalendar']
|
76
|
+
end
|
77
|
+
|
78
|
+
if attributes[:'BaseCalendar']
|
79
|
+
self.base_calendar = attributes[:'BaseCalendar']
|
80
|
+
end
|
81
|
+
|
82
|
+
if attributes[:'IsBaselineCalendar']
|
83
|
+
self.is_baseline_calendar = attributes[:'IsBaselineCalendar']
|
84
|
+
end
|
85
|
+
|
86
|
+
end
|
87
|
+
|
88
|
+
end
|
89
|
+
end
|
@@ -0,0 +1,145 @@
|
|
1
|
+
module AsposeTasksCloud
|
2
|
+
#
|
3
|
+
class CalendarException < BaseObject
|
4
|
+
attr_accessor :entered_by_occurrences, :from_date, :to_date, :occurrences, :name, :type, :period, :month_item, :month_position, :month, :month_day, :day_working, :working_times, :days_of_week
|
5
|
+
# attribute mapping from ruby-style variable name to JSON key
|
6
|
+
def self.attribute_map
|
7
|
+
{
|
8
|
+
|
9
|
+
#
|
10
|
+
:'entered_by_occurrences' => :'EnteredByOccurrences',
|
11
|
+
|
12
|
+
#
|
13
|
+
:'from_date' => :'FromDate',
|
14
|
+
|
15
|
+
#
|
16
|
+
:'to_date' => :'ToDate',
|
17
|
+
|
18
|
+
#
|
19
|
+
:'occurrences' => :'Occurrences',
|
20
|
+
|
21
|
+
#
|
22
|
+
:'name' => :'Name',
|
23
|
+
|
24
|
+
#
|
25
|
+
:'type' => :'Type',
|
26
|
+
|
27
|
+
#
|
28
|
+
:'period' => :'Period',
|
29
|
+
|
30
|
+
#
|
31
|
+
:'month_item' => :'MonthItem',
|
32
|
+
|
33
|
+
#
|
34
|
+
:'month_position' => :'MonthPosition',
|
35
|
+
|
36
|
+
#
|
37
|
+
:'month' => :'Month',
|
38
|
+
|
39
|
+
#
|
40
|
+
:'month_day' => :'MonthDay',
|
41
|
+
|
42
|
+
#
|
43
|
+
:'day_working' => :'DayWorking',
|
44
|
+
|
45
|
+
#
|
46
|
+
:'working_times' => :'WorkingTimes',
|
47
|
+
|
48
|
+
#
|
49
|
+
:'days_of_week' => :'DaysOfWeek'
|
50
|
+
|
51
|
+
}
|
52
|
+
end
|
53
|
+
|
54
|
+
# attribute type
|
55
|
+
def self.swagger_types
|
56
|
+
{
|
57
|
+
:'entered_by_occurrences' => :'BOOLEAN',
|
58
|
+
:'from_date' => :'String',
|
59
|
+
:'to_date' => :'String',
|
60
|
+
:'occurrences' => :'Integer',
|
61
|
+
:'name' => :'String',
|
62
|
+
:'type' => :'String',
|
63
|
+
:'period' => :'Integer',
|
64
|
+
:'month_item' => :'String',
|
65
|
+
:'month_position' => :'String',
|
66
|
+
:'month' => :'String',
|
67
|
+
:'month_day' => :'Integer',
|
68
|
+
:'day_working' => :'BOOLEAN',
|
69
|
+
:'working_times' => :'Array<WorkingTime>',
|
70
|
+
:'days_of_week' => :'Array<String>'
|
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[:'EnteredByOccurrences']
|
83
|
+
self.entered_by_occurrences = attributes[:'EnteredByOccurrences']
|
84
|
+
end
|
85
|
+
|
86
|
+
if attributes[:'FromDate']
|
87
|
+
self.from_date = attributes[:'FromDate']
|
88
|
+
end
|
89
|
+
|
90
|
+
if attributes[:'ToDate']
|
91
|
+
self.to_date = attributes[:'ToDate']
|
92
|
+
end
|
93
|
+
|
94
|
+
if attributes[:'Occurrences']
|
95
|
+
self.occurrences = attributes[:'Occurrences']
|
96
|
+
end
|
97
|
+
|
98
|
+
if attributes[:'Name']
|
99
|
+
self.name = attributes[:'Name']
|
100
|
+
end
|
101
|
+
|
102
|
+
if attributes[:'Type']
|
103
|
+
self.type = attributes[:'Type']
|
104
|
+
end
|
105
|
+
|
106
|
+
if attributes[:'Period']
|
107
|
+
self.period = attributes[:'Period']
|
108
|
+
end
|
109
|
+
|
110
|
+
if attributes[:'MonthItem']
|
111
|
+
self.month_item = attributes[:'MonthItem']
|
112
|
+
end
|
113
|
+
|
114
|
+
if attributes[:'MonthPosition']
|
115
|
+
self.month_position = attributes[:'MonthPosition']
|
116
|
+
end
|
117
|
+
|
118
|
+
if attributes[:'Month']
|
119
|
+
self.month = attributes[:'Month']
|
120
|
+
end
|
121
|
+
|
122
|
+
if attributes[:'MonthDay']
|
123
|
+
self.month_day = attributes[:'MonthDay']
|
124
|
+
end
|
125
|
+
|
126
|
+
if attributes[:'DayWorking']
|
127
|
+
self.day_working = attributes[:'DayWorking']
|
128
|
+
end
|
129
|
+
|
130
|
+
if attributes[:'WorkingTimes']
|
131
|
+
if (value = attributes[:'WorkingTimes']).is_a?(Array)
|
132
|
+
self.working_times = value
|
133
|
+
end
|
134
|
+
end
|
135
|
+
|
136
|
+
if attributes[:'DaysOfWeek']
|
137
|
+
if (value = attributes[:'DaysOfWeek']).is_a?(Array)
|
138
|
+
self.days_of_week = value
|
139
|
+
end
|
140
|
+
end
|
141
|
+
|
142
|
+
end
|
143
|
+
|
144
|
+
end
|
145
|
+
end
|
@@ -0,0 +1,63 @@
|
|
1
|
+
module AsposeTasksCloud
|
2
|
+
#
|
3
|
+
class CalendarExceptionsResponse < BaseObject
|
4
|
+
attr_accessor :calendar_exceptions, :status, :code
|
5
|
+
# attribute mapping from ruby-style variable name to JSON key
|
6
|
+
def self.attribute_map
|
7
|
+
{
|
8
|
+
|
9
|
+
#
|
10
|
+
:'calendar_exceptions' => :'CalendarExceptions',
|
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_exceptions' => :'Array<CalendarException>',
|
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[:'CalendarExceptions']
|
39
|
+
if (value = attributes[:'CalendarExceptions']).is_a?(Array)
|
40
|
+
self.calendar_exceptions = value
|
41
|
+
end
|
42
|
+
end
|
43
|
+
|
44
|
+
if attributes[:'Status']
|
45
|
+
self.status = attributes[:'Status']
|
46
|
+
end
|
47
|
+
|
48
|
+
if attributes[:'Code']
|
49
|
+
self.code = attributes[:'Code']
|
50
|
+
end
|
51
|
+
|
52
|
+
end
|
53
|
+
|
54
|
+
def status=(status)
|
55
|
+
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"]
|
56
|
+
if status && !allowed_values.include?(status)
|
57
|
+
fail "invalid value for 'status', must be one of #{allowed_values}"
|
58
|
+
end
|
59
|
+
@status = status
|
60
|
+
end
|
61
|
+
|
62
|
+
end
|
63
|
+
end
|
@@ -0,0 +1,53 @@
|
|
1
|
+
module AsposeTasksCloud
|
2
|
+
#
|
3
|
+
class CalendarItem < BaseObject
|
4
|
+
attr_accessor :link, :uid, :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
|
+
:'uid' => :'Uid',
|
14
|
+
|
15
|
+
#
|
16
|
+
:'name' => :'Name'
|
17
|
+
|
18
|
+
}
|
19
|
+
end
|
20
|
+
|
21
|
+
# attribute type
|
22
|
+
def self.swagger_types
|
23
|
+
{
|
24
|
+
:'link' => :'Link',
|
25
|
+
:'uid' => :'Integer',
|
26
|
+
:'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[:'Uid']
|
43
|
+
self.uid = attributes[:'Uid']
|
44
|
+
end
|
45
|
+
|
46
|
+
if attributes[:'Name']
|
47
|
+
self.name = attributes[:'Name']
|
48
|
+
end
|
49
|
+
|
50
|
+
end
|
51
|
+
|
52
|
+
end
|
53
|
+
end
|
@@ -0,0 +1,61 @@
|
|
1
|
+
module AsposeTasksCloud
|
2
|
+
#
|
3
|
+
class CalendarItemResponse < BaseObject
|
4
|
+
attr_accessor :calendar_item, :status, :code
|
5
|
+
# attribute mapping from ruby-style variable name to JSON key
|
6
|
+
def self.attribute_map
|
7
|
+
{
|
8
|
+
|
9
|
+
#
|
10
|
+
:'calendar_item' => :'CalendarItem',
|
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_item' => :'CalendarItem',
|
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[:'CalendarItem']
|
39
|
+
self.calendar_item = attributes[:'CalendarItem']
|
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 CalendarItems < 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<CalendarItem>',
|
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
|