Skip to content

Commit

Permalink
Merge pull request #86 from aziontech/generated-sdk
Browse files Browse the repository at this point in the history
Auto-generated SDK
  • Loading branch information
maxwelbm authored Jun 7, 2024
2 parents 40a33cb + 3ebaa2e commit 989a440
Show file tree
Hide file tree
Showing 28 changed files with 596 additions and 25 deletions.
8 changes: 8 additions & 0 deletions storage/.openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@ docs/EdgeAccessEnum.md
docs/ObjectResponseData.md
docs/PaginatedBucketList.md
docs/PaginatedBucketObjectList.md
docs/PaginatedS3CredentialList.md
docs/ResponseBucket.md
docs/ResponseS3Credential.md
docs/S3Credential.md
docs/S3CredentialCreate.md
docs/StateEnum.md
docs/StorageApi.md
docs/SuccessBucketOperation.md
Expand All @@ -29,7 +33,11 @@ src/models/mod.rs
src/models/object_response_data.rs
src/models/paginated_bucket_list.rs
src/models/paginated_bucket_object_list.rs
src/models/paginated_s3_credential_list.rs
src/models/response_bucket.rs
src/models/response_s3_credential.rs
src/models/s3_credential.rs
src/models/s3_credential_create.rs
src/models/state_enum.rs
src/models/success_bucket_operation.rs
src/models/success_object_operation.rs
2 changes: 1 addition & 1 deletion storage/.openapi-generator/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
7.4.0
7.6.0
15 changes: 6 additions & 9 deletions storage/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,12 @@ version = "1.0.0 (1)"
authors = ["OpenAPI Generator team and contributors"]
description = "REST API OpenAPI documentation for the Object Storage"
license = "MIT"
edition = "2018"
edition = "2021"

[dependencies]
serde = "^1.0"
serde_derive = "^1.0"
serde_with = "^2.0"
serde = { version = "^1.0", features = ["derive"] }
serde_with = { version = "^3.8", default-features = false, features = ["base64", "std", "macros"] }
serde_json = "^1.0"
url = "^2.2"
uuid = { version = "^1.0", features = ["serde", "v4"] }
[dependencies.reqwest]
version = "^0.11"
features = ["json", "multipart"]
url = "^2.5"
uuid = { version = "^1.8", features = ["serde", "v4"] }
reqwest = { version = "^0.12", features = ["json", "multipart"] }
10 changes: 9 additions & 1 deletion storage/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ This API client was generated by the [OpenAPI Generator](https://openapi-generat

- API version: 1.0.0 (v1)
- Package version: 1.0.0 (v1)
- Generator version: 7.4.0
- Generator version: 7.6.0
- Build package: `org.openapitools.codegen.languages.RustClientCodegen`

## Installation
Expand All @@ -35,6 +35,10 @@ Class | Method | HTTP request | Description
*StorageApi* | [**storage_api_buckets_objects_retrieve**](docs/StorageApi.md#storage_api_buckets_objects_retrieve) | **GET** /v4/storage/buckets/{bucket_name}/objects/{object_key} | Download object
*StorageApi* | [**storage_api_buckets_objects_update**](docs/StorageApi.md#storage_api_buckets_objects_update) | **PUT** /v4/storage/buckets/{bucket_name}/objects/{object_key} | Update the object key
*StorageApi* | [**storage_api_buckets_partial_update**](docs/StorageApi.md#storage_api_buckets_partial_update) | **PATCH** /v4/storage/buckets/{name} | Update bucket info
*StorageApi* | [**storage_api_s3_credentials_by_access_key**](docs/StorageApi.md#storage_api_s3_credentials_by_access_key) | **GET** /v4/storage/s3-credentials/{s3_credential_access_key} | get by s3 credentials by access key
*StorageApi* | [**storage_api_s3_credentials_create**](docs/StorageApi.md#storage_api_s3_credentials_create) | **POST** /v4/storage/s3-credentials | create s3 credentials
*StorageApi* | [**storage_api_s3_credentials_delete**](docs/StorageApi.md#storage_api_s3_credentials_delete) | **DELETE** /v4/storage/s3-credentials/{s3_credential_access_key} | delete by s3 credentials
*StorageApi* | [**storage_api_s3_credentials_list**](docs/StorageApi.md#storage_api_s3_credentials_list) | **GET** /v4/storage/s3-credentials | List s3 credentials


## Documentation For Models
Expand All @@ -47,7 +51,11 @@ Class | Method | HTTP request | Description
- [ObjectResponseData](docs/ObjectResponseData.md)
- [PaginatedBucketList](docs/PaginatedBucketList.md)
- [PaginatedBucketObjectList](docs/PaginatedBucketObjectList.md)
- [PaginatedS3CredentialList](docs/PaginatedS3CredentialList.md)
- [ResponseBucket](docs/ResponseBucket.md)
- [ResponseS3Credential](docs/ResponseS3Credential.md)
- [S3Credential](docs/S3Credential.md)
- [S3CredentialCreate](docs/S3CredentialCreate.md)
- [StateEnum](docs/StateEnum.md)
- [SuccessBucketOperation](docs/SuccessBucketOperation.md)
- [SuccessObjectOperation](docs/SuccessObjectOperation.md)
Expand Down
14 changes: 14 additions & 0 deletions storage/docs/PaginatedS3CredentialList.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# PaginatedS3CredentialList

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**count** | Option<**i32**> | | [optional]
**next** | Option<**String**> | | [optional]
**previous** | Option<**String**> | | [optional]
**results** | Option<[**Vec<models::S3Credential>**](S3Credential.md)> | | [optional]

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


12 changes: 12 additions & 0 deletions storage/docs/ResponseS3Credential.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# ResponseS3Credential

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**state** | Option<**String**> | | [optional]
**data** | Option<[**models::S3Credential**](S3Credential.md)> | | [optional]

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


17 changes: 17 additions & 0 deletions storage/docs/S3Credential.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# S3Credential

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**name** | Option<**String**> | | [optional]
**access_key** | Option<**String**> | | [optional]
**secret_key** | Option<**String**> | | [optional]
**capabilities** | Option<**Vec<String>**> | | [optional]
**bucket** | Option<**String**> | | [optional]
**expiration_date** | Option<**String**> | | [optional]
**created_at** | Option<**String**> | | [optional]

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


14 changes: 14 additions & 0 deletions storage/docs/S3CredentialCreate.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# S3CredentialCreate

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**name** | Option<**String**> | | [optional]
**capabilities** | Option<**Vec<String>**> | | [optional]
**bucket** | Option<**String**> | | [optional]
**expiration_date** | Option<**String**> | | [optional]

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


129 changes: 128 additions & 1 deletion storage/docs/StorageApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ Method | HTTP request | Description
[**storage_api_buckets_objects_retrieve**](StorageApi.md#storage_api_buckets_objects_retrieve) | **GET** /v4/storage/buckets/{bucket_name}/objects/{object_key} | Download object
[**storage_api_buckets_objects_update**](StorageApi.md#storage_api_buckets_objects_update) | **PUT** /v4/storage/buckets/{bucket_name}/objects/{object_key} | Update the object key
[**storage_api_buckets_partial_update**](StorageApi.md#storage_api_buckets_partial_update) | **PATCH** /v4/storage/buckets/{name} | Update bucket info
[**storage_api_s3_credentials_by_access_key**](StorageApi.md#storage_api_s3_credentials_by_access_key) | **GET** /v4/storage/s3-credentials/{s3_credential_access_key} | get by s3 credentials by access key
[**storage_api_s3_credentials_create**](StorageApi.md#storage_api_s3_credentials_create) | **POST** /v4/storage/s3-credentials | create s3 credentials
[**storage_api_s3_credentials_delete**](StorageApi.md#storage_api_s3_credentials_delete) | **DELETE** /v4/storage/s3-credentials/{s3_credential_access_key} | delete by s3 credentials
[**storage_api_s3_credentials_list**](StorageApi.md#storage_api_s3_credentials_list) | **GET** /v4/storage/s3-credentials | List s3 credentials



Expand Down Expand Up @@ -229,7 +233,7 @@ Name | Type | Description | Required | Notes
### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: text/html, application/json, application/xml, text/plain, image/jpeg, image/png, image/gif, video/mp4, audio/mpeg, application/pdf, application/javascript, text/css, application/octet-stream
- **Accept**: text/html, application/json, application/xml, text/plain, image/jpeg, image/png, image/gif, video/mp4, audio/mpeg, application/pdf, application/javascript, text/css, application/octet-stream, multipart/form-data, application/x-www-form-urlencoded

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

Expand Down Expand Up @@ -297,3 +301,126 @@ Name | Type | Description | Required | Notes

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


## storage_api_s3_credentials_by_access_key

> models::ResponseS3Credential storage_api_s3_credentials_by_access_key(s3_credential_access_key)
get by s3 credentials by access key



### Parameters


Name | Type | Description | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**s3_credential_access_key** | **String** | | [required] |

### Return type

[**models::ResponseS3Credential**](ResponseS3Credential.md)

### Authorization

[tokenAuth](../README.md#tokenAuth)

### HTTP request headers

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

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


## storage_api_s3_credentials_create

> models::ResponseS3Credential storage_api_s3_credentials_create(s3_credential_create)
create s3 credentials



### Parameters


Name | Type | Description | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**s3_credential_create** | [**S3CredentialCreate**](S3CredentialCreate.md) | | [required] |

### Return type

[**models::ResponseS3Credential**](ResponseS3Credential.md)

### Authorization

[tokenAuth](../README.md#tokenAuth)

### HTTP request headers

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

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


## storage_api_s3_credentials_delete

> models::ResponseS3Credential storage_api_s3_credentials_delete(s3_credential_access_key)
delete by s3 credentials



### Parameters


Name | Type | Description | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**s3_credential_access_key** | **String** | | [required] |

### Return type

[**models::ResponseS3Credential**](ResponseS3Credential.md)

### Authorization

[tokenAuth](../README.md#tokenAuth)

### HTTP request headers

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

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


## storage_api_s3_credentials_list

> models::PaginatedS3CredentialList storage_api_s3_credentials_list(key, last_modified, size, continuation_token)
List s3 credentials



### Parameters


Name | Type | Description | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**key** | Option<**String**> | Object key. Used to identify the object for requests. Sent in POST requests as a path variable. | |
**last_modified** | Option<**String**> | Timestamp of the last modification to the object. | |
**size** | Option<**i32**> | Size of file in bytes. | |
**continuation_token** | Option<**String**> | Hash that can be added to the continuation_token query to skip list to the next page. | |

### Return type

[**models::PaginatedS3CredentialList**](PaginatedS3CredentialList.md)

### Authorization

[tokenAuth](../README.md#tokenAuth)

### HTTP request headers

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

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

Loading

0 comments on commit 989a440

Please sign in to comment.