diff --git a/bindings/java/src/README.md b/bindings/java/src/README.md
index 4960698a..fe24ddce 100644
--- a/bindings/java/src/README.md
+++ b/bindings/java/src/README.md
@@ -40,7 +40,7 @@ Add this dependency to your project's POM:
io.cloudsmith.api
cloudsmith-api
- 2.0.41
+ 2.0.42
compile
```
@@ -50,7 +50,7 @@ Add this dependency to your project's POM:
Add this dependency to your project's build file:
```groovy
-compile "io.cloudsmith.api:cloudsmith-api:2.0.41"
+compile "io.cloudsmith.api:cloudsmith-api:2.0.42"
```
### Others
@@ -63,7 +63,7 @@ mvn clean package
Then manually install the following JARs:
-* `target/cloudsmith-api-2.0.41.jar`
+* `target/cloudsmith-api-2.0.42.jar`
* `target/lib/*.jar`
## Getting Started
diff --git a/bindings/java/src/build.gradle b/bindings/java/src/build.gradle
index 0f2c87f1..98894c3e 100644
--- a/bindings/java/src/build.gradle
+++ b/bindings/java/src/build.gradle
@@ -2,7 +2,7 @@ apply plugin: 'idea'
apply plugin: 'eclipse'
group = 'io.cloudsmith.api'
-version = '2.0.41'
+version = '2.0.42'
buildscript {
repositories {
diff --git a/bindings/java/src/build.json b/bindings/java/src/build.json
index c641f619..5b25c266 100644
--- a/bindings/java/src/build.json
+++ b/bindings/java/src/build.json
@@ -3,7 +3,7 @@
"apiPackage": "io.cloudsmith.api.apis",
"artifactId": "cloudsmith-api",
"artifactUrl": "https://api.cloudsmith.io/?format=openapi",
- "artifactVersion": "2.0.41",
+ "artifactVersion": "2.0.42",
"artifactDescription": "Cloudsmith API",
"dateLibrary": "java8",
"developerName": "Cloudsmith Ltd",
diff --git a/bindings/java/src/build.sbt b/bindings/java/src/build.sbt
index 309c1ea5..9b515a6f 100644
--- a/bindings/java/src/build.sbt
+++ b/bindings/java/src/build.sbt
@@ -2,7 +2,7 @@ lazy val root = (project in file(".")).
settings(
organization := "io.cloudsmith.api",
name := "cloudsmith-api",
- version := "2.0.41",
+ version := "2.0.42",
scalaVersion := "2.11.4",
scalacOptions ++= Seq("-feature"),
javacOptions in compile ++= Seq("-Xlint:deprecation"),
diff --git a/bindings/java/src/docs/RpmUpstream.md b/bindings/java/src/docs/RpmUpstream.md
index 434067c9..f7336800 100644
--- a/bindings/java/src/docs/RpmUpstream.md
+++ b/bindings/java/src/docs/RpmUpstream.md
@@ -72,6 +72,7 @@ Name | Value
---- | -----
PROXY_ONLY | "Proxy Only"
CACHE_AND_PROXY | "Cache and Proxy"
+CACHE_ONLY | "Cache Only"
diff --git a/bindings/java/src/docs/RpmUpstreamRequest.md b/bindings/java/src/docs/RpmUpstreamRequest.md
index 04bb6fa6..cd8fcfa7 100644
--- a/bindings/java/src/docs/RpmUpstreamRequest.md
+++ b/bindings/java/src/docs/RpmUpstreamRequest.md
@@ -47,6 +47,7 @@ Name | Value
---- | -----
PROXY_ONLY | "Proxy Only"
CACHE_AND_PROXY | "Cache and Proxy"
+CACHE_ONLY | "Cache Only"
diff --git a/bindings/java/src/docs/RpmUpstreamRequestPatch.md b/bindings/java/src/docs/RpmUpstreamRequestPatch.md
index 5bd03c27..01870185 100644
--- a/bindings/java/src/docs/RpmUpstreamRequestPatch.md
+++ b/bindings/java/src/docs/RpmUpstreamRequestPatch.md
@@ -47,6 +47,7 @@ Name | Value
---- | -----
PROXY_ONLY | "Proxy Only"
CACHE_AND_PROXY | "Cache and Proxy"
+CACHE_ONLY | "Cache Only"
diff --git a/bindings/java/src/pom.xml b/bindings/java/src/pom.xml
index 790d2ae3..9292a315 100644
--- a/bindings/java/src/pom.xml
+++ b/bindings/java/src/pom.xml
@@ -6,7 +6,7 @@
jar
cloudsmith-api
- 2.0.41
+ 2.0.42
https://api.cloudsmith.io/?format=openapi
Cloudsmith API
diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/ApiClient.java b/bindings/java/src/src/main/java/io/cloudsmith/api/ApiClient.java
index cd71ad74..b6a52d8e 100644
--- a/bindings/java/src/src/main/java/io/cloudsmith/api/ApiClient.java
+++ b/bindings/java/src/src/main/java/io/cloudsmith/api/ApiClient.java
@@ -87,7 +87,7 @@ public ApiClient() {
json = new JSON();
// Set default User-Agent.
- setUserAgent("Swagger-Codegen/2.0.41/java");
+ setUserAgent("Swagger-Codegen/2.0.42/java");
// Setup authentications (key: authentication name, value: authentication).
authentications = new HashMap();
diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/RpmUpstream.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/RpmUpstream.java
index 6157506c..56cc225c 100644
--- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/RpmUpstream.java
+++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/RpmUpstream.java
@@ -260,7 +260,9 @@ public GpgVerificationEnum read(final JsonReader jsonReader) throws IOException
public enum ModeEnum {
PROXY_ONLY("Proxy Only"),
- CACHE_AND_PROXY("Cache and Proxy");
+ CACHE_AND_PROXY("Cache and Proxy"),
+
+ CACHE_ONLY("Cache Only");
private String value;
diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/RpmUpstreamRequest.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/RpmUpstreamRequest.java
index 11e7f8e9..127eabfa 100644
--- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/RpmUpstreamRequest.java
+++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/RpmUpstreamRequest.java
@@ -176,7 +176,9 @@ public GpgVerificationEnum read(final JsonReader jsonReader) throws IOException
public enum ModeEnum {
PROXY_ONLY("Proxy Only"),
- CACHE_AND_PROXY("Cache and Proxy");
+ CACHE_AND_PROXY("Cache and Proxy"),
+
+ CACHE_ONLY("Cache Only");
private String value;
diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/RpmUpstreamRequestPatch.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/RpmUpstreamRequestPatch.java
index 25014433..eedf14d9 100644
--- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/RpmUpstreamRequestPatch.java
+++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/RpmUpstreamRequestPatch.java
@@ -176,7 +176,9 @@ public GpgVerificationEnum read(final JsonReader jsonReader) throws IOException
public enum ModeEnum {
PROXY_ONLY("Proxy Only"),
- CACHE_AND_PROXY("Cache and Proxy");
+ CACHE_AND_PROXY("Cache and Proxy"),
+
+ CACHE_ONLY("Cache Only");
private String value;
diff --git a/bindings/python/src/README.md b/bindings/python/src/README.md
index b9bcb05a..62dd7198 100644
--- a/bindings/python/src/README.md
+++ b/bindings/python/src/README.md
@@ -4,7 +4,7 @@ The API to the Cloudsmith Service
This Python package is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
- API version: v1
-- Package version: 2.0.41
+- Package version: 2.0.42
- Build package: io.swagger.codegen.languages.PythonClientCodegen
For more information, please visit [https://help.cloudsmith.io](https://help.cloudsmith.io)
diff --git a/bindings/python/src/build.json b/bindings/python/src/build.json
index cd6a9eca..efce2b06 100644
--- a/bindings/python/src/build.json
+++ b/bindings/python/src/build.json
@@ -2,7 +2,7 @@
"hideGenerationTimestamp": true,
"packageName": "cloudsmith_api",
"projectName": "cloudsmith_api",
- "packageVersion": "2.0.41",
+ "packageVersion": "2.0.42",
"packageUrl": "https://api.cloudsmith.io/?format=openapi",
"sortParamsByRequiredFlag": true
}
diff --git a/bindings/python/src/cloudsmith_api/api_client.py b/bindings/python/src/cloudsmith_api/api_client.py
index e19af5c5..5abbbcf2 100644
--- a/bindings/python/src/cloudsmith_api/api_client.py
+++ b/bindings/python/src/cloudsmith_api/api_client.py
@@ -74,7 +74,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None,
self.default_headers[header_name] = header_value
self.cookie = cookie
# Set default User-Agent.
- self.user_agent = 'Swagger-Codegen/2.0.41/python'
+ self.user_agent = 'Swagger-Codegen/2.0.42/python'
self.client_side_validation = configuration.client_side_validation
def __del__(self):
diff --git a/bindings/python/src/cloudsmith_api/configuration.py b/bindings/python/src/cloudsmith_api/configuration.py
index d38dda9a..f5f952f8 100644
--- a/bindings/python/src/cloudsmith_api/configuration.py
+++ b/bindings/python/src/cloudsmith_api/configuration.py
@@ -249,5 +249,5 @@ def to_debug_report(self):
"OS: {env}\n"\
"Python Version: {pyversion}\n"\
"Version of the API: v1\n"\
- "SDK Package Version: 2.0.41".\
+ "SDK Package Version: 2.0.42".\
format(env=sys.platform, pyversion=sys.version)
diff --git a/bindings/python/src/cloudsmith_api/models/rpm_upstream.py b/bindings/python/src/cloudsmith_api/models/rpm_upstream.py
index 63464287..a7cbfd45 100644
--- a/bindings/python/src/cloudsmith_api/models/rpm_upstream.py
+++ b/bindings/python/src/cloudsmith_api/models/rpm_upstream.py
@@ -805,7 +805,7 @@ def mode(self, mode):
:param mode: The mode of this RpmUpstream.
:type: str
"""
- allowed_values = ["Proxy Only", "Cache and Proxy"] # noqa: E501
+ allowed_values = ["Proxy Only", "Cache and Proxy", "Cache Only"] # noqa: E501
if (self._configuration.client_side_validation and
mode not in allowed_values):
raise ValueError(
diff --git a/bindings/python/src/cloudsmith_api/models/rpm_upstream_request.py b/bindings/python/src/cloudsmith_api/models/rpm_upstream_request.py
index 8fd416ce..e3c6b196 100644
--- a/bindings/python/src/cloudsmith_api/models/rpm_upstream_request.py
+++ b/bindings/python/src/cloudsmith_api/models/rpm_upstream_request.py
@@ -502,7 +502,7 @@ def mode(self, mode):
:param mode: The mode of this RpmUpstreamRequest.
:type: str
"""
- allowed_values = ["Proxy Only", "Cache and Proxy"] # noqa: E501
+ allowed_values = ["Proxy Only", "Cache and Proxy", "Cache Only"] # noqa: E501
if (self._configuration.client_side_validation and
mode not in allowed_values):
raise ValueError(
diff --git a/bindings/python/src/cloudsmith_api/models/rpm_upstream_request_patch.py b/bindings/python/src/cloudsmith_api/models/rpm_upstream_request_patch.py
index 4cb65bba..90af0449 100644
--- a/bindings/python/src/cloudsmith_api/models/rpm_upstream_request_patch.py
+++ b/bindings/python/src/cloudsmith_api/models/rpm_upstream_request_patch.py
@@ -503,7 +503,7 @@ def mode(self, mode):
:param mode: The mode of this RpmUpstreamRequestPatch.
:type: str
"""
- allowed_values = ["Proxy Only", "Cache and Proxy"] # noqa: E501
+ allowed_values = ["Proxy Only", "Cache and Proxy", "Cache Only"] # noqa: E501
if (self._configuration.client_side_validation and
mode not in allowed_values):
raise ValueError(
diff --git a/bindings/python/src/setup.py b/bindings/python/src/setup.py
index 6c03bb98..2d0423ac 100644
--- a/bindings/python/src/setup.py
+++ b/bindings/python/src/setup.py
@@ -14,7 +14,7 @@
from setuptools import find_packages, setup # noqa: H301
NAME = "cloudsmith_api"
-VERSION = "2.0.41"
+VERSION = "2.0.42"
# To install the library, run the following
#
# python setup.py install
diff --git a/bindings/ruby/src/README.md b/bindings/ruby/src/README.md
index 3b3c725a..97ab6e52 100644
--- a/bindings/ruby/src/README.md
+++ b/bindings/ruby/src/README.md
@@ -7,7 +7,7 @@ The API to the Cloudsmith Service
This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
- API version: v1
-- Package version: 2.0.41
+- Package version: 2.0.42
- Build package: io.swagger.codegen.languages.RubyClientCodegen
For more information, please visit [https://help.cloudsmith.io](https://help.cloudsmith.io)
@@ -24,15 +24,15 @@ gem build cloudsmith-api.gemspec
Then either install the gem locally:
```shell
-gem install ./cloudsmith-api-2.0.41.gem
+gem install ./cloudsmith-api-2.0.42.gem
```
-(for development, run `gem install --dev ./cloudsmith-api-2.0.41.gem` to install the development dependencies)
+(for development, run `gem install --dev ./cloudsmith-api-2.0.42.gem` to install the development dependencies)
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
Finally add this to the Gemfile:
- gem 'cloudsmith-api', '~> 2.0.41'
+ gem 'cloudsmith-api', '~> 2.0.42'
### Install from Git
diff --git a/bindings/ruby/src/build.json b/bindings/ruby/src/build.json
index 69afff2b..d949a7e7 100644
--- a/bindings/ruby/src/build.json
+++ b/bindings/ruby/src/build.json
@@ -8,7 +8,7 @@
"gemName": "cloudsmith-api",
"gemRequiredRubyVersion": ">= 1.9",
"gemSummary": "Cloudsmith API",
- "gemVersion": "2.0.41",
+ "gemVersion": "2.0.42",
"hideGenerationTimestamp": true,
"moduleName": "CloudsmithApi",
"sortParamsByRequiredFlag": true
diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/rpm_upstream.rb b/bindings/ruby/src/lib/cloudsmith-api/models/rpm_upstream.rb
index 0a4c9e14..36a5df81 100644
--- a/bindings/ruby/src/lib/cloudsmith-api/models/rpm_upstream.rb
+++ b/bindings/ruby/src/lib/cloudsmith-api/models/rpm_upstream.rb
@@ -380,7 +380,7 @@ def valid?
return false if @distro_version.nil?
gpg_verification_validator = EnumAttributeValidator.new('String', ['Allow All', 'Warn on Invalid', 'Reject Invalid'])
return false unless gpg_verification_validator.valid?(@gpg_verification)
- mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy'])
+ mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only'])
return false unless mode_validator.valid?(@mode)
return false if @name.nil?
return false if @upstream_url.nil?
@@ -422,7 +422,7 @@ def gpg_verification=(gpg_verification)
# Custom attribute writer method checking allowed values (enum).
# @param [Object] mode Object to be assigned
def mode=(mode)
- validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy'])
+ validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only'])
unless validator.valid?(mode)
fail ArgumentError, 'invalid value for "mode", must be one of #{validator.allowable_values}.'
end
diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/rpm_upstream_request.rb b/bindings/ruby/src/lib/cloudsmith-api/models/rpm_upstream_request.rb
index 47a65c44..f412461b 100644
--- a/bindings/ruby/src/lib/cloudsmith-api/models/rpm_upstream_request.rb
+++ b/bindings/ruby/src/lib/cloudsmith-api/models/rpm_upstream_request.rb
@@ -252,7 +252,7 @@ def valid?
return false if @distro_version.nil?
gpg_verification_validator = EnumAttributeValidator.new('String', ['Allow All', 'Warn on Invalid', 'Reject Invalid'])
return false unless gpg_verification_validator.valid?(@gpg_verification)
- mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy'])
+ mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only'])
return false unless mode_validator.valid?(@mode)
return false if @name.nil?
return false if @upstream_url.nil?
@@ -282,7 +282,7 @@ def gpg_verification=(gpg_verification)
# Custom attribute writer method checking allowed values (enum).
# @param [Object] mode Object to be assigned
def mode=(mode)
- validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy'])
+ validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only'])
unless validator.valid?(mode)
fail ArgumentError, 'invalid value for "mode", must be one of #{validator.allowable_values}.'
end
diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/rpm_upstream_request_patch.rb b/bindings/ruby/src/lib/cloudsmith-api/models/rpm_upstream_request_patch.rb
index 16f143f9..d00139fb 100644
--- a/bindings/ruby/src/lib/cloudsmith-api/models/rpm_upstream_request_patch.rb
+++ b/bindings/ruby/src/lib/cloudsmith-api/models/rpm_upstream_request_patch.rb
@@ -239,7 +239,7 @@ def valid?
return false unless auth_mode_validator.valid?(@auth_mode)
gpg_verification_validator = EnumAttributeValidator.new('String', ['Allow All', 'Warn on Invalid', 'Reject Invalid'])
return false unless gpg_verification_validator.valid?(@gpg_verification)
- mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy'])
+ mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only'])
return false unless mode_validator.valid?(@mode)
true
end
@@ -267,7 +267,7 @@ def gpg_verification=(gpg_verification)
# Custom attribute writer method checking allowed values (enum).
# @param [Object] mode Object to be assigned
def mode=(mode)
- validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy'])
+ validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only'])
unless validator.valid?(mode)
fail ArgumentError, 'invalid value for "mode", must be one of #{validator.allowable_values}.'
end
diff --git a/bindings/ruby/src/lib/cloudsmith-api/version.rb b/bindings/ruby/src/lib/cloudsmith-api/version.rb
index 74c7beff..2c6b1a3e 100644
--- a/bindings/ruby/src/lib/cloudsmith-api/version.rb
+++ b/bindings/ruby/src/lib/cloudsmith-api/version.rb
@@ -11,5 +11,5 @@
=end
module CloudsmithApi
- VERSION = '2.0.41'
+ VERSION = '2.0.42'
end
diff --git a/bindings/ruby/src/spec/models/rpm_upstream_request_patch_spec.rb b/bindings/ruby/src/spec/models/rpm_upstream_request_patch_spec.rb
index bca1f7a0..4c7503c2 100644
--- a/bindings/ruby/src/spec/models/rpm_upstream_request_patch_spec.rb
+++ b/bindings/ruby/src/spec/models/rpm_upstream_request_patch_spec.rb
@@ -121,7 +121,7 @@
describe 'test attribute "mode"' do
it 'should work' do
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
- # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["Proxy Only", "Cache and Proxy"])
+ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["Proxy Only", "Cache and Proxy", "Cache Only"])
# validator.allowable_values.each do |value|
# expect { @instance.mode = value }.not_to raise_error
# end
diff --git a/bindings/ruby/src/spec/models/rpm_upstream_request_spec.rb b/bindings/ruby/src/spec/models/rpm_upstream_request_spec.rb
index 2cf71b10..e31086e9 100644
--- a/bindings/ruby/src/spec/models/rpm_upstream_request_spec.rb
+++ b/bindings/ruby/src/spec/models/rpm_upstream_request_spec.rb
@@ -121,7 +121,7 @@
describe 'test attribute "mode"' do
it 'should work' do
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
- # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["Proxy Only", "Cache and Proxy"])
+ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["Proxy Only", "Cache and Proxy", "Cache Only"])
# validator.allowable_values.each do |value|
# expect { @instance.mode = value }.not_to raise_error
# end
diff --git a/bindings/ruby/src/spec/models/rpm_upstream_spec.rb b/bindings/ruby/src/spec/models/rpm_upstream_spec.rb
index 5521859b..ff33f559 100644
--- a/bindings/ruby/src/spec/models/rpm_upstream_spec.rb
+++ b/bindings/ruby/src/spec/models/rpm_upstream_spec.rb
@@ -185,7 +185,7 @@
describe 'test attribute "mode"' do
it 'should work' do
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
- # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["Proxy Only", "Cache and Proxy"])
+ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["Proxy Only", "Cache and Proxy", "Cache Only"])
# validator.allowable_values.each do |value|
# expect { @instance.mode = value }.not_to raise_error
# end
diff --git a/scripts/common.sh b/scripts/common.sh
index adff0ca1..ff200b08 100755
--- a/scripts/common.sh
+++ b/scripts/common.sh
@@ -3,7 +3,7 @@ language=${1:-""}
api_url=${2:-${api_url:-"https://api.cloudsmith.io/"}}
api_version=$(curl -s "${api_url}status/check/basic/" | jq -r '.version')
openapi_url="${api_url}?format=openapi"
-package_version="2.0.41"
+package_version="2.0.42"
# Dependabot updates the image in codegen/Dockerfile.
swagger_codegen_cli_image=$(awk '/^FROM / {print $2}' "$root_dir/codegen/Dockerfile")