cloudsmith-api 2.0.27 → 2.0.29
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 +1 -1
- data/README.md +4 -4
- data/build.json +1 -1
- data/docs/ConnectedRepository.md +3 -1
- data/docs/ConnectedRepositoryRequest.md +1 -1
- data/docs/ConnectedRepositoryRequestPatch.md +1 -1
- data/docs/FormatSupportUpstream.md +1 -0
- data/docs/OrganizationSAMLAuth.md +2 -0
- data/docs/OrganizationSAMLAuthRequestPatch.md +2 -0
- data/docs/OrgsApi.md +3 -1
- data/docs/PackagesApi.md +22 -6
- data/docs/ReposApi.md +2 -2
- data/docs/Repository.md +1 -0
- data/docs/RepositoryCreate.md +1 -0
- data/docs/RepositoryEd25519Key.md +1 -0
- data/lib/cloudsmith-api/api/orgs_api.rb +3 -0
- data/lib/cloudsmith-api/api/packages_api.rb +15 -0
- data/lib/cloudsmith-api/api/repos_api.rb +2 -2
- data/lib/cloudsmith-api/models/cargo_upstream.rb +2 -2
- data/lib/cloudsmith-api/models/cargo_upstream_request.rb +2 -2
- data/lib/cloudsmith-api/models/cargo_upstream_request_patch.rb +2 -2
- data/lib/cloudsmith-api/models/composer_upstream.rb +2 -2
- data/lib/cloudsmith-api/models/composer_upstream_request.rb +2 -2
- data/lib/cloudsmith-api/models/composer_upstream_request_patch.rb +2 -2
- data/lib/cloudsmith-api/models/conda_upstream.rb +2 -2
- data/lib/cloudsmith-api/models/conda_upstream_request.rb +2 -2
- data/lib/cloudsmith-api/models/conda_upstream_request_patch.rb +2 -2
- data/lib/cloudsmith-api/models/connected_repository.rb +57 -2
- data/lib/cloudsmith-api/models/connected_repository_request.rb +1 -1
- data/lib/cloudsmith-api/models/connected_repository_request_patch.rb +1 -1
- data/lib/cloudsmith-api/models/cran_upstream.rb +2 -2
- data/lib/cloudsmith-api/models/cran_upstream_request.rb +2 -2
- data/lib/cloudsmith-api/models/cran_upstream_request_patch.rb +2 -2
- data/lib/cloudsmith-api/models/dart_upstream.rb +2 -2
- data/lib/cloudsmith-api/models/dart_upstream_request.rb +2 -2
- data/lib/cloudsmith-api/models/dart_upstream_request_patch.rb +2 -2
- data/lib/cloudsmith-api/models/deb_upstream.rb +2 -2
- data/lib/cloudsmith-api/models/deb_upstream_request.rb +2 -2
- data/lib/cloudsmith-api/models/deb_upstream_request_patch.rb +2 -2
- data/lib/cloudsmith-api/models/format_support_upstream.rb +16 -1
- data/lib/cloudsmith-api/models/generic_upstream.rb +2 -2
- data/lib/cloudsmith-api/models/generic_upstream_request.rb +2 -2
- data/lib/cloudsmith-api/models/generic_upstream_request_patch.rb +2 -2
- data/lib/cloudsmith-api/models/helm_upstream.rb +2 -2
- data/lib/cloudsmith-api/models/helm_upstream_request.rb +2 -2
- data/lib/cloudsmith-api/models/helm_upstream_request_patch.rb +2 -2
- data/lib/cloudsmith-api/models/hex_upstream.rb +2 -2
- data/lib/cloudsmith-api/models/hex_upstream_request.rb +2 -2
- data/lib/cloudsmith-api/models/hex_upstream_request_patch.rb +2 -2
- data/lib/cloudsmith-api/models/npm_upstream.rb +2 -2
- data/lib/cloudsmith-api/models/npm_upstream_request.rb +2 -2
- data/lib/cloudsmith-api/models/npm_upstream_request_patch.rb +2 -2
- data/lib/cloudsmith-api/models/nuget_upstream.rb +2 -2
- data/lib/cloudsmith-api/models/nuget_upstream_request.rb +2 -2
- data/lib/cloudsmith-api/models/nuget_upstream_request_patch.rb +2 -2
- data/lib/cloudsmith-api/models/organization_saml_auth.rb +24 -4
- data/lib/cloudsmith-api/models/organization_saml_auth_request_patch.rb +24 -4
- data/lib/cloudsmith-api/models/python_upstream.rb +2 -2
- data/lib/cloudsmith-api/models/python_upstream_request.rb +2 -2
- data/lib/cloudsmith-api/models/python_upstream_request_patch.rb +2 -2
- data/lib/cloudsmith-api/models/repository.rb +11 -1
- data/lib/cloudsmith-api/models/repository_create.rb +11 -1
- data/lib/cloudsmith-api/models/repository_ed25519_key.rb +14 -4
- data/lib/cloudsmith-api/version.rb +1 -1
- data/spec/api/orgs_api_spec.rb +1 -0
- data/spec/api/packages_api_spec.rb +5 -0
- data/spec/api/repos_api_spec.rb +1 -1
- data/spec/models/cargo_upstream_request_patch_spec.rb +1 -1
- data/spec/models/cargo_upstream_request_spec.rb +1 -1
- data/spec/models/cargo_upstream_spec.rb +1 -1
- data/spec/models/composer_upstream_request_patch_spec.rb +1 -1
- data/spec/models/composer_upstream_request_spec.rb +1 -1
- data/spec/models/composer_upstream_spec.rb +1 -1
- data/spec/models/conda_upstream_request_patch_spec.rb +1 -1
- data/spec/models/conda_upstream_request_spec.rb +1 -1
- data/spec/models/conda_upstream_spec.rb +1 -1
- data/spec/models/connected_repository_spec.rb +16 -0
- data/spec/models/cran_upstream_request_patch_spec.rb +1 -1
- data/spec/models/cran_upstream_request_spec.rb +1 -1
- data/spec/models/cran_upstream_spec.rb +1 -1
- data/spec/models/dart_upstream_request_patch_spec.rb +1 -1
- data/spec/models/dart_upstream_request_spec.rb +1 -1
- data/spec/models/dart_upstream_spec.rb +1 -1
- data/spec/models/deb_upstream_request_patch_spec.rb +1 -1
- data/spec/models/deb_upstream_request_spec.rb +1 -1
- data/spec/models/deb_upstream_spec.rb +1 -1
- data/spec/models/format_support_upstream_spec.rb +6 -0
- data/spec/models/generic_upstream_request_patch_spec.rb +1 -1
- data/spec/models/generic_upstream_request_spec.rb +1 -1
- data/spec/models/generic_upstream_spec.rb +1 -1
- data/spec/models/helm_upstream_request_patch_spec.rb +1 -1
- data/spec/models/helm_upstream_request_spec.rb +1 -1
- data/spec/models/helm_upstream_spec.rb +1 -1
- data/spec/models/hex_upstream_request_patch_spec.rb +1 -1
- data/spec/models/hex_upstream_request_spec.rb +1 -1
- data/spec/models/hex_upstream_spec.rb +1 -1
- data/spec/models/npm_upstream_request_patch_spec.rb +1 -1
- data/spec/models/npm_upstream_request_spec.rb +1 -1
- data/spec/models/npm_upstream_spec.rb +1 -1
- data/spec/models/nuget_upstream_request_patch_spec.rb +1 -1
- data/spec/models/nuget_upstream_request_spec.rb +1 -1
- data/spec/models/nuget_upstream_spec.rb +1 -1
- data/spec/models/organization_saml_auth_request_patch_spec.rb +12 -0
- data/spec/models/organization_saml_auth_spec.rb +12 -0
- data/spec/models/python_upstream_request_patch_spec.rb +1 -1
- data/spec/models/python_upstream_request_spec.rb +1 -1
- data/spec/models/python_upstream_spec.rb +1 -1
- data/spec/models/repository_create_spec.rb +6 -0
- data/spec/models/repository_ed25519_key_spec.rb +6 -0
- data/spec/models/repository_spec.rb +6 -0
- data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/autotest-fsevent-0.3.2/gem_make.out +1 -1
- data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/bigdecimal-4.1.2/gem_make.out +2 -2
- data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/bigdecimal-4.1.2/mkmf.log +4 -4
- data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/ffi-1.17.4/gem_make.out +2 -2
- data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/ffi-1.17.4/mkmf.log +1 -1
- data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/json-2.7.6/gem_make.out +2 -2
- data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/json-2.7.6/mkmf.log +1 -1
- data/vendor/bundle/ruby/2.6.0/gems/bigdecimal-4.1.2/ext/bigdecimal/Makefile +2 -2
- data/vendor/bundle/ruby/2.6.0/gems/ffi-1.17.4/ext/ffi_c/Makefile +2 -2
- data/vendor/bundle/ruby/2.6.0/gems/json-2.7.6/ext/json/ext/generator/Makefile +2 -2
- data/vendor/bundle/ruby/2.6.0/gems/json-2.7.6/ext/json/ext/parser/Makefile +2 -2
- metadata +2 -2
|
@@ -198,7 +198,7 @@ class CondaUpstreamRequest
|
|
|
198
198
|
def valid?
|
|
199
199
|
auth_mode_validator = EnumAttributeValidator.new('String', ['None', 'Username and Password'])
|
|
200
200
|
return false unless auth_mode_validator.valid?(@auth_mode)
|
|
201
|
-
mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy'])
|
|
201
|
+
mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only'])
|
|
202
202
|
return false unless mode_validator.valid?(@mode)
|
|
203
203
|
return false if @name.nil?
|
|
204
204
|
return false if @upstream_url.nil?
|
|
@@ -218,7 +218,7 @@ class CondaUpstreamRequest
|
|
|
218
218
|
# Custom attribute writer method checking allowed values (enum).
|
|
219
219
|
# @param [Object] mode Object to be assigned
|
|
220
220
|
def mode=(mode)
|
|
221
|
-
validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy'])
|
|
221
|
+
validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only'])
|
|
222
222
|
unless validator.valid?(mode)
|
|
223
223
|
fail ArgumentError, 'invalid value for "mode", must be one of #{validator.allowable_values}.'
|
|
224
224
|
end
|
|
@@ -190,7 +190,7 @@ class CondaUpstreamRequestPatch
|
|
|
190
190
|
def valid?
|
|
191
191
|
auth_mode_validator = EnumAttributeValidator.new('String', ['None', 'Username and Password'])
|
|
192
192
|
return false unless auth_mode_validator.valid?(@auth_mode)
|
|
193
|
-
mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy'])
|
|
193
|
+
mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only'])
|
|
194
194
|
return false unless mode_validator.valid?(@mode)
|
|
195
195
|
true
|
|
196
196
|
end
|
|
@@ -208,7 +208,7 @@ class CondaUpstreamRequestPatch
|
|
|
208
208
|
# Custom attribute writer method checking allowed values (enum).
|
|
209
209
|
# @param [Object] mode Object to be assigned
|
|
210
210
|
def mode=(mode)
|
|
211
|
-
validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy'])
|
|
211
|
+
validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only'])
|
|
212
212
|
unless validator.valid?(mode)
|
|
213
213
|
fail ArgumentError, 'invalid value for "mode", must be one of #{validator.allowable_values}.'
|
|
214
214
|
end
|
|
@@ -17,6 +17,11 @@ class ConnectedRepository
|
|
|
17
17
|
# The date and time when the connection was created.
|
|
18
18
|
attr_accessor :created_at
|
|
19
19
|
|
|
20
|
+
attr_accessor :disable_reason
|
|
21
|
+
|
|
22
|
+
# Human-readable explanation of why this connection is disabled.
|
|
23
|
+
attr_accessor :disable_reason_text
|
|
24
|
+
|
|
20
25
|
attr_accessor :is_active
|
|
21
26
|
|
|
22
27
|
# Repositories are checked in ascending order (starting at 1). If multiple repositories have the same priority, the oldest one is used first.
|
|
@@ -27,10 +32,34 @@ class ConnectedRepository
|
|
|
27
32
|
# The slug of the target repository to connect to.
|
|
28
33
|
attr_accessor :target_repository
|
|
29
34
|
|
|
35
|
+
class EnumAttributeValidator
|
|
36
|
+
attr_reader :datatype
|
|
37
|
+
attr_reader :allowable_values
|
|
38
|
+
|
|
39
|
+
def initialize(datatype, allowable_values)
|
|
40
|
+
@allowable_values = allowable_values.map do |value|
|
|
41
|
+
case datatype.to_s
|
|
42
|
+
when /Integer/i
|
|
43
|
+
value.to_i
|
|
44
|
+
when /Float/i
|
|
45
|
+
value.to_f
|
|
46
|
+
else
|
|
47
|
+
value
|
|
48
|
+
end
|
|
49
|
+
end
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
def valid?(value)
|
|
53
|
+
!value || allowable_values.include?(value)
|
|
54
|
+
end
|
|
55
|
+
end
|
|
56
|
+
|
|
30
57
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
31
58
|
def self.attribute_map
|
|
32
59
|
{
|
|
33
60
|
:'created_at' => :'created_at',
|
|
61
|
+
:'disable_reason' => :'disable_reason',
|
|
62
|
+
:'disable_reason_text' => :'disable_reason_text',
|
|
34
63
|
:'is_active' => :'is_active',
|
|
35
64
|
:'priority' => :'priority',
|
|
36
65
|
:'slug_perm' => :'slug_perm',
|
|
@@ -42,6 +71,8 @@ class ConnectedRepository
|
|
|
42
71
|
def self.swagger_types
|
|
43
72
|
{
|
|
44
73
|
:'created_at' => :'DateTime',
|
|
74
|
+
:'disable_reason' => :'String',
|
|
75
|
+
:'disable_reason_text' => :'String',
|
|
45
76
|
:'is_active' => :'BOOLEAN',
|
|
46
77
|
:'priority' => :'Integer',
|
|
47
78
|
:'slug_perm' => :'String',
|
|
@@ -61,10 +92,20 @@ class ConnectedRepository
|
|
|
61
92
|
self.created_at = attributes[:'created_at']
|
|
62
93
|
end
|
|
63
94
|
|
|
95
|
+
if attributes.has_key?(:'disable_reason')
|
|
96
|
+
self.disable_reason = attributes[:'disable_reason']
|
|
97
|
+
else
|
|
98
|
+
self.disable_reason = 'N/A'
|
|
99
|
+
end
|
|
100
|
+
|
|
101
|
+
if attributes.has_key?(:'disable_reason_text')
|
|
102
|
+
self.disable_reason_text = attributes[:'disable_reason_text']
|
|
103
|
+
end
|
|
104
|
+
|
|
64
105
|
if attributes.has_key?(:'is_active')
|
|
65
106
|
self.is_active = attributes[:'is_active']
|
|
66
107
|
else
|
|
67
|
-
self.is_active =
|
|
108
|
+
self.is_active = false
|
|
68
109
|
end
|
|
69
110
|
|
|
70
111
|
if attributes.has_key?(:'priority')
|
|
@@ -94,16 +135,30 @@ class ConnectedRepository
|
|
|
94
135
|
# Check to see if the all the properties in the model are valid
|
|
95
136
|
# @return true if the model is valid
|
|
96
137
|
def valid?
|
|
138
|
+
disable_reason_validator = EnumAttributeValidator.new('String', ['N/A', 'The connection contains a circular reference'])
|
|
139
|
+
return false unless disable_reason_validator.valid?(@disable_reason)
|
|
97
140
|
return false if @target_repository.nil?
|
|
98
141
|
true
|
|
99
142
|
end
|
|
100
143
|
|
|
144
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
145
|
+
# @param [Object] disable_reason Object to be assigned
|
|
146
|
+
def disable_reason=(disable_reason)
|
|
147
|
+
validator = EnumAttributeValidator.new('String', ['N/A', 'The connection contains a circular reference'])
|
|
148
|
+
unless validator.valid?(disable_reason)
|
|
149
|
+
fail ArgumentError, 'invalid value for "disable_reason", must be one of #{validator.allowable_values}.'
|
|
150
|
+
end
|
|
151
|
+
@disable_reason = disable_reason
|
|
152
|
+
end
|
|
153
|
+
|
|
101
154
|
# Checks equality by comparing each attribute.
|
|
102
155
|
# @param [Object] Object to be compared
|
|
103
156
|
def ==(o)
|
|
104
157
|
return true if self.equal?(o)
|
|
105
158
|
self.class == o.class &&
|
|
106
159
|
created_at == o.created_at &&
|
|
160
|
+
disable_reason == o.disable_reason &&
|
|
161
|
+
disable_reason_text == o.disable_reason_text &&
|
|
107
162
|
is_active == o.is_active &&
|
|
108
163
|
priority == o.priority &&
|
|
109
164
|
slug_perm == o.slug_perm &&
|
|
@@ -119,7 +174,7 @@ class ConnectedRepository
|
|
|
119
174
|
# Calculates hash code according to all attributes.
|
|
120
175
|
# @return [Fixnum] Hash code
|
|
121
176
|
def hash
|
|
122
|
-
[created_at, is_active, priority, slug_perm, target_repository].hash
|
|
177
|
+
[created_at, disable_reason, disable_reason_text, is_active, priority, slug_perm, target_repository].hash
|
|
123
178
|
end
|
|
124
179
|
|
|
125
180
|
# Builds the object from hash
|
|
@@ -307,7 +307,7 @@ class CranUpstream
|
|
|
307
307
|
return false unless auth_mode_validator.valid?(@auth_mode)
|
|
308
308
|
disable_reason_validator = EnumAttributeValidator.new('String', ['N/A', 'Upstream points to its own repository', 'Missing upstream source', 'RSA key did not verify the upstream\'s APKINDEX signature', 'Upstream was disabled by request of user'])
|
|
309
309
|
return false unless disable_reason_validator.valid?(@disable_reason)
|
|
310
|
-
mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy'])
|
|
310
|
+
mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only'])
|
|
311
311
|
return false unless mode_validator.valid?(@mode)
|
|
312
312
|
return false if @name.nil?
|
|
313
313
|
return false if @upstream_url.nil?
|
|
@@ -337,7 +337,7 @@ class CranUpstream
|
|
|
337
337
|
# Custom attribute writer method checking allowed values (enum).
|
|
338
338
|
# @param [Object] mode Object to be assigned
|
|
339
339
|
def mode=(mode)
|
|
340
|
-
validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy'])
|
|
340
|
+
validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only'])
|
|
341
341
|
unless validator.valid?(mode)
|
|
342
342
|
fail ArgumentError, 'invalid value for "mode", must be one of #{validator.allowable_values}.'
|
|
343
343
|
end
|
|
@@ -198,7 +198,7 @@ class CranUpstreamRequest
|
|
|
198
198
|
def valid?
|
|
199
199
|
auth_mode_validator = EnumAttributeValidator.new('String', ['None', 'Username and Password'])
|
|
200
200
|
return false unless auth_mode_validator.valid?(@auth_mode)
|
|
201
|
-
mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy'])
|
|
201
|
+
mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only'])
|
|
202
202
|
return false unless mode_validator.valid?(@mode)
|
|
203
203
|
return false if @name.nil?
|
|
204
204
|
return false if @upstream_url.nil?
|
|
@@ -218,7 +218,7 @@ class CranUpstreamRequest
|
|
|
218
218
|
# Custom attribute writer method checking allowed values (enum).
|
|
219
219
|
# @param [Object] mode Object to be assigned
|
|
220
220
|
def mode=(mode)
|
|
221
|
-
validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy'])
|
|
221
|
+
validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only'])
|
|
222
222
|
unless validator.valid?(mode)
|
|
223
223
|
fail ArgumentError, 'invalid value for "mode", must be one of #{validator.allowable_values}.'
|
|
224
224
|
end
|
|
@@ -190,7 +190,7 @@ class CranUpstreamRequestPatch
|
|
|
190
190
|
def valid?
|
|
191
191
|
auth_mode_validator = EnumAttributeValidator.new('String', ['None', 'Username and Password'])
|
|
192
192
|
return false unless auth_mode_validator.valid?(@auth_mode)
|
|
193
|
-
mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy'])
|
|
193
|
+
mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only'])
|
|
194
194
|
return false unless mode_validator.valid?(@mode)
|
|
195
195
|
true
|
|
196
196
|
end
|
|
@@ -208,7 +208,7 @@ class CranUpstreamRequestPatch
|
|
|
208
208
|
# Custom attribute writer method checking allowed values (enum).
|
|
209
209
|
# @param [Object] mode Object to be assigned
|
|
210
210
|
def mode=(mode)
|
|
211
|
-
validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy'])
|
|
211
|
+
validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only'])
|
|
212
212
|
unless validator.valid?(mode)
|
|
213
213
|
fail ArgumentError, 'invalid value for "mode", must be one of #{validator.allowable_values}.'
|
|
214
214
|
end
|
|
@@ -307,7 +307,7 @@ class DartUpstream
|
|
|
307
307
|
return false unless auth_mode_validator.valid?(@auth_mode)
|
|
308
308
|
disable_reason_validator = EnumAttributeValidator.new('String', ['N/A', 'Upstream points to its own repository', 'Missing upstream source', 'RSA key did not verify the upstream\'s APKINDEX signature', 'Upstream was disabled by request of user'])
|
|
309
309
|
return false unless disable_reason_validator.valid?(@disable_reason)
|
|
310
|
-
mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy'])
|
|
310
|
+
mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only'])
|
|
311
311
|
return false unless mode_validator.valid?(@mode)
|
|
312
312
|
return false if @name.nil?
|
|
313
313
|
return false if @upstream_url.nil?
|
|
@@ -337,7 +337,7 @@ class DartUpstream
|
|
|
337
337
|
# Custom attribute writer method checking allowed values (enum).
|
|
338
338
|
# @param [Object] mode Object to be assigned
|
|
339
339
|
def mode=(mode)
|
|
340
|
-
validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy'])
|
|
340
|
+
validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only'])
|
|
341
341
|
unless validator.valid?(mode)
|
|
342
342
|
fail ArgumentError, 'invalid value for "mode", must be one of #{validator.allowable_values}.'
|
|
343
343
|
end
|
|
@@ -198,7 +198,7 @@ class DartUpstreamRequest
|
|
|
198
198
|
def valid?
|
|
199
199
|
auth_mode_validator = EnumAttributeValidator.new('String', ['None', 'Username and Password'])
|
|
200
200
|
return false unless auth_mode_validator.valid?(@auth_mode)
|
|
201
|
-
mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy'])
|
|
201
|
+
mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only'])
|
|
202
202
|
return false unless mode_validator.valid?(@mode)
|
|
203
203
|
return false if @name.nil?
|
|
204
204
|
return false if @upstream_url.nil?
|
|
@@ -218,7 +218,7 @@ class DartUpstreamRequest
|
|
|
218
218
|
# Custom attribute writer method checking allowed values (enum).
|
|
219
219
|
# @param [Object] mode Object to be assigned
|
|
220
220
|
def mode=(mode)
|
|
221
|
-
validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy'])
|
|
221
|
+
validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only'])
|
|
222
222
|
unless validator.valid?(mode)
|
|
223
223
|
fail ArgumentError, 'invalid value for "mode", must be one of #{validator.allowable_values}.'
|
|
224
224
|
end
|
|
@@ -190,7 +190,7 @@ class DartUpstreamRequestPatch
|
|
|
190
190
|
def valid?
|
|
191
191
|
auth_mode_validator = EnumAttributeValidator.new('String', ['None', 'Username and Password'])
|
|
192
192
|
return false unless auth_mode_validator.valid?(@auth_mode)
|
|
193
|
-
mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy'])
|
|
193
|
+
mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only'])
|
|
194
194
|
return false unless mode_validator.valid?(@mode)
|
|
195
195
|
true
|
|
196
196
|
end
|
|
@@ -208,7 +208,7 @@ class DartUpstreamRequestPatch
|
|
|
208
208
|
# Custom attribute writer method checking allowed values (enum).
|
|
209
209
|
# @param [Object] mode Object to be assigned
|
|
210
210
|
def mode=(mode)
|
|
211
|
-
validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy'])
|
|
211
|
+
validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only'])
|
|
212
212
|
unless validator.valid?(mode)
|
|
213
213
|
fail ArgumentError, 'invalid value for "mode", must be one of #{validator.allowable_values}.'
|
|
214
214
|
end
|
|
@@ -400,7 +400,7 @@ class DebUpstream
|
|
|
400
400
|
return false if @distro_versions.nil?
|
|
401
401
|
gpg_verification_validator = EnumAttributeValidator.new('String', ['Allow All', 'Warn on Invalid', 'Reject Invalid'])
|
|
402
402
|
return false unless gpg_verification_validator.valid?(@gpg_verification)
|
|
403
|
-
mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy'])
|
|
403
|
+
mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only'])
|
|
404
404
|
return false unless mode_validator.valid?(@mode)
|
|
405
405
|
return false if @name.nil?
|
|
406
406
|
return false if @upstream_url.nil?
|
|
@@ -442,7 +442,7 @@ class DebUpstream
|
|
|
442
442
|
# Custom attribute writer method checking allowed values (enum).
|
|
443
443
|
# @param [Object] mode Object to be assigned
|
|
444
444
|
def mode=(mode)
|
|
445
|
-
validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy'])
|
|
445
|
+
validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only'])
|
|
446
446
|
unless validator.valid?(mode)
|
|
447
447
|
fail ArgumentError, 'invalid value for "mode", must be one of #{validator.allowable_values}.'
|
|
448
448
|
end
|
|
@@ -272,7 +272,7 @@ class DebUpstreamRequest
|
|
|
272
272
|
return false if @distro_versions.nil?
|
|
273
273
|
gpg_verification_validator = EnumAttributeValidator.new('String', ['Allow All', 'Warn on Invalid', 'Reject Invalid'])
|
|
274
274
|
return false unless gpg_verification_validator.valid?(@gpg_verification)
|
|
275
|
-
mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy'])
|
|
275
|
+
mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only'])
|
|
276
276
|
return false unless mode_validator.valid?(@mode)
|
|
277
277
|
return false if @name.nil?
|
|
278
278
|
return false if @upstream_url.nil?
|
|
@@ -302,7 +302,7 @@ class DebUpstreamRequest
|
|
|
302
302
|
# Custom attribute writer method checking allowed values (enum).
|
|
303
303
|
# @param [Object] mode Object to be assigned
|
|
304
304
|
def mode=(mode)
|
|
305
|
-
validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy'])
|
|
305
|
+
validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only'])
|
|
306
306
|
unless validator.valid?(mode)
|
|
307
307
|
fail ArgumentError, 'invalid value for "mode", must be one of #{validator.allowable_values}.'
|
|
308
308
|
end
|
|
@@ -259,7 +259,7 @@ class DebUpstreamRequestPatch
|
|
|
259
259
|
return false unless auth_mode_validator.valid?(@auth_mode)
|
|
260
260
|
gpg_verification_validator = EnumAttributeValidator.new('String', ['Allow All', 'Warn on Invalid', 'Reject Invalid'])
|
|
261
261
|
return false unless gpg_verification_validator.valid?(@gpg_verification)
|
|
262
|
-
mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy'])
|
|
262
|
+
mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only'])
|
|
263
263
|
return false unless mode_validator.valid?(@mode)
|
|
264
264
|
true
|
|
265
265
|
end
|
|
@@ -287,7 +287,7 @@ class DebUpstreamRequestPatch
|
|
|
287
287
|
# Custom attribute writer method checking allowed values (enum).
|
|
288
288
|
# @param [Object] mode Object to be assigned
|
|
289
289
|
def mode=(mode)
|
|
290
|
-
validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy'])
|
|
290
|
+
validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only'])
|
|
291
291
|
unless validator.valid?(mode)
|
|
292
292
|
fail ArgumentError, 'invalid value for "mode", must be one of #{validator.allowable_values}.'
|
|
293
293
|
end
|
|
@@ -18,6 +18,9 @@ class FormatSupportUpstream
|
|
|
18
18
|
# The authentication modes supported by the upstream format
|
|
19
19
|
attr_accessor :auth_modes
|
|
20
20
|
|
|
21
|
+
# If true the upstream format supports cache-only mode.
|
|
22
|
+
attr_accessor :cache_only
|
|
23
|
+
|
|
21
24
|
# If true the upstream format supports caching
|
|
22
25
|
attr_accessor :caching
|
|
23
26
|
|
|
@@ -62,6 +65,7 @@ class FormatSupportUpstream
|
|
|
62
65
|
def self.attribute_map
|
|
63
66
|
{
|
|
64
67
|
:'auth_modes' => :'auth_modes',
|
|
68
|
+
:'cache_only' => :'cache_only',
|
|
65
69
|
:'caching' => :'caching',
|
|
66
70
|
:'indexing' => :'indexing',
|
|
67
71
|
:'indexing_behavior' => :'indexing_behavior',
|
|
@@ -75,6 +79,7 @@ class FormatSupportUpstream
|
|
|
75
79
|
def self.swagger_types
|
|
76
80
|
{
|
|
77
81
|
:'auth_modes' => :'Array<String>',
|
|
82
|
+
:'cache_only' => :'BOOLEAN',
|
|
78
83
|
:'caching' => :'BOOLEAN',
|
|
79
84
|
:'indexing' => :'BOOLEAN',
|
|
80
85
|
:'indexing_behavior' => :'String',
|
|
@@ -98,6 +103,10 @@ class FormatSupportUpstream
|
|
|
98
103
|
end
|
|
99
104
|
end
|
|
100
105
|
|
|
106
|
+
if attributes.has_key?(:'cache_only')
|
|
107
|
+
self.cache_only = attributes[:'cache_only']
|
|
108
|
+
end
|
|
109
|
+
|
|
101
110
|
if attributes.has_key?(:'caching')
|
|
102
111
|
self.caching = attributes[:'caching']
|
|
103
112
|
end
|
|
@@ -135,6 +144,10 @@ class FormatSupportUpstream
|
|
|
135
144
|
invalid_properties.push('invalid value for "auth_modes", auth_modes cannot be nil.')
|
|
136
145
|
end
|
|
137
146
|
|
|
147
|
+
if @cache_only.nil?
|
|
148
|
+
invalid_properties.push('invalid value for "cache_only", cache_only cannot be nil.')
|
|
149
|
+
end
|
|
150
|
+
|
|
138
151
|
if @caching.nil?
|
|
139
152
|
invalid_properties.push('invalid value for "caching", caching cannot be nil.')
|
|
140
153
|
end
|
|
@@ -158,6 +171,7 @@ class FormatSupportUpstream
|
|
|
158
171
|
# @return true if the model is valid
|
|
159
172
|
def valid?
|
|
160
173
|
return false if @auth_modes.nil?
|
|
174
|
+
return false if @cache_only.nil?
|
|
161
175
|
return false if @caching.nil?
|
|
162
176
|
return false if @indexing.nil?
|
|
163
177
|
indexing_behavior_validator = EnumAttributeValidator.new('String', ['Unsupported', 'Ahead-of-time (static) indexing', 'Just-in-time (dynamic) indexing'])
|
|
@@ -195,6 +209,7 @@ class FormatSupportUpstream
|
|
|
195
209
|
return true if self.equal?(o)
|
|
196
210
|
self.class == o.class &&
|
|
197
211
|
auth_modes == o.auth_modes &&
|
|
212
|
+
cache_only == o.cache_only &&
|
|
198
213
|
caching == o.caching &&
|
|
199
214
|
indexing == o.indexing &&
|
|
200
215
|
indexing_behavior == o.indexing_behavior &&
|
|
@@ -212,7 +227,7 @@ class FormatSupportUpstream
|
|
|
212
227
|
# Calculates hash code according to all attributes.
|
|
213
228
|
# @return [Fixnum] Hash code
|
|
214
229
|
def hash
|
|
215
|
-
[auth_modes, caching, indexing, indexing_behavior, proxying, signature_verification, trust].hash
|
|
230
|
+
[auth_modes, cache_only, caching, indexing, indexing_behavior, proxying, signature_verification, trust].hash
|
|
216
231
|
end
|
|
217
232
|
|
|
218
233
|
# Builds the object from hash
|
|
@@ -316,7 +316,7 @@ class GenericUpstream
|
|
|
316
316
|
return false unless auth_mode_validator.valid?(@auth_mode)
|
|
317
317
|
disable_reason_validator = EnumAttributeValidator.new('String', ['N/A', 'Upstream points to its own repository', 'Missing upstream source', 'RSA key did not verify the upstream\'s APKINDEX signature', 'Upstream was disabled by request of user'])
|
|
318
318
|
return false unless disable_reason_validator.valid?(@disable_reason)
|
|
319
|
-
mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy'])
|
|
319
|
+
mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only'])
|
|
320
320
|
return false unless mode_validator.valid?(@mode)
|
|
321
321
|
return false if @name.nil?
|
|
322
322
|
return false if @upstream_url.nil?
|
|
@@ -346,7 +346,7 @@ class GenericUpstream
|
|
|
346
346
|
# Custom attribute writer method checking allowed values (enum).
|
|
347
347
|
# @param [Object] mode Object to be assigned
|
|
348
348
|
def mode=(mode)
|
|
349
|
-
validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy'])
|
|
349
|
+
validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only'])
|
|
350
350
|
unless validator.valid?(mode)
|
|
351
351
|
fail ArgumentError, 'invalid value for "mode", must be one of #{validator.allowable_values}.'
|
|
352
352
|
end
|
|
@@ -207,7 +207,7 @@ class GenericUpstreamRequest
|
|
|
207
207
|
def valid?
|
|
208
208
|
auth_mode_validator = EnumAttributeValidator.new('String', ['None', 'Username and Password', 'Token'])
|
|
209
209
|
return false unless auth_mode_validator.valid?(@auth_mode)
|
|
210
|
-
mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy'])
|
|
210
|
+
mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only'])
|
|
211
211
|
return false unless mode_validator.valid?(@mode)
|
|
212
212
|
return false if @name.nil?
|
|
213
213
|
return false if @upstream_url.nil?
|
|
@@ -227,7 +227,7 @@ class GenericUpstreamRequest
|
|
|
227
227
|
# Custom attribute writer method checking allowed values (enum).
|
|
228
228
|
# @param [Object] mode Object to be assigned
|
|
229
229
|
def mode=(mode)
|
|
230
|
-
validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy'])
|
|
230
|
+
validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only'])
|
|
231
231
|
unless validator.valid?(mode)
|
|
232
232
|
fail ArgumentError, 'invalid value for "mode", must be one of #{validator.allowable_values}.'
|
|
233
233
|
end
|
|
@@ -199,7 +199,7 @@ class GenericUpstreamRequestPatch
|
|
|
199
199
|
def valid?
|
|
200
200
|
auth_mode_validator = EnumAttributeValidator.new('String', ['None', 'Username and Password', 'Token'])
|
|
201
201
|
return false unless auth_mode_validator.valid?(@auth_mode)
|
|
202
|
-
mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy'])
|
|
202
|
+
mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only'])
|
|
203
203
|
return false unless mode_validator.valid?(@mode)
|
|
204
204
|
true
|
|
205
205
|
end
|
|
@@ -217,7 +217,7 @@ class GenericUpstreamRequestPatch
|
|
|
217
217
|
# Custom attribute writer method checking allowed values (enum).
|
|
218
218
|
# @param [Object] mode Object to be assigned
|
|
219
219
|
def mode=(mode)
|
|
220
|
-
validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy'])
|
|
220
|
+
validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only'])
|
|
221
221
|
unless validator.valid?(mode)
|
|
222
222
|
fail ArgumentError, 'invalid value for "mode", must be one of #{validator.allowable_values}.'
|
|
223
223
|
end
|
|
@@ -307,7 +307,7 @@ class HelmUpstream
|
|
|
307
307
|
return false unless auth_mode_validator.valid?(@auth_mode)
|
|
308
308
|
disable_reason_validator = EnumAttributeValidator.new('String', ['N/A', 'Upstream points to its own repository', 'Missing upstream source', 'RSA key did not verify the upstream\'s APKINDEX signature', 'Upstream was disabled by request of user'])
|
|
309
309
|
return false unless disable_reason_validator.valid?(@disable_reason)
|
|
310
|
-
mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy'])
|
|
310
|
+
mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only'])
|
|
311
311
|
return false unless mode_validator.valid?(@mode)
|
|
312
312
|
return false if @name.nil?
|
|
313
313
|
return false if @upstream_url.nil?
|
|
@@ -337,7 +337,7 @@ class HelmUpstream
|
|
|
337
337
|
# Custom attribute writer method checking allowed values (enum).
|
|
338
338
|
# @param [Object] mode Object to be assigned
|
|
339
339
|
def mode=(mode)
|
|
340
|
-
validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy'])
|
|
340
|
+
validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only'])
|
|
341
341
|
unless validator.valid?(mode)
|
|
342
342
|
fail ArgumentError, 'invalid value for "mode", must be one of #{validator.allowable_values}.'
|
|
343
343
|
end
|
|
@@ -198,7 +198,7 @@ class HelmUpstreamRequest
|
|
|
198
198
|
def valid?
|
|
199
199
|
auth_mode_validator = EnumAttributeValidator.new('String', ['None', 'Username and Password'])
|
|
200
200
|
return false unless auth_mode_validator.valid?(@auth_mode)
|
|
201
|
-
mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy'])
|
|
201
|
+
mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only'])
|
|
202
202
|
return false unless mode_validator.valid?(@mode)
|
|
203
203
|
return false if @name.nil?
|
|
204
204
|
return false if @upstream_url.nil?
|
|
@@ -218,7 +218,7 @@ class HelmUpstreamRequest
|
|
|
218
218
|
# Custom attribute writer method checking allowed values (enum).
|
|
219
219
|
# @param [Object] mode Object to be assigned
|
|
220
220
|
def mode=(mode)
|
|
221
|
-
validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy'])
|
|
221
|
+
validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only'])
|
|
222
222
|
unless validator.valid?(mode)
|
|
223
223
|
fail ArgumentError, 'invalid value for "mode", must be one of #{validator.allowable_values}.'
|
|
224
224
|
end
|
|
@@ -190,7 +190,7 @@ class HelmUpstreamRequestPatch
|
|
|
190
190
|
def valid?
|
|
191
191
|
auth_mode_validator = EnumAttributeValidator.new('String', ['None', 'Username and Password'])
|
|
192
192
|
return false unless auth_mode_validator.valid?(@auth_mode)
|
|
193
|
-
mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy'])
|
|
193
|
+
mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only'])
|
|
194
194
|
return false unless mode_validator.valid?(@mode)
|
|
195
195
|
true
|
|
196
196
|
end
|
|
@@ -208,7 +208,7 @@ class HelmUpstreamRequestPatch
|
|
|
208
208
|
# Custom attribute writer method checking allowed values (enum).
|
|
209
209
|
# @param [Object] mode Object to be assigned
|
|
210
210
|
def mode=(mode)
|
|
211
|
-
validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy'])
|
|
211
|
+
validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only'])
|
|
212
212
|
unless validator.valid?(mode)
|
|
213
213
|
fail ArgumentError, 'invalid value for "mode", must be one of #{validator.allowable_values}.'
|
|
214
214
|
end
|
|
@@ -307,7 +307,7 @@ class HexUpstream
|
|
|
307
307
|
return false unless auth_mode_validator.valid?(@auth_mode)
|
|
308
308
|
disable_reason_validator = EnumAttributeValidator.new('String', ['N/A', 'Upstream points to its own repository', 'Missing upstream source', 'RSA key did not verify the upstream\'s APKINDEX signature', 'Upstream was disabled by request of user'])
|
|
309
309
|
return false unless disable_reason_validator.valid?(@disable_reason)
|
|
310
|
-
mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy'])
|
|
310
|
+
mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only'])
|
|
311
311
|
return false unless mode_validator.valid?(@mode)
|
|
312
312
|
return false if @name.nil?
|
|
313
313
|
return false if @upstream_url.nil?
|
|
@@ -337,7 +337,7 @@ class HexUpstream
|
|
|
337
337
|
# Custom attribute writer method checking allowed values (enum).
|
|
338
338
|
# @param [Object] mode Object to be assigned
|
|
339
339
|
def mode=(mode)
|
|
340
|
-
validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy'])
|
|
340
|
+
validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only'])
|
|
341
341
|
unless validator.valid?(mode)
|
|
342
342
|
fail ArgumentError, 'invalid value for "mode", must be one of #{validator.allowable_values}.'
|
|
343
343
|
end
|
|
@@ -198,7 +198,7 @@ class HexUpstreamRequest
|
|
|
198
198
|
def valid?
|
|
199
199
|
auth_mode_validator = EnumAttributeValidator.new('String', ['None', 'Username and Password'])
|
|
200
200
|
return false unless auth_mode_validator.valid?(@auth_mode)
|
|
201
|
-
mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy'])
|
|
201
|
+
mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only'])
|
|
202
202
|
return false unless mode_validator.valid?(@mode)
|
|
203
203
|
return false if @name.nil?
|
|
204
204
|
return false if @upstream_url.nil?
|
|
@@ -218,7 +218,7 @@ class HexUpstreamRequest
|
|
|
218
218
|
# Custom attribute writer method checking allowed values (enum).
|
|
219
219
|
# @param [Object] mode Object to be assigned
|
|
220
220
|
def mode=(mode)
|
|
221
|
-
validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy'])
|
|
221
|
+
validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only'])
|
|
222
222
|
unless validator.valid?(mode)
|
|
223
223
|
fail ArgumentError, 'invalid value for "mode", must be one of #{validator.allowable_values}.'
|
|
224
224
|
end
|
|
@@ -190,7 +190,7 @@ class HexUpstreamRequestPatch
|
|
|
190
190
|
def valid?
|
|
191
191
|
auth_mode_validator = EnumAttributeValidator.new('String', ['None', 'Username and Password'])
|
|
192
192
|
return false unless auth_mode_validator.valid?(@auth_mode)
|
|
193
|
-
mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy'])
|
|
193
|
+
mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only'])
|
|
194
194
|
return false unless mode_validator.valid?(@mode)
|
|
195
195
|
true
|
|
196
196
|
end
|
|
@@ -208,7 +208,7 @@ class HexUpstreamRequestPatch
|
|
|
208
208
|
# Custom attribute writer method checking allowed values (enum).
|
|
209
209
|
# @param [Object] mode Object to be assigned
|
|
210
210
|
def mode=(mode)
|
|
211
|
-
validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy'])
|
|
211
|
+
validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only'])
|
|
212
212
|
unless validator.valid?(mode)
|
|
213
213
|
fail ArgumentError, 'invalid value for "mode", must be one of #{validator.allowable_values}.'
|
|
214
214
|
end
|
|
@@ -318,7 +318,7 @@ class NpmUpstream
|
|
|
318
318
|
return false unless auth_mode_validator.valid?(@auth_mode)
|
|
319
319
|
disable_reason_validator = EnumAttributeValidator.new('String', ['N/A', 'Upstream points to its own repository', 'Missing upstream source', 'RSA key did not verify the upstream\'s APKINDEX signature', 'Upstream was disabled by request of user'])
|
|
320
320
|
return false unless disable_reason_validator.valid?(@disable_reason)
|
|
321
|
-
mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy'])
|
|
321
|
+
mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only'])
|
|
322
322
|
return false unless mode_validator.valid?(@mode)
|
|
323
323
|
return false if @name.nil?
|
|
324
324
|
trust_level_validator = EnumAttributeValidator.new('String', ['Trusted', 'Untrusted'])
|
|
@@ -350,7 +350,7 @@ class NpmUpstream
|
|
|
350
350
|
# Custom attribute writer method checking allowed values (enum).
|
|
351
351
|
# @param [Object] mode Object to be assigned
|
|
352
352
|
def mode=(mode)
|
|
353
|
-
validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy'])
|
|
353
|
+
validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only'])
|
|
354
354
|
unless validator.valid?(mode)
|
|
355
355
|
fail ArgumentError, 'invalid value for "mode", must be one of #{validator.allowable_values}.'
|
|
356
356
|
end
|
|
@@ -209,7 +209,7 @@ class NpmUpstreamRequest
|
|
|
209
209
|
def valid?
|
|
210
210
|
auth_mode_validator = EnumAttributeValidator.new('String', ['None', 'Username and Password', 'Token'])
|
|
211
211
|
return false unless auth_mode_validator.valid?(@auth_mode)
|
|
212
|
-
mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy'])
|
|
212
|
+
mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only'])
|
|
213
213
|
return false unless mode_validator.valid?(@mode)
|
|
214
214
|
return false if @name.nil?
|
|
215
215
|
trust_level_validator = EnumAttributeValidator.new('String', ['Trusted', 'Untrusted'])
|
|
@@ -231,7 +231,7 @@ class NpmUpstreamRequest
|
|
|
231
231
|
# Custom attribute writer method checking allowed values (enum).
|
|
232
232
|
# @param [Object] mode Object to be assigned
|
|
233
233
|
def mode=(mode)
|
|
234
|
-
validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy'])
|
|
234
|
+
validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only'])
|
|
235
235
|
unless validator.valid?(mode)
|
|
236
236
|
fail ArgumentError, 'invalid value for "mode", must be one of #{validator.allowable_values}.'
|
|
237
237
|
end
|