Skip to content
Merged
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
10 changes: 7 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.30</version>
<version>2.0.31</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.30"
compile "io.cloudsmith.api:cloudsmith-api:2.0.31"
```

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

Then manually install the following JARs:

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

## Getting Started
Expand Down Expand Up @@ -149,6 +149,7 @@ Class | Method | HTTP request | Description
*MetricsApi* | [**metricsPackagesList**](docs/MetricsApi.md#metricsPackagesList) | **GET** /metrics/packages/{owner}/{repo}/ | View for listing package usage metrics, for a repository.
*NamespacesApi* | [**namespacesList**](docs/NamespacesApi.md#namespacesList) | **GET** /namespaces/ | Get a list of all namespaces the user belongs to.
*NamespacesApi* | [**namespacesRead**](docs/NamespacesApi.md#namespacesRead) | **GET** /namespaces/{slug}/ | Get a specific namespace that the user belongs to.
*OpenidApi* | [**openidCreate**](docs/OpenidApi.md#openidCreate) | **POST** /openid/{owner}/ | Get a JWT token for a configured service account belonging to the requesting org.
*OrgsApi* | [**orgsCustomDomainsList**](docs/OrgsApi.md#orgsCustomDomainsList) | **GET** /orgs/{org}/custom-domains/ | Get the details for all custom domains.
*OrgsApi* | [**orgsDelete**](docs/OrgsApi.md#orgsDelete) | **DELETE** /orgs/{org}/ | Delete the specified organization.
*OrgsApi* | [**orgsDenyPolicyCreate**](docs/OrgsApi.md#orgsDenyPolicyCreate) | **POST** /orgs/{org}/deny-policy/ | Create a package deny policy.
Expand Down Expand Up @@ -624,6 +625,9 @@ Class | Method | HTTP request | Description
- [NugetUpstream](docs/NugetUpstream.md)
- [NugetUpstreamRequest](docs/NugetUpstreamRequest.md)
- [NugetUpstreamRequestPatch](docs/NugetUpstreamRequestPatch.md)
- [Oidc](docs/Oidc.md)
- [Oidc1](docs/Oidc1.md)
- [OidcRequest](docs/OidcRequest.md)
- [Organization](docs/Organization.md)
- [OrganizationCustomDomainNestedRepo](docs/OrganizationCustomDomainNestedRepo.md)
- [OrganizationCustomDomains](docs/OrganizationCustomDomains.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.30'
version = '2.0.31'

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.30",
"artifactVersion": "2.0.31",
"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.30",
version := "2.0.31",
scalaVersion := "2.11.4",
scalacOptions ++= Seq("-feature"),
javacOptions in compile ++= Seq("-Xlint:deprecation"),
Expand Down
2 changes: 1 addition & 1 deletion bindings/java/src/docs/NixPackageUploadRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**isMalwareDetected** | **Boolean** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional]
**narinfo** | **String** | The narinfo sidecar metadata file (&lt;storeHash&gt;.narinfo). Optional — the package can be completed later by publishing the matching narinfo via the native HTTP PUT path. | [optional]
**narinfoFile** | **String** | The narinfo sidecar metadata file (&lt;storeHash&gt;.narinfo). Optional — the package can be completed later by publishing the matching narinfo via the native HTTP PUT path. | [optional]
**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]
**tags** | **String** | A comma-separated values list of tags to add to the package. | [optional]
Expand Down
9 changes: 9 additions & 0 deletions bindings/java/src/docs/Oidc.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@

# Oidc

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------



10 changes: 10 additions & 0 deletions bindings/java/src/docs/Oidc1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@

# Oidc1

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**token** | **String** | Serialized JWT to be used for authentication. | [optional]



11 changes: 11 additions & 0 deletions bindings/java/src/docs/OidcRequest.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@

# OidcRequest

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**oidcToken** | **String** | Serialized OIDC token. |
**serviceSlug** | **String** | Slug for the service account. |



71 changes: 71 additions & 0 deletions bindings/java/src/docs/OpenidApi.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
# OpenidApi

All URIs are relative to *https://api.cloudsmith.io*

Method | HTTP request | Description
------------- | ------------- | -------------
[**openidCreate**](OpenidApi.md#openidCreate) | **POST** /openid/{owner}/ | Get a JWT token for a configured service account belonging to the requesting org.


<a name="openidCreate"></a>
# **openidCreate**
> Oidc1 openidCreate(owner, data)

Get a JWT token for a configured service account belonging to the requesting org.

Get a JWT token for a configured service account belonging to the requesting org.

### Example
```java
// Import classes:
//import io.cloudsmith.api.ApiClient;
//import io.cloudsmith.api.ApiException;
//import io.cloudsmith.api.Configuration;
//import io.cloudsmith.api.auth.*;
//import io.cloudsmith.api.apis.OpenidApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure API key authorization: apikey
ApiKeyAuth apikey = (ApiKeyAuth) defaultClient.getAuthentication("apikey");
apikey.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apikey.setApiKeyPrefix("Token");

// Configure HTTP basic authorization: basic
HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic");
basic.setUsername("YOUR USERNAME");
basic.setPassword("YOUR PASSWORD");

OpenidApi apiInstance = new OpenidApi();
String owner = "owner_example"; // String |
OidcRequest data = new OidcRequest(); // OidcRequest |
try {
Oidc1 result = apiInstance.openidCreate(owner, data);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling OpenidApi#openidCreate");
e.printStackTrace();
}
```

### Parameters

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**owner** | **String**| |
**data** | [**OidcRequest**](OidcRequest.md)| | [optional]

### Return type

[**Oidc1**](Oidc1.md)

### Authorization

[apikey](../README.md#apikey), [basic](../README.md#basic)

### HTTP request headers

- **Content-Type**: application/json
- **Accept**: application/json

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.30</version>
<version>2.0.31</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.30/java");
setUserAgent("Swagger-Codegen/2.0.31/java");

// Setup authentications (key: authentication name, value: authentication).
authentications = new HashMap<String, Authentication>();
Expand Down
Loading