aspose_slides_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 +42 -0
- data/aspose_slides_cloud.gemspec +26 -0
- data/lib/aspose_slides_cloud.rb +94 -0
- data/lib/aspose_slides_cloud/api/slides_api.rb +3420 -0
- data/lib/aspose_slides_cloud/api_client.rb +335 -0
- data/lib/aspose_slides_cloud/api_error.rb +24 -0
- data/lib/aspose_slides_cloud/configuration.rb +166 -0
- data/lib/aspose_slides_cloud/models/arrow_head_properties.rb +53 -0
- data/lib/aspose_slides_cloud/models/base_object.rb +86 -0
- data/lib/aspose_slides_cloud/models/base_response.rb +53 -0
- data/lib/aspose_slides_cloud/models/color.rb +29 -0
- data/lib/aspose_slides_cloud/models/color_scheme.rb +153 -0
- data/lib/aspose_slides_cloud/models/color_scheme_response.rb +61 -0
- data/lib/aspose_slides_cloud/models/common_response.rb +53 -0
- data/lib/aspose_slides_cloud/models/custom_dash_pattern.rb +39 -0
- data/lib/aspose_slides_cloud/models/document.rb +81 -0
- data/lib/aspose_slides_cloud/models/document_properties.rb +67 -0
- data/lib/aspose_slides_cloud/models/document_properties_response.rb +61 -0
- data/lib/aspose_slides_cloud/models/document_property.rb +81 -0
- data/lib/aspose_slides_cloud/models/document_property_response.rb +61 -0
- data/lib/aspose_slides_cloud/models/document_response.rb +61 -0
- data/lib/aspose_slides_cloud/models/fill_format.rb +37 -0
- data/lib/aspose_slides_cloud/models/font_scheme.rb +81 -0
- data/lib/aspose_slides_cloud/models/font_scheme_response.rb +61 -0
- data/lib/aspose_slides_cloud/models/font_set.rb +53 -0
- data/lib/aspose_slides_cloud/models/format_scheme.rb +97 -0
- data/lib/aspose_slides_cloud/models/format_scheme_response.rb +61 -0
- data/lib/aspose_slides_cloud/models/html_export_options.rb +53 -0
- data/lib/aspose_slides_cloud/models/image.rb +73 -0
- data/lib/aspose_slides_cloud/models/images.rb +67 -0
- data/lib/aspose_slides_cloud/models/images_response.rb +61 -0
- data/lib/aspose_slides_cloud/models/line_format.rb +117 -0
- data/lib/aspose_slides_cloud/models/new_shape_response.rb +61 -0
- data/lib/aspose_slides_cloud/models/ordered_merge_request.rb +39 -0
- data/lib/aspose_slides_cloud/models/paragraph.rb +67 -0
- data/lib/aspose_slides_cloud/models/paragraph_portion_response.rb +61 -0
- data/lib/aspose_slides_cloud/models/paragraphs.rb +67 -0
- data/lib/aspose_slides_cloud/models/pdf_export_options.rb +101 -0
- data/lib/aspose_slides_cloud/models/placeholder.rb +97 -0
- data/lib/aspose_slides_cloud/models/placeholder_response.rb +61 -0
- data/lib/aspose_slides_cloud/models/placeholders.rb +67 -0
- data/lib/aspose_slides_cloud/models/placeholders_response.rb +61 -0
- data/lib/aspose_slides_cloud/models/portion.rb +81 -0
- data/lib/aspose_slides_cloud/models/presentation_string_replace_response.rb +69 -0
- data/lib/aspose_slides_cloud/models/presentation_to_merge.rb +47 -0
- data/lib/aspose_slides_cloud/models/presentations_merge_request.rb +39 -0
- data/lib/aspose_slides_cloud/models/resource_uri.rb +61 -0
- data/lib/aspose_slides_cloud/models/resource_uri_element.rb +37 -0
- data/lib/aspose_slides_cloud/models/shape.rb +169 -0
- data/lib/aspose_slides_cloud/models/shape_list.rb +67 -0
- data/lib/aspose_slides_cloud/models/shape_paragraph_response.rb +61 -0
- data/lib/aspose_slides_cloud/models/shape_paragraphs_response.rb +61 -0
- data/lib/aspose_slides_cloud/models/shape_response.rb +61 -0
- data/lib/aspose_slides_cloud/models/slide.rb +121 -0
- data/lib/aspose_slides_cloud/models/slide_background.rb +73 -0
- data/lib/aspose_slides_cloud/models/slide_background_response.rb +61 -0
- data/lib/aspose_slides_cloud/models/slide_comment.rb +53 -0
- data/lib/aspose_slides_cloud/models/slide_comments.rb +67 -0
- data/lib/aspose_slides_cloud/models/slide_comments_response.rb +61 -0
- data/lib/aspose_slides_cloud/models/slide_list_response.rb +61 -0
- data/lib/aspose_slides_cloud/models/slide_response.rb +61 -0
- data/lib/aspose_slides_cloud/models/slide_string_replace_response.rb +69 -0
- data/lib/aspose_slides_cloud/models/slides.rb +67 -0
- data/lib/aspose_slides_cloud/models/split_document_response.rb +61 -0
- data/lib/aspose_slides_cloud/models/split_document_result.rb +67 -0
- data/lib/aspose_slides_cloud/models/text_item.rb +45 -0
- data/lib/aspose_slides_cloud/models/text_items.rb +67 -0
- data/lib/aspose_slides_cloud/models/text_items_response.rb +61 -0
- data/lib/aspose_slides_cloud/models/theme.rb +89 -0
- data/lib/aspose_slides_cloud/models/theme_response.rb +61 -0
- data/lib/aspose_slides_cloud/models/tiff_export_options.rb +77 -0
- data/lib/aspose_slides_cloud/version.rb +3 -0
- data/test/data/ReadMe.html +48 -0
- data/test/data/Test.html +6 -0
- data/test/data/demo.pptx +0 -0
- data/test/data/sample-input.pptx +0 -0
- data/test/data/sample.pptx +0 -0
- data/test/data/welcome.pptx +0 -0
- data/test/slides_tests.rb +570 -0
- metadata +200 -0
@@ -0,0 +1,67 @@
|
|
1
|
+
module AsposeSlidesCloud
|
2
|
+
#
|
3
|
+
class ShapeList < BaseObject
|
4
|
+
attr_accessor :alternate_links, :links, :self_uri, :shapes_links
|
5
|
+
# attribute mapping from ruby-style variable name to JSON key
|
6
|
+
def self.attribute_map
|
7
|
+
{
|
8
|
+
|
9
|
+
#
|
10
|
+
:'alternate_links' => :'AlternateLinks',
|
11
|
+
|
12
|
+
#
|
13
|
+
:'links' => :'Links',
|
14
|
+
|
15
|
+
#
|
16
|
+
:'self_uri' => :'SelfUri',
|
17
|
+
|
18
|
+
#
|
19
|
+
:'shapes_links' => :'ShapesLinks'
|
20
|
+
|
21
|
+
}
|
22
|
+
end
|
23
|
+
|
24
|
+
# attribute type
|
25
|
+
def self.swagger_types
|
26
|
+
{
|
27
|
+
:'alternate_links' => :'Array<ResourceUri>',
|
28
|
+
:'links' => :'Array<ResourceUri>',
|
29
|
+
:'self_uri' => :'ResourceUri',
|
30
|
+
:'shapes_links' => :'Array<ResourceUriElement>'
|
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[:'AlternateLinks']
|
43
|
+
if (value = attributes[:'AlternateLinks']).is_a?(Array)
|
44
|
+
self.alternate_links = value
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
if attributes[:'Links']
|
49
|
+
if (value = attributes[:'Links']).is_a?(Array)
|
50
|
+
self.links = value
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
54
|
+
if attributes[:'SelfUri']
|
55
|
+
self.self_uri = attributes[:'SelfUri']
|
56
|
+
end
|
57
|
+
|
58
|
+
if attributes[:'ShapesLinks']
|
59
|
+
if (value = attributes[:'ShapesLinks']).is_a?(Array)
|
60
|
+
self.shapes_links = value
|
61
|
+
end
|
62
|
+
end
|
63
|
+
|
64
|
+
end
|
65
|
+
|
66
|
+
end
|
67
|
+
end
|
@@ -0,0 +1,61 @@
|
|
1
|
+
module AsposeSlidesCloud
|
2
|
+
#
|
3
|
+
class ShapeParagraphResponse < BaseObject
|
4
|
+
attr_accessor :paragraph, :status, :code
|
5
|
+
# attribute mapping from ruby-style variable name to JSON key
|
6
|
+
def self.attribute_map
|
7
|
+
{
|
8
|
+
|
9
|
+
#
|
10
|
+
:'paragraph' => :'Paragraph',
|
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
|
+
:'paragraph' => :'Paragraph',
|
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[:'Paragraph']
|
39
|
+
self.paragraph = attributes[:'Paragraph']
|
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 AsposeSlidesCloud
|
2
|
+
#
|
3
|
+
class ShapeParagraphsResponse < BaseObject
|
4
|
+
attr_accessor :paragraphs, :status, :code
|
5
|
+
# attribute mapping from ruby-style variable name to JSON key
|
6
|
+
def self.attribute_map
|
7
|
+
{
|
8
|
+
|
9
|
+
#
|
10
|
+
:'paragraphs' => :'Paragraphs',
|
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
|
+
:'paragraphs' => :'Paragraphs',
|
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[:'Paragraphs']
|
39
|
+
self.paragraphs = attributes[:'Paragraphs']
|
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 AsposeSlidesCloud
|
2
|
+
#
|
3
|
+
class ShapeResponse < BaseObject
|
4
|
+
attr_accessor :shape_list, :status, :code
|
5
|
+
# attribute mapping from ruby-style variable name to JSON key
|
6
|
+
def self.attribute_map
|
7
|
+
{
|
8
|
+
|
9
|
+
#
|
10
|
+
:'shape_list' => :'ShapeList',
|
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
|
+
:'shape_list' => :'ShapeList',
|
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[:'ShapeList']
|
39
|
+
self.shape_list = attributes[:'ShapeList']
|
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,121 @@
|
|
1
|
+
module AsposeSlidesCloud
|
2
|
+
#
|
3
|
+
class Slide < BaseObject
|
4
|
+
attr_accessor :width, :height, :shapes, :theme, :placeholders, :images, :comments, :background, :self_uri, :alternate_links, :links
|
5
|
+
# attribute mapping from ruby-style variable name to JSON key
|
6
|
+
def self.attribute_map
|
7
|
+
{
|
8
|
+
|
9
|
+
#
|
10
|
+
:'width' => :'Width',
|
11
|
+
|
12
|
+
#
|
13
|
+
:'height' => :'Height',
|
14
|
+
|
15
|
+
#
|
16
|
+
:'shapes' => :'Shapes',
|
17
|
+
|
18
|
+
#
|
19
|
+
:'theme' => :'Theme',
|
20
|
+
|
21
|
+
#
|
22
|
+
:'placeholders' => :'Placeholders',
|
23
|
+
|
24
|
+
#
|
25
|
+
:'images' => :'Images',
|
26
|
+
|
27
|
+
#
|
28
|
+
:'comments' => :'Comments',
|
29
|
+
|
30
|
+
#
|
31
|
+
:'background' => :'Background',
|
32
|
+
|
33
|
+
#
|
34
|
+
:'self_uri' => :'SelfUri',
|
35
|
+
|
36
|
+
#
|
37
|
+
:'alternate_links' => :'AlternateLinks',
|
38
|
+
|
39
|
+
#
|
40
|
+
:'links' => :'Links'
|
41
|
+
|
42
|
+
}
|
43
|
+
end
|
44
|
+
|
45
|
+
# attribute type
|
46
|
+
def self.swagger_types
|
47
|
+
{
|
48
|
+
:'width' => :'Float',
|
49
|
+
:'height' => :'Float',
|
50
|
+
:'shapes' => :'ResourceUriElement',
|
51
|
+
:'theme' => :'ResourceUriElement',
|
52
|
+
:'placeholders' => :'ResourceUriElement',
|
53
|
+
:'images' => :'ResourceUriElement',
|
54
|
+
:'comments' => :'ResourceUriElement',
|
55
|
+
:'background' => :'ResourceUriElement',
|
56
|
+
:'self_uri' => :'ResourceUri',
|
57
|
+
:'alternate_links' => :'Array<ResourceUri>',
|
58
|
+
:'links' => :'Array<ResourceUri>'
|
59
|
+
|
60
|
+
}
|
61
|
+
end
|
62
|
+
|
63
|
+
def initialize(attributes = {})
|
64
|
+
return if !attributes.is_a?(Hash) || attributes.empty?
|
65
|
+
|
66
|
+
# convert string to symbol for hash key
|
67
|
+
attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}
|
68
|
+
|
69
|
+
|
70
|
+
if attributes[:'Width']
|
71
|
+
self.width = attributes[:'Width']
|
72
|
+
end
|
73
|
+
|
74
|
+
if attributes[:'Height']
|
75
|
+
self.height = attributes[:'Height']
|
76
|
+
end
|
77
|
+
|
78
|
+
if attributes[:'Shapes']
|
79
|
+
self.shapes = attributes[:'Shapes']
|
80
|
+
end
|
81
|
+
|
82
|
+
if attributes[:'Theme']
|
83
|
+
self.theme = attributes[:'Theme']
|
84
|
+
end
|
85
|
+
|
86
|
+
if attributes[:'Placeholders']
|
87
|
+
self.placeholders = attributes[:'Placeholders']
|
88
|
+
end
|
89
|
+
|
90
|
+
if attributes[:'Images']
|
91
|
+
self.images = attributes[:'Images']
|
92
|
+
end
|
93
|
+
|
94
|
+
if attributes[:'Comments']
|
95
|
+
self.comments = attributes[:'Comments']
|
96
|
+
end
|
97
|
+
|
98
|
+
if attributes[:'Background']
|
99
|
+
self.background = attributes[:'Background']
|
100
|
+
end
|
101
|
+
|
102
|
+
if attributes[:'SelfUri']
|
103
|
+
self.self_uri = attributes[:'SelfUri']
|
104
|
+
end
|
105
|
+
|
106
|
+
if attributes[:'AlternateLinks']
|
107
|
+
if (value = attributes[:'AlternateLinks']).is_a?(Array)
|
108
|
+
self.alternate_links = value
|
109
|
+
end
|
110
|
+
end
|
111
|
+
|
112
|
+
if attributes[:'Links']
|
113
|
+
if (value = attributes[:'Links']).is_a?(Array)
|
114
|
+
self.links = value
|
115
|
+
end
|
116
|
+
end
|
117
|
+
|
118
|
+
end
|
119
|
+
|
120
|
+
end
|
121
|
+
end
|
@@ -0,0 +1,73 @@
|
|
1
|
+
module AsposeSlidesCloud
|
2
|
+
#
|
3
|
+
class SlideBackground < BaseObject
|
4
|
+
attr_accessor :type, :fill_format, :self_uri, :alternate_links, :links
|
5
|
+
# attribute mapping from ruby-style variable name to JSON key
|
6
|
+
def self.attribute_map
|
7
|
+
{
|
8
|
+
|
9
|
+
#
|
10
|
+
:'type' => :'Type',
|
11
|
+
|
12
|
+
#
|
13
|
+
:'fill_format' => :'FillFormat',
|
14
|
+
|
15
|
+
#
|
16
|
+
:'self_uri' => :'SelfUri',
|
17
|
+
|
18
|
+
#
|
19
|
+
:'alternate_links' => :'AlternateLinks',
|
20
|
+
|
21
|
+
#
|
22
|
+
:'links' => :'Links'
|
23
|
+
|
24
|
+
}
|
25
|
+
end
|
26
|
+
|
27
|
+
# attribute type
|
28
|
+
def self.swagger_types
|
29
|
+
{
|
30
|
+
:'type' => :'String',
|
31
|
+
:'fill_format' => :'FillFormat',
|
32
|
+
:'self_uri' => :'ResourceUri',
|
33
|
+
:'alternate_links' => :'Array<ResourceUri>',
|
34
|
+
:'links' => :'Array<ResourceUri>'
|
35
|
+
|
36
|
+
}
|
37
|
+
end
|
38
|
+
|
39
|
+
def initialize(attributes = {})
|
40
|
+
return if !attributes.is_a?(Hash) || attributes.empty?
|
41
|
+
|
42
|
+
# convert string to symbol for hash key
|
43
|
+
attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}
|
44
|
+
|
45
|
+
|
46
|
+
if attributes[:'Type']
|
47
|
+
self.type = attributes[:'Type']
|
48
|
+
end
|
49
|
+
|
50
|
+
if attributes[:'FillFormat']
|
51
|
+
self.fill_format = attributes[:'FillFormat']
|
52
|
+
end
|
53
|
+
|
54
|
+
if attributes[:'SelfUri']
|
55
|
+
self.self_uri = attributes[:'SelfUri']
|
56
|
+
end
|
57
|
+
|
58
|
+
if attributes[:'AlternateLinks']
|
59
|
+
if (value = attributes[:'AlternateLinks']).is_a?(Array)
|
60
|
+
self.alternate_links = value
|
61
|
+
end
|
62
|
+
end
|
63
|
+
|
64
|
+
if attributes[:'Links']
|
65
|
+
if (value = attributes[:'Links']).is_a?(Array)
|
66
|
+
self.links = value
|
67
|
+
end
|
68
|
+
end
|
69
|
+
|
70
|
+
end
|
71
|
+
|
72
|
+
end
|
73
|
+
end
|