dock_genius_api_ruby_client 0.1.1.pre.g582ac6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (59) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE +201 -0
  3. data/README.md +200 -0
  4. data/dock_genius_api_ruby_client.gemspec +55 -0
  5. data/docs/AccessToken.md +11 -0
  6. data/docs/Address.md +16 -0
  7. data/docs/Customer.md +22 -0
  8. data/docs/CustomerApi.md +1938 -0
  9. data/docs/Dock.md +20 -0
  10. data/docs/DockApi.md +1112 -0
  11. data/docs/EmailAddress.md +9 -0
  12. data/docs/GeoPoint.md +9 -0
  13. data/docs/InlineResponse200.md +8 -0
  14. data/docs/InlineResponse2001.md +8 -0
  15. data/docs/InlineResponse2002.md +8 -0
  16. data/docs/ListingAgent.md +12 -0
  17. data/docs/Marina.md +15 -0
  18. data/docs/MarinaApi.md +1602 -0
  19. data/docs/Phone.md +9 -0
  20. data/git_push.sh +67 -0
  21. data/lib/dock_genius_api_ruby_client/api/customer_api.rb +2363 -0
  22. data/lib/dock_genius_api_ruby_client/api/dock_api.rb +1352 -0
  23. data/lib/dock_genius_api_ruby_client/api/marina_api.rb +1945 -0
  24. data/lib/dock_genius_api_ruby_client/api_client.rb +378 -0
  25. data/lib/dock_genius_api_ruby_client/api_error.rb +47 -0
  26. data/lib/dock_genius_api_ruby_client/configuration.rb +207 -0
  27. data/lib/dock_genius_api_ruby_client/models/access_token.rb +230 -0
  28. data/lib/dock_genius_api_ruby_client/models/address.rb +281 -0
  29. data/lib/dock_genius_api_ruby_client/models/customer.rb +330 -0
  30. data/lib/dock_genius_api_ruby_client/models/dock.rb +327 -0
  31. data/lib/dock_genius_api_ruby_client/models/email_address.rb +208 -0
  32. data/lib/dock_genius_api_ruby_client/models/geo_point.rb +208 -0
  33. data/lib/dock_genius_api_ruby_client/models/inline_response_200.rb +199 -0
  34. data/lib/dock_genius_api_ruby_client/models/inline_response_200_1.rb +200 -0
  35. data/lib/dock_genius_api_ruby_client/models/inline_response_200_2.rb +199 -0
  36. data/lib/dock_genius_api_ruby_client/models/listing_agent.rb +239 -0
  37. data/lib/dock_genius_api_ruby_client/models/marina.rb +263 -0
  38. data/lib/dock_genius_api_ruby_client/models/phone.rb +209 -0
  39. data/lib/dock_genius_api_ruby_client/version.rb +26 -0
  40. data/lib/dock_genius_api_ruby_client.rb +65 -0
  41. data/spec/api/customer_api_spec.rb +551 -0
  42. data/spec/api/dock_api_spec.rb +332 -0
  43. data/spec/api/marina_api_spec.rb +461 -0
  44. data/spec/api_client_spec.rb +237 -0
  45. data/spec/configuration_spec.rb +53 -0
  46. data/spec/models/access_token_spec.rb +71 -0
  47. data/spec/models/address_spec.rb +101 -0
  48. data/spec/models/customer_spec.rb +137 -0
  49. data/spec/models/dock_spec.rb +125 -0
  50. data/spec/models/email_address_spec.rb +59 -0
  51. data/spec/models/geo_point_spec.rb +59 -0
  52. data/spec/models/inline_response_200_1_spec.rb +53 -0
  53. data/spec/models/inline_response_200_2_spec.rb +53 -0
  54. data/spec/models/inline_response_200_spec.rb +53 -0
  55. data/spec/models/listing_agent_spec.rb +77 -0
  56. data/spec/models/marina_spec.rb +95 -0
  57. data/spec/models/phone_spec.rb +59 -0
  58. data/spec/spec_helper.rb +122 -0
  59. metadata +299 -0
@@ -0,0 +1,1352 @@
1
+ =begin
2
+ #dockgenius-sl
3
+
4
+ #No descripton provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
5
+
6
+ OpenAPI spec version: 0.1.0
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+
10
+ Licensed under the Apache License, Version 2.0 (the "License");
11
+ you may not use this file except in compliance with the License.
12
+ You may obtain a copy of the License at
13
+
14
+ http://www.apache.org/licenses/LICENSE-2.0
15
+
16
+ Unless required by applicable law or agreed to in writing, software
17
+ distributed under the License is distributed on an "AS IS" BASIS,
18
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19
+ See the License for the specific language governing permissions and
20
+ limitations under the License.
21
+
22
+ =end
23
+
24
+ require "uri"
25
+
26
+ module DockGeniusApiRubyClient
27
+ class DockApi
28
+ attr_accessor :api_client
29
+
30
+ def initialize(api_client = ApiClient.default)
31
+ @api_client = api_client
32
+ end
33
+
34
+ # Count instances of the model matched by where from the data source.
35
+ #
36
+ # @param [Hash] opts the optional parameters
37
+ # @option opts [String] :where Criteria to match model instances
38
+ # @return [InlineResponse200]
39
+ def dock_count(opts = {})
40
+ data, _status_code, _headers = dock_count_with_http_info(opts)
41
+ return data
42
+ end
43
+
44
+ # Count instances of the model matched by where from the data source.
45
+ #
46
+ # @param [Hash] opts the optional parameters
47
+ # @option opts [String] :where Criteria to match model instances
48
+ # @return [Array<(InlineResponse200, Fixnum, Hash)>] InlineResponse200 data, response status code and response headers
49
+ def dock_count_with_http_info(opts = {})
50
+ if @api_client.config.debugging
51
+ @api_client.config.logger.debug "Calling API: DockApi.dock_count ..."
52
+ end
53
+ # resource path
54
+ local_var_path = "/Docks/count".sub('{format}','json')
55
+
56
+ # query parameters
57
+ query_params = {}
58
+ query_params[:'where'] = opts[:'where'] if !opts[:'where'].nil?
59
+
60
+ # header parameters
61
+ header_params = {}
62
+
63
+ # HTTP header 'Accept' (if needed)
64
+ local_header_accept = ['application/json', 'application/xml', 'text/xml', 'application/javascript', 'text/javascript']
65
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
66
+
67
+ # HTTP header 'Content-Type'
68
+ local_header_content_type = ['application/json', 'application/x-www-form-urlencoded', 'application/xml', 'text/xml']
69
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
70
+
71
+ # form parameters
72
+ form_params = {}
73
+
74
+ # http body (model)
75
+ post_body = nil
76
+ auth_names = []
77
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
78
+ :header_params => header_params,
79
+ :query_params => query_params,
80
+ :form_params => form_params,
81
+ :body => post_body,
82
+ :auth_names => auth_names,
83
+ :return_type => 'InlineResponse200')
84
+ if @api_client.config.debugging
85
+ @api_client.config.logger.debug "API called: DockApi#dock_count\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
86
+ end
87
+ return data, status_code, headers
88
+ end
89
+
90
+ # Create a new instance of the model and persist it into the data source.
91
+ #
92
+ # @param [Hash] opts the optional parameters
93
+ # @option opts [Dock] :data Model instance data
94
+ # @return [Dock]
95
+ def dock_create(opts = {})
96
+ data, _status_code, _headers = dock_create_with_http_info(opts)
97
+ return data
98
+ end
99
+
100
+ # Create a new instance of the model and persist it into the data source.
101
+ #
102
+ # @param [Hash] opts the optional parameters
103
+ # @option opts [Dock] :data Model instance data
104
+ # @return [Array<(Dock, Fixnum, Hash)>] Dock data, response status code and response headers
105
+ def dock_create_with_http_info(opts = {})
106
+ if @api_client.config.debugging
107
+ @api_client.config.logger.debug "Calling API: DockApi.dock_create ..."
108
+ end
109
+ # resource path
110
+ local_var_path = "/Docks".sub('{format}','json')
111
+
112
+ # query parameters
113
+ query_params = {}
114
+
115
+ # header parameters
116
+ header_params = {}
117
+
118
+ # HTTP header 'Accept' (if needed)
119
+ local_header_accept = ['application/json', 'application/xml', 'text/xml', 'application/javascript', 'text/javascript']
120
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
121
+
122
+ # HTTP header 'Content-Type'
123
+ local_header_content_type = ['application/json', 'application/x-www-form-urlencoded', 'application/xml', 'text/xml']
124
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
125
+
126
+ # form parameters
127
+ form_params = {}
128
+
129
+ # http body (model)
130
+ post_body = @api_client.object_to_http_body(opts[:'data'])
131
+ auth_names = []
132
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
133
+ :header_params => header_params,
134
+ :query_params => query_params,
135
+ :form_params => form_params,
136
+ :body => post_body,
137
+ :auth_names => auth_names,
138
+ :return_type => 'Dock')
139
+ if @api_client.config.debugging
140
+ @api_client.config.logger.debug "API called: DockApi#dock_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
141
+ end
142
+ return data, status_code, headers
143
+ end
144
+
145
+ # Create a change stream.
146
+ #
147
+ # @param [Hash] opts the optional parameters
148
+ # @option opts [String] :options
149
+ # @return [File]
150
+ def dock_create_change_stream_get_docks_change_stream(opts = {})
151
+ data, _status_code, _headers = dock_create_change_stream_get_docks_change_stream_with_http_info(opts)
152
+ return data
153
+ end
154
+
155
+ # Create a change stream.
156
+ #
157
+ # @param [Hash] opts the optional parameters
158
+ # @option opts [String] :options
159
+ # @return [Array<(File, Fixnum, Hash)>] File data, response status code and response headers
160
+ def dock_create_change_stream_get_docks_change_stream_with_http_info(opts = {})
161
+ if @api_client.config.debugging
162
+ @api_client.config.logger.debug "Calling API: DockApi.dock_create_change_stream_get_docks_change_stream ..."
163
+ end
164
+ # resource path
165
+ local_var_path = "/Docks/change-stream".sub('{format}','json')
166
+
167
+ # query parameters
168
+ query_params = {}
169
+ query_params[:'options'] = opts[:'options'] if !opts[:'options'].nil?
170
+
171
+ # header parameters
172
+ header_params = {}
173
+
174
+ # HTTP header 'Accept' (if needed)
175
+ local_header_accept = ['application/json', 'application/xml', 'text/xml', 'application/javascript', 'text/javascript']
176
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
177
+
178
+ # HTTP header 'Content-Type'
179
+ local_header_content_type = ['application/json', 'application/x-www-form-urlencoded', 'application/xml', 'text/xml']
180
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
181
+
182
+ # form parameters
183
+ form_params = {}
184
+
185
+ # http body (model)
186
+ post_body = nil
187
+ auth_names = []
188
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
189
+ :header_params => header_params,
190
+ :query_params => query_params,
191
+ :form_params => form_params,
192
+ :body => post_body,
193
+ :auth_names => auth_names,
194
+ :return_type => 'File')
195
+ if @api_client.config.debugging
196
+ @api_client.config.logger.debug "API called: DockApi#dock_create_change_stream_get_docks_change_stream\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
197
+ end
198
+ return data, status_code, headers
199
+ end
200
+
201
+ # Create a change stream.
202
+ #
203
+ # @param [Hash] opts the optional parameters
204
+ # @option opts [String] :options
205
+ # @return [File]
206
+ def dock_create_change_stream_post_docks_change_stream(opts = {})
207
+ data, _status_code, _headers = dock_create_change_stream_post_docks_change_stream_with_http_info(opts)
208
+ return data
209
+ end
210
+
211
+ # Create a change stream.
212
+ #
213
+ # @param [Hash] opts the optional parameters
214
+ # @option opts [String] :options
215
+ # @return [Array<(File, Fixnum, Hash)>] File data, response status code and response headers
216
+ def dock_create_change_stream_post_docks_change_stream_with_http_info(opts = {})
217
+ if @api_client.config.debugging
218
+ @api_client.config.logger.debug "Calling API: DockApi.dock_create_change_stream_post_docks_change_stream ..."
219
+ end
220
+ # resource path
221
+ local_var_path = "/Docks/change-stream".sub('{format}','json')
222
+
223
+ # query parameters
224
+ query_params = {}
225
+
226
+ # header parameters
227
+ header_params = {}
228
+
229
+ # HTTP header 'Accept' (if needed)
230
+ local_header_accept = ['application/json', 'application/xml', 'text/xml', 'application/javascript', 'text/javascript']
231
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
232
+
233
+ # HTTP header 'Content-Type'
234
+ local_header_content_type = ['application/json', 'application/x-www-form-urlencoded', 'application/xml', 'text/xml']
235
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
236
+
237
+ # form parameters
238
+ form_params = {}
239
+ form_params["options"] = opts[:'options'] if !opts[:'options'].nil?
240
+
241
+ # http body (model)
242
+ post_body = nil
243
+ auth_names = []
244
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
245
+ :header_params => header_params,
246
+ :query_params => query_params,
247
+ :form_params => form_params,
248
+ :body => post_body,
249
+ :auth_names => auth_names,
250
+ :return_type => 'File')
251
+ if @api_client.config.debugging
252
+ @api_client.config.logger.debug "API called: DockApi#dock_create_change_stream_post_docks_change_stream\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
253
+ end
254
+ return data, status_code, headers
255
+ end
256
+
257
+ # Delete a model instance by {{id}} from the data source.
258
+ #
259
+ # @param id Model id
260
+ # @param [Hash] opts the optional parameters
261
+ # @return [Object]
262
+ def dock_delete_by_id(id, opts = {})
263
+ data, _status_code, _headers = dock_delete_by_id_with_http_info(id, opts)
264
+ return data
265
+ end
266
+
267
+ # Delete a model instance by {{id}} from the data source.
268
+ #
269
+ # @param id Model id
270
+ # @param [Hash] opts the optional parameters
271
+ # @return [Array<(Object, Fixnum, Hash)>] Object data, response status code and response headers
272
+ def dock_delete_by_id_with_http_info(id, opts = {})
273
+ if @api_client.config.debugging
274
+ @api_client.config.logger.debug "Calling API: DockApi.dock_delete_by_id ..."
275
+ end
276
+ # verify the required parameter 'id' is set
277
+ fail ArgumentError, "Missing the required parameter 'id' when calling DockApi.dock_delete_by_id" if id.nil?
278
+ # resource path
279
+ local_var_path = "/Docks/{id}".sub('{format}','json').sub('{' + 'id' + '}', id.to_s)
280
+
281
+ # query parameters
282
+ query_params = {}
283
+
284
+ # header parameters
285
+ header_params = {}
286
+
287
+ # HTTP header 'Accept' (if needed)
288
+ local_header_accept = ['application/json', 'application/xml', 'text/xml', 'application/javascript', 'text/javascript']
289
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
290
+
291
+ # HTTP header 'Content-Type'
292
+ local_header_content_type = ['application/json', 'application/x-www-form-urlencoded', 'application/xml', 'text/xml']
293
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
294
+
295
+ # form parameters
296
+ form_params = {}
297
+
298
+ # http body (model)
299
+ post_body = nil
300
+ auth_names = []
301
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
302
+ :header_params => header_params,
303
+ :query_params => query_params,
304
+ :form_params => form_params,
305
+ :body => post_body,
306
+ :auth_names => auth_names,
307
+ :return_type => 'Object')
308
+ if @api_client.config.debugging
309
+ @api_client.config.logger.debug "API called: DockApi#dock_delete_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
310
+ end
311
+ return data, status_code, headers
312
+ end
313
+
314
+ # Check whether a model instance exists in the data source.
315
+ #
316
+ # @param id Model id
317
+ # @param [Hash] opts the optional parameters
318
+ # @return [InlineResponse2002]
319
+ def dock_exists_get_docksid_exists(id, opts = {})
320
+ data, _status_code, _headers = dock_exists_get_docksid_exists_with_http_info(id, opts)
321
+ return data
322
+ end
323
+
324
+ # Check whether a model instance exists in the data source.
325
+ #
326
+ # @param id Model id
327
+ # @param [Hash] opts the optional parameters
328
+ # @return [Array<(InlineResponse2002, Fixnum, Hash)>] InlineResponse2002 data, response status code and response headers
329
+ def dock_exists_get_docksid_exists_with_http_info(id, opts = {})
330
+ if @api_client.config.debugging
331
+ @api_client.config.logger.debug "Calling API: DockApi.dock_exists_get_docksid_exists ..."
332
+ end
333
+ # verify the required parameter 'id' is set
334
+ fail ArgumentError, "Missing the required parameter 'id' when calling DockApi.dock_exists_get_docksid_exists" if id.nil?
335
+ # resource path
336
+ local_var_path = "/Docks/{id}/exists".sub('{format}','json').sub('{' + 'id' + '}', id.to_s)
337
+
338
+ # query parameters
339
+ query_params = {}
340
+
341
+ # header parameters
342
+ header_params = {}
343
+
344
+ # HTTP header 'Accept' (if needed)
345
+ local_header_accept = ['application/json', 'application/xml', 'text/xml', 'application/javascript', 'text/javascript']
346
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
347
+
348
+ # HTTP header 'Content-Type'
349
+ local_header_content_type = ['application/json', 'application/x-www-form-urlencoded', 'application/xml', 'text/xml']
350
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
351
+
352
+ # form parameters
353
+ form_params = {}
354
+
355
+ # http body (model)
356
+ post_body = nil
357
+ auth_names = []
358
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
359
+ :header_params => header_params,
360
+ :query_params => query_params,
361
+ :form_params => form_params,
362
+ :body => post_body,
363
+ :auth_names => auth_names,
364
+ :return_type => 'InlineResponse2002')
365
+ if @api_client.config.debugging
366
+ @api_client.config.logger.debug "API called: DockApi#dock_exists_get_docksid_exists\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
367
+ end
368
+ return data, status_code, headers
369
+ end
370
+
371
+ # Check whether a model instance exists in the data source.
372
+ #
373
+ # @param id Model id
374
+ # @param [Hash] opts the optional parameters
375
+ # @return [InlineResponse2002]
376
+ def dock_exists_head_docksid(id, opts = {})
377
+ data, _status_code, _headers = dock_exists_head_docksid_with_http_info(id, opts)
378
+ return data
379
+ end
380
+
381
+ # Check whether a model instance exists in the data source.
382
+ #
383
+ # @param id Model id
384
+ # @param [Hash] opts the optional parameters
385
+ # @return [Array<(InlineResponse2002, Fixnum, Hash)>] InlineResponse2002 data, response status code and response headers
386
+ def dock_exists_head_docksid_with_http_info(id, opts = {})
387
+ if @api_client.config.debugging
388
+ @api_client.config.logger.debug "Calling API: DockApi.dock_exists_head_docksid ..."
389
+ end
390
+ # verify the required parameter 'id' is set
391
+ fail ArgumentError, "Missing the required parameter 'id' when calling DockApi.dock_exists_head_docksid" if id.nil?
392
+ # resource path
393
+ local_var_path = "/Docks/{id}".sub('{format}','json').sub('{' + 'id' + '}', id.to_s)
394
+
395
+ # query parameters
396
+ query_params = {}
397
+
398
+ # header parameters
399
+ header_params = {}
400
+
401
+ # HTTP header 'Accept' (if needed)
402
+ local_header_accept = ['application/json', 'application/xml', 'text/xml', 'application/javascript', 'text/javascript']
403
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
404
+
405
+ # HTTP header 'Content-Type'
406
+ local_header_content_type = ['application/json', 'application/x-www-form-urlencoded', 'application/xml', 'text/xml']
407
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
408
+
409
+ # form parameters
410
+ form_params = {}
411
+
412
+ # http body (model)
413
+ post_body = nil
414
+ auth_names = []
415
+ data, status_code, headers = @api_client.call_api(:HEAD, local_var_path,
416
+ :header_params => header_params,
417
+ :query_params => query_params,
418
+ :form_params => form_params,
419
+ :body => post_body,
420
+ :auth_names => auth_names,
421
+ :return_type => 'InlineResponse2002')
422
+ if @api_client.config.debugging
423
+ @api_client.config.logger.debug "API called: DockApi#dock_exists_head_docksid\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
424
+ end
425
+ return data, status_code, headers
426
+ end
427
+
428
+ # Find all instances of the model matched by filter from the data source.
429
+ #
430
+ # @param [Hash] opts the optional parameters
431
+ # @option opts [String] :filter Filter defining fields, where, include, order, offset, and limit
432
+ # @return [Array<Dock>]
433
+ def dock_find(opts = {})
434
+ data, _status_code, _headers = dock_find_with_http_info(opts)
435
+ return data
436
+ end
437
+
438
+ # Find all instances of the model matched by filter from the data source.
439
+ #
440
+ # @param [Hash] opts the optional parameters
441
+ # @option opts [String] :filter Filter defining fields, where, include, order, offset, and limit
442
+ # @return [Array<(Array<Dock>, Fixnum, Hash)>] Array<Dock> data, response status code and response headers
443
+ def dock_find_with_http_info(opts = {})
444
+ if @api_client.config.debugging
445
+ @api_client.config.logger.debug "Calling API: DockApi.dock_find ..."
446
+ end
447
+ # resource path
448
+ local_var_path = "/Docks".sub('{format}','json')
449
+
450
+ # query parameters
451
+ query_params = {}
452
+ query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil?
453
+
454
+ # header parameters
455
+ header_params = {}
456
+
457
+ # HTTP header 'Accept' (if needed)
458
+ local_header_accept = ['application/json', 'application/xml', 'text/xml', 'application/javascript', 'text/javascript']
459
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
460
+
461
+ # HTTP header 'Content-Type'
462
+ local_header_content_type = ['application/json', 'application/x-www-form-urlencoded', 'application/xml', 'text/xml']
463
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
464
+
465
+ # form parameters
466
+ form_params = {}
467
+
468
+ # http body (model)
469
+ post_body = nil
470
+ auth_names = []
471
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
472
+ :header_params => header_params,
473
+ :query_params => query_params,
474
+ :form_params => form_params,
475
+ :body => post_body,
476
+ :auth_names => auth_names,
477
+ :return_type => 'Array<Dock>')
478
+ if @api_client.config.debugging
479
+ @api_client.config.logger.debug "API called: DockApi#dock_find\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
480
+ end
481
+ return data, status_code, headers
482
+ end
483
+
484
+ # Find a model instance by {{id}} from the data source.
485
+ #
486
+ # @param id Model id
487
+ # @param [Hash] opts the optional parameters
488
+ # @option opts [String] :filter Filter defining fields and include
489
+ # @return [Dock]
490
+ def dock_find_by_id(id, opts = {})
491
+ data, _status_code, _headers = dock_find_by_id_with_http_info(id, opts)
492
+ return data
493
+ end
494
+
495
+ # Find a model instance by {{id}} from the data source.
496
+ #
497
+ # @param id Model id
498
+ # @param [Hash] opts the optional parameters
499
+ # @option opts [String] :filter Filter defining fields and include
500
+ # @return [Array<(Dock, Fixnum, Hash)>] Dock data, response status code and response headers
501
+ def dock_find_by_id_with_http_info(id, opts = {})
502
+ if @api_client.config.debugging
503
+ @api_client.config.logger.debug "Calling API: DockApi.dock_find_by_id ..."
504
+ end
505
+ # verify the required parameter 'id' is set
506
+ fail ArgumentError, "Missing the required parameter 'id' when calling DockApi.dock_find_by_id" if id.nil?
507
+ # resource path
508
+ local_var_path = "/Docks/{id}".sub('{format}','json').sub('{' + 'id' + '}', id.to_s)
509
+
510
+ # query parameters
511
+ query_params = {}
512
+ query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil?
513
+
514
+ # header parameters
515
+ header_params = {}
516
+
517
+ # HTTP header 'Accept' (if needed)
518
+ local_header_accept = ['application/json', 'application/xml', 'text/xml', 'application/javascript', 'text/javascript']
519
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
520
+
521
+ # HTTP header 'Content-Type'
522
+ local_header_content_type = ['application/json', 'application/x-www-form-urlencoded', 'application/xml', 'text/xml']
523
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
524
+
525
+ # form parameters
526
+ form_params = {}
527
+
528
+ # http body (model)
529
+ post_body = nil
530
+ auth_names = []
531
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
532
+ :header_params => header_params,
533
+ :query_params => query_params,
534
+ :form_params => form_params,
535
+ :body => post_body,
536
+ :auth_names => auth_names,
537
+ :return_type => 'Dock')
538
+ if @api_client.config.debugging
539
+ @api_client.config.logger.debug "API called: DockApi#dock_find_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
540
+ end
541
+ return data, status_code, headers
542
+ end
543
+
544
+ # Find first instance of the model matched by filter from the data source.
545
+ #
546
+ # @param [Hash] opts the optional parameters
547
+ # @option opts [String] :filter Filter defining fields, where, include, order, offset, and limit
548
+ # @return [Dock]
549
+ def dock_find_one(opts = {})
550
+ data, _status_code, _headers = dock_find_one_with_http_info(opts)
551
+ return data
552
+ end
553
+
554
+ # Find first instance of the model matched by filter from the data source.
555
+ #
556
+ # @param [Hash] opts the optional parameters
557
+ # @option opts [String] :filter Filter defining fields, where, include, order, offset, and limit
558
+ # @return [Array<(Dock, Fixnum, Hash)>] Dock data, response status code and response headers
559
+ def dock_find_one_with_http_info(opts = {})
560
+ if @api_client.config.debugging
561
+ @api_client.config.logger.debug "Calling API: DockApi.dock_find_one ..."
562
+ end
563
+ # resource path
564
+ local_var_path = "/Docks/findOne".sub('{format}','json')
565
+
566
+ # query parameters
567
+ query_params = {}
568
+ query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil?
569
+
570
+ # header parameters
571
+ header_params = {}
572
+
573
+ # HTTP header 'Accept' (if needed)
574
+ local_header_accept = ['application/json', 'application/xml', 'text/xml', 'application/javascript', 'text/javascript']
575
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
576
+
577
+ # HTTP header 'Content-Type'
578
+ local_header_content_type = ['application/json', 'application/x-www-form-urlencoded', 'application/xml', 'text/xml']
579
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
580
+
581
+ # form parameters
582
+ form_params = {}
583
+
584
+ # http body (model)
585
+ post_body = nil
586
+ auth_names = []
587
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
588
+ :header_params => header_params,
589
+ :query_params => query_params,
590
+ :form_params => form_params,
591
+ :body => post_body,
592
+ :auth_names => auth_names,
593
+ :return_type => 'Dock')
594
+ if @api_client.config.debugging
595
+ @api_client.config.logger.debug "API called: DockApi#dock_find_one\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
596
+ end
597
+ return data, status_code, headers
598
+ end
599
+
600
+ # Creates a new instance in listingAgent of this model.
601
+ #
602
+ # @param id PersistedModel id
603
+ # @param [Hash] opts the optional parameters
604
+ # @option opts [ListingAgent] :data
605
+ # @return [ListingAgent]
606
+ def dock_prototype_create_listing_agent(id, opts = {})
607
+ data, _status_code, _headers = dock_prototype_create_listing_agent_with_http_info(id, opts)
608
+ return data
609
+ end
610
+
611
+ # Creates a new instance in listingAgent of this model.
612
+ #
613
+ # @param id PersistedModel id
614
+ # @param [Hash] opts the optional parameters
615
+ # @option opts [ListingAgent] :data
616
+ # @return [Array<(ListingAgent, Fixnum, Hash)>] ListingAgent data, response status code and response headers
617
+ def dock_prototype_create_listing_agent_with_http_info(id, opts = {})
618
+ if @api_client.config.debugging
619
+ @api_client.config.logger.debug "Calling API: DockApi.dock_prototype_create_listing_agent ..."
620
+ end
621
+ # verify the required parameter 'id' is set
622
+ fail ArgumentError, "Missing the required parameter 'id' when calling DockApi.dock_prototype_create_listing_agent" if id.nil?
623
+ # resource path
624
+ local_var_path = "/Docks/{id}/listingAgent".sub('{format}','json').sub('{' + 'id' + '}', id.to_s)
625
+
626
+ # query parameters
627
+ query_params = {}
628
+
629
+ # header parameters
630
+ header_params = {}
631
+
632
+ # HTTP header 'Accept' (if needed)
633
+ local_header_accept = ['application/json', 'application/xml', 'text/xml', 'application/javascript', 'text/javascript']
634
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
635
+
636
+ # HTTP header 'Content-Type'
637
+ local_header_content_type = ['application/json', 'application/x-www-form-urlencoded', 'application/xml', 'text/xml']
638
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
639
+
640
+ # form parameters
641
+ form_params = {}
642
+
643
+ # http body (model)
644
+ post_body = @api_client.object_to_http_body(opts[:'data'])
645
+ auth_names = []
646
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
647
+ :header_params => header_params,
648
+ :query_params => query_params,
649
+ :form_params => form_params,
650
+ :body => post_body,
651
+ :auth_names => auth_names,
652
+ :return_type => 'ListingAgent')
653
+ if @api_client.config.debugging
654
+ @api_client.config.logger.debug "API called: DockApi#dock_prototype_create_listing_agent\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
655
+ end
656
+ return data, status_code, headers
657
+ end
658
+
659
+ # Deletes listingAgent of this model.
660
+ #
661
+ # @param id PersistedModel id
662
+ # @param [Hash] opts the optional parameters
663
+ # @return [nil]
664
+ def dock_prototype_destroy_listing_agent(id, opts = {})
665
+ dock_prototype_destroy_listing_agent_with_http_info(id, opts)
666
+ return nil
667
+ end
668
+
669
+ # Deletes listingAgent of this model.
670
+ #
671
+ # @param id PersistedModel id
672
+ # @param [Hash] opts the optional parameters
673
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
674
+ def dock_prototype_destroy_listing_agent_with_http_info(id, opts = {})
675
+ if @api_client.config.debugging
676
+ @api_client.config.logger.debug "Calling API: DockApi.dock_prototype_destroy_listing_agent ..."
677
+ end
678
+ # verify the required parameter 'id' is set
679
+ fail ArgumentError, "Missing the required parameter 'id' when calling DockApi.dock_prototype_destroy_listing_agent" if id.nil?
680
+ # resource path
681
+ local_var_path = "/Docks/{id}/listingAgent".sub('{format}','json').sub('{' + 'id' + '}', id.to_s)
682
+
683
+ # query parameters
684
+ query_params = {}
685
+
686
+ # header parameters
687
+ header_params = {}
688
+
689
+ # HTTP header 'Accept' (if needed)
690
+ local_header_accept = ['application/json', 'application/xml', 'text/xml', 'application/javascript', 'text/javascript']
691
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
692
+
693
+ # HTTP header 'Content-Type'
694
+ local_header_content_type = ['application/json', 'application/x-www-form-urlencoded', 'application/xml', 'text/xml']
695
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
696
+
697
+ # form parameters
698
+ form_params = {}
699
+
700
+ # http body (model)
701
+ post_body = nil
702
+ auth_names = []
703
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
704
+ :header_params => header_params,
705
+ :query_params => query_params,
706
+ :form_params => form_params,
707
+ :body => post_body,
708
+ :auth_names => auth_names)
709
+ if @api_client.config.debugging
710
+ @api_client.config.logger.debug "API called: DockApi#dock_prototype_destroy_listing_agent\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
711
+ end
712
+ return data, status_code, headers
713
+ end
714
+
715
+ # Fetches hasOne relation listingAgent.
716
+ #
717
+ # @param id PersistedModel id
718
+ # @param [Hash] opts the optional parameters
719
+ # @option opts [BOOLEAN] :refresh
720
+ # @return [ListingAgent]
721
+ def dock_prototype_get_listing_agent(id, opts = {})
722
+ data, _status_code, _headers = dock_prototype_get_listing_agent_with_http_info(id, opts)
723
+ return data
724
+ end
725
+
726
+ # Fetches hasOne relation listingAgent.
727
+ #
728
+ # @param id PersistedModel id
729
+ # @param [Hash] opts the optional parameters
730
+ # @option opts [BOOLEAN] :refresh
731
+ # @return [Array<(ListingAgent, Fixnum, Hash)>] ListingAgent data, response status code and response headers
732
+ def dock_prototype_get_listing_agent_with_http_info(id, opts = {})
733
+ if @api_client.config.debugging
734
+ @api_client.config.logger.debug "Calling API: DockApi.dock_prototype_get_listing_agent ..."
735
+ end
736
+ # verify the required parameter 'id' is set
737
+ fail ArgumentError, "Missing the required parameter 'id' when calling DockApi.dock_prototype_get_listing_agent" if id.nil?
738
+ # resource path
739
+ local_var_path = "/Docks/{id}/listingAgent".sub('{format}','json').sub('{' + 'id' + '}', id.to_s)
740
+
741
+ # query parameters
742
+ query_params = {}
743
+ query_params[:'refresh'] = opts[:'refresh'] if !opts[:'refresh'].nil?
744
+
745
+ # header parameters
746
+ header_params = {}
747
+
748
+ # HTTP header 'Accept' (if needed)
749
+ local_header_accept = ['application/json', 'application/xml', 'text/xml', 'application/javascript', 'text/javascript']
750
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
751
+
752
+ # HTTP header 'Content-Type'
753
+ local_header_content_type = ['application/json', 'application/x-www-form-urlencoded', 'application/xml', 'text/xml']
754
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
755
+
756
+ # form parameters
757
+ form_params = {}
758
+
759
+ # http body (model)
760
+ post_body = nil
761
+ auth_names = []
762
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
763
+ :header_params => header_params,
764
+ :query_params => query_params,
765
+ :form_params => form_params,
766
+ :body => post_body,
767
+ :auth_names => auth_names,
768
+ :return_type => 'ListingAgent')
769
+ if @api_client.config.debugging
770
+ @api_client.config.logger.debug "API called: DockApi#dock_prototype_get_listing_agent\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
771
+ end
772
+ return data, status_code, headers
773
+ end
774
+
775
+ # Fetches belongsTo relation marina.
776
+ #
777
+ # @param id PersistedModel id
778
+ # @param [Hash] opts the optional parameters
779
+ # @option opts [BOOLEAN] :refresh
780
+ # @return [Marina]
781
+ def dock_prototype_get_marina(id, opts = {})
782
+ data, _status_code, _headers = dock_prototype_get_marina_with_http_info(id, opts)
783
+ return data
784
+ end
785
+
786
+ # Fetches belongsTo relation marina.
787
+ #
788
+ # @param id PersistedModel id
789
+ # @param [Hash] opts the optional parameters
790
+ # @option opts [BOOLEAN] :refresh
791
+ # @return [Array<(Marina, Fixnum, Hash)>] Marina data, response status code and response headers
792
+ def dock_prototype_get_marina_with_http_info(id, opts = {})
793
+ if @api_client.config.debugging
794
+ @api_client.config.logger.debug "Calling API: DockApi.dock_prototype_get_marina ..."
795
+ end
796
+ # verify the required parameter 'id' is set
797
+ fail ArgumentError, "Missing the required parameter 'id' when calling DockApi.dock_prototype_get_marina" if id.nil?
798
+ # resource path
799
+ local_var_path = "/Docks/{id}/marina".sub('{format}','json').sub('{' + 'id' + '}', id.to_s)
800
+
801
+ # query parameters
802
+ query_params = {}
803
+ query_params[:'refresh'] = opts[:'refresh'] if !opts[:'refresh'].nil?
804
+
805
+ # header parameters
806
+ header_params = {}
807
+
808
+ # HTTP header 'Accept' (if needed)
809
+ local_header_accept = ['application/json', 'application/xml', 'text/xml', 'application/javascript', 'text/javascript']
810
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
811
+
812
+ # HTTP header 'Content-Type'
813
+ local_header_content_type = ['application/json', 'application/x-www-form-urlencoded', 'application/xml', 'text/xml']
814
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
815
+
816
+ # form parameters
817
+ form_params = {}
818
+
819
+ # http body (model)
820
+ post_body = nil
821
+ auth_names = []
822
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
823
+ :header_params => header_params,
824
+ :query_params => query_params,
825
+ :form_params => form_params,
826
+ :body => post_body,
827
+ :auth_names => auth_names,
828
+ :return_type => 'Marina')
829
+ if @api_client.config.debugging
830
+ @api_client.config.logger.debug "API called: DockApi#dock_prototype_get_marina\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
831
+ end
832
+ return data, status_code, headers
833
+ end
834
+
835
+ # Patch attributes for a model instance and persist it into the data source.
836
+ #
837
+ # @param id PersistedModel id
838
+ # @param [Hash] opts the optional parameters
839
+ # @option opts [Dock] :data An object of model property name/value pairs
840
+ # @return [Dock]
841
+ def dock_prototype_update_attributes_patch_docksid(id, opts = {})
842
+ data, _status_code, _headers = dock_prototype_update_attributes_patch_docksid_with_http_info(id, opts)
843
+ return data
844
+ end
845
+
846
+ # Patch attributes for a model instance and persist it into the data source.
847
+ #
848
+ # @param id PersistedModel id
849
+ # @param [Hash] opts the optional parameters
850
+ # @option opts [Dock] :data An object of model property name/value pairs
851
+ # @return [Array<(Dock, Fixnum, Hash)>] Dock data, response status code and response headers
852
+ def dock_prototype_update_attributes_patch_docksid_with_http_info(id, opts = {})
853
+ if @api_client.config.debugging
854
+ @api_client.config.logger.debug "Calling API: DockApi.dock_prototype_update_attributes_patch_docksid ..."
855
+ end
856
+ # verify the required parameter 'id' is set
857
+ fail ArgumentError, "Missing the required parameter 'id' when calling DockApi.dock_prototype_update_attributes_patch_docksid" if id.nil?
858
+ # resource path
859
+ local_var_path = "/Docks/{id}".sub('{format}','json').sub('{' + 'id' + '}', id.to_s)
860
+
861
+ # query parameters
862
+ query_params = {}
863
+
864
+ # header parameters
865
+ header_params = {}
866
+
867
+ # HTTP header 'Accept' (if needed)
868
+ local_header_accept = ['application/json', 'application/xml', 'text/xml', 'application/javascript', 'text/javascript']
869
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
870
+
871
+ # HTTP header 'Content-Type'
872
+ local_header_content_type = ['application/json', 'application/x-www-form-urlencoded', 'application/xml', 'text/xml']
873
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
874
+
875
+ # form parameters
876
+ form_params = {}
877
+
878
+ # http body (model)
879
+ post_body = @api_client.object_to_http_body(opts[:'data'])
880
+ auth_names = []
881
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
882
+ :header_params => header_params,
883
+ :query_params => query_params,
884
+ :form_params => form_params,
885
+ :body => post_body,
886
+ :auth_names => auth_names,
887
+ :return_type => 'Dock')
888
+ if @api_client.config.debugging
889
+ @api_client.config.logger.debug "API called: DockApi#dock_prototype_update_attributes_patch_docksid\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
890
+ end
891
+ return data, status_code, headers
892
+ end
893
+
894
+ # Patch attributes for a model instance and persist it into the data source.
895
+ #
896
+ # @param id PersistedModel id
897
+ # @param [Hash] opts the optional parameters
898
+ # @option opts [Dock] :data An object of model property name/value pairs
899
+ # @return [Dock]
900
+ def dock_prototype_update_attributes_put_docksid(id, opts = {})
901
+ data, _status_code, _headers = dock_prototype_update_attributes_put_docksid_with_http_info(id, opts)
902
+ return data
903
+ end
904
+
905
+ # Patch attributes for a model instance and persist it into the data source.
906
+ #
907
+ # @param id PersistedModel id
908
+ # @param [Hash] opts the optional parameters
909
+ # @option opts [Dock] :data An object of model property name/value pairs
910
+ # @return [Array<(Dock, Fixnum, Hash)>] Dock data, response status code and response headers
911
+ def dock_prototype_update_attributes_put_docksid_with_http_info(id, opts = {})
912
+ if @api_client.config.debugging
913
+ @api_client.config.logger.debug "Calling API: DockApi.dock_prototype_update_attributes_put_docksid ..."
914
+ end
915
+ # verify the required parameter 'id' is set
916
+ fail ArgumentError, "Missing the required parameter 'id' when calling DockApi.dock_prototype_update_attributes_put_docksid" if id.nil?
917
+ # resource path
918
+ local_var_path = "/Docks/{id}".sub('{format}','json').sub('{' + 'id' + '}', id.to_s)
919
+
920
+ # query parameters
921
+ query_params = {}
922
+
923
+ # header parameters
924
+ header_params = {}
925
+
926
+ # HTTP header 'Accept' (if needed)
927
+ local_header_accept = ['application/json', 'application/xml', 'text/xml', 'application/javascript', 'text/javascript']
928
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
929
+
930
+ # HTTP header 'Content-Type'
931
+ local_header_content_type = ['application/json', 'application/x-www-form-urlencoded', 'application/xml', 'text/xml']
932
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
933
+
934
+ # form parameters
935
+ form_params = {}
936
+
937
+ # http body (model)
938
+ post_body = @api_client.object_to_http_body(opts[:'data'])
939
+ auth_names = []
940
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
941
+ :header_params => header_params,
942
+ :query_params => query_params,
943
+ :form_params => form_params,
944
+ :body => post_body,
945
+ :auth_names => auth_names,
946
+ :return_type => 'Dock')
947
+ if @api_client.config.debugging
948
+ @api_client.config.logger.debug "API called: DockApi#dock_prototype_update_attributes_put_docksid\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
949
+ end
950
+ return data, status_code, headers
951
+ end
952
+
953
+ # Update listingAgent of this model.
954
+ #
955
+ # @param id PersistedModel id
956
+ # @param [Hash] opts the optional parameters
957
+ # @option opts [ListingAgent] :data
958
+ # @return [ListingAgent]
959
+ def dock_prototype_update_listing_agent(id, opts = {})
960
+ data, _status_code, _headers = dock_prototype_update_listing_agent_with_http_info(id, opts)
961
+ return data
962
+ end
963
+
964
+ # Update listingAgent of this model.
965
+ #
966
+ # @param id PersistedModel id
967
+ # @param [Hash] opts the optional parameters
968
+ # @option opts [ListingAgent] :data
969
+ # @return [Array<(ListingAgent, Fixnum, Hash)>] ListingAgent data, response status code and response headers
970
+ def dock_prototype_update_listing_agent_with_http_info(id, opts = {})
971
+ if @api_client.config.debugging
972
+ @api_client.config.logger.debug "Calling API: DockApi.dock_prototype_update_listing_agent ..."
973
+ end
974
+ # verify the required parameter 'id' is set
975
+ fail ArgumentError, "Missing the required parameter 'id' when calling DockApi.dock_prototype_update_listing_agent" if id.nil?
976
+ # resource path
977
+ local_var_path = "/Docks/{id}/listingAgent".sub('{format}','json').sub('{' + 'id' + '}', id.to_s)
978
+
979
+ # query parameters
980
+ query_params = {}
981
+
982
+ # header parameters
983
+ header_params = {}
984
+
985
+ # HTTP header 'Accept' (if needed)
986
+ local_header_accept = ['application/json', 'application/xml', 'text/xml', 'application/javascript', 'text/javascript']
987
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
988
+
989
+ # HTTP header 'Content-Type'
990
+ local_header_content_type = ['application/json', 'application/x-www-form-urlencoded', 'application/xml', 'text/xml']
991
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
992
+
993
+ # form parameters
994
+ form_params = {}
995
+
996
+ # http body (model)
997
+ post_body = @api_client.object_to_http_body(opts[:'data'])
998
+ auth_names = []
999
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
1000
+ :header_params => header_params,
1001
+ :query_params => query_params,
1002
+ :form_params => form_params,
1003
+ :body => post_body,
1004
+ :auth_names => auth_names,
1005
+ :return_type => 'ListingAgent')
1006
+ if @api_client.config.debugging
1007
+ @api_client.config.logger.debug "API called: DockApi#dock_prototype_update_listing_agent\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1008
+ end
1009
+ return data, status_code, headers
1010
+ end
1011
+
1012
+ # Replace attributes for a model instance and persist it into the data source.
1013
+ #
1014
+ # @param id Model id
1015
+ # @param [Hash] opts the optional parameters
1016
+ # @option opts [Dock] :data Model instance data
1017
+ # @return [Dock]
1018
+ def dock_replace_by_id(id, opts = {})
1019
+ data, _status_code, _headers = dock_replace_by_id_with_http_info(id, opts)
1020
+ return data
1021
+ end
1022
+
1023
+ # Replace attributes for a model instance and persist it into the data source.
1024
+ #
1025
+ # @param id Model id
1026
+ # @param [Hash] opts the optional parameters
1027
+ # @option opts [Dock] :data Model instance data
1028
+ # @return [Array<(Dock, Fixnum, Hash)>] Dock data, response status code and response headers
1029
+ def dock_replace_by_id_with_http_info(id, opts = {})
1030
+ if @api_client.config.debugging
1031
+ @api_client.config.logger.debug "Calling API: DockApi.dock_replace_by_id ..."
1032
+ end
1033
+ # verify the required parameter 'id' is set
1034
+ fail ArgumentError, "Missing the required parameter 'id' when calling DockApi.dock_replace_by_id" if id.nil?
1035
+ # resource path
1036
+ local_var_path = "/Docks/{id}/replace".sub('{format}','json').sub('{' + 'id' + '}', id.to_s)
1037
+
1038
+ # query parameters
1039
+ query_params = {}
1040
+
1041
+ # header parameters
1042
+ header_params = {}
1043
+
1044
+ # HTTP header 'Accept' (if needed)
1045
+ local_header_accept = ['application/json', 'application/xml', 'text/xml', 'application/javascript', 'text/javascript']
1046
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
1047
+
1048
+ # HTTP header 'Content-Type'
1049
+ local_header_content_type = ['application/json', 'application/x-www-form-urlencoded', 'application/xml', 'text/xml']
1050
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
1051
+
1052
+ # form parameters
1053
+ form_params = {}
1054
+
1055
+ # http body (model)
1056
+ post_body = @api_client.object_to_http_body(opts[:'data'])
1057
+ auth_names = []
1058
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
1059
+ :header_params => header_params,
1060
+ :query_params => query_params,
1061
+ :form_params => form_params,
1062
+ :body => post_body,
1063
+ :auth_names => auth_names,
1064
+ :return_type => 'Dock')
1065
+ if @api_client.config.debugging
1066
+ @api_client.config.logger.debug "API called: DockApi#dock_replace_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1067
+ end
1068
+ return data, status_code, headers
1069
+ end
1070
+
1071
+ # Replace an existing model instance or insert a new one into the data source.
1072
+ #
1073
+ # @param [Hash] opts the optional parameters
1074
+ # @option opts [Dock] :data Model instance data
1075
+ # @return [Dock]
1076
+ def dock_replace_or_create(opts = {})
1077
+ data, _status_code, _headers = dock_replace_or_create_with_http_info(opts)
1078
+ return data
1079
+ end
1080
+
1081
+ # Replace an existing model instance or insert a new one into the data source.
1082
+ #
1083
+ # @param [Hash] opts the optional parameters
1084
+ # @option opts [Dock] :data Model instance data
1085
+ # @return [Array<(Dock, Fixnum, Hash)>] Dock data, response status code and response headers
1086
+ def dock_replace_or_create_with_http_info(opts = {})
1087
+ if @api_client.config.debugging
1088
+ @api_client.config.logger.debug "Calling API: DockApi.dock_replace_or_create ..."
1089
+ end
1090
+ # resource path
1091
+ local_var_path = "/Docks/replaceOrCreate".sub('{format}','json')
1092
+
1093
+ # query parameters
1094
+ query_params = {}
1095
+
1096
+ # header parameters
1097
+ header_params = {}
1098
+
1099
+ # HTTP header 'Accept' (if needed)
1100
+ local_header_accept = ['application/json', 'application/xml', 'text/xml', 'application/javascript', 'text/javascript']
1101
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
1102
+
1103
+ # HTTP header 'Content-Type'
1104
+ local_header_content_type = ['application/json', 'application/x-www-form-urlencoded', 'application/xml', 'text/xml']
1105
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
1106
+
1107
+ # form parameters
1108
+ form_params = {}
1109
+
1110
+ # http body (model)
1111
+ post_body = @api_client.object_to_http_body(opts[:'data'])
1112
+ auth_names = []
1113
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
1114
+ :header_params => header_params,
1115
+ :query_params => query_params,
1116
+ :form_params => form_params,
1117
+ :body => post_body,
1118
+ :auth_names => auth_names,
1119
+ :return_type => 'Dock')
1120
+ if @api_client.config.debugging
1121
+ @api_client.config.logger.debug "API called: DockApi#dock_replace_or_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1122
+ end
1123
+ return data, status_code, headers
1124
+ end
1125
+
1126
+ # Update instances of the model matched by {{where}} from the data source.
1127
+ #
1128
+ # @param [Hash] opts the optional parameters
1129
+ # @option opts [String] :where Criteria to match model instances
1130
+ # @option opts [Dock] :data An object of model property name/value pairs
1131
+ # @return [InlineResponse2001]
1132
+ def dock_update_all(opts = {})
1133
+ data, _status_code, _headers = dock_update_all_with_http_info(opts)
1134
+ return data
1135
+ end
1136
+
1137
+ # Update instances of the model matched by {{where}} from the data source.
1138
+ #
1139
+ # @param [Hash] opts the optional parameters
1140
+ # @option opts [String] :where Criteria to match model instances
1141
+ # @option opts [Dock] :data An object of model property name/value pairs
1142
+ # @return [Array<(InlineResponse2001, Fixnum, Hash)>] InlineResponse2001 data, response status code and response headers
1143
+ def dock_update_all_with_http_info(opts = {})
1144
+ if @api_client.config.debugging
1145
+ @api_client.config.logger.debug "Calling API: DockApi.dock_update_all ..."
1146
+ end
1147
+ # resource path
1148
+ local_var_path = "/Docks/update".sub('{format}','json')
1149
+
1150
+ # query parameters
1151
+ query_params = {}
1152
+ query_params[:'where'] = opts[:'where'] if !opts[:'where'].nil?
1153
+
1154
+ # header parameters
1155
+ header_params = {}
1156
+
1157
+ # HTTP header 'Accept' (if needed)
1158
+ local_header_accept = ['application/json', 'application/xml', 'text/xml', 'application/javascript', 'text/javascript']
1159
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
1160
+
1161
+ # HTTP header 'Content-Type'
1162
+ local_header_content_type = ['application/json', 'application/x-www-form-urlencoded', 'application/xml', 'text/xml']
1163
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
1164
+
1165
+ # form parameters
1166
+ form_params = {}
1167
+
1168
+ # http body (model)
1169
+ post_body = @api_client.object_to_http_body(opts[:'data'])
1170
+ auth_names = []
1171
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
1172
+ :header_params => header_params,
1173
+ :query_params => query_params,
1174
+ :form_params => form_params,
1175
+ :body => post_body,
1176
+ :auth_names => auth_names,
1177
+ :return_type => 'InlineResponse2001')
1178
+ if @api_client.config.debugging
1179
+ @api_client.config.logger.debug "API called: DockApi#dock_update_all\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1180
+ end
1181
+ return data, status_code, headers
1182
+ end
1183
+
1184
+ # Patch an existing model instance or insert a new one into the data source.
1185
+ #
1186
+ # @param [Hash] opts the optional parameters
1187
+ # @option opts [Dock] :data Model instance data
1188
+ # @return [Dock]
1189
+ def dock_upsert_patch_docks(opts = {})
1190
+ data, _status_code, _headers = dock_upsert_patch_docks_with_http_info(opts)
1191
+ return data
1192
+ end
1193
+
1194
+ # Patch an existing model instance or insert a new one into the data source.
1195
+ #
1196
+ # @param [Hash] opts the optional parameters
1197
+ # @option opts [Dock] :data Model instance data
1198
+ # @return [Array<(Dock, Fixnum, Hash)>] Dock data, response status code and response headers
1199
+ def dock_upsert_patch_docks_with_http_info(opts = {})
1200
+ if @api_client.config.debugging
1201
+ @api_client.config.logger.debug "Calling API: DockApi.dock_upsert_patch_docks ..."
1202
+ end
1203
+ # resource path
1204
+ local_var_path = "/Docks".sub('{format}','json')
1205
+
1206
+ # query parameters
1207
+ query_params = {}
1208
+
1209
+ # header parameters
1210
+ header_params = {}
1211
+
1212
+ # HTTP header 'Accept' (if needed)
1213
+ local_header_accept = ['application/json', 'application/xml', 'text/xml', 'application/javascript', 'text/javascript']
1214
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
1215
+
1216
+ # HTTP header 'Content-Type'
1217
+ local_header_content_type = ['application/json', 'application/x-www-form-urlencoded', 'application/xml', 'text/xml']
1218
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
1219
+
1220
+ # form parameters
1221
+ form_params = {}
1222
+
1223
+ # http body (model)
1224
+ post_body = @api_client.object_to_http_body(opts[:'data'])
1225
+ auth_names = []
1226
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
1227
+ :header_params => header_params,
1228
+ :query_params => query_params,
1229
+ :form_params => form_params,
1230
+ :body => post_body,
1231
+ :auth_names => auth_names,
1232
+ :return_type => 'Dock')
1233
+ if @api_client.config.debugging
1234
+ @api_client.config.logger.debug "API called: DockApi#dock_upsert_patch_docks\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1235
+ end
1236
+ return data, status_code, headers
1237
+ end
1238
+
1239
+ # Patch an existing model instance or insert a new one into the data source.
1240
+ #
1241
+ # @param [Hash] opts the optional parameters
1242
+ # @option opts [Dock] :data Model instance data
1243
+ # @return [Dock]
1244
+ def dock_upsert_put_docks(opts = {})
1245
+ data, _status_code, _headers = dock_upsert_put_docks_with_http_info(opts)
1246
+ return data
1247
+ end
1248
+
1249
+ # Patch an existing model instance or insert a new one into the data source.
1250
+ #
1251
+ # @param [Hash] opts the optional parameters
1252
+ # @option opts [Dock] :data Model instance data
1253
+ # @return [Array<(Dock, Fixnum, Hash)>] Dock data, response status code and response headers
1254
+ def dock_upsert_put_docks_with_http_info(opts = {})
1255
+ if @api_client.config.debugging
1256
+ @api_client.config.logger.debug "Calling API: DockApi.dock_upsert_put_docks ..."
1257
+ end
1258
+ # resource path
1259
+ local_var_path = "/Docks".sub('{format}','json')
1260
+
1261
+ # query parameters
1262
+ query_params = {}
1263
+
1264
+ # header parameters
1265
+ header_params = {}
1266
+
1267
+ # HTTP header 'Accept' (if needed)
1268
+ local_header_accept = ['application/json', 'application/xml', 'text/xml', 'application/javascript', 'text/javascript']
1269
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
1270
+
1271
+ # HTTP header 'Content-Type'
1272
+ local_header_content_type = ['application/json', 'application/x-www-form-urlencoded', 'application/xml', 'text/xml']
1273
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
1274
+
1275
+ # form parameters
1276
+ form_params = {}
1277
+
1278
+ # http body (model)
1279
+ post_body = @api_client.object_to_http_body(opts[:'data'])
1280
+ auth_names = []
1281
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
1282
+ :header_params => header_params,
1283
+ :query_params => query_params,
1284
+ :form_params => form_params,
1285
+ :body => post_body,
1286
+ :auth_names => auth_names,
1287
+ :return_type => 'Dock')
1288
+ if @api_client.config.debugging
1289
+ @api_client.config.logger.debug "API called: DockApi#dock_upsert_put_docks\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1290
+ end
1291
+ return data, status_code, headers
1292
+ end
1293
+
1294
+ # Update an existing model instance or insert a new one into the data source based on the where criteria.
1295
+ #
1296
+ # @param [Hash] opts the optional parameters
1297
+ # @option opts [String] :where Criteria to match model instances
1298
+ # @option opts [Dock] :data An object of model property name/value pairs
1299
+ # @return [Dock]
1300
+ def dock_upsert_with_where(opts = {})
1301
+ data, _status_code, _headers = dock_upsert_with_where_with_http_info(opts)
1302
+ return data
1303
+ end
1304
+
1305
+ # Update an existing model instance or insert a new one into the data source based on the where criteria.
1306
+ #
1307
+ # @param [Hash] opts the optional parameters
1308
+ # @option opts [String] :where Criteria to match model instances
1309
+ # @option opts [Dock] :data An object of model property name/value pairs
1310
+ # @return [Array<(Dock, Fixnum, Hash)>] Dock data, response status code and response headers
1311
+ def dock_upsert_with_where_with_http_info(opts = {})
1312
+ if @api_client.config.debugging
1313
+ @api_client.config.logger.debug "Calling API: DockApi.dock_upsert_with_where ..."
1314
+ end
1315
+ # resource path
1316
+ local_var_path = "/Docks/upsertWithWhere".sub('{format}','json')
1317
+
1318
+ # query parameters
1319
+ query_params = {}
1320
+ query_params[:'where'] = opts[:'where'] if !opts[:'where'].nil?
1321
+
1322
+ # header parameters
1323
+ header_params = {}
1324
+
1325
+ # HTTP header 'Accept' (if needed)
1326
+ local_header_accept = ['application/json', 'application/xml', 'text/xml', 'application/javascript', 'text/javascript']
1327
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
1328
+
1329
+ # HTTP header 'Content-Type'
1330
+ local_header_content_type = ['application/json', 'application/x-www-form-urlencoded', 'application/xml', 'text/xml']
1331
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
1332
+
1333
+ # form parameters
1334
+ form_params = {}
1335
+
1336
+ # http body (model)
1337
+ post_body = @api_client.object_to_http_body(opts[:'data'])
1338
+ auth_names = []
1339
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
1340
+ :header_params => header_params,
1341
+ :query_params => query_params,
1342
+ :form_params => form_params,
1343
+ :body => post_body,
1344
+ :auth_names => auth_names,
1345
+ :return_type => 'Dock')
1346
+ if @api_client.config.debugging
1347
+ @api_client.config.logger.debug "API called: DockApi#dock_upsert_with_where\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1348
+ end
1349
+ return data, status_code, headers
1350
+ end
1351
+ end
1352
+ end