metatron_ruby_client 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (116) hide show
  1. checksums.yaml +7 -0
  2. data/README.md +140 -0
  3. data/config.json +13 -0
  4. data/docs/Asset.md +9 -0
  5. data/docs/AssetAttributes.md +8 -0
  6. data/docs/AssetData.md +10 -0
  7. data/docs/AssetMeta.md +8 -0
  8. data/docs/AssetResultSet.md +10 -0
  9. data/docs/AssetResultSetMeta.md +8 -0
  10. data/docs/DefaultApi.md +631 -0
  11. data/docs/Error.md +10 -0
  12. data/docs/Errors.md +8 -0
  13. data/docs/Item.md +9 -0
  14. data/docs/ItemData.md +8 -0
  15. data/docs/ItemResultSet.md +10 -0
  16. data/docs/Links.md +10 -0
  17. data/docs/Manifestation.md +9 -0
  18. data/docs/ManifestationAttributes.md +11 -0
  19. data/docs/ManifestationData.md +11 -0
  20. data/docs/ManifestationRelationships.md +10 -0
  21. data/docs/ManifestationResultSet.md +10 -0
  22. data/docs/Meta.md +10 -0
  23. data/docs/OneToManyRelationship.md +10 -0
  24. data/docs/OneToOneRelationship.md +10 -0
  25. data/docs/Resource.md +10 -0
  26. data/docs/ResourceData.md +11 -0
  27. data/docs/ResourceLink.md +9 -0
  28. data/docs/ResultSetMeta.md +10 -0
  29. data/docs/Work.md +9 -0
  30. data/docs/WorkAttributes.md +8 -0
  31. data/docs/WorkData.md +11 -0
  32. data/docs/WorkRelationships.md +8 -0
  33. data/docs/WorkResultSet.md +11 -0
  34. data/generate.sh +0 -0
  35. data/git_push.sh +52 -0
  36. data/lib/metatron_ruby_client/api/default_api.rb +727 -0
  37. data/lib/metatron_ruby_client/api_client.rb +361 -0
  38. data/lib/metatron_ruby_client/api_error.rb +34 -0
  39. data/lib/metatron_ruby_client/configuration.rb +170 -0
  40. data/lib/metatron_ruby_client/models/asset.rb +195 -0
  41. data/lib/metatron_ruby_client/models/asset_attributes.rb +212 -0
  42. data/lib/metatron_ruby_client/models/asset_data.rb +208 -0
  43. data/lib/metatron_ruby_client/models/asset_meta.rb +198 -0
  44. data/lib/metatron_ruby_client/models/asset_result_set.rb +202 -0
  45. data/lib/metatron_ruby_client/models/asset_result_set_meta.rb +196 -0
  46. data/lib/metatron_ruby_client/models/error.rb +208 -0
  47. data/lib/metatron_ruby_client/models/errors.rb +184 -0
  48. data/lib/metatron_ruby_client/models/item.rb +197 -0
  49. data/lib/metatron_ruby_client/models/item_data.rb +186 -0
  50. data/lib/metatron_ruby_client/models/item_result_set.rb +206 -0
  51. data/lib/metatron_ruby_client/models/links.rb +204 -0
  52. data/lib/metatron_ruby_client/models/manifestation.rb +197 -0
  53. data/lib/metatron_ruby_client/models/manifestation_attributes.rb +209 -0
  54. data/lib/metatron_ruby_client/models/manifestation_data.rb +235 -0
  55. data/lib/metatron_ruby_client/models/manifestation_relationships.rb +200 -0
  56. data/lib/metatron_ruby_client/models/manifestation_result_set.rb +214 -0
  57. data/lib/metatron_ruby_client/models/meta.rb +260 -0
  58. data/lib/metatron_ruby_client/models/one_to_many_relationship.rb +206 -0
  59. data/lib/metatron_ruby_client/models/one_to_one_relationship.rb +204 -0
  60. data/lib/metatron_ruby_client/models/resource.rb +281 -0
  61. data/lib/metatron_ruby_client/models/resource_data.rb +221 -0
  62. data/lib/metatron_ruby_client/models/resource_link.rb +199 -0
  63. data/lib/metatron_ruby_client/models/result_set_meta.rb +203 -0
  64. data/lib/metatron_ruby_client/models/work.rb +197 -0
  65. data/lib/metatron_ruby_client/models/work_attributes.rb +186 -0
  66. data/lib/metatron_ruby_client/models/work_data.rb +235 -0
  67. data/lib/metatron_ruby_client/models/work_relationships.rb +182 -0
  68. data/lib/metatron_ruby_client/models/work_result_set.rb +213 -0
  69. data/lib/metatron_ruby_client/version.rb +13 -0
  70. data/lib/metatron_ruby_client.rb +60 -0
  71. data/metatron_ruby_client.gemspec +31 -0
  72. data/spec/api/default_api_spec.rb +218 -0
  73. data/spec/models/asset_attributes_spec.rb +46 -0
  74. data/spec/models/asset_data_spec.rb +66 -0
  75. data/spec/models/asset_meta_spec.rb +46 -0
  76. data/spec/models/asset_result_set_spec.rb +66 -0
  77. data/spec/models/asset_spec.rb +56 -0
  78. data/spec/models/error_spec.rb +66 -0
  79. data/spec/models/errors_spec.rb +46 -0
  80. data/spec/models/item_data_spec.rb +46 -0
  81. data/spec/models/item_result_set_spec.rb +66 -0
  82. data/spec/models/item_spec.rb +56 -0
  83. data/spec/models/links_spec.rb +66 -0
  84. data/spec/models/manifestation_attributes_spec.rb +76 -0
  85. data/spec/models/manifestation_data_spec.rb +76 -0
  86. data/spec/models/manifestation_relationships_spec.rb +66 -0
  87. data/spec/models/manifestation_result_set_spec.rb +66 -0
  88. data/spec/models/manifestation_spec.rb +56 -0
  89. data/spec/models/meta_spec.rb +66 -0
  90. data/spec/models/one_to_many_relationship_spec.rb +66 -0
  91. data/spec/models/one_to_one_relationship_spec.rb +66 -0
  92. data/spec/models/resource_data_spec.rb +76 -0
  93. data/spec/models/resource_link_spec.rb +56 -0
  94. data/spec/models/resource_spec.rb +66 -0
  95. data/spec/models/result_set_meta_spec.rb +66 -0
  96. data/spec/models/work_attributes_spec.rb +46 -0
  97. data/spec/models/work_data_spec.rb +76 -0
  98. data/spec/models/work_relationships_spec.rb +46 -0
  99. data/spec/models/work_result_set_spec.rb +76 -0
  100. data/spec/models/work_spec.rb +56 -0
  101. data/stub-service/.swagger-codegen-ignore +23 -0
  102. data/stub-service/Gemfile +4 -0
  103. data/stub-service/Gemfile.lock +22 -0
  104. data/stub-service/LICENSE +201 -0
  105. data/stub-service/README.md +29 -0
  106. data/stub-service/api/default_api.rb +370 -0
  107. data/stub-service/config.ru +2 -0
  108. data/stub-service/lib/result_set.rb +37 -0
  109. data/stub-service/lib/swaggering.rb +163 -0
  110. data/stub-service/my_app.rb +13 -0
  111. data/stub-service/responses/works/includes/manifestations.assets.yaml +42 -0
  112. data/stub-service/responses/works/includes/manifestations.yaml +88 -0
  113. data/stub-service/responses/works/result_set.yaml +18 -0
  114. data/stub-service/swagger.yaml +756 -0
  115. data/swagger-codegen-cli.jar +0 -0
  116. metadata +369 -0
@@ -0,0 +1,727 @@
1
+ =begin
2
+ production-metatron-api
3
+
4
+ OpenAPI spec version: 2016-07-15T09:42:29Z
5
+
6
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
7
+
8
+
9
+ =end
10
+
11
+ require "uri"
12
+
13
+ module MetatronClient
14
+ class DefaultApi
15
+ attr_accessor :api_client
16
+
17
+ def initialize(api_client = ApiClient.default)
18
+ @api_client = api_client
19
+ end
20
+
21
+ #
22
+ #
23
+ # @param asset_id
24
+ # @param asset_type
25
+ # @param authorization
26
+ # @param [Hash] opts the optional parameters
27
+ # @return [nil]
28
+ def assets_asset_type_asset_id_delete(asset_id, asset_type, authorization, opts = {})
29
+ assets_asset_type_asset_id_delete_with_http_info(asset_id, asset_type, authorization, opts)
30
+ return nil
31
+ end
32
+
33
+ #
34
+ #
35
+ # @param asset_id
36
+ # @param asset_type
37
+ # @param authorization
38
+ # @param [Hash] opts the optional parameters
39
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
40
+ def assets_asset_type_asset_id_delete_with_http_info(asset_id, asset_type, authorization, opts = {})
41
+ if @api_client.config.debugging
42
+ @api_client.config.logger.debug "Calling API: DefaultApi.assets_asset_type_asset_id_delete ..."
43
+ end
44
+ # verify the required parameter 'asset_id' is set
45
+ fail ArgumentError, "Missing the required parameter 'asset_id' when calling DefaultApi.assets_asset_type_asset_id_delete" if asset_id.nil?
46
+ # verify the required parameter 'asset_type' is set
47
+ fail ArgumentError, "Missing the required parameter 'asset_type' when calling DefaultApi.assets_asset_type_asset_id_delete" if asset_type.nil?
48
+ # verify the required parameter 'authorization' is set
49
+ fail ArgumentError, "Missing the required parameter 'authorization' when calling DefaultApi.assets_asset_type_asset_id_delete" if authorization.nil?
50
+ # resource path
51
+ local_var_path = "/2/assets/{assetType}/{assetId}".sub('{format}','json').sub('{' + 'assetId' + '}', asset_id.to_s).sub('{' + 'assetType' + '}', asset_type.to_s)
52
+
53
+ # query parameters
54
+ query_params = {}
55
+
56
+ # header parameters
57
+ header_params = {}
58
+
59
+ # HTTP header 'Accept' (if needed)
60
+ local_header_accept = ['application/vnd.api+json', 'application/json']
61
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
62
+
63
+ # HTTP header 'Content-Type'
64
+ local_header_content_type = ['application/json']
65
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
66
+ header_params[:'Authorization'] = authorization
67
+
68
+ # form parameters
69
+ form_params = {}
70
+
71
+ # http body (model)
72
+ post_body = nil
73
+ auth_names = ['Authorizer']
74
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
75
+ :header_params => header_params,
76
+ :query_params => query_params,
77
+ :form_params => form_params,
78
+ :body => post_body,
79
+ :auth_names => auth_names)
80
+ if @api_client.config.debugging
81
+ @api_client.config.logger.debug "API called: DefaultApi#assets_asset_type_asset_id_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
82
+ end
83
+ return data, status_code, headers
84
+ end
85
+
86
+ #
87
+ #
88
+ # @param authorization
89
+ # @param [Hash] opts the optional parameters
90
+ # @option opts [String] :work_id
91
+ # @option opts [String] :isbn
92
+ # @return [ManifestationResultSet]
93
+ def manifestations_get(authorization, opts = {})
94
+ data, _status_code, _headers = manifestations_get_with_http_info(authorization, opts)
95
+ return data
96
+ end
97
+
98
+ #
99
+ #
100
+ # @param authorization
101
+ # @param [Hash] opts the optional parameters
102
+ # @option opts [String] :work_id
103
+ # @option opts [String] :isbn
104
+ # @return [Array<(ManifestationResultSet, Fixnum, Hash)>] ManifestationResultSet data, response status code and response headers
105
+ def manifestations_get_with_http_info(authorization, opts = {})
106
+ if @api_client.config.debugging
107
+ @api_client.config.logger.debug "Calling API: DefaultApi.manifestations_get ..."
108
+ end
109
+ # verify the required parameter 'authorization' is set
110
+ fail ArgumentError, "Missing the required parameter 'authorization' when calling DefaultApi.manifestations_get" if authorization.nil?
111
+ # resource path
112
+ local_var_path = "/2/manifestations".sub('{format}','json')
113
+
114
+ # query parameters
115
+ query_params = {}
116
+ query_params[:'work_id'] = opts[:'work_id'] if opts[:'work_id']
117
+ query_params[:'isbn'] = opts[:'isbn'] if opts[:'isbn']
118
+
119
+ # header parameters
120
+ header_params = {}
121
+
122
+ # HTTP header 'Accept' (if needed)
123
+ local_header_accept = ['application/vnd.api+json', 'application/json']
124
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
125
+
126
+ # HTTP header 'Content-Type'
127
+ local_header_content_type = ['application/json']
128
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
129
+ header_params[:'Authorization'] = authorization
130
+
131
+ # form parameters
132
+ form_params = {}
133
+
134
+ # http body (model)
135
+ post_body = nil
136
+ auth_names = ['Authorizer']
137
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
138
+ :header_params => header_params,
139
+ :query_params => query_params,
140
+ :form_params => form_params,
141
+ :body => post_body,
142
+ :auth_names => auth_names,
143
+ :return_type => 'ManifestationResultSet')
144
+ if @api_client.config.debugging
145
+ @api_client.config.logger.debug "API called: DefaultApi#manifestations_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
146
+ end
147
+ return data, status_code, headers
148
+ end
149
+
150
+ #
151
+ #
152
+ # @param manifestation_id
153
+ # @param authorization
154
+ # @param [Hash] opts the optional parameters
155
+ # @return [AssetResultSet]
156
+ def manifestations_manifestation_id_assets_get(manifestation_id, authorization, opts = {})
157
+ data, _status_code, _headers = manifestations_manifestation_id_assets_get_with_http_info(manifestation_id, authorization, opts)
158
+ return data
159
+ end
160
+
161
+ #
162
+ #
163
+ # @param manifestation_id
164
+ # @param authorization
165
+ # @param [Hash] opts the optional parameters
166
+ # @return [Array<(AssetResultSet, Fixnum, Hash)>] AssetResultSet data, response status code and response headers
167
+ def manifestations_manifestation_id_assets_get_with_http_info(manifestation_id, authorization, opts = {})
168
+ if @api_client.config.debugging
169
+ @api_client.config.logger.debug "Calling API: DefaultApi.manifestations_manifestation_id_assets_get ..."
170
+ end
171
+ # verify the required parameter 'manifestation_id' is set
172
+ fail ArgumentError, "Missing the required parameter 'manifestation_id' when calling DefaultApi.manifestations_manifestation_id_assets_get" if manifestation_id.nil?
173
+ # verify the required parameter 'authorization' is set
174
+ fail ArgumentError, "Missing the required parameter 'authorization' when calling DefaultApi.manifestations_manifestation_id_assets_get" if authorization.nil?
175
+ # resource path
176
+ local_var_path = "/2/manifestations/{manifestationId}/assets".sub('{format}','json').sub('{' + 'manifestationId' + '}', manifestation_id.to_s)
177
+
178
+ # query parameters
179
+ query_params = {}
180
+
181
+ # header parameters
182
+ header_params = {}
183
+
184
+ # HTTP header 'Accept' (if needed)
185
+ local_header_accept = ['application/vnd.api+json', 'application/json']
186
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
187
+
188
+ # HTTP header 'Content-Type'
189
+ local_header_content_type = ['application/json']
190
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
191
+ header_params[:'Authorization'] = authorization
192
+
193
+ # form parameters
194
+ form_params = {}
195
+
196
+ # http body (model)
197
+ post_body = nil
198
+ auth_names = ['Authorizer']
199
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
200
+ :header_params => header_params,
201
+ :query_params => query_params,
202
+ :form_params => form_params,
203
+ :body => post_body,
204
+ :auth_names => auth_names,
205
+ :return_type => 'AssetResultSet')
206
+ if @api_client.config.debugging
207
+ @api_client.config.logger.debug "API called: DefaultApi#manifestations_manifestation_id_assets_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
208
+ end
209
+ return data, status_code, headers
210
+ end
211
+
212
+ #
213
+ #
214
+ # @param manifestation_id
215
+ # @param authorization
216
+ # @param asset
217
+ # @param [Hash] opts the optional parameters
218
+ # @return [Asset]
219
+ def manifestations_manifestation_id_assets_post(manifestation_id, authorization, asset, opts = {})
220
+ data, _status_code, _headers = manifestations_manifestation_id_assets_post_with_http_info(manifestation_id, authorization, asset, opts)
221
+ return data
222
+ end
223
+
224
+ #
225
+ #
226
+ # @param manifestation_id
227
+ # @param authorization
228
+ # @param asset
229
+ # @param [Hash] opts the optional parameters
230
+ # @return [Array<(Asset, Fixnum, Hash)>] Asset data, response status code and response headers
231
+ def manifestations_manifestation_id_assets_post_with_http_info(manifestation_id, authorization, asset, opts = {})
232
+ if @api_client.config.debugging
233
+ @api_client.config.logger.debug "Calling API: DefaultApi.manifestations_manifestation_id_assets_post ..."
234
+ end
235
+ # verify the required parameter 'manifestation_id' is set
236
+ fail ArgumentError, "Missing the required parameter 'manifestation_id' when calling DefaultApi.manifestations_manifestation_id_assets_post" if manifestation_id.nil?
237
+ # verify the required parameter 'authorization' is set
238
+ fail ArgumentError, "Missing the required parameter 'authorization' when calling DefaultApi.manifestations_manifestation_id_assets_post" if authorization.nil?
239
+ # verify the required parameter 'asset' is set
240
+ fail ArgumentError, "Missing the required parameter 'asset' when calling DefaultApi.manifestations_manifestation_id_assets_post" if asset.nil?
241
+ # resource path
242
+ local_var_path = "/2/manifestations/{manifestationId}/assets".sub('{format}','json').sub('{' + 'manifestationId' + '}', manifestation_id.to_s)
243
+
244
+ # query parameters
245
+ query_params = {}
246
+
247
+ # header parameters
248
+ header_params = {}
249
+
250
+ # HTTP header 'Accept' (if needed)
251
+ local_header_accept = ['application/vnd.api+json', 'application/json']
252
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
253
+
254
+ # HTTP header 'Content-Type'
255
+ local_header_content_type = ['application/vnd.api+json', 'application/json']
256
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
257
+ header_params[:'Authorization'] = authorization
258
+
259
+ # form parameters
260
+ form_params = {}
261
+
262
+ # http body (model)
263
+ post_body = @api_client.object_to_http_body(asset)
264
+ auth_names = ['Authorizer']
265
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
266
+ :header_params => header_params,
267
+ :query_params => query_params,
268
+ :form_params => form_params,
269
+ :body => post_body,
270
+ :auth_names => auth_names,
271
+ :return_type => 'Asset')
272
+ if @api_client.config.debugging
273
+ @api_client.config.logger.debug "API called: DefaultApi#manifestations_manifestation_id_assets_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
274
+ end
275
+ return data, status_code, headers
276
+ end
277
+
278
+ #
279
+ #
280
+ # @param manifestation_id
281
+ # @param authorization
282
+ # @param [Hash] opts the optional parameters
283
+ # @return [nil]
284
+ def manifestations_manifestation_id_get(manifestation_id, authorization, opts = {})
285
+ manifestations_manifestation_id_get_with_http_info(manifestation_id, authorization, opts)
286
+ return nil
287
+ end
288
+
289
+ #
290
+ #
291
+ # @param manifestation_id
292
+ # @param authorization
293
+ # @param [Hash] opts the optional parameters
294
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
295
+ def manifestations_manifestation_id_get_with_http_info(manifestation_id, authorization, opts = {})
296
+ if @api_client.config.debugging
297
+ @api_client.config.logger.debug "Calling API: DefaultApi.manifestations_manifestation_id_get ..."
298
+ end
299
+ # verify the required parameter 'manifestation_id' is set
300
+ fail ArgumentError, "Missing the required parameter 'manifestation_id' when calling DefaultApi.manifestations_manifestation_id_get" if manifestation_id.nil?
301
+ # verify the required parameter 'authorization' is set
302
+ fail ArgumentError, "Missing the required parameter 'authorization' when calling DefaultApi.manifestations_manifestation_id_get" if authorization.nil?
303
+ # resource path
304
+ local_var_path = "/2/manifestations/{manifestationId}".sub('{format}','json').sub('{' + 'manifestationId' + '}', manifestation_id.to_s)
305
+
306
+ # query parameters
307
+ query_params = {}
308
+
309
+ # header parameters
310
+ header_params = {}
311
+
312
+ # HTTP header 'Accept' (if needed)
313
+ local_header_accept = ['application/vnd.api+json']
314
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
315
+
316
+ # HTTP header 'Content-Type'
317
+ local_header_content_type = ['application/json']
318
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
319
+ header_params[:'Authorization'] = authorization
320
+
321
+ # form parameters
322
+ form_params = {}
323
+
324
+ # http body (model)
325
+ post_body = nil
326
+ auth_names = ['Authorizer']
327
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
328
+ :header_params => header_params,
329
+ :query_params => query_params,
330
+ :form_params => form_params,
331
+ :body => post_body,
332
+ :auth_names => auth_names)
333
+ if @api_client.config.debugging
334
+ @api_client.config.logger.debug "API called: DefaultApi#manifestations_manifestation_id_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
335
+ end
336
+ return data, status_code, headers
337
+ end
338
+
339
+ #
340
+ #
341
+ # @param manifestation_id
342
+ # @param authorization
343
+ # @param tenant_code
344
+ # @param [Hash] opts the optional parameters
345
+ # @return [ItemResultSet]
346
+ def manifestations_manifestation_id_items_tenant_code_get(manifestation_id, authorization, tenant_code, opts = {})
347
+ data, _status_code, _headers = manifestations_manifestation_id_items_tenant_code_get_with_http_info(manifestation_id, authorization, tenant_code, opts)
348
+ return data
349
+ end
350
+
351
+ #
352
+ #
353
+ # @param manifestation_id
354
+ # @param authorization
355
+ # @param tenant_code
356
+ # @param [Hash] opts the optional parameters
357
+ # @return [Array<(ItemResultSet, Fixnum, Hash)>] ItemResultSet data, response status code and response headers
358
+ def manifestations_manifestation_id_items_tenant_code_get_with_http_info(manifestation_id, authorization, tenant_code, opts = {})
359
+ if @api_client.config.debugging
360
+ @api_client.config.logger.debug "Calling API: DefaultApi.manifestations_manifestation_id_items_tenant_code_get ..."
361
+ end
362
+ # verify the required parameter 'manifestation_id' is set
363
+ fail ArgumentError, "Missing the required parameter 'manifestation_id' when calling DefaultApi.manifestations_manifestation_id_items_tenant_code_get" if manifestation_id.nil?
364
+ # verify the required parameter 'authorization' is set
365
+ fail ArgumentError, "Missing the required parameter 'authorization' when calling DefaultApi.manifestations_manifestation_id_items_tenant_code_get" if authorization.nil?
366
+ # verify the required parameter 'tenant_code' is set
367
+ fail ArgumentError, "Missing the required parameter 'tenant_code' when calling DefaultApi.manifestations_manifestation_id_items_tenant_code_get" if tenant_code.nil?
368
+ # resource path
369
+ local_var_path = "/2/manifestations/{manifestationId}/items/{tenantCode}".sub('{format}','json').sub('{' + 'manifestationId' + '}', manifestation_id.to_s).sub('{' + 'tenantCode' + '}', tenant_code.to_s)
370
+
371
+ # query parameters
372
+ query_params = {}
373
+
374
+ # header parameters
375
+ header_params = {}
376
+
377
+ # HTTP header 'Accept' (if needed)
378
+ local_header_accept = ['application/vnd.api+json']
379
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
380
+
381
+ # HTTP header 'Content-Type'
382
+ local_header_content_type = ['application/json']
383
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
384
+ header_params[:'Authorization'] = authorization
385
+
386
+ # form parameters
387
+ form_params = {}
388
+
389
+ # http body (model)
390
+ post_body = nil
391
+ auth_names = ['Authorizer']
392
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
393
+ :header_params => header_params,
394
+ :query_params => query_params,
395
+ :form_params => form_params,
396
+ :body => post_body,
397
+ :auth_names => auth_names,
398
+ :return_type => 'ItemResultSet')
399
+ if @api_client.config.debugging
400
+ @api_client.config.logger.debug "API called: DefaultApi#manifestations_manifestation_id_items_tenant_code_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
401
+ end
402
+ return data, status_code, headers
403
+ end
404
+
405
+ #
406
+ #
407
+ # @param manifestation_id
408
+ # @param authorization
409
+ # @param [Hash] opts the optional parameters
410
+ # @return [nil]
411
+ def manifestations_manifestation_id_works_get(manifestation_id, authorization, opts = {})
412
+ manifestations_manifestation_id_works_get_with_http_info(manifestation_id, authorization, opts)
413
+ return nil
414
+ end
415
+
416
+ #
417
+ #
418
+ # @param manifestation_id
419
+ # @param authorization
420
+ # @param [Hash] opts the optional parameters
421
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
422
+ def manifestations_manifestation_id_works_get_with_http_info(manifestation_id, authorization, opts = {})
423
+ if @api_client.config.debugging
424
+ @api_client.config.logger.debug "Calling API: DefaultApi.manifestations_manifestation_id_works_get ..."
425
+ end
426
+ # verify the required parameter 'manifestation_id' is set
427
+ fail ArgumentError, "Missing the required parameter 'manifestation_id' when calling DefaultApi.manifestations_manifestation_id_works_get" if manifestation_id.nil?
428
+ # verify the required parameter 'authorization' is set
429
+ fail ArgumentError, "Missing the required parameter 'authorization' when calling DefaultApi.manifestations_manifestation_id_works_get" if authorization.nil?
430
+ # resource path
431
+ local_var_path = "/2/manifestations/{manifestationId}/works".sub('{format}','json').sub('{' + 'manifestationId' + '}', manifestation_id.to_s)
432
+
433
+ # query parameters
434
+ query_params = {}
435
+
436
+ # header parameters
437
+ header_params = {}
438
+
439
+ # HTTP header 'Accept' (if needed)
440
+ local_header_accept = ['application/vnd.api+json']
441
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
442
+
443
+ # HTTP header 'Content-Type'
444
+ local_header_content_type = ['application/json']
445
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
446
+ header_params[:'Authorization'] = authorization
447
+
448
+ # form parameters
449
+ form_params = {}
450
+
451
+ # http body (model)
452
+ post_body = nil
453
+ auth_names = ['Authorizer']
454
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
455
+ :header_params => header_params,
456
+ :query_params => query_params,
457
+ :form_params => form_params,
458
+ :body => post_body,
459
+ :auth_names => auth_names)
460
+ if @api_client.config.debugging
461
+ @api_client.config.logger.debug "API called: DefaultApi#manifestations_manifestation_id_works_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
462
+ end
463
+ return data, status_code, headers
464
+ end
465
+
466
+ #
467
+ #
468
+ # @param limit
469
+ # @param offset
470
+ # @param q
471
+ # @param authorization
472
+ # @param [Hash] opts the optional parameters
473
+ # @option opts [String] :include
474
+ # @return [WorkResultSet]
475
+ def works_get(limit, offset, q, authorization, opts = {})
476
+ data, _status_code, _headers = works_get_with_http_info(limit, offset, q, authorization, opts)
477
+ return data
478
+ end
479
+
480
+ #
481
+ #
482
+ # @param limit
483
+ # @param offset
484
+ # @param q
485
+ # @param authorization
486
+ # @param [Hash] opts the optional parameters
487
+ # @option opts [String] :include
488
+ # @return [Array<(WorkResultSet, Fixnum, Hash)>] WorkResultSet data, response status code and response headers
489
+ def works_get_with_http_info(limit, offset, q, authorization, opts = {})
490
+ if @api_client.config.debugging
491
+ @api_client.config.logger.debug "Calling API: DefaultApi.works_get ..."
492
+ end
493
+ # verify the required parameter 'limit' is set
494
+ fail ArgumentError, "Missing the required parameter 'limit' when calling DefaultApi.works_get" if limit.nil?
495
+ # verify the required parameter 'offset' is set
496
+ fail ArgumentError, "Missing the required parameter 'offset' when calling DefaultApi.works_get" if offset.nil?
497
+ # verify the required parameter 'q' is set
498
+ fail ArgumentError, "Missing the required parameter 'q' when calling DefaultApi.works_get" if q.nil?
499
+ # verify the required parameter 'authorization' is set
500
+ fail ArgumentError, "Missing the required parameter 'authorization' when calling DefaultApi.works_get" if authorization.nil?
501
+ # resource path
502
+ local_var_path = "/2/works".sub('{format}','json')
503
+
504
+ # query parameters
505
+ query_params = {}
506
+ query_params[:'limit'] = limit
507
+ query_params[:'offset'] = offset
508
+ query_params[:'q'] = q
509
+ query_params[:'include'] = opts[:'include'] if opts[:'include']
510
+
511
+ # header parameters
512
+ header_params = {}
513
+
514
+ # HTTP header 'Accept' (if needed)
515
+ local_header_accept = ['application/vnd.api+json', 'application/json']
516
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
517
+
518
+ # HTTP header 'Content-Type'
519
+ local_header_content_type = ['application/json']
520
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
521
+ header_params[:'Authorization'] = authorization
522
+
523
+ # form parameters
524
+ form_params = {}
525
+
526
+ # http body (model)
527
+ post_body = nil
528
+ auth_names = ['Authorizer']
529
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
530
+ :header_params => header_params,
531
+ :query_params => query_params,
532
+ :form_params => form_params,
533
+ :body => post_body,
534
+ :auth_names => auth_names,
535
+ :return_type => 'WorkResultSet')
536
+ if @api_client.config.debugging
537
+ @api_client.config.logger.debug "API called: DefaultApi#works_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
538
+ end
539
+ return data, status_code, headers
540
+ end
541
+
542
+ #
543
+ #
544
+ # @param work_id
545
+ # @param authorization
546
+ # @param [Hash] opts the optional parameters
547
+ # @return [AssetResultSet]
548
+ def works_work_id_assets_get(work_id, authorization, opts = {})
549
+ data, _status_code, _headers = works_work_id_assets_get_with_http_info(work_id, authorization, opts)
550
+ return data
551
+ end
552
+
553
+ #
554
+ #
555
+ # @param work_id
556
+ # @param authorization
557
+ # @param [Hash] opts the optional parameters
558
+ # @return [Array<(AssetResultSet, Fixnum, Hash)>] AssetResultSet data, response status code and response headers
559
+ def works_work_id_assets_get_with_http_info(work_id, authorization, opts = {})
560
+ if @api_client.config.debugging
561
+ @api_client.config.logger.debug "Calling API: DefaultApi.works_work_id_assets_get ..."
562
+ end
563
+ # verify the required parameter 'work_id' is set
564
+ fail ArgumentError, "Missing the required parameter 'work_id' when calling DefaultApi.works_work_id_assets_get" if work_id.nil?
565
+ # verify the required parameter 'authorization' is set
566
+ fail ArgumentError, "Missing the required parameter 'authorization' when calling DefaultApi.works_work_id_assets_get" if authorization.nil?
567
+ # resource path
568
+ local_var_path = "/2/works/{workId}/assets".sub('{format}','json').sub('{' + 'workId' + '}', work_id.to_s)
569
+
570
+ # query parameters
571
+ query_params = {}
572
+
573
+ # header parameters
574
+ header_params = {}
575
+
576
+ # HTTP header 'Accept' (if needed)
577
+ local_header_accept = ['application/vnd.api+json', 'application/json']
578
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
579
+
580
+ # HTTP header 'Content-Type'
581
+ local_header_content_type = ['application/json']
582
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
583
+ header_params[:'Authorization'] = authorization
584
+
585
+ # form parameters
586
+ form_params = {}
587
+
588
+ # http body (model)
589
+ post_body = nil
590
+ auth_names = ['Authorizer']
591
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
592
+ :header_params => header_params,
593
+ :query_params => query_params,
594
+ :form_params => form_params,
595
+ :body => post_body,
596
+ :auth_names => auth_names,
597
+ :return_type => 'AssetResultSet')
598
+ if @api_client.config.debugging
599
+ @api_client.config.logger.debug "API called: DefaultApi#works_work_id_assets_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
600
+ end
601
+ return data, status_code, headers
602
+ end
603
+
604
+ #
605
+ #
606
+ # @param work_id
607
+ # @param authorization
608
+ # @param [Hash] opts the optional parameters
609
+ # @return [nil]
610
+ def works_work_id_manifestations_get(work_id, authorization, opts = {})
611
+ works_work_id_manifestations_get_with_http_info(work_id, authorization, opts)
612
+ return nil
613
+ end
614
+
615
+ #
616
+ #
617
+ # @param work_id
618
+ # @param authorization
619
+ # @param [Hash] opts the optional parameters
620
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
621
+ def works_work_id_manifestations_get_with_http_info(work_id, authorization, opts = {})
622
+ if @api_client.config.debugging
623
+ @api_client.config.logger.debug "Calling API: DefaultApi.works_work_id_manifestations_get ..."
624
+ end
625
+ # verify the required parameter 'work_id' is set
626
+ fail ArgumentError, "Missing the required parameter 'work_id' when calling DefaultApi.works_work_id_manifestations_get" if work_id.nil?
627
+ # verify the required parameter 'authorization' is set
628
+ fail ArgumentError, "Missing the required parameter 'authorization' when calling DefaultApi.works_work_id_manifestations_get" if authorization.nil?
629
+ # resource path
630
+ local_var_path = "/2/works/{workId}/manifestations".sub('{format}','json').sub('{' + 'workId' + '}', work_id.to_s)
631
+
632
+ # query parameters
633
+ query_params = {}
634
+
635
+ # header parameters
636
+ header_params = {}
637
+
638
+ # HTTP header 'Accept' (if needed)
639
+ local_header_accept = ['application/vnd.api+json']
640
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
641
+
642
+ # HTTP header 'Content-Type'
643
+ local_header_content_type = ['application/json']
644
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
645
+ header_params[:'Authorization'] = authorization
646
+
647
+ # form parameters
648
+ form_params = {}
649
+
650
+ # http body (model)
651
+ post_body = nil
652
+ auth_names = ['Authorizer']
653
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
654
+ :header_params => header_params,
655
+ :query_params => query_params,
656
+ :form_params => form_params,
657
+ :body => post_body,
658
+ :auth_names => auth_names)
659
+ if @api_client.config.debugging
660
+ @api_client.config.logger.debug "API called: DefaultApi#works_work_id_manifestations_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
661
+ end
662
+ return data, status_code, headers
663
+ end
664
+
665
+ #
666
+ #
667
+ # @param work_id
668
+ # @param authorization
669
+ # @param [Hash] opts the optional parameters
670
+ # @return [WorkResultSet]
671
+ def works_work_id_similar_get(work_id, authorization, opts = {})
672
+ data, _status_code, _headers = works_work_id_similar_get_with_http_info(work_id, authorization, opts)
673
+ return data
674
+ end
675
+
676
+ #
677
+ #
678
+ # @param work_id
679
+ # @param authorization
680
+ # @param [Hash] opts the optional parameters
681
+ # @return [Array<(WorkResultSet, Fixnum, Hash)>] WorkResultSet data, response status code and response headers
682
+ def works_work_id_similar_get_with_http_info(work_id, authorization, opts = {})
683
+ if @api_client.config.debugging
684
+ @api_client.config.logger.debug "Calling API: DefaultApi.works_work_id_similar_get ..."
685
+ end
686
+ # verify the required parameter 'work_id' is set
687
+ fail ArgumentError, "Missing the required parameter 'work_id' when calling DefaultApi.works_work_id_similar_get" if work_id.nil?
688
+ # verify the required parameter 'authorization' is set
689
+ fail ArgumentError, "Missing the required parameter 'authorization' when calling DefaultApi.works_work_id_similar_get" if authorization.nil?
690
+ # resource path
691
+ local_var_path = "/2/works/{workId}/similar".sub('{format}','json').sub('{' + 'workId' + '}', work_id.to_s)
692
+
693
+ # query parameters
694
+ query_params = {}
695
+
696
+ # header parameters
697
+ header_params = {}
698
+
699
+ # HTTP header 'Accept' (if needed)
700
+ local_header_accept = ['application/vnd.api+json']
701
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
702
+
703
+ # HTTP header 'Content-Type'
704
+ local_header_content_type = ['application/json']
705
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
706
+ header_params[:'Authorization'] = authorization
707
+
708
+ # form parameters
709
+ form_params = {}
710
+
711
+ # http body (model)
712
+ post_body = nil
713
+ auth_names = ['Authorizer']
714
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
715
+ :header_params => header_params,
716
+ :query_params => query_params,
717
+ :form_params => form_params,
718
+ :body => post_body,
719
+ :auth_names => auth_names,
720
+ :return_type => 'WorkResultSet')
721
+ if @api_client.config.debugging
722
+ @api_client.config.logger.debug "API called: DefaultApi#works_work_id_similar_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
723
+ end
724
+ return data, status_code, headers
725
+ end
726
+ end
727
+ end