Skip to content

Commit ebea53a

Browse files
chore: reapply PR #83 with verified signatures (#84)
* feat: update to use swagger-codegen-cli v2.4.50 This mainly to pick up the fixes for generated python bindings logging, which wasn't following python best practice for stream handling. The complete changelog for swagger-codegen can be found at: https://github.com/swagger-api/swagger-codegen/releases (cherry picked from commit 6afcd9d) * feat: update bindings to v2.0.23 (cherry picked from commit ccf7f36) * Update API bindings to version 2.0.23 - Regenerated bindings for Python, Ruby, and Java (cherry picked from commit 008cbd4) * update ruby test commands to support running tests on 3.4 locally (cherry picked from commit a7a9585) * pre-commit with ruff --------- Co-authored-by: Nick Brown <nickbroon@graphiant.com>
1 parent 5c6115f commit ebea53a

File tree

978 files changed

+16252
-864
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

978 files changed

+16252
-864
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.4.43
1+
2.4.50

bindings/java/src/README.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Add this dependency to your project's POM:
4040
<dependency>
4141
<groupId>io.cloudsmith.api</groupId>
4242
<artifactId>cloudsmith-api</artifactId>
43-
<version>2.0.22</version>
43+
<version>2.0.23</version>
4444
<scope>compile</scope>
4545
</dependency>
4646
```
@@ -50,7 +50,7 @@ Add this dependency to your project's POM:
5050
Add this dependency to your project's build file:
5151

5252
```groovy
53-
compile "io.cloudsmith.api:cloudsmith-api:2.0.22"
53+
compile "io.cloudsmith.api:cloudsmith-api:2.0.23"
5454
```
5555

5656
### Others
@@ -63,7 +63,7 @@ mvn clean package
6363

6464
Then manually install the following JARs:
6565

66-
* `target/cloudsmith-api-2.0.22.jar`
66+
* `target/cloudsmith-api-2.0.23.jar`
6767
* `target/lib/*.jar`
6868

6969
## Getting Started
@@ -122,6 +122,7 @@ Class | Method | HTTP request | Description
122122
*AuditLogApi* | [**auditLogNamespaceList**](docs/AuditLogApi.md#auditLogNamespaceList) | **GET** /audit-log/{owner}/ | Lists audit log entries for a specific namespace.
123123
*AuditLogApi* | [**auditLogRepoList**](docs/AuditLogApi.md#auditLogRepoList) | **GET** /audit-log/{owner}/{repo}/ | Lists audit log entries for a specific repository.
124124
*BadgesApi* | [**badgesVersionList**](docs/BadgesApi.md#badgesVersionList) | **GET** /badges/version/{owner}/{repo}/{package_format}/{package_name}/{package_version}/{package_identifiers}/ | Get latest package version for a package or package group.
125+
*BroadcastsApi* | [**broadcastsCreateBroadcastToken**](docs/BroadcastsApi.md#broadcastsCreateBroadcastToken) | **POST** /broadcasts/{org}/broadcast-token/ | Create a broadcast token.
125126
*DistrosApi* | [**distrosList**](docs/DistrosApi.md#distrosList) | **GET** /distros/ | Get a list of all supported distributions.
126127
*DistrosApi* | [**distrosRead**](docs/DistrosApi.md#distrosRead) | **GET** /distros/{slug}/ | View for viewing/listing distributions.
127128
*EntitlementsApi* | [**entitlementsCreate**](docs/EntitlementsApi.md#entitlementsCreate) | **POST** /entitlements/{owner}/{repo}/ | Create a specific entitlement in a repository.
@@ -454,6 +455,8 @@ Class | Method | HTTP request | Description
454455
- [AlpinePackageUpload](docs/AlpinePackageUpload.md)
455456
- [AlpinePackageUploadRequest](docs/AlpinePackageUploadRequest.md)
456457
- [Architecture](docs/Architecture.md)
458+
- [BroadcastToken](docs/BroadcastToken.md)
459+
- [BroadcastTokenInput](docs/BroadcastTokenInput.md)
457460
- [CargoPackageUpload](docs/CargoPackageUpload.md)
458461
- [CargoPackageUploadRequest](docs/CargoPackageUploadRequest.md)
459462
- [CargoUpstream](docs/CargoUpstream.md)

bindings/java/src/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apply plugin: 'idea'
22
apply plugin: 'eclipse'
33

44
group = 'io.cloudsmith.api'
5-
version = '2.0.22'
5+
version = '2.0.23'
66

77
buildscript {
88
repositories {

bindings/java/src/build.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"apiPackage": "io.cloudsmith.api.apis",
44
"artifactId": "cloudsmith-api",
55
"artifactUrl": "https://api.cloudsmith.io/?format=openapi",
6-
"artifactVersion": "2.0.22",
6+
"artifactVersion": "2.0.23",
77
"artifactDescription": "Cloudsmith API",
88
"dateLibrary": "java8",
99
"developerName": "Cloudsmith Ltd",

bindings/java/src/build.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ lazy val root = (project in file(".")).
22
settings(
33
organization := "io.cloudsmith.api",
44
name := "cloudsmith-api",
5-
version := "2.0.22",
5+
version := "2.0.23",
66
scalaVersion := "2.11.4",
77
scalacOptions ++= Seq("-feature"),
88
javacOptions in compile ++= Seq("-Xlint:deprecation"),

bindings/java/src/docs/AlpinePackageUpload.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ Name | Type | Description | Notes
5151
**originRepositoryUrl** | **String** | | [optional]
5252
**packageType** | **java.math.BigInteger** | The type of package contents. | [optional]
5353
**policyViolated** | **Boolean** | Whether or not the package has violated any policy. | [optional]
54+
**rawLicense** | **String** | The raw license string. | [optional]
5455
**release** | **String** | The release of the package version (if any). | [optional]
5556
**repository** | **String** | | [optional]
5657
**repositoryUrl** | **String** | | [optional]
@@ -64,6 +65,7 @@ Name | Type | Description | Notes
6465
**size** | **java.math.BigInteger** | The calculated size of the package. | [optional]
6566
**slug** | **String** | The public unique identifier for the package. | [optional]
6667
**slugPerm** | **String** | | [optional]
68+
**spdxLicense** | **String** | The SPDX license identifier for this package. | [optional]
6769
**stage** | **java.math.BigInteger** | The synchronisation (in progress) stage of the package. | [optional]
6870
**stageStr** | **String** | | [optional]
6971
**stageUpdatedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The datetime the package stage was updated at. | [optional]
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
2+
# BroadcastToken
3+
4+
## Properties
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**expiresAt** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional]
8+
**token** | **String** | | [optional]
9+
10+
11+
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
2+
# BroadcastTokenInput
3+
4+
## Properties
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**entitlementToken** | **String** | Repository entitlement token used to authorize the creation of a broadcast token |
8+
**expiresIn** | **java.math.BigInteger** | Token expiry time in seconds (optional, defaults to 3600 seconds) | [optional]
9+
10+
11+
Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
# BroadcastsApi
2+
3+
All URIs are relative to *https://api.cloudsmith.io*
4+
5+
Method | HTTP request | Description
6+
------------- | ------------- | -------------
7+
[**broadcastsCreateBroadcastToken**](BroadcastsApi.md#broadcastsCreateBroadcastToken) | **POST** /broadcasts/{org}/broadcast-token/ | Create a broadcast token.
8+
9+
10+
<a name="broadcastsCreateBroadcastToken"></a>
11+
# **broadcastsCreateBroadcastToken**
12+
> BroadcastToken broadcastsCreateBroadcastToken(org, data)
13+
14+
Create a broadcast token.
15+
16+
Create a broadcast token.
17+
18+
### Example
19+
```java
20+
// Import classes:
21+
//import io.cloudsmith.api.ApiClient;
22+
//import io.cloudsmith.api.ApiException;
23+
//import io.cloudsmith.api.Configuration;
24+
//import io.cloudsmith.api.auth.*;
25+
//import io.cloudsmith.api.apis.BroadcastsApi;
26+
27+
ApiClient defaultClient = Configuration.getDefaultApiClient();
28+
29+
// Configure API key authorization: apikey
30+
ApiKeyAuth apikey = (ApiKeyAuth) defaultClient.getAuthentication("apikey");
31+
apikey.setApiKey("YOUR API KEY");
32+
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
33+
//apikey.setApiKeyPrefix("Token");
34+
35+
// Configure HTTP basic authorization: basic
36+
HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic");
37+
basic.setUsername("YOUR USERNAME");
38+
basic.setPassword("YOUR PASSWORD");
39+
40+
BroadcastsApi apiInstance = new BroadcastsApi();
41+
String org = "org_example"; // String |
42+
BroadcastTokenInput data = new BroadcastTokenInput(); // BroadcastTokenInput |
43+
try {
44+
BroadcastToken result = apiInstance.broadcastsCreateBroadcastToken(org, data);
45+
System.out.println(result);
46+
} catch (ApiException e) {
47+
System.err.println("Exception when calling BroadcastsApi#broadcastsCreateBroadcastToken");
48+
e.printStackTrace();
49+
}
50+
```
51+
52+
### Parameters
53+
54+
Name | Type | Description | Notes
55+
------------- | ------------- | ------------- | -------------
56+
**org** | **String**| |
57+
**data** | [**BroadcastTokenInput**](BroadcastTokenInput.md)| | [optional]
58+
59+
### Return type
60+
61+
[**BroadcastToken**](BroadcastToken.md)
62+
63+
### Authorization
64+
65+
[apikey](../README.md#apikey), [basic](../README.md#basic)
66+
67+
### HTTP request headers
68+
69+
- **Content-Type**: application/json
70+
- **Accept**: application/json
71+

bindings/java/src/docs/CargoPackageUpload.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ Name | Type | Description | Notes
5151
**originRepositoryUrl** | **String** | | [optional]
5252
**packageType** | **java.math.BigInteger** | The type of package contents. | [optional]
5353
**policyViolated** | **Boolean** | Whether or not the package has violated any policy. | [optional]
54+
**rawLicense** | **String** | The raw license string. | [optional]
5455
**release** | **String** | The release of the package version (if any). | [optional]
5556
**repository** | **String** | | [optional]
5657
**repositoryUrl** | **String** | | [optional]
@@ -64,6 +65,7 @@ Name | Type | Description | Notes
6465
**size** | **java.math.BigInteger** | The calculated size of the package. | [optional]
6566
**slug** | **String** | The public unique identifier for the package. | [optional]
6667
**slugPerm** | **String** | | [optional]
68+
**spdxLicense** | **String** | The SPDX license identifier for this package. | [optional]
6769
**stage** | **java.math.BigInteger** | The synchronisation (in progress) stage of the package. | [optional]
6870
**stageStr** | **String** | | [optional]
6971
**stageUpdatedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The datetime the package stage was updated at. | [optional]

0 commit comments

Comments
 (0)