dock_genius_api_ruby_client 0.1.1.pre.g582ac6 → 0.1.2.pre.ge30447
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/config.json +10 -0
- data/dg-api-gem +1 -0
- data/swagger.yml +3075 -0
- metadata +170 -78
- data/LICENSE +0 -201
- data/README.md +0 -200
- data/dock_genius_api_ruby_client.gemspec +0 -55
- data/docs/AccessToken.md +0 -11
- data/docs/Address.md +0 -16
- data/docs/Customer.md +0 -22
- data/docs/CustomerApi.md +0 -1938
- data/docs/Dock.md +0 -20
- data/docs/DockApi.md +0 -1112
- data/docs/EmailAddress.md +0 -9
- data/docs/GeoPoint.md +0 -9
- data/docs/InlineResponse200.md +0 -8
- data/docs/InlineResponse2001.md +0 -8
- data/docs/InlineResponse2002.md +0 -8
- data/docs/ListingAgent.md +0 -12
- data/docs/Marina.md +0 -15
- data/docs/MarinaApi.md +0 -1602
- data/docs/Phone.md +0 -9
- data/git_push.sh +0 -67
- data/lib/dock_genius_api_ruby_client.rb +0 -65
- data/lib/dock_genius_api_ruby_client/api/customer_api.rb +0 -2363
- data/lib/dock_genius_api_ruby_client/api/dock_api.rb +0 -1352
- data/lib/dock_genius_api_ruby_client/api/marina_api.rb +0 -1945
- data/lib/dock_genius_api_ruby_client/api_client.rb +0 -378
- data/lib/dock_genius_api_ruby_client/api_error.rb +0 -47
- data/lib/dock_genius_api_ruby_client/configuration.rb +0 -207
- data/lib/dock_genius_api_ruby_client/models/access_token.rb +0 -230
- data/lib/dock_genius_api_ruby_client/models/address.rb +0 -281
- data/lib/dock_genius_api_ruby_client/models/customer.rb +0 -330
- data/lib/dock_genius_api_ruby_client/models/dock.rb +0 -327
- data/lib/dock_genius_api_ruby_client/models/email_address.rb +0 -208
- data/lib/dock_genius_api_ruby_client/models/geo_point.rb +0 -208
- data/lib/dock_genius_api_ruby_client/models/inline_response_200.rb +0 -199
- data/lib/dock_genius_api_ruby_client/models/inline_response_200_1.rb +0 -200
- data/lib/dock_genius_api_ruby_client/models/inline_response_200_2.rb +0 -199
- data/lib/dock_genius_api_ruby_client/models/listing_agent.rb +0 -239
- data/lib/dock_genius_api_ruby_client/models/marina.rb +0 -263
- data/lib/dock_genius_api_ruby_client/models/phone.rb +0 -209
- data/lib/dock_genius_api_ruby_client/version.rb +0 -26
- data/spec/api/customer_api_spec.rb +0 -551
- data/spec/api/dock_api_spec.rb +0 -332
- data/spec/api/marina_api_spec.rb +0 -461
- data/spec/api_client_spec.rb +0 -237
- data/spec/configuration_spec.rb +0 -53
- data/spec/models/access_token_spec.rb +0 -71
- data/spec/models/address_spec.rb +0 -101
- data/spec/models/customer_spec.rb +0 -137
- data/spec/models/dock_spec.rb +0 -125
- data/spec/models/email_address_spec.rb +0 -59
- data/spec/models/geo_point_spec.rb +0 -59
- data/spec/models/inline_response_200_1_spec.rb +0 -53
- data/spec/models/inline_response_200_2_spec.rb +0 -53
- data/spec/models/inline_response_200_spec.rb +0 -53
- data/spec/models/listing_agent_spec.rb +0 -77
- data/spec/models/marina_spec.rb +0 -95
- data/spec/models/phone_spec.rb +0 -59
- data/spec/spec_helper.rb +0 -122
@@ -1,1945 +0,0 @@
|
|
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 MarinaApi
|
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 marina_count(opts = {})
|
40
|
-
data, _status_code, _headers = marina_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 marina_count_with_http_info(opts = {})
|
50
|
-
if @api_client.config.debugging
|
51
|
-
@api_client.config.logger.debug "Calling API: MarinaApi.marina_count ..."
|
52
|
-
end
|
53
|
-
# resource path
|
54
|
-
local_var_path = "/Marinas/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: MarinaApi#marina_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 [Marina] :data Model instance data
|
94
|
-
# @return [Marina]
|
95
|
-
def marina_create(opts = {})
|
96
|
-
data, _status_code, _headers = marina_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 [Marina] :data Model instance data
|
104
|
-
# @return [Array<(Marina, Fixnum, Hash)>] Marina data, response status code and response headers
|
105
|
-
def marina_create_with_http_info(opts = {})
|
106
|
-
if @api_client.config.debugging
|
107
|
-
@api_client.config.logger.debug "Calling API: MarinaApi.marina_create ..."
|
108
|
-
end
|
109
|
-
# resource path
|
110
|
-
local_var_path = "/Marinas".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 => 'Marina')
|
139
|
-
if @api_client.config.debugging
|
140
|
-
@api_client.config.logger.debug "API called: MarinaApi#marina_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 marina_create_change_stream_get_marinas_change_stream(opts = {})
|
151
|
-
data, _status_code, _headers = marina_create_change_stream_get_marinas_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 marina_create_change_stream_get_marinas_change_stream_with_http_info(opts = {})
|
161
|
-
if @api_client.config.debugging
|
162
|
-
@api_client.config.logger.debug "Calling API: MarinaApi.marina_create_change_stream_get_marinas_change_stream ..."
|
163
|
-
end
|
164
|
-
# resource path
|
165
|
-
local_var_path = "/Marinas/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: MarinaApi#marina_create_change_stream_get_marinas_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 marina_create_change_stream_post_marinas_change_stream(opts = {})
|
207
|
-
data, _status_code, _headers = marina_create_change_stream_post_marinas_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 marina_create_change_stream_post_marinas_change_stream_with_http_info(opts = {})
|
217
|
-
if @api_client.config.debugging
|
218
|
-
@api_client.config.logger.debug "Calling API: MarinaApi.marina_create_change_stream_post_marinas_change_stream ..."
|
219
|
-
end
|
220
|
-
# resource path
|
221
|
-
local_var_path = "/Marinas/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: MarinaApi#marina_create_change_stream_post_marinas_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 marina_delete_by_id(id, opts = {})
|
263
|
-
data, _status_code, _headers = marina_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 marina_delete_by_id_with_http_info(id, opts = {})
|
273
|
-
if @api_client.config.debugging
|
274
|
-
@api_client.config.logger.debug "Calling API: MarinaApi.marina_delete_by_id ..."
|
275
|
-
end
|
276
|
-
# verify the required parameter 'id' is set
|
277
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling MarinaApi.marina_delete_by_id" if id.nil?
|
278
|
-
# resource path
|
279
|
-
local_var_path = "/Marinas/{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: MarinaApi#marina_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 marina_exists_get_marinasid_exists(id, opts = {})
|
320
|
-
data, _status_code, _headers = marina_exists_get_marinasid_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 marina_exists_get_marinasid_exists_with_http_info(id, opts = {})
|
330
|
-
if @api_client.config.debugging
|
331
|
-
@api_client.config.logger.debug "Calling API: MarinaApi.marina_exists_get_marinasid_exists ..."
|
332
|
-
end
|
333
|
-
# verify the required parameter 'id' is set
|
334
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling MarinaApi.marina_exists_get_marinasid_exists" if id.nil?
|
335
|
-
# resource path
|
336
|
-
local_var_path = "/Marinas/{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: MarinaApi#marina_exists_get_marinasid_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 marina_exists_head_marinasid(id, opts = {})
|
377
|
-
data, _status_code, _headers = marina_exists_head_marinasid_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 marina_exists_head_marinasid_with_http_info(id, opts = {})
|
387
|
-
if @api_client.config.debugging
|
388
|
-
@api_client.config.logger.debug "Calling API: MarinaApi.marina_exists_head_marinasid ..."
|
389
|
-
end
|
390
|
-
# verify the required parameter 'id' is set
|
391
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling MarinaApi.marina_exists_head_marinasid" if id.nil?
|
392
|
-
# resource path
|
393
|
-
local_var_path = "/Marinas/{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: MarinaApi#marina_exists_head_marinasid\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<Marina>]
|
433
|
-
def marina_find(opts = {})
|
434
|
-
data, _status_code, _headers = marina_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<Marina>, Fixnum, Hash)>] Array<Marina> data, response status code and response headers
|
443
|
-
def marina_find_with_http_info(opts = {})
|
444
|
-
if @api_client.config.debugging
|
445
|
-
@api_client.config.logger.debug "Calling API: MarinaApi.marina_find ..."
|
446
|
-
end
|
447
|
-
# resource path
|
448
|
-
local_var_path = "/Marinas".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<Marina>')
|
478
|
-
if @api_client.config.debugging
|
479
|
-
@api_client.config.logger.debug "API called: MarinaApi#marina_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 [Marina]
|
490
|
-
def marina_find_by_id(id, opts = {})
|
491
|
-
data, _status_code, _headers = marina_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<(Marina, Fixnum, Hash)>] Marina data, response status code and response headers
|
501
|
-
def marina_find_by_id_with_http_info(id, opts = {})
|
502
|
-
if @api_client.config.debugging
|
503
|
-
@api_client.config.logger.debug "Calling API: MarinaApi.marina_find_by_id ..."
|
504
|
-
end
|
505
|
-
# verify the required parameter 'id' is set
|
506
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling MarinaApi.marina_find_by_id" if id.nil?
|
507
|
-
# resource path
|
508
|
-
local_var_path = "/Marinas/{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 => 'Marina')
|
538
|
-
if @api_client.config.debugging
|
539
|
-
@api_client.config.logger.debug "API called: MarinaApi#marina_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 [Marina]
|
549
|
-
def marina_find_one(opts = {})
|
550
|
-
data, _status_code, _headers = marina_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<(Marina, Fixnum, Hash)>] Marina data, response status code and response headers
|
559
|
-
def marina_find_one_with_http_info(opts = {})
|
560
|
-
if @api_client.config.debugging
|
561
|
-
@api_client.config.logger.debug "Calling API: MarinaApi.marina_find_one ..."
|
562
|
-
end
|
563
|
-
# resource path
|
564
|
-
local_var_path = "/Marinas/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 => 'Marina')
|
594
|
-
if @api_client.config.debugging
|
595
|
-
@api_client.config.logger.debug "API called: MarinaApi#marina_find_one\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
596
|
-
end
|
597
|
-
return data, status_code, headers
|
598
|
-
end
|
599
|
-
|
600
|
-
# Counts docks of Marina.
|
601
|
-
#
|
602
|
-
# @param id PersistedModel id
|
603
|
-
# @param [Hash] opts the optional parameters
|
604
|
-
# @option opts [String] :where Criteria to match model instances
|
605
|
-
# @return [InlineResponse200]
|
606
|
-
def marina_prototype_count_docks(id, opts = {})
|
607
|
-
data, _status_code, _headers = marina_prototype_count_docks_with_http_info(id, opts)
|
608
|
-
return data
|
609
|
-
end
|
610
|
-
|
611
|
-
# Counts docks of Marina.
|
612
|
-
#
|
613
|
-
# @param id PersistedModel id
|
614
|
-
# @param [Hash] opts the optional parameters
|
615
|
-
# @option opts [String] :where Criteria to match model instances
|
616
|
-
# @return [Array<(InlineResponse200, Fixnum, Hash)>] InlineResponse200 data, response status code and response headers
|
617
|
-
def marina_prototype_count_docks_with_http_info(id, opts = {})
|
618
|
-
if @api_client.config.debugging
|
619
|
-
@api_client.config.logger.debug "Calling API: MarinaApi.marina_prototype_count_docks ..."
|
620
|
-
end
|
621
|
-
# verify the required parameter 'id' is set
|
622
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling MarinaApi.marina_prototype_count_docks" if id.nil?
|
623
|
-
# resource path
|
624
|
-
local_var_path = "/Marinas/{id}/docks/count".sub('{format}','json').sub('{' + 'id' + '}', id.to_s)
|
625
|
-
|
626
|
-
# query parameters
|
627
|
-
query_params = {}
|
628
|
-
query_params[:'where'] = opts[:'where'] if !opts[:'where'].nil?
|
629
|
-
|
630
|
-
# header parameters
|
631
|
-
header_params = {}
|
632
|
-
|
633
|
-
# HTTP header 'Accept' (if needed)
|
634
|
-
local_header_accept = ['application/json', 'application/xml', 'text/xml', 'application/javascript', 'text/javascript']
|
635
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
636
|
-
|
637
|
-
# HTTP header 'Content-Type'
|
638
|
-
local_header_content_type = ['application/json', 'application/x-www-form-urlencoded', 'application/xml', 'text/xml']
|
639
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
640
|
-
|
641
|
-
# form parameters
|
642
|
-
form_params = {}
|
643
|
-
|
644
|
-
# http body (model)
|
645
|
-
post_body = nil
|
646
|
-
auth_names = []
|
647
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
648
|
-
:header_params => header_params,
|
649
|
-
:query_params => query_params,
|
650
|
-
:form_params => form_params,
|
651
|
-
:body => post_body,
|
652
|
-
:auth_names => auth_names,
|
653
|
-
:return_type => 'InlineResponse200')
|
654
|
-
if @api_client.config.debugging
|
655
|
-
@api_client.config.logger.debug "API called: MarinaApi#marina_prototype_count_docks\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
656
|
-
end
|
657
|
-
return data, status_code, headers
|
658
|
-
end
|
659
|
-
|
660
|
-
# Creates a new instance in address of this model.
|
661
|
-
#
|
662
|
-
# @param id PersistedModel id
|
663
|
-
# @param [Hash] opts the optional parameters
|
664
|
-
# @option opts [Address] :data
|
665
|
-
# @return [Address]
|
666
|
-
def marina_prototype_create_address(id, opts = {})
|
667
|
-
data, _status_code, _headers = marina_prototype_create_address_with_http_info(id, opts)
|
668
|
-
return data
|
669
|
-
end
|
670
|
-
|
671
|
-
# Creates a new instance in address of this model.
|
672
|
-
#
|
673
|
-
# @param id PersistedModel id
|
674
|
-
# @param [Hash] opts the optional parameters
|
675
|
-
# @option opts [Address] :data
|
676
|
-
# @return [Array<(Address, Fixnum, Hash)>] Address data, response status code and response headers
|
677
|
-
def marina_prototype_create_address_with_http_info(id, opts = {})
|
678
|
-
if @api_client.config.debugging
|
679
|
-
@api_client.config.logger.debug "Calling API: MarinaApi.marina_prototype_create_address ..."
|
680
|
-
end
|
681
|
-
# verify the required parameter 'id' is set
|
682
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling MarinaApi.marina_prototype_create_address" if id.nil?
|
683
|
-
# resource path
|
684
|
-
local_var_path = "/Marinas/{id}/address".sub('{format}','json').sub('{' + 'id' + '}', id.to_s)
|
685
|
-
|
686
|
-
# query parameters
|
687
|
-
query_params = {}
|
688
|
-
|
689
|
-
# header parameters
|
690
|
-
header_params = {}
|
691
|
-
|
692
|
-
# HTTP header 'Accept' (if needed)
|
693
|
-
local_header_accept = ['application/json', 'application/xml', 'text/xml', 'application/javascript', 'text/javascript']
|
694
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
695
|
-
|
696
|
-
# HTTP header 'Content-Type'
|
697
|
-
local_header_content_type = ['application/json', 'application/x-www-form-urlencoded', 'application/xml', 'text/xml']
|
698
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
699
|
-
|
700
|
-
# form parameters
|
701
|
-
form_params = {}
|
702
|
-
|
703
|
-
# http body (model)
|
704
|
-
post_body = @api_client.object_to_http_body(opts[:'data'])
|
705
|
-
auth_names = []
|
706
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
707
|
-
:header_params => header_params,
|
708
|
-
:query_params => query_params,
|
709
|
-
:form_params => form_params,
|
710
|
-
:body => post_body,
|
711
|
-
:auth_names => auth_names,
|
712
|
-
:return_type => 'Address')
|
713
|
-
if @api_client.config.debugging
|
714
|
-
@api_client.config.logger.debug "API called: MarinaApi#marina_prototype_create_address\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
715
|
-
end
|
716
|
-
return data, status_code, headers
|
717
|
-
end
|
718
|
-
|
719
|
-
# Creates a new instance in docks of this model.
|
720
|
-
#
|
721
|
-
# @param id PersistedModel id
|
722
|
-
# @param [Hash] opts the optional parameters
|
723
|
-
# @option opts [Dock] :data
|
724
|
-
# @return [Dock]
|
725
|
-
def marina_prototype_create_docks(id, opts = {})
|
726
|
-
data, _status_code, _headers = marina_prototype_create_docks_with_http_info(id, opts)
|
727
|
-
return data
|
728
|
-
end
|
729
|
-
|
730
|
-
# Creates a new instance in docks of this model.
|
731
|
-
#
|
732
|
-
# @param id PersistedModel id
|
733
|
-
# @param [Hash] opts the optional parameters
|
734
|
-
# @option opts [Dock] :data
|
735
|
-
# @return [Array<(Dock, Fixnum, Hash)>] Dock data, response status code and response headers
|
736
|
-
def marina_prototype_create_docks_with_http_info(id, opts = {})
|
737
|
-
if @api_client.config.debugging
|
738
|
-
@api_client.config.logger.debug "Calling API: MarinaApi.marina_prototype_create_docks ..."
|
739
|
-
end
|
740
|
-
# verify the required parameter 'id' is set
|
741
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling MarinaApi.marina_prototype_create_docks" if id.nil?
|
742
|
-
# resource path
|
743
|
-
local_var_path = "/Marinas/{id}/docks".sub('{format}','json').sub('{' + 'id' + '}', id.to_s)
|
744
|
-
|
745
|
-
# query parameters
|
746
|
-
query_params = {}
|
747
|
-
|
748
|
-
# header parameters
|
749
|
-
header_params = {}
|
750
|
-
|
751
|
-
# HTTP header 'Accept' (if needed)
|
752
|
-
local_header_accept = ['application/json', 'application/xml', 'text/xml', 'application/javascript', 'text/javascript']
|
753
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
754
|
-
|
755
|
-
# HTTP header 'Content-Type'
|
756
|
-
local_header_content_type = ['application/json', 'application/x-www-form-urlencoded', 'application/xml', 'text/xml']
|
757
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
758
|
-
|
759
|
-
# form parameters
|
760
|
-
form_params = {}
|
761
|
-
|
762
|
-
# http body (model)
|
763
|
-
post_body = @api_client.object_to_http_body(opts[:'data'])
|
764
|
-
auth_names = []
|
765
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
766
|
-
:header_params => header_params,
|
767
|
-
:query_params => query_params,
|
768
|
-
:form_params => form_params,
|
769
|
-
:body => post_body,
|
770
|
-
:auth_names => auth_names,
|
771
|
-
:return_type => 'Dock')
|
772
|
-
if @api_client.config.debugging
|
773
|
-
@api_client.config.logger.debug "API called: MarinaApi#marina_prototype_create_docks\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
774
|
-
end
|
775
|
-
return data, status_code, headers
|
776
|
-
end
|
777
|
-
|
778
|
-
# Creates a new instance in listingAgent of this model.
|
779
|
-
#
|
780
|
-
# @param id PersistedModel id
|
781
|
-
# @param [Hash] opts the optional parameters
|
782
|
-
# @option opts [ListingAgent] :data
|
783
|
-
# @return [ListingAgent]
|
784
|
-
def marina_prototype_create_listing_agent(id, opts = {})
|
785
|
-
data, _status_code, _headers = marina_prototype_create_listing_agent_with_http_info(id, opts)
|
786
|
-
return data
|
787
|
-
end
|
788
|
-
|
789
|
-
# Creates a new instance in listingAgent of this model.
|
790
|
-
#
|
791
|
-
# @param id PersistedModel id
|
792
|
-
# @param [Hash] opts the optional parameters
|
793
|
-
# @option opts [ListingAgent] :data
|
794
|
-
# @return [Array<(ListingAgent, Fixnum, Hash)>] ListingAgent data, response status code and response headers
|
795
|
-
def marina_prototype_create_listing_agent_with_http_info(id, opts = {})
|
796
|
-
if @api_client.config.debugging
|
797
|
-
@api_client.config.logger.debug "Calling API: MarinaApi.marina_prototype_create_listing_agent ..."
|
798
|
-
end
|
799
|
-
# verify the required parameter 'id' is set
|
800
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling MarinaApi.marina_prototype_create_listing_agent" if id.nil?
|
801
|
-
# resource path
|
802
|
-
local_var_path = "/Marinas/{id}/listingAgent".sub('{format}','json').sub('{' + 'id' + '}', id.to_s)
|
803
|
-
|
804
|
-
# query parameters
|
805
|
-
query_params = {}
|
806
|
-
|
807
|
-
# header parameters
|
808
|
-
header_params = {}
|
809
|
-
|
810
|
-
# HTTP header 'Accept' (if needed)
|
811
|
-
local_header_accept = ['application/json', 'application/xml', 'text/xml', 'application/javascript', 'text/javascript']
|
812
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
813
|
-
|
814
|
-
# HTTP header 'Content-Type'
|
815
|
-
local_header_content_type = ['application/json', 'application/x-www-form-urlencoded', 'application/xml', 'text/xml']
|
816
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
817
|
-
|
818
|
-
# form parameters
|
819
|
-
form_params = {}
|
820
|
-
|
821
|
-
# http body (model)
|
822
|
-
post_body = @api_client.object_to_http_body(opts[:'data'])
|
823
|
-
auth_names = []
|
824
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
825
|
-
:header_params => header_params,
|
826
|
-
:query_params => query_params,
|
827
|
-
:form_params => form_params,
|
828
|
-
:body => post_body,
|
829
|
-
:auth_names => auth_names,
|
830
|
-
:return_type => 'ListingAgent')
|
831
|
-
if @api_client.config.debugging
|
832
|
-
@api_client.config.logger.debug "API called: MarinaApi#marina_prototype_create_listing_agent\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
833
|
-
end
|
834
|
-
return data, status_code, headers
|
835
|
-
end
|
836
|
-
|
837
|
-
# Deletes all docks of this model.
|
838
|
-
#
|
839
|
-
# @param id PersistedModel id
|
840
|
-
# @param [Hash] opts the optional parameters
|
841
|
-
# @return [nil]
|
842
|
-
def marina_prototype_delete_docks(id, opts = {})
|
843
|
-
marina_prototype_delete_docks_with_http_info(id, opts)
|
844
|
-
return nil
|
845
|
-
end
|
846
|
-
|
847
|
-
# Deletes all docks of this model.
|
848
|
-
#
|
849
|
-
# @param id PersistedModel id
|
850
|
-
# @param [Hash] opts the optional parameters
|
851
|
-
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
852
|
-
def marina_prototype_delete_docks_with_http_info(id, opts = {})
|
853
|
-
if @api_client.config.debugging
|
854
|
-
@api_client.config.logger.debug "Calling API: MarinaApi.marina_prototype_delete_docks ..."
|
855
|
-
end
|
856
|
-
# verify the required parameter 'id' is set
|
857
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling MarinaApi.marina_prototype_delete_docks" if id.nil?
|
858
|
-
# resource path
|
859
|
-
local_var_path = "/Marinas/{id}/docks".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 = nil
|
880
|
-
auth_names = []
|
881
|
-
data, status_code, headers = @api_client.call_api(:DELETE, 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
|
-
if @api_client.config.debugging
|
888
|
-
@api_client.config.logger.debug "API called: MarinaApi#marina_prototype_delete_docks\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
889
|
-
end
|
890
|
-
return data, status_code, headers
|
891
|
-
end
|
892
|
-
|
893
|
-
# Deletes address of this model.
|
894
|
-
#
|
895
|
-
# @param id PersistedModel id
|
896
|
-
# @param [Hash] opts the optional parameters
|
897
|
-
# @return [nil]
|
898
|
-
def marina_prototype_destroy_address(id, opts = {})
|
899
|
-
marina_prototype_destroy_address_with_http_info(id, opts)
|
900
|
-
return nil
|
901
|
-
end
|
902
|
-
|
903
|
-
# Deletes address of this model.
|
904
|
-
#
|
905
|
-
# @param id PersistedModel id
|
906
|
-
# @param [Hash] opts the optional parameters
|
907
|
-
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
908
|
-
def marina_prototype_destroy_address_with_http_info(id, opts = {})
|
909
|
-
if @api_client.config.debugging
|
910
|
-
@api_client.config.logger.debug "Calling API: MarinaApi.marina_prototype_destroy_address ..."
|
911
|
-
end
|
912
|
-
# verify the required parameter 'id' is set
|
913
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling MarinaApi.marina_prototype_destroy_address" if id.nil?
|
914
|
-
# resource path
|
915
|
-
local_var_path = "/Marinas/{id}/address".sub('{format}','json').sub('{' + 'id' + '}', id.to_s)
|
916
|
-
|
917
|
-
# query parameters
|
918
|
-
query_params = {}
|
919
|
-
|
920
|
-
# header parameters
|
921
|
-
header_params = {}
|
922
|
-
|
923
|
-
# HTTP header 'Accept' (if needed)
|
924
|
-
local_header_accept = ['application/json', 'application/xml', 'text/xml', 'application/javascript', 'text/javascript']
|
925
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
926
|
-
|
927
|
-
# HTTP header 'Content-Type'
|
928
|
-
local_header_content_type = ['application/json', 'application/x-www-form-urlencoded', 'application/xml', 'text/xml']
|
929
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
930
|
-
|
931
|
-
# form parameters
|
932
|
-
form_params = {}
|
933
|
-
|
934
|
-
# http body (model)
|
935
|
-
post_body = nil
|
936
|
-
auth_names = []
|
937
|
-
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
938
|
-
:header_params => header_params,
|
939
|
-
:query_params => query_params,
|
940
|
-
:form_params => form_params,
|
941
|
-
:body => post_body,
|
942
|
-
:auth_names => auth_names)
|
943
|
-
if @api_client.config.debugging
|
944
|
-
@api_client.config.logger.debug "API called: MarinaApi#marina_prototype_destroy_address\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
945
|
-
end
|
946
|
-
return data, status_code, headers
|
947
|
-
end
|
948
|
-
|
949
|
-
# Delete a related item by id for docks.
|
950
|
-
#
|
951
|
-
# @param fk Foreign key for docks
|
952
|
-
# @param id PersistedModel id
|
953
|
-
# @param [Hash] opts the optional parameters
|
954
|
-
# @return [nil]
|
955
|
-
def marina_prototype_destroy_by_id_docks(fk, id, opts = {})
|
956
|
-
marina_prototype_destroy_by_id_docks_with_http_info(fk, id, opts)
|
957
|
-
return nil
|
958
|
-
end
|
959
|
-
|
960
|
-
# Delete a related item by id for docks.
|
961
|
-
#
|
962
|
-
# @param fk Foreign key for docks
|
963
|
-
# @param id PersistedModel id
|
964
|
-
# @param [Hash] opts the optional parameters
|
965
|
-
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
966
|
-
def marina_prototype_destroy_by_id_docks_with_http_info(fk, id, opts = {})
|
967
|
-
if @api_client.config.debugging
|
968
|
-
@api_client.config.logger.debug "Calling API: MarinaApi.marina_prototype_destroy_by_id_docks ..."
|
969
|
-
end
|
970
|
-
# verify the required parameter 'fk' is set
|
971
|
-
fail ArgumentError, "Missing the required parameter 'fk' when calling MarinaApi.marina_prototype_destroy_by_id_docks" if fk.nil?
|
972
|
-
# verify the required parameter 'id' is set
|
973
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling MarinaApi.marina_prototype_destroy_by_id_docks" if id.nil?
|
974
|
-
# resource path
|
975
|
-
local_var_path = "/Marinas/{id}/docks/{fk}".sub('{format}','json').sub('{' + 'fk' + '}', fk.to_s).sub('{' + 'id' + '}', id.to_s)
|
976
|
-
|
977
|
-
# query parameters
|
978
|
-
query_params = {}
|
979
|
-
|
980
|
-
# header parameters
|
981
|
-
header_params = {}
|
982
|
-
|
983
|
-
# HTTP header 'Accept' (if needed)
|
984
|
-
local_header_accept = ['application/json', 'application/xml', 'text/xml', 'application/javascript', 'text/javascript']
|
985
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
986
|
-
|
987
|
-
# HTTP header 'Content-Type'
|
988
|
-
local_header_content_type = ['application/json', 'application/x-www-form-urlencoded', 'application/xml', 'text/xml']
|
989
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
990
|
-
|
991
|
-
# form parameters
|
992
|
-
form_params = {}
|
993
|
-
|
994
|
-
# http body (model)
|
995
|
-
post_body = nil
|
996
|
-
auth_names = []
|
997
|
-
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
998
|
-
:header_params => header_params,
|
999
|
-
:query_params => query_params,
|
1000
|
-
:form_params => form_params,
|
1001
|
-
:body => post_body,
|
1002
|
-
:auth_names => auth_names)
|
1003
|
-
if @api_client.config.debugging
|
1004
|
-
@api_client.config.logger.debug "API called: MarinaApi#marina_prototype_destroy_by_id_docks\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1005
|
-
end
|
1006
|
-
return data, status_code, headers
|
1007
|
-
end
|
1008
|
-
|
1009
|
-
# Deletes listingAgent of this model.
|
1010
|
-
#
|
1011
|
-
# @param id PersistedModel id
|
1012
|
-
# @param [Hash] opts the optional parameters
|
1013
|
-
# @return [nil]
|
1014
|
-
def marina_prototype_destroy_listing_agent(id, opts = {})
|
1015
|
-
marina_prototype_destroy_listing_agent_with_http_info(id, opts)
|
1016
|
-
return nil
|
1017
|
-
end
|
1018
|
-
|
1019
|
-
# Deletes listingAgent of this model.
|
1020
|
-
#
|
1021
|
-
# @param id PersistedModel id
|
1022
|
-
# @param [Hash] opts the optional parameters
|
1023
|
-
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
1024
|
-
def marina_prototype_destroy_listing_agent_with_http_info(id, opts = {})
|
1025
|
-
if @api_client.config.debugging
|
1026
|
-
@api_client.config.logger.debug "Calling API: MarinaApi.marina_prototype_destroy_listing_agent ..."
|
1027
|
-
end
|
1028
|
-
# verify the required parameter 'id' is set
|
1029
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling MarinaApi.marina_prototype_destroy_listing_agent" if id.nil?
|
1030
|
-
# resource path
|
1031
|
-
local_var_path = "/Marinas/{id}/listingAgent".sub('{format}','json').sub('{' + 'id' + '}', id.to_s)
|
1032
|
-
|
1033
|
-
# query parameters
|
1034
|
-
query_params = {}
|
1035
|
-
|
1036
|
-
# header parameters
|
1037
|
-
header_params = {}
|
1038
|
-
|
1039
|
-
# HTTP header 'Accept' (if needed)
|
1040
|
-
local_header_accept = ['application/json', 'application/xml', 'text/xml', 'application/javascript', 'text/javascript']
|
1041
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
1042
|
-
|
1043
|
-
# HTTP header 'Content-Type'
|
1044
|
-
local_header_content_type = ['application/json', 'application/x-www-form-urlencoded', 'application/xml', 'text/xml']
|
1045
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
1046
|
-
|
1047
|
-
# form parameters
|
1048
|
-
form_params = {}
|
1049
|
-
|
1050
|
-
# http body (model)
|
1051
|
-
post_body = nil
|
1052
|
-
auth_names = []
|
1053
|
-
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
1054
|
-
:header_params => header_params,
|
1055
|
-
:query_params => query_params,
|
1056
|
-
:form_params => form_params,
|
1057
|
-
:body => post_body,
|
1058
|
-
:auth_names => auth_names)
|
1059
|
-
if @api_client.config.debugging
|
1060
|
-
@api_client.config.logger.debug "API called: MarinaApi#marina_prototype_destroy_listing_agent\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1061
|
-
end
|
1062
|
-
return data, status_code, headers
|
1063
|
-
end
|
1064
|
-
|
1065
|
-
# Find a related item by id for docks.
|
1066
|
-
#
|
1067
|
-
# @param fk Foreign key for docks
|
1068
|
-
# @param id PersistedModel id
|
1069
|
-
# @param [Hash] opts the optional parameters
|
1070
|
-
# @return [Dock]
|
1071
|
-
def marina_prototype_find_by_id_docks(fk, id, opts = {})
|
1072
|
-
data, _status_code, _headers = marina_prototype_find_by_id_docks_with_http_info(fk, id, opts)
|
1073
|
-
return data
|
1074
|
-
end
|
1075
|
-
|
1076
|
-
# Find a related item by id for docks.
|
1077
|
-
#
|
1078
|
-
# @param fk Foreign key for docks
|
1079
|
-
# @param id PersistedModel id
|
1080
|
-
# @param [Hash] opts the optional parameters
|
1081
|
-
# @return [Array<(Dock, Fixnum, Hash)>] Dock data, response status code and response headers
|
1082
|
-
def marina_prototype_find_by_id_docks_with_http_info(fk, id, opts = {})
|
1083
|
-
if @api_client.config.debugging
|
1084
|
-
@api_client.config.logger.debug "Calling API: MarinaApi.marina_prototype_find_by_id_docks ..."
|
1085
|
-
end
|
1086
|
-
# verify the required parameter 'fk' is set
|
1087
|
-
fail ArgumentError, "Missing the required parameter 'fk' when calling MarinaApi.marina_prototype_find_by_id_docks" if fk.nil?
|
1088
|
-
# verify the required parameter 'id' is set
|
1089
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling MarinaApi.marina_prototype_find_by_id_docks" if id.nil?
|
1090
|
-
# resource path
|
1091
|
-
local_var_path = "/Marinas/{id}/docks/{fk}".sub('{format}','json').sub('{' + 'fk' + '}', fk.to_s).sub('{' + 'id' + '}', id.to_s)
|
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 = nil
|
1112
|
-
auth_names = []
|
1113
|
-
data, status_code, headers = @api_client.call_api(:GET, 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: MarinaApi#marina_prototype_find_by_id_docks\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1122
|
-
end
|
1123
|
-
return data, status_code, headers
|
1124
|
-
end
|
1125
|
-
|
1126
|
-
# Fetches hasOne relation address.
|
1127
|
-
#
|
1128
|
-
# @param id PersistedModel id
|
1129
|
-
# @param [Hash] opts the optional parameters
|
1130
|
-
# @option opts [BOOLEAN] :refresh
|
1131
|
-
# @return [Address]
|
1132
|
-
def marina_prototype_get_address(id, opts = {})
|
1133
|
-
data, _status_code, _headers = marina_prototype_get_address_with_http_info(id, opts)
|
1134
|
-
return data
|
1135
|
-
end
|
1136
|
-
|
1137
|
-
# Fetches hasOne relation address.
|
1138
|
-
#
|
1139
|
-
# @param id PersistedModel id
|
1140
|
-
# @param [Hash] opts the optional parameters
|
1141
|
-
# @option opts [BOOLEAN] :refresh
|
1142
|
-
# @return [Array<(Address, Fixnum, Hash)>] Address data, response status code and response headers
|
1143
|
-
def marina_prototype_get_address_with_http_info(id, opts = {})
|
1144
|
-
if @api_client.config.debugging
|
1145
|
-
@api_client.config.logger.debug "Calling API: MarinaApi.marina_prototype_get_address ..."
|
1146
|
-
end
|
1147
|
-
# verify the required parameter 'id' is set
|
1148
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling MarinaApi.marina_prototype_get_address" if id.nil?
|
1149
|
-
# resource path
|
1150
|
-
local_var_path = "/Marinas/{id}/address".sub('{format}','json').sub('{' + 'id' + '}', id.to_s)
|
1151
|
-
|
1152
|
-
# query parameters
|
1153
|
-
query_params = {}
|
1154
|
-
query_params[:'refresh'] = opts[:'refresh'] if !opts[:'refresh'].nil?
|
1155
|
-
|
1156
|
-
# header parameters
|
1157
|
-
header_params = {}
|
1158
|
-
|
1159
|
-
# HTTP header 'Accept' (if needed)
|
1160
|
-
local_header_accept = ['application/json', 'application/xml', 'text/xml', 'application/javascript', 'text/javascript']
|
1161
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
1162
|
-
|
1163
|
-
# HTTP header 'Content-Type'
|
1164
|
-
local_header_content_type = ['application/json', 'application/x-www-form-urlencoded', 'application/xml', 'text/xml']
|
1165
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
1166
|
-
|
1167
|
-
# form parameters
|
1168
|
-
form_params = {}
|
1169
|
-
|
1170
|
-
# http body (model)
|
1171
|
-
post_body = nil
|
1172
|
-
auth_names = []
|
1173
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
1174
|
-
:header_params => header_params,
|
1175
|
-
:query_params => query_params,
|
1176
|
-
:form_params => form_params,
|
1177
|
-
:body => post_body,
|
1178
|
-
:auth_names => auth_names,
|
1179
|
-
:return_type => 'Address')
|
1180
|
-
if @api_client.config.debugging
|
1181
|
-
@api_client.config.logger.debug "API called: MarinaApi#marina_prototype_get_address\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1182
|
-
end
|
1183
|
-
return data, status_code, headers
|
1184
|
-
end
|
1185
|
-
|
1186
|
-
# Queries docks of Marina.
|
1187
|
-
#
|
1188
|
-
# @param id PersistedModel id
|
1189
|
-
# @param [Hash] opts the optional parameters
|
1190
|
-
# @option opts [String] :filter
|
1191
|
-
# @return [Array<Dock>]
|
1192
|
-
def marina_prototype_get_docks(id, opts = {})
|
1193
|
-
data, _status_code, _headers = marina_prototype_get_docks_with_http_info(id, opts)
|
1194
|
-
return data
|
1195
|
-
end
|
1196
|
-
|
1197
|
-
# Queries docks of Marina.
|
1198
|
-
#
|
1199
|
-
# @param id PersistedModel id
|
1200
|
-
# @param [Hash] opts the optional parameters
|
1201
|
-
# @option opts [String] :filter
|
1202
|
-
# @return [Array<(Array<Dock>, Fixnum, Hash)>] Array<Dock> data, response status code and response headers
|
1203
|
-
def marina_prototype_get_docks_with_http_info(id, opts = {})
|
1204
|
-
if @api_client.config.debugging
|
1205
|
-
@api_client.config.logger.debug "Calling API: MarinaApi.marina_prototype_get_docks ..."
|
1206
|
-
end
|
1207
|
-
# verify the required parameter 'id' is set
|
1208
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling MarinaApi.marina_prototype_get_docks" if id.nil?
|
1209
|
-
# resource path
|
1210
|
-
local_var_path = "/Marinas/{id}/docks".sub('{format}','json').sub('{' + 'id' + '}', id.to_s)
|
1211
|
-
|
1212
|
-
# query parameters
|
1213
|
-
query_params = {}
|
1214
|
-
query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil?
|
1215
|
-
|
1216
|
-
# header parameters
|
1217
|
-
header_params = {}
|
1218
|
-
|
1219
|
-
# HTTP header 'Accept' (if needed)
|
1220
|
-
local_header_accept = ['application/json', 'application/xml', 'text/xml', 'application/javascript', 'text/javascript']
|
1221
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
1222
|
-
|
1223
|
-
# HTTP header 'Content-Type'
|
1224
|
-
local_header_content_type = ['application/json', 'application/x-www-form-urlencoded', 'application/xml', 'text/xml']
|
1225
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
1226
|
-
|
1227
|
-
# form parameters
|
1228
|
-
form_params = {}
|
1229
|
-
|
1230
|
-
# http body (model)
|
1231
|
-
post_body = nil
|
1232
|
-
auth_names = []
|
1233
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
1234
|
-
:header_params => header_params,
|
1235
|
-
:query_params => query_params,
|
1236
|
-
:form_params => form_params,
|
1237
|
-
:body => post_body,
|
1238
|
-
:auth_names => auth_names,
|
1239
|
-
:return_type => 'Array<Dock>')
|
1240
|
-
if @api_client.config.debugging
|
1241
|
-
@api_client.config.logger.debug "API called: MarinaApi#marina_prototype_get_docks\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1242
|
-
end
|
1243
|
-
return data, status_code, headers
|
1244
|
-
end
|
1245
|
-
|
1246
|
-
# Fetches hasOne relation listingAgent.
|
1247
|
-
#
|
1248
|
-
# @param id PersistedModel id
|
1249
|
-
# @param [Hash] opts the optional parameters
|
1250
|
-
# @option opts [BOOLEAN] :refresh
|
1251
|
-
# @return [ListingAgent]
|
1252
|
-
def marina_prototype_get_listing_agent(id, opts = {})
|
1253
|
-
data, _status_code, _headers = marina_prototype_get_listing_agent_with_http_info(id, opts)
|
1254
|
-
return data
|
1255
|
-
end
|
1256
|
-
|
1257
|
-
# Fetches hasOne relation listingAgent.
|
1258
|
-
#
|
1259
|
-
# @param id PersistedModel id
|
1260
|
-
# @param [Hash] opts the optional parameters
|
1261
|
-
# @option opts [BOOLEAN] :refresh
|
1262
|
-
# @return [Array<(ListingAgent, Fixnum, Hash)>] ListingAgent data, response status code and response headers
|
1263
|
-
def marina_prototype_get_listing_agent_with_http_info(id, opts = {})
|
1264
|
-
if @api_client.config.debugging
|
1265
|
-
@api_client.config.logger.debug "Calling API: MarinaApi.marina_prototype_get_listing_agent ..."
|
1266
|
-
end
|
1267
|
-
# verify the required parameter 'id' is set
|
1268
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling MarinaApi.marina_prototype_get_listing_agent" if id.nil?
|
1269
|
-
# resource path
|
1270
|
-
local_var_path = "/Marinas/{id}/listingAgent".sub('{format}','json').sub('{' + 'id' + '}', id.to_s)
|
1271
|
-
|
1272
|
-
# query parameters
|
1273
|
-
query_params = {}
|
1274
|
-
query_params[:'refresh'] = opts[:'refresh'] if !opts[:'refresh'].nil?
|
1275
|
-
|
1276
|
-
# header parameters
|
1277
|
-
header_params = {}
|
1278
|
-
|
1279
|
-
# HTTP header 'Accept' (if needed)
|
1280
|
-
local_header_accept = ['application/json', 'application/xml', 'text/xml', 'application/javascript', 'text/javascript']
|
1281
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
1282
|
-
|
1283
|
-
# HTTP header 'Content-Type'
|
1284
|
-
local_header_content_type = ['application/json', 'application/x-www-form-urlencoded', 'application/xml', 'text/xml']
|
1285
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
1286
|
-
|
1287
|
-
# form parameters
|
1288
|
-
form_params = {}
|
1289
|
-
|
1290
|
-
# http body (model)
|
1291
|
-
post_body = nil
|
1292
|
-
auth_names = []
|
1293
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
1294
|
-
:header_params => header_params,
|
1295
|
-
:query_params => query_params,
|
1296
|
-
:form_params => form_params,
|
1297
|
-
:body => post_body,
|
1298
|
-
:auth_names => auth_names,
|
1299
|
-
:return_type => 'ListingAgent')
|
1300
|
-
if @api_client.config.debugging
|
1301
|
-
@api_client.config.logger.debug "API called: MarinaApi#marina_prototype_get_listing_agent\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1302
|
-
end
|
1303
|
-
return data, status_code, headers
|
1304
|
-
end
|
1305
|
-
|
1306
|
-
# Update address of this model.
|
1307
|
-
#
|
1308
|
-
# @param id PersistedModel id
|
1309
|
-
# @param [Hash] opts the optional parameters
|
1310
|
-
# @option opts [Address] :data
|
1311
|
-
# @return [Address]
|
1312
|
-
def marina_prototype_update_address(id, opts = {})
|
1313
|
-
data, _status_code, _headers = marina_prototype_update_address_with_http_info(id, opts)
|
1314
|
-
return data
|
1315
|
-
end
|
1316
|
-
|
1317
|
-
# Update address of this model.
|
1318
|
-
#
|
1319
|
-
# @param id PersistedModel id
|
1320
|
-
# @param [Hash] opts the optional parameters
|
1321
|
-
# @option opts [Address] :data
|
1322
|
-
# @return [Array<(Address, Fixnum, Hash)>] Address data, response status code and response headers
|
1323
|
-
def marina_prototype_update_address_with_http_info(id, opts = {})
|
1324
|
-
if @api_client.config.debugging
|
1325
|
-
@api_client.config.logger.debug "Calling API: MarinaApi.marina_prototype_update_address ..."
|
1326
|
-
end
|
1327
|
-
# verify the required parameter 'id' is set
|
1328
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling MarinaApi.marina_prototype_update_address" if id.nil?
|
1329
|
-
# resource path
|
1330
|
-
local_var_path = "/Marinas/{id}/address".sub('{format}','json').sub('{' + 'id' + '}', id.to_s)
|
1331
|
-
|
1332
|
-
# query parameters
|
1333
|
-
query_params = {}
|
1334
|
-
|
1335
|
-
# header parameters
|
1336
|
-
header_params = {}
|
1337
|
-
|
1338
|
-
# HTTP header 'Accept' (if needed)
|
1339
|
-
local_header_accept = ['application/json', 'application/xml', 'text/xml', 'application/javascript', 'text/javascript']
|
1340
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
1341
|
-
|
1342
|
-
# HTTP header 'Content-Type'
|
1343
|
-
local_header_content_type = ['application/json', 'application/x-www-form-urlencoded', 'application/xml', 'text/xml']
|
1344
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
1345
|
-
|
1346
|
-
# form parameters
|
1347
|
-
form_params = {}
|
1348
|
-
|
1349
|
-
# http body (model)
|
1350
|
-
post_body = @api_client.object_to_http_body(opts[:'data'])
|
1351
|
-
auth_names = []
|
1352
|
-
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
1353
|
-
:header_params => header_params,
|
1354
|
-
:query_params => query_params,
|
1355
|
-
:form_params => form_params,
|
1356
|
-
:body => post_body,
|
1357
|
-
:auth_names => auth_names,
|
1358
|
-
:return_type => 'Address')
|
1359
|
-
if @api_client.config.debugging
|
1360
|
-
@api_client.config.logger.debug "API called: MarinaApi#marina_prototype_update_address\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1361
|
-
end
|
1362
|
-
return data, status_code, headers
|
1363
|
-
end
|
1364
|
-
|
1365
|
-
# Patch attributes for a model instance and persist it into the data source.
|
1366
|
-
#
|
1367
|
-
# @param id PersistedModel id
|
1368
|
-
# @param [Hash] opts the optional parameters
|
1369
|
-
# @option opts [Marina] :data An object of model property name/value pairs
|
1370
|
-
# @return [Marina]
|
1371
|
-
def marina_prototype_update_attributes_patch_marinasid(id, opts = {})
|
1372
|
-
data, _status_code, _headers = marina_prototype_update_attributes_patch_marinasid_with_http_info(id, opts)
|
1373
|
-
return data
|
1374
|
-
end
|
1375
|
-
|
1376
|
-
# Patch attributes for a model instance and persist it into the data source.
|
1377
|
-
#
|
1378
|
-
# @param id PersistedModel id
|
1379
|
-
# @param [Hash] opts the optional parameters
|
1380
|
-
# @option opts [Marina] :data An object of model property name/value pairs
|
1381
|
-
# @return [Array<(Marina, Fixnum, Hash)>] Marina data, response status code and response headers
|
1382
|
-
def marina_prototype_update_attributes_patch_marinasid_with_http_info(id, opts = {})
|
1383
|
-
if @api_client.config.debugging
|
1384
|
-
@api_client.config.logger.debug "Calling API: MarinaApi.marina_prototype_update_attributes_patch_marinasid ..."
|
1385
|
-
end
|
1386
|
-
# verify the required parameter 'id' is set
|
1387
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling MarinaApi.marina_prototype_update_attributes_patch_marinasid" if id.nil?
|
1388
|
-
# resource path
|
1389
|
-
local_var_path = "/Marinas/{id}".sub('{format}','json').sub('{' + 'id' + '}', id.to_s)
|
1390
|
-
|
1391
|
-
# query parameters
|
1392
|
-
query_params = {}
|
1393
|
-
|
1394
|
-
# header parameters
|
1395
|
-
header_params = {}
|
1396
|
-
|
1397
|
-
# HTTP header 'Accept' (if needed)
|
1398
|
-
local_header_accept = ['application/json', 'application/xml', 'text/xml', 'application/javascript', 'text/javascript']
|
1399
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
1400
|
-
|
1401
|
-
# HTTP header 'Content-Type'
|
1402
|
-
local_header_content_type = ['application/json', 'application/x-www-form-urlencoded', 'application/xml', 'text/xml']
|
1403
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
1404
|
-
|
1405
|
-
# form parameters
|
1406
|
-
form_params = {}
|
1407
|
-
|
1408
|
-
# http body (model)
|
1409
|
-
post_body = @api_client.object_to_http_body(opts[:'data'])
|
1410
|
-
auth_names = []
|
1411
|
-
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
|
1412
|
-
:header_params => header_params,
|
1413
|
-
:query_params => query_params,
|
1414
|
-
:form_params => form_params,
|
1415
|
-
:body => post_body,
|
1416
|
-
:auth_names => auth_names,
|
1417
|
-
:return_type => 'Marina')
|
1418
|
-
if @api_client.config.debugging
|
1419
|
-
@api_client.config.logger.debug "API called: MarinaApi#marina_prototype_update_attributes_patch_marinasid\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1420
|
-
end
|
1421
|
-
return data, status_code, headers
|
1422
|
-
end
|
1423
|
-
|
1424
|
-
# Patch attributes for a model instance and persist it into the data source.
|
1425
|
-
#
|
1426
|
-
# @param id PersistedModel id
|
1427
|
-
# @param [Hash] opts the optional parameters
|
1428
|
-
# @option opts [Marina] :data An object of model property name/value pairs
|
1429
|
-
# @return [Marina]
|
1430
|
-
def marina_prototype_update_attributes_put_marinasid(id, opts = {})
|
1431
|
-
data, _status_code, _headers = marina_prototype_update_attributes_put_marinasid_with_http_info(id, opts)
|
1432
|
-
return data
|
1433
|
-
end
|
1434
|
-
|
1435
|
-
# Patch attributes for a model instance and persist it into the data source.
|
1436
|
-
#
|
1437
|
-
# @param id PersistedModel id
|
1438
|
-
# @param [Hash] opts the optional parameters
|
1439
|
-
# @option opts [Marina] :data An object of model property name/value pairs
|
1440
|
-
# @return [Array<(Marina, Fixnum, Hash)>] Marina data, response status code and response headers
|
1441
|
-
def marina_prototype_update_attributes_put_marinasid_with_http_info(id, opts = {})
|
1442
|
-
if @api_client.config.debugging
|
1443
|
-
@api_client.config.logger.debug "Calling API: MarinaApi.marina_prototype_update_attributes_put_marinasid ..."
|
1444
|
-
end
|
1445
|
-
# verify the required parameter 'id' is set
|
1446
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling MarinaApi.marina_prototype_update_attributes_put_marinasid" if id.nil?
|
1447
|
-
# resource path
|
1448
|
-
local_var_path = "/Marinas/{id}".sub('{format}','json').sub('{' + 'id' + '}', id.to_s)
|
1449
|
-
|
1450
|
-
# query parameters
|
1451
|
-
query_params = {}
|
1452
|
-
|
1453
|
-
# header parameters
|
1454
|
-
header_params = {}
|
1455
|
-
|
1456
|
-
# HTTP header 'Accept' (if needed)
|
1457
|
-
local_header_accept = ['application/json', 'application/xml', 'text/xml', 'application/javascript', 'text/javascript']
|
1458
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
1459
|
-
|
1460
|
-
# HTTP header 'Content-Type'
|
1461
|
-
local_header_content_type = ['application/json', 'application/x-www-form-urlencoded', 'application/xml', 'text/xml']
|
1462
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
1463
|
-
|
1464
|
-
# form parameters
|
1465
|
-
form_params = {}
|
1466
|
-
|
1467
|
-
# http body (model)
|
1468
|
-
post_body = @api_client.object_to_http_body(opts[:'data'])
|
1469
|
-
auth_names = []
|
1470
|
-
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
1471
|
-
:header_params => header_params,
|
1472
|
-
:query_params => query_params,
|
1473
|
-
:form_params => form_params,
|
1474
|
-
:body => post_body,
|
1475
|
-
:auth_names => auth_names,
|
1476
|
-
:return_type => 'Marina')
|
1477
|
-
if @api_client.config.debugging
|
1478
|
-
@api_client.config.logger.debug "API called: MarinaApi#marina_prototype_update_attributes_put_marinasid\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1479
|
-
end
|
1480
|
-
return data, status_code, headers
|
1481
|
-
end
|
1482
|
-
|
1483
|
-
# Update a related item by id for docks.
|
1484
|
-
#
|
1485
|
-
# @param fk Foreign key for docks
|
1486
|
-
# @param id PersistedModel id
|
1487
|
-
# @param [Hash] opts the optional parameters
|
1488
|
-
# @option opts [Dock] :data
|
1489
|
-
# @return [Dock]
|
1490
|
-
def marina_prototype_update_by_id_docks(fk, id, opts = {})
|
1491
|
-
data, _status_code, _headers = marina_prototype_update_by_id_docks_with_http_info(fk, id, opts)
|
1492
|
-
return data
|
1493
|
-
end
|
1494
|
-
|
1495
|
-
# Update a related item by id for docks.
|
1496
|
-
#
|
1497
|
-
# @param fk Foreign key for docks
|
1498
|
-
# @param id PersistedModel id
|
1499
|
-
# @param [Hash] opts the optional parameters
|
1500
|
-
# @option opts [Dock] :data
|
1501
|
-
# @return [Array<(Dock, Fixnum, Hash)>] Dock data, response status code and response headers
|
1502
|
-
def marina_prototype_update_by_id_docks_with_http_info(fk, id, opts = {})
|
1503
|
-
if @api_client.config.debugging
|
1504
|
-
@api_client.config.logger.debug "Calling API: MarinaApi.marina_prototype_update_by_id_docks ..."
|
1505
|
-
end
|
1506
|
-
# verify the required parameter 'fk' is set
|
1507
|
-
fail ArgumentError, "Missing the required parameter 'fk' when calling MarinaApi.marina_prototype_update_by_id_docks" if fk.nil?
|
1508
|
-
# verify the required parameter 'id' is set
|
1509
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling MarinaApi.marina_prototype_update_by_id_docks" if id.nil?
|
1510
|
-
# resource path
|
1511
|
-
local_var_path = "/Marinas/{id}/docks/{fk}".sub('{format}','json').sub('{' + 'fk' + '}', fk.to_s).sub('{' + 'id' + '}', id.to_s)
|
1512
|
-
|
1513
|
-
# query parameters
|
1514
|
-
query_params = {}
|
1515
|
-
|
1516
|
-
# header parameters
|
1517
|
-
header_params = {}
|
1518
|
-
|
1519
|
-
# HTTP header 'Accept' (if needed)
|
1520
|
-
local_header_accept = ['application/json', 'application/xml', 'text/xml', 'application/javascript', 'text/javascript']
|
1521
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
1522
|
-
|
1523
|
-
# HTTP header 'Content-Type'
|
1524
|
-
local_header_content_type = ['application/json', 'application/x-www-form-urlencoded', 'application/xml', 'text/xml']
|
1525
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
1526
|
-
|
1527
|
-
# form parameters
|
1528
|
-
form_params = {}
|
1529
|
-
|
1530
|
-
# http body (model)
|
1531
|
-
post_body = @api_client.object_to_http_body(opts[:'data'])
|
1532
|
-
auth_names = []
|
1533
|
-
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
1534
|
-
:header_params => header_params,
|
1535
|
-
:query_params => query_params,
|
1536
|
-
:form_params => form_params,
|
1537
|
-
:body => post_body,
|
1538
|
-
:auth_names => auth_names,
|
1539
|
-
:return_type => 'Dock')
|
1540
|
-
if @api_client.config.debugging
|
1541
|
-
@api_client.config.logger.debug "API called: MarinaApi#marina_prototype_update_by_id_docks\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1542
|
-
end
|
1543
|
-
return data, status_code, headers
|
1544
|
-
end
|
1545
|
-
|
1546
|
-
# Update listingAgent of this model.
|
1547
|
-
#
|
1548
|
-
# @param id PersistedModel id
|
1549
|
-
# @param [Hash] opts the optional parameters
|
1550
|
-
# @option opts [ListingAgent] :data
|
1551
|
-
# @return [ListingAgent]
|
1552
|
-
def marina_prototype_update_listing_agent(id, opts = {})
|
1553
|
-
data, _status_code, _headers = marina_prototype_update_listing_agent_with_http_info(id, opts)
|
1554
|
-
return data
|
1555
|
-
end
|
1556
|
-
|
1557
|
-
# Update listingAgent of this model.
|
1558
|
-
#
|
1559
|
-
# @param id PersistedModel id
|
1560
|
-
# @param [Hash] opts the optional parameters
|
1561
|
-
# @option opts [ListingAgent] :data
|
1562
|
-
# @return [Array<(ListingAgent, Fixnum, Hash)>] ListingAgent data, response status code and response headers
|
1563
|
-
def marina_prototype_update_listing_agent_with_http_info(id, opts = {})
|
1564
|
-
if @api_client.config.debugging
|
1565
|
-
@api_client.config.logger.debug "Calling API: MarinaApi.marina_prototype_update_listing_agent ..."
|
1566
|
-
end
|
1567
|
-
# verify the required parameter 'id' is set
|
1568
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling MarinaApi.marina_prototype_update_listing_agent" if id.nil?
|
1569
|
-
# resource path
|
1570
|
-
local_var_path = "/Marinas/{id}/listingAgent".sub('{format}','json').sub('{' + 'id' + '}', id.to_s)
|
1571
|
-
|
1572
|
-
# query parameters
|
1573
|
-
query_params = {}
|
1574
|
-
|
1575
|
-
# header parameters
|
1576
|
-
header_params = {}
|
1577
|
-
|
1578
|
-
# HTTP header 'Accept' (if needed)
|
1579
|
-
local_header_accept = ['application/json', 'application/xml', 'text/xml', 'application/javascript', 'text/javascript']
|
1580
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
1581
|
-
|
1582
|
-
# HTTP header 'Content-Type'
|
1583
|
-
local_header_content_type = ['application/json', 'application/x-www-form-urlencoded', 'application/xml', 'text/xml']
|
1584
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
1585
|
-
|
1586
|
-
# form parameters
|
1587
|
-
form_params = {}
|
1588
|
-
|
1589
|
-
# http body (model)
|
1590
|
-
post_body = @api_client.object_to_http_body(opts[:'data'])
|
1591
|
-
auth_names = []
|
1592
|
-
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
1593
|
-
:header_params => header_params,
|
1594
|
-
:query_params => query_params,
|
1595
|
-
:form_params => form_params,
|
1596
|
-
:body => post_body,
|
1597
|
-
:auth_names => auth_names,
|
1598
|
-
:return_type => 'ListingAgent')
|
1599
|
-
if @api_client.config.debugging
|
1600
|
-
@api_client.config.logger.debug "API called: MarinaApi#marina_prototype_update_listing_agent\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1601
|
-
end
|
1602
|
-
return data, status_code, headers
|
1603
|
-
end
|
1604
|
-
|
1605
|
-
# Replace attributes for a model instance and persist it into the data source.
|
1606
|
-
#
|
1607
|
-
# @param id Model id
|
1608
|
-
# @param [Hash] opts the optional parameters
|
1609
|
-
# @option opts [Marina] :data Model instance data
|
1610
|
-
# @return [Marina]
|
1611
|
-
def marina_replace_by_id(id, opts = {})
|
1612
|
-
data, _status_code, _headers = marina_replace_by_id_with_http_info(id, opts)
|
1613
|
-
return data
|
1614
|
-
end
|
1615
|
-
|
1616
|
-
# Replace attributes for a model instance and persist it into the data source.
|
1617
|
-
#
|
1618
|
-
# @param id Model id
|
1619
|
-
# @param [Hash] opts the optional parameters
|
1620
|
-
# @option opts [Marina] :data Model instance data
|
1621
|
-
# @return [Array<(Marina, Fixnum, Hash)>] Marina data, response status code and response headers
|
1622
|
-
def marina_replace_by_id_with_http_info(id, opts = {})
|
1623
|
-
if @api_client.config.debugging
|
1624
|
-
@api_client.config.logger.debug "Calling API: MarinaApi.marina_replace_by_id ..."
|
1625
|
-
end
|
1626
|
-
# verify the required parameter 'id' is set
|
1627
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling MarinaApi.marina_replace_by_id" if id.nil?
|
1628
|
-
# resource path
|
1629
|
-
local_var_path = "/Marinas/{id}/replace".sub('{format}','json').sub('{' + 'id' + '}', id.to_s)
|
1630
|
-
|
1631
|
-
# query parameters
|
1632
|
-
query_params = {}
|
1633
|
-
|
1634
|
-
# header parameters
|
1635
|
-
header_params = {}
|
1636
|
-
|
1637
|
-
# HTTP header 'Accept' (if needed)
|
1638
|
-
local_header_accept = ['application/json', 'application/xml', 'text/xml', 'application/javascript', 'text/javascript']
|
1639
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
1640
|
-
|
1641
|
-
# HTTP header 'Content-Type'
|
1642
|
-
local_header_content_type = ['application/json', 'application/x-www-form-urlencoded', 'application/xml', 'text/xml']
|
1643
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
1644
|
-
|
1645
|
-
# form parameters
|
1646
|
-
form_params = {}
|
1647
|
-
|
1648
|
-
# http body (model)
|
1649
|
-
post_body = @api_client.object_to_http_body(opts[:'data'])
|
1650
|
-
auth_names = []
|
1651
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
1652
|
-
:header_params => header_params,
|
1653
|
-
:query_params => query_params,
|
1654
|
-
:form_params => form_params,
|
1655
|
-
:body => post_body,
|
1656
|
-
:auth_names => auth_names,
|
1657
|
-
:return_type => 'Marina')
|
1658
|
-
if @api_client.config.debugging
|
1659
|
-
@api_client.config.logger.debug "API called: MarinaApi#marina_replace_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1660
|
-
end
|
1661
|
-
return data, status_code, headers
|
1662
|
-
end
|
1663
|
-
|
1664
|
-
# Replace an existing model instance or insert a new one into the data source.
|
1665
|
-
#
|
1666
|
-
# @param [Hash] opts the optional parameters
|
1667
|
-
# @option opts [Marina] :data Model instance data
|
1668
|
-
# @return [Marina]
|
1669
|
-
def marina_replace_or_create(opts = {})
|
1670
|
-
data, _status_code, _headers = marina_replace_or_create_with_http_info(opts)
|
1671
|
-
return data
|
1672
|
-
end
|
1673
|
-
|
1674
|
-
# Replace an existing model instance or insert a new one into the data source.
|
1675
|
-
#
|
1676
|
-
# @param [Hash] opts the optional parameters
|
1677
|
-
# @option opts [Marina] :data Model instance data
|
1678
|
-
# @return [Array<(Marina, Fixnum, Hash)>] Marina data, response status code and response headers
|
1679
|
-
def marina_replace_or_create_with_http_info(opts = {})
|
1680
|
-
if @api_client.config.debugging
|
1681
|
-
@api_client.config.logger.debug "Calling API: MarinaApi.marina_replace_or_create ..."
|
1682
|
-
end
|
1683
|
-
# resource path
|
1684
|
-
local_var_path = "/Marinas/replaceOrCreate".sub('{format}','json')
|
1685
|
-
|
1686
|
-
# query parameters
|
1687
|
-
query_params = {}
|
1688
|
-
|
1689
|
-
# header parameters
|
1690
|
-
header_params = {}
|
1691
|
-
|
1692
|
-
# HTTP header 'Accept' (if needed)
|
1693
|
-
local_header_accept = ['application/json', 'application/xml', 'text/xml', 'application/javascript', 'text/javascript']
|
1694
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
1695
|
-
|
1696
|
-
# HTTP header 'Content-Type'
|
1697
|
-
local_header_content_type = ['application/json', 'application/x-www-form-urlencoded', 'application/xml', 'text/xml']
|
1698
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
1699
|
-
|
1700
|
-
# form parameters
|
1701
|
-
form_params = {}
|
1702
|
-
|
1703
|
-
# http body (model)
|
1704
|
-
post_body = @api_client.object_to_http_body(opts[:'data'])
|
1705
|
-
auth_names = []
|
1706
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
1707
|
-
:header_params => header_params,
|
1708
|
-
:query_params => query_params,
|
1709
|
-
:form_params => form_params,
|
1710
|
-
:body => post_body,
|
1711
|
-
:auth_names => auth_names,
|
1712
|
-
:return_type => 'Marina')
|
1713
|
-
if @api_client.config.debugging
|
1714
|
-
@api_client.config.logger.debug "API called: MarinaApi#marina_replace_or_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1715
|
-
end
|
1716
|
-
return data, status_code, headers
|
1717
|
-
end
|
1718
|
-
|
1719
|
-
# Update instances of the model matched by {{where}} from the data source.
|
1720
|
-
#
|
1721
|
-
# @param [Hash] opts the optional parameters
|
1722
|
-
# @option opts [String] :where Criteria to match model instances
|
1723
|
-
# @option opts [Marina] :data An object of model property name/value pairs
|
1724
|
-
# @return [InlineResponse2001]
|
1725
|
-
def marina_update_all(opts = {})
|
1726
|
-
data, _status_code, _headers = marina_update_all_with_http_info(opts)
|
1727
|
-
return data
|
1728
|
-
end
|
1729
|
-
|
1730
|
-
# Update instances of the model matched by {{where}} from the data source.
|
1731
|
-
#
|
1732
|
-
# @param [Hash] opts the optional parameters
|
1733
|
-
# @option opts [String] :where Criteria to match model instances
|
1734
|
-
# @option opts [Marina] :data An object of model property name/value pairs
|
1735
|
-
# @return [Array<(InlineResponse2001, Fixnum, Hash)>] InlineResponse2001 data, response status code and response headers
|
1736
|
-
def marina_update_all_with_http_info(opts = {})
|
1737
|
-
if @api_client.config.debugging
|
1738
|
-
@api_client.config.logger.debug "Calling API: MarinaApi.marina_update_all ..."
|
1739
|
-
end
|
1740
|
-
# resource path
|
1741
|
-
local_var_path = "/Marinas/update".sub('{format}','json')
|
1742
|
-
|
1743
|
-
# query parameters
|
1744
|
-
query_params = {}
|
1745
|
-
query_params[:'where'] = opts[:'where'] if !opts[:'where'].nil?
|
1746
|
-
|
1747
|
-
# header parameters
|
1748
|
-
header_params = {}
|
1749
|
-
|
1750
|
-
# HTTP header 'Accept' (if needed)
|
1751
|
-
local_header_accept = ['application/json', 'application/xml', 'text/xml', 'application/javascript', 'text/javascript']
|
1752
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
1753
|
-
|
1754
|
-
# HTTP header 'Content-Type'
|
1755
|
-
local_header_content_type = ['application/json', 'application/x-www-form-urlencoded', 'application/xml', 'text/xml']
|
1756
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
1757
|
-
|
1758
|
-
# form parameters
|
1759
|
-
form_params = {}
|
1760
|
-
|
1761
|
-
# http body (model)
|
1762
|
-
post_body = @api_client.object_to_http_body(opts[:'data'])
|
1763
|
-
auth_names = []
|
1764
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
1765
|
-
:header_params => header_params,
|
1766
|
-
:query_params => query_params,
|
1767
|
-
:form_params => form_params,
|
1768
|
-
:body => post_body,
|
1769
|
-
:auth_names => auth_names,
|
1770
|
-
:return_type => 'InlineResponse2001')
|
1771
|
-
if @api_client.config.debugging
|
1772
|
-
@api_client.config.logger.debug "API called: MarinaApi#marina_update_all\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1773
|
-
end
|
1774
|
-
return data, status_code, headers
|
1775
|
-
end
|
1776
|
-
|
1777
|
-
# Patch an existing model instance or insert a new one into the data source.
|
1778
|
-
#
|
1779
|
-
# @param [Hash] opts the optional parameters
|
1780
|
-
# @option opts [Marina] :data Model instance data
|
1781
|
-
# @return [Marina]
|
1782
|
-
def marina_upsert_patch_marinas(opts = {})
|
1783
|
-
data, _status_code, _headers = marina_upsert_patch_marinas_with_http_info(opts)
|
1784
|
-
return data
|
1785
|
-
end
|
1786
|
-
|
1787
|
-
# Patch an existing model instance or insert a new one into the data source.
|
1788
|
-
#
|
1789
|
-
# @param [Hash] opts the optional parameters
|
1790
|
-
# @option opts [Marina] :data Model instance data
|
1791
|
-
# @return [Array<(Marina, Fixnum, Hash)>] Marina data, response status code and response headers
|
1792
|
-
def marina_upsert_patch_marinas_with_http_info(opts = {})
|
1793
|
-
if @api_client.config.debugging
|
1794
|
-
@api_client.config.logger.debug "Calling API: MarinaApi.marina_upsert_patch_marinas ..."
|
1795
|
-
end
|
1796
|
-
# resource path
|
1797
|
-
local_var_path = "/Marinas".sub('{format}','json')
|
1798
|
-
|
1799
|
-
# query parameters
|
1800
|
-
query_params = {}
|
1801
|
-
|
1802
|
-
# header parameters
|
1803
|
-
header_params = {}
|
1804
|
-
|
1805
|
-
# HTTP header 'Accept' (if needed)
|
1806
|
-
local_header_accept = ['application/json', 'application/xml', 'text/xml', 'application/javascript', 'text/javascript']
|
1807
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
1808
|
-
|
1809
|
-
# HTTP header 'Content-Type'
|
1810
|
-
local_header_content_type = ['application/json', 'application/x-www-form-urlencoded', 'application/xml', 'text/xml']
|
1811
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
1812
|
-
|
1813
|
-
# form parameters
|
1814
|
-
form_params = {}
|
1815
|
-
|
1816
|
-
# http body (model)
|
1817
|
-
post_body = @api_client.object_to_http_body(opts[:'data'])
|
1818
|
-
auth_names = []
|
1819
|
-
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
|
1820
|
-
:header_params => header_params,
|
1821
|
-
:query_params => query_params,
|
1822
|
-
:form_params => form_params,
|
1823
|
-
:body => post_body,
|
1824
|
-
:auth_names => auth_names,
|
1825
|
-
:return_type => 'Marina')
|
1826
|
-
if @api_client.config.debugging
|
1827
|
-
@api_client.config.logger.debug "API called: MarinaApi#marina_upsert_patch_marinas\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1828
|
-
end
|
1829
|
-
return data, status_code, headers
|
1830
|
-
end
|
1831
|
-
|
1832
|
-
# Patch an existing model instance or insert a new one into the data source.
|
1833
|
-
#
|
1834
|
-
# @param [Hash] opts the optional parameters
|
1835
|
-
# @option opts [Marina] :data Model instance data
|
1836
|
-
# @return [Marina]
|
1837
|
-
def marina_upsert_put_marinas(opts = {})
|
1838
|
-
data, _status_code, _headers = marina_upsert_put_marinas_with_http_info(opts)
|
1839
|
-
return data
|
1840
|
-
end
|
1841
|
-
|
1842
|
-
# Patch an existing model instance or insert a new one into the data source.
|
1843
|
-
#
|
1844
|
-
# @param [Hash] opts the optional parameters
|
1845
|
-
# @option opts [Marina] :data Model instance data
|
1846
|
-
# @return [Array<(Marina, Fixnum, Hash)>] Marina data, response status code and response headers
|
1847
|
-
def marina_upsert_put_marinas_with_http_info(opts = {})
|
1848
|
-
if @api_client.config.debugging
|
1849
|
-
@api_client.config.logger.debug "Calling API: MarinaApi.marina_upsert_put_marinas ..."
|
1850
|
-
end
|
1851
|
-
# resource path
|
1852
|
-
local_var_path = "/Marinas".sub('{format}','json')
|
1853
|
-
|
1854
|
-
# query parameters
|
1855
|
-
query_params = {}
|
1856
|
-
|
1857
|
-
# header parameters
|
1858
|
-
header_params = {}
|
1859
|
-
|
1860
|
-
# HTTP header 'Accept' (if needed)
|
1861
|
-
local_header_accept = ['application/json', 'application/xml', 'text/xml', 'application/javascript', 'text/javascript']
|
1862
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
1863
|
-
|
1864
|
-
# HTTP header 'Content-Type'
|
1865
|
-
local_header_content_type = ['application/json', 'application/x-www-form-urlencoded', 'application/xml', 'text/xml']
|
1866
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
1867
|
-
|
1868
|
-
# form parameters
|
1869
|
-
form_params = {}
|
1870
|
-
|
1871
|
-
# http body (model)
|
1872
|
-
post_body = @api_client.object_to_http_body(opts[:'data'])
|
1873
|
-
auth_names = []
|
1874
|
-
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
1875
|
-
:header_params => header_params,
|
1876
|
-
:query_params => query_params,
|
1877
|
-
:form_params => form_params,
|
1878
|
-
:body => post_body,
|
1879
|
-
:auth_names => auth_names,
|
1880
|
-
:return_type => 'Marina')
|
1881
|
-
if @api_client.config.debugging
|
1882
|
-
@api_client.config.logger.debug "API called: MarinaApi#marina_upsert_put_marinas\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1883
|
-
end
|
1884
|
-
return data, status_code, headers
|
1885
|
-
end
|
1886
|
-
|
1887
|
-
# Update an existing model instance or insert a new one into the data source based on the where criteria.
|
1888
|
-
#
|
1889
|
-
# @param [Hash] opts the optional parameters
|
1890
|
-
# @option opts [String] :where Criteria to match model instances
|
1891
|
-
# @option opts [Marina] :data An object of model property name/value pairs
|
1892
|
-
# @return [Marina]
|
1893
|
-
def marina_upsert_with_where(opts = {})
|
1894
|
-
data, _status_code, _headers = marina_upsert_with_where_with_http_info(opts)
|
1895
|
-
return data
|
1896
|
-
end
|
1897
|
-
|
1898
|
-
# Update an existing model instance or insert a new one into the data source based on the where criteria.
|
1899
|
-
#
|
1900
|
-
# @param [Hash] opts the optional parameters
|
1901
|
-
# @option opts [String] :where Criteria to match model instances
|
1902
|
-
# @option opts [Marina] :data An object of model property name/value pairs
|
1903
|
-
# @return [Array<(Marina, Fixnum, Hash)>] Marina data, response status code and response headers
|
1904
|
-
def marina_upsert_with_where_with_http_info(opts = {})
|
1905
|
-
if @api_client.config.debugging
|
1906
|
-
@api_client.config.logger.debug "Calling API: MarinaApi.marina_upsert_with_where ..."
|
1907
|
-
end
|
1908
|
-
# resource path
|
1909
|
-
local_var_path = "/Marinas/upsertWithWhere".sub('{format}','json')
|
1910
|
-
|
1911
|
-
# query parameters
|
1912
|
-
query_params = {}
|
1913
|
-
query_params[:'where'] = opts[:'where'] if !opts[:'where'].nil?
|
1914
|
-
|
1915
|
-
# header parameters
|
1916
|
-
header_params = {}
|
1917
|
-
|
1918
|
-
# HTTP header 'Accept' (if needed)
|
1919
|
-
local_header_accept = ['application/json', 'application/xml', 'text/xml', 'application/javascript', 'text/javascript']
|
1920
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
1921
|
-
|
1922
|
-
# HTTP header 'Content-Type'
|
1923
|
-
local_header_content_type = ['application/json', 'application/x-www-form-urlencoded', 'application/xml', 'text/xml']
|
1924
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
1925
|
-
|
1926
|
-
# form parameters
|
1927
|
-
form_params = {}
|
1928
|
-
|
1929
|
-
# http body (model)
|
1930
|
-
post_body = @api_client.object_to_http_body(opts[:'data'])
|
1931
|
-
auth_names = []
|
1932
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
1933
|
-
:header_params => header_params,
|
1934
|
-
:query_params => query_params,
|
1935
|
-
:form_params => form_params,
|
1936
|
-
:body => post_body,
|
1937
|
-
:auth_names => auth_names,
|
1938
|
-
:return_type => 'Marina')
|
1939
|
-
if @api_client.config.debugging
|
1940
|
-
@api_client.config.logger.debug "API called: MarinaApi#marina_upsert_with_where\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1941
|
-
end
|
1942
|
-
return data, status_code, headers
|
1943
|
-
end
|
1944
|
-
end
|
1945
|
-
end
|