Skip to content

Commit

Permalink
Merge pull request #51 from cloudsmith-io/update-bindings-2-0-10
Browse files Browse the repository at this point in the history
Update bindings: v2.0.10
  • Loading branch information
jackgibson1 authored Feb 23, 2024
2 parents c8cb1e4 + df4d3b3 commit 827ee1d
Show file tree
Hide file tree
Showing 27 changed files with 109 additions and 28 deletions.
6 changes: 3 additions & 3 deletions bindings/java/src/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ Add this dependency to your project's POM:
<dependency>
<groupId>io.cloudsmith.api</groupId>
<artifactId>cloudsmith-api</artifactId>
<version>2.0.9</version>
<version>2.0.10</version>
<scope>compile</scope>
</dependency>
```
Expand All @@ -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.9"
compile "io.cloudsmith.api:cloudsmith-api:2.0.10"
```

### Others
Expand All @@ -63,7 +63,7 @@ mvn clean package

Then manually install the following JARs:

* `target/cloudsmith-api-2.0.9.jar`
* `target/cloudsmith-api-2.0.10.jar`
* `target/lib/*.jar`

## Getting Started
Expand Down
2 changes: 1 addition & 1 deletion bindings/java/src/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apply plugin: 'idea'
apply plugin: 'eclipse'

group = 'io.cloudsmith.api'
version = '2.0.9'
version = '2.0.10'

buildscript {
repositories {
Expand Down
2 changes: 1 addition & 1 deletion bindings/java/src/build.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"apiPackage": "io.cloudsmith.api.apis",
"artifactId": "cloudsmith-api",
"artifactUrl": "https://api.cloudsmith.io/?format=openapi",
"artifactVersion": "2.0.9",
"artifactVersion": "2.0.10",
"artifactDescription": "Cloudsmith API",
"dateLibrary": "java8",
"developerName": "Cloudsmith Ltd",
Expand Down
2 changes: 1 addition & 1 deletion bindings/java/src/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ lazy val root = (project in file(".")).
settings(
organization := "io.cloudsmith.api",
name := "cloudsmith-api",
version := "2.0.9",
version := "2.0.10",
scalaVersion := "2.11.4",
scalacOptions ++= Seq("-feature"),
javacOptions in compile ++= Seq("-Xlint:deprecation"),
Expand Down
1 change: 1 addition & 0 deletions bindings/java/src/docs/DebPackageUploadRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**changesFile** | **String** | The changes archive containing the changes made to the source and debian packaging files | [optional]
**component** | **String** | The component (channel) for the package (e.g. &#39;main&#39;, &#39;unstable&#39;, etc.) | [optional]
**distribution** | **String** | The distribution to store the package for. |
**packageFile** | **String** | The primary file for the package. |
**republish** | **Boolean** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional]
Expand Down
2 changes: 1 addition & 1 deletion bindings/java/src/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<artifactId>cloudsmith-api</artifactId>
<packaging>jar</packaging>
<name>cloudsmith-api</name>
<version>2.0.9</version>
<version>2.0.10</version>
<url>https://api.cloudsmith.io/?format&#x3D;openapi</url>
<description>Cloudsmith API</description>
<scm>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public ApiClient() {
json = new JSON();

// Set default User-Agent.
setUserAgent("Swagger-Codegen/2.0.9/java");
setUserAgent("Swagger-Codegen/2.0.10/java");

// Setup authentications (key: authentication name, value: authentication).
authentications = new HashMap<String, Authentication>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ public class DebPackageUploadRequest implements Serializable {
@SerializedName("changes_file")
private String changesFile = null;

@SerializedName("component")
private String component = "main";

@SerializedName("distribution")
private String distribution = null;

Expand Down Expand Up @@ -70,6 +73,24 @@ public void setChangesFile(String changesFile) {
this.changesFile = changesFile;
}

public DebPackageUploadRequest component(String component) {
this.component = component;
return this;
}

/**
* The component (channel) for the package (e.g. &#39;main&#39;, &#39;unstable&#39;, etc.)
* @return component
**/
@Pattern(regexp="^[-_.\\w]+$") @Size(min=1,max=64) @ApiModelProperty(value = "The component (channel) for the package (e.g. 'main', 'unstable', etc.)")
public String getComponent() {
return component;
}

public void setComponent(String component) {
this.component = component;
}

public DebPackageUploadRequest distribution(String distribution) {
this.distribution = distribution;
return this;
Expand Down Expand Up @@ -173,6 +194,7 @@ public boolean equals(java.lang.Object o) {
}
DebPackageUploadRequest debPackageUploadRequest = (DebPackageUploadRequest) o;
return Objects.equals(this.changesFile, debPackageUploadRequest.changesFile) &&
Objects.equals(this.component, debPackageUploadRequest.component) &&
Objects.equals(this.distribution, debPackageUploadRequest.distribution) &&
Objects.equals(this.packageFile, debPackageUploadRequest.packageFile) &&
Objects.equals(this.republish, debPackageUploadRequest.republish) &&
Expand All @@ -182,7 +204,7 @@ public boolean equals(java.lang.Object o) {

@Override
public int hashCode() {
return Objects.hash(changesFile, distribution, packageFile, republish, sourcesFile, tags);
return Objects.hash(changesFile, component, distribution, packageFile, republish, sourcesFile, tags);
}


Expand All @@ -192,6 +214,7 @@ public String toString() {
sb.append("class DebPackageUploadRequest {\n");

sb.append(" changesFile: ").append(toIndentedString(changesFile)).append("\n");
sb.append(" component: ").append(toIndentedString(component)).append("\n");
sb.append(" distribution: ").append(toIndentedString(distribution)).append("\n");
sb.append(" packageFile: ").append(toIndentedString(packageFile)).append("\n");
sb.append(" republish: ").append(toIndentedString(republish)).append("\n");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public class StatusBasic implements Serializable {
private String detail = "Cloudsmith API is operational.";

@SerializedName("version")
private String version = "1.355.2";
private String version = "1.363.0";

/**
* The message describing the state of the API.
Expand Down
2 changes: 1 addition & 1 deletion bindings/python/src/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.9
- Package version: 2.0.10
- Build package: io.swagger.codegen.languages.PythonClientCodegen
For more information, please visit [https://help.cloudsmith.io](https://help.cloudsmith.io)

Expand Down
2 changes: 1 addition & 1 deletion bindings/python/src/build.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"hideGenerationTimestamp": true,
"packageName": "cloudsmith_api",
"projectName": "cloudsmith-api",
"packageVersion": "2.0.9",
"packageVersion": "2.0.10",
"packageUrl": "https://api.cloudsmith.io/?format=openapi",
"sortParamsByRequiredFlag": true
}
2 changes: 1 addition & 1 deletion bindings/python/src/cloudsmith_api/api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.9/python'
self.user_agent = 'Swagger-Codegen/2.0.10/python'
self.client_side_validation = configuration.client_side_validation

def __del__(self):
Expand Down
2 changes: 1 addition & 1 deletion bindings/python/src/cloudsmith_api/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,5 +258,5 @@ def to_debug_report(self):
"OS: {env}\n"\
"Python Version: {pyversion}\n"\
"Version of the API: v1\n"\
"SDK Package Version: 2.0.9".\
"SDK Package Version: 2.0.10".\
format(env=sys.platform, pyversion=sys.version)
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ class DebPackageUploadRequest(object):
"""
swagger_types = {
'changes_file': 'str',
'component': 'str',
'distribution': 'str',
'package_file': 'str',
'republish': 'bool',
Expand All @@ -43,20 +44,22 @@ class DebPackageUploadRequest(object):

attribute_map = {
'changes_file': 'changes_file',
'component': 'component',
'distribution': 'distribution',
'package_file': 'package_file',
'republish': 'republish',
'sources_file': 'sources_file',
'tags': 'tags'
}

def __init__(self, changes_file=None, distribution=None, package_file=None, republish=None, sources_file=None, tags=None, _configuration=None): # noqa: E501
def __init__(self, changes_file=None, component='main', distribution=None, package_file=None, republish=None, sources_file=None, tags=None, _configuration=None): # noqa: E501
"""DebPackageUploadRequest - a model defined in Swagger""" # noqa: E501
if _configuration is None:
_configuration = Configuration()
self._configuration = _configuration

self._changes_file = None
self._component = None
self._distribution = None
self._package_file = None
self._republish = None
Expand All @@ -66,6 +69,8 @@ def __init__(self, changes_file=None, distribution=None, package_file=None, repu

if changes_file is not None:
self.changes_file = changes_file
if component is not None:
self.component = component
self.distribution = distribution
self.package_file = package_file
if republish is not None:
Expand Down Expand Up @@ -101,6 +106,38 @@ def changes_file(self, changes_file):

self._changes_file = changes_file

@property
def component(self):
"""Gets the component of this DebPackageUploadRequest.
The component (channel) for the package (e.g. 'main', 'unstable', etc.)
:return: The component of this DebPackageUploadRequest.
:rtype: str
"""
return self._component

@component.setter
def component(self, component):
"""Sets the component of this DebPackageUploadRequest.
The component (channel) for the package (e.g. 'main', 'unstable', etc.)
:param component: The component of this DebPackageUploadRequest.
:type: str
"""
if (self._configuration.client_side_validation and
component is not None and len(component) > 64):
raise ValueError("Invalid value for `component`, length must be less than or equal to `64`") # noqa: E501
if (self._configuration.client_side_validation and
component is not None and len(component) < 1):
raise ValueError("Invalid value for `component`, length must be greater than or equal to `1`") # noqa: E501
if (self._configuration.client_side_validation and
component is not None and not re.search('^[-_.\\w]+$', component)): # noqa: E501
raise ValueError(r"Invalid value for `component`, must be a follow pattern or equal to `/^[-_.\\w]+$/`") # noqa: E501

self._component = component

@property
def distribution(self):
"""Gets the distribution of this DebPackageUploadRequest.
Expand Down
2 changes: 1 addition & 1 deletion bindings/python/src/cloudsmith_api/models/status_basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class StatusBasic(object):
'version': 'version'
}

def __init__(self, detail='Cloudsmith API is operational.', version='1.355.2', _configuration=None): # noqa: E501
def __init__(self, detail='Cloudsmith API is operational.', version='1.363.0', _configuration=None): # noqa: E501
"""StatusBasic - a model defined in Swagger""" # noqa: E501
if _configuration is None:
_configuration = Configuration()
Expand Down
1 change: 1 addition & 0 deletions bindings/python/src/docs/DebPackageUploadRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**changes_file** | **str** | The changes archive containing the changes made to the source and debian packaging files | [optional]
**component** | **str** | The component (channel) for the package (e.g. &#39;main&#39;, &#39;unstable&#39;, etc.) | [optional] [default to 'main']
**distribution** | **str** | The distribution to store the package for. |
**package_file** | **str** | The primary file for the package. |
**republish** | **bool** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional]
Expand Down
2 changes: 1 addition & 1 deletion bindings/python/src/docs/StatusBasic.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**detail** | **str** | The message describing the state of the API. | [optional] [default to 'Cloudsmith API is operational.']
**version** | **str** | The current version for the Cloudsmith service. | [optional] [default to '1.355.2']
**version** | **str** | The current version for the Cloudsmith service. | [optional] [default to '1.363.0']

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Expand Down
2 changes: 1 addition & 1 deletion bindings/python/src/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
from setuptools import setup, find_packages # noqa: H301

NAME = "cloudsmith-api"
VERSION = "2.0.9"
VERSION = "2.0.10"
# To install the library, run the following
#
# python setup.py install
Expand Down
8 changes: 4 additions & 4 deletions bindings/ruby/src/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.9
- Package version: 2.0.10
- Build package: io.swagger.codegen.languages.RubyClientCodegen
For more information, please visit [https://help.cloudsmith.io](https://help.cloudsmith.io)

Expand All @@ -24,15 +24,15 @@ gem build cloudsmith-api.gemspec
Then either install the gem locally:

```shell
gem install ./cloudsmith-api-2.0.9.gem
gem install ./cloudsmith-api-2.0.10.gem
```
(for development, run `gem install --dev ./cloudsmith-api-2.0.9.gem` to install the development dependencies)
(for development, run `gem install --dev ./cloudsmith-api-2.0.10.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.9'
gem 'cloudsmith-api', '~> 2.0.10'

### Install from Git

Expand Down
2 changes: 1 addition & 1 deletion bindings/ruby/src/build.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"gemName": "cloudsmith-api",
"gemRequiredRubyVersion": ">= 1.9",
"gemSummary": "Cloudsmith API",
"gemVersion": "2.0.9",
"gemVersion": "2.0.10",
"hideGenerationTimestamp": true,
"moduleName": "CloudsmithApi",
"sortParamsByRequiredFlag": true
Expand Down
1 change: 1 addition & 0 deletions bindings/ruby/src/docs/DebPackageUploadRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**changes_file** | **String** | The changes archive containing the changes made to the source and debian packaging files | [optional]
**component** | **String** | The component (channel) for the package (e.g. &#39;main&#39;, &#39;unstable&#39;, etc.) | [optional] [default to &#39;main&#39;]
**distribution** | **String** | The distribution to store the package for. |
**package_file** | **String** | The primary file for the package. |
**republish** | **BOOLEAN** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional]
Expand Down
2 changes: 1 addition & 1 deletion bindings/ruby/src/docs/StatusBasic.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**detail** | **String** | The message describing the state of the API. | [optional] [default to &#39;Cloudsmith API is operational.&#39;]
**version** | **String** | The current version for the Cloudsmith service. | [optional] [default to &#39;1.355.2&#39;]
**version** | **String** | The current version for the Cloudsmith service. | [optional] [default to &#39;1.363.0&#39;]


Loading

0 comments on commit 827ee1d

Please sign in to comment.