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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 0 additions & 3 deletions bin/lfs/swagger-codegen-cli-2.2.3.jar

This file was deleted.

Binary file added bin/lfs/swagger-codegen-cli-2.4.26.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion bin/swagger-codegen-cli.jar
11 changes: 11 additions & 0 deletions bindings/go/build.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/usr/bin/env bash
set -e

self=$(readlink -f $BASH_SOURCE)
self_dir=$(dirname $self)
root_dir=$(readlink -f "$self_dir/../..")
Expand All @@ -24,3 +26,12 @@ $root_dir/bin/swagger-codegen-cli generate \
-l go \
-o $src_dir \
$common_codegen_options


# Apply fixes for missing imports
#
# This is a temporary measure as a larger API/swagger update is due soon which
# should resolve this and other issues properly.

sed -i 's/ \"fmt\"/ \"fmt\"\n \"github.com\/antihax\/optional\"/g' $src_dir/api_files.go
sed -i 's/ \"strings\"/ \"strings\"\n \"github.com\/antihax\/optional\"/g' $src_dir/api_user.go
2 changes: 2 additions & 0 deletions bindings/go/deploy.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/usr/bin/env bash
set -e

self=$(readlink -f $BASH_SOURCE)
self_dir=$(dirname $self)
root_dir=$(readlink -f "$self_dir/../..")
Expand Down
2 changes: 1 addition & 1 deletion bindings/go/src/.swagger-codegen/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.2.3
2.4.26
31 changes: 21 additions & 10 deletions bindings/go/src/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ The API to the Cloudsmith Service
This API client was generated by the [swagger-codegen](https://github.com/swagger-api/swagger-codegen) project. By using the [swagger-spec](https://github.com/swagger-api/swagger-spec) from a remote server, you can easily generate an API client.

- API version: v1
- Package version: 1.30.0
- Package version: 1.33.7
- Build package: io.swagger.codegen.languages.GoClientCodegen
For more information, please visit [https://help.cloudsmith.io](https://help.cloudsmith.io)

## Installation
Put the package under your project folder and add the following in import:
```
"./cloudsmith_api"
```golang
import "./cloudsmith_api"
```

## Documentation for API Endpoints
Expand Down Expand Up @@ -120,8 +120,8 @@ Class | Method | HTTP request | Description
*ReposApi* | [**ReposPartialUpdate**](docs/ReposApi.md#repospartialupdate) | **Patch** /repos/{owner}/{identifier}/ | Update details about a repository in a given namespace.
*ReposApi* | [**ReposRead**](docs/ReposApi.md#reposread) | **Get** /repos/{owner}/{identifier}/ | Get a specific repository.
*StatusApi* | [**StatusCheckBasic**](docs/StatusApi.md#statuscheckbasic) | **Get** /status/check/basic/ | Endpoint to check basic API connectivity.
*StorageregionsApi* | [**StorageRegionsList**](docs/StorageregionsApi.md#storageregionslist) | **Get** /storage-regions/ | Get a list of all available storage regions.
*StorageregionsApi* | [**StorageRegionsRead**](docs/StorageregionsApi.md#storageregionsread) | **Get** /storage-regions/{slug}/ | Get a specific storage region.
*StorageRegionsApi* | [**StorageRegionsList**](docs/StorageRegionsApi.md#storageregionslist) | **Get** /storage-regions/ | Get a list of all available storage regions.
*StorageRegionsApi* | [**StorageRegionsRead**](docs/StorageRegionsApi.md#storageregionsread) | **Get** /storage-regions/{slug}/ | Get a specific storage region.
*UserApi* | [**UserSelf**](docs/UserApi.md#userself) | **Get** /user/self/ | Provide a brief for the current user (if any).
*UserApi* | [**UserTokenCreate**](docs/UserApi.md#usertokencreate) | **Post** /user/token/ | Retrieve the API key/token for the authenticated user.
*UsersApi* | [**UsersProfileRead**](docs/UsersApi.md#usersprofileread) | **Get** /users/profile/{slug}/ | Provide a brief for the specified user (if any).
Expand Down Expand Up @@ -248,17 +248,28 @@ Class | Method | HTTP request | Description

## Documentation For Authorization


## apikey

- **Type**: API key
- **API key parameter name**: X-Api-Key
- **Location**: HTTP header

Example
```golang
auth := context.WithValue(context.Background(), sw.ContextAPIKey, sw.APIKey{
Key: "APIKEY",
Prefix: "Bearer", // Omit if not necessary.
})
r, err := client.Service.Operation(auth, args)
```
## basic

- **Type**: HTTP basic authentication

Example
```golang
auth := context.WithValue(context.Background(), sw.ContextBasicAuth, sw.BasicAuth{
UserName: "username",
Password: "password",
})
r, err := client.Service.Operation(auth, args)
```

## Author

Expand Down
Loading