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.
Files changed (123) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +1 -1
  3. data/README.md +4 -4
  4. data/build.json +1 -1
  5. data/docs/ConnectedRepository.md +3 -1
  6. data/docs/ConnectedRepositoryRequest.md +1 -1
  7. data/docs/ConnectedRepositoryRequestPatch.md +1 -1
  8. data/docs/FormatSupportUpstream.md +1 -0
  9. data/docs/OrganizationSAMLAuth.md +2 -0
  10. data/docs/OrganizationSAMLAuthRequestPatch.md +2 -0
  11. data/docs/OrgsApi.md +3 -1
  12. data/docs/PackagesApi.md +22 -6
  13. data/docs/ReposApi.md +2 -2
  14. data/docs/Repository.md +1 -0
  15. data/docs/RepositoryCreate.md +1 -0
  16. data/docs/RepositoryEd25519Key.md +1 -0
  17. data/lib/cloudsmith-api/api/orgs_api.rb +3 -0
  18. data/lib/cloudsmith-api/api/packages_api.rb +15 -0
  19. data/lib/cloudsmith-api/api/repos_api.rb +2 -2
  20. data/lib/cloudsmith-api/models/cargo_upstream.rb +2 -2
  21. data/lib/cloudsmith-api/models/cargo_upstream_request.rb +2 -2
  22. data/lib/cloudsmith-api/models/cargo_upstream_request_patch.rb +2 -2
  23. data/lib/cloudsmith-api/models/composer_upstream.rb +2 -2
  24. data/lib/cloudsmith-api/models/composer_upstream_request.rb +2 -2
  25. data/lib/cloudsmith-api/models/composer_upstream_request_patch.rb +2 -2
  26. data/lib/cloudsmith-api/models/conda_upstream.rb +2 -2
  27. data/lib/cloudsmith-api/models/conda_upstream_request.rb +2 -2
  28. data/lib/cloudsmith-api/models/conda_upstream_request_patch.rb +2 -2
  29. data/lib/cloudsmith-api/models/connected_repository.rb +57 -2
  30. data/lib/cloudsmith-api/models/connected_repository_request.rb +1 -1
  31. data/lib/cloudsmith-api/models/connected_repository_request_patch.rb +1 -1
  32. data/lib/cloudsmith-api/models/cran_upstream.rb +2 -2
  33. data/lib/cloudsmith-api/models/cran_upstream_request.rb +2 -2
  34. data/lib/cloudsmith-api/models/cran_upstream_request_patch.rb +2 -2
  35. data/lib/cloudsmith-api/models/dart_upstream.rb +2 -2
  36. data/lib/cloudsmith-api/models/dart_upstream_request.rb +2 -2
  37. data/lib/cloudsmith-api/models/dart_upstream_request_patch.rb +2 -2
  38. data/lib/cloudsmith-api/models/deb_upstream.rb +2 -2
  39. data/lib/cloudsmith-api/models/deb_upstream_request.rb +2 -2
  40. data/lib/cloudsmith-api/models/deb_upstream_request_patch.rb +2 -2
  41. data/lib/cloudsmith-api/models/format_support_upstream.rb +16 -1
  42. data/lib/cloudsmith-api/models/generic_upstream.rb +2 -2
  43. data/lib/cloudsmith-api/models/generic_upstream_request.rb +2 -2
  44. data/lib/cloudsmith-api/models/generic_upstream_request_patch.rb +2 -2
  45. data/lib/cloudsmith-api/models/helm_upstream.rb +2 -2
  46. data/lib/cloudsmith-api/models/helm_upstream_request.rb +2 -2
  47. data/lib/cloudsmith-api/models/helm_upstream_request_patch.rb +2 -2
  48. data/lib/cloudsmith-api/models/hex_upstream.rb +2 -2
  49. data/lib/cloudsmith-api/models/hex_upstream_request.rb +2 -2
  50. data/lib/cloudsmith-api/models/hex_upstream_request_patch.rb +2 -2
  51. data/lib/cloudsmith-api/models/npm_upstream.rb +2 -2
  52. data/lib/cloudsmith-api/models/npm_upstream_request.rb +2 -2
  53. data/lib/cloudsmith-api/models/npm_upstream_request_patch.rb +2 -2
  54. data/lib/cloudsmith-api/models/nuget_upstream.rb +2 -2
  55. data/lib/cloudsmith-api/models/nuget_upstream_request.rb +2 -2
  56. data/lib/cloudsmith-api/models/nuget_upstream_request_patch.rb +2 -2
  57. data/lib/cloudsmith-api/models/organization_saml_auth.rb +24 -4
  58. data/lib/cloudsmith-api/models/organization_saml_auth_request_patch.rb +24 -4
  59. data/lib/cloudsmith-api/models/python_upstream.rb +2 -2
  60. data/lib/cloudsmith-api/models/python_upstream_request.rb +2 -2
  61. data/lib/cloudsmith-api/models/python_upstream_request_patch.rb +2 -2
  62. data/lib/cloudsmith-api/models/repository.rb +11 -1
  63. data/lib/cloudsmith-api/models/repository_create.rb +11 -1
  64. data/lib/cloudsmith-api/models/repository_ed25519_key.rb +14 -4
  65. data/lib/cloudsmith-api/version.rb +1 -1
  66. data/spec/api/orgs_api_spec.rb +1 -0
  67. data/spec/api/packages_api_spec.rb +5 -0
  68. data/spec/api/repos_api_spec.rb +1 -1
  69. data/spec/models/cargo_upstream_request_patch_spec.rb +1 -1
  70. data/spec/models/cargo_upstream_request_spec.rb +1 -1
  71. data/spec/models/cargo_upstream_spec.rb +1 -1
  72. data/spec/models/composer_upstream_request_patch_spec.rb +1 -1
  73. data/spec/models/composer_upstream_request_spec.rb +1 -1
  74. data/spec/models/composer_upstream_spec.rb +1 -1
  75. data/spec/models/conda_upstream_request_patch_spec.rb +1 -1
  76. data/spec/models/conda_upstream_request_spec.rb +1 -1
  77. data/spec/models/conda_upstream_spec.rb +1 -1
  78. data/spec/models/connected_repository_spec.rb +16 -0
  79. data/spec/models/cran_upstream_request_patch_spec.rb +1 -1
  80. data/spec/models/cran_upstream_request_spec.rb +1 -1
  81. data/spec/models/cran_upstream_spec.rb +1 -1
  82. data/spec/models/dart_upstream_request_patch_spec.rb +1 -1
  83. data/spec/models/dart_upstream_request_spec.rb +1 -1
  84. data/spec/models/dart_upstream_spec.rb +1 -1
  85. data/spec/models/deb_upstream_request_patch_spec.rb +1 -1
  86. data/spec/models/deb_upstream_request_spec.rb +1 -1
  87. data/spec/models/deb_upstream_spec.rb +1 -1
  88. data/spec/models/format_support_upstream_spec.rb +6 -0
  89. data/spec/models/generic_upstream_request_patch_spec.rb +1 -1
  90. data/spec/models/generic_upstream_request_spec.rb +1 -1
  91. data/spec/models/generic_upstream_spec.rb +1 -1
  92. data/spec/models/helm_upstream_request_patch_spec.rb +1 -1
  93. data/spec/models/helm_upstream_request_spec.rb +1 -1
  94. data/spec/models/helm_upstream_spec.rb +1 -1
  95. data/spec/models/hex_upstream_request_patch_spec.rb +1 -1
  96. data/spec/models/hex_upstream_request_spec.rb +1 -1
  97. data/spec/models/hex_upstream_spec.rb +1 -1
  98. data/spec/models/npm_upstream_request_patch_spec.rb +1 -1
  99. data/spec/models/npm_upstream_request_spec.rb +1 -1
  100. data/spec/models/npm_upstream_spec.rb +1 -1
  101. data/spec/models/nuget_upstream_request_patch_spec.rb +1 -1
  102. data/spec/models/nuget_upstream_request_spec.rb +1 -1
  103. data/spec/models/nuget_upstream_spec.rb +1 -1
  104. data/spec/models/organization_saml_auth_request_patch_spec.rb +12 -0
  105. data/spec/models/organization_saml_auth_spec.rb +12 -0
  106. data/spec/models/python_upstream_request_patch_spec.rb +1 -1
  107. data/spec/models/python_upstream_request_spec.rb +1 -1
  108. data/spec/models/python_upstream_spec.rb +1 -1
  109. data/spec/models/repository_create_spec.rb +6 -0
  110. data/spec/models/repository_ed25519_key_spec.rb +6 -0
  111. data/spec/models/repository_spec.rb +6 -0
  112. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/autotest-fsevent-0.3.2/gem_make.out +1 -1
  113. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/bigdecimal-4.1.2/gem_make.out +2 -2
  114. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/bigdecimal-4.1.2/mkmf.log +4 -4
  115. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/ffi-1.17.4/gem_make.out +2 -2
  116. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/ffi-1.17.4/mkmf.log +1 -1
  117. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/json-2.7.6/gem_make.out +2 -2
  118. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/json-2.7.6/mkmf.log +1 -1
  119. data/vendor/bundle/ruby/2.6.0/gems/bigdecimal-4.1.2/ext/bigdecimal/Makefile +2 -2
  120. data/vendor/bundle/ruby/2.6.0/gems/ffi-1.17.4/ext/ffi_c/Makefile +2 -2
  121. data/vendor/bundle/ruby/2.6.0/gems/json-2.7.6/ext/json/ext/generator/Makefile +2 -2
  122. data/vendor/bundle/ruby/2.6.0/gems/json-2.7.6/ext/json/ext/parser/Makefile +2 -2
  123. metadata +2 -2
@@ -201,7 +201,7 @@ class NpmUpstreamRequestPatch
201
201
  def valid?
202
202
  auth_mode_validator = EnumAttributeValidator.new('String', ['None', 'Username and Password', 'Token'])
203
203
  return false unless auth_mode_validator.valid?(@auth_mode)
204
- mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy'])
204
+ mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only'])
205
205
  return false unless mode_validator.valid?(@mode)
206
206
  trust_level_validator = EnumAttributeValidator.new('String', ['Trusted', 'Untrusted'])
207
207
  return false unless trust_level_validator.valid?(@trust_level)
@@ -221,7 +221,7 @@ class NpmUpstreamRequestPatch
221
221
  # Custom attribute writer method checking allowed values (enum).
222
222
  # @param [Object] mode Object to be assigned
223
223
  def mode=(mode)
224
- validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy'])
224
+ validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only'])
225
225
  unless validator.valid?(mode)
226
226
  fail ArgumentError, 'invalid value for "mode", must be one of #{validator.allowable_values}.'
227
227
  end
@@ -307,7 +307,7 @@ class NugetUpstream
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 NugetUpstream
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 NugetUpstreamRequest
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 NugetUpstreamRequest
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 NugetUpstreamRequestPatch
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 NugetUpstreamRequestPatch
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
@@ -21,16 +21,24 @@ class OrganizationSAMLAuth
21
21
  # If configured, SAML metadata will be used as entered instead of retrieved from a remote URL.
22
22
  attr_accessor :saml_metadata_inline
23
23
 
24
+ # When configured, this inline SAML metadata is used instead of the legacy app SAML configuration when signing into the new Cloudsmith web application.
25
+ attr_accessor :saml_metadata_inline_webapp
26
+
24
27
  # If configured, SAML metadata be retrieved from a remote URL.
25
28
  attr_accessor :saml_metadata_url
26
29
 
30
+ # When configured, this SAML metadata URL is used instead of the legacy app SAML configuration when signing into the new Cloudsmith web application.
31
+ attr_accessor :saml_metadata_url_webapp
32
+
27
33
  # Attribute mapping from ruby-style variable name to JSON key.
28
34
  def self.attribute_map
29
35
  {
30
36
  :'saml_auth_enabled' => :'saml_auth_enabled',
31
37
  :'saml_auth_enforced' => :'saml_auth_enforced',
32
38
  :'saml_metadata_inline' => :'saml_metadata_inline',
33
- :'saml_metadata_url' => :'saml_metadata_url'
39
+ :'saml_metadata_inline_webapp' => :'saml_metadata_inline_webapp',
40
+ :'saml_metadata_url' => :'saml_metadata_url',
41
+ :'saml_metadata_url_webapp' => :'saml_metadata_url_webapp'
34
42
  }
35
43
  end
36
44
 
@@ -40,7 +48,9 @@ class OrganizationSAMLAuth
40
48
  :'saml_auth_enabled' => :'BOOLEAN',
41
49
  :'saml_auth_enforced' => :'BOOLEAN',
42
50
  :'saml_metadata_inline' => :'String',
43
- :'saml_metadata_url' => :'String'
51
+ :'saml_metadata_inline_webapp' => :'String',
52
+ :'saml_metadata_url' => :'String',
53
+ :'saml_metadata_url_webapp' => :'String'
44
54
  }
45
55
  end
46
56
 
@@ -64,9 +74,17 @@ class OrganizationSAMLAuth
64
74
  self.saml_metadata_inline = attributes[:'saml_metadata_inline']
65
75
  end
66
76
 
77
+ if attributes.has_key?(:'saml_metadata_inline_webapp')
78
+ self.saml_metadata_inline_webapp = attributes[:'saml_metadata_inline_webapp']
79
+ end
80
+
67
81
  if attributes.has_key?(:'saml_metadata_url')
68
82
  self.saml_metadata_url = attributes[:'saml_metadata_url']
69
83
  end
84
+
85
+ if attributes.has_key?(:'saml_metadata_url_webapp')
86
+ self.saml_metadata_url_webapp = attributes[:'saml_metadata_url_webapp']
87
+ end
70
88
  end
71
89
 
72
90
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -100,7 +118,9 @@ class OrganizationSAMLAuth
100
118
  saml_auth_enabled == o.saml_auth_enabled &&
101
119
  saml_auth_enforced == o.saml_auth_enforced &&
102
120
  saml_metadata_inline == o.saml_metadata_inline &&
103
- saml_metadata_url == o.saml_metadata_url
121
+ saml_metadata_inline_webapp == o.saml_metadata_inline_webapp &&
122
+ saml_metadata_url == o.saml_metadata_url &&
123
+ saml_metadata_url_webapp == o.saml_metadata_url_webapp
104
124
  end
105
125
 
106
126
  # @see the `==` method
@@ -112,7 +132,7 @@ class OrganizationSAMLAuth
112
132
  # Calculates hash code according to all attributes.
113
133
  # @return [Fixnum] Hash code
114
134
  def hash
115
- [saml_auth_enabled, saml_auth_enforced, saml_metadata_inline, saml_metadata_url].hash
135
+ [saml_auth_enabled, saml_auth_enforced, saml_metadata_inline, saml_metadata_inline_webapp, saml_metadata_url, saml_metadata_url_webapp].hash
116
136
  end
117
137
 
118
138
  # Builds the object from hash
@@ -21,16 +21,24 @@ class OrganizationSAMLAuthRequestPatch
21
21
  # If configured, SAML metadata will be used as entered instead of retrieved from a remote URL.
22
22
  attr_accessor :saml_metadata_inline
23
23
 
24
+ # When configured, this inline SAML metadata is used instead of the legacy app SAML configuration when signing into the new Cloudsmith web application.
25
+ attr_accessor :saml_metadata_inline_webapp
26
+
24
27
  # If configured, SAML metadata be retrieved from a remote URL.
25
28
  attr_accessor :saml_metadata_url
26
29
 
30
+ # When configured, this SAML metadata URL is used instead of the legacy app SAML configuration when signing into the new Cloudsmith web application.
31
+ attr_accessor :saml_metadata_url_webapp
32
+
27
33
  # Attribute mapping from ruby-style variable name to JSON key.
28
34
  def self.attribute_map
29
35
  {
30
36
  :'saml_auth_enabled' => :'saml_auth_enabled',
31
37
  :'saml_auth_enforced' => :'saml_auth_enforced',
32
38
  :'saml_metadata_inline' => :'saml_metadata_inline',
33
- :'saml_metadata_url' => :'saml_metadata_url'
39
+ :'saml_metadata_inline_webapp' => :'saml_metadata_inline_webapp',
40
+ :'saml_metadata_url' => :'saml_metadata_url',
41
+ :'saml_metadata_url_webapp' => :'saml_metadata_url_webapp'
34
42
  }
35
43
  end
36
44
 
@@ -40,7 +48,9 @@ class OrganizationSAMLAuthRequestPatch
40
48
  :'saml_auth_enabled' => :'BOOLEAN',
41
49
  :'saml_auth_enforced' => :'BOOLEAN',
42
50
  :'saml_metadata_inline' => :'String',
43
- :'saml_metadata_url' => :'String'
51
+ :'saml_metadata_inline_webapp' => :'String',
52
+ :'saml_metadata_url' => :'String',
53
+ :'saml_metadata_url_webapp' => :'String'
44
54
  }
45
55
  end
46
56
 
@@ -64,9 +74,17 @@ class OrganizationSAMLAuthRequestPatch
64
74
  self.saml_metadata_inline = attributes[:'saml_metadata_inline']
65
75
  end
66
76
 
77
+ if attributes.has_key?(:'saml_metadata_inline_webapp')
78
+ self.saml_metadata_inline_webapp = attributes[:'saml_metadata_inline_webapp']
79
+ end
80
+
67
81
  if attributes.has_key?(:'saml_metadata_url')
68
82
  self.saml_metadata_url = attributes[:'saml_metadata_url']
69
83
  end
84
+
85
+ if attributes.has_key?(:'saml_metadata_url_webapp')
86
+ self.saml_metadata_url_webapp = attributes[:'saml_metadata_url_webapp']
87
+ end
70
88
  end
71
89
 
72
90
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -90,7 +108,9 @@ class OrganizationSAMLAuthRequestPatch
90
108
  saml_auth_enabled == o.saml_auth_enabled &&
91
109
  saml_auth_enforced == o.saml_auth_enforced &&
92
110
  saml_metadata_inline == o.saml_metadata_inline &&
93
- saml_metadata_url == o.saml_metadata_url
111
+ saml_metadata_inline_webapp == o.saml_metadata_inline_webapp &&
112
+ saml_metadata_url == o.saml_metadata_url &&
113
+ saml_metadata_url_webapp == o.saml_metadata_url_webapp
94
114
  end
95
115
 
96
116
  # @see the `==` method
@@ -102,7 +122,7 @@ class OrganizationSAMLAuthRequestPatch
102
122
  # Calculates hash code according to all attributes.
103
123
  # @return [Fixnum] Hash code
104
124
  def hash
105
- [saml_auth_enabled, saml_auth_enforced, saml_metadata_inline, saml_metadata_url].hash
125
+ [saml_auth_enabled, saml_auth_enforced, saml_metadata_inline, saml_metadata_inline_webapp, saml_metadata_url, saml_metadata_url_webapp].hash
106
126
  end
107
127
 
108
128
  # Builds the object from hash
@@ -318,7 +318,7 @@ class PythonUpstream
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 PythonUpstream
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 PythonUpstreamRequest
209
209
  def valid?
210
210
  auth_mode_validator = EnumAttributeValidator.new('String', ['None', 'Username and Password'])
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 PythonUpstreamRequest
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
@@ -201,7 +201,7 @@ class PythonUpstreamRequestPatch
201
201
  def valid?
202
202
  auth_mode_validator = EnumAttributeValidator.new('String', ['None', 'Username and Password'])
203
203
  return false unless auth_mode_validator.valid?(@auth_mode)
204
- mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy'])
204
+ mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only'])
205
205
  return false unless mode_validator.valid?(@mode)
206
206
  trust_level_validator = EnumAttributeValidator.new('String', ['Trusted', 'Untrusted'])
207
207
  return false unless trust_level_validator.valid?(@trust_level)
@@ -221,7 +221,7 @@ class PythonUpstreamRequestPatch
221
221
  # Custom attribute writer method checking allowed values (enum).
222
222
  # @param [Object] mode Object to be assigned
223
223
  def mode=(mode)
224
- validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy'])
224
+ validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only'])
225
225
  unless validator.valid?(mode)
226
226
  fail ArgumentError, 'invalid value for "mode", must be one of #{validator.allowable_values}.'
227
227
  end
@@ -14,6 +14,9 @@ require 'date'
14
14
 
15
15
  module CloudsmithApi
16
16
  class Repository
17
+ # Number of active connections for the repository
18
+ attr_accessor :active_connection_count
19
+
17
20
  # Broadcasting status of a repository.
18
21
  attr_accessor :broadcast_state
19
22
 
@@ -246,6 +249,7 @@ class Repository
246
249
  # Attribute mapping from ruby-style variable name to JSON key.
247
250
  def self.attribute_map
248
251
  {
252
+ :'active_connection_count' => :'active_connection_count',
249
253
  :'broadcast_state' => :'broadcast_state',
250
254
  :'cdn_url' => :'cdn_url',
251
255
  :'content_kind' => :'content_kind',
@@ -323,6 +327,7 @@ class Repository
323
327
  # Attribute type mapping.
324
328
  def self.swagger_types
325
329
  {
330
+ :'active_connection_count' => :'Integer',
326
331
  :'broadcast_state' => :'String',
327
332
  :'cdn_url' => :'String',
328
333
  :'content_kind' => :'String',
@@ -405,6 +410,10 @@ class Repository
405
410
  # convert string to symbol for hash key
406
411
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
407
412
 
413
+ if attributes.has_key?(:'active_connection_count')
414
+ self.active_connection_count = attributes[:'active_connection_count']
415
+ end
416
+
408
417
  if attributes.has_key?(:'broadcast_state')
409
418
  self.broadcast_state = attributes[:'broadcast_state']
410
419
  else
@@ -903,6 +912,7 @@ class Repository
903
912
  def ==(o)
904
913
  return true if self.equal?(o)
905
914
  self.class == o.class &&
915
+ active_connection_count == o.active_connection_count &&
906
916
  broadcast_state == o.broadcast_state &&
907
917
  cdn_url == o.cdn_url &&
908
918
  content_kind == o.content_kind &&
@@ -985,7 +995,7 @@ class Repository
985
995
  # Calculates hash code according to all attributes.
986
996
  # @return [Fixnum] Hash code
987
997
  def hash
988
- [broadcast_state, cdn_url, content_kind, contextual_auth_realm, copy_own, copy_packages, cosign_signing_enabled, created_at, default_privilege, delete_own, delete_packages, deleted_at, description, distributes, docker_refresh_tokens_enabled, ecdsa_keys, enforce_eula, generic_package_index_enabled, gpg_keys, index_files, is_open_source, is_private, is_public, is_public_hidden, manage_entitlements_privilege, move_own, move_packages, name, namespace, namespace_url, npm_upstream_tags_take_precedence, nuget_native_signing_enabled, num_downloads, num_policy_violated_packages, num_quarantined_packages, open_source_license, open_source_project_url, package_count, package_count_excl_subcomponents, package_group_count, proxy_npmjs, proxy_pypi, raw_package_index_enabled, raw_package_index_signatures_enabled, replace_packages, replace_packages_by_default, repository_type, repository_type_str, resync_own, resync_packages, scan_own, scan_packages, self_html_url, self_url, self_webapp_url, show_setup_all, size, size_str, slug, slug_perm, storage_region, strict_npm_validation, tag_pre_releases_as_latest, use_debian_labels, use_default_cargo_upstream, use_entitlements_privilege, use_noarch_packages, use_source_packages, use_vulnerability_scanning, user_entitlements_enabled, view_statistics].hash
998
+ [active_connection_count, broadcast_state, cdn_url, content_kind, contextual_auth_realm, copy_own, copy_packages, cosign_signing_enabled, created_at, default_privilege, delete_own, delete_packages, deleted_at, description, distributes, docker_refresh_tokens_enabled, ecdsa_keys, enforce_eula, generic_package_index_enabled, gpg_keys, index_files, is_open_source, is_private, is_public, is_public_hidden, manage_entitlements_privilege, move_own, move_packages, name, namespace, namespace_url, npm_upstream_tags_take_precedence, nuget_native_signing_enabled, num_downloads, num_policy_violated_packages, num_quarantined_packages, open_source_license, open_source_project_url, package_count, package_count_excl_subcomponents, package_group_count, proxy_npmjs, proxy_pypi, raw_package_index_enabled, raw_package_index_signatures_enabled, replace_packages, replace_packages_by_default, repository_type, repository_type_str, resync_own, resync_packages, scan_own, scan_packages, self_html_url, self_url, self_webapp_url, show_setup_all, size, size_str, slug, slug_perm, storage_region, strict_npm_validation, tag_pre_releases_as_latest, use_debian_labels, use_default_cargo_upstream, use_entitlements_privilege, use_noarch_packages, use_source_packages, use_vulnerability_scanning, user_entitlements_enabled, view_statistics].hash
989
999
  end
990
1000
 
991
1001
  # Builds the object from hash
@@ -14,6 +14,9 @@ require 'date'
14
14
 
15
15
  module CloudsmithApi
16
16
  class RepositoryCreate
17
+ # Number of active connections for the repository
18
+ attr_accessor :active_connection_count
19
+
17
20
  # Broadcasting status of a repository.
18
21
  attr_accessor :broadcast_state
19
22
 
@@ -246,6 +249,7 @@ class RepositoryCreate
246
249
  # Attribute mapping from ruby-style variable name to JSON key.
247
250
  def self.attribute_map
248
251
  {
252
+ :'active_connection_count' => :'active_connection_count',
249
253
  :'broadcast_state' => :'broadcast_state',
250
254
  :'cdn_url' => :'cdn_url',
251
255
  :'content_kind' => :'content_kind',
@@ -323,6 +327,7 @@ class RepositoryCreate
323
327
  # Attribute type mapping.
324
328
  def self.swagger_types
325
329
  {
330
+ :'active_connection_count' => :'Integer',
326
331
  :'broadcast_state' => :'String',
327
332
  :'cdn_url' => :'String',
328
333
  :'content_kind' => :'String',
@@ -405,6 +410,10 @@ class RepositoryCreate
405
410
  # convert string to symbol for hash key
406
411
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
407
412
 
413
+ if attributes.has_key?(:'active_connection_count')
414
+ self.active_connection_count = attributes[:'active_connection_count']
415
+ end
416
+
408
417
  if attributes.has_key?(:'broadcast_state')
409
418
  self.broadcast_state = attributes[:'broadcast_state']
410
419
  else
@@ -903,6 +912,7 @@ class RepositoryCreate
903
912
  def ==(o)
904
913
  return true if self.equal?(o)
905
914
  self.class == o.class &&
915
+ active_connection_count == o.active_connection_count &&
906
916
  broadcast_state == o.broadcast_state &&
907
917
  cdn_url == o.cdn_url &&
908
918
  content_kind == o.content_kind &&
@@ -985,7 +995,7 @@ class RepositoryCreate
985
995
  # Calculates hash code according to all attributes.
986
996
  # @return [Fixnum] Hash code
987
997
  def hash
988
- [broadcast_state, cdn_url, content_kind, contextual_auth_realm, copy_own, copy_packages, cosign_signing_enabled, created_at, default_privilege, delete_own, delete_packages, deleted_at, description, distributes, docker_refresh_tokens_enabled, ecdsa_keys, enforce_eula, generic_package_index_enabled, gpg_keys, index_files, is_open_source, is_private, is_public, is_public_hidden, manage_entitlements_privilege, move_own, move_packages, name, namespace, namespace_url, npm_upstream_tags_take_precedence, nuget_native_signing_enabled, num_downloads, num_policy_violated_packages, num_quarantined_packages, open_source_license, open_source_project_url, package_count, package_count_excl_subcomponents, package_group_count, proxy_npmjs, proxy_pypi, raw_package_index_enabled, raw_package_index_signatures_enabled, replace_packages, replace_packages_by_default, repository_type, repository_type_str, resync_own, resync_packages, scan_own, scan_packages, self_html_url, self_url, self_webapp_url, show_setup_all, size, size_str, slug, slug_perm, storage_region, strict_npm_validation, tag_pre_releases_as_latest, use_debian_labels, use_default_cargo_upstream, use_entitlements_privilege, use_noarch_packages, use_source_packages, use_vulnerability_scanning, user_entitlements_enabled, view_statistics].hash
998
+ [active_connection_count, broadcast_state, cdn_url, content_kind, contextual_auth_realm, copy_own, copy_packages, cosign_signing_enabled, created_at, default_privilege, delete_own, delete_packages, deleted_at, description, distributes, docker_refresh_tokens_enabled, ecdsa_keys, enforce_eula, generic_package_index_enabled, gpg_keys, index_files, is_open_source, is_private, is_public, is_public_hidden, manage_entitlements_privilege, move_own, move_packages, name, namespace, namespace_url, npm_upstream_tags_take_precedence, nuget_native_signing_enabled, num_downloads, num_policy_violated_packages, num_quarantined_packages, open_source_license, open_source_project_url, package_count, package_count_excl_subcomponents, package_group_count, proxy_npmjs, proxy_pypi, raw_package_index_enabled, raw_package_index_signatures_enabled, replace_packages, replace_packages_by_default, repository_type, repository_type_str, resync_own, resync_packages, scan_own, scan_packages, self_html_url, self_url, self_webapp_url, show_setup_all, size, size_str, slug, slug_perm, storage_region, strict_npm_validation, tag_pre_releases_as_latest, use_debian_labels, use_default_cargo_upstream, use_entitlements_privilege, use_noarch_packages, use_source_packages, use_vulnerability_scanning, user_entitlements_enabled, view_statistics].hash
989
999
  end
990
1000
 
991
1001
  # Builds the object from hash
@@ -30,6 +30,9 @@ class RepositoryEd25519Key
30
30
  # The public key given to repository users.
31
31
  attr_accessor :public_key
32
32
 
33
+ # The public key in `<name>:<base64>` wire format, ready to paste into Nix `trusted-public-keys`.
34
+ attr_accessor :public_key_wire
35
+
33
36
  # Attribute mapping from ruby-style variable name to JSON key.
34
37
  def self.attribute_map
35
38
  {
@@ -38,7 +41,8 @@ class RepositoryEd25519Key
38
41
  :'default' => :'default',
39
42
  :'fingerprint' => :'fingerprint',
40
43
  :'fingerprint_short' => :'fingerprint_short',
41
- :'public_key' => :'public_key'
44
+ :'public_key' => :'public_key',
45
+ :'public_key_wire' => :'public_key_wire'
42
46
  }
43
47
  end
44
48
 
@@ -50,7 +54,8 @@ class RepositoryEd25519Key
50
54
  :'default' => :'BOOLEAN',
51
55
  :'fingerprint' => :'String',
52
56
  :'fingerprint_short' => :'String',
53
- :'public_key' => :'String'
57
+ :'public_key' => :'String',
58
+ :'public_key_wire' => :'String'
54
59
  }
55
60
  end
56
61
 
@@ -85,6 +90,10 @@ class RepositoryEd25519Key
85
90
  if attributes.has_key?(:'public_key')
86
91
  self.public_key = attributes[:'public_key']
87
92
  end
93
+
94
+ if attributes.has_key?(:'public_key_wire')
95
+ self.public_key_wire = attributes[:'public_key_wire']
96
+ end
88
97
  end
89
98
 
90
99
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -110,7 +119,8 @@ class RepositoryEd25519Key
110
119
  default == o.default &&
111
120
  fingerprint == o.fingerprint &&
112
121
  fingerprint_short == o.fingerprint_short &&
113
- public_key == o.public_key
122
+ public_key == o.public_key &&
123
+ public_key_wire == o.public_key_wire
114
124
  end
115
125
 
116
126
  # @see the `==` method
@@ -122,7 +132,7 @@ class RepositoryEd25519Key
122
132
  # Calculates hash code according to all attributes.
123
133
  # @return [Fixnum] Hash code
124
134
  def hash
125
- [active, created_at, default, fingerprint, fingerprint_short, public_key].hash
135
+ [active, created_at, default, fingerprint, fingerprint_short, public_key, public_key_wire].hash
126
136
  end
127
137
 
128
138
  # Builds the object from hash
@@ -11,5 +11,5 @@ Swagger Codegen version: 2.4.50
11
11
  =end
12
12
 
13
13
  module CloudsmithApi
14
- VERSION = '2.0.27'
14
+ VERSION = '2.0.29'
15
15
  end
@@ -363,6 +363,7 @@ describe 'OrgsApi' do
363
363
  # @param [Hash] opts the optional parameters
364
364
  # @option opts [Integer] :page A page number within the paginated result set.
365
365
  # @option opts [Integer] :page_size Number of results to return per page.
366
+ # @option opts [String] :sort A field for sorting objects in ascending or descending order. Use &#x60;-&#x60; prefix for descending order (e.g., &#x60;-name&#x60;). Available options: name, created_at, slug.
366
367
  # @return [Array<Organization>]
367
368
  describe 'orgs_list test' do
368
369
  it 'should work' do
@@ -68,6 +68,7 @@ describe 'PackagesApi' do
68
68
  # @param repo
69
69
  # @param identifier
70
70
  # @param [Hash] opts the optional parameters
71
+ # @option opts [BOOLEAN] :include_connected_repositories If true, include packages from active connected target repositories in addition to packages from this repository. Has no effect if the repository has no active connections. Defaults to false. Note: download-related URLs on returned packages (e.g. cdn_url, signature_url) are rewritten to point at the requesting repository, not the connected target repository the package physically lives in.
71
72
  # @return [PackageDependencies]
72
73
  describe 'packages_dependencies test' do
73
74
  it 'should work' do
@@ -85,6 +86,7 @@ describe 'PackagesApi' do
85
86
  # @option opts [Integer] :page_size Number of results to return per page.
86
87
  # @option opts [String] :group_by A field to group packages by. Available options: name, backend_kind.
87
88
  # @option opts [BOOLEAN] :hide_subcomponents Whether to hide packages which are subcomponents of another package in the results
89
+ # @option opts [BOOLEAN] :include_connected_repositories If true, include packages from active connected target repositories in addition to packages from this repository. Has no effect if the repository has no active connections. Defaults to false.
88
90
  # @option opts [String] :query A search term for querying names, filenames, versions, distributions, architectures, formats, or statuses of packages.
89
91
  # @option opts [String] :sort A field for sorting objects in ascending or descending order. Use &#x60;-&#x60; prefix for descending order (e.g., &#x60;-name&#x60;). Available options: name, count, num_downloads, size, last_push, backend_kind.
90
92
  # @return [InlineResponse200]
@@ -102,6 +104,7 @@ describe 'PackagesApi' do
102
104
  # @param [Hash] opts the optional parameters
103
105
  # @option opts [Integer] :page A page number within the paginated result set.
104
106
  # @option opts [Integer] :page_size Number of results to return per page.
107
+ # @option opts [BOOLEAN] :include_connected_repositories If true, include packages from active connected target repositories in addition to packages from this repository. Has no effect if the repository has no active connections. Defaults to false. Note: download-related URLs on returned packages (e.g. cdn_url, signature_url) are rewritten to point at the requesting repository, not the connected target repository the package physically lives in.
105
108
  # @option opts [String] :query A search term for querying names, filenames, versions, distributions, architectures, formats or statuses of packages.
106
109
  # @option opts [String] :sort A field for sorting objects in ascending or descending order.
107
110
  # @return [Array<Package>]
@@ -148,6 +151,7 @@ describe 'PackagesApi' do
148
151
  # @param repo
149
152
  # @param identifier
150
153
  # @param [Hash] opts the optional parameters
154
+ # @option opts [BOOLEAN] :include_connected_repositories If true, include packages from active connected target repositories in addition to packages from this repository. Has no effect if the repository has no active connections. Defaults to false. Note: download-related URLs on returned packages (e.g. cdn_url, signature_url) are rewritten to point at the requesting repository, not the connected target repository the package physically lives in.
151
155
  # @return [Package]
152
156
  describe 'packages_read test' do
153
157
  it 'should work' do
@@ -190,6 +194,7 @@ describe 'PackagesApi' do
190
194
  # @param repo
191
195
  # @param identifier
192
196
  # @param [Hash] opts the optional parameters
197
+ # @option opts [BOOLEAN] :include_connected_repositories If true, include packages from active connected target repositories in addition to packages from this repository. Has no effect if the repository has no active connections. Defaults to false. Note: download-related URLs on returned packages (e.g. cdn_url, signature_url) are rewritten to point at the requesting repository, not the connected target repository the package physically lives in.
193
198
  # @return [PackageStatus]
194
199
  describe 'packages_status test' do
195
200
  it 'should work' do
@@ -395,7 +395,7 @@ describe 'ReposApi' do
395
395
  # @option opts [Integer] :page A page number within the paginated result set.
396
396
  # @option opts [Integer] :page_size Number of results to return per page.
397
397
  # @option opts [String] :query A search term for querying repositories. Available options are: name, slug. Explicit filters: broadcast_state, repository_type.
398
- # @option opts [String] :sort A field for sorting objects in ascending or descending order.
398
+ # @option opts [String] :sort A field for sorting objects in ascending or descending order. Available options are: created_at, downloads, favorites, name, package_count, size.
399
399
  # @return [Array<Repository>]
400
400
  describe 'repos_namespace_list test' do
401
401
  it 'should work' do
@@ -87,7 +87,7 @@ describe 'CargoUpstreamRequestPatch' do
87
87
  describe 'test attribute "mode"' do
88
88
  it 'should work' do
89
89
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
90
- # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["Proxy Only", "Cache and Proxy"])
90
+ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["Proxy Only", "Cache and Proxy", "Cache Only"])
91
91
  # validator.allowable_values.each do |value|
92
92
  # expect { @instance.mode = value }.not_to raise_error
93
93
  # end
@@ -87,7 +87,7 @@ describe 'CargoUpstreamRequest' do
87
87
  describe 'test attribute "mode"' do
88
88
  it 'should work' do
89
89
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
90
- # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["Proxy Only", "Cache and Proxy"])
90
+ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["Proxy Only", "Cache and Proxy", "Cache Only"])
91
91
  # validator.allowable_values.each do |value|
92
92
  # expect { @instance.mode = value }.not_to raise_error
93
93
  # end
@@ -145,7 +145,7 @@ describe 'CargoUpstream' do
145
145
  describe 'test attribute "mode"' do
146
146
  it 'should work' do
147
147
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
148
- # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["Proxy Only", "Cache and Proxy"])
148
+ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["Proxy Only", "Cache and Proxy", "Cache Only"])
149
149
  # validator.allowable_values.each do |value|
150
150
  # expect { @instance.mode = value }.not_to raise_error
151
151
  # end
@@ -87,7 +87,7 @@ describe 'ComposerUpstreamRequestPatch' do
87
87
  describe 'test attribute "mode"' do
88
88
  it 'should work' do
89
89
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
90
- # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["Proxy Only", "Cache and Proxy"])
90
+ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["Proxy Only", "Cache and Proxy", "Cache Only"])
91
91
  # validator.allowable_values.each do |value|
92
92
  # expect { @instance.mode = value }.not_to raise_error
93
93
  # end
@@ -87,7 +87,7 @@ describe 'ComposerUpstreamRequest' do
87
87
  describe 'test attribute "mode"' do
88
88
  it 'should work' do
89
89
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
90
- # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["Proxy Only", "Cache and Proxy"])
90
+ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["Proxy Only", "Cache and Proxy", "Cache Only"])
91
91
  # validator.allowable_values.each do |value|
92
92
  # expect { @instance.mode = value }.not_to raise_error
93
93
  # end
@@ -145,7 +145,7 @@ describe 'ComposerUpstream' do
145
145
  describe 'test attribute "mode"' do
146
146
  it 'should work' do
147
147
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
148
- # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["Proxy Only", "Cache and Proxy"])
148
+ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["Proxy Only", "Cache and Proxy", "Cache Only"])
149
149
  # validator.allowable_values.each do |value|
150
150
  # expect { @instance.mode = value }.not_to raise_error
151
151
  # end
@@ -87,7 +87,7 @@ describe 'CondaUpstreamRequestPatch' do
87
87
  describe 'test attribute "mode"' do
88
88
  it 'should work' do
89
89
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
90
- # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["Proxy Only", "Cache and Proxy"])
90
+ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["Proxy Only", "Cache and Proxy", "Cache Only"])
91
91
  # validator.allowable_values.each do |value|
92
92
  # expect { @instance.mode = value }.not_to raise_error
93
93
  # end
@@ -87,7 +87,7 @@ describe 'CondaUpstreamRequest' do
87
87
  describe 'test attribute "mode"' do
88
88
  it 'should work' do
89
89
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
90
- # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["Proxy Only", "Cache and Proxy"])
90
+ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["Proxy Only", "Cache and Proxy", "Cache Only"])
91
91
  # validator.allowable_values.each do |value|
92
92
  # expect { @instance.mode = value }.not_to raise_error
93
93
  # end
@@ -145,7 +145,7 @@ describe 'CondaUpstream' do
145
145
  describe 'test attribute "mode"' do
146
146
  it 'should work' do
147
147
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
148
- # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["Proxy Only", "Cache and Proxy"])
148
+ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["Proxy Only", "Cache and Proxy", "Cache Only"])
149
149
  # validator.allowable_values.each do |value|
150
150
  # expect { @instance.mode = value }.not_to raise_error
151
151
  # end