dock_genius_api_ruby_client 0.1.1.pre.g582ac6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE +201 -0
- data/README.md +200 -0
- data/dock_genius_api_ruby_client.gemspec +55 -0
- data/docs/AccessToken.md +11 -0
- data/docs/Address.md +16 -0
- data/docs/Customer.md +22 -0
- data/docs/CustomerApi.md +1938 -0
- data/docs/Dock.md +20 -0
- data/docs/DockApi.md +1112 -0
- data/docs/EmailAddress.md +9 -0
- data/docs/GeoPoint.md +9 -0
- data/docs/InlineResponse200.md +8 -0
- data/docs/InlineResponse2001.md +8 -0
- data/docs/InlineResponse2002.md +8 -0
- data/docs/ListingAgent.md +12 -0
- data/docs/Marina.md +15 -0
- data/docs/MarinaApi.md +1602 -0
- data/docs/Phone.md +9 -0
- data/git_push.sh +67 -0
- data/lib/dock_genius_api_ruby_client/api/customer_api.rb +2363 -0
- data/lib/dock_genius_api_ruby_client/api/dock_api.rb +1352 -0
- data/lib/dock_genius_api_ruby_client/api/marina_api.rb +1945 -0
- data/lib/dock_genius_api_ruby_client/api_client.rb +378 -0
- data/lib/dock_genius_api_ruby_client/api_error.rb +47 -0
- data/lib/dock_genius_api_ruby_client/configuration.rb +207 -0
- data/lib/dock_genius_api_ruby_client/models/access_token.rb +230 -0
- data/lib/dock_genius_api_ruby_client/models/address.rb +281 -0
- data/lib/dock_genius_api_ruby_client/models/customer.rb +330 -0
- data/lib/dock_genius_api_ruby_client/models/dock.rb +327 -0
- data/lib/dock_genius_api_ruby_client/models/email_address.rb +208 -0
- data/lib/dock_genius_api_ruby_client/models/geo_point.rb +208 -0
- data/lib/dock_genius_api_ruby_client/models/inline_response_200.rb +199 -0
- data/lib/dock_genius_api_ruby_client/models/inline_response_200_1.rb +200 -0
- data/lib/dock_genius_api_ruby_client/models/inline_response_200_2.rb +199 -0
- data/lib/dock_genius_api_ruby_client/models/listing_agent.rb +239 -0
- data/lib/dock_genius_api_ruby_client/models/marina.rb +263 -0
- data/lib/dock_genius_api_ruby_client/models/phone.rb +209 -0
- data/lib/dock_genius_api_ruby_client/version.rb +26 -0
- data/lib/dock_genius_api_ruby_client.rb +65 -0
- data/spec/api/customer_api_spec.rb +551 -0
- data/spec/api/dock_api_spec.rb +332 -0
- data/spec/api/marina_api_spec.rb +461 -0
- data/spec/api_client_spec.rb +237 -0
- data/spec/configuration_spec.rb +53 -0
- data/spec/models/access_token_spec.rb +71 -0
- data/spec/models/address_spec.rb +101 -0
- data/spec/models/customer_spec.rb +137 -0
- data/spec/models/dock_spec.rb +125 -0
- data/spec/models/email_address_spec.rb +59 -0
- data/spec/models/geo_point_spec.rb +59 -0
- data/spec/models/inline_response_200_1_spec.rb +53 -0
- data/spec/models/inline_response_200_2_spec.rb +53 -0
- data/spec/models/inline_response_200_spec.rb +53 -0
- data/spec/models/listing_agent_spec.rb +77 -0
- data/spec/models/marina_spec.rb +95 -0
- data/spec/models/phone_spec.rb +59 -0
- data/spec/spec_helper.rb +122 -0
- metadata +299 -0
@@ -0,0 +1,332 @@
|
|
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 'spec_helper'
|
25
|
+
require 'json'
|
26
|
+
|
27
|
+
# Unit tests for DockGeniusApiRubyClient::DockApi
|
28
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
29
|
+
# Please update as you see appropriate
|
30
|
+
describe 'DockApi' do
|
31
|
+
before do
|
32
|
+
# run before each test
|
33
|
+
@instance = DockGeniusApiRubyClient::DockApi.new
|
34
|
+
end
|
35
|
+
|
36
|
+
after do
|
37
|
+
# run after each test
|
38
|
+
end
|
39
|
+
|
40
|
+
describe 'test an instance of DockApi' do
|
41
|
+
it 'should create an instact of DockApi' do
|
42
|
+
expect(@instance).to be_instance_of(DockGeniusApiRubyClient::DockApi)
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
# unit tests for dock_count
|
47
|
+
# Count instances of the model matched by where from the data source.
|
48
|
+
#
|
49
|
+
# @param [Hash] opts the optional parameters
|
50
|
+
# @option opts [String] :where Criteria to match model instances
|
51
|
+
# @return [InlineResponse200]
|
52
|
+
describe 'dock_count test' do
|
53
|
+
it "should work" do
|
54
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
55
|
+
end
|
56
|
+
end
|
57
|
+
|
58
|
+
# unit tests for dock_create
|
59
|
+
# Create a new instance of the model and persist it into the data source.
|
60
|
+
#
|
61
|
+
# @param [Hash] opts the optional parameters
|
62
|
+
# @option opts [Dock] :data Model instance data
|
63
|
+
# @return [Dock]
|
64
|
+
describe 'dock_create test' do
|
65
|
+
it "should work" do
|
66
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
67
|
+
end
|
68
|
+
end
|
69
|
+
|
70
|
+
# unit tests for dock_create_change_stream_get_docks_change_stream
|
71
|
+
# Create a change stream.
|
72
|
+
#
|
73
|
+
# @param [Hash] opts the optional parameters
|
74
|
+
# @option opts [String] :options
|
75
|
+
# @return [File]
|
76
|
+
describe 'dock_create_change_stream_get_docks_change_stream test' do
|
77
|
+
it "should work" do
|
78
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
79
|
+
end
|
80
|
+
end
|
81
|
+
|
82
|
+
# unit tests for dock_create_change_stream_post_docks_change_stream
|
83
|
+
# Create a change stream.
|
84
|
+
#
|
85
|
+
# @param [Hash] opts the optional parameters
|
86
|
+
# @option opts [String] :options
|
87
|
+
# @return [File]
|
88
|
+
describe 'dock_create_change_stream_post_docks_change_stream test' do
|
89
|
+
it "should work" do
|
90
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
91
|
+
end
|
92
|
+
end
|
93
|
+
|
94
|
+
# unit tests for dock_delete_by_id
|
95
|
+
# Delete a model instance by {{id}} from the data source.
|
96
|
+
#
|
97
|
+
# @param id Model id
|
98
|
+
# @param [Hash] opts the optional parameters
|
99
|
+
# @return [Object]
|
100
|
+
describe 'dock_delete_by_id test' do
|
101
|
+
it "should work" do
|
102
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
103
|
+
end
|
104
|
+
end
|
105
|
+
|
106
|
+
# unit tests for dock_exists_get_docksid_exists
|
107
|
+
# Check whether a model instance exists in the data source.
|
108
|
+
#
|
109
|
+
# @param id Model id
|
110
|
+
# @param [Hash] opts the optional parameters
|
111
|
+
# @return [InlineResponse2002]
|
112
|
+
describe 'dock_exists_get_docksid_exists test' do
|
113
|
+
it "should work" do
|
114
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
115
|
+
end
|
116
|
+
end
|
117
|
+
|
118
|
+
# unit tests for dock_exists_head_docksid
|
119
|
+
# Check whether a model instance exists in the data source.
|
120
|
+
#
|
121
|
+
# @param id Model id
|
122
|
+
# @param [Hash] opts the optional parameters
|
123
|
+
# @return [InlineResponse2002]
|
124
|
+
describe 'dock_exists_head_docksid test' do
|
125
|
+
it "should work" do
|
126
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
127
|
+
end
|
128
|
+
end
|
129
|
+
|
130
|
+
# unit tests for dock_find
|
131
|
+
# Find all instances of the model matched by filter from the data source.
|
132
|
+
#
|
133
|
+
# @param [Hash] opts the optional parameters
|
134
|
+
# @option opts [String] :filter Filter defining fields, where, include, order, offset, and limit
|
135
|
+
# @return [Array<Dock>]
|
136
|
+
describe 'dock_find test' do
|
137
|
+
it "should work" do
|
138
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
139
|
+
end
|
140
|
+
end
|
141
|
+
|
142
|
+
# unit tests for dock_find_by_id
|
143
|
+
# Find a model instance by {{id}} from the data source.
|
144
|
+
#
|
145
|
+
# @param id Model id
|
146
|
+
# @param [Hash] opts the optional parameters
|
147
|
+
# @option opts [String] :filter Filter defining fields and include
|
148
|
+
# @return [Dock]
|
149
|
+
describe 'dock_find_by_id test' do
|
150
|
+
it "should work" do
|
151
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
152
|
+
end
|
153
|
+
end
|
154
|
+
|
155
|
+
# unit tests for dock_find_one
|
156
|
+
# Find first instance of the model matched by filter from the data source.
|
157
|
+
#
|
158
|
+
# @param [Hash] opts the optional parameters
|
159
|
+
# @option opts [String] :filter Filter defining fields, where, include, order, offset, and limit
|
160
|
+
# @return [Dock]
|
161
|
+
describe 'dock_find_one test' do
|
162
|
+
it "should work" do
|
163
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
164
|
+
end
|
165
|
+
end
|
166
|
+
|
167
|
+
# unit tests for dock_prototype_create_listing_agent
|
168
|
+
# Creates a new instance in listingAgent of this model.
|
169
|
+
#
|
170
|
+
# @param id PersistedModel id
|
171
|
+
# @param [Hash] opts the optional parameters
|
172
|
+
# @option opts [ListingAgent] :data
|
173
|
+
# @return [ListingAgent]
|
174
|
+
describe 'dock_prototype_create_listing_agent test' do
|
175
|
+
it "should work" do
|
176
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
177
|
+
end
|
178
|
+
end
|
179
|
+
|
180
|
+
# unit tests for dock_prototype_destroy_listing_agent
|
181
|
+
# Deletes listingAgent of this model.
|
182
|
+
#
|
183
|
+
# @param id PersistedModel id
|
184
|
+
# @param [Hash] opts the optional parameters
|
185
|
+
# @return [nil]
|
186
|
+
describe 'dock_prototype_destroy_listing_agent test' do
|
187
|
+
it "should work" do
|
188
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
189
|
+
end
|
190
|
+
end
|
191
|
+
|
192
|
+
# unit tests for dock_prototype_get_listing_agent
|
193
|
+
# Fetches hasOne relation listingAgent.
|
194
|
+
#
|
195
|
+
# @param id PersistedModel id
|
196
|
+
# @param [Hash] opts the optional parameters
|
197
|
+
# @option opts [BOOLEAN] :refresh
|
198
|
+
# @return [ListingAgent]
|
199
|
+
describe 'dock_prototype_get_listing_agent test' do
|
200
|
+
it "should work" do
|
201
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
202
|
+
end
|
203
|
+
end
|
204
|
+
|
205
|
+
# unit tests for dock_prototype_get_marina
|
206
|
+
# Fetches belongsTo relation marina.
|
207
|
+
#
|
208
|
+
# @param id PersistedModel id
|
209
|
+
# @param [Hash] opts the optional parameters
|
210
|
+
# @option opts [BOOLEAN] :refresh
|
211
|
+
# @return [Marina]
|
212
|
+
describe 'dock_prototype_get_marina test' do
|
213
|
+
it "should work" do
|
214
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
215
|
+
end
|
216
|
+
end
|
217
|
+
|
218
|
+
# unit tests for dock_prototype_update_attributes_patch_docksid
|
219
|
+
# Patch attributes for a model instance and persist it into the data source.
|
220
|
+
#
|
221
|
+
# @param id PersistedModel id
|
222
|
+
# @param [Hash] opts the optional parameters
|
223
|
+
# @option opts [Dock] :data An object of model property name/value pairs
|
224
|
+
# @return [Dock]
|
225
|
+
describe 'dock_prototype_update_attributes_patch_docksid test' do
|
226
|
+
it "should work" do
|
227
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
228
|
+
end
|
229
|
+
end
|
230
|
+
|
231
|
+
# unit tests for dock_prototype_update_attributes_put_docksid
|
232
|
+
# Patch attributes for a model instance and persist it into the data source.
|
233
|
+
#
|
234
|
+
# @param id PersistedModel id
|
235
|
+
# @param [Hash] opts the optional parameters
|
236
|
+
# @option opts [Dock] :data An object of model property name/value pairs
|
237
|
+
# @return [Dock]
|
238
|
+
describe 'dock_prototype_update_attributes_put_docksid test' do
|
239
|
+
it "should work" do
|
240
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
241
|
+
end
|
242
|
+
end
|
243
|
+
|
244
|
+
# unit tests for dock_prototype_update_listing_agent
|
245
|
+
# Update listingAgent of this model.
|
246
|
+
#
|
247
|
+
# @param id PersistedModel id
|
248
|
+
# @param [Hash] opts the optional parameters
|
249
|
+
# @option opts [ListingAgent] :data
|
250
|
+
# @return [ListingAgent]
|
251
|
+
describe 'dock_prototype_update_listing_agent test' do
|
252
|
+
it "should work" do
|
253
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
254
|
+
end
|
255
|
+
end
|
256
|
+
|
257
|
+
# unit tests for dock_replace_by_id
|
258
|
+
# Replace attributes for a model instance and persist it into the data source.
|
259
|
+
#
|
260
|
+
# @param id Model id
|
261
|
+
# @param [Hash] opts the optional parameters
|
262
|
+
# @option opts [Dock] :data Model instance data
|
263
|
+
# @return [Dock]
|
264
|
+
describe 'dock_replace_by_id test' do
|
265
|
+
it "should work" do
|
266
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
267
|
+
end
|
268
|
+
end
|
269
|
+
|
270
|
+
# unit tests for dock_replace_or_create
|
271
|
+
# Replace an existing model instance or insert a new one into the data source.
|
272
|
+
#
|
273
|
+
# @param [Hash] opts the optional parameters
|
274
|
+
# @option opts [Dock] :data Model instance data
|
275
|
+
# @return [Dock]
|
276
|
+
describe 'dock_replace_or_create test' do
|
277
|
+
it "should work" do
|
278
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
279
|
+
end
|
280
|
+
end
|
281
|
+
|
282
|
+
# unit tests for dock_update_all
|
283
|
+
# Update instances of the model matched by {{where}} from the data source.
|
284
|
+
#
|
285
|
+
# @param [Hash] opts the optional parameters
|
286
|
+
# @option opts [String] :where Criteria to match model instances
|
287
|
+
# @option opts [Dock] :data An object of model property name/value pairs
|
288
|
+
# @return [InlineResponse2001]
|
289
|
+
describe 'dock_update_all test' do
|
290
|
+
it "should work" do
|
291
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
292
|
+
end
|
293
|
+
end
|
294
|
+
|
295
|
+
# unit tests for dock_upsert_patch_docks
|
296
|
+
# Patch an existing model instance or insert a new one into the data source.
|
297
|
+
#
|
298
|
+
# @param [Hash] opts the optional parameters
|
299
|
+
# @option opts [Dock] :data Model instance data
|
300
|
+
# @return [Dock]
|
301
|
+
describe 'dock_upsert_patch_docks test' do
|
302
|
+
it "should work" do
|
303
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
304
|
+
end
|
305
|
+
end
|
306
|
+
|
307
|
+
# unit tests for dock_upsert_put_docks
|
308
|
+
# Patch an existing model instance or insert a new one into the data source.
|
309
|
+
#
|
310
|
+
# @param [Hash] opts the optional parameters
|
311
|
+
# @option opts [Dock] :data Model instance data
|
312
|
+
# @return [Dock]
|
313
|
+
describe 'dock_upsert_put_docks test' do
|
314
|
+
it "should work" do
|
315
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
316
|
+
end
|
317
|
+
end
|
318
|
+
|
319
|
+
# unit tests for dock_upsert_with_where
|
320
|
+
# Update an existing model instance or insert a new one into the data source based on the where criteria.
|
321
|
+
#
|
322
|
+
# @param [Hash] opts the optional parameters
|
323
|
+
# @option opts [String] :where Criteria to match model instances
|
324
|
+
# @option opts [Dock] :data An object of model property name/value pairs
|
325
|
+
# @return [Dock]
|
326
|
+
describe 'dock_upsert_with_where test' do
|
327
|
+
it "should work" do
|
328
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
329
|
+
end
|
330
|
+
end
|
331
|
+
|
332
|
+
end
|