dock_genius_api_ruby_client 0.1.1.pre.gcf82e3 → 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/.git/HEAD +1 -0
- data/dg-api-gem/.git/config +13 -0
- data/dg-api-gem/.git/description +1 -0
- data/dg-api-gem/.git/hooks/applypatch-msg.sample +15 -0
- data/dg-api-gem/.git/hooks/commit-msg.sample +24 -0
- data/dg-api-gem/.git/hooks/post-update.sample +8 -0
- data/dg-api-gem/.git/hooks/pre-applypatch.sample +14 -0
- data/dg-api-gem/.git/hooks/pre-commit.sample +49 -0
- data/dg-api-gem/.git/hooks/pre-push.sample +53 -0
- data/dg-api-gem/.git/hooks/pre-rebase.sample +169 -0
- data/dg-api-gem/.git/hooks/prepare-commit-msg.sample +36 -0
- data/dg-api-gem/.git/hooks/update.sample +128 -0
- data/dg-api-gem/.git/index +0 -0
- data/dg-api-gem/.git/info/exclude +6 -0
- data/dg-api-gem/.git/logs/HEAD +1 -0
- data/dg-api-gem/.git/logs/refs/heads/master +1 -0
- data/dg-api-gem/.git/logs/refs/remotes/origin/HEAD +1 -0
- data/dg-api-gem/.git/objects/00/0bf2136d3179234ddfecb13b26554f9e2f4c90 +0 -0
- data/dg-api-gem/.git/objects/03/251f753635b5302d85ffa2b7681623f1f21542 +0 -0
- data/dg-api-gem/.git/objects/0a/5c33a52fbb06520d06bbc5f4b124ed1a9528f6 +0 -0
- data/dg-api-gem/.git/objects/0f/7798223856c806d373ea8da2ecfb127ab097f4 +0 -0
- data/dg-api-gem/.git/objects/10/7ee96a08afe27a4dbe411d6b7ac7274c584dff +0 -0
- data/dg-api-gem/.git/objects/18/2ba7055e1aeb4216346152e66e65bddb4c0cf9 +2 -0
- data/dg-api-gem/.git/objects/19/1bf6a3c7f96f990c9d13c896a93f3c1d9f20c9 +0 -0
- data/dg-api-gem/.git/objects/19/b847fbc31f64ac4362d110c32fe9bbac30b096 +0 -0
- data/dg-api-gem/.git/objects/1a/825f63ae485ff56b4faf701ba522bcc0561f78 +3 -0
- data/dg-api-gem/.git/objects/1d/691d2d0dbb43d184a96fa3cdb1d3c00a1f4f38 +0 -0
- data/dg-api-gem/.git/objects/23/9dbff8bc51ff15a56d0faa3c02e63fed5fcb2c +0 -0
- data/dg-api-gem/.git/objects/26/3386d2358171da7acc57031821ab5f4d05f2b2 +0 -0
- data/dg-api-gem/.git/objects/2e/c238e03b0fe3c4de9a778eae988047d90adedb +0 -0
- data/dg-api-gem/.git/objects/36/1530690b4e5068a46af4e84ffcffcc05fdc4e9 +0 -0
- data/dg-api-gem/.git/objects/39/851c468e61c40e98dd367a58130bf03da54049 +0 -0
- data/dg-api-gem/.git/objects/3a/1638bae7dad86132067c651430a23e0bd00e94 +0 -0
- data/dg-api-gem/.git/objects/3f/dd745b1670cfd8137ed8d9601576c4c55011ca +0 -0
- data/dg-api-gem/.git/objects/40/7a612dc315ab5a363898a2f26c5f40406509c3 +0 -0
- data/dg-api-gem/.git/objects/44/b1fa84f3fdb596e5aa3be4842fafa6d4265007 +4 -0
- data/dg-api-gem/.git/objects/45/3cc136420e8bf8c26ad9a87676e684d011ff8f +2 -0
- data/dg-api-gem/.git/objects/4a/ac7c8a0faa701839f79f09f55a7d1087973b2a +0 -0
- data/dg-api-gem/.git/objects/4d/389bcc61ad278452415941088a4b5dce2d9e0d +0 -0
- data/dg-api-gem/.git/objects/52/2134fcdd3a3416faa5a8d1f1d7cf7eed7614a6 +0 -0
- data/dg-api-gem/.git/objects/53/e744e7af409f7e3dbbd67104da92c4fb0af2cd +0 -0
- data/dg-api-gem/.git/objects/59/832d27043d158a93887128fa62d436e6baf984 +0 -0
- data/dg-api-gem/.git/objects/63/965c44c0baa07e6398ed661798c4cdab144a51 +0 -0
- data/dg-api-gem/.git/objects/67/0889ef241c30f1eaa968ce274bb30c4ef2c04a +0 -0
- data/dg-api-gem/.git/objects/6e/8ed714c65008dbe2d96f1c7c95701ec628687d +0 -0
- data/dg-api-gem/.git/objects/7c/5ec222d1a0d401230d65a4f4c95932b6a4b103 +0 -0
- data/dg-api-gem/.git/objects/7d/e4768355b175138f4f328f538172371ff899b1 +0 -0
- data/dg-api-gem/.git/objects/7e/44b9aade1a985405320127e7b8c87731e2eb47 +0 -0
- data/dg-api-gem/.git/objects/83/e16f80447460c937aeaa44a64d743b27863077 +0 -0
- data/dg-api-gem/.git/objects/84/c03b075cc3e55d7c9c7a6408a479a432177ca1 +0 -0
- data/dg-api-gem/.git/objects/86/b79fcbf184cf40d3762feaa411e60971c9e4e3 +0 -0
- data/dg-api-gem/.git/objects/87/7efadd49fbd5ceeaa984d04ace0ff9929e544d +0 -0
- data/dg-api-gem/.git/objects/89/6ed529d66fa93deb04e710c6783813865b6c9a +0 -0
- data/dg-api-gem/.git/objects/8d/ada3edaf50dbc082c9a125058f25def75e625a +0 -0
- data/dg-api-gem/.git/objects/8e/d5d3491bfa2cba6c326f7c4c39e7ae3ac293fd +0 -0
- data/dg-api-gem/.git/objects/8f/a369451059baeee34e63568bdf97fa6649b417 +0 -0
- data/dg-api-gem/.git/objects/90/0bf41963dbe86e075fb6b2faa712ff54f06b31 +0 -0
- data/dg-api-gem/.git/objects/9b/5962c43f3c1628136292953e48ade70023fad1 +0 -0
- data/dg-api-gem/.git/objects/9c/3aa7b315f9f3501dbf48e049d87edaa4adfa7a +0 -0
- data/dg-api-gem/.git/objects/9e/22e96e9a55c296ac7111f034728eb06138985a +0 -0
- data/dg-api-gem/.git/objects/a0/1e0717b62bac403347a6de50cdbbfc7d00807e +0 -0
- data/dg-api-gem/.git/objects/a7/1cc8489d2347a27ea0f9e16f515394cbc13e0d +0 -0
- data/dg-api-gem/.git/objects/a8/4b30dba8dab3b105c6f730e46e4b75c25dfbcc +0 -0
- data/dg-api-gem/.git/objects/ab/a4ce8ed5919657e2645381b0b7ef9249f53fe1 +3 -0
- data/dg-api-gem/.git/objects/ac/398d23b9a339730fc96b080f971ac907c7182e +0 -0
- data/dg-api-gem/.git/objects/b0/a30dc2224d9fe5a8e2f676564df60d969d6d4e +0 -0
- data/dg-api-gem/.git/objects/b1/4d886e6905ad18c7c760475534846b3834c932 +0 -0
- data/dg-api-gem/.git/objects/b4/367529bfbbd23d20fd7288ab76af25069d7be7 +0 -0
- data/dg-api-gem/.git/objects/b5/f9c09bc0be51297f7e5eba90e95589467ed2ca +0 -0
- data/dg-api-gem/.git/objects/b5/fdfa522d17775e3341e8d233e8e4f55251808b +5 -0
- data/dg-api-gem/.git/objects/bd/0b6f2d0c50fcf68aa3d43d0562514ed7c11839 +0 -0
- data/dg-api-gem/.git/objects/c5/021ce290feadd7ddb909b63666817ea783870b +0 -0
- data/dg-api-gem/.git/objects/c5/fa491b4c557bf997d5dd21797de782545dc9e5 +0 -0
- data/dg-api-gem/.git/objects/c6/64a5c35f3b1cf84fc1cfb022636e53c87f49a9 +0 -0
- data/dg-api-gem/.git/objects/ca/5c84f7caed579535ec2ebb73ceacdf041290d8 +0 -0
- data/dg-api-gem/.git/objects/ca/838f54c26c102dae6df4ef6c1beeebac477596 +0 -0
- data/dg-api-gem/.git/objects/d3/8f460818b162c188f9636fffe6f6a157fbc095 +0 -0
- data/dg-api-gem/.git/objects/dc/8e7a8f5fba4cca72485aa7a1028987ef59c031 +0 -0
- data/dg-api-gem/.git/objects/dd/d925f300d40fcf0cbf2b59f4b11ccb730d4864 +0 -0
- data/dg-api-gem/.git/objects/df/1709db06c3bea79dee47248616a7f567afa30a +0 -0
- data/dg-api-gem/.git/objects/e1/9985758c5d7a2b54e202f423037f2a6b604ce5 +0 -0
- data/dg-api-gem/.git/objects/e8/45e5428feb9d46ae1e008ac949956899959d11 +0 -0
- data/dg-api-gem/.git/objects/ec/f75a817b10d82816a6d63748ebc5b72998cefa +0 -0
- data/dg-api-gem/.git/objects/f0/c34e8b8e645810912715da0e2bde549714076b +0 -0
- data/dg-api-gem/.git/objects/f5/86703d84a4a48f2e867b60438f62c2b0d9bbfb +0 -0
- data/dg-api-gem/.git/objects/fb/f7ae21827a758fd71109af06f5ec641dd235d7 +0 -0
- data/dg-api-gem/.git/objects/ff/f26559d7a990d7527cc4791b091a541df33dc4 +0 -0
- data/dg-api-gem/.git/packed-refs +2 -0
- data/dg-api-gem/.git/refs/heads/master +1 -0
- data/dg-api-gem/.git/refs/remotes/origin/HEAD +1 -0
- data/dg-api-gem/.gitignore +50 -0
- data/dg-api-gem/.rspec +2 -0
- data/dg-api-gem/.swagger-codegen-ignore +23 -0
- data/{LICENSE → dg-api-gem/LICENSE} +0 -0
- data/{README.md → dg-api-gem/README.md} +33 -5
- data/{dock_genius_api_ruby_client.gemspec → dg-api-gem/dock_genius_api_ruby_client.gemspec} +0 -0
- data/{docs → dg-api-gem/docs}/AccessToken.md +0 -0
- data/{docs → dg-api-gem/docs}/Address.md +0 -0
- data/{docs → dg-api-gem/docs}/Customer.md +0 -0
- data/{docs → dg-api-gem/docs}/CustomerApi.md +0 -0
- data/{docs → dg-api-gem/docs}/Dock.md +4 -3
- data/{docs → dg-api-gem/docs}/DockApi.md +345 -0
- data/{docs → dg-api-gem/docs}/EmailAddress.md +0 -0
- data/{docs → dg-api-gem/docs}/GeoPoint.md +0 -0
- data/{docs → dg-api-gem/docs}/InlineResponse200.md +0 -0
- data/{docs → dg-api-gem/docs}/InlineResponse2001.md +0 -0
- data/{docs → dg-api-gem/docs}/InlineResponse2002.md +0 -0
- data/{docs → dg-api-gem/docs}/ListingAgent.md +2 -1
- data/{docs → dg-api-gem/docs}/Marina.md +0 -0
- data/{docs → dg-api-gem/docs}/MarinaApi.md +0 -0
- data/dg-api-gem/docs/Parameter.md +11 -0
- data/dg-api-gem/docs/ParameterApi.md +437 -0
- data/dg-api-gem/docs/ParameterAssignment.md +10 -0
- data/{docs → dg-api-gem/docs}/Phone.md +0 -0
- data/dg-api-gem/docs/UnitOfMeasurement.md +10 -0
- data/dg-api-gem/docs/UnitOfMeasurementApi.md +437 -0
- data/{git_push.sh → dg-api-gem/git_push.sh} +0 -0
- data/{lib → dg-api-gem/lib}/dock_genius_api_ruby_client/api/customer_api.rb +0 -0
- data/{lib → dg-api-gem/lib}/dock_genius_api_ruby_client/api/dock_api.rb +419 -0
- data/{lib → dg-api-gem/lib}/dock_genius_api_ruby_client/api/marina_api.rb +0 -0
- data/dg-api-gem/lib/dock_genius_api_ruby_client/api/parameter_api.rb +548 -0
- data/dg-api-gem/lib/dock_genius_api_ruby_client/api/unit_of_measurement_api.rb +548 -0
- data/{lib → dg-api-gem/lib}/dock_genius_api_ruby_client/api_client.rb +0 -0
- data/{lib → dg-api-gem/lib}/dock_genius_api_ruby_client/api_error.rb +0 -0
- data/{lib → dg-api-gem/lib}/dock_genius_api_ruby_client/configuration.rb +0 -0
- data/{lib → dg-api-gem/lib}/dock_genius_api_ruby_client/models/access_token.rb +0 -0
- data/{lib → dg-api-gem/lib}/dock_genius_api_ruby_client/models/address.rb +0 -0
- data/{lib → dg-api-gem/lib}/dock_genius_api_ruby_client/models/customer.rb +0 -0
- data/{lib → dg-api-gem/lib}/dock_genius_api_ruby_client/models/dock.rb +20 -4
- data/{lib → dg-api-gem/lib}/dock_genius_api_ruby_client/models/email_address.rb +0 -0
- data/{lib → dg-api-gem/lib}/dock_genius_api_ruby_client/models/geo_point.rb +0 -0
- data/{lib → dg-api-gem/lib}/dock_genius_api_ruby_client/models/inline_response_200.rb +0 -0
- data/{lib → dg-api-gem/lib}/dock_genius_api_ruby_client/models/inline_response_200_1.rb +0 -0
- data/{lib → dg-api-gem/lib}/dock_genius_api_ruby_client/models/inline_response_200_2.rb +0 -0
- data/{lib → dg-api-gem/lib}/dock_genius_api_ruby_client/models/listing_agent.rb +12 -1
- data/{lib → dg-api-gem/lib}/dock_genius_api_ruby_client/models/marina.rb +0 -0
- data/dg-api-gem/lib/dock_genius_api_ruby_client/models/parameter.rb +231 -0
- data/dg-api-gem/lib/dock_genius_api_ruby_client/models/parameter_assignment.rb +218 -0
- data/{lib → dg-api-gem/lib}/dock_genius_api_ruby_client/models/phone.rb +0 -0
- data/dg-api-gem/lib/dock_genius_api_ruby_client/models/unit_of_measurement.rb +220 -0
- data/{lib → dg-api-gem/lib}/dock_genius_api_ruby_client/version.rb +1 -1
- data/{lib → dg-api-gem/lib}/dock_genius_api_ruby_client.rb +5 -0
- data/{spec → dg-api-gem/spec}/api/customer_api_spec.rb +0 -0
- data/{spec → dg-api-gem/spec}/api/dock_api_spec.rb +0 -0
- data/{spec → dg-api-gem/spec}/api/marina_api_spec.rb +0 -0
- data/dg-api-gem/spec/api/parameter_api_spec.rb +157 -0
- data/dg-api-gem/spec/api/unit_of_measurement_api_spec.rb +157 -0
- data/{spec → dg-api-gem/spec}/api_client_spec.rb +0 -0
- data/{spec → dg-api-gem/spec}/configuration_spec.rb +0 -0
- data/{spec → dg-api-gem/spec}/models/access_token_spec.rb +0 -0
- data/{spec → dg-api-gem/spec}/models/address_spec.rb +0 -0
- data/{spec → dg-api-gem/spec}/models/customer_spec.rb +0 -0
- data/{spec → dg-api-gem/spec}/models/dock_spec.rb +0 -0
- data/{spec → dg-api-gem/spec}/models/email_address_spec.rb +0 -0
- data/{spec → dg-api-gem/spec}/models/geo_point_spec.rb +0 -0
- data/{spec → dg-api-gem/spec}/models/inline_response_200_1_spec.rb +0 -0
- data/{spec → dg-api-gem/spec}/models/inline_response_200_2_spec.rb +0 -0
- data/{spec → dg-api-gem/spec}/models/inline_response_200_spec.rb +0 -0
- data/{spec → dg-api-gem/spec}/models/listing_agent_spec.rb +0 -0
- data/{spec → dg-api-gem/spec}/models/marina_spec.rb +0 -0
- data/dg-api-gem/spec/models/parameter_assignment_spec.rb +65 -0
- data/dg-api-gem/spec/models/parameter_spec.rb +71 -0
- data/{spec → dg-api-gem/spec}/models/phone_spec.rb +0 -0
- data/dg-api-gem/spec/models/unit_of_measurement_spec.rb +65 -0
- data/{spec → dg-api-gem/spec}/spec_helper.rb +0 -0
- data/swagger.yml +3075 -0
- metadata +170 -78
@@ -0,0 +1,548 @@
|
|
1
|
+
=begin
|
2
|
+
#DockGenius API
|
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
|
+
Contact: hi@dockgenius.com
|
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 ParameterApi
|
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 parameter_count(opts = {})
|
40
|
+
data, _status_code, _headers = parameter_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 parameter_count_with_http_info(opts = {})
|
50
|
+
if @api_client.config.debugging
|
51
|
+
@api_client.config.logger.debug "Calling API: ParameterApi.parameter_count ..."
|
52
|
+
end
|
53
|
+
# resource path
|
54
|
+
local_var_path = "/Parameters/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: ParameterApi#parameter_count\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
86
|
+
end
|
87
|
+
return data, status_code, headers
|
88
|
+
end
|
89
|
+
|
90
|
+
# Check whether a model instance exists in the data source.
|
91
|
+
#
|
92
|
+
# @param id Model id
|
93
|
+
# @param [Hash] opts the optional parameters
|
94
|
+
# @return [InlineResponse2002]
|
95
|
+
def parameter_exists_get_parametersid_exists(id, opts = {})
|
96
|
+
data, _status_code, _headers = parameter_exists_get_parametersid_exists_with_http_info(id, opts)
|
97
|
+
return data
|
98
|
+
end
|
99
|
+
|
100
|
+
# Check whether a model instance exists in the data source.
|
101
|
+
#
|
102
|
+
# @param id Model id
|
103
|
+
# @param [Hash] opts the optional parameters
|
104
|
+
# @return [Array<(InlineResponse2002, Fixnum, Hash)>] InlineResponse2002 data, response status code and response headers
|
105
|
+
def parameter_exists_get_parametersid_exists_with_http_info(id, opts = {})
|
106
|
+
if @api_client.config.debugging
|
107
|
+
@api_client.config.logger.debug "Calling API: ParameterApi.parameter_exists_get_parametersid_exists ..."
|
108
|
+
end
|
109
|
+
# verify the required parameter 'id' is set
|
110
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling ParameterApi.parameter_exists_get_parametersid_exists" if id.nil?
|
111
|
+
# resource path
|
112
|
+
local_var_path = "/Parameters/{id}/exists".sub('{format}','json').sub('{' + 'id' + '}', id.to_s)
|
113
|
+
|
114
|
+
# query parameters
|
115
|
+
query_params = {}
|
116
|
+
|
117
|
+
# header parameters
|
118
|
+
header_params = {}
|
119
|
+
|
120
|
+
# HTTP header 'Accept' (if needed)
|
121
|
+
local_header_accept = ['application/json', 'application/xml', 'text/xml', 'application/javascript', 'text/javascript']
|
122
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
123
|
+
|
124
|
+
# HTTP header 'Content-Type'
|
125
|
+
local_header_content_type = ['application/json', 'application/x-www-form-urlencoded', 'application/xml', 'text/xml']
|
126
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
127
|
+
|
128
|
+
# form parameters
|
129
|
+
form_params = {}
|
130
|
+
|
131
|
+
# http body (model)
|
132
|
+
post_body = nil
|
133
|
+
auth_names = []
|
134
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
135
|
+
:header_params => header_params,
|
136
|
+
:query_params => query_params,
|
137
|
+
:form_params => form_params,
|
138
|
+
:body => post_body,
|
139
|
+
:auth_names => auth_names,
|
140
|
+
:return_type => 'InlineResponse2002')
|
141
|
+
if @api_client.config.debugging
|
142
|
+
@api_client.config.logger.debug "API called: ParameterApi#parameter_exists_get_parametersid_exists\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
143
|
+
end
|
144
|
+
return data, status_code, headers
|
145
|
+
end
|
146
|
+
|
147
|
+
# Check whether a model instance exists in the data source.
|
148
|
+
#
|
149
|
+
# @param id Model id
|
150
|
+
# @param [Hash] opts the optional parameters
|
151
|
+
# @return [InlineResponse2002]
|
152
|
+
def parameter_exists_head_parametersid(id, opts = {})
|
153
|
+
data, _status_code, _headers = parameter_exists_head_parametersid_with_http_info(id, opts)
|
154
|
+
return data
|
155
|
+
end
|
156
|
+
|
157
|
+
# Check whether a model instance exists in the data source.
|
158
|
+
#
|
159
|
+
# @param id Model id
|
160
|
+
# @param [Hash] opts the optional parameters
|
161
|
+
# @return [Array<(InlineResponse2002, Fixnum, Hash)>] InlineResponse2002 data, response status code and response headers
|
162
|
+
def parameter_exists_head_parametersid_with_http_info(id, opts = {})
|
163
|
+
if @api_client.config.debugging
|
164
|
+
@api_client.config.logger.debug "Calling API: ParameterApi.parameter_exists_head_parametersid ..."
|
165
|
+
end
|
166
|
+
# verify the required parameter 'id' is set
|
167
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling ParameterApi.parameter_exists_head_parametersid" if id.nil?
|
168
|
+
# resource path
|
169
|
+
local_var_path = "/Parameters/{id}".sub('{format}','json').sub('{' + 'id' + '}', id.to_s)
|
170
|
+
|
171
|
+
# query parameters
|
172
|
+
query_params = {}
|
173
|
+
|
174
|
+
# header parameters
|
175
|
+
header_params = {}
|
176
|
+
|
177
|
+
# HTTP header 'Accept' (if needed)
|
178
|
+
local_header_accept = ['application/json', 'application/xml', 'text/xml', 'application/javascript', 'text/javascript']
|
179
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
180
|
+
|
181
|
+
# HTTP header 'Content-Type'
|
182
|
+
local_header_content_type = ['application/json', 'application/x-www-form-urlencoded', 'application/xml', 'text/xml']
|
183
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
184
|
+
|
185
|
+
# form parameters
|
186
|
+
form_params = {}
|
187
|
+
|
188
|
+
# http body (model)
|
189
|
+
post_body = nil
|
190
|
+
auth_names = []
|
191
|
+
data, status_code, headers = @api_client.call_api(:HEAD, local_var_path,
|
192
|
+
:header_params => header_params,
|
193
|
+
:query_params => query_params,
|
194
|
+
:form_params => form_params,
|
195
|
+
:body => post_body,
|
196
|
+
:auth_names => auth_names,
|
197
|
+
:return_type => 'InlineResponse2002')
|
198
|
+
if @api_client.config.debugging
|
199
|
+
@api_client.config.logger.debug "API called: ParameterApi#parameter_exists_head_parametersid\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
200
|
+
end
|
201
|
+
return data, status_code, headers
|
202
|
+
end
|
203
|
+
|
204
|
+
# Find all instances of the model matched by filter from the data source.
|
205
|
+
#
|
206
|
+
# @param [Hash] opts the optional parameters
|
207
|
+
# @option opts [String] :filter Filter defining fields, where, include, order, offset, and limit
|
208
|
+
# @return [Array<Parameter>]
|
209
|
+
def parameter_find(opts = {})
|
210
|
+
data, _status_code, _headers = parameter_find_with_http_info(opts)
|
211
|
+
return data
|
212
|
+
end
|
213
|
+
|
214
|
+
# Find all instances of the model matched by filter from the data source.
|
215
|
+
#
|
216
|
+
# @param [Hash] opts the optional parameters
|
217
|
+
# @option opts [String] :filter Filter defining fields, where, include, order, offset, and limit
|
218
|
+
# @return [Array<(Array<Parameter>, Fixnum, Hash)>] Array<Parameter> data, response status code and response headers
|
219
|
+
def parameter_find_with_http_info(opts = {})
|
220
|
+
if @api_client.config.debugging
|
221
|
+
@api_client.config.logger.debug "Calling API: ParameterApi.parameter_find ..."
|
222
|
+
end
|
223
|
+
# resource path
|
224
|
+
local_var_path = "/Parameters".sub('{format}','json')
|
225
|
+
|
226
|
+
# query parameters
|
227
|
+
query_params = {}
|
228
|
+
query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil?
|
229
|
+
|
230
|
+
# header parameters
|
231
|
+
header_params = {}
|
232
|
+
|
233
|
+
# HTTP header 'Accept' (if needed)
|
234
|
+
local_header_accept = ['application/json', 'application/xml', 'text/xml', 'application/javascript', 'text/javascript']
|
235
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
236
|
+
|
237
|
+
# HTTP header 'Content-Type'
|
238
|
+
local_header_content_type = ['application/json', 'application/x-www-form-urlencoded', 'application/xml', 'text/xml']
|
239
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
240
|
+
|
241
|
+
# form parameters
|
242
|
+
form_params = {}
|
243
|
+
|
244
|
+
# http body (model)
|
245
|
+
post_body = nil
|
246
|
+
auth_names = []
|
247
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
248
|
+
:header_params => header_params,
|
249
|
+
:query_params => query_params,
|
250
|
+
:form_params => form_params,
|
251
|
+
:body => post_body,
|
252
|
+
:auth_names => auth_names,
|
253
|
+
:return_type => 'Array<Parameter>')
|
254
|
+
if @api_client.config.debugging
|
255
|
+
@api_client.config.logger.debug "API called: ParameterApi#parameter_find\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
256
|
+
end
|
257
|
+
return data, status_code, headers
|
258
|
+
end
|
259
|
+
|
260
|
+
# Find a model instance by {{id}} from the data source.
|
261
|
+
#
|
262
|
+
# @param id Model id
|
263
|
+
# @param [Hash] opts the optional parameters
|
264
|
+
# @option opts [String] :filter Filter defining fields and include
|
265
|
+
# @return [Parameter]
|
266
|
+
def parameter_find_by_id(id, opts = {})
|
267
|
+
data, _status_code, _headers = parameter_find_by_id_with_http_info(id, opts)
|
268
|
+
return data
|
269
|
+
end
|
270
|
+
|
271
|
+
# Find a model instance by {{id}} from the data source.
|
272
|
+
#
|
273
|
+
# @param id Model id
|
274
|
+
# @param [Hash] opts the optional parameters
|
275
|
+
# @option opts [String] :filter Filter defining fields and include
|
276
|
+
# @return [Array<(Parameter, Fixnum, Hash)>] Parameter data, response status code and response headers
|
277
|
+
def parameter_find_by_id_with_http_info(id, opts = {})
|
278
|
+
if @api_client.config.debugging
|
279
|
+
@api_client.config.logger.debug "Calling API: ParameterApi.parameter_find_by_id ..."
|
280
|
+
end
|
281
|
+
# verify the required parameter 'id' is set
|
282
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling ParameterApi.parameter_find_by_id" if id.nil?
|
283
|
+
# resource path
|
284
|
+
local_var_path = "/Parameters/{id}".sub('{format}','json').sub('{' + 'id' + '}', id.to_s)
|
285
|
+
|
286
|
+
# query parameters
|
287
|
+
query_params = {}
|
288
|
+
query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil?
|
289
|
+
|
290
|
+
# header parameters
|
291
|
+
header_params = {}
|
292
|
+
|
293
|
+
# HTTP header 'Accept' (if needed)
|
294
|
+
local_header_accept = ['application/json', 'application/xml', 'text/xml', 'application/javascript', 'text/javascript']
|
295
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
296
|
+
|
297
|
+
# HTTP header 'Content-Type'
|
298
|
+
local_header_content_type = ['application/json', 'application/x-www-form-urlencoded', 'application/xml', 'text/xml']
|
299
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
300
|
+
|
301
|
+
# form parameters
|
302
|
+
form_params = {}
|
303
|
+
|
304
|
+
# http body (model)
|
305
|
+
post_body = nil
|
306
|
+
auth_names = []
|
307
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
308
|
+
:header_params => header_params,
|
309
|
+
:query_params => query_params,
|
310
|
+
:form_params => form_params,
|
311
|
+
:body => post_body,
|
312
|
+
:auth_names => auth_names,
|
313
|
+
:return_type => 'Parameter')
|
314
|
+
if @api_client.config.debugging
|
315
|
+
@api_client.config.logger.debug "API called: ParameterApi#parameter_find_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
316
|
+
end
|
317
|
+
return data, status_code, headers
|
318
|
+
end
|
319
|
+
|
320
|
+
# Find first instance of the model matched by filter from the data source.
|
321
|
+
#
|
322
|
+
# @param [Hash] opts the optional parameters
|
323
|
+
# @option opts [String] :filter Filter defining fields, where, include, order, offset, and limit
|
324
|
+
# @return [Parameter]
|
325
|
+
def parameter_find_one(opts = {})
|
326
|
+
data, _status_code, _headers = parameter_find_one_with_http_info(opts)
|
327
|
+
return data
|
328
|
+
end
|
329
|
+
|
330
|
+
# Find first instance of the model matched by filter from the data source.
|
331
|
+
#
|
332
|
+
# @param [Hash] opts the optional parameters
|
333
|
+
# @option opts [String] :filter Filter defining fields, where, include, order, offset, and limit
|
334
|
+
# @return [Array<(Parameter, Fixnum, Hash)>] Parameter data, response status code and response headers
|
335
|
+
def parameter_find_one_with_http_info(opts = {})
|
336
|
+
if @api_client.config.debugging
|
337
|
+
@api_client.config.logger.debug "Calling API: ParameterApi.parameter_find_one ..."
|
338
|
+
end
|
339
|
+
# resource path
|
340
|
+
local_var_path = "/Parameters/findOne".sub('{format}','json')
|
341
|
+
|
342
|
+
# query parameters
|
343
|
+
query_params = {}
|
344
|
+
query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil?
|
345
|
+
|
346
|
+
# header parameters
|
347
|
+
header_params = {}
|
348
|
+
|
349
|
+
# HTTP header 'Accept' (if needed)
|
350
|
+
local_header_accept = ['application/json', 'application/xml', 'text/xml', 'application/javascript', 'text/javascript']
|
351
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
352
|
+
|
353
|
+
# HTTP header 'Content-Type'
|
354
|
+
local_header_content_type = ['application/json', 'application/x-www-form-urlencoded', 'application/xml', 'text/xml']
|
355
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
356
|
+
|
357
|
+
# form parameters
|
358
|
+
form_params = {}
|
359
|
+
|
360
|
+
# http body (model)
|
361
|
+
post_body = nil
|
362
|
+
auth_names = []
|
363
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
364
|
+
:header_params => header_params,
|
365
|
+
:query_params => query_params,
|
366
|
+
:form_params => form_params,
|
367
|
+
:body => post_body,
|
368
|
+
:auth_names => auth_names,
|
369
|
+
:return_type => 'Parameter')
|
370
|
+
if @api_client.config.debugging
|
371
|
+
@api_client.config.logger.debug "API called: ParameterApi#parameter_find_one\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
372
|
+
end
|
373
|
+
return data, status_code, headers
|
374
|
+
end
|
375
|
+
|
376
|
+
# Replace attributes for a model instance and persist it into the data source.
|
377
|
+
#
|
378
|
+
# @param id Model id
|
379
|
+
# @param [Hash] opts the optional parameters
|
380
|
+
# @option opts [Parameter] :data Model instance data
|
381
|
+
# @return [Parameter]
|
382
|
+
def parameter_replace_by_id(id, opts = {})
|
383
|
+
data, _status_code, _headers = parameter_replace_by_id_with_http_info(id, opts)
|
384
|
+
return data
|
385
|
+
end
|
386
|
+
|
387
|
+
# Replace attributes for a model instance and persist it into the data source.
|
388
|
+
#
|
389
|
+
# @param id Model id
|
390
|
+
# @param [Hash] opts the optional parameters
|
391
|
+
# @option opts [Parameter] :data Model instance data
|
392
|
+
# @return [Array<(Parameter, Fixnum, Hash)>] Parameter data, response status code and response headers
|
393
|
+
def parameter_replace_by_id_with_http_info(id, opts = {})
|
394
|
+
if @api_client.config.debugging
|
395
|
+
@api_client.config.logger.debug "Calling API: ParameterApi.parameter_replace_by_id ..."
|
396
|
+
end
|
397
|
+
# verify the required parameter 'id' is set
|
398
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling ParameterApi.parameter_replace_by_id" if id.nil?
|
399
|
+
# resource path
|
400
|
+
local_var_path = "/Parameters/{id}/replace".sub('{format}','json').sub('{' + 'id' + '}', id.to_s)
|
401
|
+
|
402
|
+
# query parameters
|
403
|
+
query_params = {}
|
404
|
+
|
405
|
+
# header parameters
|
406
|
+
header_params = {}
|
407
|
+
|
408
|
+
# HTTP header 'Accept' (if needed)
|
409
|
+
local_header_accept = ['application/json', 'application/xml', 'text/xml', 'application/javascript', 'text/javascript']
|
410
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
411
|
+
|
412
|
+
# HTTP header 'Content-Type'
|
413
|
+
local_header_content_type = ['application/json', 'application/x-www-form-urlencoded', 'application/xml', 'text/xml']
|
414
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
415
|
+
|
416
|
+
# form parameters
|
417
|
+
form_params = {}
|
418
|
+
|
419
|
+
# http body (model)
|
420
|
+
post_body = @api_client.object_to_http_body(opts[:'data'])
|
421
|
+
auth_names = []
|
422
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
423
|
+
:header_params => header_params,
|
424
|
+
:query_params => query_params,
|
425
|
+
:form_params => form_params,
|
426
|
+
:body => post_body,
|
427
|
+
:auth_names => auth_names,
|
428
|
+
:return_type => 'Parameter')
|
429
|
+
if @api_client.config.debugging
|
430
|
+
@api_client.config.logger.debug "API called: ParameterApi#parameter_replace_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
431
|
+
end
|
432
|
+
return data, status_code, headers
|
433
|
+
end
|
434
|
+
|
435
|
+
# Replace an existing model instance or insert a new one into the data source.
|
436
|
+
#
|
437
|
+
# @param [Hash] opts the optional parameters
|
438
|
+
# @option opts [Parameter] :data Model instance data
|
439
|
+
# @return [Parameter]
|
440
|
+
def parameter_replace_or_create(opts = {})
|
441
|
+
data, _status_code, _headers = parameter_replace_or_create_with_http_info(opts)
|
442
|
+
return data
|
443
|
+
end
|
444
|
+
|
445
|
+
# Replace an existing model instance or insert a new one into the data source.
|
446
|
+
#
|
447
|
+
# @param [Hash] opts the optional parameters
|
448
|
+
# @option opts [Parameter] :data Model instance data
|
449
|
+
# @return [Array<(Parameter, Fixnum, Hash)>] Parameter data, response status code and response headers
|
450
|
+
def parameter_replace_or_create_with_http_info(opts = {})
|
451
|
+
if @api_client.config.debugging
|
452
|
+
@api_client.config.logger.debug "Calling API: ParameterApi.parameter_replace_or_create ..."
|
453
|
+
end
|
454
|
+
# resource path
|
455
|
+
local_var_path = "/Parameters/replaceOrCreate".sub('{format}','json')
|
456
|
+
|
457
|
+
# query parameters
|
458
|
+
query_params = {}
|
459
|
+
|
460
|
+
# header parameters
|
461
|
+
header_params = {}
|
462
|
+
|
463
|
+
# HTTP header 'Accept' (if needed)
|
464
|
+
local_header_accept = ['application/json', 'application/xml', 'text/xml', 'application/javascript', 'text/javascript']
|
465
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
466
|
+
|
467
|
+
# HTTP header 'Content-Type'
|
468
|
+
local_header_content_type = ['application/json', 'application/x-www-form-urlencoded', 'application/xml', 'text/xml']
|
469
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
470
|
+
|
471
|
+
# form parameters
|
472
|
+
form_params = {}
|
473
|
+
|
474
|
+
# http body (model)
|
475
|
+
post_body = @api_client.object_to_http_body(opts[:'data'])
|
476
|
+
auth_names = []
|
477
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
478
|
+
:header_params => header_params,
|
479
|
+
:query_params => query_params,
|
480
|
+
:form_params => form_params,
|
481
|
+
:body => post_body,
|
482
|
+
:auth_names => auth_names,
|
483
|
+
:return_type => 'Parameter')
|
484
|
+
if @api_client.config.debugging
|
485
|
+
@api_client.config.logger.debug "API called: ParameterApi#parameter_replace_or_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
486
|
+
end
|
487
|
+
return data, status_code, headers
|
488
|
+
end
|
489
|
+
|
490
|
+
# Update an existing model instance or insert a new one into the data source based on the where criteria.
|
491
|
+
#
|
492
|
+
# @param [Hash] opts the optional parameters
|
493
|
+
# @option opts [String] :where Criteria to match model instances
|
494
|
+
# @option opts [Parameter] :data An object of model property name/value pairs
|
495
|
+
# @return [Parameter]
|
496
|
+
def parameter_upsert_with_where(opts = {})
|
497
|
+
data, _status_code, _headers = parameter_upsert_with_where_with_http_info(opts)
|
498
|
+
return data
|
499
|
+
end
|
500
|
+
|
501
|
+
# Update an existing model instance or insert a new one into the data source based on the where criteria.
|
502
|
+
#
|
503
|
+
# @param [Hash] opts the optional parameters
|
504
|
+
# @option opts [String] :where Criteria to match model instances
|
505
|
+
# @option opts [Parameter] :data An object of model property name/value pairs
|
506
|
+
# @return [Array<(Parameter, Fixnum, Hash)>] Parameter data, response status code and response headers
|
507
|
+
def parameter_upsert_with_where_with_http_info(opts = {})
|
508
|
+
if @api_client.config.debugging
|
509
|
+
@api_client.config.logger.debug "Calling API: ParameterApi.parameter_upsert_with_where ..."
|
510
|
+
end
|
511
|
+
# resource path
|
512
|
+
local_var_path = "/Parameters/upsertWithWhere".sub('{format}','json')
|
513
|
+
|
514
|
+
# query parameters
|
515
|
+
query_params = {}
|
516
|
+
query_params[:'where'] = opts[:'where'] if !opts[:'where'].nil?
|
517
|
+
|
518
|
+
# header parameters
|
519
|
+
header_params = {}
|
520
|
+
|
521
|
+
# HTTP header 'Accept' (if needed)
|
522
|
+
local_header_accept = ['application/json', 'application/xml', 'text/xml', 'application/javascript', 'text/javascript']
|
523
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
524
|
+
|
525
|
+
# HTTP header 'Content-Type'
|
526
|
+
local_header_content_type = ['application/json', 'application/x-www-form-urlencoded', 'application/xml', 'text/xml']
|
527
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
528
|
+
|
529
|
+
# form parameters
|
530
|
+
form_params = {}
|
531
|
+
|
532
|
+
# http body (model)
|
533
|
+
post_body = @api_client.object_to_http_body(opts[:'data'])
|
534
|
+
auth_names = []
|
535
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
536
|
+
:header_params => header_params,
|
537
|
+
:query_params => query_params,
|
538
|
+
:form_params => form_params,
|
539
|
+
:body => post_body,
|
540
|
+
:auth_names => auth_names,
|
541
|
+
:return_type => 'Parameter')
|
542
|
+
if @api_client.config.debugging
|
543
|
+
@api_client.config.logger.debug "API called: ParameterApi#parameter_upsert_with_where\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
544
|
+
end
|
545
|
+
return data, status_code, headers
|
546
|
+
end
|
547
|
+
end
|
548
|
+
end
|