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,61 @@
|
|
1
|
+
module AsposeSlidesCloud
|
2
|
+
#
|
3
|
+
class ParagraphPortionResponse < BaseObject
|
4
|
+
attr_accessor :portion, :status, :code
|
5
|
+
# attribute mapping from ruby-style variable name to JSON key
|
6
|
+
def self.attribute_map
|
7
|
+
{
|
8
|
+
|
9
|
+
#
|
10
|
+
:'portion' => :'Portion',
|
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
|
+
:'portion' => :'Portion',
|
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[:'Portion']
|
39
|
+
self.portion = attributes[:'Portion']
|
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,67 @@
|
|
1
|
+
module AsposeSlidesCloud
|
2
|
+
#
|
3
|
+
class Paragraphs < BaseObject
|
4
|
+
attr_accessor :alternate_links, :links, :self_uri, :paragraph_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
|
+
:'paragraph_links' => :'ParagraphLinks'
|
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
|
+
:'paragraph_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[:'ParagraphLinks']
|
59
|
+
if (value = attributes[:'ParagraphLinks']).is_a?(Array)
|
60
|
+
self.paragraph_links = value
|
61
|
+
end
|
62
|
+
end
|
63
|
+
|
64
|
+
end
|
65
|
+
|
66
|
+
end
|
67
|
+
end
|
@@ -0,0 +1,101 @@
|
|
1
|
+
module AsposeSlidesCloud
|
2
|
+
#
|
3
|
+
class PdfExportOptions < BaseObject
|
4
|
+
attr_accessor :text_compression, :embed_full_fonts, :compliance, :jpeg_quality, :save_metafiles_as_png, :password, :embed_true_type_fonts_for_ascii, :export_format
|
5
|
+
# attribute mapping from ruby-style variable name to JSON key
|
6
|
+
def self.attribute_map
|
7
|
+
{
|
8
|
+
|
9
|
+
#
|
10
|
+
:'text_compression' => :'TextCompression',
|
11
|
+
|
12
|
+
#
|
13
|
+
:'embed_full_fonts' => :'EmbedFullFonts',
|
14
|
+
|
15
|
+
#
|
16
|
+
:'compliance' => :'Compliance',
|
17
|
+
|
18
|
+
#
|
19
|
+
:'jpeg_quality' => :'JpegQuality',
|
20
|
+
|
21
|
+
#
|
22
|
+
:'save_metafiles_as_png' => :'SaveMetafilesAsPng',
|
23
|
+
|
24
|
+
#
|
25
|
+
:'password' => :'Password',
|
26
|
+
|
27
|
+
#
|
28
|
+
:'embed_true_type_fonts_for_ascii' => :'EmbedTrueTypeFontsForASCII',
|
29
|
+
|
30
|
+
#
|
31
|
+
:'export_format' => :'ExportFormat'
|
32
|
+
|
33
|
+
}
|
34
|
+
end
|
35
|
+
|
36
|
+
# attribute type
|
37
|
+
def self.swagger_types
|
38
|
+
{
|
39
|
+
:'text_compression' => :'String',
|
40
|
+
:'embed_full_fonts' => :'BOOLEAN',
|
41
|
+
:'compliance' => :'String',
|
42
|
+
:'jpeg_quality' => :'String',
|
43
|
+
:'save_metafiles_as_png' => :'BOOLEAN',
|
44
|
+
:'password' => :'String',
|
45
|
+
:'embed_true_type_fonts_for_ascii' => :'BOOLEAN',
|
46
|
+
:'export_format' => :'String'
|
47
|
+
|
48
|
+
}
|
49
|
+
end
|
50
|
+
|
51
|
+
def initialize(attributes = {})
|
52
|
+
return if !attributes.is_a?(Hash) || attributes.empty?
|
53
|
+
|
54
|
+
# convert string to symbol for hash key
|
55
|
+
attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}
|
56
|
+
|
57
|
+
|
58
|
+
if attributes[:'TextCompression']
|
59
|
+
self.text_compression = attributes[:'TextCompression']
|
60
|
+
end
|
61
|
+
|
62
|
+
if attributes[:'EmbedFullFonts']
|
63
|
+
self.embed_full_fonts = attributes[:'EmbedFullFonts']
|
64
|
+
end
|
65
|
+
|
66
|
+
if attributes[:'Compliance']
|
67
|
+
self.compliance = attributes[:'Compliance']
|
68
|
+
end
|
69
|
+
|
70
|
+
if attributes[:'JpegQuality']
|
71
|
+
self.jpeg_quality = attributes[:'JpegQuality']
|
72
|
+
end
|
73
|
+
|
74
|
+
if attributes[:'SaveMetafilesAsPng']
|
75
|
+
self.save_metafiles_as_png = attributes[:'SaveMetafilesAsPng']
|
76
|
+
end
|
77
|
+
|
78
|
+
if attributes[:'Password']
|
79
|
+
self.password = attributes[:'Password']
|
80
|
+
end
|
81
|
+
|
82
|
+
if attributes[:'EmbedTrueTypeFontsForASCII']
|
83
|
+
self.embed_true_type_fonts_for_ascii = attributes[:'EmbedTrueTypeFontsForASCII']
|
84
|
+
end
|
85
|
+
|
86
|
+
if attributes[:'ExportFormat']
|
87
|
+
self.export_format = attributes[:'ExportFormat']
|
88
|
+
end
|
89
|
+
|
90
|
+
end
|
91
|
+
|
92
|
+
def text_compression=(text_compression)
|
93
|
+
allowed_values = ["None", "Flate"]
|
94
|
+
if text_compression && !allowed_values.include?(text_compression)
|
95
|
+
fail "invalid value for 'text_compression', must be one of #{allowed_values}"
|
96
|
+
end
|
97
|
+
@text_compression = text_compression
|
98
|
+
end
|
99
|
+
|
100
|
+
end
|
101
|
+
end
|
@@ -0,0 +1,97 @@
|
|
1
|
+
module AsposeSlidesCloud
|
2
|
+
#
|
3
|
+
class Placeholder < BaseObject
|
4
|
+
attr_accessor :index, :orientation, :size, :type, :shape, :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
|
+
:'index' => :'Index',
|
11
|
+
|
12
|
+
#
|
13
|
+
:'orientation' => :'Orientation',
|
14
|
+
|
15
|
+
#
|
16
|
+
:'size' => :'Size',
|
17
|
+
|
18
|
+
#
|
19
|
+
:'type' => :'Type',
|
20
|
+
|
21
|
+
#
|
22
|
+
:'shape' => :'Shape',
|
23
|
+
|
24
|
+
#
|
25
|
+
:'self_uri' => :'SelfUri',
|
26
|
+
|
27
|
+
#
|
28
|
+
:'alternate_links' => :'AlternateLinks',
|
29
|
+
|
30
|
+
#
|
31
|
+
:'links' => :'Links'
|
32
|
+
|
33
|
+
}
|
34
|
+
end
|
35
|
+
|
36
|
+
# attribute type
|
37
|
+
def self.swagger_types
|
38
|
+
{
|
39
|
+
:'index' => :'Integer',
|
40
|
+
:'orientation' => :'String',
|
41
|
+
:'size' => :'String',
|
42
|
+
:'type' => :'String',
|
43
|
+
:'shape' => :'ResourceUriElement',
|
44
|
+
:'self_uri' => :'ResourceUri',
|
45
|
+
:'alternate_links' => :'Array<ResourceUri>',
|
46
|
+
:'links' => :'Array<ResourceUri>'
|
47
|
+
|
48
|
+
}
|
49
|
+
end
|
50
|
+
|
51
|
+
def initialize(attributes = {})
|
52
|
+
return if !attributes.is_a?(Hash) || attributes.empty?
|
53
|
+
|
54
|
+
# convert string to symbol for hash key
|
55
|
+
attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}
|
56
|
+
|
57
|
+
|
58
|
+
if attributes[:'Index']
|
59
|
+
self.index = attributes[:'Index']
|
60
|
+
end
|
61
|
+
|
62
|
+
if attributes[:'Orientation']
|
63
|
+
self.orientation = attributes[:'Orientation']
|
64
|
+
end
|
65
|
+
|
66
|
+
if attributes[:'Size']
|
67
|
+
self.size = attributes[:'Size']
|
68
|
+
end
|
69
|
+
|
70
|
+
if attributes[:'Type']
|
71
|
+
self.type = attributes[:'Type']
|
72
|
+
end
|
73
|
+
|
74
|
+
if attributes[:'Shape']
|
75
|
+
self.shape = attributes[:'Shape']
|
76
|
+
end
|
77
|
+
|
78
|
+
if attributes[:'SelfUri']
|
79
|
+
self.self_uri = attributes[:'SelfUri']
|
80
|
+
end
|
81
|
+
|
82
|
+
if attributes[:'AlternateLinks']
|
83
|
+
if (value = attributes[:'AlternateLinks']).is_a?(Array)
|
84
|
+
self.alternate_links = value
|
85
|
+
end
|
86
|
+
end
|
87
|
+
|
88
|
+
if attributes[:'Links']
|
89
|
+
if (value = attributes[:'Links']).is_a?(Array)
|
90
|
+
self.links = value
|
91
|
+
end
|
92
|
+
end
|
93
|
+
|
94
|
+
end
|
95
|
+
|
96
|
+
end
|
97
|
+
end
|
@@ -0,0 +1,61 @@
|
|
1
|
+
module AsposeSlidesCloud
|
2
|
+
#
|
3
|
+
class PlaceholderResponse < BaseObject
|
4
|
+
attr_accessor :placeholder, :status, :code
|
5
|
+
# attribute mapping from ruby-style variable name to JSON key
|
6
|
+
def self.attribute_map
|
7
|
+
{
|
8
|
+
|
9
|
+
#
|
10
|
+
:'placeholder' => :'Placeholder',
|
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
|
+
:'placeholder' => :'Placeholder',
|
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[:'Placeholder']
|
39
|
+
self.placeholder = attributes[:'Placeholder']
|
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,67 @@
|
|
1
|
+
module AsposeSlidesCloud
|
2
|
+
#
|
3
|
+
class Placeholders < BaseObject
|
4
|
+
attr_accessor :placeholder_links, :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
|
+
:'placeholder_links' => :'PlaceholderLinks',
|
11
|
+
|
12
|
+
#
|
13
|
+
:'self_uri' => :'SelfUri',
|
14
|
+
|
15
|
+
#
|
16
|
+
:'alternate_links' => :'AlternateLinks',
|
17
|
+
|
18
|
+
#
|
19
|
+
:'links' => :'Links'
|
20
|
+
|
21
|
+
}
|
22
|
+
end
|
23
|
+
|
24
|
+
# attribute type
|
25
|
+
def self.swagger_types
|
26
|
+
{
|
27
|
+
:'placeholder_links' => :'Array<ResourceUri>',
|
28
|
+
:'self_uri' => :'ResourceUri',
|
29
|
+
:'alternate_links' => :'Array<ResourceUri>',
|
30
|
+
:'links' => :'Array<ResourceUri>'
|
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[:'PlaceholderLinks']
|
43
|
+
if (value = attributes[:'PlaceholderLinks']).is_a?(Array)
|
44
|
+
self.placeholder_links = value
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
if attributes[:'SelfUri']
|
49
|
+
self.self_uri = attributes[:'SelfUri']
|
50
|
+
end
|
51
|
+
|
52
|
+
if attributes[:'AlternateLinks']
|
53
|
+
if (value = attributes[:'AlternateLinks']).is_a?(Array)
|
54
|
+
self.alternate_links = value
|
55
|
+
end
|
56
|
+
end
|
57
|
+
|
58
|
+
if attributes[:'Links']
|
59
|
+
if (value = attributes[:'Links']).is_a?(Array)
|
60
|
+
self.links = value
|
61
|
+
end
|
62
|
+
end
|
63
|
+
|
64
|
+
end
|
65
|
+
|
66
|
+
end
|
67
|
+
end
|