metatron_ruby_client 0.0.1 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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
  :'status' => :'status',
28
+
25
29
  :'title' => :'title',
30
+
26
31
  :'detail' => :'detail'
32
+
27
33
  }
28
34
  end
29
35
 
30
36
  # Attribute type mapping.
31
37
  def self.swagger_types
32
38
  {
39
+
33
40
  :'status' => :'Float',
41
+
34
42
  :'title' => :'String',
43
+
35
44
  :'detail' => :'String'
45
+
36
46
  }
37
47
  end
38
48
 
@@ -44,40 +54,89 @@ 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?(:'status')
59
+
60
+
48
61
  self.status = attributes[:'status']
62
+
63
+
49
64
  end
50
65
 
66
+
51
67
  if attributes.has_key?(:'title')
68
+
69
+
52
70
  self.title = attributes[:'title']
71
+
72
+
53
73
  end
54
74
 
75
+
55
76
  if attributes.has_key?(:'detail')
77
+
78
+
56
79
  self.detail = attributes[:'detail']
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
+
71
101
  if @status.nil?
72
102
  return false
73
103
  end
74
104
 
105
+
106
+
107
+
108
+
109
+
75
110
  if @title.nil?
76
111
  return false
77
112
  end
78
113
 
114
+
115
+
116
+
117
+
118
+
119
+
120
+
121
+
79
122
  end
80
123
 
124
+
125
+
126
+
127
+
128
+
129
+
130
+
131
+
132
+
133
+
134
+
135
+
136
+
137
+
138
+
139
+
81
140
  # Checks equality by comparing each attribute.
82
141
  # @param [Object] Object to be compared
83
142
  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
 
@@ -17,14 +19,18 @@ module MetatronClient
17
19
  # Attribute mapping from ruby-style variable name to JSON key.
18
20
  def self.attribute_map
19
21
  {
22
+
20
23
  :'errors' => :'errors'
24
+
21
25
  }
22
26
  end
23
27
 
24
28
  # Attribute type mapping.
25
29
  def self.swagger_types
26
30
  {
31
+
27
32
  :'errors' => :'Array<Error>'
33
+
28
34
  }
29
35
  end
30
36
 
@@ -36,26 +42,45 @@ module MetatronClient
36
42
  # convert string to symbol for hash key
37
43
  attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
38
44
 
45
+
39
46
  if attributes.has_key?(:'errors')
47
+
40
48
  if (value = attributes[:'errors']).is_a?(Array)
41
49
  self.errors = value
42
50
  end
51
+
52
+
53
+
43
54
  end
44
55
 
56
+
45
57
  end
46
58
 
47
59
  # Show invalid properties with the reasons. Usually used together with valid?
48
60
  # @return Array for valid properies with the reasons
49
61
  def list_invalid_properties
50
62
  invalid_properties = Array.new
63
+
64
+
51
65
  return invalid_properties
52
66
  end
53
67
 
54
68
  # Check to see if the all the properties in the model are valid
55
69
  # @return true if the model is valid
56
70
  def valid?
71
+
72
+
73
+
74
+
75
+
57
76
  end
58
77
 
78
+
79
+
80
+
81
+
82
+
83
+
59
84
  # Checks equality by comparing each attribute.
60
85
  # @param [Object] Object to be compared
61
86
  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' => :'ItemData'
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)
@@ -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
 
@@ -17,14 +19,18 @@ module MetatronClient
17
19
  # Attribute mapping from ruby-style variable name to JSON key.
18
20
  def self.attribute_map
19
21
  {
22
+
20
23
  :'id' => :'id'
24
+
21
25
  }
22
26
  end
23
27
 
24
28
  # Attribute type mapping.
25
29
  def self.swagger_types
26
30
  {
31
+
27
32
  :'id' => :'String'
33
+
28
34
  }
29
35
  end
30
36
 
@@ -36,28 +42,48 @@ module MetatronClient
36
42
  # convert string to symbol for hash key
37
43
  attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
38
44
 
45
+
39
46
  if attributes.has_key?(:'id')
47
+
48
+
40
49
  self.id = attributes[:'id']
50
+
51
+
41
52
  end
42
53
 
54
+
43
55
  end
44
56
 
45
57
  # Show invalid properties with the reasons. Usually used together with valid?
46
58
  # @return Array for valid properies with the reasons
47
59
  def list_invalid_properties
48
60
  invalid_properties = Array.new
61
+
62
+
49
63
  return invalid_properties
50
64
  end
51
65
 
52
66
  # Check to see if the all the properties in the model are valid
53
67
  # @return true if the model is valid
54
68
  def valid?
69
+
70
+
55
71
  if @id.nil?
56
72
  return false
57
73
  end
58
74
 
75
+
76
+
77
+
78
+
59
79
  end
60
80
 
81
+
82
+
83
+
84
+
85
+
86
+
61
87
  # Checks equality by comparing each attribute.
62
88
  # @param [Object] Object to be compared
63
89
  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<ItemData>'
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?(:'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
+
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)