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.
Files changed (51) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +28 -28
  3. data/config.json +1 -1
  4. data/docs/Asset.md +1 -1
  5. data/docs/AssetResultSet.md +1 -1
  6. data/docs/DefaultApi.md +159 -145
  7. data/docs/WorkAttributes.md +3 -1
  8. data/lib/metatron_ruby_client.rb +8 -3
  9. data/lib/metatron_ruby_client/api/default_api.rb +439 -241
  10. data/lib/metatron_ruby_client/api_client.rb +6 -2
  11. data/lib/metatron_ruby_client/api_error.rb +4 -2
  12. data/lib/metatron_ruby_client/configuration.rb +3 -3
  13. data/lib/metatron_ruby_client/models/asset.rb +45 -3
  14. data/lib/metatron_ruby_client/models/asset_data.rb +61 -2
  15. data/lib/metatron_ruby_client/models/asset_meta.rb +23 -0
  16. data/lib/metatron_ruby_client/models/asset_result_set.rb +60 -3
  17. data/lib/metatron_ruby_client/models/error.rb +61 -2
  18. data/lib/metatron_ruby_client/models/errors.rb +27 -2
  19. data/lib/metatron_ruby_client/models/item.rb +40 -0
  20. data/lib/metatron_ruby_client/models/item_data.rb +28 -2
  21. data/lib/metatron_ruby_client/models/item_result_set.rb +60 -2
  22. data/lib/metatron_ruby_client/models/links.rb +60 -2
  23. data/lib/metatron_ruby_client/models/manifestation.rb +40 -0
  24. data/lib/metatron_ruby_client/models/manifestation_attributes.rb +75 -2
  25. data/lib/metatron_ruby_client/models/manifestation_data.rb +78 -2
  26. data/lib/metatron_ruby_client/models/manifestation_relationships.rb +59 -2
  27. data/lib/metatron_ruby_client/models/manifestation_result_set.rb +62 -2
  28. data/lib/metatron_ruby_client/models/one_to_many_relationship.rb +60 -2
  29. data/lib/metatron_ruby_client/models/one_to_one_relationship.rb +60 -2
  30. data/lib/metatron_ruby_client/models/resource_data.rb +78 -2
  31. data/lib/metatron_ruby_client/models/resource_link.rb +45 -2
  32. data/lib/metatron_ruby_client/models/result_set_meta.rb +59 -2
  33. data/lib/metatron_ruby_client/models/work.rb +40 -0
  34. data/lib/metatron_ruby_client/models/work_attributes.rb +90 -10
  35. data/lib/metatron_ruby_client/models/work_data.rb +78 -2
  36. data/lib/metatron_ruby_client/models/work_relationships.rb +27 -2
  37. data/lib/metatron_ruby_client/models/work_result_set.rb +75 -2
  38. data/lib/metatron_ruby_client/version.rb +5 -3
  39. data/metatron_ruby_client-0.0.1.gem +0 -0
  40. data/spec/api/default_api_spec.rb +11 -0
  41. data/spec/models/work_attributes_spec.rb +21 -1
  42. data/stub-service/.idea/.name +1 -0
  43. data/stub-service/.idea/encodings.xml +5 -0
  44. data/stub-service/.idea/metatron-dummy-server.iml +11 -0
  45. data/stub-service/.idea/misc.xml +5 -0
  46. data/stub-service/.idea/modules.xml +9 -0
  47. data/stub-service/.idea/scopes/scope_settings.xml +5 -0
  48. data/stub-service/.idea/vcs.xml +7 -0
  49. data/stub-service/.idea/workspace.xml +534 -0
  50. metadata +32 -24
  51. data/swagger-codegen-cli.jar +0 -0
@@ -1,7 +1,9 @@
1
1
  =begin
2
- production-metatron-api
2
+ Metatron Server
3
3
 
4
- OpenAPI spec version: 2016-07-15T09:42:29Z
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
 
@@ -21,18 +23,26 @@ module MetatronClient
21
23
  # Attribute mapping from ruby-style variable name to JSON key.
22
24
  def self.attribute_map
23
25
  {
26
+
24
27
  :'contributors' => :'contributors',
28
+
25
29
  :'assets' => :'assets',
30
+
26
31
  :'work' => :'work'
32
+
27
33
  }
28
34
  end
29
35
 
30
36
  # Attribute type mapping.
31
37
  def self.swagger_types
32
38
  {
39
+
33
40
  :'contributors' => :'OneToManyRelationship',
41
+
34
42
  :'assets' => :'OneToManyRelationship',
43
+
35
44
  :'work' => :'OneToOneRelationship'
45
+
36
46
  }
37
47
  end
38
48
 
@@ -44,32 +54,79 @@ module MetatronClient
44
54
  # convert string to symbol for hash key
45
55
  attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
46
56
 
57
+
47
58
  if attributes.has_key?(:'contributors')
59
+
60
+
48
61
  self.contributors = attributes[:'contributors']
62
+
63
+
49
64
  end
50
65
 
66
+
51
67
  if attributes.has_key?(:'assets')
68
+
69
+
52
70
  self.assets = attributes[:'assets']
71
+
72
+
53
73
  end
54
74
 
75
+
55
76
  if attributes.has_key?(:'work')
77
+
78
+
56
79
  self.work = attributes[:'work']
80
+
81
+
57
82
  end
58
83
 
84
+
59
85
  end
60
86
 
61
87
  # Show invalid properties with the reasons. Usually used together with valid?
62
88
  # @return Array for valid properies with the reasons
63
89
  def list_invalid_properties
64
90
  invalid_properties = Array.new
91
+
92
+
65
93
  return invalid_properties
66
94
  end
67
95
 
68
96
  # Check to see if the all the properties in the model are valid
69
97
  # @return true if the model is valid
70
98
  def valid?
99
+
100
+
101
+
102
+
103
+
104
+
105
+
106
+
107
+
108
+
109
+
110
+
111
+
71
112
  end
72
113
 
114
+
115
+
116
+
117
+
118
+
119
+
120
+
121
+
122
+
123
+
124
+
125
+
126
+
127
+
128
+
129
+
73
130
  # Checks equality by comparing each attribute.
74
131
  # @param [Object] Object to be compared
75
132
  def ==(o)
@@ -1,7 +1,9 @@
1
1
  =begin
2
- production-metatron-api
2
+ Metatron Server
3
3
 
4
- OpenAPI spec version: 2016-07-15T09:42:29Z
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
 
@@ -21,18 +23,26 @@ module MetatronClient
21
23
  # Attribute mapping from ruby-style variable name to JSON key.
22
24
  def self.attribute_map
23
25
  {
26
+
24
27
  :'links' => :'links',
28
+
25
29
  :'meta' => :'meta',
30
+
26
31
  :'data' => :'data'
32
+
27
33
  }
28
34
  end
29
35
 
30
36
  # Attribute type mapping.
31
37
  def self.swagger_types
32
38
  {
39
+
33
40
  :'links' => :'Links',
41
+
34
42
  :'meta' => :'ResultSetMeta',
43
+
35
44
  :'data' => :'Array<ManifestationData>'
45
+
36
46
  }
37
47
  end
38
48
 
@@ -44,46 +54,96 @@ module MetatronClient
44
54
  # convert string to symbol for hash key
45
55
  attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
46
56
 
57
+
47
58
  if attributes.has_key?(:'links')
59
+
60
+
48
61
  self.links = attributes[:'links']
62
+
63
+
49
64
  end
50
65
 
66
+
51
67
  if attributes.has_key?(:'meta')
68
+
69
+
52
70
  self.meta = attributes[:'meta']
71
+
72
+
53
73
  end
54
74
 
75
+
55
76
  if attributes.has_key?(:'data')
77
+
56
78
  if (value = attributes[:'data']).is_a?(Array)
57
79
  self.data = value
58
80
  end
81
+
82
+
83
+
59
84
  end
60
85
 
86
+
61
87
  end
62
88
 
63
89
  # Show invalid properties with the reasons. Usually used together with valid?
64
90
  # @return Array for valid properies with the reasons
65
91
  def list_invalid_properties
66
92
  invalid_properties = Array.new
93
+
94
+
67
95
  return invalid_properties
68
96
  end
69
97
 
70
98
  # Check to see if the all the properties in the model are valid
71
99
  # @return true if the model is valid
72
100
  def valid?
101
+
102
+
73
103
  if @links.nil?
74
104
  return false
75
105
  end
76
106
 
107
+
108
+
109
+
110
+
111
+
77
112
  if @meta.nil?
78
113
  return false
79
114
  end
80
115
 
116
+
117
+
118
+
119
+
120
+
81
121
  if @data.nil?
82
122
  return false
83
123
  end
84
124
 
125
+
126
+
127
+
128
+
85
129
  end
86
130
 
131
+
132
+
133
+
134
+
135
+
136
+
137
+
138
+
139
+
140
+
141
+
142
+
143
+
144
+
145
+
146
+
87
147
  # Checks equality by comparing each attribute.
88
148
  # @param [Object] Object to be compared
89
149
  def ==(o)
@@ -1,7 +1,9 @@
1
1
  =begin
2
- production-metatron-api
2
+ Metatron Server
3
3
 
4
- OpenAPI spec version: 2016-07-15T09:42:29Z
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
 
@@ -21,18 +23,26 @@ module MetatronClient
21
23
  # Attribute mapping from ruby-style variable name to JSON key.
22
24
  def self.attribute_map
23
25
  {
26
+
24
27
  :'meta' => :'meta',
28
+
25
29
  :'links' => :'links',
30
+
26
31
  :'data' => :'data'
32
+
27
33
  }
28
34
  end
29
35
 
30
36
  # Attribute type mapping.
31
37
  def self.swagger_types
32
38
  {
39
+
33
40
  :'meta' => :'Object',
41
+
34
42
  :'links' => :'Links',
43
+
35
44
  :'data' => :'Array<ResourceLink>'
45
+
36
46
  }
37
47
  end
38
48
 
@@ -44,38 +54,86 @@ module MetatronClient
44
54
  # convert string to symbol for hash key
45
55
  attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
46
56
 
57
+
47
58
  if attributes.has_key?(:'meta')
59
+
60
+
48
61
  self.meta = attributes[:'meta']
62
+
63
+
49
64
  end
50
65
 
66
+
51
67
  if attributes.has_key?(:'links')
68
+
69
+
52
70
  self.links = attributes[:'links']
71
+
72
+
53
73
  end
54
74
 
75
+
55
76
  if attributes.has_key?(:'data')
77
+
56
78
  if (value = attributes[:'data']).is_a?(Array)
57
79
  self.data = value
58
80
  end
81
+
82
+
83
+
59
84
  end
60
85
 
86
+
61
87
  end
62
88
 
63
89
  # Show invalid properties with the reasons. Usually used together with valid?
64
90
  # @return Array for valid properies with the reasons
65
91
  def list_invalid_properties
66
92
  invalid_properties = Array.new
93
+
94
+
67
95
  return invalid_properties
68
96
  end
69
97
 
70
98
  # Check to see if the all the properties in the model are valid
71
99
  # @return true if the model is valid
72
100
  def valid?
101
+
102
+
103
+
104
+
105
+
106
+
107
+
108
+
109
+
110
+
73
111
  if @data.nil?
74
112
  return false
75
113
  end
76
114
 
115
+
116
+
117
+
118
+
77
119
  end
78
120
 
121
+
122
+
123
+
124
+
125
+
126
+
127
+
128
+
129
+
130
+
131
+
132
+
133
+
134
+
135
+
136
+
79
137
  # Checks equality by comparing each attribute.
80
138
  # @param [Object] Object to be compared
81
139
  def ==(o)
@@ -1,7 +1,9 @@
1
1
  =begin
2
- production-metatron-api
2
+ Metatron Server
3
3
 
4
- OpenAPI spec version: 2016-07-15T09:42:29Z
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
 
@@ -21,18 +23,26 @@ module MetatronClient
21
23
  # Attribute mapping from ruby-style variable name to JSON key.
22
24
  def self.attribute_map
23
25
  {
26
+
24
27
  :'meta' => :'meta',
28
+
25
29
  :'links' => :'links',
30
+
26
31
  :'data' => :'data'
32
+
27
33
  }
28
34
  end
29
35
 
30
36
  # Attribute type mapping.
31
37
  def self.swagger_types
32
38
  {
39
+
33
40
  :'meta' => :'Object',
41
+
34
42
  :'links' => :'Links',
43
+
35
44
  :'data' => :'ResourceLink'
45
+
36
46
  }
37
47
  end
38
48
 
@@ -44,36 +54,84 @@ module MetatronClient
44
54
  # convert string to symbol for hash key
45
55
  attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
46
56
 
57
+
47
58
  if attributes.has_key?(:'meta')
59
+
60
+
48
61
  self.meta = attributes[:'meta']
62
+
63
+
49
64
  end
50
65
 
66
+
51
67
  if attributes.has_key?(:'links')
68
+
69
+
52
70
  self.links = attributes[:'links']
71
+
72
+
53
73
  end
54
74
 
75
+
55
76
  if attributes.has_key?(:'data')
77
+
78
+
56
79
  self.data = attributes[:'data']
80
+
81
+
57
82
  end
58
83
 
84
+
59
85
  end
60
86
 
61
87
  # Show invalid properties with the reasons. Usually used together with valid?
62
88
  # @return Array for valid properies with the reasons
63
89
  def list_invalid_properties
64
90
  invalid_properties = Array.new
91
+
92
+
65
93
  return invalid_properties
66
94
  end
67
95
 
68
96
  # Check to see if the all the properties in the model are valid
69
97
  # @return true if the model is valid
70
98
  def valid?
99
+
100
+
101
+
102
+
103
+
104
+
105
+
106
+
107
+
108
+
71
109
  if @data.nil?
72
110
  return false
73
111
  end
74
112
 
113
+
114
+
115
+
116
+
75
117
  end
76
118
 
119
+
120
+
121
+
122
+
123
+
124
+
125
+
126
+
127
+
128
+
129
+
130
+
131
+
132
+
133
+
134
+
77
135
  # Checks equality by comparing each attribute.
78
136
  # @param [Object] Object to be compared
79
137
  def ==(o)