Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 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.29</version>
<version>2.0.30</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.29"
compile "io.cloudsmith.api:cloudsmith-api:2.0.30"
```

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

Then manually install the following JARs:

* `target/cloudsmith-api-2.0.29.jar`
* `target/cloudsmith-api-2.0.30.jar`
* `target/lib/*.jar`

## Getting Started
Expand Down Expand Up @@ -649,6 +649,7 @@ Class | Method | HTTP request | Description
- [PackageDenyPolicyRequestPatch](docs/PackageDenyPolicyRequestPatch.md)
- [PackageDependencies](docs/PackageDependencies.md)
- [PackageDependency](docs/PackageDependency.md)
- [PackageDetail](docs/PackageDetail.md)
- [PackageFile](docs/PackageFile.md)
- [PackageFilePartsUpload](docs/PackageFilePartsUpload.md)
- [PackageFileUpload](docs/PackageFileUpload.md)
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.29'
version = '2.0.30'

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.29",
"artifactVersion": "2.0.30",
"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.29",
version := "2.0.30",
scalaVersion := "2.11.4",
scalacOptions ++= Seq("-feature"),
javacOptions in compile ++= Seq("-Xlint:deprecation"),
Expand Down
112 changes: 112 additions & 0 deletions bindings/java/src/docs/PackageDetail.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@

# PackageDetail

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**architectures** | [**List&lt;Architecture&gt;**](Architecture.md) | | [optional]
**cdnUrl** | **String** | | [optional]
**checksumMd5** | **String** | | [optional]
**checksumSha1** | **String** | | [optional]
**checksumSha256** | **String** | | [optional]
**checksumSha512** | **String** | | [optional]
**dependenciesChecksumMd5** | **String** | A checksum of all of the package&#39;s dependencies. | [optional]
**dependenciesUrl** | **String** | | [optional]
**description** | **String** | A textual description of this package. | [optional]
**displayName** | **String** | | [optional]
**distro** | [**Distribution**](Distribution.md) | | [optional]
**distroVersion** | [**DistributionVersion**](DistributionVersion.md) | | [optional]
**downloads** | **java.math.BigInteger** | | [optional]
**epoch** | **java.math.BigInteger** | The epoch of the package version (if any). | [optional]
**extension** | **String** | | [optional]
**filename** | **String** | | [optional]
**filepath** | **String** | Full path to the file, including filename e.g. bin/utils/tool.tar.gz | [optional]
**files** | [**List&lt;PackageFile&gt;**](PackageFile.md) | | [optional]
**format** | **String** | | [optional]
**formatUrl** | **String** | | [optional]
**freeableStorage** | **java.math.BigInteger** | Amount of storage that will be freed if this package is deleted | [optional]
**fullyQualifiedName** | **String** | | [optional]
**hasDependencies** | **Boolean** | Whether the package has any dependencies (top-level or from its SBOM). | [optional]
**identifierPerm** | **String** | Unique and permanent identifier for the package. | [optional]
**identifiers** | **Map&lt;String, String&gt;** | Return a map of identifier field names and their values. | [optional]
**indexed** | **Boolean** | | [optional]
**isCancellable** | **Boolean** | | [optional]
**isCopyable** | **Boolean** | | [optional]
**isDeleteable** | **Boolean** | | [optional]
**isDownloadable** | **Boolean** | | [optional]
**isHidden** | **Boolean** | | [optional]
**isMoveable** | **Boolean** | | [optional]
**isQuarantinable** | **Boolean** | | [optional]
**isQuarantined** | **Boolean** | | [optional]
**isResyncable** | **Boolean** | | [optional]
**isSecurityScannable** | **Boolean** | | [optional]
**isSyncAwaiting** | **Boolean** | | [optional]
**isSyncCompleted** | **Boolean** | | [optional]
**isSyncFailed** | **Boolean** | | [optional]
**isSyncInFlight** | **Boolean** | | [optional]
**isSyncInProgress** | **Boolean** | | [optional]
**license** | **String** | The license of this package. | [optional]
**name** | **String** | The name of this package. | [optional]
**namespace** | **String** | | [optional]
**namespaceUrl** | **String** | | [optional]
**numFiles** | **java.math.BigInteger** | | [optional]
**originRepository** | **String** | | [optional]
**originRepositoryUrl** | **String** | | [optional]
**osiApproved** | **Boolean** | Whether the package&#39;s SPDX license is OSI-approved. | [optional]
**packageType** | **java.math.BigInteger** | The type of package contents. | [optional]
**policyViolated** | **Boolean** | Whether or not the package has violated any policy. | [optional]
**rawLicense** | **String** | The raw license string. | [optional]
**release** | **String** | The release of the package version (if any). | [optional]
**repository** | **String** | | [optional]
**repositoryUrl** | **String** | | [optional]
**securityScanCompletedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The datetime the security scanning was completed. | [optional]
**securityScanStartedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The datetime the security scanning was started. | [optional]
**securityScanStatus** | [**SecurityScanStatusEnum**](#SecurityScanStatusEnum) | | [optional]
**securityScanStatusUpdatedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The datetime the security scanning status was updated. | [optional]
**selfHtmlUrl** | **String** | | [optional]
**selfUrl** | **String** | | [optional]
**selfWebappUrl** | **String** | | [optional]
**signatureUrl** | **String** | | [optional]
**size** | **java.math.BigInteger** | The calculated size of the package. | [optional]
**slug** | **String** | The public unique identifier for the package. | [optional]
**slugPerm** | **String** | | [optional]
**spdxLicense** | **String** | The SPDX license identifier for this package. | [optional]
**stage** | **java.math.BigInteger** | The synchronisation (in progress) stage of the package. | [optional]
**stageStr** | **String** | | [optional]
**stageUpdatedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The datetime the package stage was updated at. | [optional]
**status** | **java.math.BigInteger** | The synchronisation status of the package. | [optional]
**statusReason** | **String** | A textual description for the synchronous status reason (if any | [optional]
**statusStr** | **String** | | [optional]
**statusUpdatedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The datetime the package status was updated at. | [optional]
**statusUrl** | **String** | | [optional]
**subtype** | **String** | | [optional]
**summary** | **String** | A one-liner synopsis of this package. | [optional]
**syncFinishedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The datetime the package sync was finished at. | [optional]
**syncProgress** | **java.math.BigInteger** | Synchronisation progress (from 0-100) | [optional]
**tags** | [**Tags**](Tags.md) | | [optional]
**tagsAutomatic** | [**Tags**](Tags.md) | | [optional]
**tagsImmutable** | [**Tags**](Tags.md) | | [optional]
**typeDisplay** | **String** | | [optional]
**uploadedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The date this package was uploaded. | [optional]
**uploader** | **String** | | [optional]
**uploaderUrl** | **String** | | [optional]
**version** | **String** | The raw version for this package. | [optional]
**versionOrig** | **String** | | [optional]
**vulnerabilityScanResultsUrl** | **String** | | [optional]


<a name="SecurityScanStatusEnum"></a>
## Enum: SecurityScanStatusEnum
Name | Value
---- | -----
AWAITING_SECURITY_SCAN | &quot;Awaiting Security Scan&quot;
SECURITY_SCANNING_IN_PROGRESS | &quot;Security Scanning in Progress&quot;
SCAN_DETECTED_VULNERABILITIES | &quot;Scan Detected Vulnerabilities&quot;
SCAN_DETECTED_NO_VULNERABILITIES | &quot;Scan Detected No Vulnerabilities&quot;
SECURITY_SCANNING_DISABLED | &quot;Security Scanning Disabled&quot;
SECURITY_SCANNING_FAILED | &quot;Security Scanning Failed&quot;
SECURITY_SCANNING_SKIPPED | &quot;Security Scanning Skipped&quot;
SECURITY_SCANNING_NOT_SUPPORTED | &quot;Security Scanning Not Supported&quot;



6 changes: 3 additions & 3 deletions bindings/java/src/docs/PackagesApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,7 @@ Name | Type | Description | Notes

<a name="packagesRead"></a>
# **packagesRead**
> ModelPackage packagesRead(owner, repo, identifier, includeConnectedRepositories)
> PackageDetail packagesRead(owner, repo, identifier, includeConnectedRepositories)

Get a specific package in a repository.

Expand Down Expand Up @@ -588,7 +588,7 @@ String repo = "repo_example"; // String |
String identifier = "identifier_example"; // String |
Boolean includeConnectedRepositories = false; // Boolean | 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.
try {
ModelPackage result = apiInstance.packagesRead(owner, repo, identifier, includeConnectedRepositories);
PackageDetail result = apiInstance.packagesRead(owner, repo, identifier, includeConnectedRepositories);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling PackagesApi#packagesRead");
Expand All @@ -607,7 +607,7 @@ Name | Type | Description | Notes

### Return type

[**ModelPackage**](ModelPackage.md)
[**PackageDetail**](PackageDetail.md)

### Authorization

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.29</version>
<version>2.0.30</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.29/java");
setUserAgent("Swagger-Codegen/2.0.30/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 @@ -329,6 +329,7 @@
import io.cloudsmith.api.models.*;
import io.cloudsmith.api.models.*;
import io.cloudsmith.api.models.*;
import io.cloudsmith.api.models.*;
import okio.ByteString;

import java.io.IOException;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@
import io.cloudsmith.api.models.PackageCopy;
import io.cloudsmith.api.models.PackageCopyRequest;
import io.cloudsmith.api.models.PackageDependencies;
import io.cloudsmith.api.models.PackageDetail;
import io.cloudsmith.api.models.PackageLicenseRequestPatch;
import io.cloudsmith.api.models.PackageMove;
import io.cloudsmith.api.models.PackageMoveRequest;
Expand Down Expand Up @@ -1360,11 +1361,11 @@ private com.squareup.okhttp.Call packagesReadValidateBeforeCall(String owner, St
* @param repo (required)
* @param identifier (required)
* @param includeConnectedRepositories 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. (optional, default to false)
* @return ModelPackage
* @return PackageDetail
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public ModelPackage packagesRead(String owner, String repo, String identifier, Boolean includeConnectedRepositories) throws ApiException {
ApiResponse<ModelPackage> resp = packagesReadWithHttpInfo(owner, repo, identifier, includeConnectedRepositories);
public PackageDetail packagesRead(String owner, String repo, String identifier, Boolean includeConnectedRepositories) throws ApiException {
ApiResponse<PackageDetail> resp = packagesReadWithHttpInfo(owner, repo, identifier, includeConnectedRepositories);
return resp.getData();
}

Expand All @@ -1375,12 +1376,12 @@ public ModelPackage packagesRead(String owner, String repo, String identifier, B
* @param repo (required)
* @param identifier (required)
* @param includeConnectedRepositories 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. (optional, default to false)
* @return ApiResponse&lt;ModelPackage&gt;
* @return ApiResponse&lt;PackageDetail&gt;
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public ApiResponse<ModelPackage> packagesReadWithHttpInfo( @NotNull String owner, @NotNull String repo, @NotNull String identifier, Boolean includeConnectedRepositories) throws ApiException {
public ApiResponse<PackageDetail> packagesReadWithHttpInfo( @NotNull String owner, @NotNull String repo, @NotNull String identifier, Boolean includeConnectedRepositories) throws ApiException {
com.squareup.okhttp.Call call = packagesReadValidateBeforeCall(owner, repo, identifier, includeConnectedRepositories, null, null);
Type localVarReturnType = new TypeToken<ModelPackage>(){}.getType();
Type localVarReturnType = new TypeToken<PackageDetail>(){}.getType();
return apiClient.execute(call, localVarReturnType);
}

Expand All @@ -1395,7 +1396,7 @@ public ApiResponse<ModelPackage> packagesReadWithHttpInfo( @NotNull String owner
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
*/
public com.squareup.okhttp.Call packagesReadAsync(String owner, String repo, String identifier, Boolean includeConnectedRepositories, final ApiCallback<ModelPackage> callback) throws ApiException {
public com.squareup.okhttp.Call packagesReadAsync(String owner, String repo, String identifier, Boolean includeConnectedRepositories, final ApiCallback<PackageDetail> callback) throws ApiException {

ProgressResponseBody.ProgressListener progressListener = null;
ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
Expand All @@ -1417,7 +1418,7 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don
}

com.squareup.okhttp.Call call = packagesReadValidateBeforeCall(owner, repo, identifier, includeConnectedRepositories, progressListener, progressRequestListener);
Type localVarReturnType = new TypeToken<ModelPackage>(){}.getType();
Type localVarReturnType = new TypeToken<PackageDetail>(){}.getType();
apiClient.executeAsync(call, localVarReturnType, callback);
return call;
}
Expand Down
Loading