Skip to content

Commit

Permalink
Merge pull request #80 from aziontech/generated-sdk
Browse files Browse the repository at this point in the history
Auto-generated SDK
  • Loading branch information
PatrickMenoti authored Dec 15, 2023
2 parents d562cba + 2fde65a commit 06b9496
Show file tree
Hide file tree
Showing 22 changed files with 4,908 additions and 86 deletions.
37 changes: 18 additions & 19 deletions storage/.openapi-generator/FILES
Original file line number Diff line number Diff line change
@@ -1,31 +1,28 @@
.gitignore
.openapi-generator-ignore
README.md
api/openapi.yaml
appveyor.yml
docs/Bucket.md
docs/BucketCreate.md
docs/BucketsApi.md
docs/BucketObject.md
docs/EdgeAccessEnum.md
docs/ObjectResponseData.md
docs/PaginatedBucketList.md
docs/PatchedBucket.md
docs/PaginatedBucketObjectList.md
docs/ResponseBucket.md
docs/ResponseDeleteBucket.md
docs/ResponseDeleteBucketData.md
docs/StateEnum.md
docs/StorageApi.md
docs/SuccessBucketOperation.md
docs/SuccessObjectOperation.md
git_push.sh
src/storage.Test/Api/BucketsApiTests.cs
src/storage.Test/Model/BucketCreateTests.cs
src/storage.Test/Model/BucketTests.cs
src/storage.Test/Model/EdgeAccessEnumTests.cs
src/storage.Test/Model/PaginatedBucketListTests.cs
src/storage.Test/Model/PatchedBucketTests.cs
src/storage.Test/Model/ResponseBucketTests.cs
src/storage.Test/Model/ResponseDeleteBucketDataTests.cs
src/storage.Test/Model/ResponseDeleteBucketTests.cs
src/storage.Test/Model/StateEnumTests.cs
src/storage.Test/Api/StorageApiTests.cs
src/storage.Test/Model/BucketObjectTests.cs
src/storage.Test/Model/ObjectResponseDataTests.cs
src/storage.Test/Model/PaginatedBucketObjectListTests.cs
src/storage.Test/Model/SuccessBucketOperationTests.cs
src/storage.Test/Model/SuccessObjectOperationTests.cs
src/storage.Test/storage.Test.csproj
src/storage/Api/BucketsApi.cs
src/storage/Api/StorageApi.cs
src/storage/Client/ApiClient.cs
src/storage/Client/ApiException.cs
src/storage/Client/ApiResponse.cs
Expand All @@ -45,12 +42,14 @@ src/storage/Client/RetryConfiguration.cs
src/storage/Model/AbstractOpenAPISchema.cs
src/storage/Model/Bucket.cs
src/storage/Model/BucketCreate.cs
src/storage/Model/BucketObject.cs
src/storage/Model/EdgeAccessEnum.cs
src/storage/Model/ObjectResponseData.cs
src/storage/Model/PaginatedBucketList.cs
src/storage/Model/PatchedBucket.cs
src/storage/Model/PaginatedBucketObjectList.cs
src/storage/Model/ResponseBucket.cs
src/storage/Model/ResponseDeleteBucket.cs
src/storage/Model/ResponseDeleteBucketData.cs
src/storage/Model/StateEnum.cs
src/storage/Model/SuccessBucketOperation.cs
src/storage/Model/SuccessObjectOperation.cs
src/storage/storage.csproj
storage.sln
29 changes: 18 additions & 11 deletions storage/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,18 +90,18 @@ namespace Example
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.ApiKeyPrefix.Add("Authorization", "Bearer");
var apiInstance = new BucketsApi(config);
var apiInstance = new StorageApi(config);
var bucketCreate = new BucketCreate(); // BucketCreate |
try
{
// /v4/storage/buckets
ResponseBucket result = apiInstance.ApiV1StorageBucketsCreate(bucketCreate);
// Create a new bucket
ResponseBucket result = apiInstance.StorageApiBucketsCreate(bucketCreate);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling BucketsApi.ApiV1StorageBucketsCreate: " + e.Message );
Debug.Print("Exception when calling StorageApi.StorageApiBucketsCreate: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
Expand All @@ -118,24 +118,31 @@ All URIs are relative to *https://api.azion.com*

Class | Method | HTTP request | Description
------------ | ------------- | ------------- | -------------
*BucketsApi* | [**ApiV1StorageBucketsCreate**](docs/BucketsApi.md#apiv1storagebucketscreate) | **POST** /v4/storage/buckets | /v4/storage/buckets
*BucketsApi* | [**ApiV1StorageBucketsDestroy**](docs/BucketsApi.md#apiv1storagebucketsdestroy) | **DELETE** /v4/storage/buckets/{name} | /v4/storage/buckets/:name
*BucketsApi* | [**ApiV1StorageBucketsList**](docs/BucketsApi.md#apiv1storagebucketslist) | **GET** /v4/storage/buckets | /v4/storage/buckets
*BucketsApi* | [**ApiV1StorageBucketsPartialUpdate**](docs/BucketsApi.md#apiv1storagebucketspartialupdate) | **PATCH** /v4/storage/buckets/{name} | /v4/storage/buckets/:name
*StorageApi* | [**StorageApiBucketsCreate**](docs/StorageApi.md#storageapibucketscreate) | **POST** /v4/storage/buckets | Create a new bucket
*StorageApi* | [**StorageApiBucketsDestroy**](docs/StorageApi.md#storageapibucketsdestroy) | **DELETE** /v4/storage/buckets/{name} | Delete a bucket
*StorageApi* | [**StorageApiBucketsList**](docs/StorageApi.md#storageapibucketslist) | **GET** /v4/storage/buckets | List buckets
*StorageApi* | [**StorageApiBucketsObjectsCreate**](docs/StorageApi.md#storageapibucketsobjectscreate) | **POST** /v4/storage/buckets/{bucket_name}/objects/{object_key} | Create new object key
*StorageApi* | [**StorageApiBucketsObjectsDestroy**](docs/StorageApi.md#storageapibucketsobjectsdestroy) | **DELETE** /v4/storage/buckets/{bucket_name}/objects/{object_key} | Delete object key
*StorageApi* | [**StorageApiBucketsObjectsList**](docs/StorageApi.md#storageapibucketsobjectslist) | **GET** /v4/storage/buckets/{bucket_name}/objects | List buckets objects
*StorageApi* | [**StorageApiBucketsObjectsRetrieve**](docs/StorageApi.md#storageapibucketsobjectsretrieve) | **GET** /v4/storage/buckets/{bucket_name}/objects/{object_key} | Download object
*StorageApi* | [**StorageApiBucketsObjectsUpdate**](docs/StorageApi.md#storageapibucketsobjectsupdate) | **PUT** /v4/storage/buckets/{bucket_name}/objects/{object_key} | Update the object key
*StorageApi* | [**StorageApiBucketsPartialUpdate**](docs/StorageApi.md#storageapibucketspartialupdate) | **PATCH** /v4/storage/buckets/{name} | Update bucket info


<a id="documentation-for-models"></a>
## Documentation for Models

- [Model.Bucket](docs/Bucket.md)
- [Model.BucketCreate](docs/BucketCreate.md)
- [Model.BucketObject](docs/BucketObject.md)
- [Model.EdgeAccessEnum](docs/EdgeAccessEnum.md)
- [Model.ObjectResponseData](docs/ObjectResponseData.md)
- [Model.PaginatedBucketList](docs/PaginatedBucketList.md)
- [Model.PatchedBucket](docs/PatchedBucket.md)
- [Model.PaginatedBucketObjectList](docs/PaginatedBucketObjectList.md)
- [Model.ResponseBucket](docs/ResponseBucket.md)
- [Model.ResponseDeleteBucket](docs/ResponseDeleteBucket.md)
- [Model.ResponseDeleteBucketData](docs/ResponseDeleteBucketData.md)
- [Model.StateEnum](docs/StateEnum.md)
- [Model.SuccessBucketOperation](docs/SuccessBucketOperation.md)
- [Model.SuccessObjectOperation](docs/SuccessObjectOperation.md)


<a id="documentation-for-authorization"></a>
Expand Down
Loading

0 comments on commit 06b9496

Please sign in to comment.