cloudsmith-api 2.0.11 → 2.0.12
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/Gemfile.lock +4 -4
- data/README.md +13 -4
- data/build.json +1 -1
- data/docs/ReposApi.md +377 -0
- data/docs/StatusBasic.md +1 -1
- data/docs/SwiftPackageUpload.md +1 -1
- data/docs/SwiftPackageUploadRequest.md +1 -0
- data/docs/SwiftUpstream.md +23 -0
- data/docs/SwiftUpstreamRequest.md +20 -0
- data/docs/SwiftUpstreamRequestPatch.md +20 -0
- data/lib/cloudsmith-api/api/repos_api.rb +395 -0
- data/lib/cloudsmith-api/models/status_basic.rb +1 -1
- data/lib/cloudsmith-api/models/swift_package_upload.rb +5 -0
- data/lib/cloudsmith-api/models/swift_package_upload_request.rb +16 -1
- data/lib/cloudsmith-api/models/swift_upstream.rb +393 -0
- data/lib/cloudsmith-api/models/swift_upstream_request.rb +365 -0
- data/lib/cloudsmith-api/models/swift_upstream_request_patch.rb +355 -0
- data/lib/cloudsmith-api/version.rb +1 -1
- data/lib/cloudsmith-api.rb +3 -0
- data/spec/api/repos_api_spec.rb +87 -0
- data/spec/models/swift_package_upload_request_spec.rb +6 -0
- data/spec/models/swift_upstream_request_patch_spec.rb +121 -0
- data/spec/models/swift_upstream_request_spec.rb +121 -0
- data/spec/models/swift_upstream_spec.rb +139 -0
- data/vendor/bundle/ruby/2.6.0/cache/bigdecimal-3.1.7.gem +0 -0
- data/vendor/bundle/ruby/2.6.0/cache/json-2.7.2.gem +0 -0
- data/vendor/bundle/ruby/2.6.0/cache/public_suffix-5.0.5.gem +0 -0
- data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/autotest-fsevent-0.2.21/gem_make.out +1 -1
- data/vendor/bundle/ruby/2.6.0/{gems/bigdecimal-3.1.6/ext/bigdecimal → extensions/x86_64-linux/2.6.0/bigdecimal-3.1.7}/bigdecimal.so +0 -0
- data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/{bigdecimal-3.1.6 → bigdecimal-3.1.7}/gem_make.out +6 -6
- data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/{bigdecimal-3.1.6 → bigdecimal-3.1.7}/mkmf.log +10 -10
- data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/ffi-1.16.3/gem_make.out +2 -2
- data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/ffi-1.16.3/mkmf.log +1 -1
- data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/{json-2.7.1 → json-2.7.2}/gem_make.out +5 -5
- data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/json-2.7.2/json/ext/generator.so +0 -0
- data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/json-2.7.2/json/ext/parser.so +0 -0
- data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/{json-2.7.1 → json-2.7.2}/mkmf.log +2 -2
- data/vendor/bundle/ruby/2.6.0/gems/{bigdecimal-3.1.6 → bigdecimal-3.1.7}/ext/bigdecimal/Makefile +2 -2
- data/vendor/bundle/ruby/2.6.0/gems/{bigdecimal-3.1.6 → bigdecimal-3.1.7}/ext/bigdecimal/bigdecimal.c +1 -1
- data/vendor/bundle/ruby/2.6.0/gems/{bigdecimal-3.1.6 → bigdecimal-3.1.7}/ext/bigdecimal/bigdecimal.o +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{bigdecimal-3.1.6/lib → bigdecimal-3.1.7/ext/bigdecimal}/bigdecimal.so +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{bigdecimal-3.1.6 → bigdecimal-3.1.7}/ext/bigdecimal/missing.o +0 -0
- data/vendor/bundle/ruby/2.6.0/{extensions/x86_64-linux/2.6.0/bigdecimal-3.1.6 → gems/bigdecimal-3.1.7/lib}/bigdecimal.so +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/ffi-1.16.3/ext/ffi_c/Makefile +2 -2
- data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/README.md +0 -9
- data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/ext/json/Makefile +2 -2
- data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/ext/json/ext/generator/Makefile +2 -2
- data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/ext/json/ext/generator/generator.c +36 -6
- data/vendor/bundle/ruby/2.6.0/gems/json-2.7.2/ext/json/ext/generator/generator.o +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/json-2.7.2/ext/json/ext/generator/generator.so +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/ext/json/ext/parser/Makefile +2 -2
- data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/ext/json/ext/parser/parser.o +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/json-2.7.2/ext/json/ext/parser/parser.so +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/lib/json/add/ostruct.rb +5 -2
- data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/lib/json/common.rb +2 -1
- data/vendor/bundle/ruby/2.6.0/gems/json-2.7.2/lib/json/ext/generator.so +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/json-2.7.2/lib/json/ext/parser.so +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/lib/json/generic_object.rb +6 -2
- data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/lib/json/version.rb +1 -1
- data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-5.0.4 → public_suffix-5.0.5}/CHANGELOG.md +7 -1
- data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-5.0.4 → public_suffix-5.0.5}/LICENSE.txt +1 -1
- data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-5.0.4 → public_suffix-5.0.5}/README.md +1 -1
- data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-5.0.4 → public_suffix-5.0.5}/data/list.txt +239 -80
- data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-5.0.4 → public_suffix-5.0.5}/lib/public_suffix/domain.rb +1 -1
- data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-5.0.4 → public_suffix-5.0.5}/lib/public_suffix/errors.rb +1 -1
- data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-5.0.4 → public_suffix-5.0.5}/lib/public_suffix/list.rb +1 -1
- data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-5.0.4 → public_suffix-5.0.5}/lib/public_suffix/rule.rb +1 -1
- data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-5.0.4 → public_suffix-5.0.5}/lib/public_suffix/version.rb +2 -2
- data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-5.0.4 → public_suffix-5.0.5}/lib/public_suffix.rb +1 -1
- data/vendor/bundle/ruby/2.6.0/specifications/{bigdecimal-3.1.6.gemspec → bigdecimal-3.1.7.gemspec} +3 -3
- data/vendor/bundle/ruby/2.6.0/specifications/{json-2.7.1.gemspec → json-2.7.2.gemspec} +0 -0
- data/vendor/bundle/ruby/2.6.0/specifications/{public_suffix-5.0.4.gemspec → public_suffix-5.0.5.gemspec} +4 -4
- metadata +116 -104
- data/vendor/bundle/ruby/2.6.0/cache/bigdecimal-3.1.6.gem +0 -0
- data/vendor/bundle/ruby/2.6.0/cache/json-2.7.1.gem +0 -0
- data/vendor/bundle/ruby/2.6.0/cache/public_suffix-5.0.4.gem +0 -0
- data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/json-2.7.1/json/ext/generator.so +0 -0
- data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/json-2.7.1/json/ext/parser.so +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/json-2.7.1/ext/json/ext/generator/generator.o +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/json-2.7.1/ext/json/ext/generator/generator.so +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/json-2.7.1/ext/json/ext/parser/parser.so +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/json-2.7.1/lib/json/ext/generator.so +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/json-2.7.1/lib/json/ext/parser.so +0 -0
- /data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/{bigdecimal-3.1.6 → bigdecimal-3.1.7}/gem.build_complete +0 -0
- /data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/{json-2.7.1 → json-2.7.2}/gem.build_complete +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{bigdecimal-3.1.6 → bigdecimal-3.1.7}/LICENSE +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{bigdecimal-3.1.6 → bigdecimal-3.1.7}/bigdecimal.gemspec +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{bigdecimal-3.1.6 → bigdecimal-3.1.7}/ext/bigdecimal/.sitearchdir.time +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{bigdecimal-3.1.6 → bigdecimal-3.1.7}/ext/bigdecimal/bigdecimal.h +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{bigdecimal-3.1.6 → bigdecimal-3.1.7}/ext/bigdecimal/bits.h +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{bigdecimal-3.1.6 → bigdecimal-3.1.7}/ext/bigdecimal/extconf.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{bigdecimal-3.1.6 → bigdecimal-3.1.7}/ext/bigdecimal/feature.h +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{bigdecimal-3.1.6 → bigdecimal-3.1.7}/ext/bigdecimal/missing/dtoa.c +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{bigdecimal-3.1.6 → bigdecimal-3.1.7}/ext/bigdecimal/missing.c +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{bigdecimal-3.1.6 → bigdecimal-3.1.7}/ext/bigdecimal/missing.h +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{bigdecimal-3.1.6 → bigdecimal-3.1.7}/ext/bigdecimal/static_assert.h +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{bigdecimal-3.1.6 → bigdecimal-3.1.7}/lib/bigdecimal/jacobian.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{bigdecimal-3.1.6 → bigdecimal-3.1.7}/lib/bigdecimal/ludcmp.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{bigdecimal-3.1.6 → bigdecimal-3.1.7}/lib/bigdecimal/math.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{bigdecimal-3.1.6 → bigdecimal-3.1.7}/lib/bigdecimal/newton.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{bigdecimal-3.1.6 → bigdecimal-3.1.7}/lib/bigdecimal/util.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{bigdecimal-3.1.6 → bigdecimal-3.1.7}/lib/bigdecimal.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{bigdecimal-3.1.6 → bigdecimal-3.1.7}/sample/linear.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{bigdecimal-3.1.6 → bigdecimal-3.1.7}/sample/nlsolve.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{bigdecimal-3.1.6 → bigdecimal-3.1.7}/sample/pi.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/CHANGES.md +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/LICENSE +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/ext/json/ext/fbuffer/fbuffer.h +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/ext/json/ext/generator/.sitearchdir.-.json.-.ext.time +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/ext/json/ext/generator/depend +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/ext/json/ext/generator/extconf.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/ext/json/ext/generator/generator.h +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/ext/json/ext/parser/.sitearchdir.-.json.-.ext.time +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/ext/json/ext/parser/depend +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/ext/json/ext/parser/extconf.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/ext/json/ext/parser/parser.c +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/ext/json/ext/parser/parser.h +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/ext/json/ext/parser/parser.rl +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/ext/json/extconf.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/json.gemspec +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/lib/json/add/bigdecimal.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/lib/json/add/complex.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/lib/json/add/core.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/lib/json/add/date.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/lib/json/add/date_time.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/lib/json/add/exception.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/lib/json/add/range.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/lib/json/add/rational.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/lib/json/add/regexp.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/lib/json/add/set.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/lib/json/add/struct.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/lib/json/add/symbol.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/lib/json/add/time.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/lib/json/ext.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/lib/json/pure/generator.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/lib/json/pure/parser.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/lib/json/pure.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/lib/json.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-5.0.4 → public_suffix-5.0.5}/.yardopts +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-5.0.4 → public_suffix-5.0.5}/2.0-Upgrade.md +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-5.0.4 → public_suffix-5.0.5}/SECURITY.md +0 -0
|
@@ -0,0 +1,355 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Cloudsmith API (v1)
|
|
3
|
+
|
|
4
|
+
#The API to the Cloudsmith Service
|
|
5
|
+
|
|
6
|
+
OpenAPI spec version: v1
|
|
7
|
+
Contact: support@cloudsmith.io
|
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
+
Swagger Codegen version: 2.4.26
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'date'
|
|
14
|
+
|
|
15
|
+
module CloudsmithApi
|
|
16
|
+
class SwiftUpstreamRequestPatch
|
|
17
|
+
# The authentication mode to use when accessing this upstream.
|
|
18
|
+
attr_accessor :auth_mode
|
|
19
|
+
|
|
20
|
+
# Secret to provide with requests to upstream.
|
|
21
|
+
attr_accessor :auth_secret
|
|
22
|
+
|
|
23
|
+
# Username to provide with requests to upstream.
|
|
24
|
+
attr_accessor :auth_username
|
|
25
|
+
|
|
26
|
+
# The key for extra header #1 to send to upstream.
|
|
27
|
+
attr_accessor :extra_header_1
|
|
28
|
+
|
|
29
|
+
# The key for extra header #2 to send to upstream.
|
|
30
|
+
attr_accessor :extra_header_2
|
|
31
|
+
|
|
32
|
+
# The value for extra header #1 to send to upstream. This is stored as plaintext, and is NOT encrypted.
|
|
33
|
+
attr_accessor :extra_value_1
|
|
34
|
+
|
|
35
|
+
# The value for extra header #2 to send to upstream. This is stored as plaintext, and is NOT encrypted.
|
|
36
|
+
attr_accessor :extra_value_2
|
|
37
|
+
|
|
38
|
+
# Whether or not this upstream is active and ready for requests.
|
|
39
|
+
attr_accessor :is_active
|
|
40
|
+
|
|
41
|
+
# The mode that this upstream should operate in. Upstream sources can be used to proxy resolved packages, as well as operate in a proxy/cache or cache only mode.
|
|
42
|
+
attr_accessor :mode
|
|
43
|
+
|
|
44
|
+
# A descriptive name for this upstream source. A shortened version of this name will be used for tagging cached packages retrieved from this upstream.
|
|
45
|
+
attr_accessor :name
|
|
46
|
+
|
|
47
|
+
# Upstream sources are selected for resolving requests by sequential order (1..n), followed by creation date.
|
|
48
|
+
attr_accessor :priority
|
|
49
|
+
|
|
50
|
+
# The URL for this upstream source. This must be a fully qualified URL including any path elements required to reach the root of the repository.
|
|
51
|
+
attr_accessor :upstream_url
|
|
52
|
+
|
|
53
|
+
# If enabled, SSL certificates are verified when requests are made to this upstream. It's recommended to leave this enabled for all public sources to help mitigate Man-In-The-Middle (MITM) attacks. Please note this only applies to HTTPS upstreams.
|
|
54
|
+
attr_accessor :verify_ssl
|
|
55
|
+
|
|
56
|
+
class EnumAttributeValidator
|
|
57
|
+
attr_reader :datatype
|
|
58
|
+
attr_reader :allowable_values
|
|
59
|
+
|
|
60
|
+
def initialize(datatype, allowable_values)
|
|
61
|
+
@allowable_values = allowable_values.map do |value|
|
|
62
|
+
case datatype.to_s
|
|
63
|
+
when /Integer/i
|
|
64
|
+
value.to_i
|
|
65
|
+
when /Float/i
|
|
66
|
+
value.to_f
|
|
67
|
+
else
|
|
68
|
+
value
|
|
69
|
+
end
|
|
70
|
+
end
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
def valid?(value)
|
|
74
|
+
!value || allowable_values.include?(value)
|
|
75
|
+
end
|
|
76
|
+
end
|
|
77
|
+
|
|
78
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
79
|
+
def self.attribute_map
|
|
80
|
+
{
|
|
81
|
+
:'auth_mode' => :'auth_mode',
|
|
82
|
+
:'auth_secret' => :'auth_secret',
|
|
83
|
+
:'auth_username' => :'auth_username',
|
|
84
|
+
:'extra_header_1' => :'extra_header_1',
|
|
85
|
+
:'extra_header_2' => :'extra_header_2',
|
|
86
|
+
:'extra_value_1' => :'extra_value_1',
|
|
87
|
+
:'extra_value_2' => :'extra_value_2',
|
|
88
|
+
:'is_active' => :'is_active',
|
|
89
|
+
:'mode' => :'mode',
|
|
90
|
+
:'name' => :'name',
|
|
91
|
+
:'priority' => :'priority',
|
|
92
|
+
:'upstream_url' => :'upstream_url',
|
|
93
|
+
:'verify_ssl' => :'verify_ssl'
|
|
94
|
+
}
|
|
95
|
+
end
|
|
96
|
+
|
|
97
|
+
# Attribute type mapping.
|
|
98
|
+
def self.swagger_types
|
|
99
|
+
{
|
|
100
|
+
:'auth_mode' => :'String',
|
|
101
|
+
:'auth_secret' => :'String',
|
|
102
|
+
:'auth_username' => :'String',
|
|
103
|
+
:'extra_header_1' => :'String',
|
|
104
|
+
:'extra_header_2' => :'String',
|
|
105
|
+
:'extra_value_1' => :'String',
|
|
106
|
+
:'extra_value_2' => :'String',
|
|
107
|
+
:'is_active' => :'BOOLEAN',
|
|
108
|
+
:'mode' => :'String',
|
|
109
|
+
:'name' => :'String',
|
|
110
|
+
:'priority' => :'Integer',
|
|
111
|
+
:'upstream_url' => :'String',
|
|
112
|
+
:'verify_ssl' => :'BOOLEAN'
|
|
113
|
+
}
|
|
114
|
+
end
|
|
115
|
+
|
|
116
|
+
# Initializes the object
|
|
117
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
118
|
+
def initialize(attributes = {})
|
|
119
|
+
return unless attributes.is_a?(Hash)
|
|
120
|
+
|
|
121
|
+
# convert string to symbol for hash key
|
|
122
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
123
|
+
|
|
124
|
+
if attributes.has_key?(:'auth_mode')
|
|
125
|
+
self.auth_mode = attributes[:'auth_mode']
|
|
126
|
+
else
|
|
127
|
+
self.auth_mode = 'None'
|
|
128
|
+
end
|
|
129
|
+
|
|
130
|
+
if attributes.has_key?(:'auth_secret')
|
|
131
|
+
self.auth_secret = attributes[:'auth_secret']
|
|
132
|
+
end
|
|
133
|
+
|
|
134
|
+
if attributes.has_key?(:'auth_username')
|
|
135
|
+
self.auth_username = attributes[:'auth_username']
|
|
136
|
+
end
|
|
137
|
+
|
|
138
|
+
if attributes.has_key?(:'extra_header_1')
|
|
139
|
+
self.extra_header_1 = attributes[:'extra_header_1']
|
|
140
|
+
end
|
|
141
|
+
|
|
142
|
+
if attributes.has_key?(:'extra_header_2')
|
|
143
|
+
self.extra_header_2 = attributes[:'extra_header_2']
|
|
144
|
+
end
|
|
145
|
+
|
|
146
|
+
if attributes.has_key?(:'extra_value_1')
|
|
147
|
+
self.extra_value_1 = attributes[:'extra_value_1']
|
|
148
|
+
end
|
|
149
|
+
|
|
150
|
+
if attributes.has_key?(:'extra_value_2')
|
|
151
|
+
self.extra_value_2 = attributes[:'extra_value_2']
|
|
152
|
+
end
|
|
153
|
+
|
|
154
|
+
if attributes.has_key?(:'is_active')
|
|
155
|
+
self.is_active = attributes[:'is_active']
|
|
156
|
+
end
|
|
157
|
+
|
|
158
|
+
if attributes.has_key?(:'mode')
|
|
159
|
+
self.mode = attributes[:'mode']
|
|
160
|
+
else
|
|
161
|
+
self.mode = 'Proxy Only'
|
|
162
|
+
end
|
|
163
|
+
|
|
164
|
+
if attributes.has_key?(:'name')
|
|
165
|
+
self.name = attributes[:'name']
|
|
166
|
+
end
|
|
167
|
+
|
|
168
|
+
if attributes.has_key?(:'priority')
|
|
169
|
+
self.priority = attributes[:'priority']
|
|
170
|
+
end
|
|
171
|
+
|
|
172
|
+
if attributes.has_key?(:'upstream_url')
|
|
173
|
+
self.upstream_url = attributes[:'upstream_url']
|
|
174
|
+
end
|
|
175
|
+
|
|
176
|
+
if attributes.has_key?(:'verify_ssl')
|
|
177
|
+
self.verify_ssl = attributes[:'verify_ssl']
|
|
178
|
+
end
|
|
179
|
+
end
|
|
180
|
+
|
|
181
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
182
|
+
# @return Array for valid properties with the reasons
|
|
183
|
+
def list_invalid_properties
|
|
184
|
+
invalid_properties = Array.new
|
|
185
|
+
invalid_properties
|
|
186
|
+
end
|
|
187
|
+
|
|
188
|
+
# Check to see if the all the properties in the model are valid
|
|
189
|
+
# @return true if the model is valid
|
|
190
|
+
def valid?
|
|
191
|
+
auth_mode_validator = EnumAttributeValidator.new('String', ['None', 'Username and Password'])
|
|
192
|
+
return false unless auth_mode_validator.valid?(@auth_mode)
|
|
193
|
+
mode_validator = EnumAttributeValidator.new('String', ['Proxy Only'])
|
|
194
|
+
return false unless mode_validator.valid?(@mode)
|
|
195
|
+
true
|
|
196
|
+
end
|
|
197
|
+
|
|
198
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
199
|
+
# @param [Object] auth_mode Object to be assigned
|
|
200
|
+
def auth_mode=(auth_mode)
|
|
201
|
+
validator = EnumAttributeValidator.new('String', ['None', 'Username and Password'])
|
|
202
|
+
unless validator.valid?(auth_mode)
|
|
203
|
+
fail ArgumentError, 'invalid value for "auth_mode", must be one of #{validator.allowable_values}.'
|
|
204
|
+
end
|
|
205
|
+
@auth_mode = auth_mode
|
|
206
|
+
end
|
|
207
|
+
|
|
208
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
209
|
+
# @param [Object] mode Object to be assigned
|
|
210
|
+
def mode=(mode)
|
|
211
|
+
validator = EnumAttributeValidator.new('String', ['Proxy Only'])
|
|
212
|
+
unless validator.valid?(mode)
|
|
213
|
+
fail ArgumentError, 'invalid value for "mode", must be one of #{validator.allowable_values}.'
|
|
214
|
+
end
|
|
215
|
+
@mode = mode
|
|
216
|
+
end
|
|
217
|
+
|
|
218
|
+
# Checks equality by comparing each attribute.
|
|
219
|
+
# @param [Object] Object to be compared
|
|
220
|
+
def ==(o)
|
|
221
|
+
return true if self.equal?(o)
|
|
222
|
+
self.class == o.class &&
|
|
223
|
+
auth_mode == o.auth_mode &&
|
|
224
|
+
auth_secret == o.auth_secret &&
|
|
225
|
+
auth_username == o.auth_username &&
|
|
226
|
+
extra_header_1 == o.extra_header_1 &&
|
|
227
|
+
extra_header_2 == o.extra_header_2 &&
|
|
228
|
+
extra_value_1 == o.extra_value_1 &&
|
|
229
|
+
extra_value_2 == o.extra_value_2 &&
|
|
230
|
+
is_active == o.is_active &&
|
|
231
|
+
mode == o.mode &&
|
|
232
|
+
name == o.name &&
|
|
233
|
+
priority == o.priority &&
|
|
234
|
+
upstream_url == o.upstream_url &&
|
|
235
|
+
verify_ssl == o.verify_ssl
|
|
236
|
+
end
|
|
237
|
+
|
|
238
|
+
# @see the `==` method
|
|
239
|
+
# @param [Object] Object to be compared
|
|
240
|
+
def eql?(o)
|
|
241
|
+
self == o
|
|
242
|
+
end
|
|
243
|
+
|
|
244
|
+
# Calculates hash code according to all attributes.
|
|
245
|
+
# @return [Fixnum] Hash code
|
|
246
|
+
def hash
|
|
247
|
+
[auth_mode, auth_secret, auth_username, extra_header_1, extra_header_2, extra_value_1, extra_value_2, is_active, mode, name, priority, upstream_url, verify_ssl].hash
|
|
248
|
+
end
|
|
249
|
+
|
|
250
|
+
# Builds the object from hash
|
|
251
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
252
|
+
# @return [Object] Returns the model itself
|
|
253
|
+
def build_from_hash(attributes)
|
|
254
|
+
return nil unless attributes.is_a?(Hash)
|
|
255
|
+
self.class.swagger_types.each_pair do |key, type|
|
|
256
|
+
if type =~ /\AArray<(.*)>/i
|
|
257
|
+
# check to ensure the input is an array given that the attribute
|
|
258
|
+
# is documented as an array but the input is not
|
|
259
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
260
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
261
|
+
end
|
|
262
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
263
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
264
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
|
265
|
+
end
|
|
266
|
+
|
|
267
|
+
self
|
|
268
|
+
end
|
|
269
|
+
|
|
270
|
+
# Deserializes the data based on type
|
|
271
|
+
# @param string type Data type
|
|
272
|
+
# @param string value Value to be deserialized
|
|
273
|
+
# @return [Object] Deserialized data
|
|
274
|
+
def _deserialize(type, value)
|
|
275
|
+
case type.to_sym
|
|
276
|
+
when :DateTime
|
|
277
|
+
DateTime.parse(value)
|
|
278
|
+
when :Date
|
|
279
|
+
Date.parse(value)
|
|
280
|
+
when :String
|
|
281
|
+
value.to_s
|
|
282
|
+
when :Integer
|
|
283
|
+
value.to_i
|
|
284
|
+
when :Float
|
|
285
|
+
value.to_f
|
|
286
|
+
when :BOOLEAN
|
|
287
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
288
|
+
true
|
|
289
|
+
else
|
|
290
|
+
false
|
|
291
|
+
end
|
|
292
|
+
when :Object
|
|
293
|
+
# generic object (usually a Hash), return directly
|
|
294
|
+
value
|
|
295
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
296
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
297
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
298
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
299
|
+
k_type = Regexp.last_match[:k_type]
|
|
300
|
+
v_type = Regexp.last_match[:v_type]
|
|
301
|
+
{}.tap do |hash|
|
|
302
|
+
value.each do |k, v|
|
|
303
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
304
|
+
end
|
|
305
|
+
end
|
|
306
|
+
else # model
|
|
307
|
+
temp_model = CloudsmithApi.const_get(type).new
|
|
308
|
+
temp_model.build_from_hash(value)
|
|
309
|
+
end
|
|
310
|
+
end
|
|
311
|
+
|
|
312
|
+
# Returns the string representation of the object
|
|
313
|
+
# @return [String] String presentation of the object
|
|
314
|
+
def to_s
|
|
315
|
+
to_hash.to_s
|
|
316
|
+
end
|
|
317
|
+
|
|
318
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
319
|
+
# @return [Hash] Returns the object in the form of hash
|
|
320
|
+
def to_body
|
|
321
|
+
to_hash
|
|
322
|
+
end
|
|
323
|
+
|
|
324
|
+
# Returns the object in the form of hash
|
|
325
|
+
# @return [Hash] Returns the object in the form of hash
|
|
326
|
+
def to_hash
|
|
327
|
+
hash = {}
|
|
328
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
329
|
+
value = self.send(attr)
|
|
330
|
+
next if value.nil?
|
|
331
|
+
hash[param] = _to_hash(value)
|
|
332
|
+
end
|
|
333
|
+
hash
|
|
334
|
+
end
|
|
335
|
+
|
|
336
|
+
# Outputs non-array value in the form of hash
|
|
337
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
338
|
+
# @param [Object] value Any valid value
|
|
339
|
+
# @return [Hash] Returns the value in the form of hash
|
|
340
|
+
def _to_hash(value)
|
|
341
|
+
if value.is_a?(Array)
|
|
342
|
+
value.compact.map { |v| _to_hash(v) }
|
|
343
|
+
elsif value.is_a?(Hash)
|
|
344
|
+
{}.tap do |hash|
|
|
345
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
346
|
+
end
|
|
347
|
+
elsif value.respond_to? :to_hash
|
|
348
|
+
value.to_hash
|
|
349
|
+
else
|
|
350
|
+
value
|
|
351
|
+
end
|
|
352
|
+
end
|
|
353
|
+
|
|
354
|
+
end
|
|
355
|
+
end
|
data/lib/cloudsmith-api.rb
CHANGED
|
@@ -221,6 +221,9 @@ require 'cloudsmith-api/models/storage_usage'
|
|
|
221
221
|
require 'cloudsmith-api/models/storage_usage_raw'
|
|
222
222
|
require 'cloudsmith-api/models/swift_package_upload'
|
|
223
223
|
require 'cloudsmith-api/models/swift_package_upload_request'
|
|
224
|
+
require 'cloudsmith-api/models/swift_upstream'
|
|
225
|
+
require 'cloudsmith-api/models/swift_upstream_request'
|
|
226
|
+
require 'cloudsmith-api/models/swift_upstream_request_patch'
|
|
224
227
|
require 'cloudsmith-api/models/tags'
|
|
225
228
|
require 'cloudsmith-api/models/terraform_package_upload'
|
|
226
229
|
require 'cloudsmith-api/models/terraform_package_upload_request'
|
data/spec/api/repos_api_spec.rb
CHANGED
|
@@ -1262,6 +1262,93 @@ describe 'ReposApi' do
|
|
|
1262
1262
|
end
|
|
1263
1263
|
end
|
|
1264
1264
|
|
|
1265
|
+
# unit tests for repos_upstream_swift_create
|
|
1266
|
+
# Create a Swift upstream config for this repository.
|
|
1267
|
+
# Create a Swift upstream config for this repository.
|
|
1268
|
+
# @param owner
|
|
1269
|
+
# @param identifier
|
|
1270
|
+
# @param [Hash] opts the optional parameters
|
|
1271
|
+
# @option opts [SwiftUpstreamRequest] :data
|
|
1272
|
+
# @return [SwiftUpstream]
|
|
1273
|
+
describe 'repos_upstream_swift_create test' do
|
|
1274
|
+
it 'should work' do
|
|
1275
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
1276
|
+
end
|
|
1277
|
+
end
|
|
1278
|
+
|
|
1279
|
+
# unit tests for repos_upstream_swift_delete
|
|
1280
|
+
# Delete a Swift upstream config for this repository.
|
|
1281
|
+
# Delete a Swift upstream config for this repository.
|
|
1282
|
+
# @param owner
|
|
1283
|
+
# @param identifier
|
|
1284
|
+
# @param slug_perm
|
|
1285
|
+
# @param [Hash] opts the optional parameters
|
|
1286
|
+
# @return [nil]
|
|
1287
|
+
describe 'repos_upstream_swift_delete test' do
|
|
1288
|
+
it 'should work' do
|
|
1289
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
1290
|
+
end
|
|
1291
|
+
end
|
|
1292
|
+
|
|
1293
|
+
# unit tests for repos_upstream_swift_list
|
|
1294
|
+
# List Swift upstream configs for this repository.
|
|
1295
|
+
# List Swift upstream configs for this repository.
|
|
1296
|
+
# @param owner
|
|
1297
|
+
# @param identifier
|
|
1298
|
+
# @param [Hash] opts the optional parameters
|
|
1299
|
+
# @option opts [Integer] :page A page number within the paginated result set.
|
|
1300
|
+
# @option opts [Integer] :page_size Number of results to return per page.
|
|
1301
|
+
# @return [Array<SwiftUpstream>]
|
|
1302
|
+
describe 'repos_upstream_swift_list test' do
|
|
1303
|
+
it 'should work' do
|
|
1304
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
1305
|
+
end
|
|
1306
|
+
end
|
|
1307
|
+
|
|
1308
|
+
# unit tests for repos_upstream_swift_partial_update
|
|
1309
|
+
# Partially update a Swift upstream config for this repository.
|
|
1310
|
+
# Partially update a Swift upstream config for this repository.
|
|
1311
|
+
# @param owner
|
|
1312
|
+
# @param identifier
|
|
1313
|
+
# @param slug_perm
|
|
1314
|
+
# @param [Hash] opts the optional parameters
|
|
1315
|
+
# @option opts [SwiftUpstreamRequestPatch] :data
|
|
1316
|
+
# @return [SwiftUpstream]
|
|
1317
|
+
describe 'repos_upstream_swift_partial_update test' do
|
|
1318
|
+
it 'should work' do
|
|
1319
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
1320
|
+
end
|
|
1321
|
+
end
|
|
1322
|
+
|
|
1323
|
+
# unit tests for repos_upstream_swift_read
|
|
1324
|
+
# Retrieve a Swift upstream config for this repository.
|
|
1325
|
+
# Retrieve a Swift upstream config for this repository.
|
|
1326
|
+
# @param owner
|
|
1327
|
+
# @param identifier
|
|
1328
|
+
# @param slug_perm
|
|
1329
|
+
# @param [Hash] opts the optional parameters
|
|
1330
|
+
# @return [SwiftUpstream]
|
|
1331
|
+
describe 'repos_upstream_swift_read test' do
|
|
1332
|
+
it 'should work' do
|
|
1333
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
1334
|
+
end
|
|
1335
|
+
end
|
|
1336
|
+
|
|
1337
|
+
# unit tests for repos_upstream_swift_update
|
|
1338
|
+
# Update a Swift upstream config for this repository.
|
|
1339
|
+
# Update a Swift upstream config for this repository.
|
|
1340
|
+
# @param owner
|
|
1341
|
+
# @param identifier
|
|
1342
|
+
# @param slug_perm
|
|
1343
|
+
# @param [Hash] opts the optional parameters
|
|
1344
|
+
# @option opts [SwiftUpstreamRequest] :data
|
|
1345
|
+
# @return [SwiftUpstream]
|
|
1346
|
+
describe 'repos_upstream_swift_update test' do
|
|
1347
|
+
it 'should work' do
|
|
1348
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
1349
|
+
end
|
|
1350
|
+
end
|
|
1351
|
+
|
|
1265
1352
|
# unit tests for repos_user_list
|
|
1266
1353
|
# Get a list of all repositories associated with current user.
|
|
1267
1354
|
# Get a list of all repositories associated with current user.
|
|
@@ -50,6 +50,12 @@ describe 'SwiftPackageUploadRequest' do
|
|
|
50
50
|
end
|
|
51
51
|
end
|
|
52
52
|
|
|
53
|
+
describe 'test attribute "name"' do
|
|
54
|
+
it 'should work' do
|
|
55
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
56
|
+
end
|
|
57
|
+
end
|
|
58
|
+
|
|
53
59
|
describe 'test attribute "package_file"' do
|
|
54
60
|
it 'should work' do
|
|
55
61
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Cloudsmith API (v1)
|
|
3
|
+
|
|
4
|
+
#The API to the Cloudsmith Service
|
|
5
|
+
|
|
6
|
+
OpenAPI spec version: v1
|
|
7
|
+
Contact: support@cloudsmith.io
|
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
+
Swagger Codegen version: 2.4.26
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
require 'date'
|
|
16
|
+
|
|
17
|
+
# Unit tests for CloudsmithApi::SwiftUpstreamRequestPatch
|
|
18
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe 'SwiftUpstreamRequestPatch' do
|
|
21
|
+
before do
|
|
22
|
+
# run before each test
|
|
23
|
+
@instance = CloudsmithApi::SwiftUpstreamRequestPatch.new
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
after do
|
|
27
|
+
# run after each test
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test an instance of SwiftUpstreamRequestPatch' do
|
|
31
|
+
it 'should create an instance of SwiftUpstreamRequestPatch' do
|
|
32
|
+
expect(@instance).to be_instance_of(CloudsmithApi::SwiftUpstreamRequestPatch)
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
describe 'test attribute "auth_mode"' do
|
|
36
|
+
it 'should work' do
|
|
37
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
38
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["None", "Username and Password"])
|
|
39
|
+
# validator.allowable_values.each do |value|
|
|
40
|
+
# expect { @instance.auth_mode = value }.not_to raise_error
|
|
41
|
+
# end
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
describe 'test attribute "auth_secret"' do
|
|
46
|
+
it 'should work' do
|
|
47
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
48
|
+
end
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
describe 'test attribute "auth_username"' do
|
|
52
|
+
it 'should work' do
|
|
53
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
54
|
+
end
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
describe 'test attribute "extra_header_1"' do
|
|
58
|
+
it 'should work' do
|
|
59
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
60
|
+
end
|
|
61
|
+
end
|
|
62
|
+
|
|
63
|
+
describe 'test attribute "extra_header_2"' do
|
|
64
|
+
it 'should work' do
|
|
65
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
66
|
+
end
|
|
67
|
+
end
|
|
68
|
+
|
|
69
|
+
describe 'test attribute "extra_value_1"' do
|
|
70
|
+
it 'should work' do
|
|
71
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
72
|
+
end
|
|
73
|
+
end
|
|
74
|
+
|
|
75
|
+
describe 'test attribute "extra_value_2"' do
|
|
76
|
+
it 'should work' do
|
|
77
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
78
|
+
end
|
|
79
|
+
end
|
|
80
|
+
|
|
81
|
+
describe 'test attribute "is_active"' do
|
|
82
|
+
it 'should work' do
|
|
83
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
84
|
+
end
|
|
85
|
+
end
|
|
86
|
+
|
|
87
|
+
describe 'test attribute "mode"' do
|
|
88
|
+
it 'should work' do
|
|
89
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
90
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["Proxy Only"])
|
|
91
|
+
# validator.allowable_values.each do |value|
|
|
92
|
+
# expect { @instance.mode = value }.not_to raise_error
|
|
93
|
+
# end
|
|
94
|
+
end
|
|
95
|
+
end
|
|
96
|
+
|
|
97
|
+
describe 'test attribute "name"' do
|
|
98
|
+
it 'should work' do
|
|
99
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
100
|
+
end
|
|
101
|
+
end
|
|
102
|
+
|
|
103
|
+
describe 'test attribute "priority"' do
|
|
104
|
+
it 'should work' do
|
|
105
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
106
|
+
end
|
|
107
|
+
end
|
|
108
|
+
|
|
109
|
+
describe 'test attribute "upstream_url"' do
|
|
110
|
+
it 'should work' do
|
|
111
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
112
|
+
end
|
|
113
|
+
end
|
|
114
|
+
|
|
115
|
+
describe 'test attribute "verify_ssl"' do
|
|
116
|
+
it 'should work' do
|
|
117
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
118
|
+
end
|
|
119
|
+
end
|
|
120
|
+
|
|
121
|
+
end
|