wesley-key-sdk 1.1.1

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.
Files changed (38) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE +28 -0
  3. data/README.md +84 -0
  4. data/lib/cypress_test_api/api_helper.rb +10 -0
  5. data/lib/cypress_test_api/client.rb +47 -0
  6. data/lib/cypress_test_api/configuration.rb +103 -0
  7. data/lib/cypress_test_api/controllers/api_controller.rb +102 -0
  8. data/lib/cypress_test_api/controllers/base_controller.rb +60 -0
  9. data/lib/cypress_test_api/exceptions/api_exception.rb +21 -0
  10. data/lib/cypress_test_api/http/http_call_back.rb +10 -0
  11. data/lib/cypress_test_api/http/http_method_enum.rb +10 -0
  12. data/lib/cypress_test_api/http/http_request.rb +10 -0
  13. data/lib/cypress_test_api/http/http_response.rb +10 -0
  14. data/lib/cypress_test_api/http/proxy_settings.rb +13 -0
  15. data/lib/cypress_test_api/models/base_model.rb +110 -0
  16. data/lib/cypress_test_api/models/custom_enum.rb +26 -0
  17. data/lib/cypress_test_api/models/deer.rb +68 -0
  18. data/lib/cypress_test_api/models/item.rb +166 -0
  19. data/lib/cypress_test_api/models/item_response.rb +80 -0
  20. data/lib/cypress_test_api/models/lion.rb +68 -0
  21. data/lib/cypress_test_api/models/message.rb +68 -0
  22. data/lib/cypress_test_api/models/message2.rb +71 -0
  23. data/lib/cypress_test_api/models/multiple_arrays_request.rb +70 -0
  24. data/lib/cypress_test_api/models/nac_tag.rb +265 -0
  25. data/lib/cypress_test_api/models/o_auth_scope_o_auth_acg_enum.rb +29 -0
  26. data/lib/cypress_test_api/models/response_http400.rb +62 -0
  27. data/lib/cypress_test_api/models/response_http404.rb +62 -0
  28. data/lib/cypress_test_api/models/status11_enum.rb +26 -0
  29. data/lib/cypress_test_api/models/status1_enum.rb +26 -0
  30. data/lib/cypress_test_api/models/status_enum.rb +26 -0
  31. data/lib/cypress_test_api/models/tokens_request.rb +60 -0
  32. data/lib/cypress_test_api/utilities/date_time_helper.rb +11 -0
  33. data/lib/cypress_test_api/utilities/file_wrapper.rb +28 -0
  34. data/lib/cypress_test_api.rb +55 -0
  35. data/test/controllers/controller_test_base.rb +29 -0
  36. data/test/controllers/test_api_controller.rb +40 -0
  37. data/test/http_response_catcher.rb +19 -0
  38. metadata +149 -0
@@ -0,0 +1,265 @@
1
+ # cypress_test_api
2
+ #
3
+ # This file was automatically generated by APIMATIC v3.0
4
+ # ( https://www.apimatic.io ).
5
+
6
+ module CypressTestApi
7
+ # NacTag Model.
8
+ class NacTag < BaseModel
9
+ SKIP = Object.new
10
+ private_constant :SKIP
11
+
12
+ # can be set to true to allow the override by usermac result
13
+ # @return [TrueClass | FalseClass]
14
+ attr_accessor :allow_usermac_override
15
+
16
+ # can be set to true to allow the override by usermac result
17
+ # @return [Float]
18
+ attr_accessor :created_time
19
+
20
+ # if `type`==`egress_vlan_names`, list of egress vlans to return
21
+ # @return [Array[String]]
22
+ attr_accessor :egress_vlan_names
23
+
24
+ # if `type`==`gbp_tag`
25
+ # @return [Integer]
26
+ attr_accessor :gbp_tag
27
+
28
+ # if `type`==`gbp_tag`
29
+ # @return [UUID | String]
30
+ attr_accessor :id
31
+
32
+ # if `type`==`gbp_tag`
33
+ # @return [NacTag]
34
+ attr_accessor :match
35
+
36
+ # This field is applicable only when `type`==`match`
37
+ # * `false`: means it is sufficient to match any of the values (i.e.,
38
+ # match-any behavior)
39
+ # * `true`: means all values should be matched (i.e., match-all behavior)
40
+ # Currently it makes sense to set this field to `true` only if the
41
+ # `match`==`idp_role` or `match`==`usermac_label`'
42
+ # @return [TrueClass | FalseClass]
43
+ attr_accessor :match_all
44
+
45
+ # This field is applicable only when `type`==`match`
46
+ # * `false`: means it is sufficient to match any of the values (i.e.,
47
+ # match-any behavior)
48
+ # * `true`: means all values should be matched (i.e., match-all behavior)
49
+ # Currently it makes sense to set this field to `true` only if the
50
+ # `match`==`idp_role` or `match`==`usermac_label`'
51
+ # @return [Float]
52
+ attr_accessor :modified_time
53
+
54
+ # This field is applicable only when `type`==`match`
55
+ # * `false`: means it is sufficient to match any of the values (i.e.,
56
+ # match-any behavior)
57
+ # * `true`: means all values should be matched (i.e., match-all behavior)
58
+ # Currently it makes sense to set this field to `true` only if the
59
+ # `match`==`idp_role` or `match`==`usermac_label`'
60
+ # @return [String]
61
+ attr_accessor :name
62
+
63
+ # This field is applicable only when `type`==`match`
64
+ # * `false`: means it is sufficient to match any of the values (i.e.,
65
+ # match-any behavior)
66
+ # * `true`: means all values should be matched (i.e., match-all behavior)
67
+ # Currently it makes sense to set this field to `true` only if the
68
+ # `match`==`idp_role` or `match`==`usermac_label`'
69
+ # @return [UUID | String]
70
+ attr_accessor :org_id
71
+
72
+ # if `type`==`radius_attrs`, user can specify a list of one or more standard
73
+ # attributes in the field "radius_attrs".
74
+ # It is the responsibility of the user to provide a syntactically correct
75
+ # string, otherwise it may not work as expected.
76
+ # Note that it is allowed to have more than one radius_attrs in the result
77
+ # of a given rule.
78
+ # @return [Array[String]]
79
+ attr_accessor :radius_attrs
80
+
81
+ # if `type`==`radius_group`
82
+ # @return [String]
83
+ attr_accessor :radius_group
84
+
85
+ # if `type`==`radius_vendor_attrs`, user can specify a list of one or more
86
+ # vendor-specific attributes in the field "radius_vendor_attrs".
87
+ # It is the responsibility of the user to provide a syntactically correct
88
+ # string, otherwise it may not work as expected.
89
+ # Note that it is allowed to have more than one radius_vendor_attrs in the
90
+ # result of a given rule.
91
+ # @return [Array[String]]
92
+ attr_accessor :radius_vendor_attrs
93
+
94
+ # if `type`==`session_timeout, in seconds
95
+ # @return [Integer]
96
+ attr_accessor :session_timeout
97
+
98
+ # if `type`==`session_timeout, in seconds
99
+ # @return [NacTag]
100
+ attr_accessor :type
101
+
102
+ # if `type`==`session_timeout, in seconds
103
+ # @return [NacTag]
104
+ attr_accessor :username_attr
105
+
106
+ # if `type`==`match`
107
+ # @return [Array[String]]
108
+ attr_accessor :values
109
+
110
+ # if `type`==`vlan`
111
+ # @return [String]
112
+ attr_accessor :vlan
113
+
114
+ # A mapping from model property names to API property names.
115
+ def self.names
116
+ @_hash = {} if @_hash.nil?
117
+ @_hash['allow_usermac_override'] = 'allow_usermac_override'
118
+ @_hash['created_time'] = 'created_time'
119
+ @_hash['egress_vlan_names'] = 'egress_vlan_names'
120
+ @_hash['gbp_tag'] = 'gbp_tag'
121
+ @_hash['id'] = 'id'
122
+ @_hash['match'] = 'match'
123
+ @_hash['match_all'] = 'match_all'
124
+ @_hash['modified_time'] = 'modified_time'
125
+ @_hash['name'] = 'name'
126
+ @_hash['org_id'] = 'org_id'
127
+ @_hash['radius_attrs'] = 'radius_attrs'
128
+ @_hash['radius_group'] = 'radius_group'
129
+ @_hash['radius_vendor_attrs'] = 'radius_vendor_attrs'
130
+ @_hash['session_timeout'] = 'session_timeout'
131
+ @_hash['type'] = 'type'
132
+ @_hash['username_attr'] = 'username_attr'
133
+ @_hash['values'] = 'values'
134
+ @_hash['vlan'] = 'vlan'
135
+ @_hash
136
+ end
137
+
138
+ # An array for optional fields
139
+ def self.optionals
140
+ %w[
141
+ allow_usermac_override
142
+ created_time
143
+ egress_vlan_names
144
+ gbp_tag
145
+ id
146
+ match
147
+ match_all
148
+ modified_time
149
+ org_id
150
+ radius_attrs
151
+ radius_group
152
+ radius_vendor_attrs
153
+ session_timeout
154
+ username_attr
155
+ values
156
+ vlan
157
+ ]
158
+ end
159
+
160
+ # An array for nullable fields
161
+ def self.nullables
162
+ []
163
+ end
164
+
165
+ def initialize(name = nil, type = nil, allow_usermac_override = false,
166
+ created_time = SKIP, egress_vlan_names = SKIP,
167
+ gbp_tag = SKIP, id = SKIP, match = SKIP, match_all = false,
168
+ modified_time = SKIP, org_id = SKIP, radius_attrs = SKIP,
169
+ radius_group = SKIP, radius_vendor_attrs = SKIP,
170
+ session_timeout = SKIP, username_attr = SKIP, values = SKIP,
171
+ vlan = SKIP)
172
+ @allow_usermac_override = allow_usermac_override unless allow_usermac_override == SKIP
173
+ @created_time = created_time unless created_time == SKIP
174
+ @egress_vlan_names = egress_vlan_names unless egress_vlan_names == SKIP
175
+ @gbp_tag = gbp_tag unless gbp_tag == SKIP
176
+ @id = id unless id == SKIP
177
+ @match = match unless match == SKIP
178
+ @match_all = match_all unless match_all == SKIP
179
+ @modified_time = modified_time unless modified_time == SKIP
180
+ @name = name
181
+ @org_id = org_id unless org_id == SKIP
182
+ @radius_attrs = radius_attrs unless radius_attrs == SKIP
183
+ @radius_group = radius_group unless radius_group == SKIP
184
+ @radius_vendor_attrs = radius_vendor_attrs unless radius_vendor_attrs == SKIP
185
+ @session_timeout = session_timeout unless session_timeout == SKIP
186
+ @type = type
187
+ @username_attr = username_attr unless username_attr == SKIP
188
+ @values = values unless values == SKIP
189
+ @vlan = vlan unless vlan == SKIP
190
+ end
191
+
192
+ # Creates an instance of the object from a hash.
193
+ def self.from_hash(hash)
194
+ return nil unless hash
195
+
196
+ # Extract variables from the hash.
197
+ name = hash.key?('name') ? hash['name'] : nil
198
+ type = NacTag.from_hash(hash['type']) if hash['type']
199
+ allow_usermac_override = hash['allow_usermac_override'] ||= false
200
+ created_time = hash.key?('created_time') ? hash['created_time'] : SKIP
201
+ egress_vlan_names =
202
+ hash.key?('egress_vlan_names') ? hash['egress_vlan_names'] : SKIP
203
+ gbp_tag = hash.key?('gbp_tag') ? hash['gbp_tag'] : SKIP
204
+ id = hash.key?('id') ? hash['id'] : SKIP
205
+ match = NacTag.from_hash(hash['match']) if hash['match']
206
+ match_all = hash['match_all'] ||= false
207
+ modified_time = hash.key?('modified_time') ? hash['modified_time'] : SKIP
208
+ org_id = hash.key?('org_id') ? hash['org_id'] : SKIP
209
+ radius_attrs = hash.key?('radius_attrs') ? hash['radius_attrs'] : SKIP
210
+ radius_group = hash.key?('radius_group') ? hash['radius_group'] : SKIP
211
+ radius_vendor_attrs =
212
+ hash.key?('radius_vendor_attrs') ? hash['radius_vendor_attrs'] : SKIP
213
+ session_timeout =
214
+ hash.key?('session_timeout') ? hash['session_timeout'] : SKIP
215
+ username_attr = NacTag.from_hash(hash['username_attr']) if hash['username_attr']
216
+ values = hash.key?('values') ? hash['values'] : SKIP
217
+ vlan = hash.key?('vlan') ? hash['vlan'] : SKIP
218
+
219
+ # Create object from extracted values.
220
+ NacTag.new(name,
221
+ type,
222
+ allow_usermac_override,
223
+ created_time,
224
+ egress_vlan_names,
225
+ gbp_tag,
226
+ id,
227
+ match,
228
+ match_all,
229
+ modified_time,
230
+ org_id,
231
+ radius_attrs,
232
+ radius_group,
233
+ radius_vendor_attrs,
234
+ session_timeout,
235
+ username_attr,
236
+ values,
237
+ vlan)
238
+ end
239
+
240
+ # Provides a human-readable string representation of the object.
241
+ def to_s
242
+ class_name = self.class.name.split('::').last
243
+ "<#{class_name} allow_usermac_override: #{@allow_usermac_override}, created_time:"\
244
+ " #{@created_time}, egress_vlan_names: #{@egress_vlan_names}, gbp_tag: #{@gbp_tag}, id:"\
245
+ " #{@id}, match: #{@match}, match_all: #{@match_all}, modified_time: #{@modified_time},"\
246
+ " name: #{@name}, org_id: #{@org_id}, radius_attrs: #{@radius_attrs}, radius_group:"\
247
+ " #{@radius_group}, radius_vendor_attrs: #{@radius_vendor_attrs}, session_timeout:"\
248
+ " #{@session_timeout}, type: #{@type}, username_attr: #{@username_attr}, values: #{@values},"\
249
+ " vlan: #{@vlan}>"
250
+ end
251
+
252
+ # Provides a debugging-friendly string with detailed object information.
253
+ def inspect
254
+ class_name = self.class.name.split('::').last
255
+ "<#{class_name} allow_usermac_override: #{@allow_usermac_override.inspect}, created_time:"\
256
+ " #{@created_time.inspect}, egress_vlan_names: #{@egress_vlan_names.inspect}, gbp_tag:"\
257
+ " #{@gbp_tag.inspect}, id: #{@id.inspect}, match: #{@match.inspect}, match_all:"\
258
+ " #{@match_all.inspect}, modified_time: #{@modified_time.inspect}, name: #{@name.inspect},"\
259
+ " org_id: #{@org_id.inspect}, radius_attrs: #{@radius_attrs.inspect}, radius_group:"\
260
+ " #{@radius_group.inspect}, radius_vendor_attrs: #{@radius_vendor_attrs.inspect},"\
261
+ " session_timeout: #{@session_timeout.inspect}, type: #{@type.inspect}, username_attr:"\
262
+ " #{@username_attr.inspect}, values: #{@values.inspect}, vlan: #{@vlan.inspect}>"
263
+ end
264
+ end
265
+ end
@@ -0,0 +1,29 @@
1
+ # cypress_test_api
2
+ #
3
+ # This file was automatically generated by APIMATIC v3.0
4
+ # ( https://www.apimatic.io ).
5
+
6
+ module CypressTestApi
7
+ # OAuth 2 scopes supported by the API
8
+ class OAuthScopeOAuthACGEnum
9
+ O_AUTH_SCOPE_O_AUTH_ACG_ENUM = [
10
+ # TODO: Write general description for ENUM_FILE_REQUESTSREAD
11
+ ENUM_FILE_REQUESTSREAD = 'file_requests.read'.freeze,
12
+
13
+ # TODO: Write general description for ZAHRA
14
+ ZAHRA = 'zahra'.freeze,
15
+
16
+ # TODO: Write general description for TEST1
17
+ TEST1 = 'test1'.freeze,
18
+
19
+ # TODO: Write general description for SELECTION
20
+ SELECTION = 'selection'.freeze
21
+ ].freeze
22
+
23
+ def self.validate(value)
24
+ return false if value.nil?
25
+
26
+ O_AUTH_SCOPE_O_AUTH_ACG_ENUM.include?(value)
27
+ end
28
+ end
29
+ end
@@ -0,0 +1,62 @@
1
+ # cypress_test_api
2
+ #
3
+ # This file was automatically generated by APIMATIC v3.0
4
+ # ( https://www.apimatic.io ).
5
+
6
+ module CypressTestApi
7
+ # ResponseHttp400 Model.
8
+ class ResponseHttp400 < BaseModel
9
+ SKIP = Object.new
10
+ private_constant :SKIP
11
+
12
+ # TODO: Write general description for this method
13
+ # @return [String]
14
+ attr_accessor :detail
15
+
16
+ # A mapping from model property names to API property names.
17
+ def self.names
18
+ @_hash = {} if @_hash.nil?
19
+ @_hash['detail'] = 'detail'
20
+ @_hash
21
+ end
22
+
23
+ # An array for optional fields
24
+ def self.optionals
25
+ %w[
26
+ detail
27
+ ]
28
+ end
29
+
30
+ # An array for nullable fields
31
+ def self.nullables
32
+ []
33
+ end
34
+
35
+ def initialize(detail = SKIP)
36
+ @detail = detail unless detail == SKIP
37
+ end
38
+
39
+ # Creates an instance of the object from a hash.
40
+ def self.from_hash(hash)
41
+ return nil unless hash
42
+
43
+ # Extract variables from the hash.
44
+ detail = hash.key?('detail') ? hash['detail'] : SKIP
45
+
46
+ # Create object from extracted values.
47
+ ResponseHttp400.new(detail)
48
+ end
49
+
50
+ # Provides a human-readable string representation of the object.
51
+ def to_s
52
+ class_name = self.class.name.split('::').last
53
+ "<#{class_name} detail: #{@detail}>"
54
+ end
55
+
56
+ # Provides a debugging-friendly string with detailed object information.
57
+ def inspect
58
+ class_name = self.class.name.split('::').last
59
+ "<#{class_name} detail: #{@detail.inspect}>"
60
+ end
61
+ end
62
+ end
@@ -0,0 +1,62 @@
1
+ # cypress_test_api
2
+ #
3
+ # This file was automatically generated by APIMATIC v3.0
4
+ # ( https://www.apimatic.io ).
5
+
6
+ module CypressTestApi
7
+ # ResponseHttp404 Model.
8
+ class ResponseHttp404 < BaseModel
9
+ SKIP = Object.new
10
+ private_constant :SKIP
11
+
12
+ # TODO: Write general description for this method
13
+ # @return [String]
14
+ attr_accessor :id
15
+
16
+ # A mapping from model property names to API property names.
17
+ def self.names
18
+ @_hash = {} if @_hash.nil?
19
+ @_hash['id'] = 'id'
20
+ @_hash
21
+ end
22
+
23
+ # An array for optional fields
24
+ def self.optionals
25
+ %w[
26
+ id
27
+ ]
28
+ end
29
+
30
+ # An array for nullable fields
31
+ def self.nullables
32
+ []
33
+ end
34
+
35
+ def initialize(id = SKIP)
36
+ @id = id unless id == SKIP
37
+ end
38
+
39
+ # Creates an instance of the object from a hash.
40
+ def self.from_hash(hash)
41
+ return nil unless hash
42
+
43
+ # Extract variables from the hash.
44
+ id = hash.key?('id') ? hash['id'] : SKIP
45
+
46
+ # Create object from extracted values.
47
+ ResponseHttp404.new(id)
48
+ end
49
+
50
+ # Provides a human-readable string representation of the object.
51
+ def to_s
52
+ class_name = self.class.name.split('::').last
53
+ "<#{class_name} id: #{@id}>"
54
+ end
55
+
56
+ # Provides a debugging-friendly string with detailed object information.
57
+ def inspect
58
+ class_name = self.class.name.split('::').last
59
+ "<#{class_name} id: #{@id.inspect}>"
60
+ end
61
+ end
62
+ end
@@ -0,0 +1,26 @@
1
+ # cypress_test_api
2
+ #
3
+ # This file was automatically generated by APIMATIC v3.0
4
+ # ( https://www.apimatic.io ).
5
+
6
+ module CypressTestApi
7
+ # The status of the items to filter by.
8
+ class Status11Enum
9
+ STATUS11_ENUM = [
10
+ # TODO: Write general description for ENUMVALUE1
11
+ ENUMVALUE1 = 'enumvalue1'.freeze,
12
+
13
+ # TODO: Write general description for ENUMVALUE2
14
+ ENUMVALUE2 = 'enumvalue2'.freeze,
15
+
16
+ # TODO: Write general description for ENUMVALUE3
17
+ ENUMVALUE3 = 'enumvalue3'.freeze
18
+ ].freeze
19
+
20
+ def self.validate(value)
21
+ return false if value.nil?
22
+
23
+ STATUS11_ENUM.include?(value)
24
+ end
25
+ end
26
+ end
@@ -0,0 +1,26 @@
1
+ # cypress_test_api
2
+ #
3
+ # This file was automatically generated by APIMATIC v3.0
4
+ # ( https://www.apimatic.io ).
5
+
6
+ module CypressTestApi
7
+ # status1.
8
+ class Status1Enum
9
+ STATUS1_ENUM = [
10
+ # TODO: Write general description for ENUMVALUE1
11
+ ENUMVALUE1 = 'enumvalue1'.freeze,
12
+
13
+ # TODO: Write general description for ENUMVALUE2
14
+ ENUMVALUE2 = 'enumvalue2'.freeze,
15
+
16
+ # TODO: Write general description for ENUMVALUE3
17
+ ENUMVALUE3 = 'enumvalue3'.freeze
18
+ ].freeze
19
+
20
+ def self.validate(value)
21
+ return false if value.nil?
22
+
23
+ STATUS1_ENUM.include?(value)
24
+ end
25
+ end
26
+ end
@@ -0,0 +1,26 @@
1
+ # cypress_test_api
2
+ #
3
+ # This file was automatically generated by APIMATIC v3.0
4
+ # ( https://www.apimatic.io ).
5
+
6
+ module CypressTestApi
7
+ # Status.
8
+ class StatusEnum
9
+ STATUS_ENUM = [
10
+ # TODO: Write general description for ACTIVE
11
+ ACTIVE = 'active'.freeze,
12
+
13
+ # TODO: Write general description for INACTIVE
14
+ INACTIVE = 'inactive'.freeze,
15
+
16
+ # TODO: Write general description for PENDING
17
+ PENDING = 'pending'.freeze
18
+ ].freeze
19
+
20
+ def self.validate(value)
21
+ return false if value.nil?
22
+
23
+ STATUS_ENUM.include?(value)
24
+ end
25
+ end
26
+ end
@@ -0,0 +1,60 @@
1
+ # cypress_test_api
2
+ #
3
+ # This file was automatically generated by APIMATIC v3.0
4
+ # ( https://www.apimatic.io ).
5
+
6
+ module CypressTestApi
7
+ # TokensRequest Model.
8
+ class TokensRequest < BaseModel
9
+ SKIP = Object.new
10
+ private_constant :SKIP
11
+
12
+ # List of scopes that apply to the OAuth token
13
+ # @return [Array[OAuthScopeOAuthACGEnum]]
14
+ attr_accessor :scopes
15
+
16
+ # A mapping from model property names to API property names.
17
+ def self.names
18
+ @_hash = {} if @_hash.nil?
19
+ @_hash['scopes'] = 'scopes'
20
+ @_hash
21
+ end
22
+
23
+ # An array for optional fields
24
+ def self.optionals
25
+ []
26
+ end
27
+
28
+ # An array for nullable fields
29
+ def self.nullables
30
+ []
31
+ end
32
+
33
+ def initialize(scopes = nil)
34
+ @scopes = scopes
35
+ end
36
+
37
+ # Creates an instance of the object from a hash.
38
+ def self.from_hash(hash)
39
+ return nil unless hash
40
+
41
+ # Extract variables from the hash.
42
+ scopes = hash.key?('scopes') ? hash['scopes'] : nil
43
+
44
+ # Create object from extracted values.
45
+ TokensRequest.new(scopes)
46
+ end
47
+
48
+ # Provides a human-readable string representation of the object.
49
+ def to_s
50
+ class_name = self.class.name.split('::').last
51
+ "<#{class_name} scopes: #{@scopes}>"
52
+ end
53
+
54
+ # Provides a debugging-friendly string with detailed object information.
55
+ def inspect
56
+ class_name = self.class.name.split('::').last
57
+ "<#{class_name} scopes: #{@scopes.inspect}>"
58
+ end
59
+ end
60
+ end
@@ -0,0 +1,11 @@
1
+ # cypress_test_api
2
+ #
3
+ # This file was automatically generated by APIMATIC v3.0
4
+ # ( https://www.apimatic.io ).
5
+
6
+ require 'date'
7
+ module CypressTestApi
8
+ # A utility that supports dateTime conversion to different formats
9
+ class DateTimeHelper < CoreLibrary::DateTimeHelper
10
+ end
11
+ end
@@ -0,0 +1,28 @@
1
+ # cypress_test_api
2
+ #
3
+ # This file was automatically generated by APIMATIC v3.0
4
+ # ( https://www.apimatic.io ).
5
+
6
+ module CypressTestApi
7
+ # A utility to allow users to set the content-type for files
8
+ class FileWrapper < CoreLibrary::FileWrapper
9
+ # The constructor.
10
+ # @param [File] file The file to be sent in the request.
11
+ # @param [string] content_type The content type of the provided file.
12
+ def initialize(file, content_type: 'application/octet-stream')
13
+ super
14
+ end
15
+
16
+ # Provides a human-readable string representation of the object.
17
+ def to_s
18
+ class_name = self.class.name.split('::').last
19
+ "<#{class_name} file: #{@file}, content_type: #{@content_type}>"
20
+ end
21
+
22
+ # Provides a debugging-friendly string with detailed object information.
23
+ def to_inspect
24
+ class_name = self.class.name.split('::').last
25
+ "<#{class_name} file: #{@file.inspect}, content_type: #{@content_type.inspect}>"
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,55 @@
1
+ # cypress_test_api
2
+ #
3
+ # This file was automatically generated by APIMATIC v3.0
4
+ # ( https://www.apimatic.io ).
5
+
6
+ require 'date'
7
+ require 'json'
8
+
9
+ require 'apimatic_core_interfaces'
10
+ require 'apimatic_core'
11
+ require 'apimatic_faraday_client_adapter'
12
+
13
+ require_relative 'cypress_test_api/api_helper'
14
+ require_relative 'cypress_test_api/client'
15
+
16
+ # Utilities
17
+ require_relative 'cypress_test_api/utilities/file_wrapper'
18
+ require_relative 'cypress_test_api/utilities/date_time_helper'
19
+
20
+ # Http
21
+ require_relative 'cypress_test_api/http/http_call_back'
22
+ require_relative 'cypress_test_api/http/http_method_enum'
23
+ require_relative 'cypress_test_api/http/http_request'
24
+ require_relative 'cypress_test_api/http/http_response'
25
+ require_relative 'cypress_test_api/http/proxy_settings'
26
+
27
+
28
+
29
+ # Models
30
+ require_relative 'cypress_test_api/models/base_model'
31
+ require_relative 'cypress_test_api/models/multiple_arrays_request'
32
+ require_relative 'cypress_test_api/models/lion'
33
+ require_relative 'cypress_test_api/models/deer'
34
+ require_relative 'cypress_test_api/models/item'
35
+ require_relative 'cypress_test_api/models/response_http400'
36
+ require_relative 'cypress_test_api/models/message'
37
+ require_relative 'cypress_test_api/models/response_http404'
38
+ require_relative 'cypress_test_api/models/nac_tag'
39
+ require_relative 'cypress_test_api/models/item_response'
40
+ require_relative 'cypress_test_api/models/message2'
41
+ require_relative 'cypress_test_api/models/tokens_request'
42
+ require_relative 'cypress_test_api/models/o_auth_scope_o_auth_acg_enum'
43
+ require_relative 'cypress_test_api/models/status_enum'
44
+ require_relative 'cypress_test_api/models/status11_enum'
45
+ require_relative 'cypress_test_api/models/custom_enum'
46
+ require_relative 'cypress_test_api/models/status1_enum'
47
+
48
+ # Exceptions
49
+ require_relative 'cypress_test_api/exceptions/api_exception'
50
+
51
+ require_relative 'cypress_test_api/configuration'
52
+
53
+ # Controllers
54
+ require_relative 'cypress_test_api/controllers/base_controller'
55
+ require_relative 'cypress_test_api/controllers/api_controller'
@@ -0,0 +1,29 @@
1
+ # cypress_test_api
2
+ #
3
+ # This file was automatically generated by APIMATIC v3.0
4
+ # ( https://www.apimatic.io ).
5
+
6
+ require 'json'
7
+ require 'minitest/autorun'
8
+ require 'minitest/hell'
9
+ require 'minitest/pride'
10
+ require 'minitest/proveit'
11
+ require 'cypress_test_api'
12
+ require_relative '../http_response_catcher'
13
+
14
+ class ControllerTestBase < Minitest::Test
15
+ parallelize_me!
16
+ include CypressTestApi
17
+ include CoreLibrary
18
+
19
+ # Create configuration and set any test parameters
20
+ def create_configuration
21
+ Configuration.new(http_callback: HttpResponseCatcher.new)
22
+ end
23
+
24
+ # Initializes the base test controller
25
+ def setup_class
26
+ _config = create_configuration
27
+ @client = Client.new(config: _config)
28
+ end
29
+ end