metatron_ruby_client 0.0.1 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +28 -28
- data/config.json +1 -1
- data/docs/Asset.md +1 -1
- data/docs/AssetResultSet.md +1 -1
- data/docs/DefaultApi.md +159 -145
- data/docs/WorkAttributes.md +3 -1
- data/lib/metatron_ruby_client.rb +8 -3
- data/lib/metatron_ruby_client/api/default_api.rb +439 -241
- data/lib/metatron_ruby_client/api_client.rb +6 -2
- data/lib/metatron_ruby_client/api_error.rb +4 -2
- data/lib/metatron_ruby_client/configuration.rb +3 -3
- data/lib/metatron_ruby_client/models/asset.rb +45 -3
- data/lib/metatron_ruby_client/models/asset_data.rb +61 -2
- data/lib/metatron_ruby_client/models/asset_meta.rb +23 -0
- data/lib/metatron_ruby_client/models/asset_result_set.rb +60 -3
- data/lib/metatron_ruby_client/models/error.rb +61 -2
- data/lib/metatron_ruby_client/models/errors.rb +27 -2
- data/lib/metatron_ruby_client/models/item.rb +40 -0
- data/lib/metatron_ruby_client/models/item_data.rb +28 -2
- data/lib/metatron_ruby_client/models/item_result_set.rb +60 -2
- data/lib/metatron_ruby_client/models/links.rb +60 -2
- data/lib/metatron_ruby_client/models/manifestation.rb +40 -0
- data/lib/metatron_ruby_client/models/manifestation_attributes.rb +75 -2
- data/lib/metatron_ruby_client/models/manifestation_data.rb +78 -2
- data/lib/metatron_ruby_client/models/manifestation_relationships.rb +59 -2
- data/lib/metatron_ruby_client/models/manifestation_result_set.rb +62 -2
- data/lib/metatron_ruby_client/models/one_to_many_relationship.rb +60 -2
- data/lib/metatron_ruby_client/models/one_to_one_relationship.rb +60 -2
- data/lib/metatron_ruby_client/models/resource_data.rb +78 -2
- data/lib/metatron_ruby_client/models/resource_link.rb +45 -2
- data/lib/metatron_ruby_client/models/result_set_meta.rb +59 -2
- data/lib/metatron_ruby_client/models/work.rb +40 -0
- data/lib/metatron_ruby_client/models/work_attributes.rb +90 -10
- data/lib/metatron_ruby_client/models/work_data.rb +78 -2
- data/lib/metatron_ruby_client/models/work_relationships.rb +27 -2
- data/lib/metatron_ruby_client/models/work_result_set.rb +75 -2
- data/lib/metatron_ruby_client/version.rb +5 -3
- data/metatron_ruby_client-0.0.1.gem +0 -0
- data/spec/api/default_api_spec.rb +11 -0
- data/spec/models/work_attributes_spec.rb +21 -1
- data/stub-service/.idea/.name +1 -0
- data/stub-service/.idea/encodings.xml +5 -0
- data/stub-service/.idea/metatron-dummy-server.iml +11 -0
- data/stub-service/.idea/misc.xml +5 -0
- data/stub-service/.idea/modules.xml +9 -0
- data/stub-service/.idea/scopes/scope_settings.xml +5 -0
- data/stub-service/.idea/vcs.xml +7 -0
- data/stub-service/.idea/workspace.xml +534 -0
- metadata +32 -24
- data/swagger-codegen-cli.jar +0 -0
@@ -1,7 +1,9 @@
|
|
1
1
|
=begin
|
2
|
-
|
2
|
+
Metatron Server
|
3
3
|
|
4
|
-
|
4
|
+
A primitive modelling bibliographic metadata
|
5
|
+
|
6
|
+
OpenAPI spec version: 2.0.0
|
5
7
|
|
6
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
7
9
|
|
@@ -23,20 +25,30 @@ module MetatronClient
|
|
23
25
|
# Attribute mapping from ruby-style variable name to JSON key.
|
24
26
|
def self.attribute_map
|
25
27
|
{
|
28
|
+
|
26
29
|
:'id' => :'id',
|
30
|
+
|
27
31
|
:'type' => :'type',
|
32
|
+
|
28
33
|
:'attributes' => :'attributes',
|
34
|
+
|
29
35
|
:'relationships' => :'relationships'
|
36
|
+
|
30
37
|
}
|
31
38
|
end
|
32
39
|
|
33
40
|
# Attribute type mapping.
|
34
41
|
def self.swagger_types
|
35
42
|
{
|
43
|
+
|
36
44
|
:'id' => :'String',
|
45
|
+
|
37
46
|
:'type' => :'String',
|
47
|
+
|
38
48
|
:'attributes' => :'Object',
|
49
|
+
|
39
50
|
:'relationships' => :'Object'
|
51
|
+
|
40
52
|
}
|
41
53
|
end
|
42
54
|
|
@@ -48,48 +60,112 @@ module MetatronClient
|
|
48
60
|
# convert string to symbol for hash key
|
49
61
|
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
50
62
|
|
63
|
+
|
51
64
|
if attributes.has_key?(:'id')
|
65
|
+
|
66
|
+
|
52
67
|
self.id = attributes[:'id']
|
68
|
+
|
69
|
+
|
53
70
|
end
|
54
71
|
|
72
|
+
|
55
73
|
if attributes.has_key?(:'type')
|
74
|
+
|
75
|
+
|
56
76
|
self.type = attributes[:'type']
|
77
|
+
|
78
|
+
|
57
79
|
end
|
58
80
|
|
81
|
+
|
59
82
|
if attributes.has_key?(:'attributes')
|
83
|
+
|
84
|
+
|
60
85
|
self.attributes = attributes[:'attributes']
|
86
|
+
|
87
|
+
|
61
88
|
end
|
62
89
|
|
90
|
+
|
63
91
|
if attributes.has_key?(:'relationships')
|
92
|
+
|
93
|
+
|
64
94
|
self.relationships = attributes[:'relationships']
|
95
|
+
|
96
|
+
|
65
97
|
end
|
66
98
|
|
99
|
+
|
67
100
|
end
|
68
101
|
|
69
102
|
# Show invalid properties with the reasons. Usually used together with valid?
|
70
103
|
# @return Array for valid properies with the reasons
|
71
104
|
def list_invalid_properties
|
72
105
|
invalid_properties = Array.new
|
106
|
+
|
107
|
+
|
73
108
|
return invalid_properties
|
74
109
|
end
|
75
110
|
|
76
111
|
# Check to see if the all the properties in the model are valid
|
77
112
|
# @return true if the model is valid
|
78
113
|
def valid?
|
114
|
+
|
115
|
+
|
79
116
|
if @id.nil?
|
80
117
|
return false
|
81
118
|
end
|
82
119
|
|
120
|
+
|
121
|
+
|
122
|
+
|
123
|
+
|
124
|
+
|
83
125
|
if @type.nil?
|
84
126
|
return false
|
85
127
|
end
|
86
128
|
|
129
|
+
|
130
|
+
|
131
|
+
|
132
|
+
|
133
|
+
|
87
134
|
if @attributes.nil?
|
88
135
|
return false
|
89
136
|
end
|
90
137
|
|
138
|
+
|
139
|
+
|
140
|
+
|
141
|
+
|
142
|
+
|
143
|
+
|
144
|
+
|
145
|
+
|
91
146
|
end
|
92
147
|
|
148
|
+
|
149
|
+
|
150
|
+
|
151
|
+
|
152
|
+
|
153
|
+
|
154
|
+
|
155
|
+
|
156
|
+
|
157
|
+
|
158
|
+
|
159
|
+
|
160
|
+
|
161
|
+
|
162
|
+
|
163
|
+
|
164
|
+
|
165
|
+
|
166
|
+
|
167
|
+
|
168
|
+
|
93
169
|
# Checks equality by comparing each attribute.
|
94
170
|
# @param [Object] Object to be compared
|
95
171
|
def ==(o)
|
@@ -1,7 +1,9 @@
|
|
1
1
|
=begin
|
2
|
-
|
2
|
+
Metatron Server
|
3
3
|
|
4
|
-
|
4
|
+
A primitive modelling bibliographic metadata
|
5
|
+
|
6
|
+
OpenAPI spec version: 2.0.0
|
5
7
|
|
6
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
7
9
|
|
@@ -19,16 +21,22 @@ module MetatronClient
|
|
19
21
|
# Attribute mapping from ruby-style variable name to JSON key.
|
20
22
|
def self.attribute_map
|
21
23
|
{
|
24
|
+
|
22
25
|
:'id' => :'id',
|
26
|
+
|
23
27
|
:'type' => :'type'
|
28
|
+
|
24
29
|
}
|
25
30
|
end
|
26
31
|
|
27
32
|
# Attribute type mapping.
|
28
33
|
def self.swagger_types
|
29
34
|
{
|
35
|
+
|
30
36
|
:'id' => :'String',
|
37
|
+
|
31
38
|
:'type' => :'String'
|
39
|
+
|
32
40
|
}
|
33
41
|
end
|
34
42
|
|
@@ -40,36 +48,71 @@ module MetatronClient
|
|
40
48
|
# convert string to symbol for hash key
|
41
49
|
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
42
50
|
|
51
|
+
|
43
52
|
if attributes.has_key?(:'id')
|
53
|
+
|
54
|
+
|
44
55
|
self.id = attributes[:'id']
|
56
|
+
|
57
|
+
|
45
58
|
end
|
46
59
|
|
60
|
+
|
47
61
|
if attributes.has_key?(:'type')
|
62
|
+
|
63
|
+
|
48
64
|
self.type = attributes[:'type']
|
65
|
+
|
66
|
+
|
49
67
|
end
|
50
68
|
|
69
|
+
|
51
70
|
end
|
52
71
|
|
53
72
|
# Show invalid properties with the reasons. Usually used together with valid?
|
54
73
|
# @return Array for valid properies with the reasons
|
55
74
|
def list_invalid_properties
|
56
75
|
invalid_properties = Array.new
|
76
|
+
|
77
|
+
|
57
78
|
return invalid_properties
|
58
79
|
end
|
59
80
|
|
60
81
|
# Check to see if the all the properties in the model are valid
|
61
82
|
# @return true if the model is valid
|
62
83
|
def valid?
|
84
|
+
|
85
|
+
|
63
86
|
if @id.nil?
|
64
87
|
return false
|
65
88
|
end
|
66
89
|
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
|
94
|
+
|
67
95
|
if @type.nil?
|
68
96
|
return false
|
69
97
|
end
|
70
98
|
|
99
|
+
|
100
|
+
|
101
|
+
|
102
|
+
|
71
103
|
end
|
72
104
|
|
105
|
+
|
106
|
+
|
107
|
+
|
108
|
+
|
109
|
+
|
110
|
+
|
111
|
+
|
112
|
+
|
113
|
+
|
114
|
+
|
115
|
+
|
73
116
|
# Checks equality by comparing each attribute.
|
74
117
|
# @param [Object] Object to be compared
|
75
118
|
def ==(o)
|
@@ -1,7 +1,9 @@
|
|
1
1
|
=begin
|
2
|
-
|
2
|
+
Metatron Server
|
3
3
|
|
4
|
-
|
4
|
+
A primitive modelling bibliographic metadata
|
5
|
+
|
6
|
+
OpenAPI spec version: 2.0.0
|
5
7
|
|
6
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
7
9
|
|
@@ -24,18 +26,26 @@ module MetatronClient
|
|
24
26
|
# Attribute mapping from ruby-style variable name to JSON key.
|
25
27
|
def self.attribute_map
|
26
28
|
{
|
29
|
+
|
27
30
|
:'offset' => :'offset',
|
31
|
+
|
28
32
|
:'limit' => :'limit',
|
33
|
+
|
29
34
|
:'count' => :'count'
|
35
|
+
|
30
36
|
}
|
31
37
|
end
|
32
38
|
|
33
39
|
# Attribute type mapping.
|
34
40
|
def self.swagger_types
|
35
41
|
{
|
42
|
+
|
36
43
|
:'offset' => :'Float',
|
44
|
+
|
37
45
|
:'limit' => :'Float',
|
46
|
+
|
38
47
|
:'count' => :'Float'
|
48
|
+
|
39
49
|
}
|
40
50
|
end
|
41
51
|
|
@@ -47,32 +57,79 @@ module MetatronClient
|
|
47
57
|
# convert string to symbol for hash key
|
48
58
|
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
49
59
|
|
60
|
+
|
50
61
|
if attributes.has_key?(:'offset')
|
62
|
+
|
63
|
+
|
51
64
|
self.offset = attributes[:'offset']
|
65
|
+
|
66
|
+
|
52
67
|
end
|
53
68
|
|
69
|
+
|
54
70
|
if attributes.has_key?(:'limit')
|
71
|
+
|
72
|
+
|
55
73
|
self.limit = attributes[:'limit']
|
74
|
+
|
75
|
+
|
56
76
|
end
|
57
77
|
|
78
|
+
|
58
79
|
if attributes.has_key?(:'count')
|
80
|
+
|
81
|
+
|
59
82
|
self.count = attributes[:'count']
|
83
|
+
|
84
|
+
|
60
85
|
end
|
61
86
|
|
87
|
+
|
62
88
|
end
|
63
89
|
|
64
90
|
# Show invalid properties with the reasons. Usually used together with valid?
|
65
91
|
# @return Array for valid properies with the reasons
|
66
92
|
def list_invalid_properties
|
67
93
|
invalid_properties = Array.new
|
94
|
+
|
95
|
+
|
68
96
|
return invalid_properties
|
69
97
|
end
|
70
98
|
|
71
99
|
# Check to see if the all the properties in the model are valid
|
72
100
|
# @return true if the model is valid
|
73
101
|
def valid?
|
102
|
+
|
103
|
+
|
104
|
+
|
105
|
+
|
106
|
+
|
107
|
+
|
108
|
+
|
109
|
+
|
110
|
+
|
111
|
+
|
112
|
+
|
113
|
+
|
114
|
+
|
74
115
|
end
|
75
116
|
|
117
|
+
|
118
|
+
|
119
|
+
|
120
|
+
|
121
|
+
|
122
|
+
|
123
|
+
|
124
|
+
|
125
|
+
|
126
|
+
|
127
|
+
|
128
|
+
|
129
|
+
|
130
|
+
|
131
|
+
|
132
|
+
|
76
133
|
# Checks equality by comparing each attribute.
|
77
134
|
# @param [Object] Object to be compared
|
78
135
|
def ==(o)
|
@@ -21,16 +21,22 @@ module MetatronClient
|
|
21
21
|
# Attribute mapping from ruby-style variable name to JSON key.
|
22
22
|
def self.attribute_map
|
23
23
|
{
|
24
|
+
|
24
25
|
:'links' => :'links',
|
26
|
+
|
25
27
|
:'data' => :'data'
|
28
|
+
|
26
29
|
}
|
27
30
|
end
|
28
31
|
|
29
32
|
# Attribute type mapping.
|
30
33
|
def self.swagger_types
|
31
34
|
{
|
35
|
+
|
32
36
|
:'links' => :'Links',
|
37
|
+
|
33
38
|
:'data' => :'WorkData'
|
39
|
+
|
34
40
|
}
|
35
41
|
end
|
36
42
|
|
@@ -42,32 +48,66 @@ module MetatronClient
|
|
42
48
|
# convert string to symbol for hash key
|
43
49
|
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
44
50
|
|
51
|
+
|
45
52
|
if attributes.has_key?(:'links')
|
53
|
+
|
54
|
+
|
46
55
|
self.links = attributes[:'links']
|
56
|
+
|
57
|
+
|
47
58
|
end
|
48
59
|
|
60
|
+
|
49
61
|
if attributes.has_key?(:'data')
|
62
|
+
|
63
|
+
|
50
64
|
self.data = attributes[:'data']
|
65
|
+
|
66
|
+
|
51
67
|
end
|
52
68
|
|
69
|
+
|
53
70
|
end
|
54
71
|
|
55
72
|
# Show invalid properties with the reasons. Usually used together with valid?
|
56
73
|
# @return Array for valid properies with the reasons
|
57
74
|
def list_invalid_properties
|
58
75
|
invalid_properties = Array.new
|
76
|
+
|
77
|
+
|
59
78
|
return invalid_properties
|
60
79
|
end
|
61
80
|
|
62
81
|
# Check to see if the all the properties in the model are valid
|
63
82
|
# @return true if the model is valid
|
64
83
|
def valid?
|
84
|
+
|
85
|
+
|
86
|
+
|
87
|
+
|
88
|
+
|
89
|
+
|
65
90
|
if @data.nil?
|
66
91
|
return false
|
67
92
|
end
|
68
93
|
|
94
|
+
|
95
|
+
|
96
|
+
|
97
|
+
|
69
98
|
end
|
70
99
|
|
100
|
+
|
101
|
+
|
102
|
+
|
103
|
+
|
104
|
+
|
105
|
+
|
106
|
+
|
107
|
+
|
108
|
+
|
109
|
+
|
110
|
+
|
71
111
|
# Checks equality by comparing each attribute.
|
72
112
|
# @param [Object] Object to be compared
|
73
113
|
def ==(o)
|