From aede8c7ac209b8218a28ddea63c9238ebdfe8183 Mon Sep 17 00:00:00 2001 From: Guilherme Werner Date: Mon, 26 May 2025 21:41:40 -0300 Subject: [PATCH 01/52] Update README.md --- README.md | 285 +++--------------------------------------------------- 1 file changed, 13 insertions(+), 272 deletions(-) diff --git a/README.md b/README.md index e684056..2d26ce1 100644 --- a/README.md +++ b/README.md @@ -1,279 +1,20 @@ -# Tribufu - the C# library for the Tribufu API +# Tribufu .NET -REST API to access Tribufu services. +.NET SDK to access Tribufu APIs and services. -This C# SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: +[![MIT License][mit-badge]][mit-url] +[![Discord Chat][discord-badge]][discord-url] -- API version: 1.1.0 -- SDK version: 1.0.0 -- Generator version: 7.8.0 -- Build package: org.openapitools.codegen.languages.CSharpClientCodegen - For more information, please visit [https://www.tribufu.com/contact](https://www.tribufu.com/contact) +[mit-badge]: https://img.shields.io/badge/license-MIT-blue.svg +[mit-url]: https://github.com/tribufu/sdk-dotnet/blob/main/LICENSE.txt +[discord-badge]: https://img.shields.io/discord/276504514616623104.svg?logo=discord&style=flat-square +[discord-url]: https://www.tribufu.com/discord - -## Frameworks supported +[Website](https://www.tribufu.com) | +[Discord](https://www.tribufu.com/discord) - -## Dependencies +## License -- [Json.NET](https://www.nuget.org/packages/Newtonsoft.Json/) - 13.0.2 or later -- [JsonSubTypes](https://www.nuget.org/packages/JsonSubTypes/) - 1.8.0 or later -- [System.ComponentModel.Annotations](https://www.nuget.org/packages/System.ComponentModel.Annotations) - 5.0.0 or later - -The DLLs included in the package may not be the latest version. We recommend using [NuGet](https://docs.nuget.org/consume/installing-nuget) to obtain the latest version of the packages: -``` -Install-Package Newtonsoft.Json -Install-Package JsonSubTypes -Install-Package System.ComponentModel.Annotations -``` - -## Installation -Run the following command to generate the DLL -- [Mac/Linux] `/bin/sh build.sh` -- [Windows] `build.bat` - -Then include the DLL (under the `bin` folder) in the C# project, and use the namespaces: -```csharp -using Tribufu.Api; -using Tribufu.Client; -using Tribufu.Model; -``` - -## Packaging - -A `.nuspec` is included with the project. You can follow the Nuget quickstart to [create](https://docs.microsoft.com/en-us/nuget/quickstart/create-and-publish-a-package#create-the-package) and [publish](https://docs.microsoft.com/en-us/nuget/quickstart/create-and-publish-a-package#publish-the-package) packages. - -This `.nuspec` uses placeholders from the `.csproj`, so build the `.csproj` directly: - -``` -nuget pack -Build -OutputDirectory out Tribufu.csproj -``` - -Then, publish to a [local feed](https://docs.microsoft.com/en-us/nuget/hosting-packages/local-feeds) or [other host](https://docs.microsoft.com/en-us/nuget/hosting-packages/overview) and consume the new package via Nuget as usual. - - -## Usage - -To use the API client with a HTTP proxy, setup a `System.Net.WebProxy` -```csharp -Configuration c = new Configuration(); -System.Net.WebProxy webProxy = new System.Net.WebProxy("http://myProxyUrl:80/"); -webProxy.Credentials = System.Net.CredentialCache.DefaultCredentials; -c.Proxy = webProxy; -``` - -### Connections -Each ApiClass (properly the ApiClient inside it) will create an instance of HttpClient. It will use that for the entire lifecycle and dispose it when called the Dispose method. - -To better manager the connections it's a common practice to reuse the HttpClient and HttpClientHandler (see [here](https://docs.microsoft.com/en-us/dotnet/architecture/microservices/implement-resilient-applications/use-httpclientfactory-to-implement-resilient-http-requests#issues-with-the-original-httpclient-class-available-in-net) for details). To use your own HttpClient instance just pass it to the ApiClass constructor. - -```csharp -HttpClientHandler yourHandler = new HttpClientHandler(); -HttpClient yourHttpClient = new HttpClient(yourHandler); -var api = new YourApiClass(yourHttpClient, yourHandler); -``` - -If you want to use an HttpClient and don't have access to the handler, for example in a DI context in Asp.net Core when using IHttpClientFactory. - -```csharp -HttpClient yourHttpClient = new HttpClient(); -var api = new YourApiClass(yourHttpClient); -``` -You'll loose some configuration settings, the features affected are: Setting and Retrieving Cookies, Client Certificates, Proxy settings. You need to either manually handle those in your setup of the HttpClient or they won't be available. - -Here an example of DI setup in a sample web project: - -```csharp -services.AddHttpClient(httpClient => - new PetApi(httpClient)); -``` - - - -## Getting Started - -```csharp -using System.Collections.Generic; -using System.Diagnostics; -using System.Net.Http; -using Tribufu.Api; -using Tribufu.Client; -using Tribufu.Model; - -namespace Example -{ - public class Example - { - public static void Main() - { - - Configuration config = new Configuration(); - config.BasePath = "http://localhost"; - // Configure API key authorization: ApiKey - config.ApiKey.Add("Authorization", "YOUR_API_KEY"); - // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed - // config.ApiKeyPrefix.Add("Authorization", "Bearer"); - - // create instances of HttpClient, HttpClientHandler to be reused later with different Api classes - HttpClient httpClient = new HttpClient(); - HttpClientHandler httpClientHandler = new HttpClientHandler(); - var apiInstance = new TribufuApi(httpClient, config, httpClientHandler); - var authorizeRequest = new AuthorizeRequest?(); // AuthorizeRequest? | (optional) - - try - { - // Authorize the client to access the user information. - apiInstance.Authorize(authorizeRequest); - } - catch (ApiException e) - { - Debug.Print("Exception when calling TribufuApi.Authorize: " + e.Message ); - Debug.Print("Status Code: "+ e.ErrorCode); - Debug.Print(e.StackTrace); - } - - } - } -} -``` - - -## Documentation for API Endpoints - -All URIs are relative to *http://localhost* - -Class | Method | HTTP request | Description ------------- | ------------- | ------------- | ------------- -*TribufuApi* | [**Authorize**](docs/TribufuApi.md#authorize) | **POST** /v1/oauth2/authorize | Authorize the client to access the user information. -*TribufuApi* | [**ChangeEmail**](docs/TribufuApi.md#changeemail) | **PUT** /v1/users/{id}/email | Change the email of a user. -*TribufuApi* | [**ChangePassword**](docs/TribufuApi.md#changepassword) | **PUT** /v1/users/{id}/password | Change the password of a user. -*TribufuApi* | [**ClaimGameServer**](docs/TribufuApi.md#claimgameserver) | **PUT** /v1/servers/{id}/claim | Claim a game server. -*TribufuApi* | [**ConvertBase64**](docs/TribufuApi.md#convertbase64) | **POST** /v1/utils/base64 | Convert a string to base64 or vice versa. -*TribufuApi* | [**CreateGameServer**](docs/TribufuApi.md#creategameserver) | **POST** /v1/servers | Create a new game server. -*TribufuApi* | [**CreateGameServerCluster**](docs/TribufuApi.md#creategameservercluster) | **POST** /v1/clusters | Create a new game server cluster. -*TribufuApi* | [**CreateGroup**](docs/TribufuApi.md#creategroup) | **POST** /v1/groups | Create a new group. -*TribufuApi* | [**CreateToken**](docs/TribufuApi.md#createtoken) | **POST** /v1/oauth2/token | Create a new token with grant type. -*TribufuApi* | [**DeleteGameServer**](docs/TribufuApi.md#deletegameserver) | **DELETE** /v1/servers/{id} | Delete a game server. -*TribufuApi* | [**DeleteGameServerCluster**](docs/TribufuApi.md#deletegameservercluster) | **DELETE** /v1/clusters/{id} | Delete a game server cluster. -*TribufuApi* | [**DeleteGroup**](docs/TribufuApi.md#deletegroup) | **DELETE** /v1/groups/{id} | Delete a group. -*TribufuApi* | [**GenerateFlakeId**](docs/TribufuApi.md#generateflakeid) | **GET** /v1/utils/flake | Generate one or more flake ids. -*TribufuApi* | [**GenerateFlakeIdFromTimestamp**](docs/TribufuApi.md#generateflakeidfromtimestamp) | **GET** /v1/utils/flake/{timestamp} | Generate one or more flake ids from a timestamp. -*TribufuApi* | [**GeneratePassword**](docs/TribufuApi.md#generatepassword) | **GET** /v1/utils/password | Generate a random password. -*TribufuApi* | [**GenerateUuid**](docs/TribufuApi.md#generateuuid) | **GET** /v1/utils/uuid | Generate one or more uuids with a specific version. -*TribufuApi* | [**GetClientInfo**](docs/TribufuApi.md#getclientinfo) | **GET** /v1/oauth2/clientinfo | Get current client information. -*TribufuApi* | [**GetCurrentIpAddress**](docs/TribufuApi.md#getcurrentipaddress) | **GET** /v1/geoip | Get current ip address location. -*TribufuApi* | [**GetGameById**](docs/TribufuApi.md#getgamebyid) | **GET** /v1/games/{id} | Get a game by id. -*TribufuApi* | [**GetGameClustersByGameId**](docs/TribufuApi.md#getgameclustersbygameid) | **GET** /v1/games/{id}/clusters | Get a list of game server clusters of a game. -*TribufuApi* | [**GetGameItems**](docs/TribufuApi.md#getgameitems) | **GET** /v1/games/{id}/items | Get a list of game items. -*TribufuApi* | [**GetGameServerByAddressAndQueryPort**](docs/TribufuApi.md#getgameserverbyaddressandqueryport) | **GET** /v1/servers/address/{address}:{port} | Get a game server by address and query port. -*TribufuApi* | [**GetGameServerById**](docs/TribufuApi.md#getgameserverbyid) | **GET** /v1/servers/{id} | Get a game server by id. -*TribufuApi* | [**GetGameServerClusterById**](docs/TribufuApi.md#getgameserverclusterbyid) | **GET** /v1/clusters/{id} | Get a game server cluster by id. -*TribufuApi* | [**GetGameServerClusters**](docs/TribufuApi.md#getgameserverclusters) | **GET** /v1/clusters | Get a list of game server clusters. -*TribufuApi* | [**GetGameServers**](docs/TribufuApi.md#getgameservers) | **GET** /v1/servers | Get a list of game servers. -*TribufuApi* | [**GetGameServersByCountry**](docs/TribufuApi.md#getgameserversbycountry) | **GET** /v1/servers/country/{country} | Get a list of game servers from a country. -*TribufuApi* | [**GetGameServersByGameId**](docs/TribufuApi.md#getgameserversbygameid) | **GET** /v1/games/{id}/servers | Get a list of game servers of a game. -*TribufuApi* | [**GetGameServersCountries**](docs/TribufuApi.md#getgameserverscountries) | **GET** /v1/servers/countries | Get a list of countries with the number of game servers. -*TribufuApi* | [**GetGameServersMetrics**](docs/TribufuApi.md#getgameserversmetrics) | **GET** /v1/servers/metrics | Get metrics about the tracked game servers. -*TribufuApi* | [**GetGames**](docs/TribufuApi.md#getgames) | **GET** /v1/games | Get a list of games. -*TribufuApi* | [**GetGroupById**](docs/TribufuApi.md#getgroupbyid) | **GET** /v1/groups/{id} | Get a group by id. -*TribufuApi* | [**GetGroupByTag**](docs/TribufuApi.md#getgroupbytag) | **GET** /v1/groups/tag/{tag} | Get a group by tag. -*TribufuApi* | [**GetGroupByUuid**](docs/TribufuApi.md#getgroupbyuuid) | **GET** /v1/groups/uuid/{uuid} | Get a group by uuid. -*TribufuApi* | [**GetGroupGames**](docs/TribufuApi.md#getgroupgames) | **GET** /v1/groups/{id}/games | Get a list of games of a group. -*TribufuApi* | [**GetGroupMembers**](docs/TribufuApi.md#getgroupmembers) | **GET** /v1/groups/{id}/members | Get a list of members in a group. -*TribufuApi* | [**GetGroups**](docs/TribufuApi.md#getgroups) | **GET** /v1/groups | Get a list of groups. -*TribufuApi* | [**GetIpAddress**](docs/TribufuApi.md#getipaddress) | **GET** /v1/geoip/addresses/{address} | Get a ip address location. -*TribufuApi* | [**GetIpAddresses**](docs/TribufuApi.md#getipaddresses) | **GET** /v1/geoip/addresses | Get a list of ip addresses. -*TribufuApi* | [**GetLeaderboard**](docs/TribufuApi.md#getleaderboard) | **GET** /v1/leaderboard | Get the top 20 leaderboard users. -*TribufuApi* | [**GetMe**](docs/TribufuApi.md#getme) | **GET** /v1/me | Get current user information. -*TribufuApi* | [**GetPackageById**](docs/TribufuApi.md#getpackagebyid) | **GET** /v1/packages/{id} | Get a package by id. -*TribufuApi* | [**GetPackages**](docs/TribufuApi.md#getpackages) | **GET** /v1/packages | Get a list of packages. -*TribufuApi* | [**GetPublicKeys**](docs/TribufuApi.md#getpublickeys) | **GET** /v1/oauth2/jwks | Get the public keys for the client. -*TribufuApi* | [**GetSubscriptionById**](docs/TribufuApi.md#getsubscriptionbyid) | **GET** /v1/subscriptions/{id} | Get a subscription by id. -*TribufuApi* | [**GetSubscriptions**](docs/TribufuApi.md#getsubscriptions) | **GET** /v1/subscriptions | Get a list of subscriptions. -*TribufuApi* | [**GetUserAccounts**](docs/TribufuApi.md#getuseraccounts) | **GET** /v1/users/{id}/accounts | Get a list of connected accounts of the user. -*TribufuApi* | [**GetUserById**](docs/TribufuApi.md#getuserbyid) | **GET** /v1/users/{id} | Get a user profile by id. -*TribufuApi* | [**GetUserByName**](docs/TribufuApi.md#getuserbyname) | **GET** /v1/users/name/{name} | Get a user profile by name. -*TribufuApi* | [**GetUserByUuid**](docs/TribufuApi.md#getuserbyuuid) | **GET** /v1/users/uuid/{uuid} | Get a user profile by uuid. -*TribufuApi* | [**GetUserFriends**](docs/TribufuApi.md#getuserfriends) | **GET** /v1/users/{id}/friends | Get a list of friends of the user. -*TribufuApi* | [**GetUserGames**](docs/TribufuApi.md#getusergames) | **GET** /v1/users/{id}/games | Get a list of games the user has played. -*TribufuApi* | [**GetUserGroups**](docs/TribufuApi.md#getusergroups) | **GET** /v1/users/{id}/groups | Get a list of groups the user is a member of. -*TribufuApi* | [**GetUserInfo**](docs/TribufuApi.md#getuserinfo) | **GET** /v1/oauth2/userinfo | Get current user information. -*TribufuApi* | [**GetUserPunishments**](docs/TribufuApi.md#getuserpunishments) | **GET** /v1/users/{id}/punishments | Get a list of punishments the user has received. -*TribufuApi* | [**GetUserServers**](docs/TribufuApi.md#getuserservers) | **GET** /v1/users/{id}/servers | Get a list of servers the user is owner of. -*TribufuApi* | [**GetUsers**](docs/TribufuApi.md#getusers) | **GET** /v1/users | Get a list of user profiles. -*TribufuApi* | [**HashArgon2**](docs/TribufuApi.md#hashargon2) | **POST** /v1/utils/argon2 | Hash a string using argon2. -*TribufuApi* | [**HashBcrypt**](docs/TribufuApi.md#hashbcrypt) | **POST** /v1/utils/bcrypt | Hash a string using bcrypt. -*TribufuApi* | [**HashMd5**](docs/TribufuApi.md#hashmd5) | **POST** /v1/utils/md5 | Hash a string using md5. -*TribufuApi* | [**HashSha256**](docs/TribufuApi.md#hashsha256) | **POST** /v1/utils/sha256 | Hash a string using sha256. -*TribufuApi* | [**IntrospectToken**](docs/TribufuApi.md#introspecttoken) | **POST** /v1/oauth2/introspect | Introspect a token. -*TribufuApi* | [**Login**](docs/TribufuApi.md#login) | **POST** /v1/login | Login with name or email and password. -*TribufuApi* | [**Logout**](docs/TribufuApi.md#logout) | **POST** /v1/logout | Invalidate credentials. -*TribufuApi* | [**Refresh**](docs/TribufuApi.md#refresh) | **POST** /v1/refresh | Refresh credentials. -*TribufuApi* | [**Register**](docs/TribufuApi.md#register) | **POST** /v1/register | Create a new user. -*TribufuApi* | [**RevokeToken**](docs/TribufuApi.md#revoketoken) | **POST** /v1/oauth2/revoke | Revoke a token. -*TribufuApi* | [**Search**](docs/TribufuApi.md#search) | **POST** /v1/search | Advanced search for servers or players. -*TribufuApi* | [**UpdateGameServer**](docs/TribufuApi.md#updategameserver) | **PUT** /v1/servers/{id} | Update a game server. -*TribufuApi* | [**UpdateGameServerCluster**](docs/TribufuApi.md#updategameservercluster) | **PUT** /v1/clusters/{id} | Update a game server cluster. -*TribufuApi* | [**UpdateGroup**](docs/TribufuApi.md#updategroup) | **PUT** /v1/groups/{id} | Update a group. -*TribufuApi* | [**UpdateUserProfile**](docs/TribufuApi.md#updateuserprofile) | **PUT** /v1/users/{id}/profile | Update a user profile. - - - -## Documentation for Models - - - [Model.Account](docs/Account.md) - - [Model.Application](docs/Application.md) - - [Model.ApplicationType](docs/ApplicationType.md) - - [Model.AuthorizeRequest](docs/AuthorizeRequest.md) - - [Model.CodeChallengeMethod](docs/CodeChallengeMethod.md) - - [Model.CryptoViewModel](docs/CryptoViewModel.md) - - [Model.Game](docs/Game.md) - - [Model.GameServer](docs/GameServer.md) - - [Model.GameServerCluster](docs/GameServerCluster.md) - - [Model.GrantType](docs/GrantType.md) - - [Model.Group](docs/Group.md) - - [Model.GroupGame](docs/GroupGame.md) - - [Model.GroupMember](docs/GroupMember.md) - - [Model.GroupRank](docs/GroupRank.md) - - [Model.HashViewModel](docs/HashViewModel.md) - - [Model.IntrospectRequest](docs/IntrospectRequest.md) - - [Model.IpAddress](docs/IpAddress.md) - - [Model.LeaderboardItem](docs/LeaderboardItem.md) - - [Model.LeaderboardOrder](docs/LeaderboardOrder.md) - - [Model.LoginProvider](docs/LoginProvider.md) - - [Model.LoginRequest](docs/LoginRequest.md) - - [Model.LoginResponse](docs/LoginResponse.md) - - [Model.Package](docs/Package.md) - - [Model.Profile](docs/Profile.md) - - [Model.ProfileGame](docs/ProfileGame.md) - - [Model.ProfileGroup](docs/ProfileGroup.md) - - [Model.RefreshRequest](docs/RefreshRequest.md) - - [Model.RegisterRequest](docs/RegisterRequest.md) - - [Model.ResponseType](docs/ResponseType.md) - - [Model.RevokeRequest](docs/RevokeRequest.md) - - [Model.SearchRequest](docs/SearchRequest.md) - - [Model.SearchType](docs/SearchType.md) - - [Model.ServerMetrics](docs/ServerMetrics.md) - - [Model.ServerStatus](docs/ServerStatus.md) - - [Model.Subscription](docs/Subscription.md) - - [Model.TokenHintType](docs/TokenHintType.md) - - [Model.TokenRequest](docs/TokenRequest.md) - - [Model.TokenResponse](docs/TokenResponse.md) - - [Model.TokenType](docs/TokenType.md) - - [Model.UpdateProfile](docs/UpdateProfile.md) - - [Model.UserInfo](docs/UserInfo.md) - - [Model.UserType](docs/UserType.md) - - - -## Documentation for Authorization - - -Authentication schemes defined for the API: - -### ApiKey - -- **Type**: API key -- **API key parameter name**: Authorization -- **Location**: HTTP header +This project is licensed under the [MIT License]. +[MIT License]: https://github.com/tribufu/sdk-dotnet/blob/main/LICENSE.txt From 549e7bcbe379d5a082c0534770da2c7e88621016 Mon Sep 17 00:00:00 2001 From: Guilherme Werner Date: Mon, 26 May 2025 21:43:58 -0300 Subject: [PATCH 02/52] Update projects deps --- src/Tribufu.Example/Tribufu.Example.csproj | 3 +++ src/Tribufu.Generated/Tribufu.Generated.csproj | 1 - 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Tribufu.Example/Tribufu.Example.csproj b/src/Tribufu.Example/Tribufu.Example.csproj index 25a4537..a6fbc73 100644 --- a/src/Tribufu.Example/Tribufu.Example.csproj +++ b/src/Tribufu.Example/Tribufu.Example.csproj @@ -5,6 +5,9 @@ Exe net8.0 + + + diff --git a/src/Tribufu.Generated/Tribufu.Generated.csproj b/src/Tribufu.Generated/Tribufu.Generated.csproj index 2defe9f..20edea6 100644 --- a/src/Tribufu.Generated/Tribufu.Generated.csproj +++ b/src/Tribufu.Generated/Tribufu.Generated.csproj @@ -17,7 +17,6 @@ - From 8994fc13d62290da499ab1c3ad8b0065c5e3c58b Mon Sep 17 00:00:00 2001 From: Guilherme Werner Date: Tue, 27 May 2025 08:35:16 -0300 Subject: [PATCH 03/52] Update Directory.Build.props --- Directory.Build.props | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Directory.Build.props b/Directory.Build.props index 32e4972..c226fd5 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -5,7 +5,7 @@ Copyright (c) Tribufu. All Rights Reserved. MIT git - https://github.com/tribufu/sdk-dotnet + https://github.com/tribufu/tribufu-dotnet 1.1.0 $(Version).0 $(NoWarn);0618;1591;1998;2002;8767 From 1815ca6bcdcaac10e87b1a3bee75cc09cc97c0db Mon Sep 17 00:00:00 2001 From: Guilherme Werner Date: Tue, 27 May 2025 08:35:17 -0300 Subject: [PATCH 04/52] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 2d26ce1..8ccd8a7 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ [![Discord Chat][discord-badge]][discord-url] [mit-badge]: https://img.shields.io/badge/license-MIT-blue.svg -[mit-url]: https://github.com/tribufu/sdk-dotnet/blob/main/LICENSE.txt +[mit-url]: https://github.com/tribufu/tribufu-dotnett/blob/main/LICENSE.txt [discord-badge]: https://img.shields.io/discord/276504514616623104.svg?logo=discord&style=flat-square [discord-url]: https://www.tribufu.com/discord @@ -17,4 +17,4 @@ This project is licensed under the [MIT License]. -[MIT License]: https://github.com/tribufu/sdk-dotnet/blob/main/LICENSE.txt +[MIT License]: https://github.com/tribufu/tribufu-dotnett/blob/main/LICENSE.txt From ed2dfa2b8f6d73f20ebf1c0be5ef9080ada5e04c Mon Sep 17 00:00:00 2001 From: Guilherme Werner Date: Tue, 27 May 2025 08:39:00 -0300 Subject: [PATCH 05/52] Update README.md --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 8ccd8a7..85278f0 100644 --- a/README.md +++ b/README.md @@ -2,9 +2,12 @@ .NET SDK to access Tribufu APIs and services. +[![nuget][nuget-badge]][nuget-url] [![MIT License][mit-badge]][mit-url] [![Discord Chat][discord-badge]][discord-url] +[nuget-badge]: https://img.shields.io/nuget/v/tribufu.svg +[nuget-url]: https://www.nuget.org/packages/Tribufu [mit-badge]: https://img.shields.io/badge/license-MIT-blue.svg [mit-url]: https://github.com/tribufu/tribufu-dotnett/blob/main/LICENSE.txt [discord-badge]: https://img.shields.io/discord/276504514616623104.svg?logo=discord&style=flat-square From 42e14fc07bdde56ee20ad2c77a38d1d1fcf057a4 Mon Sep 17 00:00:00 2001 From: Guilherme Werner Date: Tue, 27 May 2025 08:39:35 -0300 Subject: [PATCH 06/52] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 85278f0..1108fa0 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ [nuget-badge]: https://img.shields.io/nuget/v/tribufu.svg [nuget-url]: https://www.nuget.org/packages/Tribufu [mit-badge]: https://img.shields.io/badge/license-MIT-blue.svg -[mit-url]: https://github.com/tribufu/tribufu-dotnett/blob/main/LICENSE.txt +[mit-url]: https://github.com/tribufu/tribufu-dotnet/blob/main/LICENSE.txt [discord-badge]: https://img.shields.io/discord/276504514616623104.svg?logo=discord&style=flat-square [discord-url]: https://www.tribufu.com/discord @@ -20,4 +20,4 @@ This project is licensed under the [MIT License]. -[MIT License]: https://github.com/tribufu/tribufu-dotnett/blob/main/LICENSE.txt +[MIT License]: https://github.com/tribufu/tribufu-dotnet/blob/main/LICENSE.txt From 9ff743097bf5175b04f96fc848efba5beff06fcf Mon Sep 17 00:00:00 2001 From: Guilherme Werner Date: Tue, 27 May 2025 18:55:32 -0300 Subject: [PATCH 07/52] Update TribufuApi.cs --- src/Tribufu/TribufuApi.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Tribufu/TribufuApi.cs b/src/Tribufu/TribufuApi.cs index d0a97eb..df38a47 100644 --- a/src/Tribufu/TribufuApi.cs +++ b/src/Tribufu/TribufuApi.cs @@ -14,7 +14,7 @@ namespace Tribufu /// /// Use this class to interact with the Tribufu API. /// - public class TribufuApi : TribufuGeneratedApi + public sealed class TribufuApi : TribufuGeneratedApi { /// /// The default base URL for the Tribufu API. From 6ebfde013a46c35df35a7a02d1e5dc2466192f8a Mon Sep 17 00:00:00 2001 From: Guilherme Werner Date: Sun, 1 Jun 2025 21:45:51 -0300 Subject: [PATCH 08/52] Update TribufuApi.cs --- src/Tribufu/TribufuApi.cs | 47 ++++++++++++++------------------------- 1 file changed, 17 insertions(+), 30 deletions(-) diff --git a/src/Tribufu/TribufuApi.cs b/src/Tribufu/TribufuApi.cs index df38a47..5b3664e 100644 --- a/src/Tribufu/TribufuApi.cs +++ b/src/Tribufu/TribufuApi.cs @@ -22,22 +22,9 @@ namespace Tribufu public const string DefaultBaseUrl = "https://api.tribufu.com"; /// - /// Create a with the default options. + /// Create a instance. /// - /// instance with default configuration - public TribufuApi() : this(string.Empty) - { - } - - /// - /// Create a with the given API key. - /// - /// - /// A API key gives you public read only access to the Tribufu API. - /// - /// The API key for authentication - /// instance configured with the API key - public TribufuApi(string apiKey) : base(CreateConfiguration(apiKey)) + public TribufuApi(string? apiKey = null) : base(CreateConfiguration(apiKey)) { } @@ -118,7 +105,7 @@ namespace Tribufu /// /// Gets the user agent string for the Tribufu API client. /// - private static string GetUserAgent() + public static string GetUserAgent() { var version = GetVersion(); var frameworkDescription = RuntimeInformation.FrameworkDescription.Trim(); @@ -126,6 +113,19 @@ namespace Tribufu return $"Tribufu/{version} ({frameworkDescription}; {runtimeIdentifier})"; } + /// + /// Checks if debug mode is enabled. + /// + /// True if debug mode is enabled, otherwise false + public static bool DebugEnabled() + { +#if DEBUG + return true; +#else + return false; +#endif + } + /// /// Get the base URL for the Tribufu API. /// @@ -147,23 +147,10 @@ namespace Tribufu return DefaultBaseUrl; } - /// - /// Checks if debug mode is enabled. - /// - /// True if debug mode is enabled, otherwise false - private static bool DebugEnabled() - { -#if DEBUG - return true; -#else - return false; -#endif - } - /// /// Creates a configuration for the Tribufu API client. /// - private static Configuration CreateConfiguration(string apiKey) + private static Configuration CreateConfiguration(string? apiKey) { var config = new Configuration { From 5b2588b47f684c48345574dd0ce7d8bc925ff34d Mon Sep 17 00:00:00 2001 From: Guilherme Werner Date: Mon, 2 Jun 2025 08:58:34 -0300 Subject: [PATCH 09/52] Add shared packages --- Directory.Packages.props | 9 + Tribufu.sln | 84 ++++++++ scripts/package.ps1 | 5 + scripts/package.sh | 3 - .../EnumMemberConverter.cs | 30 +++ src/Tribufu.ComponentModel/README.md | 1 + .../Tribufu.ComponentModel.csproj | 16 ++ .../ConfigurationManager.cs | 53 +++++ src/Tribufu.Configuration/README.md | 1 + .../Tribufu.Configuration.csproj | 30 +++ src/Tribufu.Database/DatabaseConfiguration.cs | 55 ++++++ src/Tribufu.Database/DatabaseConstants.cs | 12 ++ src/Tribufu.Database/DatabaseDriver.cs | 22 +++ src/Tribufu.Database/README.md | 1 + .../Repositories/IRepository.cs | 39 ++++ .../Repositories/Repository.cs | 113 +++++++++++ src/Tribufu.Database/Tribufu.Database.csproj | 25 +++ src/Tribufu.Example/Program.cs | 11 +- src/Tribufu.Example/Tribufu.Example.csproj | 1 + src/Tribufu.Logging/LogLevel.cs | 22 +++ src/Tribufu.Logging/Logger.cs | 59 ++++++ src/Tribufu.Logging/README.md | 1 + src/Tribufu.Logging/Tribufu.Logging.csproj | 18 ++ src/Tribufu.Runtime/ApplicationContext.cs | 183 ++++++++++++++++++ src/Tribufu.Runtime/README.md | 1 + src/Tribufu.Runtime/Tribufu.Runtime.csproj | 19 ++ .../DecimalNullableStringConverter.cs | 46 +++++ .../DecimalStringConverter.cs | 32 +++ src/Tribufu.Serialization/README.md | 1 + .../Tribufu.Serialization.csproj | 19 ++ .../ULongNullableStringConverter.cs | 45 +++++ .../ULongStringConverter.cs | 31 +++ 32 files changed, 981 insertions(+), 7 deletions(-) create mode 100644 scripts/package.ps1 delete mode 100644 scripts/package.sh create mode 100644 src/Tribufu.ComponentModel/EnumMemberConverter.cs create mode 100644 src/Tribufu.ComponentModel/README.md create mode 100644 src/Tribufu.ComponentModel/Tribufu.ComponentModel.csproj create mode 100644 src/Tribufu.Configuration/ConfigurationManager.cs create mode 100644 src/Tribufu.Configuration/README.md create mode 100644 src/Tribufu.Configuration/Tribufu.Configuration.csproj create mode 100644 src/Tribufu.Database/DatabaseConfiguration.cs create mode 100644 src/Tribufu.Database/DatabaseConstants.cs create mode 100644 src/Tribufu.Database/DatabaseDriver.cs create mode 100644 src/Tribufu.Database/README.md create mode 100644 src/Tribufu.Database/Repositories/IRepository.cs create mode 100644 src/Tribufu.Database/Repositories/Repository.cs create mode 100644 src/Tribufu.Database/Tribufu.Database.csproj create mode 100644 src/Tribufu.Logging/LogLevel.cs create mode 100644 src/Tribufu.Logging/Logger.cs create mode 100644 src/Tribufu.Logging/README.md create mode 100644 src/Tribufu.Logging/Tribufu.Logging.csproj create mode 100644 src/Tribufu.Runtime/ApplicationContext.cs create mode 100644 src/Tribufu.Runtime/README.md create mode 100644 src/Tribufu.Runtime/Tribufu.Runtime.csproj create mode 100644 src/Tribufu.Serialization/DecimalNullableStringConverter.cs create mode 100644 src/Tribufu.Serialization/DecimalStringConverter.cs create mode 100644 src/Tribufu.Serialization/README.md create mode 100644 src/Tribufu.Serialization/Tribufu.Serialization.csproj create mode 100644 src/Tribufu.Serialization/ULongNullableStringConverter.cs create mode 100644 src/Tribufu.Serialization/ULongStringConverter.cs diff --git a/Directory.Packages.props b/Directory.Packages.props index e95a987..94e2d6a 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -5,9 +5,18 @@ + + + + + + + + + diff --git a/Tribufu.sln b/Tribufu.sln index b3ff43a..fd461d5 100644 --- a/Tribufu.sln +++ b/Tribufu.sln @@ -7,6 +7,18 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tribufu.Generated", "src\Tr EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tribufu.Example", "src\Tribufu.Example\Tribufu.Example.csproj", "{D6392A29-E2DC-4050-B4C1-B279DD2D226D}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tribufu.Logging", "src\Tribufu.Logging\Tribufu.Logging.csproj", "{CFD80847-9B98-4991-BADF-8714E7D8D81C}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tribufu.Configuration", "src\Tribufu.Configuration\Tribufu.Configuration.csproj", "{C0A841C8-9FC5-4AC0-B9AD-6BBFCEDCBE5F}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tribufu.Runtime", "src\Tribufu.Runtime\Tribufu.Runtime.csproj", "{26EEB407-733C-4383-9211-B083CD5F593B}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tribufu.Database", "src\Tribufu.Database\Tribufu.Database.csproj", "{E7F9A76F-C087-410B-B4B5-A928A6CDC2BA}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tribufu.Serialization", "src\Tribufu.Serialization\Tribufu.Serialization.csproj", "{D6DAE078-2F80-49DD-97A3-B1223FE04F91}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tribufu.ComponentModel", "src\Tribufu.ComponentModel\Tribufu.ComponentModel.csproj", "{7CB04FFD-8F4B-4B40-BB4B-2BAA19D783E1}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -53,6 +65,78 @@ Global {D6392A29-E2DC-4050-B4C1-B279DD2D226D}.Release|x64.Build.0 = Release|Any CPU {D6392A29-E2DC-4050-B4C1-B279DD2D226D}.Release|x86.ActiveCfg = Release|Any CPU {D6392A29-E2DC-4050-B4C1-B279DD2D226D}.Release|x86.Build.0 = Release|Any CPU + {CFD80847-9B98-4991-BADF-8714E7D8D81C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {CFD80847-9B98-4991-BADF-8714E7D8D81C}.Debug|Any CPU.Build.0 = Debug|Any CPU + {CFD80847-9B98-4991-BADF-8714E7D8D81C}.Debug|x64.ActiveCfg = Debug|Any CPU + {CFD80847-9B98-4991-BADF-8714E7D8D81C}.Debug|x64.Build.0 = Debug|Any CPU + {CFD80847-9B98-4991-BADF-8714E7D8D81C}.Debug|x86.ActiveCfg = Debug|Any CPU + {CFD80847-9B98-4991-BADF-8714E7D8D81C}.Debug|x86.Build.0 = Debug|Any CPU + {CFD80847-9B98-4991-BADF-8714E7D8D81C}.Release|Any CPU.ActiveCfg = Release|Any CPU + {CFD80847-9B98-4991-BADF-8714E7D8D81C}.Release|Any CPU.Build.0 = Release|Any CPU + {CFD80847-9B98-4991-BADF-8714E7D8D81C}.Release|x64.ActiveCfg = Release|Any CPU + {CFD80847-9B98-4991-BADF-8714E7D8D81C}.Release|x64.Build.0 = Release|Any CPU + {CFD80847-9B98-4991-BADF-8714E7D8D81C}.Release|x86.ActiveCfg = Release|Any CPU + {CFD80847-9B98-4991-BADF-8714E7D8D81C}.Release|x86.Build.0 = Release|Any CPU + {C0A841C8-9FC5-4AC0-B9AD-6BBFCEDCBE5F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {C0A841C8-9FC5-4AC0-B9AD-6BBFCEDCBE5F}.Debug|Any CPU.Build.0 = Debug|Any CPU + {C0A841C8-9FC5-4AC0-B9AD-6BBFCEDCBE5F}.Debug|x64.ActiveCfg = Debug|Any CPU + {C0A841C8-9FC5-4AC0-B9AD-6BBFCEDCBE5F}.Debug|x64.Build.0 = Debug|Any CPU + {C0A841C8-9FC5-4AC0-B9AD-6BBFCEDCBE5F}.Debug|x86.ActiveCfg = Debug|Any CPU + {C0A841C8-9FC5-4AC0-B9AD-6BBFCEDCBE5F}.Debug|x86.Build.0 = Debug|Any CPU + {C0A841C8-9FC5-4AC0-B9AD-6BBFCEDCBE5F}.Release|Any CPU.ActiveCfg = Release|Any CPU + {C0A841C8-9FC5-4AC0-B9AD-6BBFCEDCBE5F}.Release|Any CPU.Build.0 = Release|Any CPU + {C0A841C8-9FC5-4AC0-B9AD-6BBFCEDCBE5F}.Release|x64.ActiveCfg = Release|Any CPU + {C0A841C8-9FC5-4AC0-B9AD-6BBFCEDCBE5F}.Release|x64.Build.0 = Release|Any CPU + {C0A841C8-9FC5-4AC0-B9AD-6BBFCEDCBE5F}.Release|x86.ActiveCfg = Release|Any CPU + {C0A841C8-9FC5-4AC0-B9AD-6BBFCEDCBE5F}.Release|x86.Build.0 = Release|Any CPU + {26EEB407-733C-4383-9211-B083CD5F593B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {26EEB407-733C-4383-9211-B083CD5F593B}.Debug|Any CPU.Build.0 = Debug|Any CPU + {26EEB407-733C-4383-9211-B083CD5F593B}.Debug|x64.ActiveCfg = Debug|Any CPU + {26EEB407-733C-4383-9211-B083CD5F593B}.Debug|x64.Build.0 = Debug|Any CPU + {26EEB407-733C-4383-9211-B083CD5F593B}.Debug|x86.ActiveCfg = Debug|Any CPU + {26EEB407-733C-4383-9211-B083CD5F593B}.Debug|x86.Build.0 = Debug|Any CPU + {26EEB407-733C-4383-9211-B083CD5F593B}.Release|Any CPU.ActiveCfg = Release|Any CPU + {26EEB407-733C-4383-9211-B083CD5F593B}.Release|Any CPU.Build.0 = Release|Any CPU + {26EEB407-733C-4383-9211-B083CD5F593B}.Release|x64.ActiveCfg = Release|Any CPU + {26EEB407-733C-4383-9211-B083CD5F593B}.Release|x64.Build.0 = Release|Any CPU + {26EEB407-733C-4383-9211-B083CD5F593B}.Release|x86.ActiveCfg = Release|Any CPU + {26EEB407-733C-4383-9211-B083CD5F593B}.Release|x86.Build.0 = Release|Any CPU + {E7F9A76F-C087-410B-B4B5-A928A6CDC2BA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {E7F9A76F-C087-410B-B4B5-A928A6CDC2BA}.Debug|Any CPU.Build.0 = Debug|Any CPU + {E7F9A76F-C087-410B-B4B5-A928A6CDC2BA}.Debug|x64.ActiveCfg = Debug|Any CPU + {E7F9A76F-C087-410B-B4B5-A928A6CDC2BA}.Debug|x64.Build.0 = Debug|Any CPU + {E7F9A76F-C087-410B-B4B5-A928A6CDC2BA}.Debug|x86.ActiveCfg = Debug|Any CPU + {E7F9A76F-C087-410B-B4B5-A928A6CDC2BA}.Debug|x86.Build.0 = Debug|Any CPU + {E7F9A76F-C087-410B-B4B5-A928A6CDC2BA}.Release|Any CPU.ActiveCfg = Release|Any CPU + {E7F9A76F-C087-410B-B4B5-A928A6CDC2BA}.Release|Any CPU.Build.0 = Release|Any CPU + {E7F9A76F-C087-410B-B4B5-A928A6CDC2BA}.Release|x64.ActiveCfg = Release|Any CPU + {E7F9A76F-C087-410B-B4B5-A928A6CDC2BA}.Release|x64.Build.0 = Release|Any CPU + {E7F9A76F-C087-410B-B4B5-A928A6CDC2BA}.Release|x86.ActiveCfg = Release|Any CPU + {E7F9A76F-C087-410B-B4B5-A928A6CDC2BA}.Release|x86.Build.0 = Release|Any CPU + {D6DAE078-2F80-49DD-97A3-B1223FE04F91}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {D6DAE078-2F80-49DD-97A3-B1223FE04F91}.Debug|Any CPU.Build.0 = Debug|Any CPU + {D6DAE078-2F80-49DD-97A3-B1223FE04F91}.Debug|x64.ActiveCfg = Debug|Any CPU + {D6DAE078-2F80-49DD-97A3-B1223FE04F91}.Debug|x64.Build.0 = Debug|Any CPU + {D6DAE078-2F80-49DD-97A3-B1223FE04F91}.Debug|x86.ActiveCfg = Debug|Any CPU + {D6DAE078-2F80-49DD-97A3-B1223FE04F91}.Debug|x86.Build.0 = Debug|Any CPU + {D6DAE078-2F80-49DD-97A3-B1223FE04F91}.Release|Any CPU.ActiveCfg = Release|Any CPU + {D6DAE078-2F80-49DD-97A3-B1223FE04F91}.Release|Any CPU.Build.0 = Release|Any CPU + {D6DAE078-2F80-49DD-97A3-B1223FE04F91}.Release|x64.ActiveCfg = Release|Any CPU + {D6DAE078-2F80-49DD-97A3-B1223FE04F91}.Release|x64.Build.0 = Release|Any CPU + {D6DAE078-2F80-49DD-97A3-B1223FE04F91}.Release|x86.ActiveCfg = Release|Any CPU + {D6DAE078-2F80-49DD-97A3-B1223FE04F91}.Release|x86.Build.0 = Release|Any CPU + {7CB04FFD-8F4B-4B40-BB4B-2BAA19D783E1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {7CB04FFD-8F4B-4B40-BB4B-2BAA19D783E1}.Debug|Any CPU.Build.0 = Debug|Any CPU + {7CB04FFD-8F4B-4B40-BB4B-2BAA19D783E1}.Debug|x64.ActiveCfg = Debug|Any CPU + {7CB04FFD-8F4B-4B40-BB4B-2BAA19D783E1}.Debug|x64.Build.0 = Debug|Any CPU + {7CB04FFD-8F4B-4B40-BB4B-2BAA19D783E1}.Debug|x86.ActiveCfg = Debug|Any CPU + {7CB04FFD-8F4B-4B40-BB4B-2BAA19D783E1}.Debug|x86.Build.0 = Debug|Any CPU + {7CB04FFD-8F4B-4B40-BB4B-2BAA19D783E1}.Release|Any CPU.ActiveCfg = Release|Any CPU + {7CB04FFD-8F4B-4B40-BB4B-2BAA19D783E1}.Release|Any CPU.Build.0 = Release|Any CPU + {7CB04FFD-8F4B-4B40-BB4B-2BAA19D783E1}.Release|x64.ActiveCfg = Release|Any CPU + {7CB04FFD-8F4B-4B40-BB4B-2BAA19D783E1}.Release|x64.Build.0 = Release|Any CPU + {7CB04FFD-8F4B-4B40-BB4B-2BAA19D783E1}.Release|x86.ActiveCfg = Release|Any CPU + {7CB04FFD-8F4B-4B40-BB4B-2BAA19D783E1}.Release|x86.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/scripts/package.ps1 b/scripts/package.ps1 new file mode 100644 index 0000000..7408aae --- /dev/null +++ b/scripts/package.ps1 @@ -0,0 +1,5 @@ +#!/usr/bin/env sh + +dotnet clean +dotnet build -c Release +dotnet pack diff --git a/scripts/package.sh b/scripts/package.sh deleted file mode 100644 index 58f8eb2..0000000 --- a/scripts/package.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/usr/bin/env sh - -dotnet pack diff --git a/src/Tribufu.ComponentModel/EnumMemberConverter.cs b/src/Tribufu.ComponentModel/EnumMemberConverter.cs new file mode 100644 index 0000000..38d62e3 --- /dev/null +++ b/src/Tribufu.ComponentModel/EnumMemberConverter.cs @@ -0,0 +1,30 @@ +// Copyright (c) Tribufu. All Rights Reserved. +// SPDX-License-Identifier: MIT + +using System; +using System.ComponentModel; +using System.Globalization; +using System.Runtime.Serialization; + +namespace Tribufu.ComponentModel +{ + public class EnumMemberConverter : EnumConverter + { + public EnumMemberConverter(Type type) : base(type) { } + + public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value) + { + var type = typeof(T); + + foreach (var field in type.GetFields()) + { + if (Attribute.GetCustomAttribute(field, typeof(EnumMemberAttribute)) is EnumMemberAttribute attribute && value is string enumValue && attribute.Value == enumValue) + { + return field.GetValue(null); + } + } + + return base.ConvertFrom(context, culture, value); + } + } +} diff --git a/src/Tribufu.ComponentModel/README.md b/src/Tribufu.ComponentModel/README.md new file mode 100644 index 0000000..54c1ab5 --- /dev/null +++ b/src/Tribufu.ComponentModel/README.md @@ -0,0 +1 @@ +# Tribufu diff --git a/src/Tribufu.ComponentModel/Tribufu.ComponentModel.csproj b/src/Tribufu.ComponentModel/Tribufu.ComponentModel.csproj new file mode 100644 index 0000000..4bcae0c --- /dev/null +++ b/src/Tribufu.ComponentModel/Tribufu.ComponentModel.csproj @@ -0,0 +1,16 @@ + + + Tribufu.ComponentModel + Tribufu ComponentModel Extensions + README.md + + + Properties + true + Library + netstandard2.0;net45;net5.0 + + + + + diff --git a/src/Tribufu.Configuration/ConfigurationManager.cs b/src/Tribufu.Configuration/ConfigurationManager.cs new file mode 100644 index 0000000..009b6e7 --- /dev/null +++ b/src/Tribufu.Configuration/ConfigurationManager.cs @@ -0,0 +1,53 @@ +// Copyright (c) Tribufu. All Rights Reserved. +// SPDX-License-Identifier: MIT + +using Microsoft.Extensions.Configuration; +using System.IO; +using Tomlyn.Extensions.Configuration; +using Tribufu.Logging; +using Tribufu.Runtime; + +namespace Tribufu.Configuration +{ + public static class ConfigurationManager + { + public static IConfiguration Configuration { get; private set; } + + public static IConfiguration Load(string[] fileNames) + { + var configDirectory = ApplicationContext.GetConfigDirectory(); + var configurationBuilder = new ConfigurationBuilder(); + configurationBuilder.AddEnvironmentVariables(); + + foreach (var fileName in fileNames) + { + var fullPath = Path.Combine(configDirectory, fileName); + if (!File.Exists(fullPath)) + { + Logger.Debug($"Config file '{fullPath}' not found, skipping."); + continue; + } + + var ext = Path.GetExtension(fullPath).ToLowerInvariant(); + switch (ext) + { + case ".ini": + configurationBuilder.AddIniFile(fullPath, true, false); + break; + case ".json": + configurationBuilder.AddJsonFile(fullPath, true, false); + break; + case ".toml": + configurationBuilder.AddTomlFile(fullPath, true, false); + break; + default: + Logger.Warn($"Unsupported config file extension: {ext}"); + break; + } + } + + Configuration = configurationBuilder.Build(); + return Configuration; + } + } +} diff --git a/src/Tribufu.Configuration/README.md b/src/Tribufu.Configuration/README.md new file mode 100644 index 0000000..54c1ab5 --- /dev/null +++ b/src/Tribufu.Configuration/README.md @@ -0,0 +1 @@ +# Tribufu diff --git a/src/Tribufu.Configuration/Tribufu.Configuration.csproj b/src/Tribufu.Configuration/Tribufu.Configuration.csproj new file mode 100644 index 0000000..475a02c --- /dev/null +++ b/src/Tribufu.Configuration/Tribufu.Configuration.csproj @@ -0,0 +1,30 @@ + + + Tribufu.Configuration + Tribufu Configuration Extensions + README.md + + + Properties + true + Library + netstandard2.0;net6.0 + + + + + + + + + + + + + + + + + + + diff --git a/src/Tribufu.Database/DatabaseConfiguration.cs b/src/Tribufu.Database/DatabaseConfiguration.cs new file mode 100644 index 0000000..915f1d2 --- /dev/null +++ b/src/Tribufu.Database/DatabaseConfiguration.cs @@ -0,0 +1,55 @@ +// Copyright (c) Tribufu. All Rights Reserved. +// SPDX-License-Identifier: MIT + +using Microsoft.Extensions.Configuration; +using System; + +namespace Tribufu.Database +{ + public class DatabaseConfiguration + { + public DatabaseDriver Driver { get; set; } + + public string? Version { get; set; } + + public string? Host { get; set; } + + public string? Port { get; set; } + + public string? User { get; set; } + + public string? Password { get; set; } + + public string? Schema { get; set; } + + /// + /// Loads the from the "database" section or from root-level keys prefixed with "database_". + /// + /// The configuration source. + /// The populated instance. + public static DatabaseConfiguration Load(IConfiguration configuration) + { + var section = configuration.GetSection("database"); + var useRootFallback = !section.Exists(); + + string? GetConfig(string key) => useRootFallback ? configuration[$"database_{key}"] : section[key]; + + var driverString = GetConfig("driver") ?? throw new Exception("Missing database driver"); + if (!Enum.TryParse(driverString, true, out var driver)) + { + throw new Exception($"Unsupported database driver: {driverString}"); + } + + return new DatabaseConfiguration + { + Driver = driver, + Version = GetConfig("version"), + Host = GetConfig("host"), + Port = GetConfig("port"), + User = GetConfig("user"), + Password = GetConfig("password"), + Schema = GetConfig("schema") + }; + } + } +} diff --git a/src/Tribufu.Database/DatabaseConstants.cs b/src/Tribufu.Database/DatabaseConstants.cs new file mode 100644 index 0000000..bfff4b2 --- /dev/null +++ b/src/Tribufu.Database/DatabaseConstants.cs @@ -0,0 +1,12 @@ +// Copyright (c) Tribufu. All Rights Reserved. +// SPDX-License-Identifier: MIT + +namespace Tribufu.Database +{ + public static class DatabaseConstants + { + public const uint DEFAULT_PAGINATION = 20; + + public const uint MAX_PAGINATION = 100; + } +} diff --git a/src/Tribufu.Database/DatabaseDriver.cs b/src/Tribufu.Database/DatabaseDriver.cs new file mode 100644 index 0000000..8c3f8f3 --- /dev/null +++ b/src/Tribufu.Database/DatabaseDriver.cs @@ -0,0 +1,22 @@ +// Copyright (c) Tribufu. All Rights Reserved. +// SPDX-License-Identifier: MIT + +namespace Tribufu.Database +{ + public enum DatabaseDriver : byte + { + MySql = 0, + + Postgres = 1, + + SqlServer = 2, + + Oracle = 3, + + Firebird = 4, + + Sqlite = 5, + + MongoDb = 6, + } +} diff --git a/src/Tribufu.Database/README.md b/src/Tribufu.Database/README.md new file mode 100644 index 0000000..54c1ab5 --- /dev/null +++ b/src/Tribufu.Database/README.md @@ -0,0 +1 @@ +# Tribufu diff --git a/src/Tribufu.Database/Repositories/IRepository.cs b/src/Tribufu.Database/Repositories/IRepository.cs new file mode 100644 index 0000000..97f2750 --- /dev/null +++ b/src/Tribufu.Database/Repositories/IRepository.cs @@ -0,0 +1,39 @@ +// Copyright (c) Tribufu. All Rights Reserved. +// SPDX-License-Identifier: MIT + +using System.Collections.Generic; +using System.Threading.Tasks; + +namespace Tribufu.Database.Repositories +{ + public interface IRepository where T : class + { + IList GetAll(); + + Task> GetAllAsync(); + + IList GetPage(uint page, uint limit); + + Task> GetPageAsync(uint page, uint limit); + + T? GetOne(K key); + + Task GetOneAsync(K key); + + T? Create(T entity); + + Task CreateAsync(T entity); + + T? Update(T entity); + + Task UpdateAsync(T entity); + + void Delete(K key); + + Task DeleteAsync(K key); + + void Delete(T entity); + + Task DeleteAsync(T entity); + } +} diff --git a/src/Tribufu.Database/Repositories/Repository.cs b/src/Tribufu.Database/Repositories/Repository.cs new file mode 100644 index 0000000..a929382 --- /dev/null +++ b/src/Tribufu.Database/Repositories/Repository.cs @@ -0,0 +1,113 @@ +// Copyright (c) Tribufu. All Rights Reserved. +// SPDX-License-Identifier: MIT + +using Microsoft.EntityFrameworkCore; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; + +namespace Tribufu.Database.Repositories +{ + public class Repository : IRepository where C : DbContext where T : class + { + protected readonly C _context; + + protected readonly DbSet _dbSet; + + public Repository(C context) + { + _context = context ?? throw new ArgumentNullException(nameof(context)); + _dbSet = context.Set(); + } + + public virtual IList GetAll() + { + return [.. _dbSet]; + } + + public virtual async Task> GetAllAsync() + { + return await _dbSet.ToListAsync(); + } + + public virtual IList GetPage(uint page, uint limit) + { + return _dbSet.Skip((int)((page < 1 ? 0 : page - 1) * limit)).Take((int)limit).ToList(); + } + + public virtual async Task> GetPageAsync(uint page, uint limit) + { + return await _dbSet.Skip((int)((page < 1 ? 0 : page - 1) * limit)).Take((int)limit).ToListAsync(); + } + + public virtual T? GetOne(K key) + { + return _dbSet.Find(key); + } + + public virtual async Task GetOneAsync(K key) + { + return await _dbSet.FindAsync(key); + } + + public virtual T? Create(T entity) + { + _dbSet.Add(entity); + + var result = _context.SaveChanges(); + return result > 0 ? entity : null; + } + + public virtual async Task CreateAsync(T entity) + { + await _dbSet.AddAsync(entity); + var result = await _context.SaveChangesAsync(); + return result > 0 ? entity : null; + } + + public virtual T? Update(T entity) + { + _dbSet.Update(entity); + var result = _context.SaveChanges(); + return result > 0 ? entity : null; + } + + public virtual async Task UpdateAsync(T entity) + { + _dbSet.Update(entity); + var result = await _context.SaveChangesAsync(); + return result > 0 ? entity : null; + } + + public virtual void Delete(K key) + { + var entity = _dbSet.Find(key); + if (entity != null) + { + Delete(entity); + } + } + + public virtual async Task DeleteAsync(K key) + { + var entity = await _dbSet.FindAsync(key); + if (entity != null) + { + await DeleteAsync(entity); + } + } + + public virtual void Delete(T entity) + { + _dbSet.Remove(entity); + _context.SaveChanges(); + } + + public virtual async Task DeleteAsync(T entity) + { + _dbSet.Remove(entity); + await _context.SaveChangesAsync(); + } + } +} diff --git a/src/Tribufu.Database/Tribufu.Database.csproj b/src/Tribufu.Database/Tribufu.Database.csproj new file mode 100644 index 0000000..dd69953 --- /dev/null +++ b/src/Tribufu.Database/Tribufu.Database.csproj @@ -0,0 +1,25 @@ + + + Tribufu.Database + Tribufu Database Extensions + README.md + + + Properties + true + enable + Library + net8.0 + + + + + + + + + + + + + diff --git a/src/Tribufu.Example/Program.cs b/src/Tribufu.Example/Program.cs index 5462790..c6f9e1d 100644 --- a/src/Tribufu.Example/Program.cs +++ b/src/Tribufu.Example/Program.cs @@ -1,8 +1,9 @@ // Copyright (c) Tribufu. All Rights Reserved. -// SPDX-License-Identifier: UNLICENSED +// SPDX-License-Identifier: MIT using dotenv.net; using Tribufu.Generated.Client; +using Tribufu.Logging; namespace Tribufu.Test { @@ -10,21 +11,23 @@ namespace Tribufu.Test { public static async Task Main(string[] args) { + Logger.Initialize(LogLevel.All); + DotEnv.Load(new DotEnvOptions(ignoreExceptions: true, envFilePaths: [".env", "../../.env"])); var apiKey = Environment.GetEnvironmentVariable("TRIBUFU_API_KEY"); var tribufu = new TribufuApi(apiKey ?? ""); - Console.WriteLine(TribufuApi.GetVersion()); + Logger.Debug(TribufuApi.GetVersion()); try { var result = await tribufu.GetUserInfoAsync(); - Console.WriteLine(result); + Logger.Debug(result.ToString()); } catch (ApiException e) { - Console.WriteLine(e.Message); + Logger.Debug(e.Message); } } } diff --git a/src/Tribufu.Example/Tribufu.Example.csproj b/src/Tribufu.Example/Tribufu.Example.csproj index a6fbc73..c5cbd10 100644 --- a/src/Tribufu.Example/Tribufu.Example.csproj +++ b/src/Tribufu.Example/Tribufu.Example.csproj @@ -9,6 +9,7 @@ + diff --git a/src/Tribufu.Logging/LogLevel.cs b/src/Tribufu.Logging/LogLevel.cs new file mode 100644 index 0000000..f13e62c --- /dev/null +++ b/src/Tribufu.Logging/LogLevel.cs @@ -0,0 +1,22 @@ +// Copyright (c) Tribufu. All Rights Reserved. +// SPDX-License-Identifier: MIT + +namespace Tribufu.Logging +{ + public enum LogLevel : byte + { + Off = 0, + + Trace = 1, + + Debug = 2, + + Info = 3, + + Warn = 4, + + Error = 5, + + All = 6, + } +} diff --git a/src/Tribufu.Logging/Logger.cs b/src/Tribufu.Logging/Logger.cs new file mode 100644 index 0000000..38e01f6 --- /dev/null +++ b/src/Tribufu.Logging/Logger.cs @@ -0,0 +1,59 @@ +// Copyright (c) Tribufu. All Rights Reserved. +// SPDX-License-Identifier: MIT + +using System; + +namespace Tribufu.Logging +{ + public static class Logger + { + private static LogLevel _level = LogLevel.Off; + + public static void Initialize(LogLevel level = LogLevel.Off) + { + _level = level; + } + + public static void Info(string message) + { + Log(LogLevel.Info, message, ConsoleColor.Green); + } + + public static void Warn(string message) + { + Log(LogLevel.Warn, message, ConsoleColor.Yellow); + } + + public static void Error(string message) + { + Log(LogLevel.Error, message, ConsoleColor.Red); + } + + public static void Debug(string message) + { + Log(LogLevel.Debug, message, ConsoleColor.White); + } + + public static void Trace(string message) + { + Log(LogLevel.Trace, message, ConsoleColor.Gray); + } + + private static void Log(LogLevel level, string message, ConsoleColor color) + { + if (_level == LogLevel.Off) + { + return; + } + + if (_level == LogLevel.All || level >= _level) + { + var defaultColor = Console.ForegroundColor; + Console.ForegroundColor = color; + var timestamp = DateTime.Now.ToString("yyyy-MM-ddTHH:mm:ss"); + Console.WriteLine($"[{timestamp}] [{level.ToString().ToUpper()}]: {message}"); + Console.ForegroundColor = defaultColor; + } + } + } +} diff --git a/src/Tribufu.Logging/README.md b/src/Tribufu.Logging/README.md new file mode 100644 index 0000000..54c1ab5 --- /dev/null +++ b/src/Tribufu.Logging/README.md @@ -0,0 +1 @@ +# Tribufu diff --git a/src/Tribufu.Logging/Tribufu.Logging.csproj b/src/Tribufu.Logging/Tribufu.Logging.csproj new file mode 100644 index 0000000..516c7f9 --- /dev/null +++ b/src/Tribufu.Logging/Tribufu.Logging.csproj @@ -0,0 +1,18 @@ + + + Tribufu.Logging + Tribufu Logging Extensions + README.md + + + Properties + true + Library + netstandard2.0;net45;net5.0 + + + + + + + diff --git a/src/Tribufu.Runtime/ApplicationContext.cs b/src/Tribufu.Runtime/ApplicationContext.cs new file mode 100644 index 0000000..ef26266 --- /dev/null +++ b/src/Tribufu.Runtime/ApplicationContext.cs @@ -0,0 +1,183 @@ +// Copyright (c) Tribufu. All Rights Reserved. +// SPDX-License-Identifier: MIT + +using System; +using System.IO; +using System.Runtime.InteropServices; +using Tribufu.Logging; + +namespace Tribufu.Runtime +{ + /// + /// Provides standardized access to important application directories, such as config, saved data, logs, and platform-specific binaries. + /// This is especially useful for abstracting file path logic across environments (development, production, etc). + /// + public static class ApplicationContext + { + /// + /// Gets the root base directory of the application. + /// + /// + /// - In development, this resolves to the root of the repository (five levels above bin/Debug or bin/Release). + /// - In production, it resolves to two levels above the binary location. + /// - It uses case-insensitive checks and runtime heuristics to improve accuracy. + /// + /// The absolute path to the base directory. + public static string GetBaseDirectory() + { + try + { + string baseDirectory; + string defaultBaseDirectory = AppContext.BaseDirectory; + + bool isDevelopment = defaultBaseDirectory.ToLowerInvariant().Contains("debug"); + + if (isDevelopment) + { + // Go 5 levels up to simulate project root + baseDirectory = Path.Combine(defaultBaseDirectory, "..", "..", "..", "..", ".."); + } + else + { + baseDirectory = Path.Combine(defaultBaseDirectory, "..", ".."); + } + + return Path.GetFullPath(baseDirectory); + } + catch (Exception ex) + { + Logger.Warn($"(ApplicationContext) Failed to resolve base directory: {ex.Message}"); + return AppContext.BaseDirectory; + } + } + + /// + /// Gets the path to the platform-specific binary directory. + /// + /// + /// The absolute path to bin/<runtime-identifier> if available, + /// otherwise falls back to bin/dotnet. + /// + public static string GetBinDirectory() + { + var binDirectory = Path.Combine(GetBaseDirectory(), "bin"); + +#if NETSTANDARD + var runtimeIdentifier = GetRuntimeIdentifierLegacy(); + + if (!string.IsNullOrEmpty(runtimeIdentifier)) + { + binDirectory = Path.Combine(binDirectory, runtimeIdentifier); + } + else + { + binDirectory = Path.Combine(binDirectory, "dotnet"); + } +#else + if (!string.IsNullOrEmpty(RuntimeInformation.RuntimeIdentifier)) + { + binDirectory = Path.Combine(binDirectory, RuntimeInformation.RuntimeIdentifier); + } + else + { + binDirectory = Path.Combine(binDirectory, "dotnet"); + } +#endif + + return binDirectory; + } + + private static string GetRuntimeIdentifierLegacy() + { + string osPart; + PlatformID platform = Environment.OSVersion.Platform; + + switch (platform) + { + case PlatformID.Win32NT: + osPart = "win"; + break; + case PlatformID.Unix: + if (IsMacOS()) + osPart = "osx"; + else + osPart = "linux"; + break; + case PlatformID.MacOSX: + osPart = "osx"; + break; + default: + osPart = "unknown"; + break; + } + + var archPart = Environment.Is64BitProcess ? "x64" : "x86"; + if (osPart == "unknown") + { + return null; + } + + return $"{osPart}-{archPart}"; + } + + private static bool IsMacOS() + { + if (Environment.OSVersion.Platform == PlatformID.Unix) + { + Version version = Environment.OSVersion.Version; + + if (version.Major >= 19) + { + return true; + } + } + + return false; + } + + /// + /// Gets the path to the configuration directory. + /// + /// The absolute path to the config directory. + public static string GetConfigDirectory() + { + return Path.Combine(GetBaseDirectory(), "config"); + } + + /// + /// Gets the path to the assets directory. + /// + /// The absolute path to the assets directory. + public static string GetAssetsDirectory() + { + return Path.Combine(GetBaseDirectory(), "assets"); + } + + /// + /// Gets the path to the saved data directory. + /// + /// The absolute path to the saved directory. + public static string GetSavedDirectory() + { + return Path.Combine(GetBaseDirectory(), "saved"); + } + + /// + /// Gets the path to the cache directory inside saved. + /// + /// The absolute path to the saved/cache directory. + public static string GetCacheDirectory() + { + return Path.Combine(GetSavedDirectory(), "cache"); + } + + /// + /// Gets the path to the logs directory inside saved. + /// + /// The absolute path to the saved/logs directory. + public static string GetLogsDirectory() + { + return Path.Combine(GetSavedDirectory(), "logs"); + } + } +} diff --git a/src/Tribufu.Runtime/README.md b/src/Tribufu.Runtime/README.md new file mode 100644 index 0000000..54c1ab5 --- /dev/null +++ b/src/Tribufu.Runtime/README.md @@ -0,0 +1 @@ +# Tribufu diff --git a/src/Tribufu.Runtime/Tribufu.Runtime.csproj b/src/Tribufu.Runtime/Tribufu.Runtime.csproj new file mode 100644 index 0000000..0d16370 --- /dev/null +++ b/src/Tribufu.Runtime/Tribufu.Runtime.csproj @@ -0,0 +1,19 @@ + + + Tribufu.Runtime + Tribufu Runtime Extensions + README.md + + + Properties + true + Library + netstandard2.0;net5.0 + + + + + + + + diff --git a/src/Tribufu.Serialization/DecimalNullableStringConverter.cs b/src/Tribufu.Serialization/DecimalNullableStringConverter.cs new file mode 100644 index 0000000..fee4870 --- /dev/null +++ b/src/Tribufu.Serialization/DecimalNullableStringConverter.cs @@ -0,0 +1,46 @@ +// Copyright (c) Tribufu. All Rights Reserved. +// SPDX-License-Identifier: MIT + +using Newtonsoft.Json; +using System; +using System.Globalization; + +namespace Tribufu.Serialization +{ + public class DecimalNullableStringConverter : JsonConverter + { + public override decimal? ReadJson(JsonReader reader, Type objectType, decimal? existingValue, bool hasExistingValue, JsonSerializer serializer) + { + if (reader.TokenType == JsonToken.Null) + { + return null; + } + + if (reader.TokenType == JsonToken.String || reader.TokenType == JsonToken.Integer) + { + string value = reader.Value?.ToString(); + + if (string.IsNullOrWhiteSpace(value)) + { + return null; + } + + return decimal.Parse(value); + } + + throw new JsonSerializationException($"Unexpected token {reader.TokenType} when parsing decimal?."); + } + + public override void WriteJson(JsonWriter writer, decimal? value, JsonSerializer serializer) + { + if (value.HasValue) + { + writer.WriteValue(value.Value.ToString(CultureInfo.InvariantCulture)); + } + else + { + writer.WriteNull(); + } + } + } +} diff --git a/src/Tribufu.Serialization/DecimalStringConverter.cs b/src/Tribufu.Serialization/DecimalStringConverter.cs new file mode 100644 index 0000000..2794fa3 --- /dev/null +++ b/src/Tribufu.Serialization/DecimalStringConverter.cs @@ -0,0 +1,32 @@ +// Copyright (c) Tribufu. All Rights Reserved. +// SPDX-License-Identifier: MIT + +using Newtonsoft.Json; +using System; +using System.Globalization; + +namespace Tribufu.Serialization +{ + public class DecimalStringConverter : JsonConverter + { + public override decimal ReadJson(JsonReader reader, Type objectType, decimal existingValue, bool hasExistingValue, JsonSerializer serializer) + { + if (reader.TokenType == JsonToken.String && decimal.TryParse(reader.Value?.ToString(), out var result)) + { + return result; + } + + if (reader.TokenType == JsonToken.Integer) + { + return Convert.ToUInt64(reader.Value); + } + + throw new JsonSerializationException($"Unexpected token {reader.TokenType} when parsing decimal."); + } + + public override void WriteJson(JsonWriter writer, decimal value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString(CultureInfo.InvariantCulture)); + } + } +} diff --git a/src/Tribufu.Serialization/README.md b/src/Tribufu.Serialization/README.md new file mode 100644 index 0000000..54c1ab5 --- /dev/null +++ b/src/Tribufu.Serialization/README.md @@ -0,0 +1 @@ +# Tribufu diff --git a/src/Tribufu.Serialization/Tribufu.Serialization.csproj b/src/Tribufu.Serialization/Tribufu.Serialization.csproj new file mode 100644 index 0000000..e0b4fc8 --- /dev/null +++ b/src/Tribufu.Serialization/Tribufu.Serialization.csproj @@ -0,0 +1,19 @@ + + + Tribufu.Serialization + Tribufu Serialization Extensions + README.md + + + Properties + true + Library + netstandard2.0;net45;net5.0 + + + + + + + + diff --git a/src/Tribufu.Serialization/ULongNullableStringConverter.cs b/src/Tribufu.Serialization/ULongNullableStringConverter.cs new file mode 100644 index 0000000..0beb8e4 --- /dev/null +++ b/src/Tribufu.Serialization/ULongNullableStringConverter.cs @@ -0,0 +1,45 @@ +// Copyright (c) Tribufu. All Rights Reserved. +// SPDX-License-Identifier: MIT + +using Newtonsoft.Json; +using System; + +namespace Tribufu.Serialization +{ + public class ULongNullableStringConverter : JsonConverter + { + public override ulong? ReadJson(JsonReader reader, Type objectType, ulong? existingValue, bool hasExistingValue, JsonSerializer serializer) + { + if (reader.TokenType == JsonToken.Null) + { + return null; + } + + if (reader.TokenType == JsonToken.String || reader.TokenType == JsonToken.Integer) + { + string value = reader.Value?.ToString(); + + if (string.IsNullOrWhiteSpace(value)) + { + return null; + } + + return ulong.Parse(value); + } + + throw new JsonSerializationException($"Unexpected token {reader.TokenType} when parsing ulong?."); + } + + public override void WriteJson(JsonWriter writer, ulong? value, JsonSerializer serializer) + { + if (value.HasValue) + { + writer.WriteValue(value.Value.ToString()); + } + else + { + writer.WriteNull(); + } + } + } +} diff --git a/src/Tribufu.Serialization/ULongStringConverter.cs b/src/Tribufu.Serialization/ULongStringConverter.cs new file mode 100644 index 0000000..5cb6f33 --- /dev/null +++ b/src/Tribufu.Serialization/ULongStringConverter.cs @@ -0,0 +1,31 @@ +// Copyright (c) Tribufu. All Rights Reserved. +// SPDX-License-Identifier: MIT + +using Newtonsoft.Json; +using System; + +namespace Tribufu.Serialization +{ + public class ULongStringConverter : JsonConverter + { + public override ulong ReadJson(JsonReader reader, Type objectType, ulong existingValue, bool hasExistingValue, JsonSerializer serializer) + { + if (reader.TokenType == JsonToken.String && ulong.TryParse(reader.Value?.ToString(), out var result)) + { + return result; + } + + if (reader.TokenType == JsonToken.Integer) + { + return Convert.ToUInt64(reader.Value); + } + + throw new JsonSerializationException($"Unexpected token {reader.TokenType} when parsing ulong."); + } + + public override void WriteJson(JsonWriter writer, ulong value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + } +} From f6c296d9b6521555876e157976d46feaf8b40117 Mon Sep 17 00:00:00 2001 From: Guilherme Werner Date: Mon, 2 Jun 2025 09:00:09 -0300 Subject: [PATCH 10/52] Update READMEs --- src/Tribufu.ComponentModel/README.md | 2 +- src/Tribufu.Configuration/README.md | 2 +- src/Tribufu.Database/README.md | 2 +- src/Tribufu.Generated/README.md | 2 +- src/Tribufu.Logging/README.md | 2 +- src/Tribufu.Runtime/README.md | 2 +- src/Tribufu.Serialization/README.md | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/Tribufu.ComponentModel/README.md b/src/Tribufu.ComponentModel/README.md index 54c1ab5..f41a146 100644 --- a/src/Tribufu.ComponentModel/README.md +++ b/src/Tribufu.ComponentModel/README.md @@ -1 +1 @@ -# Tribufu +# Tribufu ComponentModel diff --git a/src/Tribufu.Configuration/README.md b/src/Tribufu.Configuration/README.md index 54c1ab5..8726fdd 100644 --- a/src/Tribufu.Configuration/README.md +++ b/src/Tribufu.Configuration/README.md @@ -1 +1 @@ -# Tribufu +# Tribufu Configuration diff --git a/src/Tribufu.Database/README.md b/src/Tribufu.Database/README.md index 54c1ab5..ebf3077 100644 --- a/src/Tribufu.Database/README.md +++ b/src/Tribufu.Database/README.md @@ -1 +1 @@ -# Tribufu +# Tribufu Database diff --git a/src/Tribufu.Generated/README.md b/src/Tribufu.Generated/README.md index 54c1ab5..b7535e7 100644 --- a/src/Tribufu.Generated/README.md +++ b/src/Tribufu.Generated/README.md @@ -1 +1 @@ -# Tribufu +# Tribufu Generated diff --git a/src/Tribufu.Logging/README.md b/src/Tribufu.Logging/README.md index 54c1ab5..9845f6c 100644 --- a/src/Tribufu.Logging/README.md +++ b/src/Tribufu.Logging/README.md @@ -1 +1 @@ -# Tribufu +# Tribufu Logging diff --git a/src/Tribufu.Runtime/README.md b/src/Tribufu.Runtime/README.md index 54c1ab5..6925ac2 100644 --- a/src/Tribufu.Runtime/README.md +++ b/src/Tribufu.Runtime/README.md @@ -1 +1 @@ -# Tribufu +# Tribufu Runtime diff --git a/src/Tribufu.Serialization/README.md b/src/Tribufu.Serialization/README.md index 54c1ab5..03ac61c 100644 --- a/src/Tribufu.Serialization/README.md +++ b/src/Tribufu.Serialization/README.md @@ -1 +1 @@ -# Tribufu +# Tribufu Serialization From 13c5d6a71c08cace560bbbacb69acdb646970d90 Mon Sep 17 00:00:00 2001 From: Guilherme Werner Date: Mon, 2 Jun 2025 09:06:21 -0300 Subject: [PATCH 11/52] Rename ConfigurationLoader --- .../{ConfigurationManager.cs => ConfigurationLoader.cs} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename src/Tribufu.Configuration/{ConfigurationManager.cs => ConfigurationLoader.cs} (97%) diff --git a/src/Tribufu.Configuration/ConfigurationManager.cs b/src/Tribufu.Configuration/ConfigurationLoader.cs similarity index 97% rename from src/Tribufu.Configuration/ConfigurationManager.cs rename to src/Tribufu.Configuration/ConfigurationLoader.cs index 009b6e7..0e42d8c 100644 --- a/src/Tribufu.Configuration/ConfigurationManager.cs +++ b/src/Tribufu.Configuration/ConfigurationLoader.cs @@ -9,7 +9,7 @@ using Tribufu.Runtime; namespace Tribufu.Configuration { - public static class ConfigurationManager + public static class ConfigurationLoader { public static IConfiguration Configuration { get; private set; } From 374a6349499baa7ea06d1129d2fae00fec72bb22 Mon Sep 17 00:00:00 2001 From: Guilherme Werner Date: Mon, 2 Jun 2025 09:15:00 -0300 Subject: [PATCH 12/52] Add IsPublishable to all projects --- src/Tribufu.ComponentModel/Tribufu.ComponentModel.csproj | 1 + src/Tribufu.Configuration/Tribufu.Configuration.csproj | 1 + src/Tribufu.Database/Tribufu.Database.csproj | 1 + src/Tribufu.Example/Tribufu.Example.csproj | 1 + src/Tribufu.Generated/Tribufu.Generated.csproj | 1 + src/Tribufu.Logging/Tribufu.Logging.csproj | 1 + src/Tribufu.Runtime/Tribufu.Runtime.csproj | 1 + src/Tribufu.Serialization/Tribufu.Serialization.csproj | 1 + src/Tribufu/Tribufu.csproj | 2 +- src/Tribufu/TribufuApi.cs | 1 + 10 files changed, 10 insertions(+), 1 deletion(-) diff --git a/src/Tribufu.ComponentModel/Tribufu.ComponentModel.csproj b/src/Tribufu.ComponentModel/Tribufu.ComponentModel.csproj index 4bcae0c..1d780d8 100644 --- a/src/Tribufu.ComponentModel/Tribufu.ComponentModel.csproj +++ b/src/Tribufu.ComponentModel/Tribufu.ComponentModel.csproj @@ -7,6 +7,7 @@ Properties true + false Library netstandard2.0;net45;net5.0 diff --git a/src/Tribufu.Configuration/Tribufu.Configuration.csproj b/src/Tribufu.Configuration/Tribufu.Configuration.csproj index 475a02c..1993547 100644 --- a/src/Tribufu.Configuration/Tribufu.Configuration.csproj +++ b/src/Tribufu.Configuration/Tribufu.Configuration.csproj @@ -7,6 +7,7 @@ Properties true + false Library netstandard2.0;net6.0 diff --git a/src/Tribufu.Database/Tribufu.Database.csproj b/src/Tribufu.Database/Tribufu.Database.csproj index dd69953..7b1c10f 100644 --- a/src/Tribufu.Database/Tribufu.Database.csproj +++ b/src/Tribufu.Database/Tribufu.Database.csproj @@ -7,6 +7,7 @@ Properties true + false enable Library net8.0 diff --git a/src/Tribufu.Example/Tribufu.Example.csproj b/src/Tribufu.Example/Tribufu.Example.csproj index c5cbd10..01da8dc 100644 --- a/src/Tribufu.Example/Tribufu.Example.csproj +++ b/src/Tribufu.Example/Tribufu.Example.csproj @@ -1,6 +1,7 @@  enable + false enable Exe net8.0 diff --git a/src/Tribufu.Generated/Tribufu.Generated.csproj b/src/Tribufu.Generated/Tribufu.Generated.csproj index 20edea6..09167e9 100644 --- a/src/Tribufu.Generated/Tribufu.Generated.csproj +++ b/src/Tribufu.Generated/Tribufu.Generated.csproj @@ -9,6 +9,7 @@ true true enable + false annotations Library net6.0 diff --git a/src/Tribufu.Logging/Tribufu.Logging.csproj b/src/Tribufu.Logging/Tribufu.Logging.csproj index 516c7f9..fe7048e 100644 --- a/src/Tribufu.Logging/Tribufu.Logging.csproj +++ b/src/Tribufu.Logging/Tribufu.Logging.csproj @@ -7,6 +7,7 @@ Properties true + false Library netstandard2.0;net45;net5.0 diff --git a/src/Tribufu.Runtime/Tribufu.Runtime.csproj b/src/Tribufu.Runtime/Tribufu.Runtime.csproj index 0d16370..c18d2f7 100644 --- a/src/Tribufu.Runtime/Tribufu.Runtime.csproj +++ b/src/Tribufu.Runtime/Tribufu.Runtime.csproj @@ -7,6 +7,7 @@ Properties true + false Library netstandard2.0;net5.0 diff --git a/src/Tribufu.Serialization/Tribufu.Serialization.csproj b/src/Tribufu.Serialization/Tribufu.Serialization.csproj index e0b4fc8..7de3841 100644 --- a/src/Tribufu.Serialization/Tribufu.Serialization.csproj +++ b/src/Tribufu.Serialization/Tribufu.Serialization.csproj @@ -7,6 +7,7 @@ Properties true + false Library netstandard2.0;net45;net5.0 diff --git a/src/Tribufu/Tribufu.csproj b/src/Tribufu/Tribufu.csproj index 39dc5af..e9600b4 100644 --- a/src/Tribufu/Tribufu.csproj +++ b/src/Tribufu/Tribufu.csproj @@ -8,7 +8,7 @@ Properties true true - enable + false annotations Library net6.0 diff --git a/src/Tribufu/TribufuApi.cs b/src/Tribufu/TribufuApi.cs index 5b3664e..3cf2acc 100644 --- a/src/Tribufu/TribufuApi.cs +++ b/src/Tribufu/TribufuApi.cs @@ -1,6 +1,7 @@ // Copyright (c) Tribufu. All Rights Reserved. // SPDX-License-Identifier: MIT +using System; using System.Net; using System.Runtime.InteropServices; using Tribufu.Generated.Api; From ffc40798812d53d765e36edccd1475559c7ce2a9 Mon Sep 17 00:00:00 2001 From: Guilherme Werner Date: Mon, 2 Jun 2025 09:15:38 -0300 Subject: [PATCH 13/52] Update Tribufu.Runtime.csproj --- src/Tribufu.Runtime/Tribufu.Runtime.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Tribufu.Runtime/Tribufu.Runtime.csproj b/src/Tribufu.Runtime/Tribufu.Runtime.csproj index c18d2f7..b8e29b9 100644 --- a/src/Tribufu.Runtime/Tribufu.Runtime.csproj +++ b/src/Tribufu.Runtime/Tribufu.Runtime.csproj @@ -9,7 +9,7 @@ true false Library - netstandard2.0;net5.0 + netstandard2.0;net5.0;net8.0 From f45e827ba48e08cab748ac03070ea22a6a8c7d07 Mon Sep 17 00:00:00 2001 From: Guilherme Werner Date: Mon, 2 Jun 2025 09:18:10 -0300 Subject: [PATCH 14/52] Remove net standard support --- src/Tribufu.Configuration/Tribufu.Configuration.csproj | 2 +- src/Tribufu.Logging/Tribufu.Logging.csproj | 2 +- src/Tribufu.Runtime/Tribufu.Runtime.csproj | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Tribufu.Configuration/Tribufu.Configuration.csproj b/src/Tribufu.Configuration/Tribufu.Configuration.csproj index 1993547..4421707 100644 --- a/src/Tribufu.Configuration/Tribufu.Configuration.csproj +++ b/src/Tribufu.Configuration/Tribufu.Configuration.csproj @@ -9,7 +9,7 @@ true false Library - netstandard2.0;net6.0 + net6.0 diff --git a/src/Tribufu.Logging/Tribufu.Logging.csproj b/src/Tribufu.Logging/Tribufu.Logging.csproj index fe7048e..25a5843 100644 --- a/src/Tribufu.Logging/Tribufu.Logging.csproj +++ b/src/Tribufu.Logging/Tribufu.Logging.csproj @@ -9,7 +9,7 @@ true false Library - netstandard2.0;net45;net5.0 + net5.0 diff --git a/src/Tribufu.Runtime/Tribufu.Runtime.csproj b/src/Tribufu.Runtime/Tribufu.Runtime.csproj index b8e29b9..8f0c233 100644 --- a/src/Tribufu.Runtime/Tribufu.Runtime.csproj +++ b/src/Tribufu.Runtime/Tribufu.Runtime.csproj @@ -9,7 +9,7 @@ true false Library - netstandard2.0;net5.0;net8.0 + net5.0 From 5fdd52265b8fbe8520bdf1e4c9818279f9cd215a Mon Sep 17 00:00:00 2001 From: Guilherme Werner Date: Mon, 2 Jun 2025 09:23:54 -0300 Subject: [PATCH 15/52] Revert "Remove net standard support" This reverts commit f45e827ba48e08cab748ac03070ea22a6a8c7d07. --- src/Tribufu.Configuration/Tribufu.Configuration.csproj | 2 +- src/Tribufu.Logging/Tribufu.Logging.csproj | 2 +- src/Tribufu.Runtime/Tribufu.Runtime.csproj | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Tribufu.Configuration/Tribufu.Configuration.csproj b/src/Tribufu.Configuration/Tribufu.Configuration.csproj index 4421707..1993547 100644 --- a/src/Tribufu.Configuration/Tribufu.Configuration.csproj +++ b/src/Tribufu.Configuration/Tribufu.Configuration.csproj @@ -9,7 +9,7 @@ true false Library - net6.0 + netstandard2.0;net6.0 diff --git a/src/Tribufu.Logging/Tribufu.Logging.csproj b/src/Tribufu.Logging/Tribufu.Logging.csproj index 25a5843..fe7048e 100644 --- a/src/Tribufu.Logging/Tribufu.Logging.csproj +++ b/src/Tribufu.Logging/Tribufu.Logging.csproj @@ -9,7 +9,7 @@ true false Library - net5.0 + netstandard2.0;net45;net5.0 diff --git a/src/Tribufu.Runtime/Tribufu.Runtime.csproj b/src/Tribufu.Runtime/Tribufu.Runtime.csproj index 8f0c233..b8e29b9 100644 --- a/src/Tribufu.Runtime/Tribufu.Runtime.csproj +++ b/src/Tribufu.Runtime/Tribufu.Runtime.csproj @@ -9,7 +9,7 @@ true false Library - net5.0 + netstandard2.0;net5.0;net8.0 From 4b694a4031981ac8beb9135003bb7b5d4de51158 Mon Sep 17 00:00:00 2001 From: Guilherme Werner Date: Mon, 2 Jun 2025 09:24:13 -0300 Subject: [PATCH 16/52] Update Tribufu.Runtime.csproj --- src/Tribufu.Runtime/Tribufu.Runtime.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Tribufu.Runtime/Tribufu.Runtime.csproj b/src/Tribufu.Runtime/Tribufu.Runtime.csproj index b8e29b9..c18d2f7 100644 --- a/src/Tribufu.Runtime/Tribufu.Runtime.csproj +++ b/src/Tribufu.Runtime/Tribufu.Runtime.csproj @@ -9,7 +9,7 @@ true false Library - netstandard2.0;net5.0;net8.0 + netstandard2.0;net5.0 From e63812204d34935eec821c782707ab93f52a5337 Mon Sep 17 00:00:00 2001 From: Guilherme Werner Date: Mon, 2 Jun 2025 10:06:03 -0300 Subject: [PATCH 17/52] Rename Tribufu.Runtime to Tribufu.Platform --- Tribufu.sln | 2 +- .../ConfigurationLoader.cs | 4 +- .../Tribufu.Configuration.csproj | 4 +- src/Tribufu.Database/Tribufu.Database.csproj | 2 +- .../Paths.cs} | 95 ++++--------------- .../README.md | 0 .../Tribufu.Platform.csproj} | 5 +- 7 files changed, 26 insertions(+), 86 deletions(-) rename src/{Tribufu.Runtime/ApplicationContext.cs => Tribufu.Platform/Paths.cs} (55%) rename src/{Tribufu.Runtime => Tribufu.Platform}/README.md (100%) rename src/{Tribufu.Runtime/Tribufu.Runtime.csproj => Tribufu.Platform/Tribufu.Platform.csproj} (77%) diff --git a/Tribufu.sln b/Tribufu.sln index fd461d5..54314cd 100644 --- a/Tribufu.sln +++ b/Tribufu.sln @@ -11,7 +11,7 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tribufu.Logging", "src\Trib EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tribufu.Configuration", "src\Tribufu.Configuration\Tribufu.Configuration.csproj", "{C0A841C8-9FC5-4AC0-B9AD-6BBFCEDCBE5F}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tribufu.Runtime", "src\Tribufu.Runtime\Tribufu.Runtime.csproj", "{26EEB407-733C-4383-9211-B083CD5F593B}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tribufu.Platform", "src\Tribufu.Platform\Tribufu.Platform.csproj", "{26EEB407-733C-4383-9211-B083CD5F593B}" EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tribufu.Database", "src\Tribufu.Database\Tribufu.Database.csproj", "{E7F9A76F-C087-410B-B4B5-A928A6CDC2BA}" EndProject diff --git a/src/Tribufu.Configuration/ConfigurationLoader.cs b/src/Tribufu.Configuration/ConfigurationLoader.cs index 0e42d8c..6d07f87 100644 --- a/src/Tribufu.Configuration/ConfigurationLoader.cs +++ b/src/Tribufu.Configuration/ConfigurationLoader.cs @@ -5,7 +5,7 @@ using Microsoft.Extensions.Configuration; using System.IO; using Tomlyn.Extensions.Configuration; using Tribufu.Logging; -using Tribufu.Runtime; +using Tribufu.Platform; namespace Tribufu.Configuration { @@ -15,7 +15,7 @@ namespace Tribufu.Configuration public static IConfiguration Load(string[] fileNames) { - var configDirectory = ApplicationContext.GetConfigDirectory(); + var configDirectory = Paths.GetApplicationConfigDirectory(); var configurationBuilder = new ConfigurationBuilder(); configurationBuilder.AddEnvironmentVariables(); diff --git a/src/Tribufu.Configuration/Tribufu.Configuration.csproj b/src/Tribufu.Configuration/Tribufu.Configuration.csproj index 1993547..5cc4ef1 100644 --- a/src/Tribufu.Configuration/Tribufu.Configuration.csproj +++ b/src/Tribufu.Configuration/Tribufu.Configuration.csproj @@ -9,7 +9,7 @@ true false Library - netstandard2.0;net6.0 + net6.0 @@ -26,6 +26,6 @@ - + diff --git a/src/Tribufu.Database/Tribufu.Database.csproj b/src/Tribufu.Database/Tribufu.Database.csproj index 7b1c10f..03a7813 100644 --- a/src/Tribufu.Database/Tribufu.Database.csproj +++ b/src/Tribufu.Database/Tribufu.Database.csproj @@ -21,6 +21,6 @@ - + diff --git a/src/Tribufu.Runtime/ApplicationContext.cs b/src/Tribufu.Platform/Paths.cs similarity index 55% rename from src/Tribufu.Runtime/ApplicationContext.cs rename to src/Tribufu.Platform/Paths.cs index ef26266..0d67e7b 100644 --- a/src/Tribufu.Runtime/ApplicationContext.cs +++ b/src/Tribufu.Platform/Paths.cs @@ -6,13 +6,13 @@ using System.IO; using System.Runtime.InteropServices; using Tribufu.Logging; -namespace Tribufu.Runtime +namespace Tribufu.Platform { /// - /// Provides standardized access to important application directories, such as config, saved data, logs, and platform-specific binaries. + /// Provides standardized access to important directories, such as config, saved data, logs, and platform-specific binaries. /// This is especially useful for abstracting file path logic across environments (development, production, etc). /// - public static class ApplicationContext + public static class Paths { /// /// Gets the root base directory of the application. @@ -23,7 +23,7 @@ namespace Tribufu.Runtime /// - It uses case-insensitive checks and runtime heuristics to improve accuracy. /// /// The absolute path to the base directory. - public static string GetBaseDirectory() + public static string GetApplicationDirectory() { try { @@ -46,7 +46,7 @@ namespace Tribufu.Runtime } catch (Exception ex) { - Logger.Warn($"(ApplicationContext) Failed to resolve base directory: {ex.Message}"); + Logger.Warn($"(Paths) Failed to resolve base directory: {ex.Message}"); return AppContext.BaseDirectory; } } @@ -58,22 +58,10 @@ namespace Tribufu.Runtime /// The absolute path to bin/<runtime-identifier> if available, /// otherwise falls back to bin/dotnet. /// - public static string GetBinDirectory() + public static string GetApplicationBinDirectory() { - var binDirectory = Path.Combine(GetBaseDirectory(), "bin"); + var binDirectory = Path.Combine(GetApplicationDirectory(), "bin"); -#if NETSTANDARD - var runtimeIdentifier = GetRuntimeIdentifierLegacy(); - - if (!string.IsNullOrEmpty(runtimeIdentifier)) - { - binDirectory = Path.Combine(binDirectory, runtimeIdentifier); - } - else - { - binDirectory = Path.Combine(binDirectory, "dotnet"); - } -#else if (!string.IsNullOrEmpty(RuntimeInformation.RuntimeIdentifier)) { binDirectory = Path.Combine(binDirectory, RuntimeInformation.RuntimeIdentifier); @@ -82,102 +70,53 @@ namespace Tribufu.Runtime { binDirectory = Path.Combine(binDirectory, "dotnet"); } -#endif return binDirectory; } - private static string GetRuntimeIdentifierLegacy() - { - string osPart; - PlatformID platform = Environment.OSVersion.Platform; - - switch (platform) - { - case PlatformID.Win32NT: - osPart = "win"; - break; - case PlatformID.Unix: - if (IsMacOS()) - osPart = "osx"; - else - osPart = "linux"; - break; - case PlatformID.MacOSX: - osPart = "osx"; - break; - default: - osPart = "unknown"; - break; - } - - var archPart = Environment.Is64BitProcess ? "x64" : "x86"; - if (osPart == "unknown") - { - return null; - } - - return $"{osPart}-{archPart}"; - } - - private static bool IsMacOS() - { - if (Environment.OSVersion.Platform == PlatformID.Unix) - { - Version version = Environment.OSVersion.Version; - - if (version.Major >= 19) - { - return true; - } - } - - return false; - } - /// /// Gets the path to the configuration directory. /// /// The absolute path to the config directory. - public static string GetConfigDirectory() + public static string GetApplicationConfigDirectory() { - return Path.Combine(GetBaseDirectory(), "config"); + return Path.Combine(GetApplicationDirectory(), "config"); } /// /// Gets the path to the assets directory. /// /// The absolute path to the assets directory. - public static string GetAssetsDirectory() + public static string GetApplicationAssetsDirectory() { - return Path.Combine(GetBaseDirectory(), "assets"); + return Path.Combine(GetApplicationDirectory(), "assets"); } /// /// Gets the path to the saved data directory. /// /// The absolute path to the saved directory. - public static string GetSavedDirectory() + public static string GetApplicationSavedDirectory() { - return Path.Combine(GetBaseDirectory(), "saved"); + return Path.Combine(GetApplicationDirectory(), "saved"); } /// /// Gets the path to the cache directory inside saved. /// /// The absolute path to the saved/cache directory. - public static string GetCacheDirectory() + public static string GetApplicationCacheDirectory() { - return Path.Combine(GetSavedDirectory(), "cache"); + return Path.Combine(GetApplicationSavedDirectory(), "cache"); } /// /// Gets the path to the logs directory inside saved. /// /// The absolute path to the saved/logs directory. - public static string GetLogsDirectory() + public static string GetApplicationLogsDirectory() { - return Path.Combine(GetSavedDirectory(), "logs"); + return Path.Combine(GetApplicationSavedDirectory(), "logs"); } } } diff --git a/src/Tribufu.Runtime/README.md b/src/Tribufu.Platform/README.md similarity index 100% rename from src/Tribufu.Runtime/README.md rename to src/Tribufu.Platform/README.md diff --git a/src/Tribufu.Runtime/Tribufu.Runtime.csproj b/src/Tribufu.Platform/Tribufu.Platform.csproj similarity index 77% rename from src/Tribufu.Runtime/Tribufu.Runtime.csproj rename to src/Tribufu.Platform/Tribufu.Platform.csproj index c18d2f7..411ba32 100644 --- a/src/Tribufu.Runtime/Tribufu.Runtime.csproj +++ b/src/Tribufu.Platform/Tribufu.Platform.csproj @@ -1,6 +1,6 @@  - Tribufu.Runtime + Tribufu.Platform Tribufu Runtime Extensions README.md @@ -9,12 +9,13 @@ true false Library - netstandard2.0;net5.0 + net5.0 + From c8bb2d95b59945dedda345e4f80c0bd2622098c9 Mon Sep 17 00:00:00 2001 From: Guilherme Werner Date: Tue, 3 Jun 2025 19:37:55 -0300 Subject: [PATCH 18/52] Update TribufuApi.cs --- src/Tribufu/TribufuApi.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Tribufu/TribufuApi.cs b/src/Tribufu/TribufuApi.cs index 3cf2acc..be04e37 100644 --- a/src/Tribufu/TribufuApi.cs +++ b/src/Tribufu/TribufuApi.cs @@ -42,7 +42,7 @@ namespace Tribufu /// Create a with the given API key. /// /// - /// A API key gives you public read only access to the Tribufu API. + /// An API key gives you public read only access to the Tribufu API. /// /// The API key for authentication /// instance configured with the API key From eb9e939fc81497d936406ac2567f1ee525e1500a Mon Sep 17 00:00:00 2001 From: Guilherme Werner Date: Tue, 3 Jun 2025 20:01:16 -0300 Subject: [PATCH 19/52] Update log levels --- src/Tribufu.Example/Program.cs | 2 +- src/Tribufu.Logging/LogLevel.cs | 10 ++++------ src/Tribufu.Logging/Logger.cs | 7 +------ 3 files changed, 6 insertions(+), 13 deletions(-) diff --git a/src/Tribufu.Example/Program.cs b/src/Tribufu.Example/Program.cs index c6f9e1d..bb64876 100644 --- a/src/Tribufu.Example/Program.cs +++ b/src/Tribufu.Example/Program.cs @@ -11,7 +11,7 @@ namespace Tribufu.Test { public static async Task Main(string[] args) { - Logger.Initialize(LogLevel.All); + Logger.Initialize(LogLevel.Trace); DotEnv.Load(new DotEnvOptions(ignoreExceptions: true, envFilePaths: [".env", "../../.env"])); diff --git a/src/Tribufu.Logging/LogLevel.cs b/src/Tribufu.Logging/LogLevel.cs index f13e62c..f8cea00 100644 --- a/src/Tribufu.Logging/LogLevel.cs +++ b/src/Tribufu.Logging/LogLevel.cs @@ -7,16 +7,14 @@ namespace Tribufu.Logging { Off = 0, - Trace = 1, + Error = 1, - Debug = 2, + Warn = 2, Info = 3, - Warn = 4, + Debug = 4, - Error = 5, - - All = 6, + Trace = 5, } } diff --git a/src/Tribufu.Logging/Logger.cs b/src/Tribufu.Logging/Logger.cs index 38e01f6..764ba44 100644 --- a/src/Tribufu.Logging/Logger.cs +++ b/src/Tribufu.Logging/Logger.cs @@ -41,12 +41,7 @@ namespace Tribufu.Logging private static void Log(LogLevel level, string message, ConsoleColor color) { - if (_level == LogLevel.Off) - { - return; - } - - if (_level == LogLevel.All || level >= _level) + if (level <= _level) { var defaultColor = Console.ForegroundColor; Console.ForegroundColor = color; From 479f719816094375c20273e5d0442a19d4f57f8a Mon Sep 17 00:00:00 2001 From: Guilherme Werner Date: Tue, 3 Jun 2025 20:03:23 -0300 Subject: [PATCH 20/52] Update Logger.cs --- src/Tribufu.Logging/Logger.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Tribufu.Logging/Logger.cs b/src/Tribufu.Logging/Logger.cs index 764ba44..7f42f67 100644 --- a/src/Tribufu.Logging/Logger.cs +++ b/src/Tribufu.Logging/Logger.cs @@ -36,7 +36,7 @@ namespace Tribufu.Logging public static void Trace(string message) { - Log(LogLevel.Trace, message, ConsoleColor.Gray); + Log(LogLevel.Trace, message, ConsoleColor.DarkGray); } private static void Log(LogLevel level, string message, ConsoleColor color) From 58f300e39ba9f85f0ee8fe3d867ec669af7c8eb6 Mon Sep 17 00:00:00 2001 From: Guilherme Werner Date: Wed, 4 Jun 2025 07:45:04 -0300 Subject: [PATCH 21/52] Update Program.cs --- src/Tribufu.Example/Program.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Tribufu.Example/Program.cs b/src/Tribufu.Example/Program.cs index bb64876..c6af9cf 100644 --- a/src/Tribufu.Example/Program.cs +++ b/src/Tribufu.Example/Program.cs @@ -18,7 +18,7 @@ namespace Tribufu.Test var apiKey = Environment.GetEnvironmentVariable("TRIBUFU_API_KEY"); var tribufu = new TribufuApi(apiKey ?? ""); - Logger.Debug(TribufuApi.GetVersion()); + Logger.Debug(TribufuApi.GetUserAgent()); try { From e4986367e7874c20fb0589a332a72b014e822f55 Mon Sep 17 00:00:00 2001 From: Guilherme Werner Date: Wed, 4 Jun 2025 16:55:16 -0300 Subject: [PATCH 22/52] Disable ImplicitUsings --- src/Tribufu.Example/Tribufu.Example.csproj | 1 - src/Tribufu.Generated/Tribufu.Generated.csproj | 1 - 2 files changed, 2 deletions(-) diff --git a/src/Tribufu.Example/Tribufu.Example.csproj b/src/Tribufu.Example/Tribufu.Example.csproj index 01da8dc..3116a54 100644 --- a/src/Tribufu.Example/Tribufu.Example.csproj +++ b/src/Tribufu.Example/Tribufu.Example.csproj @@ -1,6 +1,5 @@  - enable false enable Exe diff --git a/src/Tribufu.Generated/Tribufu.Generated.csproj b/src/Tribufu.Generated/Tribufu.Generated.csproj index 09167e9..a503234 100644 --- a/src/Tribufu.Generated/Tribufu.Generated.csproj +++ b/src/Tribufu.Generated/Tribufu.Generated.csproj @@ -8,7 +8,6 @@ Properties true true - enable false annotations Library From eda5b1894b9206017247efeea70937d95d138f0f Mon Sep 17 00:00:00 2001 From: Guilherme Werner Date: Tue, 10 Jun 2025 11:53:30 -0300 Subject: [PATCH 23/52] Add logger with context object --- src/Tribufu.Logging/Logger.cs | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/src/Tribufu.Logging/Logger.cs b/src/Tribufu.Logging/Logger.cs index 7f42f67..2da1ba9 100644 --- a/src/Tribufu.Logging/Logger.cs +++ b/src/Tribufu.Logging/Logger.cs @@ -14,6 +14,31 @@ namespace Tribufu.Logging _level = level; } + public static void Info(object context, string message) + { + Info($"({context.GetType().Name}) {message}"); + } + + public static void Warn(object context, string message) + { + Warn($"({context.GetType().Name}) {message}"); + } + + public static void Error(object context, string message) + { + Error($"({context.GetType().Name}) {message}"); + } + + public static void Debug(object context, string message) + { + Debug($"({context.GetType().Name}) {message}"); + } + + public static void Trace(object context, string message) + { + Trace($"({context.GetType().Name}) {message}"); + } + public static void Info(string message) { Log(LogLevel.Info, message, ConsoleColor.Green); From 672fe601f71faed8d4532a2053e18f7898e14f03 Mon Sep 17 00:00:00 2001 From: Guilherme Werner Date: Mon, 7 Jul 2025 11:06:41 -0300 Subject: [PATCH 24/52] Add json serialization configs --- .../BaseClassFirstContractResolver.cs | 20 +++++++++++ .../SerializationConfiguration.cs | 33 +++++++++++++++++++ 2 files changed, 53 insertions(+) create mode 100644 src/Tribufu.Serialization/BaseClassFirstContractResolver.cs create mode 100644 src/Tribufu.Serialization/SerializationConfiguration.cs diff --git a/src/Tribufu.Serialization/BaseClassFirstContractResolver.cs b/src/Tribufu.Serialization/BaseClassFirstContractResolver.cs new file mode 100644 index 0000000..0aa320c --- /dev/null +++ b/src/Tribufu.Serialization/BaseClassFirstContractResolver.cs @@ -0,0 +1,20 @@ +// Copyright (c) Tribufu. All Rights Reserved. +// SPDX-License-Identifier: UNLICENSED + +using Newtonsoft.Json; +using Newtonsoft.Json.Serialization; +using System; +using System.Collections.Generic; +using System.Linq; + +namespace Tribufu.Serialization +{ + public class BaseClassFirstContractResolver : DefaultContractResolver + { + protected override IList CreateProperties(Type type, MemberSerialization memberSerialization) + { + var props = base.CreateProperties(type, memberSerialization); + return props.OrderBy(p => { return p.DeclaringType == type ? 1 : 0; }).ToList(); + } + } +} diff --git a/src/Tribufu.Serialization/SerializationConfiguration.cs b/src/Tribufu.Serialization/SerializationConfiguration.cs new file mode 100644 index 0000000..2eea0d8 --- /dev/null +++ b/src/Tribufu.Serialization/SerializationConfiguration.cs @@ -0,0 +1,33 @@ +// Copyright (c) Tribufu. All Rights Reserved. +// SPDX-License-Identifier: MIT + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Serialization; + +namespace Tribufu.Serialization +{ + public static class SerializationConfiguration + { + public static JsonSerializerSettings GetNewtonsoftJsonSerializerSettings() + { + var settings = new JsonSerializerSettings + { + ContractResolver = new BaseClassFirstContractResolver + { + NamingStrategy = new SnakeCaseNamingStrategy() + }, + }; + + settings.Converters.Add(new DecimalNullableStringConverter()); + settings.Converters.Add(new DecimalStringConverter()); + settings.Converters.Add(new ULongNullableStringConverter()); + settings.Converters.Add(new ULongStringConverter()); + settings.Converters.Add(new StringEnumConverter(new SnakeCaseNamingStrategy(), false)); + + settings.ReferenceLoopHandling = ReferenceLoopHandling.Ignore; + + return settings; + } + } +} From e8d842bf34333e89c9929ed09b148da6055ab8ca Mon Sep 17 00:00:00 2001 From: Guilherme Werner Date: Mon, 7 Jul 2025 11:34:36 -0300 Subject: [PATCH 25/52] Update CustomSerializerSettings --- ...Configuration.cs => CustomSerializerSettings.cs} | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) rename src/Tribufu.Serialization/{SerializationConfiguration.cs => CustomSerializerSettings.cs} (65%) diff --git a/src/Tribufu.Serialization/SerializationConfiguration.cs b/src/Tribufu.Serialization/CustomSerializerSettings.cs similarity index 65% rename from src/Tribufu.Serialization/SerializationConfiguration.cs rename to src/Tribufu.Serialization/CustomSerializerSettings.cs index 2eea0d8..1cc91f4 100644 --- a/src/Tribufu.Serialization/SerializationConfiguration.cs +++ b/src/Tribufu.Serialization/CustomSerializerSettings.cs @@ -7,16 +7,13 @@ using Newtonsoft.Json.Serialization; namespace Tribufu.Serialization { - public static class SerializationConfiguration + public static class CustomSerializerSettings { - public static JsonSerializerSettings GetNewtonsoftJsonSerializerSettings() + public static void SetNewtonsoftJson(ref JsonSerializerSettings settings) { - var settings = new JsonSerializerSettings + settings.ContractResolver = new BaseClassFirstContractResolver { - ContractResolver = new BaseClassFirstContractResolver - { - NamingStrategy = new SnakeCaseNamingStrategy() - }, + NamingStrategy = new SnakeCaseNamingStrategy() }; settings.Converters.Add(new DecimalNullableStringConverter()); @@ -26,8 +23,6 @@ namespace Tribufu.Serialization settings.Converters.Add(new StringEnumConverter(new SnakeCaseNamingStrategy(), false)); settings.ReferenceLoopHandling = ReferenceLoopHandling.Ignore; - - return settings; } } } From 2b6270264bbf480e6173ba7a2c9b67bc0de6db6c Mon Sep 17 00:00:00 2001 From: Guilherme Werner Date: Mon, 7 Jul 2025 11:34:37 -0300 Subject: [PATCH 26/52] Update Program.cs --- src/Tribufu.Example/Program.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Tribufu.Example/Program.cs b/src/Tribufu.Example/Program.cs index c6af9cf..cd76174 100644 --- a/src/Tribufu.Example/Program.cs +++ b/src/Tribufu.Example/Program.cs @@ -2,6 +2,8 @@ // SPDX-License-Identifier: MIT using dotenv.net; +using System; +using System.Threading.Tasks; using Tribufu.Generated.Client; using Tribufu.Logging; From 817d89a57add38cab6412c04374fbe5349f46de8 Mon Sep 17 00:00:00 2001 From: Guilherme Werner Date: Mon, 7 Jul 2025 11:35:57 -0300 Subject: [PATCH 27/52] Update CustomSerializerSettings.cs --- src/Tribufu.Serialization/CustomSerializerSettings.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Tribufu.Serialization/CustomSerializerSettings.cs b/src/Tribufu.Serialization/CustomSerializerSettings.cs index 1cc91f4..372764b 100644 --- a/src/Tribufu.Serialization/CustomSerializerSettings.cs +++ b/src/Tribufu.Serialization/CustomSerializerSettings.cs @@ -9,7 +9,7 @@ namespace Tribufu.Serialization { public static class CustomSerializerSettings { - public static void SetNewtonsoftJson(ref JsonSerializerSettings settings) + public static void SetNewtonsoftJson(JsonSerializerSettings settings) { settings.ContractResolver = new BaseClassFirstContractResolver { From 0a88bf2ac6dfadd5f7a2e47af90f6c2f24b8070f Mon Sep 17 00:00:00 2001 From: Guilherme Werner Date: Mon, 7 Jul 2025 11:55:42 -0300 Subject: [PATCH 28/52] Update CustomSerializerSettings.cs --- src/Tribufu.Serialization/CustomSerializerSettings.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/Tribufu.Serialization/CustomSerializerSettings.cs b/src/Tribufu.Serialization/CustomSerializerSettings.cs index 372764b..b487345 100644 --- a/src/Tribufu.Serialization/CustomSerializerSettings.cs +++ b/src/Tribufu.Serialization/CustomSerializerSettings.cs @@ -9,6 +9,13 @@ namespace Tribufu.Serialization { public static class CustomSerializerSettings { + public static JsonSerializerSettings GetNewtonsoftJson() + { + var settings = new JsonSerializerSettings(); + SetNewtonsoftJson(settings); + return settings; + } + public static void SetNewtonsoftJson(JsonSerializerSettings settings) { settings.ContractResolver = new BaseClassFirstContractResolver From 936f7f0f5e9d1296008ea1ba6c31eedfde503532 Mon Sep 17 00:00:00 2001 From: Guilherme Werner Date: Tue, 8 Jul 2025 20:24:18 -0300 Subject: [PATCH 29/52] Update ConfigurationLoader.cs --- src/Tribufu.Configuration/ConfigurationLoader.cs | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/src/Tribufu.Configuration/ConfigurationLoader.cs b/src/Tribufu.Configuration/ConfigurationLoader.cs index 6d07f87..d23c03e 100644 --- a/src/Tribufu.Configuration/ConfigurationLoader.cs +++ b/src/Tribufu.Configuration/ConfigurationLoader.cs @@ -11,8 +11,6 @@ namespace Tribufu.Configuration { public static class ConfigurationLoader { - public static IConfiguration Configuration { get; private set; } - public static IConfiguration Load(string[] fileNames) { var configDirectory = Paths.GetApplicationConfigDirectory(); @@ -28,8 +26,8 @@ namespace Tribufu.Configuration continue; } - var ext = Path.GetExtension(fullPath).ToLowerInvariant(); - switch (ext) + var extension = Path.GetExtension(fullPath).ToLowerInvariant(); + switch (extension) { case ".ini": configurationBuilder.AddIniFile(fullPath, true, false); @@ -41,13 +39,12 @@ namespace Tribufu.Configuration configurationBuilder.AddTomlFile(fullPath, true, false); break; default: - Logger.Warn($"Unsupported config file extension: {ext}"); + Logger.Warn($"Unsupported config file extension: {extension}"); break; } } - Configuration = configurationBuilder.Build(); - return Configuration; + return configurationBuilder.Build(); } } } From 3edec858a8407df0120d3a195748688a399910d7 Mon Sep 17 00:00:00 2001 From: Guilherme Werner Date: Tue, 8 Jul 2025 20:26:06 -0300 Subject: [PATCH 30/52] Update BaseClassFirstContractResolver.cs --- src/Tribufu.Serialization/BaseClassFirstContractResolver.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Tribufu.Serialization/BaseClassFirstContractResolver.cs b/src/Tribufu.Serialization/BaseClassFirstContractResolver.cs index 0aa320c..909ab2d 100644 --- a/src/Tribufu.Serialization/BaseClassFirstContractResolver.cs +++ b/src/Tribufu.Serialization/BaseClassFirstContractResolver.cs @@ -14,7 +14,7 @@ namespace Tribufu.Serialization protected override IList CreateProperties(Type type, MemberSerialization memberSerialization) { var props = base.CreateProperties(type, memberSerialization); - return props.OrderBy(p => { return p.DeclaringType == type ? 1 : 0; }).ToList(); + return props.OrderBy(p => !string.Equals(p.PropertyName, "id", StringComparison.OrdinalIgnoreCase)).ThenBy(p => p.DeclaringType != type).ToList(); } } } From 32a2a20fb1c553a64069307fee2550015f72f254 Mon Sep 17 00:00:00 2001 From: Guilherme Werner Date: Tue, 8 Jul 2025 20:29:51 -0300 Subject: [PATCH 31/52] Update BaseClassFirstContractResolver.cs --- src/Tribufu.Serialization/BaseClassFirstContractResolver.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Tribufu.Serialization/BaseClassFirstContractResolver.cs b/src/Tribufu.Serialization/BaseClassFirstContractResolver.cs index 909ab2d..0aa320c 100644 --- a/src/Tribufu.Serialization/BaseClassFirstContractResolver.cs +++ b/src/Tribufu.Serialization/BaseClassFirstContractResolver.cs @@ -14,7 +14,7 @@ namespace Tribufu.Serialization protected override IList CreateProperties(Type type, MemberSerialization memberSerialization) { var props = base.CreateProperties(type, memberSerialization); - return props.OrderBy(p => !string.Equals(p.PropertyName, "id", StringComparison.OrdinalIgnoreCase)).ThenBy(p => p.DeclaringType != type).ToList(); + return props.OrderBy(p => { return p.DeclaringType == type ? 1 : 0; }).ToList(); } } } From 92a7bb32522eb10949f8f255e1131c398cba620c Mon Sep 17 00:00:00 2001 From: Guilherme Werner Date: Thu, 4 Dec 2025 18:31:35 -0300 Subject: [PATCH 32/52] Update DatabaseConfiguration.cs --- src/Tribufu.Database/DatabaseConfiguration.cs | 50 +++++++++++++++++++ 1 file changed, 50 insertions(+) diff --git a/src/Tribufu.Database/DatabaseConfiguration.cs b/src/Tribufu.Database/DatabaseConfiguration.cs index 915f1d2..d9099a9 100644 --- a/src/Tribufu.Database/DatabaseConfiguration.cs +++ b/src/Tribufu.Database/DatabaseConfiguration.cs @@ -51,5 +51,55 @@ namespace Tribufu.Database Schema = GetConfig("schema") }; } + + /* + services.AddDbContext(options => + { + switch (dbConfig.Driver) + { + case DatabaseDriver.MySql: + var mysqlConnection = $"Server={dbConfig.Host};Port={dbConfig.Port};Uid={dbConfig.User};Pwd={dbConfig.Password};Database={dbConfig.Schema};ConvertZeroDateTime=True;"; + options.UseMySql(mysqlConnection, ServerVersion.Parse(dbConfig.Version ?? "8.0"), mySqlOptions => { }); + break; + case DatabaseDriver.Postgres: + var pgsqlConnection = $"Host={dbConfig.Host};Port={dbConfig.Port};Database={dbConfig.Schema};Username={dbConfig.User};Password={dbConfig.Password};"; + options.UseNpgsql(pgsqlConnection, npgsqlOptions => { }); + break; + case DatabaseDriver.SqlServer: + var sqlServerConnection = $"Server={dbConfig.Host},{dbConfig.Port};Database={dbConfig.Schema};User Id={dbConfig.User};Password={dbConfig.Password};Encrypt=True;TrustServerCertificate=True;"; + options.UseSqlServer(sqlServerConnection, sqlOptions => { }); + break; + case DatabaseDriver.Oracle: + var oracleConnection = $"User Id={dbConfig.User};Password={dbConfig.Password};Data Source=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST={dbConfig.Host})(PORT={dbConfig.Port})))(CONNECT_DATA=(SERVICE_NAME={dbConfig.Schema})));"; + options.UseOracle(oracleConnection, oracleOptions => { }); + break; + case DatabaseDriver.Firebird: + var firebirdConnection = $"User={dbConfig.User};Password={dbConfig.Password};Database={dbConfig.Host}:{dbConfig.Port}/{dbConfig.Schema};Dialect=3;"; + options.UseFirebird(firebirdConnection, firebirdOptions => { }); + break; + case DatabaseDriver.Sqlite: + var savedDirectory = Paths.GetApplicationSavedDirectory(); + if (!Directory.Exists(savedDirectory)) Directory.CreateDirectory(savedDirectory); + var sqliteDatabaseFile = string.IsNullOrEmpty(dbConfig.Schema) ? "default.db" : $"{dbConfig.Schema}.db"; + var sqliteDatabasePath = Path.Combine(savedDirectory, sqliteDatabaseFile); + options.UseSqlite($"Data Source={sqliteDatabasePath}", sqliteOptions => { }); + break; + case DatabaseDriver.MongoDb: + var mongoUriBuilder = new MongoUrlBuilder + { + Server = new MongoServerAddress(dbConfig.Host, int.Parse(dbConfig.Port ?? "27017")), + Username = dbConfig.User, + Password = dbConfig.Password, + DatabaseName = dbConfig.Schema + }; + var mongoClient = new MongoClient(mongoUriBuilder.ToMongoUrl()); + var mongoDatabase = mongoClient.GetDatabase(dbConfig.Schema ?? "default"); + options.UseMongoDB(mongoDatabase.Client, mongoDatabase.DatabaseNamespace.DatabaseName); + break; + default: + throw new NotSupportedException($"Unsupported database driver: {dbConfig.Driver}"); + } + }); + */ } } From b6c7166b8e818ff350fe135047dc0506dda53617 Mon Sep 17 00:00:00 2001 From: Guilherme Werner Date: Fri, 5 Dec 2025 10:17:08 -0300 Subject: [PATCH 33/52] Add repository seeder --- .../Repositories/IRepository.cs | 7 +++++- .../Repositories/Repository.cs | 4 +++ .../Repositories/RepositorySeeder.cs | 25 +++++++++++++++++++ 3 files changed, 35 insertions(+), 1 deletion(-) create mode 100644 src/Tribufu.Database/Repositories/RepositorySeeder.cs diff --git a/src/Tribufu.Database/Repositories/IRepository.cs b/src/Tribufu.Database/Repositories/IRepository.cs index 97f2750..34f9b3a 100644 --- a/src/Tribufu.Database/Repositories/IRepository.cs +++ b/src/Tribufu.Database/Repositories/IRepository.cs @@ -6,7 +6,12 @@ using System.Threading.Tasks; namespace Tribufu.Database.Repositories { - public interface IRepository where T : class + public interface IRepository + { + void SeedDefaults(); + } + + public interface IRepository : IRepository where T : class { IList GetAll(); diff --git a/src/Tribufu.Database/Repositories/Repository.cs b/src/Tribufu.Database/Repositories/Repository.cs index a929382..54e38f3 100644 --- a/src/Tribufu.Database/Repositories/Repository.cs +++ b/src/Tribufu.Database/Repositories/Repository.cs @@ -21,6 +21,10 @@ namespace Tribufu.Database.Repositories _dbSet = context.Set(); } + public virtual void SeedDefaults() + { + } + public virtual IList GetAll() { return [.. _dbSet]; diff --git a/src/Tribufu.Database/Repositories/RepositorySeeder.cs b/src/Tribufu.Database/Repositories/RepositorySeeder.cs new file mode 100644 index 0000000..55f8ce2 --- /dev/null +++ b/src/Tribufu.Database/Repositories/RepositorySeeder.cs @@ -0,0 +1,25 @@ +// Copyright (c) Tribufu. All Rights Reserved. +// SPDX-License-Identifier: MIT + +using System.Collections.Generic; + +namespace Tribufu.Database.Repositories +{ + public class RepositorySeeder + { + private readonly IEnumerable _repositories; + + public RepositorySeeder(IEnumerable repositories) + { + _repositories = repositories; + } + + public void Run() + { + foreach (var repo in _repositories) + { + repo.SeedDefaults(); + } + } + } +} From 623819151220b211248a52ae99ca59fcd207d690 Mon Sep 17 00:00:00 2001 From: Guilherme Werner Date: Fri, 5 Dec 2025 10:34:11 -0300 Subject: [PATCH 34/52] Update database seeder --- src/Tribufu.Database/DatabaseSeeder.cs | 50 +++++++++++++++++++ .../Repositories/IRepository.cs | 7 +-- .../Repositories/Repository.cs | 2 +- .../Repositories/RepositorySeeder.cs | 25 ---------- 4 files changed, 53 insertions(+), 31 deletions(-) create mode 100644 src/Tribufu.Database/DatabaseSeeder.cs delete mode 100644 src/Tribufu.Database/Repositories/RepositorySeeder.cs diff --git a/src/Tribufu.Database/DatabaseSeeder.cs b/src/Tribufu.Database/DatabaseSeeder.cs new file mode 100644 index 0000000..58f3f5d --- /dev/null +++ b/src/Tribufu.Database/DatabaseSeeder.cs @@ -0,0 +1,50 @@ +// Copyright (c) Tribufu. All Rights Reserved. +// SPDX-License-Identifier: MIT + +using Microsoft.Extensions.DependencyInjection; +using System; +using System.Linq; +using System.Threading.Tasks; +using Tribufu.Database.Repositories; + +namespace Tribufu.Database +{ + public class DatabaseSeeder + { + private readonly IServiceProvider _provider; + + public DatabaseSeeder(IServiceProvider provider) + { + _provider = provider; + } + + public async Task SeedAsync() + { + var repoType = typeof(IRepository<,>); + + var repos = _provider + .GetServices() + .Where(s => + { + var type = s.GetType(); + return type.GetInterfaces().Any(i => i.IsGenericType && i.GetGenericTypeDefinition() == repoType); + }) + .ToList(); + + foreach (var repo in repos) + { + var method = repo.GetType().GetMethod("SeedAsync"); + + if (method != null) + { + var task = method.Invoke(repo, null); + + if (task != null) + { + await (Task)task; + } + } + } + } + } +} diff --git a/src/Tribufu.Database/Repositories/IRepository.cs b/src/Tribufu.Database/Repositories/IRepository.cs index 34f9b3a..b11ed6c 100644 --- a/src/Tribufu.Database/Repositories/IRepository.cs +++ b/src/Tribufu.Database/Repositories/IRepository.cs @@ -6,13 +6,10 @@ using System.Threading.Tasks; namespace Tribufu.Database.Repositories { - public interface IRepository + public interface IRepository where T : class { - void SeedDefaults(); - } + Task SeedAsync(); - public interface IRepository : IRepository where T : class - { IList GetAll(); Task> GetAllAsync(); diff --git a/src/Tribufu.Database/Repositories/Repository.cs b/src/Tribufu.Database/Repositories/Repository.cs index 54e38f3..171e213 100644 --- a/src/Tribufu.Database/Repositories/Repository.cs +++ b/src/Tribufu.Database/Repositories/Repository.cs @@ -21,7 +21,7 @@ namespace Tribufu.Database.Repositories _dbSet = context.Set(); } - public virtual void SeedDefaults() + public virtual async Task SeedAsync() { } diff --git a/src/Tribufu.Database/Repositories/RepositorySeeder.cs b/src/Tribufu.Database/Repositories/RepositorySeeder.cs deleted file mode 100644 index 55f8ce2..0000000 --- a/src/Tribufu.Database/Repositories/RepositorySeeder.cs +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Tribufu. All Rights Reserved. -// SPDX-License-Identifier: MIT - -using System.Collections.Generic; - -namespace Tribufu.Database.Repositories -{ - public class RepositorySeeder - { - private readonly IEnumerable _repositories; - - public RepositorySeeder(IEnumerable repositories) - { - _repositories = repositories; - } - - public void Run() - { - foreach (var repo in _repositories) - { - repo.SeedDefaults(); - } - } - } -} From 1c570ce666f0f8f3572052a48ad2971b3db70f3f Mon Sep 17 00:00:00 2001 From: Guilherme Werner Date: Fri, 5 Dec 2025 11:30:50 -0300 Subject: [PATCH 35/52] Delete DatabaseSeeder.cs --- src/Tribufu.Database/DatabaseSeeder.cs | 50 -------------------------- 1 file changed, 50 deletions(-) delete mode 100644 src/Tribufu.Database/DatabaseSeeder.cs diff --git a/src/Tribufu.Database/DatabaseSeeder.cs b/src/Tribufu.Database/DatabaseSeeder.cs deleted file mode 100644 index 58f3f5d..0000000 --- a/src/Tribufu.Database/DatabaseSeeder.cs +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright (c) Tribufu. All Rights Reserved. -// SPDX-License-Identifier: MIT - -using Microsoft.Extensions.DependencyInjection; -using System; -using System.Linq; -using System.Threading.Tasks; -using Tribufu.Database.Repositories; - -namespace Tribufu.Database -{ - public class DatabaseSeeder - { - private readonly IServiceProvider _provider; - - public DatabaseSeeder(IServiceProvider provider) - { - _provider = provider; - } - - public async Task SeedAsync() - { - var repoType = typeof(IRepository<,>); - - var repos = _provider - .GetServices() - .Where(s => - { - var type = s.GetType(); - return type.GetInterfaces().Any(i => i.IsGenericType && i.GetGenericTypeDefinition() == repoType); - }) - .ToList(); - - foreach (var repo in repos) - { - var method = repo.GetType().GetMethod("SeedAsync"); - - if (method != null) - { - var task = method.Invoke(repo, null); - - if (task != null) - { - await (Task)task; - } - } - } - } - } -} From 765b6319bb849fd03307950e4b8b7ecc7363e7c1 Mon Sep 17 00:00:00 2001 From: Guilherme Werner Date: Thu, 11 Dec 2025 10:14:38 -0300 Subject: [PATCH 36/52] Add snowflake generator --- Directory.Packages.props | 1 + src/Tribufu.Database/FlakeGenerator.cs | 45 ++++++++++++++++++++ src/Tribufu.Database/Tribufu.Database.csproj | 1 + 3 files changed, 47 insertions(+) create mode 100644 src/Tribufu.Database/FlakeGenerator.cs diff --git a/Directory.Packages.props b/Directory.Packages.props index 94e2d6a..e71f9dc 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -4,6 +4,7 @@ + diff --git a/src/Tribufu.Database/FlakeGenerator.cs b/src/Tribufu.Database/FlakeGenerator.cs new file mode 100644 index 0000000..c48765e --- /dev/null +++ b/src/Tribufu.Database/FlakeGenerator.cs @@ -0,0 +1,45 @@ +// Copyright (c) Tribufu. All Rights Reserved. +// SPDX-License-Identifier: UNLICENSED + +using IdGen; +using System; + +namespace Tribufu.Database +{ + public static class FlakeGenerator + { + public static readonly DateTime EPOCH = new(2016, 1, 1, 0, 0, 0, DateTimeKind.Utc); + + private static readonly IdStructure _structure = new(41, 10, 12); + + private static readonly IdGeneratorOptions _options = new(_structure, new DefaultTimeSource(EPOCH)); + + private static readonly IdGenerator _generator = new(0, _options); + + public static ulong New() + { + //Console.WriteLine("Max. generators : {0}", _structure.MaxGenerators); + //Console.WriteLine("Id's/ms per generator : {0}", _structure.MaxSequenceIds); + //Console.WriteLine("Id's/ms total : {0}", _structure.MaxGenerators * _structure.MaxSequenceIds); + //Console.WriteLine("Wraparound interval : {0}", _structure.WraparoundInterval(_generator.Options.TimeSource)); + //Console.WriteLine("Wraparound date : {0}", _structure.WraparoundDate(_generator.Options.TimeSource.Epoch, _generator.Options.TimeSource).ToString("O")); + + return (ulong)_generator.CreateId(); + } + + public static ulong FromTimestamp(DateTime timestamp, ushort sequence = 0) + { + var diff = (long)(timestamp - EPOCH).TotalMilliseconds; + if (diff < 0 || diff > (1L << 41) - 1) + { + throw new ArgumentOutOfRangeException(nameof(timestamp), "Timestamp out of range for flake."); + } + + ulong timestampPart = (ulong)diff << 22; // 41 bits << (10+12) + ulong generatorPart = 0ul << 12; // Always 0 + ulong sequencePart = (ulong)(sequence & 0xFFF); // 12 bits + + return timestampPart | generatorPart | sequencePart; + } + } +} diff --git a/src/Tribufu.Database/Tribufu.Database.csproj b/src/Tribufu.Database/Tribufu.Database.csproj index 03a7813..3f0e397 100644 --- a/src/Tribufu.Database/Tribufu.Database.csproj +++ b/src/Tribufu.Database/Tribufu.Database.csproj @@ -16,6 +16,7 @@ + From 44dc36430aee1a627aec2f0cc7ef3c7196841dc9 Mon Sep 17 00:00:00 2001 From: Guilherme Werner Date: Thu, 11 Dec 2025 10:16:30 -0300 Subject: [PATCH 37/52] Move flake generator to platform project --- src/Tribufu.Database/Tribufu.Database.csproj | 1 - src/{Tribufu.Database => Tribufu.Platform}/FlakeGenerator.cs | 2 +- src/Tribufu.Platform/Tribufu.Platform.csproj | 3 +++ 3 files changed, 4 insertions(+), 2 deletions(-) rename src/{Tribufu.Database => Tribufu.Platform}/FlakeGenerator.cs (98%) diff --git a/src/Tribufu.Database/Tribufu.Database.csproj b/src/Tribufu.Database/Tribufu.Database.csproj index 3f0e397..03a7813 100644 --- a/src/Tribufu.Database/Tribufu.Database.csproj +++ b/src/Tribufu.Database/Tribufu.Database.csproj @@ -16,7 +16,6 @@ - diff --git a/src/Tribufu.Database/FlakeGenerator.cs b/src/Tribufu.Platform/FlakeGenerator.cs similarity index 98% rename from src/Tribufu.Database/FlakeGenerator.cs rename to src/Tribufu.Platform/FlakeGenerator.cs index c48765e..ca89efd 100644 --- a/src/Tribufu.Database/FlakeGenerator.cs +++ b/src/Tribufu.Platform/FlakeGenerator.cs @@ -4,7 +4,7 @@ using IdGen; using System; -namespace Tribufu.Database +namespace Tribufu.Platform { public static class FlakeGenerator { diff --git a/src/Tribufu.Platform/Tribufu.Platform.csproj b/src/Tribufu.Platform/Tribufu.Platform.csproj index 411ba32..cefab08 100644 --- a/src/Tribufu.Platform/Tribufu.Platform.csproj +++ b/src/Tribufu.Platform/Tribufu.Platform.csproj @@ -14,6 +14,9 @@ + + + From 93301110b7406eecf9a6d0aba093f8a860418878 Mon Sep 17 00:00:00 2001 From: Guilherme Werner Date: Tue, 16 Dec 2025 15:58:29 -0300 Subject: [PATCH 38/52] Update projects --- .gitignore | 2 + .openapi-generator/FILES | 126 +- Directory.Build.props | 2 +- Directory.Packages.props | 1 + Tribufu.sln | 30 +- releases/.gitkeep | 0 scripts/generate.ps1 | 2 +- scripts/package.ps1 | 6 +- .../Extensions/HttpContextExtensions.cs | 33 + src/Tribufu.AspNetCore/README.md | 1 + .../Tribufu.AspNetCore.csproj | 28 + .../Tribufu.ComponentModel.csproj | 2 +- .../Extensions/IConfigurationExtensions.cs | 16 + .../Tribufu.Configuration.csproj | 3 +- src/Tribufu.Database/README.md | 1 - .../DatabaseConfiguration.cs | 2 +- .../DatabaseConstants.cs | 2 +- .../DatabaseDriver.cs | 2 +- src/Tribufu.EntityFrameworkCore/README.md | 1 + .../Repositories/IRepository.cs | 2 +- .../Repositories/Repository.cs | 2 +- .../Tribufu.EntityFrameworkCore.csproj} | 4 +- src/Tribufu.Example/Program.cs | 2 +- src/Tribufu.Example/Tribufu.Example.csproj | 1 + .../Api/TribufuGeneratedApi.cs | 15035 ----------- src/Tribufu.Generated/Model/LoginResponse.cs | 110 - src/Tribufu.Generated/Model/RefreshRequest.cs | 83 - src/Tribufu.Generated/README.md | 1 - .../Tribufu.Generated.csproj | 26 - src/Tribufu.Logging/Tribufu.Logging.csproj | 2 +- src/Tribufu.Platform/Tribufu.Platform.csproj | 2 +- .../NetworkAwareSnakeCaseNamingStrategy.cs | 35 + .../Tribufu.Serialization.csproj | 2 +- src/Tribufu/Api/TribufuGeneratedApi.cs | 21419 ++++++++++++++++ .../Client/ApiClient.cs | 8 +- .../Client/ApiException.cs | 6 +- .../Client/ApiResponse.cs | 6 +- .../Client/ClientUtils.cs | 6 +- .../Client/Configuration.cs | 10 +- .../Client/ExceptionFactory.cs | 6 +- .../Client/GlobalConfiguration.cs | 6 +- .../Client/HttpMethod.cs | 6 +- .../Client/IApiAccessor.cs | 6 +- .../Client/IAsynchronousClient.cs | 6 +- .../Client/IReadableConfiguration.cs | 6 +- .../Client/ISynchronousClient.cs | 6 +- .../Client/Multimap.cs | 6 +- .../Client/OpenAPIDateConverter.cs | 6 +- .../Client/RequestOptions.cs | 6 +- .../Client/RetryConfiguration.cs | 6 +- .../Model/AbstractOpenAPISchema.cs | 6 +- .../Model/Account.cs | 32 +- .../Model/Application.cs | 104 +- .../Model/ApplicationType.cs | 8 +- .../Model/AuthorizeRequest.cs | 35 +- src/Tribufu/Model/ClientInfo.cs | 129 + src/Tribufu/Model/ClientType.cs | 54 + .../Model/CodeChallengeMethod.cs | 8 +- .../Model/CodeResponse.cs} | 54 +- .../Model/CreateUser.cs} | 124 +- .../Model/CryptoViewModel.cs | 8 +- src/Tribufu/Model/File.cs | 205 + .../Model/Game.cs | 290 +- .../Model/GameServer.cs | 207 +- .../Model/GameServerCluster.cs | 24 +- src/Tribufu/Model/GameServerQuery.cs | 152 + .../Model/GameServerStatus.cs} | 12 +- .../Model/GrantType.cs | 8 +- .../Model/Group.cs | 24 +- .../Model/GroupGame.cs | 22 +- .../Model/GroupMember.cs | 8 +- .../Model/GroupRank.cs | 8 +- .../Model/HashViewModel.cs | 22 +- .../Model/IntrospectRequest.cs | 30 +- src/Tribufu/Model/IntrospectResponse.cs | 182 + .../Model/IpAddress.cs | 8 +- .../Model/LeaderboardItem.cs | 8 +- .../Model/LeaderboardOrder.cs | 8 +- .../Model/LoginProvider.cs | 8 +- src/Tribufu/Model/ModelClient.cs | 225 + .../Model/Package.cs | 85 +- src/Tribufu/Model/PackageRelease.cs | 159 + .../Model/Profile.cs | 8 +- .../Model/ProfileGame.cs | 8 +- .../Model/ProfileGroup.cs | 8 +- .../Model/ResponseType.cs | 8 +- .../Model/RevokeRequest.cs | 30 +- .../Model/Search.cs} | 40 +- .../Model/SearchType.cs | 20 +- .../Model/ServerMetrics.cs | 8 +- .../Model/Subscription.cs | 38 +- src/Tribufu/Model/SubscriptionPrice.cs | 117 + .../Model/TokenHintType.cs | 8 +- .../Model/TokenRequest.cs | 19 +- .../Model/TokenResponse.cs | 30 +- .../Model/TokenType.cs | 8 +- .../Model/UpdateProfile.cs | 22 +- .../Model/UserInfo.cs | 149 +- .../Model/UserType.cs | 8 +- src/Tribufu/Tribufu.csproj | 9 +- src/Tribufu/TribufuApi.cs | 4 +- 101 files changed, 23635 insertions(+), 16252 deletions(-) create mode 100644 releases/.gitkeep create mode 100644 src/Tribufu.AspNetCore/Extensions/HttpContextExtensions.cs create mode 100644 src/Tribufu.AspNetCore/README.md create mode 100644 src/Tribufu.AspNetCore/Tribufu.AspNetCore.csproj create mode 100644 src/Tribufu.Configuration/Extensions/IConfigurationExtensions.cs delete mode 100644 src/Tribufu.Database/README.md rename src/{Tribufu.Database => Tribufu.EntityFrameworkCore}/DatabaseConfiguration.cs (99%) rename src/{Tribufu.Database => Tribufu.EntityFrameworkCore}/DatabaseConstants.cs (86%) rename src/{Tribufu.Database => Tribufu.EntityFrameworkCore}/DatabaseDriver.cs (88%) create mode 100644 src/Tribufu.EntityFrameworkCore/README.md rename src/{Tribufu.Database => Tribufu.EntityFrameworkCore}/Repositories/IRepository.cs (93%) rename src/{Tribufu.Database => Tribufu.EntityFrameworkCore}/Repositories/Repository.cs (98%) rename src/{Tribufu.Database/Tribufu.Database.csproj => Tribufu.EntityFrameworkCore/Tribufu.EntityFrameworkCore.csproj} (88%) delete mode 100644 src/Tribufu.Generated/Api/TribufuGeneratedApi.cs delete mode 100644 src/Tribufu.Generated/Model/LoginResponse.cs delete mode 100644 src/Tribufu.Generated/Model/RefreshRequest.cs delete mode 100644 src/Tribufu.Generated/README.md delete mode 100644 src/Tribufu.Generated/Tribufu.Generated.csproj create mode 100644 src/Tribufu.Serialization/NetworkAwareSnakeCaseNamingStrategy.cs create mode 100644 src/Tribufu/Api/TribufuGeneratedApi.cs rename src/{Tribufu.Generated => Tribufu}/Client/ApiClient.cs (99%) rename src/{Tribufu.Generated => Tribufu}/Client/ApiException.cs (94%) rename src/{Tribufu.Generated => Tribufu}/Client/ApiResponse.cs (97%) rename src/{Tribufu.Generated => Tribufu}/Client/ClientUtils.cs (98%) rename src/{Tribufu.Generated => Tribufu}/Client/Configuration.cs (98%) rename src/{Tribufu.Generated => Tribufu}/Client/ExceptionFactory.cs (79%) rename src/{Tribufu.Generated => Tribufu}/Client/GlobalConfiguration.cs (93%) rename src/{Tribufu.Generated => Tribufu}/Client/HttpMethod.cs (85%) rename src/{Tribufu.Generated => Tribufu}/Client/IApiAccessor.cs (87%) rename src/{Tribufu.Generated => Tribufu}/Client/IAsynchronousClient.cs (98%) rename src/{Tribufu.Generated => Tribufu}/Client/IReadableConfiguration.cs (97%) rename src/{Tribufu.Generated => Tribufu}/Client/ISynchronousClient.cs (97%) rename src/{Tribufu.Generated => Tribufu}/Client/Multimap.cs (98%) rename src/{Tribufu.Generated => Tribufu}/Client/OpenAPIDateConverter.cs (86%) rename src/{Tribufu.Generated => Tribufu}/Client/RequestOptions.cs (95%) rename src/{Tribufu.Generated => Tribufu}/Client/RetryConfiguration.cs (84%) rename src/{Tribufu.Generated => Tribufu}/Model/AbstractOpenAPISchema.cs (95%) rename src/{Tribufu.Generated => Tribufu}/Model/Account.cs (79%) rename src/{Tribufu.Generated => Tribufu}/Model/Application.cs (68%) rename src/{Tribufu.Generated => Tribufu}/Model/ApplicationType.cs (83%) rename src/{Tribufu.Generated => Tribufu}/Model/AuthorizeRequest.cs (79%) create mode 100644 src/Tribufu/Model/ClientInfo.cs create mode 100644 src/Tribufu/Model/ClientType.cs rename src/{Tribufu.Generated => Tribufu}/Model/CodeChallengeMethod.cs (82%) rename src/{Tribufu.Generated/Model/LoginRequest.cs => Tribufu/Model/CodeResponse.cs} (53%) rename src/{Tribufu.Generated/Model/RegisterRequest.cs => Tribufu/Model/CreateUser.cs} (50%) rename src/{Tribufu.Generated => Tribufu}/Model/CryptoViewModel.cs (93%) create mode 100644 src/Tribufu/Model/File.cs rename src/{Tribufu.Generated => Tribufu}/Model/Game.cs (59%) rename src/{Tribufu.Generated => Tribufu}/Model/GameServer.cs (68%) rename src/{Tribufu.Generated => Tribufu}/Model/GameServerCluster.cs (91%) create mode 100644 src/Tribufu/Model/GameServerQuery.cs rename src/{Tribufu.Generated/Model/ServerStatus.cs => Tribufu/Model/GameServerStatus.cs} (80%) rename src/{Tribufu.Generated => Tribufu}/Model/GrantType.cs (87%) rename src/{Tribufu.Generated => Tribufu}/Model/Group.cs (91%) rename src/{Tribufu.Generated => Tribufu}/Model/GroupGame.cs (85%) rename src/{Tribufu.Generated => Tribufu}/Model/GroupMember.cs (96%) rename src/{Tribufu.Generated => Tribufu}/Model/GroupRank.cs (84%) rename src/{Tribufu.Generated => Tribufu}/Model/HashViewModel.cs (74%) rename src/{Tribufu.Generated => Tribufu}/Model/IntrospectRequest.cs (70%) create mode 100644 src/Tribufu/Model/IntrospectResponse.cs rename src/{Tribufu.Generated => Tribufu}/Model/IpAddress.cs (98%) rename src/{Tribufu.Generated => Tribufu}/Model/LeaderboardItem.cs (95%) rename src/{Tribufu.Generated => Tribufu}/Model/LeaderboardOrder.cs (82%) rename src/{Tribufu.Generated => Tribufu}/Model/LoginProvider.cs (89%) create mode 100644 src/Tribufu/Model/ModelClient.cs rename src/{Tribufu.Generated => Tribufu}/Model/Package.cs (68%) create mode 100644 src/Tribufu/Model/PackageRelease.cs rename src/{Tribufu.Generated => Tribufu}/Model/Profile.cs (97%) rename src/{Tribufu.Generated => Tribufu}/Model/ProfileGame.cs (97%) rename src/{Tribufu.Generated => Tribufu}/Model/ProfileGroup.cs (96%) rename src/{Tribufu.Generated => Tribufu}/Model/ResponseType.cs (82%) rename src/{Tribufu.Generated => Tribufu}/Model/RevokeRequest.cs (70%) rename src/{Tribufu.Generated/Model/SearchRequest.cs => Tribufu/Model/Search.cs} (67%) rename src/{Tribufu.Generated => Tribufu}/Model/SearchType.cs (70%) rename src/{Tribufu.Generated => Tribufu}/Model/ServerMetrics.cs (94%) rename src/{Tribufu.Generated => Tribufu}/Model/Subscription.cs (82%) create mode 100644 src/Tribufu/Model/SubscriptionPrice.cs rename src/{Tribufu.Generated => Tribufu}/Model/TokenHintType.cs (83%) rename src/{Tribufu.Generated => Tribufu}/Model/TokenRequest.cs (87%) rename src/{Tribufu.Generated => Tribufu}/Model/TokenResponse.cs (75%) rename src/{Tribufu.Generated => Tribufu}/Model/TokenType.cs (80%) rename src/{Tribufu.Generated => Tribufu}/Model/UpdateProfile.cs (77%) rename src/{Tribufu.Generated => Tribufu}/Model/UserInfo.cs (54%) rename src/{Tribufu.Generated => Tribufu}/Model/UserType.cs (82%) diff --git a/.gitignore b/.gitignore index b585321..c7ac18e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,9 @@ .vs/ bin/ obj/ +releases/* +!releases/.gitkeep .DS_Store .env *.filters diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index e13d875..7def927 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -1,60 +1,66 @@ -src/Tribufu.Generated/Api/TribufuGeneratedApi.cs -src/Tribufu.Generated/Client/ApiClient.cs -src/Tribufu.Generated/Client/ApiException.cs -src/Tribufu.Generated/Client/ApiResponse.cs -src/Tribufu.Generated/Client/ClientUtils.cs -src/Tribufu.Generated/Client/Configuration.cs -src/Tribufu.Generated/Client/ExceptionFactory.cs -src/Tribufu.Generated/Client/GlobalConfiguration.cs -src/Tribufu.Generated/Client/HttpMethod.cs -src/Tribufu.Generated/Client/IApiAccessor.cs -src/Tribufu.Generated/Client/IAsynchronousClient.cs -src/Tribufu.Generated/Client/IReadableConfiguration.cs -src/Tribufu.Generated/Client/ISynchronousClient.cs -src/Tribufu.Generated/Client/Multimap.cs -src/Tribufu.Generated/Client/OpenAPIDateConverter.cs -src/Tribufu.Generated/Client/RequestOptions.cs -src/Tribufu.Generated/Client/RetryConfiguration.cs -src/Tribufu.Generated/Model/AbstractOpenAPISchema.cs -src/Tribufu.Generated/Model/Account.cs -src/Tribufu.Generated/Model/Application.cs -src/Tribufu.Generated/Model/ApplicationType.cs -src/Tribufu.Generated/Model/AuthorizeRequest.cs -src/Tribufu.Generated/Model/CodeChallengeMethod.cs -src/Tribufu.Generated/Model/CryptoViewModel.cs -src/Tribufu.Generated/Model/Game.cs -src/Tribufu.Generated/Model/GameServer.cs -src/Tribufu.Generated/Model/GameServerCluster.cs -src/Tribufu.Generated/Model/GrantType.cs -src/Tribufu.Generated/Model/Group.cs -src/Tribufu.Generated/Model/GroupGame.cs -src/Tribufu.Generated/Model/GroupMember.cs -src/Tribufu.Generated/Model/GroupRank.cs -src/Tribufu.Generated/Model/HashViewModel.cs -src/Tribufu.Generated/Model/IntrospectRequest.cs -src/Tribufu.Generated/Model/IpAddress.cs -src/Tribufu.Generated/Model/LeaderboardItem.cs -src/Tribufu.Generated/Model/LeaderboardOrder.cs -src/Tribufu.Generated/Model/LoginProvider.cs -src/Tribufu.Generated/Model/LoginRequest.cs -src/Tribufu.Generated/Model/LoginResponse.cs -src/Tribufu.Generated/Model/Package.cs -src/Tribufu.Generated/Model/Profile.cs -src/Tribufu.Generated/Model/ProfileGame.cs -src/Tribufu.Generated/Model/ProfileGroup.cs -src/Tribufu.Generated/Model/RefreshRequest.cs -src/Tribufu.Generated/Model/RegisterRequest.cs -src/Tribufu.Generated/Model/ResponseType.cs -src/Tribufu.Generated/Model/RevokeRequest.cs -src/Tribufu.Generated/Model/SearchRequest.cs -src/Tribufu.Generated/Model/SearchType.cs -src/Tribufu.Generated/Model/ServerMetrics.cs -src/Tribufu.Generated/Model/ServerStatus.cs -src/Tribufu.Generated/Model/Subscription.cs -src/Tribufu.Generated/Model/TokenHintType.cs -src/Tribufu.Generated/Model/TokenRequest.cs -src/Tribufu.Generated/Model/TokenResponse.cs -src/Tribufu.Generated/Model/TokenType.cs -src/Tribufu.Generated/Model/UpdateProfile.cs -src/Tribufu.Generated/Model/UserInfo.cs -src/Tribufu.Generated/Model/UserType.cs +src/Tribufu/Api/TribufuGeneratedApi.cs +src/Tribufu/Client/ApiClient.cs +src/Tribufu/Client/ApiException.cs +src/Tribufu/Client/ApiResponse.cs +src/Tribufu/Client/ClientUtils.cs +src/Tribufu/Client/Configuration.cs +src/Tribufu/Client/ExceptionFactory.cs +src/Tribufu/Client/GlobalConfiguration.cs +src/Tribufu/Client/HttpMethod.cs +src/Tribufu/Client/IApiAccessor.cs +src/Tribufu/Client/IAsynchronousClient.cs +src/Tribufu/Client/IReadableConfiguration.cs +src/Tribufu/Client/ISynchronousClient.cs +src/Tribufu/Client/Multimap.cs +src/Tribufu/Client/OpenAPIDateConverter.cs +src/Tribufu/Client/RequestOptions.cs +src/Tribufu/Client/RetryConfiguration.cs +src/Tribufu/Model/AbstractOpenAPISchema.cs +src/Tribufu/Model/Account.cs +src/Tribufu/Model/Application.cs +src/Tribufu/Model/ApplicationType.cs +src/Tribufu/Model/AuthorizeRequest.cs +src/Tribufu/Model/ClientInfo.cs +src/Tribufu/Model/ClientType.cs +src/Tribufu/Model/CodeChallengeMethod.cs +src/Tribufu/Model/CodeResponse.cs +src/Tribufu/Model/CreateUser.cs +src/Tribufu/Model/CryptoViewModel.cs +src/Tribufu/Model/File.cs +src/Tribufu/Model/Game.cs +src/Tribufu/Model/GameServer.cs +src/Tribufu/Model/GameServerCluster.cs +src/Tribufu/Model/GameServerQuery.cs +src/Tribufu/Model/GameServerStatus.cs +src/Tribufu/Model/GrantType.cs +src/Tribufu/Model/Group.cs +src/Tribufu/Model/GroupGame.cs +src/Tribufu/Model/GroupMember.cs +src/Tribufu/Model/GroupRank.cs +src/Tribufu/Model/HashViewModel.cs +src/Tribufu/Model/IntrospectRequest.cs +src/Tribufu/Model/IntrospectResponse.cs +src/Tribufu/Model/IpAddress.cs +src/Tribufu/Model/LeaderboardItem.cs +src/Tribufu/Model/LeaderboardOrder.cs +src/Tribufu/Model/LoginProvider.cs +src/Tribufu/Model/ModelClient.cs +src/Tribufu/Model/Package.cs +src/Tribufu/Model/PackageRelease.cs +src/Tribufu/Model/Profile.cs +src/Tribufu/Model/ProfileGame.cs +src/Tribufu/Model/ProfileGroup.cs +src/Tribufu/Model/ResponseType.cs +src/Tribufu/Model/RevokeRequest.cs +src/Tribufu/Model/Search.cs +src/Tribufu/Model/SearchType.cs +src/Tribufu/Model/ServerMetrics.cs +src/Tribufu/Model/Subscription.cs +src/Tribufu/Model/SubscriptionPrice.cs +src/Tribufu/Model/TokenHintType.cs +src/Tribufu/Model/TokenRequest.cs +src/Tribufu/Model/TokenResponse.cs +src/Tribufu/Model/TokenType.cs +src/Tribufu/Model/UpdateProfile.cs +src/Tribufu/Model/UserInfo.cs +src/Tribufu/Model/UserType.cs diff --git a/Directory.Build.props b/Directory.Build.props index c226fd5..96c42d7 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -6,7 +6,7 @@ MIT git https://github.com/tribufu/tribufu-dotnet - 1.1.0 + 1.2.0 $(Version).0 $(NoWarn);0618;1591;1998;2002;8767 diff --git a/Directory.Packages.props b/Directory.Packages.props index e71f9dc..0640a39 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -3,6 +3,7 @@ true + diff --git a/Tribufu.sln b/Tribufu.sln index 54314cd..0f722d9 100644 --- a/Tribufu.sln +++ b/Tribufu.sln @@ -3,8 +3,6 @@ Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio Version 16 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tribufu", "src\Tribufu\Tribufu.csproj", "{7B7890D8-863A-4F1D-98C0-4B7D8C46CB52}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tribufu.Generated", "src\Tribufu.Generated\Tribufu.Generated.csproj", "{FF9B3170-0FD8-44A5-B6E3-01A8D11D2BEF}" -EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tribufu.Example", "src\Tribufu.Example\Tribufu.Example.csproj", "{D6392A29-E2DC-4050-B4C1-B279DD2D226D}" EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tribufu.Logging", "src\Tribufu.Logging\Tribufu.Logging.csproj", "{CFD80847-9B98-4991-BADF-8714E7D8D81C}" @@ -13,12 +11,14 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tribufu.Configuration", "sr EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tribufu.Platform", "src\Tribufu.Platform\Tribufu.Platform.csproj", "{26EEB407-733C-4383-9211-B083CD5F593B}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tribufu.Database", "src\Tribufu.Database\Tribufu.Database.csproj", "{E7F9A76F-C087-410B-B4B5-A928A6CDC2BA}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tribufu.EntityFrameworkCore", "src\Tribufu.EntityFrameworkCore\Tribufu.EntityFrameworkCore.csproj", "{E7F9A76F-C087-410B-B4B5-A928A6CDC2BA}" EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tribufu.Serialization", "src\Tribufu.Serialization\Tribufu.Serialization.csproj", "{D6DAE078-2F80-49DD-97A3-B1223FE04F91}" EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tribufu.ComponentModel", "src\Tribufu.ComponentModel\Tribufu.ComponentModel.csproj", "{7CB04FFD-8F4B-4B40-BB4B-2BAA19D783E1}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tribufu.AspNetCore", "src\Tribufu.AspNetCore\Tribufu.AspNetCore.csproj", "{B6C47A6C-E389-4132-8E1C-0CBB6C96C205}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -41,18 +41,6 @@ Global {7B7890D8-863A-4F1D-98C0-4B7D8C46CB52}.Release|x64.Build.0 = Release|Any CPU {7B7890D8-863A-4F1D-98C0-4B7D8C46CB52}.Release|x86.ActiveCfg = Release|Any CPU {7B7890D8-863A-4F1D-98C0-4B7D8C46CB52}.Release|x86.Build.0 = Release|Any CPU - {FF9B3170-0FD8-44A5-B6E3-01A8D11D2BEF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {FF9B3170-0FD8-44A5-B6E3-01A8D11D2BEF}.Debug|Any CPU.Build.0 = Debug|Any CPU - {FF9B3170-0FD8-44A5-B6E3-01A8D11D2BEF}.Debug|x64.ActiveCfg = Debug|Any CPU - {FF9B3170-0FD8-44A5-B6E3-01A8D11D2BEF}.Debug|x64.Build.0 = Debug|Any CPU - {FF9B3170-0FD8-44A5-B6E3-01A8D11D2BEF}.Debug|x86.ActiveCfg = Debug|Any CPU - {FF9B3170-0FD8-44A5-B6E3-01A8D11D2BEF}.Debug|x86.Build.0 = Debug|Any CPU - {FF9B3170-0FD8-44A5-B6E3-01A8D11D2BEF}.Release|Any CPU.ActiveCfg = Release|Any CPU - {FF9B3170-0FD8-44A5-B6E3-01A8D11D2BEF}.Release|Any CPU.Build.0 = Release|Any CPU - {FF9B3170-0FD8-44A5-B6E3-01A8D11D2BEF}.Release|x64.ActiveCfg = Release|Any CPU - {FF9B3170-0FD8-44A5-B6E3-01A8D11D2BEF}.Release|x64.Build.0 = Release|Any CPU - {FF9B3170-0FD8-44A5-B6E3-01A8D11D2BEF}.Release|x86.ActiveCfg = Release|Any CPU - {FF9B3170-0FD8-44A5-B6E3-01A8D11D2BEF}.Release|x86.Build.0 = Release|Any CPU {D6392A29-E2DC-4050-B4C1-B279DD2D226D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {D6392A29-E2DC-4050-B4C1-B279DD2D226D}.Debug|Any CPU.Build.0 = Debug|Any CPU {D6392A29-E2DC-4050-B4C1-B279DD2D226D}.Debug|x64.ActiveCfg = Debug|Any CPU @@ -137,6 +125,18 @@ Global {7CB04FFD-8F4B-4B40-BB4B-2BAA19D783E1}.Release|x64.Build.0 = Release|Any CPU {7CB04FFD-8F4B-4B40-BB4B-2BAA19D783E1}.Release|x86.ActiveCfg = Release|Any CPU {7CB04FFD-8F4B-4B40-BB4B-2BAA19D783E1}.Release|x86.Build.0 = Release|Any CPU + {B6C47A6C-E389-4132-8E1C-0CBB6C96C205}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {B6C47A6C-E389-4132-8E1C-0CBB6C96C205}.Debug|Any CPU.Build.0 = Debug|Any CPU + {B6C47A6C-E389-4132-8E1C-0CBB6C96C205}.Debug|x64.ActiveCfg = Debug|Any CPU + {B6C47A6C-E389-4132-8E1C-0CBB6C96C205}.Debug|x64.Build.0 = Debug|Any CPU + {B6C47A6C-E389-4132-8E1C-0CBB6C96C205}.Debug|x86.ActiveCfg = Debug|Any CPU + {B6C47A6C-E389-4132-8E1C-0CBB6C96C205}.Debug|x86.Build.0 = Debug|Any CPU + {B6C47A6C-E389-4132-8E1C-0CBB6C96C205}.Release|Any CPU.ActiveCfg = Release|Any CPU + {B6C47A6C-E389-4132-8E1C-0CBB6C96C205}.Release|Any CPU.Build.0 = Release|Any CPU + {B6C47A6C-E389-4132-8E1C-0CBB6C96C205}.Release|x64.ActiveCfg = Release|Any CPU + {B6C47A6C-E389-4132-8E1C-0CBB6C96C205}.Release|x64.Build.0 = Release|Any CPU + {B6C47A6C-E389-4132-8E1C-0CBB6C96C205}.Release|x86.ActiveCfg = Release|Any CPU + {B6C47A6C-E389-4132-8E1C-0CBB6C96C205}.Release|x86.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/releases/.gitkeep b/releases/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/scripts/generate.ps1 b/scripts/generate.ps1 index c2c8b9a..7f14cb8 100644 --- a/scripts/generate.ps1 +++ b/scripts/generate.ps1 @@ -7,6 +7,6 @@ java -jar ./vendor/openapi-generator/openapi-generator-cli.jar generate ` -g csharp ` -o . ` --global-property apis,models,supportingFiles,apiDocs=false,modelDocs=false,apiTests=false,modelTests=false ` - --additional-properties=packageName=Tribufu.Generated,library=restsharp,zeroBasedEnums=true,nullableReferenceTypes=true ` + --additional-properties=packageName=Tribufu,library=restsharp,zeroBasedEnums=true,nullableReferenceTypes=true ` --openapi-normalizer SET_TAGS_FOR_ALL_OPERATIONS=TribufuGenerated ` --skip-validate-spec diff --git a/scripts/package.ps1 b/scripts/package.ps1 index 7408aae..b496845 100644 --- a/scripts/package.ps1 +++ b/scripts/package.ps1 @@ -1,5 +1,7 @@ -#!/usr/bin/env sh +#!/usr/bin/env pwsh + +Get-ChildItem ./releases -Filter *.nupkg -Recurse -Force | Remove-Item -Force dotnet clean dotnet build -c Release -dotnet pack +dotnet pack -c Release -o ./releases diff --git a/src/Tribufu.AspNetCore/Extensions/HttpContextExtensions.cs b/src/Tribufu.AspNetCore/Extensions/HttpContextExtensions.cs new file mode 100644 index 0000000..b65a12b --- /dev/null +++ b/src/Tribufu.AspNetCore/Extensions/HttpContextExtensions.cs @@ -0,0 +1,33 @@ +// Copyright (c) Tribufu. All Rights Reserved. +// SPDX-License-Identifier: UNLICENSED + +using Microsoft.AspNetCore.Http; +using System; +using System.Linq; + +namespace Tribufu.AspNetCore.Extensions +{ + public static class HttpContextExtensions + { + public static string GetIpAddress(this HttpContext context) + { + var headers = context.Request.Headers; + if (headers.TryGetValue("CF-Connecting-IP", out var cfConnectingIp)) + { + return cfConnectingIp.FirstOrDefault() ?? "127.0.0.1"; + } + + if (headers.TryGetValue("X-Forwarded-For", out var xForwardedFor)) + { + var forwardedIps = xForwardedFor.ToString().Split(',', StringSplitOptions.RemoveEmptyEntries); + + if (forwardedIps.Length > 0) + { + return forwardedIps[0].Trim(); + } + } + + return context.Connection.RemoteIpAddress?.ToString() ?? "127.0.0.1"; + } + } +} diff --git a/src/Tribufu.AspNetCore/README.md b/src/Tribufu.AspNetCore/README.md new file mode 100644 index 0000000..54d4fec --- /dev/null +++ b/src/Tribufu.AspNetCore/README.md @@ -0,0 +1 @@ +# Tribufu AspNetCore diff --git a/src/Tribufu.AspNetCore/Tribufu.AspNetCore.csproj b/src/Tribufu.AspNetCore/Tribufu.AspNetCore.csproj new file mode 100644 index 0000000..a739e7f --- /dev/null +++ b/src/Tribufu.AspNetCore/Tribufu.AspNetCore.csproj @@ -0,0 +1,28 @@ + + + Tribufu.AspNetCore + Tribufu AspNetCore + README.md + + + Properties + true + false + enable + Library + net8.0 + + + + + + + + + + + + + + + diff --git a/src/Tribufu.ComponentModel/Tribufu.ComponentModel.csproj b/src/Tribufu.ComponentModel/Tribufu.ComponentModel.csproj index 1d780d8..05ddc36 100644 --- a/src/Tribufu.ComponentModel/Tribufu.ComponentModel.csproj +++ b/src/Tribufu.ComponentModel/Tribufu.ComponentModel.csproj @@ -1,7 +1,7 @@ Tribufu.ComponentModel - Tribufu ComponentModel Extensions + Tribufu ComponentModel README.md diff --git a/src/Tribufu.Configuration/Extensions/IConfigurationExtensions.cs b/src/Tribufu.Configuration/Extensions/IConfigurationExtensions.cs new file mode 100644 index 0000000..6c11899 --- /dev/null +++ b/src/Tribufu.Configuration/Extensions/IConfigurationExtensions.cs @@ -0,0 +1,16 @@ +// Copyright (c) Tribufu. All Rights Reserved. +// SPDX-License-Identifier: MIT + +using Microsoft.Extensions.Configuration; + +namespace Tribufu.Configuration.Extensions +{ + public static class IConfigurationExtensions + { + public static string? Get(this IConfiguration configuration, string prefix, string key) + { + var section = configuration.GetSection(prefix); + return !section.Exists() ? configuration[$"{prefix}_{key}"] : section[key]; + } + } +} diff --git a/src/Tribufu.Configuration/Tribufu.Configuration.csproj b/src/Tribufu.Configuration/Tribufu.Configuration.csproj index 5cc4ef1..3dc2aa8 100644 --- a/src/Tribufu.Configuration/Tribufu.Configuration.csproj +++ b/src/Tribufu.Configuration/Tribufu.Configuration.csproj @@ -1,13 +1,14 @@  Tribufu.Configuration - Tribufu Configuration Extensions + Tribufu Configuration README.md Properties true false + enable Library net6.0 diff --git a/src/Tribufu.Database/README.md b/src/Tribufu.Database/README.md deleted file mode 100644 index ebf3077..0000000 --- a/src/Tribufu.Database/README.md +++ /dev/null @@ -1 +0,0 @@ -# Tribufu Database diff --git a/src/Tribufu.Database/DatabaseConfiguration.cs b/src/Tribufu.EntityFrameworkCore/DatabaseConfiguration.cs similarity index 99% rename from src/Tribufu.Database/DatabaseConfiguration.cs rename to src/Tribufu.EntityFrameworkCore/DatabaseConfiguration.cs index d9099a9..7619c8a 100644 --- a/src/Tribufu.Database/DatabaseConfiguration.cs +++ b/src/Tribufu.EntityFrameworkCore/DatabaseConfiguration.cs @@ -4,7 +4,7 @@ using Microsoft.Extensions.Configuration; using System; -namespace Tribufu.Database +namespace Tribufu.EntityFrameworkCore { public class DatabaseConfiguration { diff --git a/src/Tribufu.Database/DatabaseConstants.cs b/src/Tribufu.EntityFrameworkCore/DatabaseConstants.cs similarity index 86% rename from src/Tribufu.Database/DatabaseConstants.cs rename to src/Tribufu.EntityFrameworkCore/DatabaseConstants.cs index bfff4b2..8b51fc4 100644 --- a/src/Tribufu.Database/DatabaseConstants.cs +++ b/src/Tribufu.EntityFrameworkCore/DatabaseConstants.cs @@ -1,7 +1,7 @@ // Copyright (c) Tribufu. All Rights Reserved. // SPDX-License-Identifier: MIT -namespace Tribufu.Database +namespace Tribufu.EntityFrameworkCore { public static class DatabaseConstants { diff --git a/src/Tribufu.Database/DatabaseDriver.cs b/src/Tribufu.EntityFrameworkCore/DatabaseDriver.cs similarity index 88% rename from src/Tribufu.Database/DatabaseDriver.cs rename to src/Tribufu.EntityFrameworkCore/DatabaseDriver.cs index 8c3f8f3..d904e83 100644 --- a/src/Tribufu.Database/DatabaseDriver.cs +++ b/src/Tribufu.EntityFrameworkCore/DatabaseDriver.cs @@ -1,7 +1,7 @@ // Copyright (c) Tribufu. All Rights Reserved. // SPDX-License-Identifier: MIT -namespace Tribufu.Database +namespace Tribufu.EntityFrameworkCore { public enum DatabaseDriver : byte { diff --git a/src/Tribufu.EntityFrameworkCore/README.md b/src/Tribufu.EntityFrameworkCore/README.md new file mode 100644 index 0000000..19c48b4 --- /dev/null +++ b/src/Tribufu.EntityFrameworkCore/README.md @@ -0,0 +1 @@ +# Tribufu EntityFrameworkCore diff --git a/src/Tribufu.Database/Repositories/IRepository.cs b/src/Tribufu.EntityFrameworkCore/Repositories/IRepository.cs similarity index 93% rename from src/Tribufu.Database/Repositories/IRepository.cs rename to src/Tribufu.EntityFrameworkCore/Repositories/IRepository.cs index b11ed6c..dbb4b19 100644 --- a/src/Tribufu.Database/Repositories/IRepository.cs +++ b/src/Tribufu.EntityFrameworkCore/Repositories/IRepository.cs @@ -4,7 +4,7 @@ using System.Collections.Generic; using System.Threading.Tasks; -namespace Tribufu.Database.Repositories +namespace Tribufu.EntityFrameworkCore.Repositories { public interface IRepository where T : class { diff --git a/src/Tribufu.Database/Repositories/Repository.cs b/src/Tribufu.EntityFrameworkCore/Repositories/Repository.cs similarity index 98% rename from src/Tribufu.Database/Repositories/Repository.cs rename to src/Tribufu.EntityFrameworkCore/Repositories/Repository.cs index 171e213..c70a3c5 100644 --- a/src/Tribufu.Database/Repositories/Repository.cs +++ b/src/Tribufu.EntityFrameworkCore/Repositories/Repository.cs @@ -7,7 +7,7 @@ using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; -namespace Tribufu.Database.Repositories +namespace Tribufu.EntityFrameworkCore.Repositories { public class Repository : IRepository where C : DbContext where T : class { diff --git a/src/Tribufu.Database/Tribufu.Database.csproj b/src/Tribufu.EntityFrameworkCore/Tribufu.EntityFrameworkCore.csproj similarity index 88% rename from src/Tribufu.Database/Tribufu.Database.csproj rename to src/Tribufu.EntityFrameworkCore/Tribufu.EntityFrameworkCore.csproj index 03a7813..f591fd3 100644 --- a/src/Tribufu.Database/Tribufu.Database.csproj +++ b/src/Tribufu.EntityFrameworkCore/Tribufu.EntityFrameworkCore.csproj @@ -1,7 +1,7 @@  - Tribufu.Database - Tribufu Database Extensions + Tribufu.EntityFrameworkCore + Tribufu EntityFrameworkCore README.md diff --git a/src/Tribufu.Example/Program.cs b/src/Tribufu.Example/Program.cs index cd76174..1dce3d9 100644 --- a/src/Tribufu.Example/Program.cs +++ b/src/Tribufu.Example/Program.cs @@ -4,7 +4,7 @@ using dotenv.net; using System; using System.Threading.Tasks; -using Tribufu.Generated.Client; +using Tribufu.Client; using Tribufu.Logging; namespace Tribufu.Test diff --git a/src/Tribufu.Example/Tribufu.Example.csproj b/src/Tribufu.Example/Tribufu.Example.csproj index 3116a54..3bde082 100644 --- a/src/Tribufu.Example/Tribufu.Example.csproj +++ b/src/Tribufu.Example/Tribufu.Example.csproj @@ -1,5 +1,6 @@  + false false enable Exe diff --git a/src/Tribufu.Generated/Api/TribufuGeneratedApi.cs b/src/Tribufu.Generated/Api/TribufuGeneratedApi.cs deleted file mode 100644 index 4575450..0000000 --- a/src/Tribufu.Generated/Api/TribufuGeneratedApi.cs +++ /dev/null @@ -1,15035 +0,0 @@ -/* - * Tribufu API - * - * REST API to access Tribufu services. - * - * The version of the OpenAPI document: 1.1.0 - * Contact: contact@tribufu.com - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using System.Net; -using System.Net.Mime; -using Tribufu.Generated.Client; -using Tribufu.Generated.Model; - -namespace Tribufu.Generated.Api -{ - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface ITribufuGeneratedApiSync : IApiAccessor - { - #region Synchronous Operations - /// - /// Authorize the client to access the user information. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.authorize</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// Index associated with the operation. - /// - void Authorize(AuthorizeRequest? authorizeRequest = default(AuthorizeRequest?), int operationIndex = 0); - - /// - /// Authorize the client to access the user information. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.authorize</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// Index associated with the operation. - /// ApiResponse of Object(void) - ApiResponse AuthorizeWithHttpInfo(AuthorizeRequest? authorizeRequest = default(AuthorizeRequest?), int operationIndex = 0); - /// - /// Change the email of a user. - /// - /// - /// This endpoint is not available with an api key, only with a bearer token.<br/><br/><b>🔒 Required permissions:</b> <code>tribufu.identity.user.email.update</code> - /// - /// Thrown when fails to make API call - /// - /// (optional) - /// Index associated with the operation. - /// - void ChangeEmail(string id, Object? body = default(Object?), int operationIndex = 0); - - /// - /// Change the email of a user. - /// - /// - /// This endpoint is not available with an api key, only with a bearer token.<br/><br/><b>🔒 Required permissions:</b> <code>tribufu.identity.user.email.update</code> - /// - /// Thrown when fails to make API call - /// - /// (optional) - /// Index associated with the operation. - /// ApiResponse of Object(void) - ApiResponse ChangeEmailWithHttpInfo(string id, Object? body = default(Object?), int operationIndex = 0); - /// - /// Change the password of a user. - /// - /// - /// This endpoint is not available with an api key, only with a bearer token.<br/><br/><b>🔒 Required permissions:</b> <code>tribufu.identity.user.password.update</code> - /// - /// Thrown when fails to make API call - /// - /// (optional) - /// Index associated with the operation. - /// - void ChangePassword(string id, Object? body = default(Object?), int operationIndex = 0); - - /// - /// Change the password of a user. - /// - /// - /// This endpoint is not available with an api key, only with a bearer token.<br/><br/><b>🔒 Required permissions:</b> <code>tribufu.identity.user.password.update</code> - /// - /// Thrown when fails to make API call - /// - /// (optional) - /// Index associated with the operation. - /// ApiResponse of Object(void) - ApiResponse ChangePasswordWithHttpInfo(string id, Object? body = default(Object?), int operationIndex = 0); - /// - /// Claim a game server. - /// - /// - /// This endpoint is not available with an api key, only with a bearer token.<br/><br/><b>🔒 Required permissions:</b> <code>tribufu.community.game.server.claim</code> - /// - /// Thrown when fails to make API call - /// - /// (optional) - /// Index associated with the operation. - /// - void ClaimGameServer(string id, Object? body = default(Object?), int operationIndex = 0); - - /// - /// Claim a game server. - /// - /// - /// This endpoint is not available with an api key, only with a bearer token.<br/><br/><b>🔒 Required permissions:</b> <code>tribufu.community.game.server.claim</code> - /// - /// Thrown when fails to make API call - /// - /// (optional) - /// Index associated with the operation. - /// ApiResponse of Object(void) - ApiResponse ClaimGameServerWithHttpInfo(string id, Object? body = default(Object?), int operationIndex = 0); - /// - /// Convert a string to base64 or vice versa. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.utils.convert.base64</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// Index associated with the operation. - /// CryptoViewModel - CryptoViewModel ConvertBase64(CryptoViewModel? cryptoViewModel = default(CryptoViewModel?), int operationIndex = 0); - - /// - /// Convert a string to base64 or vice versa. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.utils.convert.base64</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// Index associated with the operation. - /// ApiResponse of CryptoViewModel - ApiResponse ConvertBase64WithHttpInfo(CryptoViewModel? cryptoViewModel = default(CryptoViewModel?), int operationIndex = 0); - /// - /// Create a new game server. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.game.server.create</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// Index associated with the operation. - /// - void CreateGameServer(Object? body = default(Object?), int operationIndex = 0); - - /// - /// Create a new game server. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.game.server.create</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// Index associated with the operation. - /// ApiResponse of Object(void) - ApiResponse CreateGameServerWithHttpInfo(Object? body = default(Object?), int operationIndex = 0); - /// - /// Create a new game server cluster. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.game.server.cluster.create</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// Index associated with the operation. - /// - void CreateGameServerCluster(Object? body = default(Object?), int operationIndex = 0); - - /// - /// Create a new game server cluster. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.game.server.cluster.create</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// Index associated with the operation. - /// ApiResponse of Object(void) - ApiResponse CreateGameServerClusterWithHttpInfo(Object? body = default(Object?), int operationIndex = 0); - /// - /// Create a new group. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.group.create</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// Index associated with the operation. - /// - void CreateGroup(Object? body = default(Object?), int operationIndex = 0); - - /// - /// Create a new group. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.group.create</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// Index associated with the operation. - /// ApiResponse of Object(void) - ApiResponse CreateGroupWithHttpInfo(Object? body = default(Object?), int operationIndex = 0); - /// - /// Create a new token with grant type. - /// - /// Thrown when fails to make API call - /// (optional) - /// Index associated with the operation. - /// TokenResponse - TokenResponse CreateToken(TokenRequest? tokenRequest = default(TokenRequest?), int operationIndex = 0); - - /// - /// Create a new token with grant type. - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// Index associated with the operation. - /// ApiResponse of TokenResponse - ApiResponse CreateTokenWithHttpInfo(TokenRequest? tokenRequest = default(TokenRequest?), int operationIndex = 0); - /// - /// Delete a game server. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.game.server.delete</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// - void DeleteGameServer(string id, int operationIndex = 0); - - /// - /// Delete a game server. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.game.server.delete</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// ApiResponse of Object(void) - ApiResponse DeleteGameServerWithHttpInfo(string id, int operationIndex = 0); - /// - /// Delete a game server cluster. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.game.server.cluster.delete</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// - void DeleteGameServerCluster(string id, int operationIndex = 0); - - /// - /// Delete a game server cluster. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.game.server.cluster.delete</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// ApiResponse of Object(void) - ApiResponse DeleteGameServerClusterWithHttpInfo(string id, int operationIndex = 0); - /// - /// Delete a group. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.group.delete</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// - void DeleteGroup(string id, int operationIndex = 0); - - /// - /// Delete a group. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.group.delete</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// ApiResponse of Object(void) - ApiResponse DeleteGroupWithHttpInfo(string id, int operationIndex = 0); - /// - /// Generate one or more flake ids. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.utils.generate.flake</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// Index associated with the operation. - /// List<string> - List GenerateFlakeId(int? amount = default(int?), int operationIndex = 0); - - /// - /// Generate one or more flake ids. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.utils.generate.flake</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// Index associated with the operation. - /// ApiResponse of List<string> - ApiResponse> GenerateFlakeIdWithHttpInfo(int? amount = default(int?), int operationIndex = 0); - /// - /// Generate one or more flake ids from a timestamp. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.utils.generate.flake.timestamp</code> - /// - /// Thrown when fails to make API call - /// - /// (optional) - /// Index associated with the operation. - /// List<string> - List GenerateFlakeIdFromTimestamp(string timestamp, int? amount = default(int?), int operationIndex = 0); - - /// - /// Generate one or more flake ids from a timestamp. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.utils.generate.flake.timestamp</code> - /// - /// Thrown when fails to make API call - /// - /// (optional) - /// Index associated with the operation. - /// ApiResponse of List<string> - ApiResponse> GenerateFlakeIdFromTimestampWithHttpInfo(string timestamp, int? amount = default(int?), int operationIndex = 0); - /// - /// Generate a random password. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.utils.generate.password</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// (optional) - /// Index associated with the operation. - /// HashViewModel - HashViewModel GeneratePassword(int? length = default(int?), bool? symbols = default(bool?), int operationIndex = 0); - - /// - /// Generate a random password. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.utils.generate.password</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// (optional) - /// Index associated with the operation. - /// ApiResponse of HashViewModel - ApiResponse GeneratePasswordWithHttpInfo(int? length = default(int?), bool? symbols = default(bool?), int operationIndex = 0); - /// - /// Generate one or more uuids with a specific version. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.utils.generate.uuid</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// (optional) - /// Index associated with the operation. - /// List<Guid> - List GenerateUuid(int? version = default(int?), int? amount = default(int?), int operationIndex = 0); - - /// - /// Generate one or more uuids with a specific version. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.utils.generate.uuid</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// (optional) - /// Index associated with the operation. - /// ApiResponse of List<Guid> - ApiResponse> GenerateUuidWithHttpInfo(int? version = default(int?), int? amount = default(int?), int operationIndex = 0); - /// - /// Get current client information. - /// - /// Thrown when fails to make API call - /// Index associated with the operation. - /// - void GetClientInfo(int operationIndex = 0); - - /// - /// Get current client information. - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Index associated with the operation. - /// ApiResponse of Object(void) - ApiResponse GetClientInfoWithHttpInfo(int operationIndex = 0); - /// - /// Get current ip address location. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.geoip.current</code> - /// - /// Thrown when fails to make API call - /// Index associated with the operation. - /// List<IpAddress> - List GetCurrentIpAddress(int operationIndex = 0); - - /// - /// Get current ip address location. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.geoip.current</code> - /// - /// Thrown when fails to make API call - /// Index associated with the operation. - /// ApiResponse of List<IpAddress> - ApiResponse> GetCurrentIpAddressWithHttpInfo(int operationIndex = 0); - /// - /// Get a game by id. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.game.get</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// Game - Game GetGameById(string id, int operationIndex = 0); - - /// - /// Get a game by id. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.game.get</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// ApiResponse of Game - ApiResponse GetGameByIdWithHttpInfo(string id, int operationIndex = 0); - /// - /// Get a list of game server clusters of a game. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.game.server.cluster.list</code> - /// - /// Thrown when fails to make API call - /// - /// (optional) - /// (optional) - /// Index associated with the operation. - /// List<GameServerCluster> - List GetGameClustersByGameId(string id, int? page = default(int?), int? limit = default(int?), int operationIndex = 0); - - /// - /// Get a list of game server clusters of a game. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.game.server.cluster.list</code> - /// - /// Thrown when fails to make API call - /// - /// (optional) - /// (optional) - /// Index associated with the operation. - /// ApiResponse of List<GameServerCluster> - ApiResponse> GetGameClustersByGameIdWithHttpInfo(string id, int? page = default(int?), int? limit = default(int?), int operationIndex = 0); - /// - /// Get a list of game items. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.game.item.list</code> - /// - /// Thrown when fails to make API call - /// - /// (optional) - /// (optional) - /// Index associated with the operation. - /// List<Object> - List GetGameItems(string id, int? page = default(int?), int? limit = default(int?), int operationIndex = 0); - - /// - /// Get a list of game items. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.game.item.list</code> - /// - /// Thrown when fails to make API call - /// - /// (optional) - /// (optional) - /// Index associated with the operation. - /// ApiResponse of List<Object> - ApiResponse> GetGameItemsWithHttpInfo(string id, int? page = default(int?), int? limit = default(int?), int operationIndex = 0); - /// - /// Get a game server by address and query port. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.game.server.get.address</code> - /// - /// Thrown when fails to make API call - /// - /// - /// Index associated with the operation. - /// GameServer - GameServer GetGameServerByAddressAndQueryPort(string address, int port, int operationIndex = 0); - - /// - /// Get a game server by address and query port. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.game.server.get.address</code> - /// - /// Thrown when fails to make API call - /// - /// - /// Index associated with the operation. - /// ApiResponse of GameServer - ApiResponse GetGameServerByAddressAndQueryPortWithHttpInfo(string address, int port, int operationIndex = 0); - /// - /// Get a game server by id. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.game.server.get</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// GameServer - GameServer GetGameServerById(string id, int operationIndex = 0); - - /// - /// Get a game server by id. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.game.server.get</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// ApiResponse of GameServer - ApiResponse GetGameServerByIdWithHttpInfo(string id, int operationIndex = 0); - /// - /// Get a game server cluster by id. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.game.server.cluster.get</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// GameServerCluster - GameServerCluster GetGameServerClusterById(string id, int operationIndex = 0); - - /// - /// Get a game server cluster by id. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.game.server.cluster.get</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// ApiResponse of GameServerCluster - ApiResponse GetGameServerClusterByIdWithHttpInfo(string id, int operationIndex = 0); - /// - /// Get a list of game server clusters. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.game.server.cluster.list</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// (optional) - /// Index associated with the operation. - /// List<GameServerCluster> - List GetGameServerClusters(int? page = default(int?), int? limit = default(int?), int operationIndex = 0); - - /// - /// Get a list of game server clusters. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.game.server.cluster.list</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// (optional) - /// Index associated with the operation. - /// ApiResponse of List<GameServerCluster> - ApiResponse> GetGameServerClustersWithHttpInfo(int? page = default(int?), int? limit = default(int?), int operationIndex = 0); - /// - /// Get a list of game servers. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.game.server.list</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// (optional) - /// Index associated with the operation. - /// List<GameServer> - List GetGameServers(int? page = default(int?), int? limit = default(int?), int operationIndex = 0); - - /// - /// Get a list of game servers. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.game.server.list</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// (optional) - /// Index associated with the operation. - /// ApiResponse of List<GameServer> - ApiResponse> GetGameServersWithHttpInfo(int? page = default(int?), int? limit = default(int?), int operationIndex = 0); - /// - /// Get a list of game servers from a country. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.game.server.list.country</code> - /// - /// Thrown when fails to make API call - /// - /// (optional) - /// (optional) - /// Index associated with the operation. - /// List<GameServer> - List GetGameServersByCountry(string country, int? page = default(int?), int? limit = default(int?), int operationIndex = 0); - - /// - /// Get a list of game servers from a country. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.game.server.list.country</code> - /// - /// Thrown when fails to make API call - /// - /// (optional) - /// (optional) - /// Index associated with the operation. - /// ApiResponse of List<GameServer> - ApiResponse> GetGameServersByCountryWithHttpInfo(string country, int? page = default(int?), int? limit = default(int?), int operationIndex = 0); - /// - /// Get a list of game servers of a game. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.game.server.list</code> - /// - /// Thrown when fails to make API call - /// - /// (optional) - /// (optional) - /// Index associated with the operation. - /// List<GameServer> - List GetGameServersByGameId(string id, int? page = default(int?), int? limit = default(int?), int operationIndex = 0); - - /// - /// Get a list of game servers of a game. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.game.server.list</code> - /// - /// Thrown when fails to make API call - /// - /// (optional) - /// (optional) - /// Index associated with the operation. - /// ApiResponse of List<GameServer> - ApiResponse> GetGameServersByGameIdWithHttpInfo(string id, int? page = default(int?), int? limit = default(int?), int operationIndex = 0); - /// - /// Get a list of countries with the number of game servers. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.game.server.country.list</code> - /// - /// Thrown when fails to make API call - /// Index associated with the operation. - /// Dictionary<string, int> - Dictionary GetGameServersCountries(int operationIndex = 0); - - /// - /// Get a list of countries with the number of game servers. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.game.server.country.list</code> - /// - /// Thrown when fails to make API call - /// Index associated with the operation. - /// ApiResponse of Dictionary<string, int> - ApiResponse> GetGameServersCountriesWithHttpInfo(int operationIndex = 0); - /// - /// Get metrics about the tracked game servers. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.game.server.metric.get</code> - /// - /// Thrown when fails to make API call - /// Index associated with the operation. - /// ServerMetrics - ServerMetrics GetGameServersMetrics(int operationIndex = 0); - - /// - /// Get metrics about the tracked game servers. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.game.server.metric.get</code> - /// - /// Thrown when fails to make API call - /// Index associated with the operation. - /// ApiResponse of ServerMetrics - ApiResponse GetGameServersMetricsWithHttpInfo(int operationIndex = 0); - /// - /// Get a list of games. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.game.list</code> - /// - /// Thrown when fails to make API call - /// Index associated with the operation. - /// List<Game> - List GetGames(int operationIndex = 0); - - /// - /// Get a list of games. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.game.list</code> - /// - /// Thrown when fails to make API call - /// Index associated with the operation. - /// ApiResponse of List<Game> - ApiResponse> GetGamesWithHttpInfo(int operationIndex = 0); - /// - /// Get a group by id. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.group.get</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// Group - Group GetGroupById(string id, int operationIndex = 0); - - /// - /// Get a group by id. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.group.get</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// ApiResponse of Group - ApiResponse GetGroupByIdWithHttpInfo(string id, int operationIndex = 0); - /// - /// Get a group by tag. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.group.get.tag</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// Group - Group GetGroupByTag(string tag, int operationIndex = 0); - - /// - /// Get a group by tag. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.group.get.tag</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// ApiResponse of Group - ApiResponse GetGroupByTagWithHttpInfo(string tag, int operationIndex = 0); - /// - /// Get a group by uuid. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.group.get.uuid</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// Group - Group GetGroupByUuid(Guid uuid, int operationIndex = 0); - - /// - /// Get a group by uuid. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.group.get.uuid</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// ApiResponse of Group - ApiResponse GetGroupByUuidWithHttpInfo(Guid uuid, int operationIndex = 0); - /// - /// Get a list of games of a group. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.group.game.list</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// List<GroupGame> - List GetGroupGames(string id, int operationIndex = 0); - - /// - /// Get a list of games of a group. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.group.game.list</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// ApiResponse of List<GroupGame> - ApiResponse> GetGroupGamesWithHttpInfo(string id, int operationIndex = 0); - /// - /// Get a list of members in a group. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.group.member.list</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// List<GroupMember> - List GetGroupMembers(string id, int operationIndex = 0); - - /// - /// Get a list of members in a group. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.group.member.list</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// ApiResponse of List<GroupMember> - ApiResponse> GetGroupMembersWithHttpInfo(string id, int operationIndex = 0); - /// - /// Get a list of groups. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.group.list</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// (optional) - /// Index associated with the operation. - /// List<Group> - List GetGroups(int? page = default(int?), int? limit = default(int?), int operationIndex = 0); - - /// - /// Get a list of groups. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.group.list</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// (optional) - /// Index associated with the operation. - /// ApiResponse of List<Group> - ApiResponse> GetGroupsWithHttpInfo(int? page = default(int?), int? limit = default(int?), int operationIndex = 0); - /// - /// Get a ip address location. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.geoip.address.get</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// IpAddress - IpAddress GetIpAddress(string address, int operationIndex = 0); - - /// - /// Get a ip address location. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.geoip.address.get</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// ApiResponse of IpAddress - ApiResponse GetIpAddressWithHttpInfo(string address, int operationIndex = 0); - /// - /// Get a list of ip addresses. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.geoip.address.list</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// (optional) - /// Index associated with the operation. - /// List<IpAddress> - List GetIpAddresses(int? page = default(int?), int? limit = default(int?), int operationIndex = 0); - - /// - /// Get a list of ip addresses. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.geoip.address.list</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// (optional) - /// Index associated with the operation. - /// ApiResponse of List<IpAddress> - ApiResponse> GetIpAddressesWithHttpInfo(int? page = default(int?), int? limit = default(int?), int operationIndex = 0); - /// - /// Get the top 20 leaderboard users. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.leaderboard.get</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// Index associated with the operation. - /// List<LeaderboardItem> - List GetLeaderboard(LeaderboardOrder? order = default(LeaderboardOrder?), int operationIndex = 0); - - /// - /// Get the top 20 leaderboard users. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.leaderboard.get</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// Index associated with the operation. - /// ApiResponse of List<LeaderboardItem> - ApiResponse> GetLeaderboardWithHttpInfo(LeaderboardOrder? order = default(LeaderboardOrder?), int operationIndex = 0); - /// - /// Get current user information. - /// - /// Thrown when fails to make API call - /// Index associated with the operation. - /// UserInfo - [Obsolete] - UserInfo GetMe(int operationIndex = 0); - - /// - /// Get current user information. - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Index associated with the operation. - /// ApiResponse of UserInfo - [Obsolete] - ApiResponse GetMeWithHttpInfo(int operationIndex = 0); - /// - /// Get a package by id. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.package.get</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// Package - Package GetPackageById(string id, int operationIndex = 0); - - /// - /// Get a package by id. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.package.get</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// ApiResponse of Package - ApiResponse GetPackageByIdWithHttpInfo(string id, int operationIndex = 0); - /// - /// Get a list of packages. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.package.list</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// (optional) - /// Index associated with the operation. - /// List<Package> - List GetPackages(int? page = default(int?), int? limit = default(int?), int operationIndex = 0); - - /// - /// Get a list of packages. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.package.list</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// (optional) - /// Index associated with the operation. - /// ApiResponse of List<Package> - ApiResponse> GetPackagesWithHttpInfo(int? page = default(int?), int? limit = default(int?), int operationIndex = 0); - /// - /// Get the public keys for the client. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.client.keys</code> - /// - /// Thrown when fails to make API call - /// Index associated with the operation. - /// - void GetPublicKeys(int operationIndex = 0); - - /// - /// Get the public keys for the client. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.client.keys</code> - /// - /// Thrown when fails to make API call - /// Index associated with the operation. - /// ApiResponse of Object(void) - ApiResponse GetPublicKeysWithHttpInfo(int operationIndex = 0); - /// - /// Get a subscription by id. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.store.subscription.get</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// Subscription - Subscription GetSubscriptionById(string id, int operationIndex = 0); - - /// - /// Get a subscription by id. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.store.subscription.get</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// ApiResponse of Subscription - ApiResponse GetSubscriptionByIdWithHttpInfo(string id, int operationIndex = 0); - /// - /// Get a list of subscriptions. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.store.subscription.list</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// (optional) - /// Index associated with the operation. - /// List<Subscription> - List GetSubscriptions(int? page = default(int?), int? limit = default(int?), int operationIndex = 0); - - /// - /// Get a list of subscriptions. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.store.subscription.list</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// (optional) - /// Index associated with the operation. - /// ApiResponse of List<Subscription> - ApiResponse> GetSubscriptionsWithHttpInfo(int? page = default(int?), int? limit = default(int?), int operationIndex = 0); - /// - /// Get a list of connected accounts of the user. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.identity.user.account.list</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// List<Account> - List GetUserAccounts(string id, int operationIndex = 0); - - /// - /// Get a list of connected accounts of the user. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.identity.user.account.list</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// ApiResponse of List<Account> - ApiResponse> GetUserAccountsWithHttpInfo(string id, int operationIndex = 0); - /// - /// Get a user profile by id. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.get</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// Profile - Profile GetUserById(string id, int operationIndex = 0); - - /// - /// Get a user profile by id. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.get</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// ApiResponse of Profile - ApiResponse GetUserByIdWithHttpInfo(string id, int operationIndex = 0); - /// - /// Get a user profile by name. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.get.name</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// Profile - Profile GetUserByName(string name, int operationIndex = 0); - - /// - /// Get a user profile by name. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.get.name</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// ApiResponse of Profile - ApiResponse GetUserByNameWithHttpInfo(string name, int operationIndex = 0); - /// - /// Get a user profile by uuid. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.get.uuid</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// Profile - Profile GetUserByUuid(Guid uuid, int operationIndex = 0); - - /// - /// Get a user profile by uuid. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.get.uuid</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// ApiResponse of Profile - ApiResponse GetUserByUuidWithHttpInfo(Guid uuid, int operationIndex = 0); - /// - /// Get a list of friends of the user. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.friend.list</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// List<Object> - List GetUserFriends(string id, int operationIndex = 0); - - /// - /// Get a list of friends of the user. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.friend.list</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// ApiResponse of List<Object> - ApiResponse> GetUserFriendsWithHttpInfo(string id, int operationIndex = 0); - /// - /// Get a list of games the user has played. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.game.list</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// List<ProfileGame> - List GetUserGames(string id, int operationIndex = 0); - - /// - /// Get a list of games the user has played. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.game.list</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// ApiResponse of List<ProfileGame> - ApiResponse> GetUserGamesWithHttpInfo(string id, int operationIndex = 0); - /// - /// Get a list of groups the user is a member of. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.group.list</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// List<ProfileGroup> - List GetUserGroups(string id, int operationIndex = 0); - - /// - /// Get a list of groups the user is a member of. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.group.list</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// ApiResponse of List<ProfileGroup> - ApiResponse> GetUserGroupsWithHttpInfo(string id, int operationIndex = 0); - /// - /// Get current user information. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.user.info</code> - /// - /// Thrown when fails to make API call - /// Index associated with the operation. - /// UserInfo - UserInfo GetUserInfo(int operationIndex = 0); - - /// - /// Get current user information. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.user.info</code> - /// - /// Thrown when fails to make API call - /// Index associated with the operation. - /// ApiResponse of UserInfo - ApiResponse GetUserInfoWithHttpInfo(int operationIndex = 0); - /// - /// Get a list of punishments the user has received. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.punishment.list</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// List<Object> - List GetUserPunishments(string id, int operationIndex = 0); - - /// - /// Get a list of punishments the user has received. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.punishment.list</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// ApiResponse of List<Object> - ApiResponse> GetUserPunishmentsWithHttpInfo(string id, int operationIndex = 0); - /// - /// Get a list of servers the user is owner of. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.game.server.list</code> - /// - /// Thrown when fails to make API call - /// - /// (optional) - /// (optional) - /// Index associated with the operation. - /// List<GameServer> - List GetUserServers(string id, int? page = default(int?), int? limit = default(int?), int operationIndex = 0); - - /// - /// Get a list of servers the user is owner of. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.game.server.list</code> - /// - /// Thrown when fails to make API call - /// - /// (optional) - /// (optional) - /// Index associated with the operation. - /// ApiResponse of List<GameServer> - ApiResponse> GetUserServersWithHttpInfo(string id, int? page = default(int?), int? limit = default(int?), int operationIndex = 0); - /// - /// Get a list of user profiles. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.list</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// (optional) - /// Index associated with the operation. - /// List<Profile> - List GetUsers(int? page = default(int?), int? limit = default(int?), int operationIndex = 0); - - /// - /// Get a list of user profiles. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.list</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// (optional) - /// Index associated with the operation. - /// ApiResponse of List<Profile> - ApiResponse> GetUsersWithHttpInfo(int? page = default(int?), int? limit = default(int?), int operationIndex = 0); - /// - /// Hash a string using argon2. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.utils.hash.argon2</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// Index associated with the operation. - /// HashViewModel - HashViewModel HashArgon2(HashViewModel? hashViewModel = default(HashViewModel?), int operationIndex = 0); - - /// - /// Hash a string using argon2. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.utils.hash.argon2</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// Index associated with the operation. - /// ApiResponse of HashViewModel - ApiResponse HashArgon2WithHttpInfo(HashViewModel? hashViewModel = default(HashViewModel?), int operationIndex = 0); - /// - /// Hash a string using bcrypt. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.utils.hash.bcrypt</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// Index associated with the operation. - /// HashViewModel - HashViewModel HashBcrypt(HashViewModel? hashViewModel = default(HashViewModel?), int operationIndex = 0); - - /// - /// Hash a string using bcrypt. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.utils.hash.bcrypt</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// Index associated with the operation. - /// ApiResponse of HashViewModel - ApiResponse HashBcryptWithHttpInfo(HashViewModel? hashViewModel = default(HashViewModel?), int operationIndex = 0); - /// - /// Hash a string using md5. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.utils.hash.md5</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// Index associated with the operation. - /// HashViewModel - HashViewModel HashMd5(HashViewModel? hashViewModel = default(HashViewModel?), int operationIndex = 0); - - /// - /// Hash a string using md5. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.utils.hash.md5</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// Index associated with the operation. - /// ApiResponse of HashViewModel - ApiResponse HashMd5WithHttpInfo(HashViewModel? hashViewModel = default(HashViewModel?), int operationIndex = 0); - /// - /// Hash a string using sha256. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.utils.hash.sha256</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// Index associated with the operation. - /// HashViewModel - HashViewModel HashSha256(HashViewModel? hashViewModel = default(HashViewModel?), int operationIndex = 0); - - /// - /// Hash a string using sha256. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.utils.hash.sha256</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// Index associated with the operation. - /// ApiResponse of HashViewModel - ApiResponse HashSha256WithHttpInfo(HashViewModel? hashViewModel = default(HashViewModel?), int operationIndex = 0); - /// - /// Introspect a token. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.token.introspect</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// Index associated with the operation. - /// - void IntrospectToken(IntrospectRequest? introspectRequest = default(IntrospectRequest?), int operationIndex = 0); - - /// - /// Introspect a token. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.token.introspect</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// Index associated with the operation. - /// ApiResponse of Object(void) - ApiResponse IntrospectTokenWithHttpInfo(IntrospectRequest? introspectRequest = default(IntrospectRequest?), int operationIndex = 0); - /// - /// Login with name or email and password. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.identity.token.create</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// Index associated with the operation. - /// LoginResponse - [Obsolete] - LoginResponse Login(LoginRequest? loginRequest = default(LoginRequest?), int operationIndex = 0); - - /// - /// Login with name or email and password. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.identity.token.create</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// Index associated with the operation. - /// ApiResponse of LoginResponse - [Obsolete] - ApiResponse LoginWithHttpInfo(LoginRequest? loginRequest = default(LoginRequest?), int operationIndex = 0); - /// - /// Invalidate credentials. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.identity.token.revoke</code> - /// - /// Thrown when fails to make API call - /// Index associated with the operation. - /// - [Obsolete] - void Logout(int operationIndex = 0); - - /// - /// Invalidate credentials. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.identity.token.revoke</code> - /// - /// Thrown when fails to make API call - /// Index associated with the operation. - /// ApiResponse of Object(void) - [Obsolete] - ApiResponse LogoutWithHttpInfo(int operationIndex = 0); - /// - /// Refresh credentials. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.identity.token.refresh</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// Index associated with the operation. - /// LoginResponse - [Obsolete] - LoginResponse Refresh(RefreshRequest? refreshRequest = default(RefreshRequest?), int operationIndex = 0); - - /// - /// Refresh credentials. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.identity.token.refresh</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// Index associated with the operation. - /// ApiResponse of LoginResponse - [Obsolete] - ApiResponse RefreshWithHttpInfo(RefreshRequest? refreshRequest = default(RefreshRequest?), int operationIndex = 0); - /// - /// Create a new user. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.identity.user.create</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// Index associated with the operation. - /// LoginResponse - LoginResponse Register(RegisterRequest? registerRequest = default(RegisterRequest?), int operationIndex = 0); - - /// - /// Create a new user. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.identity.user.create</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// Index associated with the operation. - /// ApiResponse of LoginResponse - ApiResponse RegisterWithHttpInfo(RegisterRequest? registerRequest = default(RegisterRequest?), int operationIndex = 0); - /// - /// Revoke a token. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.token.revoke</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// Index associated with the operation. - /// - void RevokeToken(RevokeRequest? revokeRequest = default(RevokeRequest?), int operationIndex = 0); - - /// - /// Revoke a token. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.token.revoke</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// Index associated with the operation. - /// ApiResponse of Object(void) - ApiResponse RevokeTokenWithHttpInfo(RevokeRequest? revokeRequest = default(RevokeRequest?), int operationIndex = 0); - /// - /// Advanced search for servers or players. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.search</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// Index associated with the operation. - /// List<Object> - List Search(SearchRequest? searchRequest = default(SearchRequest?), int operationIndex = 0); - - /// - /// Advanced search for servers or players. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.search</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// Index associated with the operation. - /// ApiResponse of List<Object> - ApiResponse> SearchWithHttpInfo(SearchRequest? searchRequest = default(SearchRequest?), int operationIndex = 0); - /// - /// Update a game server. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.game.server.update</code> - /// - /// Thrown when fails to make API call - /// - /// (optional) - /// Index associated with the operation. - /// - void UpdateGameServer(string id, Object? body = default(Object?), int operationIndex = 0); - - /// - /// Update a game server. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.game.server.update</code> - /// - /// Thrown when fails to make API call - /// - /// (optional) - /// Index associated with the operation. - /// ApiResponse of Object(void) - ApiResponse UpdateGameServerWithHttpInfo(string id, Object? body = default(Object?), int operationIndex = 0); - /// - /// Update a game server cluster. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.game.server.cluster.update</code> - /// - /// Thrown when fails to make API call - /// - /// (optional) - /// Index associated with the operation. - /// - void UpdateGameServerCluster(string id, Object? body = default(Object?), int operationIndex = 0); - - /// - /// Update a game server cluster. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.game.server.cluster.update</code> - /// - /// Thrown when fails to make API call - /// - /// (optional) - /// Index associated with the operation. - /// ApiResponse of Object(void) - ApiResponse UpdateGameServerClusterWithHttpInfo(string id, Object? body = default(Object?), int operationIndex = 0); - /// - /// Update a group. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.group.update</code> - /// - /// Thrown when fails to make API call - /// - /// (optional) - /// Index associated with the operation. - /// - void UpdateGroup(string id, Object? body = default(Object?), int operationIndex = 0); - - /// - /// Update a group. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.group.update</code> - /// - /// Thrown when fails to make API call - /// - /// (optional) - /// Index associated with the operation. - /// ApiResponse of Object(void) - ApiResponse UpdateGroupWithHttpInfo(string id, Object? body = default(Object?), int operationIndex = 0); - /// - /// Update a user profile. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.update</code> - /// - /// Thrown when fails to make API call - /// - /// (optional) - /// Index associated with the operation. - /// Profile - Profile UpdateUserProfile(string id, UpdateProfile? updateProfile = default(UpdateProfile?), int operationIndex = 0); - - /// - /// Update a user profile. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.update</code> - /// - /// Thrown when fails to make API call - /// - /// (optional) - /// Index associated with the operation. - /// ApiResponse of Profile - ApiResponse UpdateUserProfileWithHttpInfo(string id, UpdateProfile? updateProfile = default(UpdateProfile?), int operationIndex = 0); - #endregion Synchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface ITribufuGeneratedApiAsync : IApiAccessor - { - #region Asynchronous Operations - /// - /// Authorize the client to access the user information. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.authorize</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of void - System.Threading.Tasks.Task AuthorizeAsync(AuthorizeRequest? authorizeRequest = default(AuthorizeRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); - - /// - /// Authorize the client to access the user information. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.authorize</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ApiResponse - System.Threading.Tasks.Task> AuthorizeWithHttpInfoAsync(AuthorizeRequest? authorizeRequest = default(AuthorizeRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); - /// - /// Change the email of a user. - /// - /// - /// This endpoint is not available with an api key, only with a bearer token.<br/><br/><b>🔒 Required permissions:</b> <code>tribufu.identity.user.email.update</code> - /// - /// Thrown when fails to make API call - /// - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of void - System.Threading.Tasks.Task ChangeEmailAsync(string id, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); - - /// - /// Change the email of a user. - /// - /// - /// This endpoint is not available with an api key, only with a bearer token.<br/><br/><b>🔒 Required permissions:</b> <code>tribufu.identity.user.email.update</code> - /// - /// Thrown when fails to make API call - /// - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ApiResponse - System.Threading.Tasks.Task> ChangeEmailWithHttpInfoAsync(string id, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); - /// - /// Change the password of a user. - /// - /// - /// This endpoint is not available with an api key, only with a bearer token.<br/><br/><b>🔒 Required permissions:</b> <code>tribufu.identity.user.password.update</code> - /// - /// Thrown when fails to make API call - /// - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of void - System.Threading.Tasks.Task ChangePasswordAsync(string id, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); - - /// - /// Change the password of a user. - /// - /// - /// This endpoint is not available with an api key, only with a bearer token.<br/><br/><b>🔒 Required permissions:</b> <code>tribufu.identity.user.password.update</code> - /// - /// Thrown when fails to make API call - /// - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ApiResponse - System.Threading.Tasks.Task> ChangePasswordWithHttpInfoAsync(string id, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); - /// - /// Claim a game server. - /// - /// - /// This endpoint is not available with an api key, only with a bearer token.<br/><br/><b>🔒 Required permissions:</b> <code>tribufu.community.game.server.claim</code> - /// - /// Thrown when fails to make API call - /// - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of void - System.Threading.Tasks.Task ClaimGameServerAsync(string id, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); - - /// - /// Claim a game server. - /// - /// - /// This endpoint is not available with an api key, only with a bearer token.<br/><br/><b>🔒 Required permissions:</b> <code>tribufu.community.game.server.claim</code> - /// - /// Thrown when fails to make API call - /// - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ApiResponse - System.Threading.Tasks.Task> ClaimGameServerWithHttpInfoAsync(string id, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); - /// - /// Convert a string to base64 or vice versa. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.utils.convert.base64</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of CryptoViewModel - System.Threading.Tasks.Task ConvertBase64Async(CryptoViewModel? cryptoViewModel = default(CryptoViewModel?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); - - /// - /// Convert a string to base64 or vice versa. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.utils.convert.base64</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ApiResponse (CryptoViewModel) - System.Threading.Tasks.Task> ConvertBase64WithHttpInfoAsync(CryptoViewModel? cryptoViewModel = default(CryptoViewModel?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); - /// - /// Create a new game server. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.game.server.create</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of void - System.Threading.Tasks.Task CreateGameServerAsync(Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); - - /// - /// Create a new game server. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.game.server.create</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ApiResponse - System.Threading.Tasks.Task> CreateGameServerWithHttpInfoAsync(Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); - /// - /// Create a new game server cluster. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.game.server.cluster.create</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of void - System.Threading.Tasks.Task CreateGameServerClusterAsync(Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); - - /// - /// Create a new game server cluster. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.game.server.cluster.create</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ApiResponse - System.Threading.Tasks.Task> CreateGameServerClusterWithHttpInfoAsync(Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); - /// - /// Create a new group. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.group.create</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of void - System.Threading.Tasks.Task CreateGroupAsync(Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); - - /// - /// Create a new group. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.group.create</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ApiResponse - System.Threading.Tasks.Task> CreateGroupWithHttpInfoAsync(Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); - /// - /// Create a new token with grant type. - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of TokenResponse - System.Threading.Tasks.Task CreateTokenAsync(TokenRequest? tokenRequest = default(TokenRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); - - /// - /// Create a new token with grant type. - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ApiResponse (TokenResponse) - System.Threading.Tasks.Task> CreateTokenWithHttpInfoAsync(TokenRequest? tokenRequest = default(TokenRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); - /// - /// Delete a game server. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.game.server.delete</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of void - System.Threading.Tasks.Task DeleteGameServerAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); - - /// - /// Delete a game server. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.game.server.delete</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ApiResponse - System.Threading.Tasks.Task> DeleteGameServerWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); - /// - /// Delete a game server cluster. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.game.server.cluster.delete</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of void - System.Threading.Tasks.Task DeleteGameServerClusterAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); - - /// - /// Delete a game server cluster. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.game.server.cluster.delete</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ApiResponse - System.Threading.Tasks.Task> DeleteGameServerClusterWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); - /// - /// Delete a group. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.group.delete</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of void - System.Threading.Tasks.Task DeleteGroupAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); - - /// - /// Delete a group. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.group.delete</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ApiResponse - System.Threading.Tasks.Task> DeleteGroupWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); - /// - /// Generate one or more flake ids. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.utils.generate.flake</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of List<string> - System.Threading.Tasks.Task> GenerateFlakeIdAsync(int? amount = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); - - /// - /// Generate one or more flake ids. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.utils.generate.flake</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ApiResponse (List<string>) - System.Threading.Tasks.Task>> GenerateFlakeIdWithHttpInfoAsync(int? amount = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); - /// - /// Generate one or more flake ids from a timestamp. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.utils.generate.flake.timestamp</code> - /// - /// Thrown when fails to make API call - /// - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of List<string> - System.Threading.Tasks.Task> GenerateFlakeIdFromTimestampAsync(string timestamp, int? amount = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); - - /// - /// Generate one or more flake ids from a timestamp. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.utils.generate.flake.timestamp</code> - /// - /// Thrown when fails to make API call - /// - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ApiResponse (List<string>) - System.Threading.Tasks.Task>> GenerateFlakeIdFromTimestampWithHttpInfoAsync(string timestamp, int? amount = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); - /// - /// Generate a random password. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.utils.generate.password</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of HashViewModel - System.Threading.Tasks.Task GeneratePasswordAsync(int? length = default(int?), bool? symbols = default(bool?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); - - /// - /// Generate a random password. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.utils.generate.password</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ApiResponse (HashViewModel) - System.Threading.Tasks.Task> GeneratePasswordWithHttpInfoAsync(int? length = default(int?), bool? symbols = default(bool?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); - /// - /// Generate one or more uuids with a specific version. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.utils.generate.uuid</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of List<Guid> - System.Threading.Tasks.Task> GenerateUuidAsync(int? version = default(int?), int? amount = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); - - /// - /// Generate one or more uuids with a specific version. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.utils.generate.uuid</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ApiResponse (List<Guid>) - System.Threading.Tasks.Task>> GenerateUuidWithHttpInfoAsync(int? version = default(int?), int? amount = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); - /// - /// Get current client information. - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of void - System.Threading.Tasks.Task GetClientInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); - - /// - /// Get current client information. - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ApiResponse - System.Threading.Tasks.Task> GetClientInfoWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); - /// - /// Get current ip address location. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.geoip.current</code> - /// - /// Thrown when fails to make API call - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of List<IpAddress> - System.Threading.Tasks.Task> GetCurrentIpAddressAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); - - /// - /// Get current ip address location. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.geoip.current</code> - /// - /// Thrown when fails to make API call - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ApiResponse (List<IpAddress>) - System.Threading.Tasks.Task>> GetCurrentIpAddressWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); - /// - /// Get a game by id. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.game.get</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of Game - System.Threading.Tasks.Task GetGameByIdAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); - - /// - /// Get a game by id. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.game.get</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ApiResponse (Game) - System.Threading.Tasks.Task> GetGameByIdWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); - /// - /// Get a list of game server clusters of a game. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.game.server.cluster.list</code> - /// - /// Thrown when fails to make API call - /// - /// (optional) - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of List<GameServerCluster> - System.Threading.Tasks.Task> GetGameClustersByGameIdAsync(string id, int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); - - /// - /// Get a list of game server clusters of a game. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.game.server.cluster.list</code> - /// - /// Thrown when fails to make API call - /// - /// (optional) - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ApiResponse (List<GameServerCluster>) - System.Threading.Tasks.Task>> GetGameClustersByGameIdWithHttpInfoAsync(string id, int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); - /// - /// Get a list of game items. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.game.item.list</code> - /// - /// Thrown when fails to make API call - /// - /// (optional) - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of List<Object> - System.Threading.Tasks.Task> GetGameItemsAsync(string id, int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); - - /// - /// Get a list of game items. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.game.item.list</code> - /// - /// Thrown when fails to make API call - /// - /// (optional) - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ApiResponse (List<Object>) - System.Threading.Tasks.Task>> GetGameItemsWithHttpInfoAsync(string id, int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); - /// - /// Get a game server by address and query port. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.game.server.get.address</code> - /// - /// Thrown when fails to make API call - /// - /// - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of GameServer - System.Threading.Tasks.Task GetGameServerByAddressAndQueryPortAsync(string address, int port, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); - - /// - /// Get a game server by address and query port. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.game.server.get.address</code> - /// - /// Thrown when fails to make API call - /// - /// - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ApiResponse (GameServer) - System.Threading.Tasks.Task> GetGameServerByAddressAndQueryPortWithHttpInfoAsync(string address, int port, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); - /// - /// Get a game server by id. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.game.server.get</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of GameServer - System.Threading.Tasks.Task GetGameServerByIdAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); - - /// - /// Get a game server by id. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.game.server.get</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ApiResponse (GameServer) - System.Threading.Tasks.Task> GetGameServerByIdWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); - /// - /// Get a game server cluster by id. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.game.server.cluster.get</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of GameServerCluster - System.Threading.Tasks.Task GetGameServerClusterByIdAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); - - /// - /// Get a game server cluster by id. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.game.server.cluster.get</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ApiResponse (GameServerCluster) - System.Threading.Tasks.Task> GetGameServerClusterByIdWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); - /// - /// Get a list of game server clusters. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.game.server.cluster.list</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of List<GameServerCluster> - System.Threading.Tasks.Task> GetGameServerClustersAsync(int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); - - /// - /// Get a list of game server clusters. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.game.server.cluster.list</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ApiResponse (List<GameServerCluster>) - System.Threading.Tasks.Task>> GetGameServerClustersWithHttpInfoAsync(int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); - /// - /// Get a list of game servers. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.game.server.list</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of List<GameServer> - System.Threading.Tasks.Task> GetGameServersAsync(int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); - - /// - /// Get a list of game servers. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.game.server.list</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ApiResponse (List<GameServer>) - System.Threading.Tasks.Task>> GetGameServersWithHttpInfoAsync(int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); - /// - /// Get a list of game servers from a country. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.game.server.list.country</code> - /// - /// Thrown when fails to make API call - /// - /// (optional) - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of List<GameServer> - System.Threading.Tasks.Task> GetGameServersByCountryAsync(string country, int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); - - /// - /// Get a list of game servers from a country. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.game.server.list.country</code> - /// - /// Thrown when fails to make API call - /// - /// (optional) - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ApiResponse (List<GameServer>) - System.Threading.Tasks.Task>> GetGameServersByCountryWithHttpInfoAsync(string country, int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); - /// - /// Get a list of game servers of a game. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.game.server.list</code> - /// - /// Thrown when fails to make API call - /// - /// (optional) - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of List<GameServer> - System.Threading.Tasks.Task> GetGameServersByGameIdAsync(string id, int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); - - /// - /// Get a list of game servers of a game. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.game.server.list</code> - /// - /// Thrown when fails to make API call - /// - /// (optional) - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ApiResponse (List<GameServer>) - System.Threading.Tasks.Task>> GetGameServersByGameIdWithHttpInfoAsync(string id, int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); - /// - /// Get a list of countries with the number of game servers. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.game.server.country.list</code> - /// - /// Thrown when fails to make API call - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of Dictionary<string, int> - System.Threading.Tasks.Task> GetGameServersCountriesAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); - - /// - /// Get a list of countries with the number of game servers. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.game.server.country.list</code> - /// - /// Thrown when fails to make API call - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ApiResponse (Dictionary<string, int>) - System.Threading.Tasks.Task>> GetGameServersCountriesWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); - /// - /// Get metrics about the tracked game servers. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.game.server.metric.get</code> - /// - /// Thrown when fails to make API call - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ServerMetrics - System.Threading.Tasks.Task GetGameServersMetricsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); - - /// - /// Get metrics about the tracked game servers. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.game.server.metric.get</code> - /// - /// Thrown when fails to make API call - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ApiResponse (ServerMetrics) - System.Threading.Tasks.Task> GetGameServersMetricsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); - /// - /// Get a list of games. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.game.list</code> - /// - /// Thrown when fails to make API call - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of List<Game> - System.Threading.Tasks.Task> GetGamesAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); - - /// - /// Get a list of games. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.game.list</code> - /// - /// Thrown when fails to make API call - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ApiResponse (List<Game>) - System.Threading.Tasks.Task>> GetGamesWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); - /// - /// Get a group by id. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.group.get</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of Group - System.Threading.Tasks.Task GetGroupByIdAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); - - /// - /// Get a group by id. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.group.get</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ApiResponse (Group) - System.Threading.Tasks.Task> GetGroupByIdWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); - /// - /// Get a group by tag. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.group.get.tag</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of Group - System.Threading.Tasks.Task GetGroupByTagAsync(string tag, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); - - /// - /// Get a group by tag. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.group.get.tag</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ApiResponse (Group) - System.Threading.Tasks.Task> GetGroupByTagWithHttpInfoAsync(string tag, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); - /// - /// Get a group by uuid. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.group.get.uuid</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of Group - System.Threading.Tasks.Task GetGroupByUuidAsync(Guid uuid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); - - /// - /// Get a group by uuid. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.group.get.uuid</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ApiResponse (Group) - System.Threading.Tasks.Task> GetGroupByUuidWithHttpInfoAsync(Guid uuid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); - /// - /// Get a list of games of a group. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.group.game.list</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of List<GroupGame> - System.Threading.Tasks.Task> GetGroupGamesAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); - - /// - /// Get a list of games of a group. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.group.game.list</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ApiResponse (List<GroupGame>) - System.Threading.Tasks.Task>> GetGroupGamesWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); - /// - /// Get a list of members in a group. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.group.member.list</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of List<GroupMember> - System.Threading.Tasks.Task> GetGroupMembersAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); - - /// - /// Get a list of members in a group. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.group.member.list</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ApiResponse (List<GroupMember>) - System.Threading.Tasks.Task>> GetGroupMembersWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); - /// - /// Get a list of groups. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.group.list</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of List<Group> - System.Threading.Tasks.Task> GetGroupsAsync(int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); - - /// - /// Get a list of groups. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.group.list</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ApiResponse (List<Group>) - System.Threading.Tasks.Task>> GetGroupsWithHttpInfoAsync(int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); - /// - /// Get a ip address location. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.geoip.address.get</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of IpAddress - System.Threading.Tasks.Task GetIpAddressAsync(string address, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); - - /// - /// Get a ip address location. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.geoip.address.get</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ApiResponse (IpAddress) - System.Threading.Tasks.Task> GetIpAddressWithHttpInfoAsync(string address, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); - /// - /// Get a list of ip addresses. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.geoip.address.list</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of List<IpAddress> - System.Threading.Tasks.Task> GetIpAddressesAsync(int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); - - /// - /// Get a list of ip addresses. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.geoip.address.list</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ApiResponse (List<IpAddress>) - System.Threading.Tasks.Task>> GetIpAddressesWithHttpInfoAsync(int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); - /// - /// Get the top 20 leaderboard users. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.leaderboard.get</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of List<LeaderboardItem> - System.Threading.Tasks.Task> GetLeaderboardAsync(LeaderboardOrder? order = default(LeaderboardOrder?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); - - /// - /// Get the top 20 leaderboard users. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.leaderboard.get</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ApiResponse (List<LeaderboardItem>) - System.Threading.Tasks.Task>> GetLeaderboardWithHttpInfoAsync(LeaderboardOrder? order = default(LeaderboardOrder?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); - /// - /// Get current user information. - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of UserInfo - [Obsolete] - System.Threading.Tasks.Task GetMeAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); - - /// - /// Get current user information. - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ApiResponse (UserInfo) - [Obsolete] - System.Threading.Tasks.Task> GetMeWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); - /// - /// Get a package by id. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.package.get</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of Package - System.Threading.Tasks.Task GetPackageByIdAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); - - /// - /// Get a package by id. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.package.get</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ApiResponse (Package) - System.Threading.Tasks.Task> GetPackageByIdWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); - /// - /// Get a list of packages. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.package.list</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of List<Package> - System.Threading.Tasks.Task> GetPackagesAsync(int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); - - /// - /// Get a list of packages. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.package.list</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ApiResponse (List<Package>) - System.Threading.Tasks.Task>> GetPackagesWithHttpInfoAsync(int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); - /// - /// Get the public keys for the client. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.client.keys</code> - /// - /// Thrown when fails to make API call - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of void - System.Threading.Tasks.Task GetPublicKeysAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); - - /// - /// Get the public keys for the client. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.client.keys</code> - /// - /// Thrown when fails to make API call - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ApiResponse - System.Threading.Tasks.Task> GetPublicKeysWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); - /// - /// Get a subscription by id. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.store.subscription.get</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of Subscription - System.Threading.Tasks.Task GetSubscriptionByIdAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); - - /// - /// Get a subscription by id. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.store.subscription.get</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ApiResponse (Subscription) - System.Threading.Tasks.Task> GetSubscriptionByIdWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); - /// - /// Get a list of subscriptions. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.store.subscription.list</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of List<Subscription> - System.Threading.Tasks.Task> GetSubscriptionsAsync(int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); - - /// - /// Get a list of subscriptions. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.store.subscription.list</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ApiResponse (List<Subscription>) - System.Threading.Tasks.Task>> GetSubscriptionsWithHttpInfoAsync(int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); - /// - /// Get a list of connected accounts of the user. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.identity.user.account.list</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of List<Account> - System.Threading.Tasks.Task> GetUserAccountsAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); - - /// - /// Get a list of connected accounts of the user. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.identity.user.account.list</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ApiResponse (List<Account>) - System.Threading.Tasks.Task>> GetUserAccountsWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); - /// - /// Get a user profile by id. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.get</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of Profile - System.Threading.Tasks.Task GetUserByIdAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); - - /// - /// Get a user profile by id. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.get</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ApiResponse (Profile) - System.Threading.Tasks.Task> GetUserByIdWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); - /// - /// Get a user profile by name. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.get.name</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of Profile - System.Threading.Tasks.Task GetUserByNameAsync(string name, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); - - /// - /// Get a user profile by name. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.get.name</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ApiResponse (Profile) - System.Threading.Tasks.Task> GetUserByNameWithHttpInfoAsync(string name, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); - /// - /// Get a user profile by uuid. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.get.uuid</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of Profile - System.Threading.Tasks.Task GetUserByUuidAsync(Guid uuid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); - - /// - /// Get a user profile by uuid. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.get.uuid</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ApiResponse (Profile) - System.Threading.Tasks.Task> GetUserByUuidWithHttpInfoAsync(Guid uuid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); - /// - /// Get a list of friends of the user. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.friend.list</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of List<Object> - System.Threading.Tasks.Task> GetUserFriendsAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); - - /// - /// Get a list of friends of the user. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.friend.list</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ApiResponse (List<Object>) - System.Threading.Tasks.Task>> GetUserFriendsWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); - /// - /// Get a list of games the user has played. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.game.list</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of List<ProfileGame> - System.Threading.Tasks.Task> GetUserGamesAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); - - /// - /// Get a list of games the user has played. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.game.list</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ApiResponse (List<ProfileGame>) - System.Threading.Tasks.Task>> GetUserGamesWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); - /// - /// Get a list of groups the user is a member of. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.group.list</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of List<ProfileGroup> - System.Threading.Tasks.Task> GetUserGroupsAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); - - /// - /// Get a list of groups the user is a member of. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.group.list</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ApiResponse (List<ProfileGroup>) - System.Threading.Tasks.Task>> GetUserGroupsWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); - /// - /// Get current user information. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.user.info</code> - /// - /// Thrown when fails to make API call - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of UserInfo - System.Threading.Tasks.Task GetUserInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); - - /// - /// Get current user information. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.user.info</code> - /// - /// Thrown when fails to make API call - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ApiResponse (UserInfo) - System.Threading.Tasks.Task> GetUserInfoWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); - /// - /// Get a list of punishments the user has received. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.punishment.list</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of List<Object> - System.Threading.Tasks.Task> GetUserPunishmentsAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); - - /// - /// Get a list of punishments the user has received. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.punishment.list</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ApiResponse (List<Object>) - System.Threading.Tasks.Task>> GetUserPunishmentsWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); - /// - /// Get a list of servers the user is owner of. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.game.server.list</code> - /// - /// Thrown when fails to make API call - /// - /// (optional) - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of List<GameServer> - System.Threading.Tasks.Task> GetUserServersAsync(string id, int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); - - /// - /// Get a list of servers the user is owner of. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.game.server.list</code> - /// - /// Thrown when fails to make API call - /// - /// (optional) - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ApiResponse (List<GameServer>) - System.Threading.Tasks.Task>> GetUserServersWithHttpInfoAsync(string id, int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); - /// - /// Get a list of user profiles. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.list</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of List<Profile> - System.Threading.Tasks.Task> GetUsersAsync(int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); - - /// - /// Get a list of user profiles. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.list</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ApiResponse (List<Profile>) - System.Threading.Tasks.Task>> GetUsersWithHttpInfoAsync(int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); - /// - /// Hash a string using argon2. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.utils.hash.argon2</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of HashViewModel - System.Threading.Tasks.Task HashArgon2Async(HashViewModel? hashViewModel = default(HashViewModel?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); - - /// - /// Hash a string using argon2. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.utils.hash.argon2</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ApiResponse (HashViewModel) - System.Threading.Tasks.Task> HashArgon2WithHttpInfoAsync(HashViewModel? hashViewModel = default(HashViewModel?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); - /// - /// Hash a string using bcrypt. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.utils.hash.bcrypt</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of HashViewModel - System.Threading.Tasks.Task HashBcryptAsync(HashViewModel? hashViewModel = default(HashViewModel?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); - - /// - /// Hash a string using bcrypt. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.utils.hash.bcrypt</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ApiResponse (HashViewModel) - System.Threading.Tasks.Task> HashBcryptWithHttpInfoAsync(HashViewModel? hashViewModel = default(HashViewModel?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); - /// - /// Hash a string using md5. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.utils.hash.md5</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of HashViewModel - System.Threading.Tasks.Task HashMd5Async(HashViewModel? hashViewModel = default(HashViewModel?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); - - /// - /// Hash a string using md5. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.utils.hash.md5</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ApiResponse (HashViewModel) - System.Threading.Tasks.Task> HashMd5WithHttpInfoAsync(HashViewModel? hashViewModel = default(HashViewModel?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); - /// - /// Hash a string using sha256. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.utils.hash.sha256</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of HashViewModel - System.Threading.Tasks.Task HashSha256Async(HashViewModel? hashViewModel = default(HashViewModel?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); - - /// - /// Hash a string using sha256. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.utils.hash.sha256</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ApiResponse (HashViewModel) - System.Threading.Tasks.Task> HashSha256WithHttpInfoAsync(HashViewModel? hashViewModel = default(HashViewModel?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); - /// - /// Introspect a token. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.token.introspect</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of void - System.Threading.Tasks.Task IntrospectTokenAsync(IntrospectRequest? introspectRequest = default(IntrospectRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); - - /// - /// Introspect a token. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.token.introspect</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ApiResponse - System.Threading.Tasks.Task> IntrospectTokenWithHttpInfoAsync(IntrospectRequest? introspectRequest = default(IntrospectRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); - /// - /// Login with name or email and password. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.identity.token.create</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of LoginResponse - [Obsolete] - System.Threading.Tasks.Task LoginAsync(LoginRequest? loginRequest = default(LoginRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); - - /// - /// Login with name or email and password. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.identity.token.create</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ApiResponse (LoginResponse) - [Obsolete] - System.Threading.Tasks.Task> LoginWithHttpInfoAsync(LoginRequest? loginRequest = default(LoginRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); - /// - /// Invalidate credentials. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.identity.token.revoke</code> - /// - /// Thrown when fails to make API call - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of void - [Obsolete] - System.Threading.Tasks.Task LogoutAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); - - /// - /// Invalidate credentials. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.identity.token.revoke</code> - /// - /// Thrown when fails to make API call - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ApiResponse - [Obsolete] - System.Threading.Tasks.Task> LogoutWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); - /// - /// Refresh credentials. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.identity.token.refresh</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of LoginResponse - [Obsolete] - System.Threading.Tasks.Task RefreshAsync(RefreshRequest? refreshRequest = default(RefreshRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); - - /// - /// Refresh credentials. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.identity.token.refresh</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ApiResponse (LoginResponse) - [Obsolete] - System.Threading.Tasks.Task> RefreshWithHttpInfoAsync(RefreshRequest? refreshRequest = default(RefreshRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); - /// - /// Create a new user. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.identity.user.create</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of LoginResponse - System.Threading.Tasks.Task RegisterAsync(RegisterRequest? registerRequest = default(RegisterRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); - - /// - /// Create a new user. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.identity.user.create</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ApiResponse (LoginResponse) - System.Threading.Tasks.Task> RegisterWithHttpInfoAsync(RegisterRequest? registerRequest = default(RegisterRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); - /// - /// Revoke a token. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.token.revoke</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of void - System.Threading.Tasks.Task RevokeTokenAsync(RevokeRequest? revokeRequest = default(RevokeRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); - - /// - /// Revoke a token. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.token.revoke</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ApiResponse - System.Threading.Tasks.Task> RevokeTokenWithHttpInfoAsync(RevokeRequest? revokeRequest = default(RevokeRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); - /// - /// Advanced search for servers or players. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.search</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of List<Object> - System.Threading.Tasks.Task> SearchAsync(SearchRequest? searchRequest = default(SearchRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); - - /// - /// Advanced search for servers or players. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.search</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ApiResponse (List<Object>) - System.Threading.Tasks.Task>> SearchWithHttpInfoAsync(SearchRequest? searchRequest = default(SearchRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); - /// - /// Update a game server. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.game.server.update</code> - /// - /// Thrown when fails to make API call - /// - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of void - System.Threading.Tasks.Task UpdateGameServerAsync(string id, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); - - /// - /// Update a game server. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.game.server.update</code> - /// - /// Thrown when fails to make API call - /// - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ApiResponse - System.Threading.Tasks.Task> UpdateGameServerWithHttpInfoAsync(string id, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); - /// - /// Update a game server cluster. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.game.server.cluster.update</code> - /// - /// Thrown when fails to make API call - /// - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of void - System.Threading.Tasks.Task UpdateGameServerClusterAsync(string id, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); - - /// - /// Update a game server cluster. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.game.server.cluster.update</code> - /// - /// Thrown when fails to make API call - /// - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ApiResponse - System.Threading.Tasks.Task> UpdateGameServerClusterWithHttpInfoAsync(string id, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); - /// - /// Update a group. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.group.update</code> - /// - /// Thrown when fails to make API call - /// - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of void - System.Threading.Tasks.Task UpdateGroupAsync(string id, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); - - /// - /// Update a group. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.group.update</code> - /// - /// Thrown when fails to make API call - /// - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ApiResponse - System.Threading.Tasks.Task> UpdateGroupWithHttpInfoAsync(string id, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); - /// - /// Update a user profile. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.update</code> - /// - /// Thrown when fails to make API call - /// - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of Profile - System.Threading.Tasks.Task UpdateUserProfileAsync(string id, UpdateProfile? updateProfile = default(UpdateProfile?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); - - /// - /// Update a user profile. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.update</code> - /// - /// Thrown when fails to make API call - /// - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ApiResponse (Profile) - System.Threading.Tasks.Task> UpdateUserProfileWithHttpInfoAsync(string id, UpdateProfile? updateProfile = default(UpdateProfile?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface ITribufuGeneratedApi : ITribufuGeneratedApiSync, ITribufuGeneratedApiAsync - { - - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class TribufuGeneratedApi : ITribufuGeneratedApi - { - private Tribufu.Generated.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public TribufuGeneratedApi() : this((string)null) - { - } - - /// - /// Initializes a new instance of the class. - /// - /// - public TribufuGeneratedApi(string basePath) - { - this.Configuration = Tribufu.Generated.Client.Configuration.MergeConfigurations( - Tribufu.Generated.Client.GlobalConfiguration.Instance, - new Tribufu.Generated.Client.Configuration { BasePath = basePath } - ); - this.Client = new Tribufu.Generated.Client.ApiClient(this.Configuration.BasePath); - this.AsynchronousClient = new Tribufu.Generated.Client.ApiClient(this.Configuration.BasePath); - this.ExceptionFactory = Tribufu.Generated.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public TribufuGeneratedApi(Tribufu.Generated.Client.Configuration configuration) - { - if (configuration == null) throw new ArgumentNullException("configuration"); - - this.Configuration = Tribufu.Generated.Client.Configuration.MergeConfigurations( - Tribufu.Generated.Client.GlobalConfiguration.Instance, - configuration - ); - this.Client = new Tribufu.Generated.Client.ApiClient(this.Configuration.BasePath); - this.AsynchronousClient = new Tribufu.Generated.Client.ApiClient(this.Configuration.BasePath); - ExceptionFactory = Tribufu.Generated.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using a Configuration object and client instance. - /// - /// The client interface for synchronous API access. - /// The client interface for asynchronous API access. - /// The configuration object. - public TribufuGeneratedApi(Tribufu.Generated.Client.ISynchronousClient client, Tribufu.Generated.Client.IAsynchronousClient asyncClient, Tribufu.Generated.Client.IReadableConfiguration configuration) - { - if (client == null) throw new ArgumentNullException("client"); - if (asyncClient == null) throw new ArgumentNullException("asyncClient"); - if (configuration == null) throw new ArgumentNullException("configuration"); - - this.Client = client; - this.AsynchronousClient = asyncClient; - this.Configuration = configuration; - this.ExceptionFactory = Tribufu.Generated.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// The client for accessing this underlying API asynchronously. - /// - public Tribufu.Generated.Client.IAsynchronousClient AsynchronousClient { get; set; } - - /// - /// The client for accessing this underlying API synchronously. - /// - public Tribufu.Generated.Client.ISynchronousClient Client { get; set; } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public string GetBasePath() - { - return this.Configuration.BasePath; - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public Tribufu.Generated.Client.IReadableConfiguration Configuration { get; set; } - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public Tribufu.Generated.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Authorize the client to access the user information. <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.authorize</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// Index associated with the operation. - /// - public void Authorize(AuthorizeRequest? authorizeRequest = default(AuthorizeRequest?), int operationIndex = 0) - { - AuthorizeWithHttpInfo(authorizeRequest); - } - - /// - /// Authorize the client to access the user information. <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.authorize</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// Index associated with the operation. - /// ApiResponse of Object(void) - public Tribufu.Generated.Client.ApiResponse AuthorizeWithHttpInfo(AuthorizeRequest? authorizeRequest = default(AuthorizeRequest?), int operationIndex = 0) - { - Tribufu.Generated.Client.RequestOptions localVarRequestOptions = new Tribufu.Generated.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - "application/json-patch+json", - "application/json", - "text/json", - "application/*+json" - }; - - // to determine the Accept header - string[] _accepts = new string[] { - }; - - var localVarContentType = Tribufu.Generated.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - var localVarMultipartFormData = localVarContentType == "multipart/form-data"; - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = Tribufu.Generated.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - localVarRequestOptions.Data = authorizeRequest; - - localVarRequestOptions.Operation = "TribufuGeneratedApi.Authorize"; - localVarRequestOptions.OperationIndex = operationIndex; - - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } - - // make the HTTP request - var localVarResponse = this.Client.Post("/v1/oauth2/authorize", localVarRequestOptions, this.Configuration); - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("Authorize", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - - /// - /// Authorize the client to access the user information. <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.authorize</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of void - public async System.Threading.Tasks.Task AuthorizeAsync(AuthorizeRequest? authorizeRequest = default(AuthorizeRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - await AuthorizeWithHttpInfoAsync(authorizeRequest, operationIndex, cancellationToken).ConfigureAwait(false); - } - - /// - /// Authorize the client to access the user information. <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.authorize</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ApiResponse - public async System.Threading.Tasks.Task> AuthorizeWithHttpInfoAsync(AuthorizeRequest? authorizeRequest = default(AuthorizeRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - - Tribufu.Generated.Client.RequestOptions localVarRequestOptions = new Tribufu.Generated.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - "application/json-patch+json", - "application/json", - "text/json", - "application/*+json" - }; - - // to determine the Accept header - string[] _accepts = new string[] { - }; - - var localVarContentType = Tribufu.Generated.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = Tribufu.Generated.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - localVarRequestOptions.Data = authorizeRequest; - - localVarRequestOptions.Operation = "TribufuGeneratedApi.Authorize"; - localVarRequestOptions.OperationIndex = operationIndex; - - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } - - // make the HTTP request - var localVarResponse = await this.AsynchronousClient.PostAsync("/v1/oauth2/authorize", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); - - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("Authorize", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - - /// - /// Change the email of a user. This endpoint is not available with an api key, only with a bearer token.<br/><br/><b>🔒 Required permissions:</b> <code>tribufu.identity.user.email.update</code> - /// - /// Thrown when fails to make API call - /// - /// (optional) - /// Index associated with the operation. - /// - public void ChangeEmail(string id, Object? body = default(Object?), int operationIndex = 0) - { - ChangeEmailWithHttpInfo(id, body); - } - - /// - /// Change the email of a user. This endpoint is not available with an api key, only with a bearer token.<br/><br/><b>🔒 Required permissions:</b> <code>tribufu.identity.user.email.update</code> - /// - /// Thrown when fails to make API call - /// - /// (optional) - /// Index associated with the operation. - /// ApiResponse of Object(void) - public Tribufu.Generated.Client.ApiResponse ChangeEmailWithHttpInfo(string id, Object? body = default(Object?), int operationIndex = 0) - { - // verify the required parameter 'id' is set - if (id == null) - { - throw new Tribufu.Generated.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->ChangeEmail"); - } - - Tribufu.Generated.Client.RequestOptions localVarRequestOptions = new Tribufu.Generated.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - "application/json-patch+json", - "application/json", - "text/json", - "application/*+json" - }; - - // to determine the Accept header - string[] _accepts = new string[] { - }; - - var localVarContentType = Tribufu.Generated.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - var localVarMultipartFormData = localVarContentType == "multipart/form-data"; - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = Tribufu.Generated.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - localVarRequestOptions.PathParameters.Add("id", Tribufu.Generated.Client.ClientUtils.ParameterToString(id)); // path parameter - localVarRequestOptions.Data = body; - - localVarRequestOptions.Operation = "TribufuGeneratedApi.ChangeEmail"; - localVarRequestOptions.OperationIndex = operationIndex; - - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } - - // make the HTTP request - var localVarResponse = this.Client.Put("/v1/users/{id}/email", localVarRequestOptions, this.Configuration); - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("ChangeEmail", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - - /// - /// Change the email of a user. This endpoint is not available with an api key, only with a bearer token.<br/><br/><b>🔒 Required permissions:</b> <code>tribufu.identity.user.email.update</code> - /// - /// Thrown when fails to make API call - /// - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of void - public async System.Threading.Tasks.Task ChangeEmailAsync(string id, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - await ChangeEmailWithHttpInfoAsync(id, body, operationIndex, cancellationToken).ConfigureAwait(false); - } - - /// - /// Change the email of a user. This endpoint is not available with an api key, only with a bearer token.<br/><br/><b>🔒 Required permissions:</b> <code>tribufu.identity.user.email.update</code> - /// - /// Thrown when fails to make API call - /// - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ApiResponse - public async System.Threading.Tasks.Task> ChangeEmailWithHttpInfoAsync(string id, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - // verify the required parameter 'id' is set - if (id == null) - { - throw new Tribufu.Generated.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->ChangeEmail"); - } - - - Tribufu.Generated.Client.RequestOptions localVarRequestOptions = new Tribufu.Generated.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - "application/json-patch+json", - "application/json", - "text/json", - "application/*+json" - }; - - // to determine the Accept header - string[] _accepts = new string[] { - }; - - var localVarContentType = Tribufu.Generated.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = Tribufu.Generated.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - localVarRequestOptions.PathParameters.Add("id", Tribufu.Generated.Client.ClientUtils.ParameterToString(id)); // path parameter - localVarRequestOptions.Data = body; - - localVarRequestOptions.Operation = "TribufuGeneratedApi.ChangeEmail"; - localVarRequestOptions.OperationIndex = operationIndex; - - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } - - // make the HTTP request - var localVarResponse = await this.AsynchronousClient.PutAsync("/v1/users/{id}/email", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); - - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("ChangeEmail", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - - /// - /// Change the password of a user. This endpoint is not available with an api key, only with a bearer token.<br/><br/><b>🔒 Required permissions:</b> <code>tribufu.identity.user.password.update</code> - /// - /// Thrown when fails to make API call - /// - /// (optional) - /// Index associated with the operation. - /// - public void ChangePassword(string id, Object? body = default(Object?), int operationIndex = 0) - { - ChangePasswordWithHttpInfo(id, body); - } - - /// - /// Change the password of a user. This endpoint is not available with an api key, only with a bearer token.<br/><br/><b>🔒 Required permissions:</b> <code>tribufu.identity.user.password.update</code> - /// - /// Thrown when fails to make API call - /// - /// (optional) - /// Index associated with the operation. - /// ApiResponse of Object(void) - public Tribufu.Generated.Client.ApiResponse ChangePasswordWithHttpInfo(string id, Object? body = default(Object?), int operationIndex = 0) - { - // verify the required parameter 'id' is set - if (id == null) - { - throw new Tribufu.Generated.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->ChangePassword"); - } - - Tribufu.Generated.Client.RequestOptions localVarRequestOptions = new Tribufu.Generated.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - "application/json-patch+json", - "application/json", - "text/json", - "application/*+json" - }; - - // to determine the Accept header - string[] _accepts = new string[] { - }; - - var localVarContentType = Tribufu.Generated.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - var localVarMultipartFormData = localVarContentType == "multipart/form-data"; - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = Tribufu.Generated.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - localVarRequestOptions.PathParameters.Add("id", Tribufu.Generated.Client.ClientUtils.ParameterToString(id)); // path parameter - localVarRequestOptions.Data = body; - - localVarRequestOptions.Operation = "TribufuGeneratedApi.ChangePassword"; - localVarRequestOptions.OperationIndex = operationIndex; - - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } - - // make the HTTP request - var localVarResponse = this.Client.Put("/v1/users/{id}/password", localVarRequestOptions, this.Configuration); - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("ChangePassword", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - - /// - /// Change the password of a user. This endpoint is not available with an api key, only with a bearer token.<br/><br/><b>🔒 Required permissions:</b> <code>tribufu.identity.user.password.update</code> - /// - /// Thrown when fails to make API call - /// - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of void - public async System.Threading.Tasks.Task ChangePasswordAsync(string id, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - await ChangePasswordWithHttpInfoAsync(id, body, operationIndex, cancellationToken).ConfigureAwait(false); - } - - /// - /// Change the password of a user. This endpoint is not available with an api key, only with a bearer token.<br/><br/><b>🔒 Required permissions:</b> <code>tribufu.identity.user.password.update</code> - /// - /// Thrown when fails to make API call - /// - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ApiResponse - public async System.Threading.Tasks.Task> ChangePasswordWithHttpInfoAsync(string id, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - // verify the required parameter 'id' is set - if (id == null) - { - throw new Tribufu.Generated.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->ChangePassword"); - } - - - Tribufu.Generated.Client.RequestOptions localVarRequestOptions = new Tribufu.Generated.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - "application/json-patch+json", - "application/json", - "text/json", - "application/*+json" - }; - - // to determine the Accept header - string[] _accepts = new string[] { - }; - - var localVarContentType = Tribufu.Generated.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = Tribufu.Generated.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - localVarRequestOptions.PathParameters.Add("id", Tribufu.Generated.Client.ClientUtils.ParameterToString(id)); // path parameter - localVarRequestOptions.Data = body; - - localVarRequestOptions.Operation = "TribufuGeneratedApi.ChangePassword"; - localVarRequestOptions.OperationIndex = operationIndex; - - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } - - // make the HTTP request - var localVarResponse = await this.AsynchronousClient.PutAsync("/v1/users/{id}/password", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); - - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("ChangePassword", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - - /// - /// Claim a game server. This endpoint is not available with an api key, only with a bearer token.<br/><br/><b>🔒 Required permissions:</b> <code>tribufu.community.game.server.claim</code> - /// - /// Thrown when fails to make API call - /// - /// (optional) - /// Index associated with the operation. - /// - public void ClaimGameServer(string id, Object? body = default(Object?), int operationIndex = 0) - { - ClaimGameServerWithHttpInfo(id, body); - } - - /// - /// Claim a game server. This endpoint is not available with an api key, only with a bearer token.<br/><br/><b>🔒 Required permissions:</b> <code>tribufu.community.game.server.claim</code> - /// - /// Thrown when fails to make API call - /// - /// (optional) - /// Index associated with the operation. - /// ApiResponse of Object(void) - public Tribufu.Generated.Client.ApiResponse ClaimGameServerWithHttpInfo(string id, Object? body = default(Object?), int operationIndex = 0) - { - // verify the required parameter 'id' is set - if (id == null) - { - throw new Tribufu.Generated.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->ClaimGameServer"); - } - - Tribufu.Generated.Client.RequestOptions localVarRequestOptions = new Tribufu.Generated.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - "application/json-patch+json", - "application/json", - "text/json", - "application/*+json" - }; - - // to determine the Accept header - string[] _accepts = new string[] { - }; - - var localVarContentType = Tribufu.Generated.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - var localVarMultipartFormData = localVarContentType == "multipart/form-data"; - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = Tribufu.Generated.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - localVarRequestOptions.PathParameters.Add("id", Tribufu.Generated.Client.ClientUtils.ParameterToString(id)); // path parameter - localVarRequestOptions.Data = body; - - localVarRequestOptions.Operation = "TribufuGeneratedApi.ClaimGameServer"; - localVarRequestOptions.OperationIndex = operationIndex; - - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } - - // make the HTTP request - var localVarResponse = this.Client.Put("/v1/servers/{id}/claim", localVarRequestOptions, this.Configuration); - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("ClaimGameServer", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - - /// - /// Claim a game server. This endpoint is not available with an api key, only with a bearer token.<br/><br/><b>🔒 Required permissions:</b> <code>tribufu.community.game.server.claim</code> - /// - /// Thrown when fails to make API call - /// - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of void - public async System.Threading.Tasks.Task ClaimGameServerAsync(string id, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - await ClaimGameServerWithHttpInfoAsync(id, body, operationIndex, cancellationToken).ConfigureAwait(false); - } - - /// - /// Claim a game server. This endpoint is not available with an api key, only with a bearer token.<br/><br/><b>🔒 Required permissions:</b> <code>tribufu.community.game.server.claim</code> - /// - /// Thrown when fails to make API call - /// - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ApiResponse - public async System.Threading.Tasks.Task> ClaimGameServerWithHttpInfoAsync(string id, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - // verify the required parameter 'id' is set - if (id == null) - { - throw new Tribufu.Generated.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->ClaimGameServer"); - } - - - Tribufu.Generated.Client.RequestOptions localVarRequestOptions = new Tribufu.Generated.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - "application/json-patch+json", - "application/json", - "text/json", - "application/*+json" - }; - - // to determine the Accept header - string[] _accepts = new string[] { - }; - - var localVarContentType = Tribufu.Generated.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = Tribufu.Generated.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - localVarRequestOptions.PathParameters.Add("id", Tribufu.Generated.Client.ClientUtils.ParameterToString(id)); // path parameter - localVarRequestOptions.Data = body; - - localVarRequestOptions.Operation = "TribufuGeneratedApi.ClaimGameServer"; - localVarRequestOptions.OperationIndex = operationIndex; - - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } - - // make the HTTP request - var localVarResponse = await this.AsynchronousClient.PutAsync("/v1/servers/{id}/claim", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); - - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("ClaimGameServer", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - - /// - /// Convert a string to base64 or vice versa. <b>🔒 Required permissions:</b> <code>tribufu.utils.convert.base64</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// Index associated with the operation. - /// CryptoViewModel - public CryptoViewModel ConvertBase64(CryptoViewModel? cryptoViewModel = default(CryptoViewModel?), int operationIndex = 0) - { - Tribufu.Generated.Client.ApiResponse localVarResponse = ConvertBase64WithHttpInfo(cryptoViewModel); - return localVarResponse.Data; - } - - /// - /// Convert a string to base64 or vice versa. <b>🔒 Required permissions:</b> <code>tribufu.utils.convert.base64</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// Index associated with the operation. - /// ApiResponse of CryptoViewModel - public Tribufu.Generated.Client.ApiResponse ConvertBase64WithHttpInfo(CryptoViewModel? cryptoViewModel = default(CryptoViewModel?), int operationIndex = 0) - { - Tribufu.Generated.Client.RequestOptions localVarRequestOptions = new Tribufu.Generated.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - "application/json-patch+json", - "application/json", - "text/json", - "application/*+json" - }; - - // to determine the Accept header - string[] _accepts = new string[] { - "text/plain", - "application/json", - "text/json" - }; - - var localVarContentType = Tribufu.Generated.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - var localVarMultipartFormData = localVarContentType == "multipart/form-data"; - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = Tribufu.Generated.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - localVarRequestOptions.Data = cryptoViewModel; - - localVarRequestOptions.Operation = "TribufuGeneratedApi.ConvertBase64"; - localVarRequestOptions.OperationIndex = operationIndex; - - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } - - // make the HTTP request - var localVarResponse = this.Client.Post("/v1/utils/base64", localVarRequestOptions, this.Configuration); - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("ConvertBase64", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - - /// - /// Convert a string to base64 or vice versa. <b>🔒 Required permissions:</b> <code>tribufu.utils.convert.base64</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of CryptoViewModel - public async System.Threading.Tasks.Task ConvertBase64Async(CryptoViewModel? cryptoViewModel = default(CryptoViewModel?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - Tribufu.Generated.Client.ApiResponse localVarResponse = await ConvertBase64WithHttpInfoAsync(cryptoViewModel, operationIndex, cancellationToken).ConfigureAwait(false); - return localVarResponse.Data; - } - - /// - /// Convert a string to base64 or vice versa. <b>🔒 Required permissions:</b> <code>tribufu.utils.convert.base64</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ApiResponse (CryptoViewModel) - public async System.Threading.Tasks.Task> ConvertBase64WithHttpInfoAsync(CryptoViewModel? cryptoViewModel = default(CryptoViewModel?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - - Tribufu.Generated.Client.RequestOptions localVarRequestOptions = new Tribufu.Generated.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - "application/json-patch+json", - "application/json", - "text/json", - "application/*+json" - }; - - // to determine the Accept header - string[] _accepts = new string[] { - "text/plain", - "application/json", - "text/json" - }; - - var localVarContentType = Tribufu.Generated.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = Tribufu.Generated.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - localVarRequestOptions.Data = cryptoViewModel; - - localVarRequestOptions.Operation = "TribufuGeneratedApi.ConvertBase64"; - localVarRequestOptions.OperationIndex = operationIndex; - - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } - - // make the HTTP request - var localVarResponse = await this.AsynchronousClient.PostAsync("/v1/utils/base64", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); - - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("ConvertBase64", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - - /// - /// Create a new game server. <b>🔒 Required permissions:</b> <code>tribufu.community.game.server.create</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// Index associated with the operation. - /// - public void CreateGameServer(Object? body = default(Object?), int operationIndex = 0) - { - CreateGameServerWithHttpInfo(body); - } - - /// - /// Create a new game server. <b>🔒 Required permissions:</b> <code>tribufu.community.game.server.create</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// Index associated with the operation. - /// ApiResponse of Object(void) - public Tribufu.Generated.Client.ApiResponse CreateGameServerWithHttpInfo(Object? body = default(Object?), int operationIndex = 0) - { - Tribufu.Generated.Client.RequestOptions localVarRequestOptions = new Tribufu.Generated.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - "application/json-patch+json", - "application/json", - "text/json", - "application/*+json" - }; - - // to determine the Accept header - string[] _accepts = new string[] { - }; - - var localVarContentType = Tribufu.Generated.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - var localVarMultipartFormData = localVarContentType == "multipart/form-data"; - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = Tribufu.Generated.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - localVarRequestOptions.Data = body; - - localVarRequestOptions.Operation = "TribufuGeneratedApi.CreateGameServer"; - localVarRequestOptions.OperationIndex = operationIndex; - - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } - - // make the HTTP request - var localVarResponse = this.Client.Post("/v1/servers", localVarRequestOptions, this.Configuration); - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("CreateGameServer", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - - /// - /// Create a new game server. <b>🔒 Required permissions:</b> <code>tribufu.community.game.server.create</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of void - public async System.Threading.Tasks.Task CreateGameServerAsync(Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - await CreateGameServerWithHttpInfoAsync(body, operationIndex, cancellationToken).ConfigureAwait(false); - } - - /// - /// Create a new game server. <b>🔒 Required permissions:</b> <code>tribufu.community.game.server.create</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ApiResponse - public async System.Threading.Tasks.Task> CreateGameServerWithHttpInfoAsync(Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - - Tribufu.Generated.Client.RequestOptions localVarRequestOptions = new Tribufu.Generated.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - "application/json-patch+json", - "application/json", - "text/json", - "application/*+json" - }; - - // to determine the Accept header - string[] _accepts = new string[] { - }; - - var localVarContentType = Tribufu.Generated.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = Tribufu.Generated.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - localVarRequestOptions.Data = body; - - localVarRequestOptions.Operation = "TribufuGeneratedApi.CreateGameServer"; - localVarRequestOptions.OperationIndex = operationIndex; - - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } - - // make the HTTP request - var localVarResponse = await this.AsynchronousClient.PostAsync("/v1/servers", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); - - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("CreateGameServer", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - - /// - /// Create a new game server cluster. <b>🔒 Required permissions:</b> <code>tribufu.community.game.server.cluster.create</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// Index associated with the operation. - /// - public void CreateGameServerCluster(Object? body = default(Object?), int operationIndex = 0) - { - CreateGameServerClusterWithHttpInfo(body); - } - - /// - /// Create a new game server cluster. <b>🔒 Required permissions:</b> <code>tribufu.community.game.server.cluster.create</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// Index associated with the operation. - /// ApiResponse of Object(void) - public Tribufu.Generated.Client.ApiResponse CreateGameServerClusterWithHttpInfo(Object? body = default(Object?), int operationIndex = 0) - { - Tribufu.Generated.Client.RequestOptions localVarRequestOptions = new Tribufu.Generated.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - "application/json-patch+json", - "application/json", - "text/json", - "application/*+json" - }; - - // to determine the Accept header - string[] _accepts = new string[] { - }; - - var localVarContentType = Tribufu.Generated.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - var localVarMultipartFormData = localVarContentType == "multipart/form-data"; - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = Tribufu.Generated.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - localVarRequestOptions.Data = body; - - localVarRequestOptions.Operation = "TribufuGeneratedApi.CreateGameServerCluster"; - localVarRequestOptions.OperationIndex = operationIndex; - - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } - - // make the HTTP request - var localVarResponse = this.Client.Post("/v1/clusters", localVarRequestOptions, this.Configuration); - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("CreateGameServerCluster", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - - /// - /// Create a new game server cluster. <b>🔒 Required permissions:</b> <code>tribufu.community.game.server.cluster.create</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of void - public async System.Threading.Tasks.Task CreateGameServerClusterAsync(Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - await CreateGameServerClusterWithHttpInfoAsync(body, operationIndex, cancellationToken).ConfigureAwait(false); - } - - /// - /// Create a new game server cluster. <b>🔒 Required permissions:</b> <code>tribufu.community.game.server.cluster.create</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ApiResponse - public async System.Threading.Tasks.Task> CreateGameServerClusterWithHttpInfoAsync(Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - - Tribufu.Generated.Client.RequestOptions localVarRequestOptions = new Tribufu.Generated.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - "application/json-patch+json", - "application/json", - "text/json", - "application/*+json" - }; - - // to determine the Accept header - string[] _accepts = new string[] { - }; - - var localVarContentType = Tribufu.Generated.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = Tribufu.Generated.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - localVarRequestOptions.Data = body; - - localVarRequestOptions.Operation = "TribufuGeneratedApi.CreateGameServerCluster"; - localVarRequestOptions.OperationIndex = operationIndex; - - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } - - // make the HTTP request - var localVarResponse = await this.AsynchronousClient.PostAsync("/v1/clusters", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); - - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("CreateGameServerCluster", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - - /// - /// Create a new group. <b>🔒 Required permissions:</b> <code>tribufu.community.group.create</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// Index associated with the operation. - /// - public void CreateGroup(Object? body = default(Object?), int operationIndex = 0) - { - CreateGroupWithHttpInfo(body); - } - - /// - /// Create a new group. <b>🔒 Required permissions:</b> <code>tribufu.community.group.create</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// Index associated with the operation. - /// ApiResponse of Object(void) - public Tribufu.Generated.Client.ApiResponse CreateGroupWithHttpInfo(Object? body = default(Object?), int operationIndex = 0) - { - Tribufu.Generated.Client.RequestOptions localVarRequestOptions = new Tribufu.Generated.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - "application/json-patch+json", - "application/json", - "text/json", - "application/*+json" - }; - - // to determine the Accept header - string[] _accepts = new string[] { - }; - - var localVarContentType = Tribufu.Generated.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - var localVarMultipartFormData = localVarContentType == "multipart/form-data"; - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = Tribufu.Generated.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - localVarRequestOptions.Data = body; - - localVarRequestOptions.Operation = "TribufuGeneratedApi.CreateGroup"; - localVarRequestOptions.OperationIndex = operationIndex; - - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } - - // make the HTTP request - var localVarResponse = this.Client.Post("/v1/groups", localVarRequestOptions, this.Configuration); - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("CreateGroup", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - - /// - /// Create a new group. <b>🔒 Required permissions:</b> <code>tribufu.community.group.create</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of void - public async System.Threading.Tasks.Task CreateGroupAsync(Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - await CreateGroupWithHttpInfoAsync(body, operationIndex, cancellationToken).ConfigureAwait(false); - } - - /// - /// Create a new group. <b>🔒 Required permissions:</b> <code>tribufu.community.group.create</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ApiResponse - public async System.Threading.Tasks.Task> CreateGroupWithHttpInfoAsync(Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - - Tribufu.Generated.Client.RequestOptions localVarRequestOptions = new Tribufu.Generated.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - "application/json-patch+json", - "application/json", - "text/json", - "application/*+json" - }; - - // to determine the Accept header - string[] _accepts = new string[] { - }; - - var localVarContentType = Tribufu.Generated.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = Tribufu.Generated.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - localVarRequestOptions.Data = body; - - localVarRequestOptions.Operation = "TribufuGeneratedApi.CreateGroup"; - localVarRequestOptions.OperationIndex = operationIndex; - - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } - - // make the HTTP request - var localVarResponse = await this.AsynchronousClient.PostAsync("/v1/groups", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); - - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("CreateGroup", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - - /// - /// Create a new token with grant type. - /// - /// Thrown when fails to make API call - /// (optional) - /// Index associated with the operation. - /// TokenResponse - public TokenResponse CreateToken(TokenRequest? tokenRequest = default(TokenRequest?), int operationIndex = 0) - { - Tribufu.Generated.Client.ApiResponse localVarResponse = CreateTokenWithHttpInfo(tokenRequest); - return localVarResponse.Data; - } - - /// - /// Create a new token with grant type. - /// - /// Thrown when fails to make API call - /// (optional) - /// Index associated with the operation. - /// ApiResponse of TokenResponse - public Tribufu.Generated.Client.ApiResponse CreateTokenWithHttpInfo(TokenRequest? tokenRequest = default(TokenRequest?), int operationIndex = 0) - { - Tribufu.Generated.Client.RequestOptions localVarRequestOptions = new Tribufu.Generated.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - "application/json", - "application/x-www-form-urlencoded" - }; - - // to determine the Accept header - string[] _accepts = new string[] { - "text/plain", - "application/json", - "text/json" - }; - - var localVarContentType = Tribufu.Generated.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - var localVarMultipartFormData = localVarContentType == "multipart/form-data"; - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = Tribufu.Generated.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - localVarRequestOptions.Data = tokenRequest; - - localVarRequestOptions.Operation = "TribufuGeneratedApi.CreateToken"; - localVarRequestOptions.OperationIndex = operationIndex; - - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } - - // make the HTTP request - var localVarResponse = this.Client.Post("/v1/oauth2/token", localVarRequestOptions, this.Configuration); - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("CreateToken", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - - /// - /// Create a new token with grant type. - /// - /// Thrown when fails to make API call - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of TokenResponse - public async System.Threading.Tasks.Task CreateTokenAsync(TokenRequest? tokenRequest = default(TokenRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - Tribufu.Generated.Client.ApiResponse localVarResponse = await CreateTokenWithHttpInfoAsync(tokenRequest, operationIndex, cancellationToken).ConfigureAwait(false); - return localVarResponse.Data; - } - - /// - /// Create a new token with grant type. - /// - /// Thrown when fails to make API call - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ApiResponse (TokenResponse) - public async System.Threading.Tasks.Task> CreateTokenWithHttpInfoAsync(TokenRequest? tokenRequest = default(TokenRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - - Tribufu.Generated.Client.RequestOptions localVarRequestOptions = new Tribufu.Generated.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - "application/json", - "application/x-www-form-urlencoded" - }; - - // to determine the Accept header - string[] _accepts = new string[] { - "text/plain", - "application/json", - "text/json" - }; - - var localVarContentType = Tribufu.Generated.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = Tribufu.Generated.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - localVarRequestOptions.Data = tokenRequest; - - localVarRequestOptions.Operation = "TribufuGeneratedApi.CreateToken"; - localVarRequestOptions.OperationIndex = operationIndex; - - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } - - // make the HTTP request - var localVarResponse = await this.AsynchronousClient.PostAsync("/v1/oauth2/token", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); - - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("CreateToken", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - - /// - /// Delete a game server. <b>🔒 Required permissions:</b> <code>tribufu.community.game.server.delete</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// - public void DeleteGameServer(string id, int operationIndex = 0) - { - DeleteGameServerWithHttpInfo(id); - } - - /// - /// Delete a game server. <b>🔒 Required permissions:</b> <code>tribufu.community.game.server.delete</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// ApiResponse of Object(void) - public Tribufu.Generated.Client.ApiResponse DeleteGameServerWithHttpInfo(string id, int operationIndex = 0) - { - // verify the required parameter 'id' is set - if (id == null) - { - throw new Tribufu.Generated.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->DeleteGameServer"); - } - - Tribufu.Generated.Client.RequestOptions localVarRequestOptions = new Tribufu.Generated.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - }; - - // to determine the Accept header - string[] _accepts = new string[] { - }; - - var localVarContentType = Tribufu.Generated.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - var localVarMultipartFormData = localVarContentType == "multipart/form-data"; - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = Tribufu.Generated.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - localVarRequestOptions.PathParameters.Add("id", Tribufu.Generated.Client.ClientUtils.ParameterToString(id)); // path parameter - - localVarRequestOptions.Operation = "TribufuGeneratedApi.DeleteGameServer"; - localVarRequestOptions.OperationIndex = operationIndex; - - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } - - // make the HTTP request - var localVarResponse = this.Client.Delete("/v1/servers/{id}", localVarRequestOptions, this.Configuration); - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("DeleteGameServer", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - - /// - /// Delete a game server. <b>🔒 Required permissions:</b> <code>tribufu.community.game.server.delete</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of void - public async System.Threading.Tasks.Task DeleteGameServerAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - await DeleteGameServerWithHttpInfoAsync(id, operationIndex, cancellationToken).ConfigureAwait(false); - } - - /// - /// Delete a game server. <b>🔒 Required permissions:</b> <code>tribufu.community.game.server.delete</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ApiResponse - public async System.Threading.Tasks.Task> DeleteGameServerWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - // verify the required parameter 'id' is set - if (id == null) - { - throw new Tribufu.Generated.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->DeleteGameServer"); - } - - - Tribufu.Generated.Client.RequestOptions localVarRequestOptions = new Tribufu.Generated.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - }; - - // to determine the Accept header - string[] _accepts = new string[] { - }; - - var localVarContentType = Tribufu.Generated.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = Tribufu.Generated.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - localVarRequestOptions.PathParameters.Add("id", Tribufu.Generated.Client.ClientUtils.ParameterToString(id)); // path parameter - - localVarRequestOptions.Operation = "TribufuGeneratedApi.DeleteGameServer"; - localVarRequestOptions.OperationIndex = operationIndex; - - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } - - // make the HTTP request - var localVarResponse = await this.AsynchronousClient.DeleteAsync("/v1/servers/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); - - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("DeleteGameServer", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - - /// - /// Delete a game server cluster. <b>🔒 Required permissions:</b> <code>tribufu.community.game.server.cluster.delete</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// - public void DeleteGameServerCluster(string id, int operationIndex = 0) - { - DeleteGameServerClusterWithHttpInfo(id); - } - - /// - /// Delete a game server cluster. <b>🔒 Required permissions:</b> <code>tribufu.community.game.server.cluster.delete</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// ApiResponse of Object(void) - public Tribufu.Generated.Client.ApiResponse DeleteGameServerClusterWithHttpInfo(string id, int operationIndex = 0) - { - // verify the required parameter 'id' is set - if (id == null) - { - throw new Tribufu.Generated.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->DeleteGameServerCluster"); - } - - Tribufu.Generated.Client.RequestOptions localVarRequestOptions = new Tribufu.Generated.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - }; - - // to determine the Accept header - string[] _accepts = new string[] { - }; - - var localVarContentType = Tribufu.Generated.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - var localVarMultipartFormData = localVarContentType == "multipart/form-data"; - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = Tribufu.Generated.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - localVarRequestOptions.PathParameters.Add("id", Tribufu.Generated.Client.ClientUtils.ParameterToString(id)); // path parameter - - localVarRequestOptions.Operation = "TribufuGeneratedApi.DeleteGameServerCluster"; - localVarRequestOptions.OperationIndex = operationIndex; - - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } - - // make the HTTP request - var localVarResponse = this.Client.Delete("/v1/clusters/{id}", localVarRequestOptions, this.Configuration); - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("DeleteGameServerCluster", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - - /// - /// Delete a game server cluster. <b>🔒 Required permissions:</b> <code>tribufu.community.game.server.cluster.delete</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of void - public async System.Threading.Tasks.Task DeleteGameServerClusterAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - await DeleteGameServerClusterWithHttpInfoAsync(id, operationIndex, cancellationToken).ConfigureAwait(false); - } - - /// - /// Delete a game server cluster. <b>🔒 Required permissions:</b> <code>tribufu.community.game.server.cluster.delete</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ApiResponse - public async System.Threading.Tasks.Task> DeleteGameServerClusterWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - // verify the required parameter 'id' is set - if (id == null) - { - throw new Tribufu.Generated.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->DeleteGameServerCluster"); - } - - - Tribufu.Generated.Client.RequestOptions localVarRequestOptions = new Tribufu.Generated.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - }; - - // to determine the Accept header - string[] _accepts = new string[] { - }; - - var localVarContentType = Tribufu.Generated.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = Tribufu.Generated.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - localVarRequestOptions.PathParameters.Add("id", Tribufu.Generated.Client.ClientUtils.ParameterToString(id)); // path parameter - - localVarRequestOptions.Operation = "TribufuGeneratedApi.DeleteGameServerCluster"; - localVarRequestOptions.OperationIndex = operationIndex; - - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } - - // make the HTTP request - var localVarResponse = await this.AsynchronousClient.DeleteAsync("/v1/clusters/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); - - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("DeleteGameServerCluster", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - - /// - /// Delete a group. <b>🔒 Required permissions:</b> <code>tribufu.community.group.delete</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// - public void DeleteGroup(string id, int operationIndex = 0) - { - DeleteGroupWithHttpInfo(id); - } - - /// - /// Delete a group. <b>🔒 Required permissions:</b> <code>tribufu.community.group.delete</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// ApiResponse of Object(void) - public Tribufu.Generated.Client.ApiResponse DeleteGroupWithHttpInfo(string id, int operationIndex = 0) - { - // verify the required parameter 'id' is set - if (id == null) - { - throw new Tribufu.Generated.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->DeleteGroup"); - } - - Tribufu.Generated.Client.RequestOptions localVarRequestOptions = new Tribufu.Generated.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - }; - - // to determine the Accept header - string[] _accepts = new string[] { - }; - - var localVarContentType = Tribufu.Generated.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - var localVarMultipartFormData = localVarContentType == "multipart/form-data"; - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = Tribufu.Generated.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - localVarRequestOptions.PathParameters.Add("id", Tribufu.Generated.Client.ClientUtils.ParameterToString(id)); // path parameter - - localVarRequestOptions.Operation = "TribufuGeneratedApi.DeleteGroup"; - localVarRequestOptions.OperationIndex = operationIndex; - - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } - - // make the HTTP request - var localVarResponse = this.Client.Delete("/v1/groups/{id}", localVarRequestOptions, this.Configuration); - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("DeleteGroup", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - - /// - /// Delete a group. <b>🔒 Required permissions:</b> <code>tribufu.community.group.delete</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of void - public async System.Threading.Tasks.Task DeleteGroupAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - await DeleteGroupWithHttpInfoAsync(id, operationIndex, cancellationToken).ConfigureAwait(false); - } - - /// - /// Delete a group. <b>🔒 Required permissions:</b> <code>tribufu.community.group.delete</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ApiResponse - public async System.Threading.Tasks.Task> DeleteGroupWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - // verify the required parameter 'id' is set - if (id == null) - { - throw new Tribufu.Generated.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->DeleteGroup"); - } - - - Tribufu.Generated.Client.RequestOptions localVarRequestOptions = new Tribufu.Generated.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - }; - - // to determine the Accept header - string[] _accepts = new string[] { - }; - - var localVarContentType = Tribufu.Generated.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = Tribufu.Generated.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - localVarRequestOptions.PathParameters.Add("id", Tribufu.Generated.Client.ClientUtils.ParameterToString(id)); // path parameter - - localVarRequestOptions.Operation = "TribufuGeneratedApi.DeleteGroup"; - localVarRequestOptions.OperationIndex = operationIndex; - - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } - - // make the HTTP request - var localVarResponse = await this.AsynchronousClient.DeleteAsync("/v1/groups/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); - - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("DeleteGroup", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - - /// - /// Generate one or more flake ids. <b>🔒 Required permissions:</b> <code>tribufu.utils.generate.flake</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// Index associated with the operation. - /// List<string> - public List GenerateFlakeId(int? amount = default(int?), int operationIndex = 0) - { - Tribufu.Generated.Client.ApiResponse> localVarResponse = GenerateFlakeIdWithHttpInfo(amount); - return localVarResponse.Data; - } - - /// - /// Generate one or more flake ids. <b>🔒 Required permissions:</b> <code>tribufu.utils.generate.flake</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// Index associated with the operation. - /// ApiResponse of List<string> - public Tribufu.Generated.Client.ApiResponse> GenerateFlakeIdWithHttpInfo(int? amount = default(int?), int operationIndex = 0) - { - Tribufu.Generated.Client.RequestOptions localVarRequestOptions = new Tribufu.Generated.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - }; - - // to determine the Accept header - string[] _accepts = new string[] { - "text/plain", - "application/json", - "text/json" - }; - - var localVarContentType = Tribufu.Generated.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - var localVarMultipartFormData = localVarContentType == "multipart/form-data"; - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = Tribufu.Generated.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - if (amount != null) - { - localVarRequestOptions.QueryParameters.Add(Tribufu.Generated.Client.ClientUtils.ParameterToMultiMap("", "amount", amount)); - } - - localVarRequestOptions.Operation = "TribufuGeneratedApi.GenerateFlakeId"; - localVarRequestOptions.OperationIndex = operationIndex; - - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } - - // make the HTTP request - var localVarResponse = this.Client.Get>("/v1/utils/flake", localVarRequestOptions, this.Configuration); - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("GenerateFlakeId", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - - /// - /// Generate one or more flake ids. <b>🔒 Required permissions:</b> <code>tribufu.utils.generate.flake</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of List<string> - public async System.Threading.Tasks.Task> GenerateFlakeIdAsync(int? amount = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - Tribufu.Generated.Client.ApiResponse> localVarResponse = await GenerateFlakeIdWithHttpInfoAsync(amount, operationIndex, cancellationToken).ConfigureAwait(false); - return localVarResponse.Data; - } - - /// - /// Generate one or more flake ids. <b>🔒 Required permissions:</b> <code>tribufu.utils.generate.flake</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ApiResponse (List<string>) - public async System.Threading.Tasks.Task>> GenerateFlakeIdWithHttpInfoAsync(int? amount = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - - Tribufu.Generated.Client.RequestOptions localVarRequestOptions = new Tribufu.Generated.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - }; - - // to determine the Accept header - string[] _accepts = new string[] { - "text/plain", - "application/json", - "text/json" - }; - - var localVarContentType = Tribufu.Generated.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = Tribufu.Generated.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - if (amount != null) - { - localVarRequestOptions.QueryParameters.Add(Tribufu.Generated.Client.ClientUtils.ParameterToMultiMap("", "amount", amount)); - } - - localVarRequestOptions.Operation = "TribufuGeneratedApi.GenerateFlakeId"; - localVarRequestOptions.OperationIndex = operationIndex; - - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } - - // make the HTTP request - var localVarResponse = await this.AsynchronousClient.GetAsync>("/v1/utils/flake", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); - - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("GenerateFlakeId", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - - /// - /// Generate one or more flake ids from a timestamp. <b>🔒 Required permissions:</b> <code>tribufu.utils.generate.flake.timestamp</code> - /// - /// Thrown when fails to make API call - /// - /// (optional) - /// Index associated with the operation. - /// List<string> - public List GenerateFlakeIdFromTimestamp(string timestamp, int? amount = default(int?), int operationIndex = 0) - { - Tribufu.Generated.Client.ApiResponse> localVarResponse = GenerateFlakeIdFromTimestampWithHttpInfo(timestamp, amount); - return localVarResponse.Data; - } - - /// - /// Generate one or more flake ids from a timestamp. <b>🔒 Required permissions:</b> <code>tribufu.utils.generate.flake.timestamp</code> - /// - /// Thrown when fails to make API call - /// - /// (optional) - /// Index associated with the operation. - /// ApiResponse of List<string> - public Tribufu.Generated.Client.ApiResponse> GenerateFlakeIdFromTimestampWithHttpInfo(string timestamp, int? amount = default(int?), int operationIndex = 0) - { - // verify the required parameter 'timestamp' is set - if (timestamp == null) - { - throw new Tribufu.Generated.Client.ApiException(400, "Missing required parameter 'timestamp' when calling TribufuGeneratedApi->GenerateFlakeIdFromTimestamp"); - } - - Tribufu.Generated.Client.RequestOptions localVarRequestOptions = new Tribufu.Generated.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - }; - - // to determine the Accept header - string[] _accepts = new string[] { - "text/plain", - "application/json", - "text/json" - }; - - var localVarContentType = Tribufu.Generated.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - var localVarMultipartFormData = localVarContentType == "multipart/form-data"; - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = Tribufu.Generated.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - localVarRequestOptions.PathParameters.Add("timestamp", Tribufu.Generated.Client.ClientUtils.ParameterToString(timestamp)); // path parameter - if (amount != null) - { - localVarRequestOptions.QueryParameters.Add(Tribufu.Generated.Client.ClientUtils.ParameterToMultiMap("", "amount", amount)); - } - - localVarRequestOptions.Operation = "TribufuGeneratedApi.GenerateFlakeIdFromTimestamp"; - localVarRequestOptions.OperationIndex = operationIndex; - - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } - - // make the HTTP request - var localVarResponse = this.Client.Get>("/v1/utils/flake/{timestamp}", localVarRequestOptions, this.Configuration); - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("GenerateFlakeIdFromTimestamp", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - - /// - /// Generate one or more flake ids from a timestamp. <b>🔒 Required permissions:</b> <code>tribufu.utils.generate.flake.timestamp</code> - /// - /// Thrown when fails to make API call - /// - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of List<string> - public async System.Threading.Tasks.Task> GenerateFlakeIdFromTimestampAsync(string timestamp, int? amount = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - Tribufu.Generated.Client.ApiResponse> localVarResponse = await GenerateFlakeIdFromTimestampWithHttpInfoAsync(timestamp, amount, operationIndex, cancellationToken).ConfigureAwait(false); - return localVarResponse.Data; - } - - /// - /// Generate one or more flake ids from a timestamp. <b>🔒 Required permissions:</b> <code>tribufu.utils.generate.flake.timestamp</code> - /// - /// Thrown when fails to make API call - /// - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ApiResponse (List<string>) - public async System.Threading.Tasks.Task>> GenerateFlakeIdFromTimestampWithHttpInfoAsync(string timestamp, int? amount = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - // verify the required parameter 'timestamp' is set - if (timestamp == null) - { - throw new Tribufu.Generated.Client.ApiException(400, "Missing required parameter 'timestamp' when calling TribufuGeneratedApi->GenerateFlakeIdFromTimestamp"); - } - - - Tribufu.Generated.Client.RequestOptions localVarRequestOptions = new Tribufu.Generated.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - }; - - // to determine the Accept header - string[] _accepts = new string[] { - "text/plain", - "application/json", - "text/json" - }; - - var localVarContentType = Tribufu.Generated.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = Tribufu.Generated.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - localVarRequestOptions.PathParameters.Add("timestamp", Tribufu.Generated.Client.ClientUtils.ParameterToString(timestamp)); // path parameter - if (amount != null) - { - localVarRequestOptions.QueryParameters.Add(Tribufu.Generated.Client.ClientUtils.ParameterToMultiMap("", "amount", amount)); - } - - localVarRequestOptions.Operation = "TribufuGeneratedApi.GenerateFlakeIdFromTimestamp"; - localVarRequestOptions.OperationIndex = operationIndex; - - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } - - // make the HTTP request - var localVarResponse = await this.AsynchronousClient.GetAsync>("/v1/utils/flake/{timestamp}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); - - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("GenerateFlakeIdFromTimestamp", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - - /// - /// Generate a random password. <b>🔒 Required permissions:</b> <code>tribufu.utils.generate.password</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// (optional) - /// Index associated with the operation. - /// HashViewModel - public HashViewModel GeneratePassword(int? length = default(int?), bool? symbols = default(bool?), int operationIndex = 0) - { - Tribufu.Generated.Client.ApiResponse localVarResponse = GeneratePasswordWithHttpInfo(length, symbols); - return localVarResponse.Data; - } - - /// - /// Generate a random password. <b>🔒 Required permissions:</b> <code>tribufu.utils.generate.password</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// (optional) - /// Index associated with the operation. - /// ApiResponse of HashViewModel - public Tribufu.Generated.Client.ApiResponse GeneratePasswordWithHttpInfo(int? length = default(int?), bool? symbols = default(bool?), int operationIndex = 0) - { - Tribufu.Generated.Client.RequestOptions localVarRequestOptions = new Tribufu.Generated.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - }; - - // to determine the Accept header - string[] _accepts = new string[] { - "text/plain", - "application/json", - "text/json" - }; - - var localVarContentType = Tribufu.Generated.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - var localVarMultipartFormData = localVarContentType == "multipart/form-data"; - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = Tribufu.Generated.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - if (length != null) - { - localVarRequestOptions.QueryParameters.Add(Tribufu.Generated.Client.ClientUtils.ParameterToMultiMap("", "length", length)); - } - if (symbols != null) - { - localVarRequestOptions.QueryParameters.Add(Tribufu.Generated.Client.ClientUtils.ParameterToMultiMap("", "symbols", symbols)); - } - - localVarRequestOptions.Operation = "TribufuGeneratedApi.GeneratePassword"; - localVarRequestOptions.OperationIndex = operationIndex; - - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } - - // make the HTTP request - var localVarResponse = this.Client.Get("/v1/utils/password", localVarRequestOptions, this.Configuration); - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("GeneratePassword", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - - /// - /// Generate a random password. <b>🔒 Required permissions:</b> <code>tribufu.utils.generate.password</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of HashViewModel - public async System.Threading.Tasks.Task GeneratePasswordAsync(int? length = default(int?), bool? symbols = default(bool?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - Tribufu.Generated.Client.ApiResponse localVarResponse = await GeneratePasswordWithHttpInfoAsync(length, symbols, operationIndex, cancellationToken).ConfigureAwait(false); - return localVarResponse.Data; - } - - /// - /// Generate a random password. <b>🔒 Required permissions:</b> <code>tribufu.utils.generate.password</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ApiResponse (HashViewModel) - public async System.Threading.Tasks.Task> GeneratePasswordWithHttpInfoAsync(int? length = default(int?), bool? symbols = default(bool?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - - Tribufu.Generated.Client.RequestOptions localVarRequestOptions = new Tribufu.Generated.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - }; - - // to determine the Accept header - string[] _accepts = new string[] { - "text/plain", - "application/json", - "text/json" - }; - - var localVarContentType = Tribufu.Generated.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = Tribufu.Generated.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - if (length != null) - { - localVarRequestOptions.QueryParameters.Add(Tribufu.Generated.Client.ClientUtils.ParameterToMultiMap("", "length", length)); - } - if (symbols != null) - { - localVarRequestOptions.QueryParameters.Add(Tribufu.Generated.Client.ClientUtils.ParameterToMultiMap("", "symbols", symbols)); - } - - localVarRequestOptions.Operation = "TribufuGeneratedApi.GeneratePassword"; - localVarRequestOptions.OperationIndex = operationIndex; - - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } - - // make the HTTP request - var localVarResponse = await this.AsynchronousClient.GetAsync("/v1/utils/password", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); - - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("GeneratePassword", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - - /// - /// Generate one or more uuids with a specific version. <b>🔒 Required permissions:</b> <code>tribufu.utils.generate.uuid</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// (optional) - /// Index associated with the operation. - /// List<Guid> - public List GenerateUuid(int? version = default(int?), int? amount = default(int?), int operationIndex = 0) - { - Tribufu.Generated.Client.ApiResponse> localVarResponse = GenerateUuidWithHttpInfo(version, amount); - return localVarResponse.Data; - } - - /// - /// Generate one or more uuids with a specific version. <b>🔒 Required permissions:</b> <code>tribufu.utils.generate.uuid</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// (optional) - /// Index associated with the operation. - /// ApiResponse of List<Guid> - public Tribufu.Generated.Client.ApiResponse> GenerateUuidWithHttpInfo(int? version = default(int?), int? amount = default(int?), int operationIndex = 0) - { - Tribufu.Generated.Client.RequestOptions localVarRequestOptions = new Tribufu.Generated.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - }; - - // to determine the Accept header - string[] _accepts = new string[] { - "text/plain", - "application/json", - "text/json" - }; - - var localVarContentType = Tribufu.Generated.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - var localVarMultipartFormData = localVarContentType == "multipart/form-data"; - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = Tribufu.Generated.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - if (version != null) - { - localVarRequestOptions.QueryParameters.Add(Tribufu.Generated.Client.ClientUtils.ParameterToMultiMap("", "version", version)); - } - if (amount != null) - { - localVarRequestOptions.QueryParameters.Add(Tribufu.Generated.Client.ClientUtils.ParameterToMultiMap("", "amount", amount)); - } - - localVarRequestOptions.Operation = "TribufuGeneratedApi.GenerateUuid"; - localVarRequestOptions.OperationIndex = operationIndex; - - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } - - // make the HTTP request - var localVarResponse = this.Client.Get>("/v1/utils/uuid", localVarRequestOptions, this.Configuration); - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("GenerateUuid", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - - /// - /// Generate one or more uuids with a specific version. <b>🔒 Required permissions:</b> <code>tribufu.utils.generate.uuid</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of List<Guid> - public async System.Threading.Tasks.Task> GenerateUuidAsync(int? version = default(int?), int? amount = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - Tribufu.Generated.Client.ApiResponse> localVarResponse = await GenerateUuidWithHttpInfoAsync(version, amount, operationIndex, cancellationToken).ConfigureAwait(false); - return localVarResponse.Data; - } - - /// - /// Generate one or more uuids with a specific version. <b>🔒 Required permissions:</b> <code>tribufu.utils.generate.uuid</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ApiResponse (List<Guid>) - public async System.Threading.Tasks.Task>> GenerateUuidWithHttpInfoAsync(int? version = default(int?), int? amount = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - - Tribufu.Generated.Client.RequestOptions localVarRequestOptions = new Tribufu.Generated.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - }; - - // to determine the Accept header - string[] _accepts = new string[] { - "text/plain", - "application/json", - "text/json" - }; - - var localVarContentType = Tribufu.Generated.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = Tribufu.Generated.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - if (version != null) - { - localVarRequestOptions.QueryParameters.Add(Tribufu.Generated.Client.ClientUtils.ParameterToMultiMap("", "version", version)); - } - if (amount != null) - { - localVarRequestOptions.QueryParameters.Add(Tribufu.Generated.Client.ClientUtils.ParameterToMultiMap("", "amount", amount)); - } - - localVarRequestOptions.Operation = "TribufuGeneratedApi.GenerateUuid"; - localVarRequestOptions.OperationIndex = operationIndex; - - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } - - // make the HTTP request - var localVarResponse = await this.AsynchronousClient.GetAsync>("/v1/utils/uuid", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); - - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("GenerateUuid", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - - /// - /// Get current client information. - /// - /// Thrown when fails to make API call - /// Index associated with the operation. - /// - public void GetClientInfo(int operationIndex = 0) - { - GetClientInfoWithHttpInfo(); - } - - /// - /// Get current client information. - /// - /// Thrown when fails to make API call - /// Index associated with the operation. - /// ApiResponse of Object(void) - public Tribufu.Generated.Client.ApiResponse GetClientInfoWithHttpInfo(int operationIndex = 0) - { - Tribufu.Generated.Client.RequestOptions localVarRequestOptions = new Tribufu.Generated.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - }; - - // to determine the Accept header - string[] _accepts = new string[] { - }; - - var localVarContentType = Tribufu.Generated.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - var localVarMultipartFormData = localVarContentType == "multipart/form-data"; - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = Tribufu.Generated.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - - localVarRequestOptions.Operation = "TribufuGeneratedApi.GetClientInfo"; - localVarRequestOptions.OperationIndex = operationIndex; - - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } - - // make the HTTP request - var localVarResponse = this.Client.Get("/v1/oauth2/clientinfo", localVarRequestOptions, this.Configuration); - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("GetClientInfo", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - - /// - /// Get current client information. - /// - /// Thrown when fails to make API call - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of void - public async System.Threading.Tasks.Task GetClientInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - await GetClientInfoWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); - } - - /// - /// Get current client information. - /// - /// Thrown when fails to make API call - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ApiResponse - public async System.Threading.Tasks.Task> GetClientInfoWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - - Tribufu.Generated.Client.RequestOptions localVarRequestOptions = new Tribufu.Generated.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - }; - - // to determine the Accept header - string[] _accepts = new string[] { - }; - - var localVarContentType = Tribufu.Generated.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = Tribufu.Generated.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - - localVarRequestOptions.Operation = "TribufuGeneratedApi.GetClientInfo"; - localVarRequestOptions.OperationIndex = operationIndex; - - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } - - // make the HTTP request - var localVarResponse = await this.AsynchronousClient.GetAsync("/v1/oauth2/clientinfo", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); - - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("GetClientInfo", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - - /// - /// Get current ip address location. <b>🔒 Required permissions:</b> <code>tribufu.geoip.current</code> - /// - /// Thrown when fails to make API call - /// Index associated with the operation. - /// List<IpAddress> - public List GetCurrentIpAddress(int operationIndex = 0) - { - Tribufu.Generated.Client.ApiResponse> localVarResponse = GetCurrentIpAddressWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// Get current ip address location. <b>🔒 Required permissions:</b> <code>tribufu.geoip.current</code> - /// - /// Thrown when fails to make API call - /// Index associated with the operation. - /// ApiResponse of List<IpAddress> - public Tribufu.Generated.Client.ApiResponse> GetCurrentIpAddressWithHttpInfo(int operationIndex = 0) - { - Tribufu.Generated.Client.RequestOptions localVarRequestOptions = new Tribufu.Generated.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - }; - - // to determine the Accept header - string[] _accepts = new string[] { - "text/plain", - "application/json", - "text/json" - }; - - var localVarContentType = Tribufu.Generated.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - var localVarMultipartFormData = localVarContentType == "multipart/form-data"; - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = Tribufu.Generated.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - - localVarRequestOptions.Operation = "TribufuGeneratedApi.GetCurrentIpAddress"; - localVarRequestOptions.OperationIndex = operationIndex; - - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } - - // make the HTTP request - var localVarResponse = this.Client.Get>("/v1/geoip", localVarRequestOptions, this.Configuration); - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("GetCurrentIpAddress", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - - /// - /// Get current ip address location. <b>🔒 Required permissions:</b> <code>tribufu.geoip.current</code> - /// - /// Thrown when fails to make API call - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of List<IpAddress> - public async System.Threading.Tasks.Task> GetCurrentIpAddressAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - Tribufu.Generated.Client.ApiResponse> localVarResponse = await GetCurrentIpAddressWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); - return localVarResponse.Data; - } - - /// - /// Get current ip address location. <b>🔒 Required permissions:</b> <code>tribufu.geoip.current</code> - /// - /// Thrown when fails to make API call - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ApiResponse (List<IpAddress>) - public async System.Threading.Tasks.Task>> GetCurrentIpAddressWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - - Tribufu.Generated.Client.RequestOptions localVarRequestOptions = new Tribufu.Generated.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - }; - - // to determine the Accept header - string[] _accepts = new string[] { - "text/plain", - "application/json", - "text/json" - }; - - var localVarContentType = Tribufu.Generated.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = Tribufu.Generated.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - - localVarRequestOptions.Operation = "TribufuGeneratedApi.GetCurrentIpAddress"; - localVarRequestOptions.OperationIndex = operationIndex; - - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } - - // make the HTTP request - var localVarResponse = await this.AsynchronousClient.GetAsync>("/v1/geoip", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); - - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("GetCurrentIpAddress", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - - /// - /// Get a game by id. <b>🔒 Required permissions:</b> <code>tribufu.community.game.get</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// Game - public Game GetGameById(string id, int operationIndex = 0) - { - Tribufu.Generated.Client.ApiResponse localVarResponse = GetGameByIdWithHttpInfo(id); - return localVarResponse.Data; - } - - /// - /// Get a game by id. <b>🔒 Required permissions:</b> <code>tribufu.community.game.get</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// ApiResponse of Game - public Tribufu.Generated.Client.ApiResponse GetGameByIdWithHttpInfo(string id, int operationIndex = 0) - { - // verify the required parameter 'id' is set - if (id == null) - { - throw new Tribufu.Generated.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->GetGameById"); - } - - Tribufu.Generated.Client.RequestOptions localVarRequestOptions = new Tribufu.Generated.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - }; - - // to determine the Accept header - string[] _accepts = new string[] { - "text/plain", - "application/json", - "text/json" - }; - - var localVarContentType = Tribufu.Generated.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - var localVarMultipartFormData = localVarContentType == "multipart/form-data"; - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = Tribufu.Generated.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - localVarRequestOptions.PathParameters.Add("id", Tribufu.Generated.Client.ClientUtils.ParameterToString(id)); // path parameter - - localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGameById"; - localVarRequestOptions.OperationIndex = operationIndex; - - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } - - // make the HTTP request - var localVarResponse = this.Client.Get("/v1/games/{id}", localVarRequestOptions, this.Configuration); - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("GetGameById", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - - /// - /// Get a game by id. <b>🔒 Required permissions:</b> <code>tribufu.community.game.get</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of Game - public async System.Threading.Tasks.Task GetGameByIdAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - Tribufu.Generated.Client.ApiResponse localVarResponse = await GetGameByIdWithHttpInfoAsync(id, operationIndex, cancellationToken).ConfigureAwait(false); - return localVarResponse.Data; - } - - /// - /// Get a game by id. <b>🔒 Required permissions:</b> <code>tribufu.community.game.get</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ApiResponse (Game) - public async System.Threading.Tasks.Task> GetGameByIdWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - // verify the required parameter 'id' is set - if (id == null) - { - throw new Tribufu.Generated.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->GetGameById"); - } - - - Tribufu.Generated.Client.RequestOptions localVarRequestOptions = new Tribufu.Generated.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - }; - - // to determine the Accept header - string[] _accepts = new string[] { - "text/plain", - "application/json", - "text/json" - }; - - var localVarContentType = Tribufu.Generated.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = Tribufu.Generated.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - localVarRequestOptions.PathParameters.Add("id", Tribufu.Generated.Client.ClientUtils.ParameterToString(id)); // path parameter - - localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGameById"; - localVarRequestOptions.OperationIndex = operationIndex; - - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } - - // make the HTTP request - var localVarResponse = await this.AsynchronousClient.GetAsync("/v1/games/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); - - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("GetGameById", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - - /// - /// Get a list of game server clusters of a game. <b>🔒 Required permissions:</b> <code>tribufu.community.game.server.cluster.list</code> - /// - /// Thrown when fails to make API call - /// - /// (optional) - /// (optional) - /// Index associated with the operation. - /// List<GameServerCluster> - public List GetGameClustersByGameId(string id, int? page = default(int?), int? limit = default(int?), int operationIndex = 0) - { - Tribufu.Generated.Client.ApiResponse> localVarResponse = GetGameClustersByGameIdWithHttpInfo(id, page, limit); - return localVarResponse.Data; - } - - /// - /// Get a list of game server clusters of a game. <b>🔒 Required permissions:</b> <code>tribufu.community.game.server.cluster.list</code> - /// - /// Thrown when fails to make API call - /// - /// (optional) - /// (optional) - /// Index associated with the operation. - /// ApiResponse of List<GameServerCluster> - public Tribufu.Generated.Client.ApiResponse> GetGameClustersByGameIdWithHttpInfo(string id, int? page = default(int?), int? limit = default(int?), int operationIndex = 0) - { - // verify the required parameter 'id' is set - if (id == null) - { - throw new Tribufu.Generated.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->GetGameClustersByGameId"); - } - - Tribufu.Generated.Client.RequestOptions localVarRequestOptions = new Tribufu.Generated.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - }; - - // to determine the Accept header - string[] _accepts = new string[] { - "text/plain", - "application/json", - "text/json" - }; - - var localVarContentType = Tribufu.Generated.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - var localVarMultipartFormData = localVarContentType == "multipart/form-data"; - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = Tribufu.Generated.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - localVarRequestOptions.PathParameters.Add("id", Tribufu.Generated.Client.ClientUtils.ParameterToString(id)); // path parameter - if (page != null) - { - localVarRequestOptions.QueryParameters.Add(Tribufu.Generated.Client.ClientUtils.ParameterToMultiMap("", "page", page)); - } - if (limit != null) - { - localVarRequestOptions.QueryParameters.Add(Tribufu.Generated.Client.ClientUtils.ParameterToMultiMap("", "limit", limit)); - } - - localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGameClustersByGameId"; - localVarRequestOptions.OperationIndex = operationIndex; - - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } - - // make the HTTP request - var localVarResponse = this.Client.Get>("/v1/games/{id}/clusters", localVarRequestOptions, this.Configuration); - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("GetGameClustersByGameId", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - - /// - /// Get a list of game server clusters of a game. <b>🔒 Required permissions:</b> <code>tribufu.community.game.server.cluster.list</code> - /// - /// Thrown when fails to make API call - /// - /// (optional) - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of List<GameServerCluster> - public async System.Threading.Tasks.Task> GetGameClustersByGameIdAsync(string id, int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - Tribufu.Generated.Client.ApiResponse> localVarResponse = await GetGameClustersByGameIdWithHttpInfoAsync(id, page, limit, operationIndex, cancellationToken).ConfigureAwait(false); - return localVarResponse.Data; - } - - /// - /// Get a list of game server clusters of a game. <b>🔒 Required permissions:</b> <code>tribufu.community.game.server.cluster.list</code> - /// - /// Thrown when fails to make API call - /// - /// (optional) - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ApiResponse (List<GameServerCluster>) - public async System.Threading.Tasks.Task>> GetGameClustersByGameIdWithHttpInfoAsync(string id, int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - // verify the required parameter 'id' is set - if (id == null) - { - throw new Tribufu.Generated.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->GetGameClustersByGameId"); - } - - - Tribufu.Generated.Client.RequestOptions localVarRequestOptions = new Tribufu.Generated.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - }; - - // to determine the Accept header - string[] _accepts = new string[] { - "text/plain", - "application/json", - "text/json" - }; - - var localVarContentType = Tribufu.Generated.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = Tribufu.Generated.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - localVarRequestOptions.PathParameters.Add("id", Tribufu.Generated.Client.ClientUtils.ParameterToString(id)); // path parameter - if (page != null) - { - localVarRequestOptions.QueryParameters.Add(Tribufu.Generated.Client.ClientUtils.ParameterToMultiMap("", "page", page)); - } - if (limit != null) - { - localVarRequestOptions.QueryParameters.Add(Tribufu.Generated.Client.ClientUtils.ParameterToMultiMap("", "limit", limit)); - } - - localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGameClustersByGameId"; - localVarRequestOptions.OperationIndex = operationIndex; - - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } - - // make the HTTP request - var localVarResponse = await this.AsynchronousClient.GetAsync>("/v1/games/{id}/clusters", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); - - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("GetGameClustersByGameId", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - - /// - /// Get a list of game items. <b>🔒 Required permissions:</b> <code>tribufu.community.game.item.list</code> - /// - /// Thrown when fails to make API call - /// - /// (optional) - /// (optional) - /// Index associated with the operation. - /// List<Object> - public List GetGameItems(string id, int? page = default(int?), int? limit = default(int?), int operationIndex = 0) - { - Tribufu.Generated.Client.ApiResponse> localVarResponse = GetGameItemsWithHttpInfo(id, page, limit); - return localVarResponse.Data; - } - - /// - /// Get a list of game items. <b>🔒 Required permissions:</b> <code>tribufu.community.game.item.list</code> - /// - /// Thrown when fails to make API call - /// - /// (optional) - /// (optional) - /// Index associated with the operation. - /// ApiResponse of List<Object> - public Tribufu.Generated.Client.ApiResponse> GetGameItemsWithHttpInfo(string id, int? page = default(int?), int? limit = default(int?), int operationIndex = 0) - { - // verify the required parameter 'id' is set - if (id == null) - { - throw new Tribufu.Generated.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->GetGameItems"); - } - - Tribufu.Generated.Client.RequestOptions localVarRequestOptions = new Tribufu.Generated.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - }; - - // to determine the Accept header - string[] _accepts = new string[] { - "text/plain", - "application/json", - "text/json" - }; - - var localVarContentType = Tribufu.Generated.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - var localVarMultipartFormData = localVarContentType == "multipart/form-data"; - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = Tribufu.Generated.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - localVarRequestOptions.PathParameters.Add("id", Tribufu.Generated.Client.ClientUtils.ParameterToString(id)); // path parameter - if (page != null) - { - localVarRequestOptions.QueryParameters.Add(Tribufu.Generated.Client.ClientUtils.ParameterToMultiMap("", "page", page)); - } - if (limit != null) - { - localVarRequestOptions.QueryParameters.Add(Tribufu.Generated.Client.ClientUtils.ParameterToMultiMap("", "limit", limit)); - } - - localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGameItems"; - localVarRequestOptions.OperationIndex = operationIndex; - - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } - - // make the HTTP request - var localVarResponse = this.Client.Get>("/v1/games/{id}/items", localVarRequestOptions, this.Configuration); - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("GetGameItems", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - - /// - /// Get a list of game items. <b>🔒 Required permissions:</b> <code>tribufu.community.game.item.list</code> - /// - /// Thrown when fails to make API call - /// - /// (optional) - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of List<Object> - public async System.Threading.Tasks.Task> GetGameItemsAsync(string id, int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - Tribufu.Generated.Client.ApiResponse> localVarResponse = await GetGameItemsWithHttpInfoAsync(id, page, limit, operationIndex, cancellationToken).ConfigureAwait(false); - return localVarResponse.Data; - } - - /// - /// Get a list of game items. <b>🔒 Required permissions:</b> <code>tribufu.community.game.item.list</code> - /// - /// Thrown when fails to make API call - /// - /// (optional) - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ApiResponse (List<Object>) - public async System.Threading.Tasks.Task>> GetGameItemsWithHttpInfoAsync(string id, int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - // verify the required parameter 'id' is set - if (id == null) - { - throw new Tribufu.Generated.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->GetGameItems"); - } - - - Tribufu.Generated.Client.RequestOptions localVarRequestOptions = new Tribufu.Generated.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - }; - - // to determine the Accept header - string[] _accepts = new string[] { - "text/plain", - "application/json", - "text/json" - }; - - var localVarContentType = Tribufu.Generated.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = Tribufu.Generated.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - localVarRequestOptions.PathParameters.Add("id", Tribufu.Generated.Client.ClientUtils.ParameterToString(id)); // path parameter - if (page != null) - { - localVarRequestOptions.QueryParameters.Add(Tribufu.Generated.Client.ClientUtils.ParameterToMultiMap("", "page", page)); - } - if (limit != null) - { - localVarRequestOptions.QueryParameters.Add(Tribufu.Generated.Client.ClientUtils.ParameterToMultiMap("", "limit", limit)); - } - - localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGameItems"; - localVarRequestOptions.OperationIndex = operationIndex; - - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } - - // make the HTTP request - var localVarResponse = await this.AsynchronousClient.GetAsync>("/v1/games/{id}/items", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); - - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("GetGameItems", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - - /// - /// Get a game server by address and query port. <b>🔒 Required permissions:</b> <code>tribufu.community.game.server.get.address</code> - /// - /// Thrown when fails to make API call - /// - /// - /// Index associated with the operation. - /// GameServer - public GameServer GetGameServerByAddressAndQueryPort(string address, int port, int operationIndex = 0) - { - Tribufu.Generated.Client.ApiResponse localVarResponse = GetGameServerByAddressAndQueryPortWithHttpInfo(address, port); - return localVarResponse.Data; - } - - /// - /// Get a game server by address and query port. <b>🔒 Required permissions:</b> <code>tribufu.community.game.server.get.address</code> - /// - /// Thrown when fails to make API call - /// - /// - /// Index associated with the operation. - /// ApiResponse of GameServer - public Tribufu.Generated.Client.ApiResponse GetGameServerByAddressAndQueryPortWithHttpInfo(string address, int port, int operationIndex = 0) - { - // verify the required parameter 'address' is set - if (address == null) - { - throw new Tribufu.Generated.Client.ApiException(400, "Missing required parameter 'address' when calling TribufuGeneratedApi->GetGameServerByAddressAndQueryPort"); - } - - Tribufu.Generated.Client.RequestOptions localVarRequestOptions = new Tribufu.Generated.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - }; - - // to determine the Accept header - string[] _accepts = new string[] { - "text/plain", - "application/json", - "text/json" - }; - - var localVarContentType = Tribufu.Generated.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - var localVarMultipartFormData = localVarContentType == "multipart/form-data"; - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = Tribufu.Generated.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - localVarRequestOptions.PathParameters.Add("address", Tribufu.Generated.Client.ClientUtils.ParameterToString(address)); // path parameter - localVarRequestOptions.PathParameters.Add("port", Tribufu.Generated.Client.ClientUtils.ParameterToString(port)); // path parameter - - localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGameServerByAddressAndQueryPort"; - localVarRequestOptions.OperationIndex = operationIndex; - - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } - - // make the HTTP request - var localVarResponse = this.Client.Get("/v1/servers/address/{address}:{port}", localVarRequestOptions, this.Configuration); - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("GetGameServerByAddressAndQueryPort", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - - /// - /// Get a game server by address and query port. <b>🔒 Required permissions:</b> <code>tribufu.community.game.server.get.address</code> - /// - /// Thrown when fails to make API call - /// - /// - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of GameServer - public async System.Threading.Tasks.Task GetGameServerByAddressAndQueryPortAsync(string address, int port, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - Tribufu.Generated.Client.ApiResponse localVarResponse = await GetGameServerByAddressAndQueryPortWithHttpInfoAsync(address, port, operationIndex, cancellationToken).ConfigureAwait(false); - return localVarResponse.Data; - } - - /// - /// Get a game server by address and query port. <b>🔒 Required permissions:</b> <code>tribufu.community.game.server.get.address</code> - /// - /// Thrown when fails to make API call - /// - /// - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ApiResponse (GameServer) - public async System.Threading.Tasks.Task> GetGameServerByAddressAndQueryPortWithHttpInfoAsync(string address, int port, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - // verify the required parameter 'address' is set - if (address == null) - { - throw new Tribufu.Generated.Client.ApiException(400, "Missing required parameter 'address' when calling TribufuGeneratedApi->GetGameServerByAddressAndQueryPort"); - } - - - Tribufu.Generated.Client.RequestOptions localVarRequestOptions = new Tribufu.Generated.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - }; - - // to determine the Accept header - string[] _accepts = new string[] { - "text/plain", - "application/json", - "text/json" - }; - - var localVarContentType = Tribufu.Generated.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = Tribufu.Generated.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - localVarRequestOptions.PathParameters.Add("address", Tribufu.Generated.Client.ClientUtils.ParameterToString(address)); // path parameter - localVarRequestOptions.PathParameters.Add("port", Tribufu.Generated.Client.ClientUtils.ParameterToString(port)); // path parameter - - localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGameServerByAddressAndQueryPort"; - localVarRequestOptions.OperationIndex = operationIndex; - - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } - - // make the HTTP request - var localVarResponse = await this.AsynchronousClient.GetAsync("/v1/servers/address/{address}:{port}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); - - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("GetGameServerByAddressAndQueryPort", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - - /// - /// Get a game server by id. <b>🔒 Required permissions:</b> <code>tribufu.community.game.server.get</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// GameServer - public GameServer GetGameServerById(string id, int operationIndex = 0) - { - Tribufu.Generated.Client.ApiResponse localVarResponse = GetGameServerByIdWithHttpInfo(id); - return localVarResponse.Data; - } - - /// - /// Get a game server by id. <b>🔒 Required permissions:</b> <code>tribufu.community.game.server.get</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// ApiResponse of GameServer - public Tribufu.Generated.Client.ApiResponse GetGameServerByIdWithHttpInfo(string id, int operationIndex = 0) - { - // verify the required parameter 'id' is set - if (id == null) - { - throw new Tribufu.Generated.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->GetGameServerById"); - } - - Tribufu.Generated.Client.RequestOptions localVarRequestOptions = new Tribufu.Generated.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - }; - - // to determine the Accept header - string[] _accepts = new string[] { - "text/plain", - "application/json", - "text/json" - }; - - var localVarContentType = Tribufu.Generated.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - var localVarMultipartFormData = localVarContentType == "multipart/form-data"; - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = Tribufu.Generated.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - localVarRequestOptions.PathParameters.Add("id", Tribufu.Generated.Client.ClientUtils.ParameterToString(id)); // path parameter - - localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGameServerById"; - localVarRequestOptions.OperationIndex = operationIndex; - - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } - - // make the HTTP request - var localVarResponse = this.Client.Get("/v1/servers/{id}", localVarRequestOptions, this.Configuration); - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("GetGameServerById", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - - /// - /// Get a game server by id. <b>🔒 Required permissions:</b> <code>tribufu.community.game.server.get</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of GameServer - public async System.Threading.Tasks.Task GetGameServerByIdAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - Tribufu.Generated.Client.ApiResponse localVarResponse = await GetGameServerByIdWithHttpInfoAsync(id, operationIndex, cancellationToken).ConfigureAwait(false); - return localVarResponse.Data; - } - - /// - /// Get a game server by id. <b>🔒 Required permissions:</b> <code>tribufu.community.game.server.get</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ApiResponse (GameServer) - public async System.Threading.Tasks.Task> GetGameServerByIdWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - // verify the required parameter 'id' is set - if (id == null) - { - throw new Tribufu.Generated.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->GetGameServerById"); - } - - - Tribufu.Generated.Client.RequestOptions localVarRequestOptions = new Tribufu.Generated.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - }; - - // to determine the Accept header - string[] _accepts = new string[] { - "text/plain", - "application/json", - "text/json" - }; - - var localVarContentType = Tribufu.Generated.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = Tribufu.Generated.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - localVarRequestOptions.PathParameters.Add("id", Tribufu.Generated.Client.ClientUtils.ParameterToString(id)); // path parameter - - localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGameServerById"; - localVarRequestOptions.OperationIndex = operationIndex; - - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } - - // make the HTTP request - var localVarResponse = await this.AsynchronousClient.GetAsync("/v1/servers/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); - - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("GetGameServerById", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - - /// - /// Get a game server cluster by id. <b>🔒 Required permissions:</b> <code>tribufu.community.game.server.cluster.get</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// GameServerCluster - public GameServerCluster GetGameServerClusterById(string id, int operationIndex = 0) - { - Tribufu.Generated.Client.ApiResponse localVarResponse = GetGameServerClusterByIdWithHttpInfo(id); - return localVarResponse.Data; - } - - /// - /// Get a game server cluster by id. <b>🔒 Required permissions:</b> <code>tribufu.community.game.server.cluster.get</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// ApiResponse of GameServerCluster - public Tribufu.Generated.Client.ApiResponse GetGameServerClusterByIdWithHttpInfo(string id, int operationIndex = 0) - { - // verify the required parameter 'id' is set - if (id == null) - { - throw new Tribufu.Generated.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->GetGameServerClusterById"); - } - - Tribufu.Generated.Client.RequestOptions localVarRequestOptions = new Tribufu.Generated.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - }; - - // to determine the Accept header - string[] _accepts = new string[] { - "text/plain", - "application/json", - "text/json" - }; - - var localVarContentType = Tribufu.Generated.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - var localVarMultipartFormData = localVarContentType == "multipart/form-data"; - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = Tribufu.Generated.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - localVarRequestOptions.PathParameters.Add("id", Tribufu.Generated.Client.ClientUtils.ParameterToString(id)); // path parameter - - localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGameServerClusterById"; - localVarRequestOptions.OperationIndex = operationIndex; - - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } - - // make the HTTP request - var localVarResponse = this.Client.Get("/v1/clusters/{id}", localVarRequestOptions, this.Configuration); - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("GetGameServerClusterById", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - - /// - /// Get a game server cluster by id. <b>🔒 Required permissions:</b> <code>tribufu.community.game.server.cluster.get</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of GameServerCluster - public async System.Threading.Tasks.Task GetGameServerClusterByIdAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - Tribufu.Generated.Client.ApiResponse localVarResponse = await GetGameServerClusterByIdWithHttpInfoAsync(id, operationIndex, cancellationToken).ConfigureAwait(false); - return localVarResponse.Data; - } - - /// - /// Get a game server cluster by id. <b>🔒 Required permissions:</b> <code>tribufu.community.game.server.cluster.get</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ApiResponse (GameServerCluster) - public async System.Threading.Tasks.Task> GetGameServerClusterByIdWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - // verify the required parameter 'id' is set - if (id == null) - { - throw new Tribufu.Generated.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->GetGameServerClusterById"); - } - - - Tribufu.Generated.Client.RequestOptions localVarRequestOptions = new Tribufu.Generated.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - }; - - // to determine the Accept header - string[] _accepts = new string[] { - "text/plain", - "application/json", - "text/json" - }; - - var localVarContentType = Tribufu.Generated.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = Tribufu.Generated.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - localVarRequestOptions.PathParameters.Add("id", Tribufu.Generated.Client.ClientUtils.ParameterToString(id)); // path parameter - - localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGameServerClusterById"; - localVarRequestOptions.OperationIndex = operationIndex; - - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } - - // make the HTTP request - var localVarResponse = await this.AsynchronousClient.GetAsync("/v1/clusters/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); - - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("GetGameServerClusterById", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - - /// - /// Get a list of game server clusters. <b>🔒 Required permissions:</b> <code>tribufu.community.game.server.cluster.list</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// (optional) - /// Index associated with the operation. - /// List<GameServerCluster> - public List GetGameServerClusters(int? page = default(int?), int? limit = default(int?), int operationIndex = 0) - { - Tribufu.Generated.Client.ApiResponse> localVarResponse = GetGameServerClustersWithHttpInfo(page, limit); - return localVarResponse.Data; - } - - /// - /// Get a list of game server clusters. <b>🔒 Required permissions:</b> <code>tribufu.community.game.server.cluster.list</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// (optional) - /// Index associated with the operation. - /// ApiResponse of List<GameServerCluster> - public Tribufu.Generated.Client.ApiResponse> GetGameServerClustersWithHttpInfo(int? page = default(int?), int? limit = default(int?), int operationIndex = 0) - { - Tribufu.Generated.Client.RequestOptions localVarRequestOptions = new Tribufu.Generated.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - }; - - // to determine the Accept header - string[] _accepts = new string[] { - "text/plain", - "application/json", - "text/json" - }; - - var localVarContentType = Tribufu.Generated.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - var localVarMultipartFormData = localVarContentType == "multipart/form-data"; - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = Tribufu.Generated.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - if (page != null) - { - localVarRequestOptions.QueryParameters.Add(Tribufu.Generated.Client.ClientUtils.ParameterToMultiMap("", "page", page)); - } - if (limit != null) - { - localVarRequestOptions.QueryParameters.Add(Tribufu.Generated.Client.ClientUtils.ParameterToMultiMap("", "limit", limit)); - } - - localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGameServerClusters"; - localVarRequestOptions.OperationIndex = operationIndex; - - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } - - // make the HTTP request - var localVarResponse = this.Client.Get>("/v1/clusters", localVarRequestOptions, this.Configuration); - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("GetGameServerClusters", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - - /// - /// Get a list of game server clusters. <b>🔒 Required permissions:</b> <code>tribufu.community.game.server.cluster.list</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of List<GameServerCluster> - public async System.Threading.Tasks.Task> GetGameServerClustersAsync(int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - Tribufu.Generated.Client.ApiResponse> localVarResponse = await GetGameServerClustersWithHttpInfoAsync(page, limit, operationIndex, cancellationToken).ConfigureAwait(false); - return localVarResponse.Data; - } - - /// - /// Get a list of game server clusters. <b>🔒 Required permissions:</b> <code>tribufu.community.game.server.cluster.list</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ApiResponse (List<GameServerCluster>) - public async System.Threading.Tasks.Task>> GetGameServerClustersWithHttpInfoAsync(int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - - Tribufu.Generated.Client.RequestOptions localVarRequestOptions = new Tribufu.Generated.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - }; - - // to determine the Accept header - string[] _accepts = new string[] { - "text/plain", - "application/json", - "text/json" - }; - - var localVarContentType = Tribufu.Generated.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = Tribufu.Generated.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - if (page != null) - { - localVarRequestOptions.QueryParameters.Add(Tribufu.Generated.Client.ClientUtils.ParameterToMultiMap("", "page", page)); - } - if (limit != null) - { - localVarRequestOptions.QueryParameters.Add(Tribufu.Generated.Client.ClientUtils.ParameterToMultiMap("", "limit", limit)); - } - - localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGameServerClusters"; - localVarRequestOptions.OperationIndex = operationIndex; - - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } - - // make the HTTP request - var localVarResponse = await this.AsynchronousClient.GetAsync>("/v1/clusters", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); - - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("GetGameServerClusters", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - - /// - /// Get a list of game servers. <b>🔒 Required permissions:</b> <code>tribufu.community.game.server.list</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// (optional) - /// Index associated with the operation. - /// List<GameServer> - public List GetGameServers(int? page = default(int?), int? limit = default(int?), int operationIndex = 0) - { - Tribufu.Generated.Client.ApiResponse> localVarResponse = GetGameServersWithHttpInfo(page, limit); - return localVarResponse.Data; - } - - /// - /// Get a list of game servers. <b>🔒 Required permissions:</b> <code>tribufu.community.game.server.list</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// (optional) - /// Index associated with the operation. - /// ApiResponse of List<GameServer> - public Tribufu.Generated.Client.ApiResponse> GetGameServersWithHttpInfo(int? page = default(int?), int? limit = default(int?), int operationIndex = 0) - { - Tribufu.Generated.Client.RequestOptions localVarRequestOptions = new Tribufu.Generated.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - }; - - // to determine the Accept header - string[] _accepts = new string[] { - "text/plain", - "application/json", - "text/json" - }; - - var localVarContentType = Tribufu.Generated.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - var localVarMultipartFormData = localVarContentType == "multipart/form-data"; - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = Tribufu.Generated.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - if (page != null) - { - localVarRequestOptions.QueryParameters.Add(Tribufu.Generated.Client.ClientUtils.ParameterToMultiMap("", "page", page)); - } - if (limit != null) - { - localVarRequestOptions.QueryParameters.Add(Tribufu.Generated.Client.ClientUtils.ParameterToMultiMap("", "limit", limit)); - } - - localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGameServers"; - localVarRequestOptions.OperationIndex = operationIndex; - - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } - - // make the HTTP request - var localVarResponse = this.Client.Get>("/v1/servers", localVarRequestOptions, this.Configuration); - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("GetGameServers", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - - /// - /// Get a list of game servers. <b>🔒 Required permissions:</b> <code>tribufu.community.game.server.list</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of List<GameServer> - public async System.Threading.Tasks.Task> GetGameServersAsync(int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - Tribufu.Generated.Client.ApiResponse> localVarResponse = await GetGameServersWithHttpInfoAsync(page, limit, operationIndex, cancellationToken).ConfigureAwait(false); - return localVarResponse.Data; - } - - /// - /// Get a list of game servers. <b>🔒 Required permissions:</b> <code>tribufu.community.game.server.list</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ApiResponse (List<GameServer>) - public async System.Threading.Tasks.Task>> GetGameServersWithHttpInfoAsync(int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - - Tribufu.Generated.Client.RequestOptions localVarRequestOptions = new Tribufu.Generated.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - }; - - // to determine the Accept header - string[] _accepts = new string[] { - "text/plain", - "application/json", - "text/json" - }; - - var localVarContentType = Tribufu.Generated.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = Tribufu.Generated.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - if (page != null) - { - localVarRequestOptions.QueryParameters.Add(Tribufu.Generated.Client.ClientUtils.ParameterToMultiMap("", "page", page)); - } - if (limit != null) - { - localVarRequestOptions.QueryParameters.Add(Tribufu.Generated.Client.ClientUtils.ParameterToMultiMap("", "limit", limit)); - } - - localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGameServers"; - localVarRequestOptions.OperationIndex = operationIndex; - - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } - - // make the HTTP request - var localVarResponse = await this.AsynchronousClient.GetAsync>("/v1/servers", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); - - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("GetGameServers", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - - /// - /// Get a list of game servers from a country. <b>🔒 Required permissions:</b> <code>tribufu.community.game.server.list.country</code> - /// - /// Thrown when fails to make API call - /// - /// (optional) - /// (optional) - /// Index associated with the operation. - /// List<GameServer> - public List GetGameServersByCountry(string country, int? page = default(int?), int? limit = default(int?), int operationIndex = 0) - { - Tribufu.Generated.Client.ApiResponse> localVarResponse = GetGameServersByCountryWithHttpInfo(country, page, limit); - return localVarResponse.Data; - } - - /// - /// Get a list of game servers from a country. <b>🔒 Required permissions:</b> <code>tribufu.community.game.server.list.country</code> - /// - /// Thrown when fails to make API call - /// - /// (optional) - /// (optional) - /// Index associated with the operation. - /// ApiResponse of List<GameServer> - public Tribufu.Generated.Client.ApiResponse> GetGameServersByCountryWithHttpInfo(string country, int? page = default(int?), int? limit = default(int?), int operationIndex = 0) - { - // verify the required parameter 'country' is set - if (country == null) - { - throw new Tribufu.Generated.Client.ApiException(400, "Missing required parameter 'country' when calling TribufuGeneratedApi->GetGameServersByCountry"); - } - - Tribufu.Generated.Client.RequestOptions localVarRequestOptions = new Tribufu.Generated.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - }; - - // to determine the Accept header - string[] _accepts = new string[] { - "text/plain", - "application/json", - "text/json" - }; - - var localVarContentType = Tribufu.Generated.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - var localVarMultipartFormData = localVarContentType == "multipart/form-data"; - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = Tribufu.Generated.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - localVarRequestOptions.PathParameters.Add("country", Tribufu.Generated.Client.ClientUtils.ParameterToString(country)); // path parameter - if (page != null) - { - localVarRequestOptions.QueryParameters.Add(Tribufu.Generated.Client.ClientUtils.ParameterToMultiMap("", "page", page)); - } - if (limit != null) - { - localVarRequestOptions.QueryParameters.Add(Tribufu.Generated.Client.ClientUtils.ParameterToMultiMap("", "limit", limit)); - } - - localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGameServersByCountry"; - localVarRequestOptions.OperationIndex = operationIndex; - - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } - - // make the HTTP request - var localVarResponse = this.Client.Get>("/v1/servers/country/{country}", localVarRequestOptions, this.Configuration); - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("GetGameServersByCountry", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - - /// - /// Get a list of game servers from a country. <b>🔒 Required permissions:</b> <code>tribufu.community.game.server.list.country</code> - /// - /// Thrown when fails to make API call - /// - /// (optional) - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of List<GameServer> - public async System.Threading.Tasks.Task> GetGameServersByCountryAsync(string country, int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - Tribufu.Generated.Client.ApiResponse> localVarResponse = await GetGameServersByCountryWithHttpInfoAsync(country, page, limit, operationIndex, cancellationToken).ConfigureAwait(false); - return localVarResponse.Data; - } - - /// - /// Get a list of game servers from a country. <b>🔒 Required permissions:</b> <code>tribufu.community.game.server.list.country</code> - /// - /// Thrown when fails to make API call - /// - /// (optional) - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ApiResponse (List<GameServer>) - public async System.Threading.Tasks.Task>> GetGameServersByCountryWithHttpInfoAsync(string country, int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - // verify the required parameter 'country' is set - if (country == null) - { - throw new Tribufu.Generated.Client.ApiException(400, "Missing required parameter 'country' when calling TribufuGeneratedApi->GetGameServersByCountry"); - } - - - Tribufu.Generated.Client.RequestOptions localVarRequestOptions = new Tribufu.Generated.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - }; - - // to determine the Accept header - string[] _accepts = new string[] { - "text/plain", - "application/json", - "text/json" - }; - - var localVarContentType = Tribufu.Generated.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = Tribufu.Generated.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - localVarRequestOptions.PathParameters.Add("country", Tribufu.Generated.Client.ClientUtils.ParameterToString(country)); // path parameter - if (page != null) - { - localVarRequestOptions.QueryParameters.Add(Tribufu.Generated.Client.ClientUtils.ParameterToMultiMap("", "page", page)); - } - if (limit != null) - { - localVarRequestOptions.QueryParameters.Add(Tribufu.Generated.Client.ClientUtils.ParameterToMultiMap("", "limit", limit)); - } - - localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGameServersByCountry"; - localVarRequestOptions.OperationIndex = operationIndex; - - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } - - // make the HTTP request - var localVarResponse = await this.AsynchronousClient.GetAsync>("/v1/servers/country/{country}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); - - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("GetGameServersByCountry", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - - /// - /// Get a list of game servers of a game. <b>🔒 Required permissions:</b> <code>tribufu.community.game.server.list</code> - /// - /// Thrown when fails to make API call - /// - /// (optional) - /// (optional) - /// Index associated with the operation. - /// List<GameServer> - public List GetGameServersByGameId(string id, int? page = default(int?), int? limit = default(int?), int operationIndex = 0) - { - Tribufu.Generated.Client.ApiResponse> localVarResponse = GetGameServersByGameIdWithHttpInfo(id, page, limit); - return localVarResponse.Data; - } - - /// - /// Get a list of game servers of a game. <b>🔒 Required permissions:</b> <code>tribufu.community.game.server.list</code> - /// - /// Thrown when fails to make API call - /// - /// (optional) - /// (optional) - /// Index associated with the operation. - /// ApiResponse of List<GameServer> - public Tribufu.Generated.Client.ApiResponse> GetGameServersByGameIdWithHttpInfo(string id, int? page = default(int?), int? limit = default(int?), int operationIndex = 0) - { - // verify the required parameter 'id' is set - if (id == null) - { - throw new Tribufu.Generated.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->GetGameServersByGameId"); - } - - Tribufu.Generated.Client.RequestOptions localVarRequestOptions = new Tribufu.Generated.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - }; - - // to determine the Accept header - string[] _accepts = new string[] { - "text/plain", - "application/json", - "text/json" - }; - - var localVarContentType = Tribufu.Generated.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - var localVarMultipartFormData = localVarContentType == "multipart/form-data"; - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = Tribufu.Generated.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - localVarRequestOptions.PathParameters.Add("id", Tribufu.Generated.Client.ClientUtils.ParameterToString(id)); // path parameter - if (page != null) - { - localVarRequestOptions.QueryParameters.Add(Tribufu.Generated.Client.ClientUtils.ParameterToMultiMap("", "page", page)); - } - if (limit != null) - { - localVarRequestOptions.QueryParameters.Add(Tribufu.Generated.Client.ClientUtils.ParameterToMultiMap("", "limit", limit)); - } - - localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGameServersByGameId"; - localVarRequestOptions.OperationIndex = operationIndex; - - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } - - // make the HTTP request - var localVarResponse = this.Client.Get>("/v1/games/{id}/servers", localVarRequestOptions, this.Configuration); - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("GetGameServersByGameId", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - - /// - /// Get a list of game servers of a game. <b>🔒 Required permissions:</b> <code>tribufu.community.game.server.list</code> - /// - /// Thrown when fails to make API call - /// - /// (optional) - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of List<GameServer> - public async System.Threading.Tasks.Task> GetGameServersByGameIdAsync(string id, int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - Tribufu.Generated.Client.ApiResponse> localVarResponse = await GetGameServersByGameIdWithHttpInfoAsync(id, page, limit, operationIndex, cancellationToken).ConfigureAwait(false); - return localVarResponse.Data; - } - - /// - /// Get a list of game servers of a game. <b>🔒 Required permissions:</b> <code>tribufu.community.game.server.list</code> - /// - /// Thrown when fails to make API call - /// - /// (optional) - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ApiResponse (List<GameServer>) - public async System.Threading.Tasks.Task>> GetGameServersByGameIdWithHttpInfoAsync(string id, int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - // verify the required parameter 'id' is set - if (id == null) - { - throw new Tribufu.Generated.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->GetGameServersByGameId"); - } - - - Tribufu.Generated.Client.RequestOptions localVarRequestOptions = new Tribufu.Generated.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - }; - - // to determine the Accept header - string[] _accepts = new string[] { - "text/plain", - "application/json", - "text/json" - }; - - var localVarContentType = Tribufu.Generated.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = Tribufu.Generated.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - localVarRequestOptions.PathParameters.Add("id", Tribufu.Generated.Client.ClientUtils.ParameterToString(id)); // path parameter - if (page != null) - { - localVarRequestOptions.QueryParameters.Add(Tribufu.Generated.Client.ClientUtils.ParameterToMultiMap("", "page", page)); - } - if (limit != null) - { - localVarRequestOptions.QueryParameters.Add(Tribufu.Generated.Client.ClientUtils.ParameterToMultiMap("", "limit", limit)); - } - - localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGameServersByGameId"; - localVarRequestOptions.OperationIndex = operationIndex; - - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } - - // make the HTTP request - var localVarResponse = await this.AsynchronousClient.GetAsync>("/v1/games/{id}/servers", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); - - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("GetGameServersByGameId", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - - /// - /// Get a list of countries with the number of game servers. <b>🔒 Required permissions:</b> <code>tribufu.community.game.server.country.list</code> - /// - /// Thrown when fails to make API call - /// Index associated with the operation. - /// Dictionary<string, int> - public Dictionary GetGameServersCountries(int operationIndex = 0) - { - Tribufu.Generated.Client.ApiResponse> localVarResponse = GetGameServersCountriesWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// Get a list of countries with the number of game servers. <b>🔒 Required permissions:</b> <code>tribufu.community.game.server.country.list</code> - /// - /// Thrown when fails to make API call - /// Index associated with the operation. - /// ApiResponse of Dictionary<string, int> - public Tribufu.Generated.Client.ApiResponse> GetGameServersCountriesWithHttpInfo(int operationIndex = 0) - { - Tribufu.Generated.Client.RequestOptions localVarRequestOptions = new Tribufu.Generated.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - }; - - // to determine the Accept header - string[] _accepts = new string[] { - "text/plain", - "application/json", - "text/json" - }; - - var localVarContentType = Tribufu.Generated.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - var localVarMultipartFormData = localVarContentType == "multipart/form-data"; - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = Tribufu.Generated.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - - localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGameServersCountries"; - localVarRequestOptions.OperationIndex = operationIndex; - - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } - - // make the HTTP request - var localVarResponse = this.Client.Get>("/v1/servers/countries", localVarRequestOptions, this.Configuration); - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("GetGameServersCountries", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - - /// - /// Get a list of countries with the number of game servers. <b>🔒 Required permissions:</b> <code>tribufu.community.game.server.country.list</code> - /// - /// Thrown when fails to make API call - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of Dictionary<string, int> - public async System.Threading.Tasks.Task> GetGameServersCountriesAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - Tribufu.Generated.Client.ApiResponse> localVarResponse = await GetGameServersCountriesWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); - return localVarResponse.Data; - } - - /// - /// Get a list of countries with the number of game servers. <b>🔒 Required permissions:</b> <code>tribufu.community.game.server.country.list</code> - /// - /// Thrown when fails to make API call - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ApiResponse (Dictionary<string, int>) - public async System.Threading.Tasks.Task>> GetGameServersCountriesWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - - Tribufu.Generated.Client.RequestOptions localVarRequestOptions = new Tribufu.Generated.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - }; - - // to determine the Accept header - string[] _accepts = new string[] { - "text/plain", - "application/json", - "text/json" - }; - - var localVarContentType = Tribufu.Generated.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = Tribufu.Generated.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - - localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGameServersCountries"; - localVarRequestOptions.OperationIndex = operationIndex; - - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } - - // make the HTTP request - var localVarResponse = await this.AsynchronousClient.GetAsync>("/v1/servers/countries", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); - - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("GetGameServersCountries", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - - /// - /// Get metrics about the tracked game servers. <b>🔒 Required permissions:</b> <code>tribufu.community.game.server.metric.get</code> - /// - /// Thrown when fails to make API call - /// Index associated with the operation. - /// ServerMetrics - public ServerMetrics GetGameServersMetrics(int operationIndex = 0) - { - Tribufu.Generated.Client.ApiResponse localVarResponse = GetGameServersMetricsWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// Get metrics about the tracked game servers. <b>🔒 Required permissions:</b> <code>tribufu.community.game.server.metric.get</code> - /// - /// Thrown when fails to make API call - /// Index associated with the operation. - /// ApiResponse of ServerMetrics - public Tribufu.Generated.Client.ApiResponse GetGameServersMetricsWithHttpInfo(int operationIndex = 0) - { - Tribufu.Generated.Client.RequestOptions localVarRequestOptions = new Tribufu.Generated.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - }; - - // to determine the Accept header - string[] _accepts = new string[] { - "text/plain", - "application/json", - "text/json" - }; - - var localVarContentType = Tribufu.Generated.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - var localVarMultipartFormData = localVarContentType == "multipart/form-data"; - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = Tribufu.Generated.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - - localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGameServersMetrics"; - localVarRequestOptions.OperationIndex = operationIndex; - - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } - - // make the HTTP request - var localVarResponse = this.Client.Get("/v1/servers/metrics", localVarRequestOptions, this.Configuration); - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("GetGameServersMetrics", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - - /// - /// Get metrics about the tracked game servers. <b>🔒 Required permissions:</b> <code>tribufu.community.game.server.metric.get</code> - /// - /// Thrown when fails to make API call - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ServerMetrics - public async System.Threading.Tasks.Task GetGameServersMetricsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - Tribufu.Generated.Client.ApiResponse localVarResponse = await GetGameServersMetricsWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); - return localVarResponse.Data; - } - - /// - /// Get metrics about the tracked game servers. <b>🔒 Required permissions:</b> <code>tribufu.community.game.server.metric.get</code> - /// - /// Thrown when fails to make API call - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ApiResponse (ServerMetrics) - public async System.Threading.Tasks.Task> GetGameServersMetricsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - - Tribufu.Generated.Client.RequestOptions localVarRequestOptions = new Tribufu.Generated.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - }; - - // to determine the Accept header - string[] _accepts = new string[] { - "text/plain", - "application/json", - "text/json" - }; - - var localVarContentType = Tribufu.Generated.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = Tribufu.Generated.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - - localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGameServersMetrics"; - localVarRequestOptions.OperationIndex = operationIndex; - - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } - - // make the HTTP request - var localVarResponse = await this.AsynchronousClient.GetAsync("/v1/servers/metrics", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); - - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("GetGameServersMetrics", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - - /// - /// Get a list of games. <b>🔒 Required permissions:</b> <code>tribufu.community.game.list</code> - /// - /// Thrown when fails to make API call - /// Index associated with the operation. - /// List<Game> - public List GetGames(int operationIndex = 0) - { - Tribufu.Generated.Client.ApiResponse> localVarResponse = GetGamesWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// Get a list of games. <b>🔒 Required permissions:</b> <code>tribufu.community.game.list</code> - /// - /// Thrown when fails to make API call - /// Index associated with the operation. - /// ApiResponse of List<Game> - public Tribufu.Generated.Client.ApiResponse> GetGamesWithHttpInfo(int operationIndex = 0) - { - Tribufu.Generated.Client.RequestOptions localVarRequestOptions = new Tribufu.Generated.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - }; - - // to determine the Accept header - string[] _accepts = new string[] { - "text/plain", - "application/json", - "text/json" - }; - - var localVarContentType = Tribufu.Generated.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - var localVarMultipartFormData = localVarContentType == "multipart/form-data"; - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = Tribufu.Generated.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - - localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGames"; - localVarRequestOptions.OperationIndex = operationIndex; - - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } - - // make the HTTP request - var localVarResponse = this.Client.Get>("/v1/games", localVarRequestOptions, this.Configuration); - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("GetGames", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - - /// - /// Get a list of games. <b>🔒 Required permissions:</b> <code>tribufu.community.game.list</code> - /// - /// Thrown when fails to make API call - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of List<Game> - public async System.Threading.Tasks.Task> GetGamesAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - Tribufu.Generated.Client.ApiResponse> localVarResponse = await GetGamesWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); - return localVarResponse.Data; - } - - /// - /// Get a list of games. <b>🔒 Required permissions:</b> <code>tribufu.community.game.list</code> - /// - /// Thrown when fails to make API call - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ApiResponse (List<Game>) - public async System.Threading.Tasks.Task>> GetGamesWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - - Tribufu.Generated.Client.RequestOptions localVarRequestOptions = new Tribufu.Generated.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - }; - - // to determine the Accept header - string[] _accepts = new string[] { - "text/plain", - "application/json", - "text/json" - }; - - var localVarContentType = Tribufu.Generated.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = Tribufu.Generated.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - - localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGames"; - localVarRequestOptions.OperationIndex = operationIndex; - - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } - - // make the HTTP request - var localVarResponse = await this.AsynchronousClient.GetAsync>("/v1/games", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); - - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("GetGames", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - - /// - /// Get a group by id. <b>🔒 Required permissions:</b> <code>tribufu.community.group.get</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// Group - public Group GetGroupById(string id, int operationIndex = 0) - { - Tribufu.Generated.Client.ApiResponse localVarResponse = GetGroupByIdWithHttpInfo(id); - return localVarResponse.Data; - } - - /// - /// Get a group by id. <b>🔒 Required permissions:</b> <code>tribufu.community.group.get</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// ApiResponse of Group - public Tribufu.Generated.Client.ApiResponse GetGroupByIdWithHttpInfo(string id, int operationIndex = 0) - { - // verify the required parameter 'id' is set - if (id == null) - { - throw new Tribufu.Generated.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->GetGroupById"); - } - - Tribufu.Generated.Client.RequestOptions localVarRequestOptions = new Tribufu.Generated.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - }; - - // to determine the Accept header - string[] _accepts = new string[] { - "text/plain", - "application/json", - "text/json" - }; - - var localVarContentType = Tribufu.Generated.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - var localVarMultipartFormData = localVarContentType == "multipart/form-data"; - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = Tribufu.Generated.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - localVarRequestOptions.PathParameters.Add("id", Tribufu.Generated.Client.ClientUtils.ParameterToString(id)); // path parameter - - localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGroupById"; - localVarRequestOptions.OperationIndex = operationIndex; - - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } - - // make the HTTP request - var localVarResponse = this.Client.Get("/v1/groups/{id}", localVarRequestOptions, this.Configuration); - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("GetGroupById", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - - /// - /// Get a group by id. <b>🔒 Required permissions:</b> <code>tribufu.community.group.get</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of Group - public async System.Threading.Tasks.Task GetGroupByIdAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - Tribufu.Generated.Client.ApiResponse localVarResponse = await GetGroupByIdWithHttpInfoAsync(id, operationIndex, cancellationToken).ConfigureAwait(false); - return localVarResponse.Data; - } - - /// - /// Get a group by id. <b>🔒 Required permissions:</b> <code>tribufu.community.group.get</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ApiResponse (Group) - public async System.Threading.Tasks.Task> GetGroupByIdWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - // verify the required parameter 'id' is set - if (id == null) - { - throw new Tribufu.Generated.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->GetGroupById"); - } - - - Tribufu.Generated.Client.RequestOptions localVarRequestOptions = new Tribufu.Generated.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - }; - - // to determine the Accept header - string[] _accepts = new string[] { - "text/plain", - "application/json", - "text/json" - }; - - var localVarContentType = Tribufu.Generated.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = Tribufu.Generated.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - localVarRequestOptions.PathParameters.Add("id", Tribufu.Generated.Client.ClientUtils.ParameterToString(id)); // path parameter - - localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGroupById"; - localVarRequestOptions.OperationIndex = operationIndex; - - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } - - // make the HTTP request - var localVarResponse = await this.AsynchronousClient.GetAsync("/v1/groups/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); - - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("GetGroupById", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - - /// - /// Get a group by tag. <b>🔒 Required permissions:</b> <code>tribufu.community.group.get.tag</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// Group - public Group GetGroupByTag(string tag, int operationIndex = 0) - { - Tribufu.Generated.Client.ApiResponse localVarResponse = GetGroupByTagWithHttpInfo(tag); - return localVarResponse.Data; - } - - /// - /// Get a group by tag. <b>🔒 Required permissions:</b> <code>tribufu.community.group.get.tag</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// ApiResponse of Group - public Tribufu.Generated.Client.ApiResponse GetGroupByTagWithHttpInfo(string tag, int operationIndex = 0) - { - // verify the required parameter 'tag' is set - if (tag == null) - { - throw new Tribufu.Generated.Client.ApiException(400, "Missing required parameter 'tag' when calling TribufuGeneratedApi->GetGroupByTag"); - } - - Tribufu.Generated.Client.RequestOptions localVarRequestOptions = new Tribufu.Generated.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - }; - - // to determine the Accept header - string[] _accepts = new string[] { - "text/plain", - "application/json", - "text/json" - }; - - var localVarContentType = Tribufu.Generated.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - var localVarMultipartFormData = localVarContentType == "multipart/form-data"; - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = Tribufu.Generated.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - localVarRequestOptions.PathParameters.Add("tag", Tribufu.Generated.Client.ClientUtils.ParameterToString(tag)); // path parameter - - localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGroupByTag"; - localVarRequestOptions.OperationIndex = operationIndex; - - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } - - // make the HTTP request - var localVarResponse = this.Client.Get("/v1/groups/tag/{tag}", localVarRequestOptions, this.Configuration); - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("GetGroupByTag", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - - /// - /// Get a group by tag. <b>🔒 Required permissions:</b> <code>tribufu.community.group.get.tag</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of Group - public async System.Threading.Tasks.Task GetGroupByTagAsync(string tag, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - Tribufu.Generated.Client.ApiResponse localVarResponse = await GetGroupByTagWithHttpInfoAsync(tag, operationIndex, cancellationToken).ConfigureAwait(false); - return localVarResponse.Data; - } - - /// - /// Get a group by tag. <b>🔒 Required permissions:</b> <code>tribufu.community.group.get.tag</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ApiResponse (Group) - public async System.Threading.Tasks.Task> GetGroupByTagWithHttpInfoAsync(string tag, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - // verify the required parameter 'tag' is set - if (tag == null) - { - throw new Tribufu.Generated.Client.ApiException(400, "Missing required parameter 'tag' when calling TribufuGeneratedApi->GetGroupByTag"); - } - - - Tribufu.Generated.Client.RequestOptions localVarRequestOptions = new Tribufu.Generated.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - }; - - // to determine the Accept header - string[] _accepts = new string[] { - "text/plain", - "application/json", - "text/json" - }; - - var localVarContentType = Tribufu.Generated.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = Tribufu.Generated.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - localVarRequestOptions.PathParameters.Add("tag", Tribufu.Generated.Client.ClientUtils.ParameterToString(tag)); // path parameter - - localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGroupByTag"; - localVarRequestOptions.OperationIndex = operationIndex; - - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } - - // make the HTTP request - var localVarResponse = await this.AsynchronousClient.GetAsync("/v1/groups/tag/{tag}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); - - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("GetGroupByTag", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - - /// - /// Get a group by uuid. <b>🔒 Required permissions:</b> <code>tribufu.community.group.get.uuid</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// Group - public Group GetGroupByUuid(Guid uuid, int operationIndex = 0) - { - Tribufu.Generated.Client.ApiResponse localVarResponse = GetGroupByUuidWithHttpInfo(uuid); - return localVarResponse.Data; - } - - /// - /// Get a group by uuid. <b>🔒 Required permissions:</b> <code>tribufu.community.group.get.uuid</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// ApiResponse of Group - public Tribufu.Generated.Client.ApiResponse GetGroupByUuidWithHttpInfo(Guid uuid, int operationIndex = 0) - { - Tribufu.Generated.Client.RequestOptions localVarRequestOptions = new Tribufu.Generated.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - }; - - // to determine the Accept header - string[] _accepts = new string[] { - "text/plain", - "application/json", - "text/json" - }; - - var localVarContentType = Tribufu.Generated.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - var localVarMultipartFormData = localVarContentType == "multipart/form-data"; - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = Tribufu.Generated.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - localVarRequestOptions.PathParameters.Add("uuid", Tribufu.Generated.Client.ClientUtils.ParameterToString(uuid)); // path parameter - - localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGroupByUuid"; - localVarRequestOptions.OperationIndex = operationIndex; - - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } - - // make the HTTP request - var localVarResponse = this.Client.Get("/v1/groups/uuid/{uuid}", localVarRequestOptions, this.Configuration); - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("GetGroupByUuid", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - - /// - /// Get a group by uuid. <b>🔒 Required permissions:</b> <code>tribufu.community.group.get.uuid</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of Group - public async System.Threading.Tasks.Task GetGroupByUuidAsync(Guid uuid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - Tribufu.Generated.Client.ApiResponse localVarResponse = await GetGroupByUuidWithHttpInfoAsync(uuid, operationIndex, cancellationToken).ConfigureAwait(false); - return localVarResponse.Data; - } - - /// - /// Get a group by uuid. <b>🔒 Required permissions:</b> <code>tribufu.community.group.get.uuid</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ApiResponse (Group) - public async System.Threading.Tasks.Task> GetGroupByUuidWithHttpInfoAsync(Guid uuid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - - Tribufu.Generated.Client.RequestOptions localVarRequestOptions = new Tribufu.Generated.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - }; - - // to determine the Accept header - string[] _accepts = new string[] { - "text/plain", - "application/json", - "text/json" - }; - - var localVarContentType = Tribufu.Generated.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = Tribufu.Generated.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - localVarRequestOptions.PathParameters.Add("uuid", Tribufu.Generated.Client.ClientUtils.ParameterToString(uuid)); // path parameter - - localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGroupByUuid"; - localVarRequestOptions.OperationIndex = operationIndex; - - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } - - // make the HTTP request - var localVarResponse = await this.AsynchronousClient.GetAsync("/v1/groups/uuid/{uuid}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); - - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("GetGroupByUuid", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - - /// - /// Get a list of games of a group. <b>🔒 Required permissions:</b> <code>tribufu.community.group.game.list</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// List<GroupGame> - public List GetGroupGames(string id, int operationIndex = 0) - { - Tribufu.Generated.Client.ApiResponse> localVarResponse = GetGroupGamesWithHttpInfo(id); - return localVarResponse.Data; - } - - /// - /// Get a list of games of a group. <b>🔒 Required permissions:</b> <code>tribufu.community.group.game.list</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// ApiResponse of List<GroupGame> - public Tribufu.Generated.Client.ApiResponse> GetGroupGamesWithHttpInfo(string id, int operationIndex = 0) - { - // verify the required parameter 'id' is set - if (id == null) - { - throw new Tribufu.Generated.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->GetGroupGames"); - } - - Tribufu.Generated.Client.RequestOptions localVarRequestOptions = new Tribufu.Generated.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - }; - - // to determine the Accept header - string[] _accepts = new string[] { - "text/plain", - "application/json", - "text/json" - }; - - var localVarContentType = Tribufu.Generated.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - var localVarMultipartFormData = localVarContentType == "multipart/form-data"; - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = Tribufu.Generated.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - localVarRequestOptions.PathParameters.Add("id", Tribufu.Generated.Client.ClientUtils.ParameterToString(id)); // path parameter - - localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGroupGames"; - localVarRequestOptions.OperationIndex = operationIndex; - - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } - - // make the HTTP request - var localVarResponse = this.Client.Get>("/v1/groups/{id}/games", localVarRequestOptions, this.Configuration); - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("GetGroupGames", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - - /// - /// Get a list of games of a group. <b>🔒 Required permissions:</b> <code>tribufu.community.group.game.list</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of List<GroupGame> - public async System.Threading.Tasks.Task> GetGroupGamesAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - Tribufu.Generated.Client.ApiResponse> localVarResponse = await GetGroupGamesWithHttpInfoAsync(id, operationIndex, cancellationToken).ConfigureAwait(false); - return localVarResponse.Data; - } - - /// - /// Get a list of games of a group. <b>🔒 Required permissions:</b> <code>tribufu.community.group.game.list</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ApiResponse (List<GroupGame>) - public async System.Threading.Tasks.Task>> GetGroupGamesWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - // verify the required parameter 'id' is set - if (id == null) - { - throw new Tribufu.Generated.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->GetGroupGames"); - } - - - Tribufu.Generated.Client.RequestOptions localVarRequestOptions = new Tribufu.Generated.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - }; - - // to determine the Accept header - string[] _accepts = new string[] { - "text/plain", - "application/json", - "text/json" - }; - - var localVarContentType = Tribufu.Generated.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = Tribufu.Generated.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - localVarRequestOptions.PathParameters.Add("id", Tribufu.Generated.Client.ClientUtils.ParameterToString(id)); // path parameter - - localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGroupGames"; - localVarRequestOptions.OperationIndex = operationIndex; - - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } - - // make the HTTP request - var localVarResponse = await this.AsynchronousClient.GetAsync>("/v1/groups/{id}/games", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); - - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("GetGroupGames", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - - /// - /// Get a list of members in a group. <b>🔒 Required permissions:</b> <code>tribufu.community.group.member.list</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// List<GroupMember> - public List GetGroupMembers(string id, int operationIndex = 0) - { - Tribufu.Generated.Client.ApiResponse> localVarResponse = GetGroupMembersWithHttpInfo(id); - return localVarResponse.Data; - } - - /// - /// Get a list of members in a group. <b>🔒 Required permissions:</b> <code>tribufu.community.group.member.list</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// ApiResponse of List<GroupMember> - public Tribufu.Generated.Client.ApiResponse> GetGroupMembersWithHttpInfo(string id, int operationIndex = 0) - { - // verify the required parameter 'id' is set - if (id == null) - { - throw new Tribufu.Generated.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->GetGroupMembers"); - } - - Tribufu.Generated.Client.RequestOptions localVarRequestOptions = new Tribufu.Generated.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - }; - - // to determine the Accept header - string[] _accepts = new string[] { - "text/plain", - "application/json", - "text/json" - }; - - var localVarContentType = Tribufu.Generated.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - var localVarMultipartFormData = localVarContentType == "multipart/form-data"; - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = Tribufu.Generated.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - localVarRequestOptions.PathParameters.Add("id", Tribufu.Generated.Client.ClientUtils.ParameterToString(id)); // path parameter - - localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGroupMembers"; - localVarRequestOptions.OperationIndex = operationIndex; - - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } - - // make the HTTP request - var localVarResponse = this.Client.Get>("/v1/groups/{id}/members", localVarRequestOptions, this.Configuration); - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("GetGroupMembers", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - - /// - /// Get a list of members in a group. <b>🔒 Required permissions:</b> <code>tribufu.community.group.member.list</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of List<GroupMember> - public async System.Threading.Tasks.Task> GetGroupMembersAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - Tribufu.Generated.Client.ApiResponse> localVarResponse = await GetGroupMembersWithHttpInfoAsync(id, operationIndex, cancellationToken).ConfigureAwait(false); - return localVarResponse.Data; - } - - /// - /// Get a list of members in a group. <b>🔒 Required permissions:</b> <code>tribufu.community.group.member.list</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ApiResponse (List<GroupMember>) - public async System.Threading.Tasks.Task>> GetGroupMembersWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - // verify the required parameter 'id' is set - if (id == null) - { - throw new Tribufu.Generated.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->GetGroupMembers"); - } - - - Tribufu.Generated.Client.RequestOptions localVarRequestOptions = new Tribufu.Generated.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - }; - - // to determine the Accept header - string[] _accepts = new string[] { - "text/plain", - "application/json", - "text/json" - }; - - var localVarContentType = Tribufu.Generated.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = Tribufu.Generated.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - localVarRequestOptions.PathParameters.Add("id", Tribufu.Generated.Client.ClientUtils.ParameterToString(id)); // path parameter - - localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGroupMembers"; - localVarRequestOptions.OperationIndex = operationIndex; - - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } - - // make the HTTP request - var localVarResponse = await this.AsynchronousClient.GetAsync>("/v1/groups/{id}/members", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); - - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("GetGroupMembers", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - - /// - /// Get a list of groups. <b>🔒 Required permissions:</b> <code>tribufu.community.group.list</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// (optional) - /// Index associated with the operation. - /// List<Group> - public List GetGroups(int? page = default(int?), int? limit = default(int?), int operationIndex = 0) - { - Tribufu.Generated.Client.ApiResponse> localVarResponse = GetGroupsWithHttpInfo(page, limit); - return localVarResponse.Data; - } - - /// - /// Get a list of groups. <b>🔒 Required permissions:</b> <code>tribufu.community.group.list</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// (optional) - /// Index associated with the operation. - /// ApiResponse of List<Group> - public Tribufu.Generated.Client.ApiResponse> GetGroupsWithHttpInfo(int? page = default(int?), int? limit = default(int?), int operationIndex = 0) - { - Tribufu.Generated.Client.RequestOptions localVarRequestOptions = new Tribufu.Generated.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - }; - - // to determine the Accept header - string[] _accepts = new string[] { - "text/plain", - "application/json", - "text/json" - }; - - var localVarContentType = Tribufu.Generated.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - var localVarMultipartFormData = localVarContentType == "multipart/form-data"; - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = Tribufu.Generated.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - if (page != null) - { - localVarRequestOptions.QueryParameters.Add(Tribufu.Generated.Client.ClientUtils.ParameterToMultiMap("", "page", page)); - } - if (limit != null) - { - localVarRequestOptions.QueryParameters.Add(Tribufu.Generated.Client.ClientUtils.ParameterToMultiMap("", "limit", limit)); - } - - localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGroups"; - localVarRequestOptions.OperationIndex = operationIndex; - - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } - - // make the HTTP request - var localVarResponse = this.Client.Get>("/v1/groups", localVarRequestOptions, this.Configuration); - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("GetGroups", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - - /// - /// Get a list of groups. <b>🔒 Required permissions:</b> <code>tribufu.community.group.list</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of List<Group> - public async System.Threading.Tasks.Task> GetGroupsAsync(int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - Tribufu.Generated.Client.ApiResponse> localVarResponse = await GetGroupsWithHttpInfoAsync(page, limit, operationIndex, cancellationToken).ConfigureAwait(false); - return localVarResponse.Data; - } - - /// - /// Get a list of groups. <b>🔒 Required permissions:</b> <code>tribufu.community.group.list</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ApiResponse (List<Group>) - public async System.Threading.Tasks.Task>> GetGroupsWithHttpInfoAsync(int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - - Tribufu.Generated.Client.RequestOptions localVarRequestOptions = new Tribufu.Generated.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - }; - - // to determine the Accept header - string[] _accepts = new string[] { - "text/plain", - "application/json", - "text/json" - }; - - var localVarContentType = Tribufu.Generated.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = Tribufu.Generated.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - if (page != null) - { - localVarRequestOptions.QueryParameters.Add(Tribufu.Generated.Client.ClientUtils.ParameterToMultiMap("", "page", page)); - } - if (limit != null) - { - localVarRequestOptions.QueryParameters.Add(Tribufu.Generated.Client.ClientUtils.ParameterToMultiMap("", "limit", limit)); - } - - localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGroups"; - localVarRequestOptions.OperationIndex = operationIndex; - - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } - - // make the HTTP request - var localVarResponse = await this.AsynchronousClient.GetAsync>("/v1/groups", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); - - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("GetGroups", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - - /// - /// Get a ip address location. <b>🔒 Required permissions:</b> <code>tribufu.geoip.address.get</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// IpAddress - public IpAddress GetIpAddress(string address, int operationIndex = 0) - { - Tribufu.Generated.Client.ApiResponse localVarResponse = GetIpAddressWithHttpInfo(address); - return localVarResponse.Data; - } - - /// - /// Get a ip address location. <b>🔒 Required permissions:</b> <code>tribufu.geoip.address.get</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// ApiResponse of IpAddress - public Tribufu.Generated.Client.ApiResponse GetIpAddressWithHttpInfo(string address, int operationIndex = 0) - { - // verify the required parameter 'address' is set - if (address == null) - { - throw new Tribufu.Generated.Client.ApiException(400, "Missing required parameter 'address' when calling TribufuGeneratedApi->GetIpAddress"); - } - - Tribufu.Generated.Client.RequestOptions localVarRequestOptions = new Tribufu.Generated.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - }; - - // to determine the Accept header - string[] _accepts = new string[] { - "text/plain", - "application/json", - "text/json" - }; - - var localVarContentType = Tribufu.Generated.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - var localVarMultipartFormData = localVarContentType == "multipart/form-data"; - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = Tribufu.Generated.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - localVarRequestOptions.PathParameters.Add("address", Tribufu.Generated.Client.ClientUtils.ParameterToString(address)); // path parameter - - localVarRequestOptions.Operation = "TribufuGeneratedApi.GetIpAddress"; - localVarRequestOptions.OperationIndex = operationIndex; - - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } - - // make the HTTP request - var localVarResponse = this.Client.Get("/v1/geoip/addresses/{address}", localVarRequestOptions, this.Configuration); - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("GetIpAddress", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - - /// - /// Get a ip address location. <b>🔒 Required permissions:</b> <code>tribufu.geoip.address.get</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of IpAddress - public async System.Threading.Tasks.Task GetIpAddressAsync(string address, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - Tribufu.Generated.Client.ApiResponse localVarResponse = await GetIpAddressWithHttpInfoAsync(address, operationIndex, cancellationToken).ConfigureAwait(false); - return localVarResponse.Data; - } - - /// - /// Get a ip address location. <b>🔒 Required permissions:</b> <code>tribufu.geoip.address.get</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ApiResponse (IpAddress) - public async System.Threading.Tasks.Task> GetIpAddressWithHttpInfoAsync(string address, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - // verify the required parameter 'address' is set - if (address == null) - { - throw new Tribufu.Generated.Client.ApiException(400, "Missing required parameter 'address' when calling TribufuGeneratedApi->GetIpAddress"); - } - - - Tribufu.Generated.Client.RequestOptions localVarRequestOptions = new Tribufu.Generated.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - }; - - // to determine the Accept header - string[] _accepts = new string[] { - "text/plain", - "application/json", - "text/json" - }; - - var localVarContentType = Tribufu.Generated.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = Tribufu.Generated.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - localVarRequestOptions.PathParameters.Add("address", Tribufu.Generated.Client.ClientUtils.ParameterToString(address)); // path parameter - - localVarRequestOptions.Operation = "TribufuGeneratedApi.GetIpAddress"; - localVarRequestOptions.OperationIndex = operationIndex; - - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } - - // make the HTTP request - var localVarResponse = await this.AsynchronousClient.GetAsync("/v1/geoip/addresses/{address}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); - - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("GetIpAddress", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - - /// - /// Get a list of ip addresses. <b>🔒 Required permissions:</b> <code>tribufu.geoip.address.list</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// (optional) - /// Index associated with the operation. - /// List<IpAddress> - public List GetIpAddresses(int? page = default(int?), int? limit = default(int?), int operationIndex = 0) - { - Tribufu.Generated.Client.ApiResponse> localVarResponse = GetIpAddressesWithHttpInfo(page, limit); - return localVarResponse.Data; - } - - /// - /// Get a list of ip addresses. <b>🔒 Required permissions:</b> <code>tribufu.geoip.address.list</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// (optional) - /// Index associated with the operation. - /// ApiResponse of List<IpAddress> - public Tribufu.Generated.Client.ApiResponse> GetIpAddressesWithHttpInfo(int? page = default(int?), int? limit = default(int?), int operationIndex = 0) - { - Tribufu.Generated.Client.RequestOptions localVarRequestOptions = new Tribufu.Generated.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - }; - - // to determine the Accept header - string[] _accepts = new string[] { - "text/plain", - "application/json", - "text/json" - }; - - var localVarContentType = Tribufu.Generated.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - var localVarMultipartFormData = localVarContentType == "multipart/form-data"; - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = Tribufu.Generated.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - if (page != null) - { - localVarRequestOptions.QueryParameters.Add(Tribufu.Generated.Client.ClientUtils.ParameterToMultiMap("", "page", page)); - } - if (limit != null) - { - localVarRequestOptions.QueryParameters.Add(Tribufu.Generated.Client.ClientUtils.ParameterToMultiMap("", "limit", limit)); - } - - localVarRequestOptions.Operation = "TribufuGeneratedApi.GetIpAddresses"; - localVarRequestOptions.OperationIndex = operationIndex; - - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } - - // make the HTTP request - var localVarResponse = this.Client.Get>("/v1/geoip/addresses", localVarRequestOptions, this.Configuration); - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("GetIpAddresses", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - - /// - /// Get a list of ip addresses. <b>🔒 Required permissions:</b> <code>tribufu.geoip.address.list</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of List<IpAddress> - public async System.Threading.Tasks.Task> GetIpAddressesAsync(int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - Tribufu.Generated.Client.ApiResponse> localVarResponse = await GetIpAddressesWithHttpInfoAsync(page, limit, operationIndex, cancellationToken).ConfigureAwait(false); - return localVarResponse.Data; - } - - /// - /// Get a list of ip addresses. <b>🔒 Required permissions:</b> <code>tribufu.geoip.address.list</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ApiResponse (List<IpAddress>) - public async System.Threading.Tasks.Task>> GetIpAddressesWithHttpInfoAsync(int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - - Tribufu.Generated.Client.RequestOptions localVarRequestOptions = new Tribufu.Generated.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - }; - - // to determine the Accept header - string[] _accepts = new string[] { - "text/plain", - "application/json", - "text/json" - }; - - var localVarContentType = Tribufu.Generated.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = Tribufu.Generated.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - if (page != null) - { - localVarRequestOptions.QueryParameters.Add(Tribufu.Generated.Client.ClientUtils.ParameterToMultiMap("", "page", page)); - } - if (limit != null) - { - localVarRequestOptions.QueryParameters.Add(Tribufu.Generated.Client.ClientUtils.ParameterToMultiMap("", "limit", limit)); - } - - localVarRequestOptions.Operation = "TribufuGeneratedApi.GetIpAddresses"; - localVarRequestOptions.OperationIndex = operationIndex; - - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } - - // make the HTTP request - var localVarResponse = await this.AsynchronousClient.GetAsync>("/v1/geoip/addresses", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); - - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("GetIpAddresses", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - - /// - /// Get the top 20 leaderboard users. <b>🔒 Required permissions:</b> <code>tribufu.community.leaderboard.get</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// Index associated with the operation. - /// List<LeaderboardItem> - public List GetLeaderboard(LeaderboardOrder? order = default(LeaderboardOrder?), int operationIndex = 0) - { - Tribufu.Generated.Client.ApiResponse> localVarResponse = GetLeaderboardWithHttpInfo(order); - return localVarResponse.Data; - } - - /// - /// Get the top 20 leaderboard users. <b>🔒 Required permissions:</b> <code>tribufu.community.leaderboard.get</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// Index associated with the operation. - /// ApiResponse of List<LeaderboardItem> - public Tribufu.Generated.Client.ApiResponse> GetLeaderboardWithHttpInfo(LeaderboardOrder? order = default(LeaderboardOrder?), int operationIndex = 0) - { - Tribufu.Generated.Client.RequestOptions localVarRequestOptions = new Tribufu.Generated.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - }; - - // to determine the Accept header - string[] _accepts = new string[] { - "text/plain", - "application/json", - "text/json" - }; - - var localVarContentType = Tribufu.Generated.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - var localVarMultipartFormData = localVarContentType == "multipart/form-data"; - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = Tribufu.Generated.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - if (order != null) - { - localVarRequestOptions.QueryParameters.Add(Tribufu.Generated.Client.ClientUtils.ParameterToMultiMap("", "Order", order)); - } - - localVarRequestOptions.Operation = "TribufuGeneratedApi.GetLeaderboard"; - localVarRequestOptions.OperationIndex = operationIndex; - - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } - - // make the HTTP request - var localVarResponse = this.Client.Get>("/v1/leaderboard", localVarRequestOptions, this.Configuration); - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("GetLeaderboard", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - - /// - /// Get the top 20 leaderboard users. <b>🔒 Required permissions:</b> <code>tribufu.community.leaderboard.get</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of List<LeaderboardItem> - public async System.Threading.Tasks.Task> GetLeaderboardAsync(LeaderboardOrder? order = default(LeaderboardOrder?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - Tribufu.Generated.Client.ApiResponse> localVarResponse = await GetLeaderboardWithHttpInfoAsync(order, operationIndex, cancellationToken).ConfigureAwait(false); - return localVarResponse.Data; - } - - /// - /// Get the top 20 leaderboard users. <b>🔒 Required permissions:</b> <code>tribufu.community.leaderboard.get</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ApiResponse (List<LeaderboardItem>) - public async System.Threading.Tasks.Task>> GetLeaderboardWithHttpInfoAsync(LeaderboardOrder? order = default(LeaderboardOrder?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - - Tribufu.Generated.Client.RequestOptions localVarRequestOptions = new Tribufu.Generated.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - }; - - // to determine the Accept header - string[] _accepts = new string[] { - "text/plain", - "application/json", - "text/json" - }; - - var localVarContentType = Tribufu.Generated.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = Tribufu.Generated.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - if (order != null) - { - localVarRequestOptions.QueryParameters.Add(Tribufu.Generated.Client.ClientUtils.ParameterToMultiMap("", "Order", order)); - } - - localVarRequestOptions.Operation = "TribufuGeneratedApi.GetLeaderboard"; - localVarRequestOptions.OperationIndex = operationIndex; - - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } - - // make the HTTP request - var localVarResponse = await this.AsynchronousClient.GetAsync>("/v1/leaderboard", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); - - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("GetLeaderboard", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - - /// - /// Get current user information. - /// - /// Thrown when fails to make API call - /// Index associated with the operation. - /// UserInfo - [Obsolete] - public UserInfo GetMe(int operationIndex = 0) - { - Tribufu.Generated.Client.ApiResponse localVarResponse = GetMeWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// Get current user information. - /// - /// Thrown when fails to make API call - /// Index associated with the operation. - /// ApiResponse of UserInfo - [Obsolete] - public Tribufu.Generated.Client.ApiResponse GetMeWithHttpInfo(int operationIndex = 0) - { - Tribufu.Generated.Client.RequestOptions localVarRequestOptions = new Tribufu.Generated.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - }; - - // to determine the Accept header - string[] _accepts = new string[] { - "text/plain", - "application/json", - "text/json" - }; - - var localVarContentType = Tribufu.Generated.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - var localVarMultipartFormData = localVarContentType == "multipart/form-data"; - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = Tribufu.Generated.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - - localVarRequestOptions.Operation = "TribufuGeneratedApi.GetMe"; - localVarRequestOptions.OperationIndex = operationIndex; - - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } - - // make the HTTP request - var localVarResponse = this.Client.Get("/v1/me", localVarRequestOptions, this.Configuration); - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("GetMe", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - - /// - /// Get current user information. - /// - /// Thrown when fails to make API call - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of UserInfo - [Obsolete] - public async System.Threading.Tasks.Task GetMeAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - Tribufu.Generated.Client.ApiResponse localVarResponse = await GetMeWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); - return localVarResponse.Data; - } - - /// - /// Get current user information. - /// - /// Thrown when fails to make API call - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ApiResponse (UserInfo) - [Obsolete] - public async System.Threading.Tasks.Task> GetMeWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - - Tribufu.Generated.Client.RequestOptions localVarRequestOptions = new Tribufu.Generated.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - }; - - // to determine the Accept header - string[] _accepts = new string[] { - "text/plain", - "application/json", - "text/json" - }; - - var localVarContentType = Tribufu.Generated.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = Tribufu.Generated.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - - localVarRequestOptions.Operation = "TribufuGeneratedApi.GetMe"; - localVarRequestOptions.OperationIndex = operationIndex; - - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } - - // make the HTTP request - var localVarResponse = await this.AsynchronousClient.GetAsync("/v1/me", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); - - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("GetMe", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - - /// - /// Get a package by id. <b>🔒 Required permissions:</b> <code>tribufu.community.package.get</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// Package - public Package GetPackageById(string id, int operationIndex = 0) - { - Tribufu.Generated.Client.ApiResponse localVarResponse = GetPackageByIdWithHttpInfo(id); - return localVarResponse.Data; - } - - /// - /// Get a package by id. <b>🔒 Required permissions:</b> <code>tribufu.community.package.get</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// ApiResponse of Package - public Tribufu.Generated.Client.ApiResponse GetPackageByIdWithHttpInfo(string id, int operationIndex = 0) - { - // verify the required parameter 'id' is set - if (id == null) - { - throw new Tribufu.Generated.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->GetPackageById"); - } - - Tribufu.Generated.Client.RequestOptions localVarRequestOptions = new Tribufu.Generated.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - }; - - // to determine the Accept header - string[] _accepts = new string[] { - "text/plain", - "application/json", - "text/json" - }; - - var localVarContentType = Tribufu.Generated.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - var localVarMultipartFormData = localVarContentType == "multipart/form-data"; - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = Tribufu.Generated.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - localVarRequestOptions.PathParameters.Add("id", Tribufu.Generated.Client.ClientUtils.ParameterToString(id)); // path parameter - - localVarRequestOptions.Operation = "TribufuGeneratedApi.GetPackageById"; - localVarRequestOptions.OperationIndex = operationIndex; - - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } - - // make the HTTP request - var localVarResponse = this.Client.Get("/v1/packages/{id}", localVarRequestOptions, this.Configuration); - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("GetPackageById", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - - /// - /// Get a package by id. <b>🔒 Required permissions:</b> <code>tribufu.community.package.get</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of Package - public async System.Threading.Tasks.Task GetPackageByIdAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - Tribufu.Generated.Client.ApiResponse localVarResponse = await GetPackageByIdWithHttpInfoAsync(id, operationIndex, cancellationToken).ConfigureAwait(false); - return localVarResponse.Data; - } - - /// - /// Get a package by id. <b>🔒 Required permissions:</b> <code>tribufu.community.package.get</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ApiResponse (Package) - public async System.Threading.Tasks.Task> GetPackageByIdWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - // verify the required parameter 'id' is set - if (id == null) - { - throw new Tribufu.Generated.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->GetPackageById"); - } - - - Tribufu.Generated.Client.RequestOptions localVarRequestOptions = new Tribufu.Generated.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - }; - - // to determine the Accept header - string[] _accepts = new string[] { - "text/plain", - "application/json", - "text/json" - }; - - var localVarContentType = Tribufu.Generated.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = Tribufu.Generated.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - localVarRequestOptions.PathParameters.Add("id", Tribufu.Generated.Client.ClientUtils.ParameterToString(id)); // path parameter - - localVarRequestOptions.Operation = "TribufuGeneratedApi.GetPackageById"; - localVarRequestOptions.OperationIndex = operationIndex; - - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } - - // make the HTTP request - var localVarResponse = await this.AsynchronousClient.GetAsync("/v1/packages/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); - - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("GetPackageById", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - - /// - /// Get a list of packages. <b>🔒 Required permissions:</b> <code>tribufu.community.package.list</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// (optional) - /// Index associated with the operation. - /// List<Package> - public List GetPackages(int? page = default(int?), int? limit = default(int?), int operationIndex = 0) - { - Tribufu.Generated.Client.ApiResponse> localVarResponse = GetPackagesWithHttpInfo(page, limit); - return localVarResponse.Data; - } - - /// - /// Get a list of packages. <b>🔒 Required permissions:</b> <code>tribufu.community.package.list</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// (optional) - /// Index associated with the operation. - /// ApiResponse of List<Package> - public Tribufu.Generated.Client.ApiResponse> GetPackagesWithHttpInfo(int? page = default(int?), int? limit = default(int?), int operationIndex = 0) - { - Tribufu.Generated.Client.RequestOptions localVarRequestOptions = new Tribufu.Generated.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - }; - - // to determine the Accept header - string[] _accepts = new string[] { - "text/plain", - "application/json", - "text/json" - }; - - var localVarContentType = Tribufu.Generated.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - var localVarMultipartFormData = localVarContentType == "multipart/form-data"; - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = Tribufu.Generated.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - if (page != null) - { - localVarRequestOptions.QueryParameters.Add(Tribufu.Generated.Client.ClientUtils.ParameterToMultiMap("", "page", page)); - } - if (limit != null) - { - localVarRequestOptions.QueryParameters.Add(Tribufu.Generated.Client.ClientUtils.ParameterToMultiMap("", "limit", limit)); - } - - localVarRequestOptions.Operation = "TribufuGeneratedApi.GetPackages"; - localVarRequestOptions.OperationIndex = operationIndex; - - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } - - // make the HTTP request - var localVarResponse = this.Client.Get>("/v1/packages", localVarRequestOptions, this.Configuration); - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("GetPackages", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - - /// - /// Get a list of packages. <b>🔒 Required permissions:</b> <code>tribufu.community.package.list</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of List<Package> - public async System.Threading.Tasks.Task> GetPackagesAsync(int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - Tribufu.Generated.Client.ApiResponse> localVarResponse = await GetPackagesWithHttpInfoAsync(page, limit, operationIndex, cancellationToken).ConfigureAwait(false); - return localVarResponse.Data; - } - - /// - /// Get a list of packages. <b>🔒 Required permissions:</b> <code>tribufu.community.package.list</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ApiResponse (List<Package>) - public async System.Threading.Tasks.Task>> GetPackagesWithHttpInfoAsync(int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - - Tribufu.Generated.Client.RequestOptions localVarRequestOptions = new Tribufu.Generated.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - }; - - // to determine the Accept header - string[] _accepts = new string[] { - "text/plain", - "application/json", - "text/json" - }; - - var localVarContentType = Tribufu.Generated.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = Tribufu.Generated.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - if (page != null) - { - localVarRequestOptions.QueryParameters.Add(Tribufu.Generated.Client.ClientUtils.ParameterToMultiMap("", "page", page)); - } - if (limit != null) - { - localVarRequestOptions.QueryParameters.Add(Tribufu.Generated.Client.ClientUtils.ParameterToMultiMap("", "limit", limit)); - } - - localVarRequestOptions.Operation = "TribufuGeneratedApi.GetPackages"; - localVarRequestOptions.OperationIndex = operationIndex; - - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } - - // make the HTTP request - var localVarResponse = await this.AsynchronousClient.GetAsync>("/v1/packages", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); - - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("GetPackages", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - - /// - /// Get the public keys for the client. <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.client.keys</code> - /// - /// Thrown when fails to make API call - /// Index associated with the operation. - /// - public void GetPublicKeys(int operationIndex = 0) - { - GetPublicKeysWithHttpInfo(); - } - - /// - /// Get the public keys for the client. <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.client.keys</code> - /// - /// Thrown when fails to make API call - /// Index associated with the operation. - /// ApiResponse of Object(void) - public Tribufu.Generated.Client.ApiResponse GetPublicKeysWithHttpInfo(int operationIndex = 0) - { - Tribufu.Generated.Client.RequestOptions localVarRequestOptions = new Tribufu.Generated.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - }; - - // to determine the Accept header - string[] _accepts = new string[] { - }; - - var localVarContentType = Tribufu.Generated.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - var localVarMultipartFormData = localVarContentType == "multipart/form-data"; - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = Tribufu.Generated.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - - localVarRequestOptions.Operation = "TribufuGeneratedApi.GetPublicKeys"; - localVarRequestOptions.OperationIndex = operationIndex; - - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } - - // make the HTTP request - var localVarResponse = this.Client.Get("/v1/oauth2/jwks", localVarRequestOptions, this.Configuration); - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("GetPublicKeys", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - - /// - /// Get the public keys for the client. <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.client.keys</code> - /// - /// Thrown when fails to make API call - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of void - public async System.Threading.Tasks.Task GetPublicKeysAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - await GetPublicKeysWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); - } - - /// - /// Get the public keys for the client. <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.client.keys</code> - /// - /// Thrown when fails to make API call - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ApiResponse - public async System.Threading.Tasks.Task> GetPublicKeysWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - - Tribufu.Generated.Client.RequestOptions localVarRequestOptions = new Tribufu.Generated.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - }; - - // to determine the Accept header - string[] _accepts = new string[] { - }; - - var localVarContentType = Tribufu.Generated.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = Tribufu.Generated.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - - localVarRequestOptions.Operation = "TribufuGeneratedApi.GetPublicKeys"; - localVarRequestOptions.OperationIndex = operationIndex; - - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } - - // make the HTTP request - var localVarResponse = await this.AsynchronousClient.GetAsync("/v1/oauth2/jwks", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); - - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("GetPublicKeys", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - - /// - /// Get a subscription by id. <b>🔒 Required permissions:</b> <code>tribufu.store.subscription.get</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// Subscription - public Subscription GetSubscriptionById(string id, int operationIndex = 0) - { - Tribufu.Generated.Client.ApiResponse localVarResponse = GetSubscriptionByIdWithHttpInfo(id); - return localVarResponse.Data; - } - - /// - /// Get a subscription by id. <b>🔒 Required permissions:</b> <code>tribufu.store.subscription.get</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// ApiResponse of Subscription - public Tribufu.Generated.Client.ApiResponse GetSubscriptionByIdWithHttpInfo(string id, int operationIndex = 0) - { - // verify the required parameter 'id' is set - if (id == null) - { - throw new Tribufu.Generated.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->GetSubscriptionById"); - } - - Tribufu.Generated.Client.RequestOptions localVarRequestOptions = new Tribufu.Generated.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - }; - - // to determine the Accept header - string[] _accepts = new string[] { - "text/plain", - "application/json", - "text/json" - }; - - var localVarContentType = Tribufu.Generated.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - var localVarMultipartFormData = localVarContentType == "multipart/form-data"; - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = Tribufu.Generated.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - localVarRequestOptions.PathParameters.Add("id", Tribufu.Generated.Client.ClientUtils.ParameterToString(id)); // path parameter - - localVarRequestOptions.Operation = "TribufuGeneratedApi.GetSubscriptionById"; - localVarRequestOptions.OperationIndex = operationIndex; - - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } - - // make the HTTP request - var localVarResponse = this.Client.Get("/v1/subscriptions/{id}", localVarRequestOptions, this.Configuration); - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("GetSubscriptionById", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - - /// - /// Get a subscription by id. <b>🔒 Required permissions:</b> <code>tribufu.store.subscription.get</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of Subscription - public async System.Threading.Tasks.Task GetSubscriptionByIdAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - Tribufu.Generated.Client.ApiResponse localVarResponse = await GetSubscriptionByIdWithHttpInfoAsync(id, operationIndex, cancellationToken).ConfigureAwait(false); - return localVarResponse.Data; - } - - /// - /// Get a subscription by id. <b>🔒 Required permissions:</b> <code>tribufu.store.subscription.get</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ApiResponse (Subscription) - public async System.Threading.Tasks.Task> GetSubscriptionByIdWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - // verify the required parameter 'id' is set - if (id == null) - { - throw new Tribufu.Generated.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->GetSubscriptionById"); - } - - - Tribufu.Generated.Client.RequestOptions localVarRequestOptions = new Tribufu.Generated.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - }; - - // to determine the Accept header - string[] _accepts = new string[] { - "text/plain", - "application/json", - "text/json" - }; - - var localVarContentType = Tribufu.Generated.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = Tribufu.Generated.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - localVarRequestOptions.PathParameters.Add("id", Tribufu.Generated.Client.ClientUtils.ParameterToString(id)); // path parameter - - localVarRequestOptions.Operation = "TribufuGeneratedApi.GetSubscriptionById"; - localVarRequestOptions.OperationIndex = operationIndex; - - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } - - // make the HTTP request - var localVarResponse = await this.AsynchronousClient.GetAsync("/v1/subscriptions/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); - - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("GetSubscriptionById", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - - /// - /// Get a list of subscriptions. <b>🔒 Required permissions:</b> <code>tribufu.store.subscription.list</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// (optional) - /// Index associated with the operation. - /// List<Subscription> - public List GetSubscriptions(int? page = default(int?), int? limit = default(int?), int operationIndex = 0) - { - Tribufu.Generated.Client.ApiResponse> localVarResponse = GetSubscriptionsWithHttpInfo(page, limit); - return localVarResponse.Data; - } - - /// - /// Get a list of subscriptions. <b>🔒 Required permissions:</b> <code>tribufu.store.subscription.list</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// (optional) - /// Index associated with the operation. - /// ApiResponse of List<Subscription> - public Tribufu.Generated.Client.ApiResponse> GetSubscriptionsWithHttpInfo(int? page = default(int?), int? limit = default(int?), int operationIndex = 0) - { - Tribufu.Generated.Client.RequestOptions localVarRequestOptions = new Tribufu.Generated.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - }; - - // to determine the Accept header - string[] _accepts = new string[] { - "text/plain", - "application/json", - "text/json" - }; - - var localVarContentType = Tribufu.Generated.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - var localVarMultipartFormData = localVarContentType == "multipart/form-data"; - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = Tribufu.Generated.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - if (page != null) - { - localVarRequestOptions.QueryParameters.Add(Tribufu.Generated.Client.ClientUtils.ParameterToMultiMap("", "page", page)); - } - if (limit != null) - { - localVarRequestOptions.QueryParameters.Add(Tribufu.Generated.Client.ClientUtils.ParameterToMultiMap("", "limit", limit)); - } - - localVarRequestOptions.Operation = "TribufuGeneratedApi.GetSubscriptions"; - localVarRequestOptions.OperationIndex = operationIndex; - - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } - - // make the HTTP request - var localVarResponse = this.Client.Get>("/v1/subscriptions", localVarRequestOptions, this.Configuration); - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("GetSubscriptions", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - - /// - /// Get a list of subscriptions. <b>🔒 Required permissions:</b> <code>tribufu.store.subscription.list</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of List<Subscription> - public async System.Threading.Tasks.Task> GetSubscriptionsAsync(int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - Tribufu.Generated.Client.ApiResponse> localVarResponse = await GetSubscriptionsWithHttpInfoAsync(page, limit, operationIndex, cancellationToken).ConfigureAwait(false); - return localVarResponse.Data; - } - - /// - /// Get a list of subscriptions. <b>🔒 Required permissions:</b> <code>tribufu.store.subscription.list</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ApiResponse (List<Subscription>) - public async System.Threading.Tasks.Task>> GetSubscriptionsWithHttpInfoAsync(int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - - Tribufu.Generated.Client.RequestOptions localVarRequestOptions = new Tribufu.Generated.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - }; - - // to determine the Accept header - string[] _accepts = new string[] { - "text/plain", - "application/json", - "text/json" - }; - - var localVarContentType = Tribufu.Generated.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = Tribufu.Generated.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - if (page != null) - { - localVarRequestOptions.QueryParameters.Add(Tribufu.Generated.Client.ClientUtils.ParameterToMultiMap("", "page", page)); - } - if (limit != null) - { - localVarRequestOptions.QueryParameters.Add(Tribufu.Generated.Client.ClientUtils.ParameterToMultiMap("", "limit", limit)); - } - - localVarRequestOptions.Operation = "TribufuGeneratedApi.GetSubscriptions"; - localVarRequestOptions.OperationIndex = operationIndex; - - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } - - // make the HTTP request - var localVarResponse = await this.AsynchronousClient.GetAsync>("/v1/subscriptions", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); - - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("GetSubscriptions", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - - /// - /// Get a list of connected accounts of the user. <b>🔒 Required permissions:</b> <code>tribufu.identity.user.account.list</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// List<Account> - public List GetUserAccounts(string id, int operationIndex = 0) - { - Tribufu.Generated.Client.ApiResponse> localVarResponse = GetUserAccountsWithHttpInfo(id); - return localVarResponse.Data; - } - - /// - /// Get a list of connected accounts of the user. <b>🔒 Required permissions:</b> <code>tribufu.identity.user.account.list</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// ApiResponse of List<Account> - public Tribufu.Generated.Client.ApiResponse> GetUserAccountsWithHttpInfo(string id, int operationIndex = 0) - { - // verify the required parameter 'id' is set - if (id == null) - { - throw new Tribufu.Generated.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->GetUserAccounts"); - } - - Tribufu.Generated.Client.RequestOptions localVarRequestOptions = new Tribufu.Generated.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - }; - - // to determine the Accept header - string[] _accepts = new string[] { - "text/plain", - "application/json", - "text/json" - }; - - var localVarContentType = Tribufu.Generated.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - var localVarMultipartFormData = localVarContentType == "multipart/form-data"; - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = Tribufu.Generated.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - localVarRequestOptions.PathParameters.Add("id", Tribufu.Generated.Client.ClientUtils.ParameterToString(id)); // path parameter - - localVarRequestOptions.Operation = "TribufuGeneratedApi.GetUserAccounts"; - localVarRequestOptions.OperationIndex = operationIndex; - - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } - - // make the HTTP request - var localVarResponse = this.Client.Get>("/v1/users/{id}/accounts", localVarRequestOptions, this.Configuration); - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("GetUserAccounts", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - - /// - /// Get a list of connected accounts of the user. <b>🔒 Required permissions:</b> <code>tribufu.identity.user.account.list</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of List<Account> - public async System.Threading.Tasks.Task> GetUserAccountsAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - Tribufu.Generated.Client.ApiResponse> localVarResponse = await GetUserAccountsWithHttpInfoAsync(id, operationIndex, cancellationToken).ConfigureAwait(false); - return localVarResponse.Data; - } - - /// - /// Get a list of connected accounts of the user. <b>🔒 Required permissions:</b> <code>tribufu.identity.user.account.list</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ApiResponse (List<Account>) - public async System.Threading.Tasks.Task>> GetUserAccountsWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - // verify the required parameter 'id' is set - if (id == null) - { - throw new Tribufu.Generated.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->GetUserAccounts"); - } - - - Tribufu.Generated.Client.RequestOptions localVarRequestOptions = new Tribufu.Generated.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - }; - - // to determine the Accept header - string[] _accepts = new string[] { - "text/plain", - "application/json", - "text/json" - }; - - var localVarContentType = Tribufu.Generated.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = Tribufu.Generated.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - localVarRequestOptions.PathParameters.Add("id", Tribufu.Generated.Client.ClientUtils.ParameterToString(id)); // path parameter - - localVarRequestOptions.Operation = "TribufuGeneratedApi.GetUserAccounts"; - localVarRequestOptions.OperationIndex = operationIndex; - - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } - - // make the HTTP request - var localVarResponse = await this.AsynchronousClient.GetAsync>("/v1/users/{id}/accounts", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); - - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("GetUserAccounts", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - - /// - /// Get a user profile by id. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.get</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// Profile - public Profile GetUserById(string id, int operationIndex = 0) - { - Tribufu.Generated.Client.ApiResponse localVarResponse = GetUserByIdWithHttpInfo(id); - return localVarResponse.Data; - } - - /// - /// Get a user profile by id. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.get</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// ApiResponse of Profile - public Tribufu.Generated.Client.ApiResponse GetUserByIdWithHttpInfo(string id, int operationIndex = 0) - { - // verify the required parameter 'id' is set - if (id == null) - { - throw new Tribufu.Generated.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->GetUserById"); - } - - Tribufu.Generated.Client.RequestOptions localVarRequestOptions = new Tribufu.Generated.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - }; - - // to determine the Accept header - string[] _accepts = new string[] { - "text/plain", - "application/json", - "text/json" - }; - - var localVarContentType = Tribufu.Generated.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - var localVarMultipartFormData = localVarContentType == "multipart/form-data"; - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = Tribufu.Generated.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - localVarRequestOptions.PathParameters.Add("id", Tribufu.Generated.Client.ClientUtils.ParameterToString(id)); // path parameter - - localVarRequestOptions.Operation = "TribufuGeneratedApi.GetUserById"; - localVarRequestOptions.OperationIndex = operationIndex; - - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } - - // make the HTTP request - var localVarResponse = this.Client.Get("/v1/users/{id}", localVarRequestOptions, this.Configuration); - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("GetUserById", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - - /// - /// Get a user profile by id. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.get</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of Profile - public async System.Threading.Tasks.Task GetUserByIdAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - Tribufu.Generated.Client.ApiResponse localVarResponse = await GetUserByIdWithHttpInfoAsync(id, operationIndex, cancellationToken).ConfigureAwait(false); - return localVarResponse.Data; - } - - /// - /// Get a user profile by id. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.get</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ApiResponse (Profile) - public async System.Threading.Tasks.Task> GetUserByIdWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - // verify the required parameter 'id' is set - if (id == null) - { - throw new Tribufu.Generated.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->GetUserById"); - } - - - Tribufu.Generated.Client.RequestOptions localVarRequestOptions = new Tribufu.Generated.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - }; - - // to determine the Accept header - string[] _accepts = new string[] { - "text/plain", - "application/json", - "text/json" - }; - - var localVarContentType = Tribufu.Generated.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = Tribufu.Generated.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - localVarRequestOptions.PathParameters.Add("id", Tribufu.Generated.Client.ClientUtils.ParameterToString(id)); // path parameter - - localVarRequestOptions.Operation = "TribufuGeneratedApi.GetUserById"; - localVarRequestOptions.OperationIndex = operationIndex; - - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } - - // make the HTTP request - var localVarResponse = await this.AsynchronousClient.GetAsync("/v1/users/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); - - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("GetUserById", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - - /// - /// Get a user profile by name. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.get.name</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// Profile - public Profile GetUserByName(string name, int operationIndex = 0) - { - Tribufu.Generated.Client.ApiResponse localVarResponse = GetUserByNameWithHttpInfo(name); - return localVarResponse.Data; - } - - /// - /// Get a user profile by name. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.get.name</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// ApiResponse of Profile - public Tribufu.Generated.Client.ApiResponse GetUserByNameWithHttpInfo(string name, int operationIndex = 0) - { - // verify the required parameter 'name' is set - if (name == null) - { - throw new Tribufu.Generated.Client.ApiException(400, "Missing required parameter 'name' when calling TribufuGeneratedApi->GetUserByName"); - } - - Tribufu.Generated.Client.RequestOptions localVarRequestOptions = new Tribufu.Generated.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - }; - - // to determine the Accept header - string[] _accepts = new string[] { - "text/plain", - "application/json", - "text/json" - }; - - var localVarContentType = Tribufu.Generated.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - var localVarMultipartFormData = localVarContentType == "multipart/form-data"; - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = Tribufu.Generated.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - localVarRequestOptions.PathParameters.Add("name", Tribufu.Generated.Client.ClientUtils.ParameterToString(name)); // path parameter - - localVarRequestOptions.Operation = "TribufuGeneratedApi.GetUserByName"; - localVarRequestOptions.OperationIndex = operationIndex; - - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } - - // make the HTTP request - var localVarResponse = this.Client.Get("/v1/users/name/{name}", localVarRequestOptions, this.Configuration); - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("GetUserByName", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - - /// - /// Get a user profile by name. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.get.name</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of Profile - public async System.Threading.Tasks.Task GetUserByNameAsync(string name, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - Tribufu.Generated.Client.ApiResponse localVarResponse = await GetUserByNameWithHttpInfoAsync(name, operationIndex, cancellationToken).ConfigureAwait(false); - return localVarResponse.Data; - } - - /// - /// Get a user profile by name. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.get.name</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ApiResponse (Profile) - public async System.Threading.Tasks.Task> GetUserByNameWithHttpInfoAsync(string name, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - // verify the required parameter 'name' is set - if (name == null) - { - throw new Tribufu.Generated.Client.ApiException(400, "Missing required parameter 'name' when calling TribufuGeneratedApi->GetUserByName"); - } - - - Tribufu.Generated.Client.RequestOptions localVarRequestOptions = new Tribufu.Generated.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - }; - - // to determine the Accept header - string[] _accepts = new string[] { - "text/plain", - "application/json", - "text/json" - }; - - var localVarContentType = Tribufu.Generated.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = Tribufu.Generated.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - localVarRequestOptions.PathParameters.Add("name", Tribufu.Generated.Client.ClientUtils.ParameterToString(name)); // path parameter - - localVarRequestOptions.Operation = "TribufuGeneratedApi.GetUserByName"; - localVarRequestOptions.OperationIndex = operationIndex; - - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } - - // make the HTTP request - var localVarResponse = await this.AsynchronousClient.GetAsync("/v1/users/name/{name}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); - - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("GetUserByName", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - - /// - /// Get a user profile by uuid. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.get.uuid</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// Profile - public Profile GetUserByUuid(Guid uuid, int operationIndex = 0) - { - Tribufu.Generated.Client.ApiResponse localVarResponse = GetUserByUuidWithHttpInfo(uuid); - return localVarResponse.Data; - } - - /// - /// Get a user profile by uuid. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.get.uuid</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// ApiResponse of Profile - public Tribufu.Generated.Client.ApiResponse GetUserByUuidWithHttpInfo(Guid uuid, int operationIndex = 0) - { - Tribufu.Generated.Client.RequestOptions localVarRequestOptions = new Tribufu.Generated.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - }; - - // to determine the Accept header - string[] _accepts = new string[] { - "text/plain", - "application/json", - "text/json" - }; - - var localVarContentType = Tribufu.Generated.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - var localVarMultipartFormData = localVarContentType == "multipart/form-data"; - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = Tribufu.Generated.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - localVarRequestOptions.PathParameters.Add("uuid", Tribufu.Generated.Client.ClientUtils.ParameterToString(uuid)); // path parameter - - localVarRequestOptions.Operation = "TribufuGeneratedApi.GetUserByUuid"; - localVarRequestOptions.OperationIndex = operationIndex; - - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } - - // make the HTTP request - var localVarResponse = this.Client.Get("/v1/users/uuid/{uuid}", localVarRequestOptions, this.Configuration); - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("GetUserByUuid", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - - /// - /// Get a user profile by uuid. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.get.uuid</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of Profile - public async System.Threading.Tasks.Task GetUserByUuidAsync(Guid uuid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - Tribufu.Generated.Client.ApiResponse localVarResponse = await GetUserByUuidWithHttpInfoAsync(uuid, operationIndex, cancellationToken).ConfigureAwait(false); - return localVarResponse.Data; - } - - /// - /// Get a user profile by uuid. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.get.uuid</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ApiResponse (Profile) - public async System.Threading.Tasks.Task> GetUserByUuidWithHttpInfoAsync(Guid uuid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - - Tribufu.Generated.Client.RequestOptions localVarRequestOptions = new Tribufu.Generated.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - }; - - // to determine the Accept header - string[] _accepts = new string[] { - "text/plain", - "application/json", - "text/json" - }; - - var localVarContentType = Tribufu.Generated.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = Tribufu.Generated.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - localVarRequestOptions.PathParameters.Add("uuid", Tribufu.Generated.Client.ClientUtils.ParameterToString(uuid)); // path parameter - - localVarRequestOptions.Operation = "TribufuGeneratedApi.GetUserByUuid"; - localVarRequestOptions.OperationIndex = operationIndex; - - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } - - // make the HTTP request - var localVarResponse = await this.AsynchronousClient.GetAsync("/v1/users/uuid/{uuid}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); - - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("GetUserByUuid", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - - /// - /// Get a list of friends of the user. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.friend.list</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// List<Object> - public List GetUserFriends(string id, int operationIndex = 0) - { - Tribufu.Generated.Client.ApiResponse> localVarResponse = GetUserFriendsWithHttpInfo(id); - return localVarResponse.Data; - } - - /// - /// Get a list of friends of the user. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.friend.list</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// ApiResponse of List<Object> - public Tribufu.Generated.Client.ApiResponse> GetUserFriendsWithHttpInfo(string id, int operationIndex = 0) - { - // verify the required parameter 'id' is set - if (id == null) - { - throw new Tribufu.Generated.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->GetUserFriends"); - } - - Tribufu.Generated.Client.RequestOptions localVarRequestOptions = new Tribufu.Generated.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - }; - - // to determine the Accept header - string[] _accepts = new string[] { - "text/plain", - "application/json", - "text/json" - }; - - var localVarContentType = Tribufu.Generated.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - var localVarMultipartFormData = localVarContentType == "multipart/form-data"; - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = Tribufu.Generated.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - localVarRequestOptions.PathParameters.Add("id", Tribufu.Generated.Client.ClientUtils.ParameterToString(id)); // path parameter - - localVarRequestOptions.Operation = "TribufuGeneratedApi.GetUserFriends"; - localVarRequestOptions.OperationIndex = operationIndex; - - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } - - // make the HTTP request - var localVarResponse = this.Client.Get>("/v1/users/{id}/friends", localVarRequestOptions, this.Configuration); - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("GetUserFriends", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - - /// - /// Get a list of friends of the user. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.friend.list</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of List<Object> - public async System.Threading.Tasks.Task> GetUserFriendsAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - Tribufu.Generated.Client.ApiResponse> localVarResponse = await GetUserFriendsWithHttpInfoAsync(id, operationIndex, cancellationToken).ConfigureAwait(false); - return localVarResponse.Data; - } - - /// - /// Get a list of friends of the user. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.friend.list</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ApiResponse (List<Object>) - public async System.Threading.Tasks.Task>> GetUserFriendsWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - // verify the required parameter 'id' is set - if (id == null) - { - throw new Tribufu.Generated.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->GetUserFriends"); - } - - - Tribufu.Generated.Client.RequestOptions localVarRequestOptions = new Tribufu.Generated.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - }; - - // to determine the Accept header - string[] _accepts = new string[] { - "text/plain", - "application/json", - "text/json" - }; - - var localVarContentType = Tribufu.Generated.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = Tribufu.Generated.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - localVarRequestOptions.PathParameters.Add("id", Tribufu.Generated.Client.ClientUtils.ParameterToString(id)); // path parameter - - localVarRequestOptions.Operation = "TribufuGeneratedApi.GetUserFriends"; - localVarRequestOptions.OperationIndex = operationIndex; - - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } - - // make the HTTP request - var localVarResponse = await this.AsynchronousClient.GetAsync>("/v1/users/{id}/friends", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); - - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("GetUserFriends", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - - /// - /// Get a list of games the user has played. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.game.list</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// List<ProfileGame> - public List GetUserGames(string id, int operationIndex = 0) - { - Tribufu.Generated.Client.ApiResponse> localVarResponse = GetUserGamesWithHttpInfo(id); - return localVarResponse.Data; - } - - /// - /// Get a list of games the user has played. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.game.list</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// ApiResponse of List<ProfileGame> - public Tribufu.Generated.Client.ApiResponse> GetUserGamesWithHttpInfo(string id, int operationIndex = 0) - { - // verify the required parameter 'id' is set - if (id == null) - { - throw new Tribufu.Generated.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->GetUserGames"); - } - - Tribufu.Generated.Client.RequestOptions localVarRequestOptions = new Tribufu.Generated.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - }; - - // to determine the Accept header - string[] _accepts = new string[] { - "text/plain", - "application/json", - "text/json" - }; - - var localVarContentType = Tribufu.Generated.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - var localVarMultipartFormData = localVarContentType == "multipart/form-data"; - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = Tribufu.Generated.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - localVarRequestOptions.PathParameters.Add("id", Tribufu.Generated.Client.ClientUtils.ParameterToString(id)); // path parameter - - localVarRequestOptions.Operation = "TribufuGeneratedApi.GetUserGames"; - localVarRequestOptions.OperationIndex = operationIndex; - - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } - - // make the HTTP request - var localVarResponse = this.Client.Get>("/v1/users/{id}/games", localVarRequestOptions, this.Configuration); - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("GetUserGames", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - - /// - /// Get a list of games the user has played. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.game.list</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of List<ProfileGame> - public async System.Threading.Tasks.Task> GetUserGamesAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - Tribufu.Generated.Client.ApiResponse> localVarResponse = await GetUserGamesWithHttpInfoAsync(id, operationIndex, cancellationToken).ConfigureAwait(false); - return localVarResponse.Data; - } - - /// - /// Get a list of games the user has played. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.game.list</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ApiResponse (List<ProfileGame>) - public async System.Threading.Tasks.Task>> GetUserGamesWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - // verify the required parameter 'id' is set - if (id == null) - { - throw new Tribufu.Generated.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->GetUserGames"); - } - - - Tribufu.Generated.Client.RequestOptions localVarRequestOptions = new Tribufu.Generated.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - }; - - // to determine the Accept header - string[] _accepts = new string[] { - "text/plain", - "application/json", - "text/json" - }; - - var localVarContentType = Tribufu.Generated.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = Tribufu.Generated.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - localVarRequestOptions.PathParameters.Add("id", Tribufu.Generated.Client.ClientUtils.ParameterToString(id)); // path parameter - - localVarRequestOptions.Operation = "TribufuGeneratedApi.GetUserGames"; - localVarRequestOptions.OperationIndex = operationIndex; - - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } - - // make the HTTP request - var localVarResponse = await this.AsynchronousClient.GetAsync>("/v1/users/{id}/games", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); - - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("GetUserGames", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - - /// - /// Get a list of groups the user is a member of. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.group.list</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// List<ProfileGroup> - public List GetUserGroups(string id, int operationIndex = 0) - { - Tribufu.Generated.Client.ApiResponse> localVarResponse = GetUserGroupsWithHttpInfo(id); - return localVarResponse.Data; - } - - /// - /// Get a list of groups the user is a member of. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.group.list</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// ApiResponse of List<ProfileGroup> - public Tribufu.Generated.Client.ApiResponse> GetUserGroupsWithHttpInfo(string id, int operationIndex = 0) - { - // verify the required parameter 'id' is set - if (id == null) - { - throw new Tribufu.Generated.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->GetUserGroups"); - } - - Tribufu.Generated.Client.RequestOptions localVarRequestOptions = new Tribufu.Generated.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - }; - - // to determine the Accept header - string[] _accepts = new string[] { - "text/plain", - "application/json", - "text/json" - }; - - var localVarContentType = Tribufu.Generated.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - var localVarMultipartFormData = localVarContentType == "multipart/form-data"; - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = Tribufu.Generated.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - localVarRequestOptions.PathParameters.Add("id", Tribufu.Generated.Client.ClientUtils.ParameterToString(id)); // path parameter - - localVarRequestOptions.Operation = "TribufuGeneratedApi.GetUserGroups"; - localVarRequestOptions.OperationIndex = operationIndex; - - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } - - // make the HTTP request - var localVarResponse = this.Client.Get>("/v1/users/{id}/groups", localVarRequestOptions, this.Configuration); - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("GetUserGroups", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - - /// - /// Get a list of groups the user is a member of. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.group.list</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of List<ProfileGroup> - public async System.Threading.Tasks.Task> GetUserGroupsAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - Tribufu.Generated.Client.ApiResponse> localVarResponse = await GetUserGroupsWithHttpInfoAsync(id, operationIndex, cancellationToken).ConfigureAwait(false); - return localVarResponse.Data; - } - - /// - /// Get a list of groups the user is a member of. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.group.list</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ApiResponse (List<ProfileGroup>) - public async System.Threading.Tasks.Task>> GetUserGroupsWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - // verify the required parameter 'id' is set - if (id == null) - { - throw new Tribufu.Generated.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->GetUserGroups"); - } - - - Tribufu.Generated.Client.RequestOptions localVarRequestOptions = new Tribufu.Generated.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - }; - - // to determine the Accept header - string[] _accepts = new string[] { - "text/plain", - "application/json", - "text/json" - }; - - var localVarContentType = Tribufu.Generated.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = Tribufu.Generated.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - localVarRequestOptions.PathParameters.Add("id", Tribufu.Generated.Client.ClientUtils.ParameterToString(id)); // path parameter - - localVarRequestOptions.Operation = "TribufuGeneratedApi.GetUserGroups"; - localVarRequestOptions.OperationIndex = operationIndex; - - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } - - // make the HTTP request - var localVarResponse = await this.AsynchronousClient.GetAsync>("/v1/users/{id}/groups", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); - - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("GetUserGroups", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - - /// - /// Get current user information. <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.user.info</code> - /// - /// Thrown when fails to make API call - /// Index associated with the operation. - /// UserInfo - public UserInfo GetUserInfo(int operationIndex = 0) - { - Tribufu.Generated.Client.ApiResponse localVarResponse = GetUserInfoWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// Get current user information. <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.user.info</code> - /// - /// Thrown when fails to make API call - /// Index associated with the operation. - /// ApiResponse of UserInfo - public Tribufu.Generated.Client.ApiResponse GetUserInfoWithHttpInfo(int operationIndex = 0) - { - Tribufu.Generated.Client.RequestOptions localVarRequestOptions = new Tribufu.Generated.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - }; - - // to determine the Accept header - string[] _accepts = new string[] { - "text/plain", - "application/json", - "text/json" - }; - - var localVarContentType = Tribufu.Generated.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - var localVarMultipartFormData = localVarContentType == "multipart/form-data"; - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = Tribufu.Generated.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - - localVarRequestOptions.Operation = "TribufuGeneratedApi.GetUserInfo"; - localVarRequestOptions.OperationIndex = operationIndex; - - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } - - // make the HTTP request - var localVarResponse = this.Client.Get("/v1/oauth2/userinfo", localVarRequestOptions, this.Configuration); - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("GetUserInfo", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - - /// - /// Get current user information. <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.user.info</code> - /// - /// Thrown when fails to make API call - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of UserInfo - public async System.Threading.Tasks.Task GetUserInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - Tribufu.Generated.Client.ApiResponse localVarResponse = await GetUserInfoWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); - return localVarResponse.Data; - } - - /// - /// Get current user information. <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.user.info</code> - /// - /// Thrown when fails to make API call - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ApiResponse (UserInfo) - public async System.Threading.Tasks.Task> GetUserInfoWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - - Tribufu.Generated.Client.RequestOptions localVarRequestOptions = new Tribufu.Generated.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - }; - - // to determine the Accept header - string[] _accepts = new string[] { - "text/plain", - "application/json", - "text/json" - }; - - var localVarContentType = Tribufu.Generated.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = Tribufu.Generated.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - - localVarRequestOptions.Operation = "TribufuGeneratedApi.GetUserInfo"; - localVarRequestOptions.OperationIndex = operationIndex; - - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } - - // make the HTTP request - var localVarResponse = await this.AsynchronousClient.GetAsync("/v1/oauth2/userinfo", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); - - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("GetUserInfo", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - - /// - /// Get a list of punishments the user has received. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.punishment.list</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// List<Object> - public List GetUserPunishments(string id, int operationIndex = 0) - { - Tribufu.Generated.Client.ApiResponse> localVarResponse = GetUserPunishmentsWithHttpInfo(id); - return localVarResponse.Data; - } - - /// - /// Get a list of punishments the user has received. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.punishment.list</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// ApiResponse of List<Object> - public Tribufu.Generated.Client.ApiResponse> GetUserPunishmentsWithHttpInfo(string id, int operationIndex = 0) - { - // verify the required parameter 'id' is set - if (id == null) - { - throw new Tribufu.Generated.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->GetUserPunishments"); - } - - Tribufu.Generated.Client.RequestOptions localVarRequestOptions = new Tribufu.Generated.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - }; - - // to determine the Accept header - string[] _accepts = new string[] { - "text/plain", - "application/json", - "text/json" - }; - - var localVarContentType = Tribufu.Generated.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - var localVarMultipartFormData = localVarContentType == "multipart/form-data"; - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = Tribufu.Generated.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - localVarRequestOptions.PathParameters.Add("id", Tribufu.Generated.Client.ClientUtils.ParameterToString(id)); // path parameter - - localVarRequestOptions.Operation = "TribufuGeneratedApi.GetUserPunishments"; - localVarRequestOptions.OperationIndex = operationIndex; - - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } - - // make the HTTP request - var localVarResponse = this.Client.Get>("/v1/users/{id}/punishments", localVarRequestOptions, this.Configuration); - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("GetUserPunishments", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - - /// - /// Get a list of punishments the user has received. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.punishment.list</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of List<Object> - public async System.Threading.Tasks.Task> GetUserPunishmentsAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - Tribufu.Generated.Client.ApiResponse> localVarResponse = await GetUserPunishmentsWithHttpInfoAsync(id, operationIndex, cancellationToken).ConfigureAwait(false); - return localVarResponse.Data; - } - - /// - /// Get a list of punishments the user has received. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.punishment.list</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ApiResponse (List<Object>) - public async System.Threading.Tasks.Task>> GetUserPunishmentsWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - // verify the required parameter 'id' is set - if (id == null) - { - throw new Tribufu.Generated.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->GetUserPunishments"); - } - - - Tribufu.Generated.Client.RequestOptions localVarRequestOptions = new Tribufu.Generated.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - }; - - // to determine the Accept header - string[] _accepts = new string[] { - "text/plain", - "application/json", - "text/json" - }; - - var localVarContentType = Tribufu.Generated.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = Tribufu.Generated.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - localVarRequestOptions.PathParameters.Add("id", Tribufu.Generated.Client.ClientUtils.ParameterToString(id)); // path parameter - - localVarRequestOptions.Operation = "TribufuGeneratedApi.GetUserPunishments"; - localVarRequestOptions.OperationIndex = operationIndex; - - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } - - // make the HTTP request - var localVarResponse = await this.AsynchronousClient.GetAsync>("/v1/users/{id}/punishments", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); - - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("GetUserPunishments", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - - /// - /// Get a list of servers the user is owner of. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.game.server.list</code> - /// - /// Thrown when fails to make API call - /// - /// (optional) - /// (optional) - /// Index associated with the operation. - /// List<GameServer> - public List GetUserServers(string id, int? page = default(int?), int? limit = default(int?), int operationIndex = 0) - { - Tribufu.Generated.Client.ApiResponse> localVarResponse = GetUserServersWithHttpInfo(id, page, limit); - return localVarResponse.Data; - } - - /// - /// Get a list of servers the user is owner of. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.game.server.list</code> - /// - /// Thrown when fails to make API call - /// - /// (optional) - /// (optional) - /// Index associated with the operation. - /// ApiResponse of List<GameServer> - public Tribufu.Generated.Client.ApiResponse> GetUserServersWithHttpInfo(string id, int? page = default(int?), int? limit = default(int?), int operationIndex = 0) - { - // verify the required parameter 'id' is set - if (id == null) - { - throw new Tribufu.Generated.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->GetUserServers"); - } - - Tribufu.Generated.Client.RequestOptions localVarRequestOptions = new Tribufu.Generated.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - }; - - // to determine the Accept header - string[] _accepts = new string[] { - "text/plain", - "application/json", - "text/json" - }; - - var localVarContentType = Tribufu.Generated.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - var localVarMultipartFormData = localVarContentType == "multipart/form-data"; - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = Tribufu.Generated.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - localVarRequestOptions.PathParameters.Add("id", Tribufu.Generated.Client.ClientUtils.ParameterToString(id)); // path parameter - if (page != null) - { - localVarRequestOptions.QueryParameters.Add(Tribufu.Generated.Client.ClientUtils.ParameterToMultiMap("", "page", page)); - } - if (limit != null) - { - localVarRequestOptions.QueryParameters.Add(Tribufu.Generated.Client.ClientUtils.ParameterToMultiMap("", "limit", limit)); - } - - localVarRequestOptions.Operation = "TribufuGeneratedApi.GetUserServers"; - localVarRequestOptions.OperationIndex = operationIndex; - - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } - - // make the HTTP request - var localVarResponse = this.Client.Get>("/v1/users/{id}/servers", localVarRequestOptions, this.Configuration); - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("GetUserServers", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - - /// - /// Get a list of servers the user is owner of. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.game.server.list</code> - /// - /// Thrown when fails to make API call - /// - /// (optional) - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of List<GameServer> - public async System.Threading.Tasks.Task> GetUserServersAsync(string id, int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - Tribufu.Generated.Client.ApiResponse> localVarResponse = await GetUserServersWithHttpInfoAsync(id, page, limit, operationIndex, cancellationToken).ConfigureAwait(false); - return localVarResponse.Data; - } - - /// - /// Get a list of servers the user is owner of. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.game.server.list</code> - /// - /// Thrown when fails to make API call - /// - /// (optional) - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ApiResponse (List<GameServer>) - public async System.Threading.Tasks.Task>> GetUserServersWithHttpInfoAsync(string id, int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - // verify the required parameter 'id' is set - if (id == null) - { - throw new Tribufu.Generated.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->GetUserServers"); - } - - - Tribufu.Generated.Client.RequestOptions localVarRequestOptions = new Tribufu.Generated.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - }; - - // to determine the Accept header - string[] _accepts = new string[] { - "text/plain", - "application/json", - "text/json" - }; - - var localVarContentType = Tribufu.Generated.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = Tribufu.Generated.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - localVarRequestOptions.PathParameters.Add("id", Tribufu.Generated.Client.ClientUtils.ParameterToString(id)); // path parameter - if (page != null) - { - localVarRequestOptions.QueryParameters.Add(Tribufu.Generated.Client.ClientUtils.ParameterToMultiMap("", "page", page)); - } - if (limit != null) - { - localVarRequestOptions.QueryParameters.Add(Tribufu.Generated.Client.ClientUtils.ParameterToMultiMap("", "limit", limit)); - } - - localVarRequestOptions.Operation = "TribufuGeneratedApi.GetUserServers"; - localVarRequestOptions.OperationIndex = operationIndex; - - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } - - // make the HTTP request - var localVarResponse = await this.AsynchronousClient.GetAsync>("/v1/users/{id}/servers", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); - - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("GetUserServers", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - - /// - /// Get a list of user profiles. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.list</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// (optional) - /// Index associated with the operation. - /// List<Profile> - public List GetUsers(int? page = default(int?), int? limit = default(int?), int operationIndex = 0) - { - Tribufu.Generated.Client.ApiResponse> localVarResponse = GetUsersWithHttpInfo(page, limit); - return localVarResponse.Data; - } - - /// - /// Get a list of user profiles. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.list</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// (optional) - /// Index associated with the operation. - /// ApiResponse of List<Profile> - public Tribufu.Generated.Client.ApiResponse> GetUsersWithHttpInfo(int? page = default(int?), int? limit = default(int?), int operationIndex = 0) - { - Tribufu.Generated.Client.RequestOptions localVarRequestOptions = new Tribufu.Generated.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - }; - - // to determine the Accept header - string[] _accepts = new string[] { - "text/plain", - "application/json", - "text/json" - }; - - var localVarContentType = Tribufu.Generated.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - var localVarMultipartFormData = localVarContentType == "multipart/form-data"; - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = Tribufu.Generated.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - if (page != null) - { - localVarRequestOptions.QueryParameters.Add(Tribufu.Generated.Client.ClientUtils.ParameterToMultiMap("", "page", page)); - } - if (limit != null) - { - localVarRequestOptions.QueryParameters.Add(Tribufu.Generated.Client.ClientUtils.ParameterToMultiMap("", "limit", limit)); - } - - localVarRequestOptions.Operation = "TribufuGeneratedApi.GetUsers"; - localVarRequestOptions.OperationIndex = operationIndex; - - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } - - // make the HTTP request - var localVarResponse = this.Client.Get>("/v1/users", localVarRequestOptions, this.Configuration); - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("GetUsers", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - - /// - /// Get a list of user profiles. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.list</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of List<Profile> - public async System.Threading.Tasks.Task> GetUsersAsync(int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - Tribufu.Generated.Client.ApiResponse> localVarResponse = await GetUsersWithHttpInfoAsync(page, limit, operationIndex, cancellationToken).ConfigureAwait(false); - return localVarResponse.Data; - } - - /// - /// Get a list of user profiles. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.list</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ApiResponse (List<Profile>) - public async System.Threading.Tasks.Task>> GetUsersWithHttpInfoAsync(int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - - Tribufu.Generated.Client.RequestOptions localVarRequestOptions = new Tribufu.Generated.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - }; - - // to determine the Accept header - string[] _accepts = new string[] { - "text/plain", - "application/json", - "text/json" - }; - - var localVarContentType = Tribufu.Generated.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = Tribufu.Generated.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - if (page != null) - { - localVarRequestOptions.QueryParameters.Add(Tribufu.Generated.Client.ClientUtils.ParameterToMultiMap("", "page", page)); - } - if (limit != null) - { - localVarRequestOptions.QueryParameters.Add(Tribufu.Generated.Client.ClientUtils.ParameterToMultiMap("", "limit", limit)); - } - - localVarRequestOptions.Operation = "TribufuGeneratedApi.GetUsers"; - localVarRequestOptions.OperationIndex = operationIndex; - - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } - - // make the HTTP request - var localVarResponse = await this.AsynchronousClient.GetAsync>("/v1/users", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); - - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("GetUsers", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - - /// - /// Hash a string using argon2. <b>🔒 Required permissions:</b> <code>tribufu.utils.hash.argon2</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// Index associated with the operation. - /// HashViewModel - public HashViewModel HashArgon2(HashViewModel? hashViewModel = default(HashViewModel?), int operationIndex = 0) - { - Tribufu.Generated.Client.ApiResponse localVarResponse = HashArgon2WithHttpInfo(hashViewModel); - return localVarResponse.Data; - } - - /// - /// Hash a string using argon2. <b>🔒 Required permissions:</b> <code>tribufu.utils.hash.argon2</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// Index associated with the operation. - /// ApiResponse of HashViewModel - public Tribufu.Generated.Client.ApiResponse HashArgon2WithHttpInfo(HashViewModel? hashViewModel = default(HashViewModel?), int operationIndex = 0) - { - Tribufu.Generated.Client.RequestOptions localVarRequestOptions = new Tribufu.Generated.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - "application/json-patch+json", - "application/json", - "text/json", - "application/*+json" - }; - - // to determine the Accept header - string[] _accepts = new string[] { - "text/plain", - "application/json", - "text/json" - }; - - var localVarContentType = Tribufu.Generated.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - var localVarMultipartFormData = localVarContentType == "multipart/form-data"; - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = Tribufu.Generated.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - localVarRequestOptions.Data = hashViewModel; - - localVarRequestOptions.Operation = "TribufuGeneratedApi.HashArgon2"; - localVarRequestOptions.OperationIndex = operationIndex; - - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } - - // make the HTTP request - var localVarResponse = this.Client.Post("/v1/utils/argon2", localVarRequestOptions, this.Configuration); - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("HashArgon2", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - - /// - /// Hash a string using argon2. <b>🔒 Required permissions:</b> <code>tribufu.utils.hash.argon2</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of HashViewModel - public async System.Threading.Tasks.Task HashArgon2Async(HashViewModel? hashViewModel = default(HashViewModel?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - Tribufu.Generated.Client.ApiResponse localVarResponse = await HashArgon2WithHttpInfoAsync(hashViewModel, operationIndex, cancellationToken).ConfigureAwait(false); - return localVarResponse.Data; - } - - /// - /// Hash a string using argon2. <b>🔒 Required permissions:</b> <code>tribufu.utils.hash.argon2</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ApiResponse (HashViewModel) - public async System.Threading.Tasks.Task> HashArgon2WithHttpInfoAsync(HashViewModel? hashViewModel = default(HashViewModel?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - - Tribufu.Generated.Client.RequestOptions localVarRequestOptions = new Tribufu.Generated.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - "application/json-patch+json", - "application/json", - "text/json", - "application/*+json" - }; - - // to determine the Accept header - string[] _accepts = new string[] { - "text/plain", - "application/json", - "text/json" - }; - - var localVarContentType = Tribufu.Generated.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = Tribufu.Generated.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - localVarRequestOptions.Data = hashViewModel; - - localVarRequestOptions.Operation = "TribufuGeneratedApi.HashArgon2"; - localVarRequestOptions.OperationIndex = operationIndex; - - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } - - // make the HTTP request - var localVarResponse = await this.AsynchronousClient.PostAsync("/v1/utils/argon2", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); - - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("HashArgon2", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - - /// - /// Hash a string using bcrypt. <b>🔒 Required permissions:</b> <code>tribufu.utils.hash.bcrypt</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// Index associated with the operation. - /// HashViewModel - public HashViewModel HashBcrypt(HashViewModel? hashViewModel = default(HashViewModel?), int operationIndex = 0) - { - Tribufu.Generated.Client.ApiResponse localVarResponse = HashBcryptWithHttpInfo(hashViewModel); - return localVarResponse.Data; - } - - /// - /// Hash a string using bcrypt. <b>🔒 Required permissions:</b> <code>tribufu.utils.hash.bcrypt</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// Index associated with the operation. - /// ApiResponse of HashViewModel - public Tribufu.Generated.Client.ApiResponse HashBcryptWithHttpInfo(HashViewModel? hashViewModel = default(HashViewModel?), int operationIndex = 0) - { - Tribufu.Generated.Client.RequestOptions localVarRequestOptions = new Tribufu.Generated.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - "application/json-patch+json", - "application/json", - "text/json", - "application/*+json" - }; - - // to determine the Accept header - string[] _accepts = new string[] { - "text/plain", - "application/json", - "text/json" - }; - - var localVarContentType = Tribufu.Generated.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - var localVarMultipartFormData = localVarContentType == "multipart/form-data"; - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = Tribufu.Generated.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - localVarRequestOptions.Data = hashViewModel; - - localVarRequestOptions.Operation = "TribufuGeneratedApi.HashBcrypt"; - localVarRequestOptions.OperationIndex = operationIndex; - - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } - - // make the HTTP request - var localVarResponse = this.Client.Post("/v1/utils/bcrypt", localVarRequestOptions, this.Configuration); - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("HashBcrypt", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - - /// - /// Hash a string using bcrypt. <b>🔒 Required permissions:</b> <code>tribufu.utils.hash.bcrypt</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of HashViewModel - public async System.Threading.Tasks.Task HashBcryptAsync(HashViewModel? hashViewModel = default(HashViewModel?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - Tribufu.Generated.Client.ApiResponse localVarResponse = await HashBcryptWithHttpInfoAsync(hashViewModel, operationIndex, cancellationToken).ConfigureAwait(false); - return localVarResponse.Data; - } - - /// - /// Hash a string using bcrypt. <b>🔒 Required permissions:</b> <code>tribufu.utils.hash.bcrypt</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ApiResponse (HashViewModel) - public async System.Threading.Tasks.Task> HashBcryptWithHttpInfoAsync(HashViewModel? hashViewModel = default(HashViewModel?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - - Tribufu.Generated.Client.RequestOptions localVarRequestOptions = new Tribufu.Generated.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - "application/json-patch+json", - "application/json", - "text/json", - "application/*+json" - }; - - // to determine the Accept header - string[] _accepts = new string[] { - "text/plain", - "application/json", - "text/json" - }; - - var localVarContentType = Tribufu.Generated.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = Tribufu.Generated.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - localVarRequestOptions.Data = hashViewModel; - - localVarRequestOptions.Operation = "TribufuGeneratedApi.HashBcrypt"; - localVarRequestOptions.OperationIndex = operationIndex; - - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } - - // make the HTTP request - var localVarResponse = await this.AsynchronousClient.PostAsync("/v1/utils/bcrypt", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); - - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("HashBcrypt", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - - /// - /// Hash a string using md5. <b>🔒 Required permissions:</b> <code>tribufu.utils.hash.md5</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// Index associated with the operation. - /// HashViewModel - public HashViewModel HashMd5(HashViewModel? hashViewModel = default(HashViewModel?), int operationIndex = 0) - { - Tribufu.Generated.Client.ApiResponse localVarResponse = HashMd5WithHttpInfo(hashViewModel); - return localVarResponse.Data; - } - - /// - /// Hash a string using md5. <b>🔒 Required permissions:</b> <code>tribufu.utils.hash.md5</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// Index associated with the operation. - /// ApiResponse of HashViewModel - public Tribufu.Generated.Client.ApiResponse HashMd5WithHttpInfo(HashViewModel? hashViewModel = default(HashViewModel?), int operationIndex = 0) - { - Tribufu.Generated.Client.RequestOptions localVarRequestOptions = new Tribufu.Generated.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - "application/json-patch+json", - "application/json", - "text/json", - "application/*+json" - }; - - // to determine the Accept header - string[] _accepts = new string[] { - "text/plain", - "application/json", - "text/json" - }; - - var localVarContentType = Tribufu.Generated.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - var localVarMultipartFormData = localVarContentType == "multipart/form-data"; - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = Tribufu.Generated.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - localVarRequestOptions.Data = hashViewModel; - - localVarRequestOptions.Operation = "TribufuGeneratedApi.HashMd5"; - localVarRequestOptions.OperationIndex = operationIndex; - - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } - - // make the HTTP request - var localVarResponse = this.Client.Post("/v1/utils/md5", localVarRequestOptions, this.Configuration); - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("HashMd5", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - - /// - /// Hash a string using md5. <b>🔒 Required permissions:</b> <code>tribufu.utils.hash.md5</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of HashViewModel - public async System.Threading.Tasks.Task HashMd5Async(HashViewModel? hashViewModel = default(HashViewModel?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - Tribufu.Generated.Client.ApiResponse localVarResponse = await HashMd5WithHttpInfoAsync(hashViewModel, operationIndex, cancellationToken).ConfigureAwait(false); - return localVarResponse.Data; - } - - /// - /// Hash a string using md5. <b>🔒 Required permissions:</b> <code>tribufu.utils.hash.md5</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ApiResponse (HashViewModel) - public async System.Threading.Tasks.Task> HashMd5WithHttpInfoAsync(HashViewModel? hashViewModel = default(HashViewModel?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - - Tribufu.Generated.Client.RequestOptions localVarRequestOptions = new Tribufu.Generated.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - "application/json-patch+json", - "application/json", - "text/json", - "application/*+json" - }; - - // to determine the Accept header - string[] _accepts = new string[] { - "text/plain", - "application/json", - "text/json" - }; - - var localVarContentType = Tribufu.Generated.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = Tribufu.Generated.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - localVarRequestOptions.Data = hashViewModel; - - localVarRequestOptions.Operation = "TribufuGeneratedApi.HashMd5"; - localVarRequestOptions.OperationIndex = operationIndex; - - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } - - // make the HTTP request - var localVarResponse = await this.AsynchronousClient.PostAsync("/v1/utils/md5", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); - - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("HashMd5", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - - /// - /// Hash a string using sha256. <b>🔒 Required permissions:</b> <code>tribufu.utils.hash.sha256</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// Index associated with the operation. - /// HashViewModel - public HashViewModel HashSha256(HashViewModel? hashViewModel = default(HashViewModel?), int operationIndex = 0) - { - Tribufu.Generated.Client.ApiResponse localVarResponse = HashSha256WithHttpInfo(hashViewModel); - return localVarResponse.Data; - } - - /// - /// Hash a string using sha256. <b>🔒 Required permissions:</b> <code>tribufu.utils.hash.sha256</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// Index associated with the operation. - /// ApiResponse of HashViewModel - public Tribufu.Generated.Client.ApiResponse HashSha256WithHttpInfo(HashViewModel? hashViewModel = default(HashViewModel?), int operationIndex = 0) - { - Tribufu.Generated.Client.RequestOptions localVarRequestOptions = new Tribufu.Generated.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - "application/json-patch+json", - "application/json", - "text/json", - "application/*+json" - }; - - // to determine the Accept header - string[] _accepts = new string[] { - "text/plain", - "application/json", - "text/json" - }; - - var localVarContentType = Tribufu.Generated.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - var localVarMultipartFormData = localVarContentType == "multipart/form-data"; - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = Tribufu.Generated.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - localVarRequestOptions.Data = hashViewModel; - - localVarRequestOptions.Operation = "TribufuGeneratedApi.HashSha256"; - localVarRequestOptions.OperationIndex = operationIndex; - - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } - - // make the HTTP request - var localVarResponse = this.Client.Post("/v1/utils/sha256", localVarRequestOptions, this.Configuration); - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("HashSha256", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - - /// - /// Hash a string using sha256. <b>🔒 Required permissions:</b> <code>tribufu.utils.hash.sha256</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of HashViewModel - public async System.Threading.Tasks.Task HashSha256Async(HashViewModel? hashViewModel = default(HashViewModel?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - Tribufu.Generated.Client.ApiResponse localVarResponse = await HashSha256WithHttpInfoAsync(hashViewModel, operationIndex, cancellationToken).ConfigureAwait(false); - return localVarResponse.Data; - } - - /// - /// Hash a string using sha256. <b>🔒 Required permissions:</b> <code>tribufu.utils.hash.sha256</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ApiResponse (HashViewModel) - public async System.Threading.Tasks.Task> HashSha256WithHttpInfoAsync(HashViewModel? hashViewModel = default(HashViewModel?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - - Tribufu.Generated.Client.RequestOptions localVarRequestOptions = new Tribufu.Generated.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - "application/json-patch+json", - "application/json", - "text/json", - "application/*+json" - }; - - // to determine the Accept header - string[] _accepts = new string[] { - "text/plain", - "application/json", - "text/json" - }; - - var localVarContentType = Tribufu.Generated.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = Tribufu.Generated.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - localVarRequestOptions.Data = hashViewModel; - - localVarRequestOptions.Operation = "TribufuGeneratedApi.HashSha256"; - localVarRequestOptions.OperationIndex = operationIndex; - - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } - - // make the HTTP request - var localVarResponse = await this.AsynchronousClient.PostAsync("/v1/utils/sha256", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); - - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("HashSha256", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - - /// - /// Introspect a token. <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.token.introspect</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// Index associated with the operation. - /// - public void IntrospectToken(IntrospectRequest? introspectRequest = default(IntrospectRequest?), int operationIndex = 0) - { - IntrospectTokenWithHttpInfo(introspectRequest); - } - - /// - /// Introspect a token. <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.token.introspect</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// Index associated with the operation. - /// ApiResponse of Object(void) - public Tribufu.Generated.Client.ApiResponse IntrospectTokenWithHttpInfo(IntrospectRequest? introspectRequest = default(IntrospectRequest?), int operationIndex = 0) - { - Tribufu.Generated.Client.RequestOptions localVarRequestOptions = new Tribufu.Generated.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - "application/json", - "application/x-www-form-urlencoded" - }; - - // to determine the Accept header - string[] _accepts = new string[] { - }; - - var localVarContentType = Tribufu.Generated.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - var localVarMultipartFormData = localVarContentType == "multipart/form-data"; - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = Tribufu.Generated.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - localVarRequestOptions.Data = introspectRequest; - - localVarRequestOptions.Operation = "TribufuGeneratedApi.IntrospectToken"; - localVarRequestOptions.OperationIndex = operationIndex; - - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } - - // make the HTTP request - var localVarResponse = this.Client.Post("/v1/oauth2/introspect", localVarRequestOptions, this.Configuration); - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("IntrospectToken", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - - /// - /// Introspect a token. <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.token.introspect</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of void - public async System.Threading.Tasks.Task IntrospectTokenAsync(IntrospectRequest? introspectRequest = default(IntrospectRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - await IntrospectTokenWithHttpInfoAsync(introspectRequest, operationIndex, cancellationToken).ConfigureAwait(false); - } - - /// - /// Introspect a token. <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.token.introspect</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ApiResponse - public async System.Threading.Tasks.Task> IntrospectTokenWithHttpInfoAsync(IntrospectRequest? introspectRequest = default(IntrospectRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - - Tribufu.Generated.Client.RequestOptions localVarRequestOptions = new Tribufu.Generated.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - "application/json", - "application/x-www-form-urlencoded" - }; - - // to determine the Accept header - string[] _accepts = new string[] { - }; - - var localVarContentType = Tribufu.Generated.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = Tribufu.Generated.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - localVarRequestOptions.Data = introspectRequest; - - localVarRequestOptions.Operation = "TribufuGeneratedApi.IntrospectToken"; - localVarRequestOptions.OperationIndex = operationIndex; - - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } - - // make the HTTP request - var localVarResponse = await this.AsynchronousClient.PostAsync("/v1/oauth2/introspect", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); - - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("IntrospectToken", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - - /// - /// Login with name or email and password. <b>🔒 Required permissions:</b> <code>tribufu.identity.token.create</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// Index associated with the operation. - /// LoginResponse - [Obsolete] - public LoginResponse Login(LoginRequest? loginRequest = default(LoginRequest?), int operationIndex = 0) - { - Tribufu.Generated.Client.ApiResponse localVarResponse = LoginWithHttpInfo(loginRequest); - return localVarResponse.Data; - } - - /// - /// Login with name or email and password. <b>🔒 Required permissions:</b> <code>tribufu.identity.token.create</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// Index associated with the operation. - /// ApiResponse of LoginResponse - [Obsolete] - public Tribufu.Generated.Client.ApiResponse LoginWithHttpInfo(LoginRequest? loginRequest = default(LoginRequest?), int operationIndex = 0) - { - Tribufu.Generated.Client.RequestOptions localVarRequestOptions = new Tribufu.Generated.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - "application/json-patch+json", - "application/json", - "text/json", - "application/*+json" - }; - - // to determine the Accept header - string[] _accepts = new string[] { - "text/plain", - "application/json", - "text/json" - }; - - var localVarContentType = Tribufu.Generated.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - var localVarMultipartFormData = localVarContentType == "multipart/form-data"; - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = Tribufu.Generated.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - localVarRequestOptions.Data = loginRequest; - - localVarRequestOptions.Operation = "TribufuGeneratedApi.Login"; - localVarRequestOptions.OperationIndex = operationIndex; - - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } - - // make the HTTP request - var localVarResponse = this.Client.Post("/v1/login", localVarRequestOptions, this.Configuration); - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("Login", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - - /// - /// Login with name or email and password. <b>🔒 Required permissions:</b> <code>tribufu.identity.token.create</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of LoginResponse - [Obsolete] - public async System.Threading.Tasks.Task LoginAsync(LoginRequest? loginRequest = default(LoginRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - Tribufu.Generated.Client.ApiResponse localVarResponse = await LoginWithHttpInfoAsync(loginRequest, operationIndex, cancellationToken).ConfigureAwait(false); - return localVarResponse.Data; - } - - /// - /// Login with name or email and password. <b>🔒 Required permissions:</b> <code>tribufu.identity.token.create</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ApiResponse (LoginResponse) - [Obsolete] - public async System.Threading.Tasks.Task> LoginWithHttpInfoAsync(LoginRequest? loginRequest = default(LoginRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - - Tribufu.Generated.Client.RequestOptions localVarRequestOptions = new Tribufu.Generated.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - "application/json-patch+json", - "application/json", - "text/json", - "application/*+json" - }; - - // to determine the Accept header - string[] _accepts = new string[] { - "text/plain", - "application/json", - "text/json" - }; - - var localVarContentType = Tribufu.Generated.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = Tribufu.Generated.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - localVarRequestOptions.Data = loginRequest; - - localVarRequestOptions.Operation = "TribufuGeneratedApi.Login"; - localVarRequestOptions.OperationIndex = operationIndex; - - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } - - // make the HTTP request - var localVarResponse = await this.AsynchronousClient.PostAsync("/v1/login", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); - - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("Login", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - - /// - /// Invalidate credentials. <b>🔒 Required permissions:</b> <code>tribufu.identity.token.revoke</code> - /// - /// Thrown when fails to make API call - /// Index associated with the operation. - /// - [Obsolete] - public void Logout(int operationIndex = 0) - { - LogoutWithHttpInfo(); - } - - /// - /// Invalidate credentials. <b>🔒 Required permissions:</b> <code>tribufu.identity.token.revoke</code> - /// - /// Thrown when fails to make API call - /// Index associated with the operation. - /// ApiResponse of Object(void) - [Obsolete] - public Tribufu.Generated.Client.ApiResponse LogoutWithHttpInfo(int operationIndex = 0) - { - Tribufu.Generated.Client.RequestOptions localVarRequestOptions = new Tribufu.Generated.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - }; - - // to determine the Accept header - string[] _accepts = new string[] { - }; - - var localVarContentType = Tribufu.Generated.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - var localVarMultipartFormData = localVarContentType == "multipart/form-data"; - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = Tribufu.Generated.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - - localVarRequestOptions.Operation = "TribufuGeneratedApi.Logout"; - localVarRequestOptions.OperationIndex = operationIndex; - - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } - - // make the HTTP request - var localVarResponse = this.Client.Post("/v1/logout", localVarRequestOptions, this.Configuration); - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("Logout", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - - /// - /// Invalidate credentials. <b>🔒 Required permissions:</b> <code>tribufu.identity.token.revoke</code> - /// - /// Thrown when fails to make API call - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of void - [Obsolete] - public async System.Threading.Tasks.Task LogoutAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - await LogoutWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); - } - - /// - /// Invalidate credentials. <b>🔒 Required permissions:</b> <code>tribufu.identity.token.revoke</code> - /// - /// Thrown when fails to make API call - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ApiResponse - [Obsolete] - public async System.Threading.Tasks.Task> LogoutWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - - Tribufu.Generated.Client.RequestOptions localVarRequestOptions = new Tribufu.Generated.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - }; - - // to determine the Accept header - string[] _accepts = new string[] { - }; - - var localVarContentType = Tribufu.Generated.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = Tribufu.Generated.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - - localVarRequestOptions.Operation = "TribufuGeneratedApi.Logout"; - localVarRequestOptions.OperationIndex = operationIndex; - - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } - - // make the HTTP request - var localVarResponse = await this.AsynchronousClient.PostAsync("/v1/logout", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); - - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("Logout", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - - /// - /// Refresh credentials. <b>🔒 Required permissions:</b> <code>tribufu.identity.token.refresh</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// Index associated with the operation. - /// LoginResponse - [Obsolete] - public LoginResponse Refresh(RefreshRequest? refreshRequest = default(RefreshRequest?), int operationIndex = 0) - { - Tribufu.Generated.Client.ApiResponse localVarResponse = RefreshWithHttpInfo(refreshRequest); - return localVarResponse.Data; - } - - /// - /// Refresh credentials. <b>🔒 Required permissions:</b> <code>tribufu.identity.token.refresh</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// Index associated with the operation. - /// ApiResponse of LoginResponse - [Obsolete] - public Tribufu.Generated.Client.ApiResponse RefreshWithHttpInfo(RefreshRequest? refreshRequest = default(RefreshRequest?), int operationIndex = 0) - { - Tribufu.Generated.Client.RequestOptions localVarRequestOptions = new Tribufu.Generated.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - "application/json-patch+json", - "application/json", - "text/json", - "application/*+json" - }; - - // to determine the Accept header - string[] _accepts = new string[] { - "text/plain", - "application/json", - "text/json" - }; - - var localVarContentType = Tribufu.Generated.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - var localVarMultipartFormData = localVarContentType == "multipart/form-data"; - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = Tribufu.Generated.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - localVarRequestOptions.Data = refreshRequest; - - localVarRequestOptions.Operation = "TribufuGeneratedApi.Refresh"; - localVarRequestOptions.OperationIndex = operationIndex; - - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } - - // make the HTTP request - var localVarResponse = this.Client.Post("/v1/refresh", localVarRequestOptions, this.Configuration); - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("Refresh", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - - /// - /// Refresh credentials. <b>🔒 Required permissions:</b> <code>tribufu.identity.token.refresh</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of LoginResponse - [Obsolete] - public async System.Threading.Tasks.Task RefreshAsync(RefreshRequest? refreshRequest = default(RefreshRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - Tribufu.Generated.Client.ApiResponse localVarResponse = await RefreshWithHttpInfoAsync(refreshRequest, operationIndex, cancellationToken).ConfigureAwait(false); - return localVarResponse.Data; - } - - /// - /// Refresh credentials. <b>🔒 Required permissions:</b> <code>tribufu.identity.token.refresh</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ApiResponse (LoginResponse) - [Obsolete] - public async System.Threading.Tasks.Task> RefreshWithHttpInfoAsync(RefreshRequest? refreshRequest = default(RefreshRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - - Tribufu.Generated.Client.RequestOptions localVarRequestOptions = new Tribufu.Generated.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - "application/json-patch+json", - "application/json", - "text/json", - "application/*+json" - }; - - // to determine the Accept header - string[] _accepts = new string[] { - "text/plain", - "application/json", - "text/json" - }; - - var localVarContentType = Tribufu.Generated.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = Tribufu.Generated.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - localVarRequestOptions.Data = refreshRequest; - - localVarRequestOptions.Operation = "TribufuGeneratedApi.Refresh"; - localVarRequestOptions.OperationIndex = operationIndex; - - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } - - // make the HTTP request - var localVarResponse = await this.AsynchronousClient.PostAsync("/v1/refresh", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); - - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("Refresh", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - - /// - /// Create a new user. <b>🔒 Required permissions:</b> <code>tribufu.identity.user.create</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// Index associated with the operation. - /// LoginResponse - public LoginResponse Register(RegisterRequest? registerRequest = default(RegisterRequest?), int operationIndex = 0) - { - Tribufu.Generated.Client.ApiResponse localVarResponse = RegisterWithHttpInfo(registerRequest); - return localVarResponse.Data; - } - - /// - /// Create a new user. <b>🔒 Required permissions:</b> <code>tribufu.identity.user.create</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// Index associated with the operation. - /// ApiResponse of LoginResponse - public Tribufu.Generated.Client.ApiResponse RegisterWithHttpInfo(RegisterRequest? registerRequest = default(RegisterRequest?), int operationIndex = 0) - { - Tribufu.Generated.Client.RequestOptions localVarRequestOptions = new Tribufu.Generated.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - "application/json-patch+json", - "application/json", - "text/json", - "application/*+json" - }; - - // to determine the Accept header - string[] _accepts = new string[] { - "text/plain", - "application/json", - "text/json" - }; - - var localVarContentType = Tribufu.Generated.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - var localVarMultipartFormData = localVarContentType == "multipart/form-data"; - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = Tribufu.Generated.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - localVarRequestOptions.Data = registerRequest; - - localVarRequestOptions.Operation = "TribufuGeneratedApi.Register"; - localVarRequestOptions.OperationIndex = operationIndex; - - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } - - // make the HTTP request - var localVarResponse = this.Client.Post("/v1/register", localVarRequestOptions, this.Configuration); - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("Register", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - - /// - /// Create a new user. <b>🔒 Required permissions:</b> <code>tribufu.identity.user.create</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of LoginResponse - public async System.Threading.Tasks.Task RegisterAsync(RegisterRequest? registerRequest = default(RegisterRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - Tribufu.Generated.Client.ApiResponse localVarResponse = await RegisterWithHttpInfoAsync(registerRequest, operationIndex, cancellationToken).ConfigureAwait(false); - return localVarResponse.Data; - } - - /// - /// Create a new user. <b>🔒 Required permissions:</b> <code>tribufu.identity.user.create</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ApiResponse (LoginResponse) - public async System.Threading.Tasks.Task> RegisterWithHttpInfoAsync(RegisterRequest? registerRequest = default(RegisterRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - - Tribufu.Generated.Client.RequestOptions localVarRequestOptions = new Tribufu.Generated.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - "application/json-patch+json", - "application/json", - "text/json", - "application/*+json" - }; - - // to determine the Accept header - string[] _accepts = new string[] { - "text/plain", - "application/json", - "text/json" - }; - - var localVarContentType = Tribufu.Generated.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = Tribufu.Generated.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - localVarRequestOptions.Data = registerRequest; - - localVarRequestOptions.Operation = "TribufuGeneratedApi.Register"; - localVarRequestOptions.OperationIndex = operationIndex; - - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } - - // make the HTTP request - var localVarResponse = await this.AsynchronousClient.PostAsync("/v1/register", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); - - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("Register", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - - /// - /// Revoke a token. <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.token.revoke</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// Index associated with the operation. - /// - public void RevokeToken(RevokeRequest? revokeRequest = default(RevokeRequest?), int operationIndex = 0) - { - RevokeTokenWithHttpInfo(revokeRequest); - } - - /// - /// Revoke a token. <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.token.revoke</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// Index associated with the operation. - /// ApiResponse of Object(void) - public Tribufu.Generated.Client.ApiResponse RevokeTokenWithHttpInfo(RevokeRequest? revokeRequest = default(RevokeRequest?), int operationIndex = 0) - { - Tribufu.Generated.Client.RequestOptions localVarRequestOptions = new Tribufu.Generated.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - "application/json", - "application/x-www-form-urlencoded" - }; - - // to determine the Accept header - string[] _accepts = new string[] { - }; - - var localVarContentType = Tribufu.Generated.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - var localVarMultipartFormData = localVarContentType == "multipart/form-data"; - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = Tribufu.Generated.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - localVarRequestOptions.Data = revokeRequest; - - localVarRequestOptions.Operation = "TribufuGeneratedApi.RevokeToken"; - localVarRequestOptions.OperationIndex = operationIndex; - - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } - - // make the HTTP request - var localVarResponse = this.Client.Post("/v1/oauth2/revoke", localVarRequestOptions, this.Configuration); - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("RevokeToken", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - - /// - /// Revoke a token. <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.token.revoke</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of void - public async System.Threading.Tasks.Task RevokeTokenAsync(RevokeRequest? revokeRequest = default(RevokeRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - await RevokeTokenWithHttpInfoAsync(revokeRequest, operationIndex, cancellationToken).ConfigureAwait(false); - } - - /// - /// Revoke a token. <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.token.revoke</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ApiResponse - public async System.Threading.Tasks.Task> RevokeTokenWithHttpInfoAsync(RevokeRequest? revokeRequest = default(RevokeRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - - Tribufu.Generated.Client.RequestOptions localVarRequestOptions = new Tribufu.Generated.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - "application/json", - "application/x-www-form-urlencoded" - }; - - // to determine the Accept header - string[] _accepts = new string[] { - }; - - var localVarContentType = Tribufu.Generated.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = Tribufu.Generated.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - localVarRequestOptions.Data = revokeRequest; - - localVarRequestOptions.Operation = "TribufuGeneratedApi.RevokeToken"; - localVarRequestOptions.OperationIndex = operationIndex; - - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } - - // make the HTTP request - var localVarResponse = await this.AsynchronousClient.PostAsync("/v1/oauth2/revoke", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); - - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("RevokeToken", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - - /// - /// Advanced search for servers or players. <b>🔒 Required permissions:</b> <code>tribufu.community.search</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// Index associated with the operation. - /// List<Object> - public List Search(SearchRequest? searchRequest = default(SearchRequest?), int operationIndex = 0) - { - Tribufu.Generated.Client.ApiResponse> localVarResponse = SearchWithHttpInfo(searchRequest); - return localVarResponse.Data; - } - - /// - /// Advanced search for servers or players. <b>🔒 Required permissions:</b> <code>tribufu.community.search</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// Index associated with the operation. - /// ApiResponse of List<Object> - public Tribufu.Generated.Client.ApiResponse> SearchWithHttpInfo(SearchRequest? searchRequest = default(SearchRequest?), int operationIndex = 0) - { - Tribufu.Generated.Client.RequestOptions localVarRequestOptions = new Tribufu.Generated.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - "application/json-patch+json", - "application/json", - "text/json", - "application/*+json" - }; - - // to determine the Accept header - string[] _accepts = new string[] { - "text/plain", - "application/json", - "text/json" - }; - - var localVarContentType = Tribufu.Generated.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - var localVarMultipartFormData = localVarContentType == "multipart/form-data"; - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = Tribufu.Generated.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - localVarRequestOptions.Data = searchRequest; - - localVarRequestOptions.Operation = "TribufuGeneratedApi.Search"; - localVarRequestOptions.OperationIndex = operationIndex; - - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } - - // make the HTTP request - var localVarResponse = this.Client.Post>("/v1/search", localVarRequestOptions, this.Configuration); - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("Search", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - - /// - /// Advanced search for servers or players. <b>🔒 Required permissions:</b> <code>tribufu.community.search</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of List<Object> - public async System.Threading.Tasks.Task> SearchAsync(SearchRequest? searchRequest = default(SearchRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - Tribufu.Generated.Client.ApiResponse> localVarResponse = await SearchWithHttpInfoAsync(searchRequest, operationIndex, cancellationToken).ConfigureAwait(false); - return localVarResponse.Data; - } - - /// - /// Advanced search for servers or players. <b>🔒 Required permissions:</b> <code>tribufu.community.search</code> - /// - /// Thrown when fails to make API call - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ApiResponse (List<Object>) - public async System.Threading.Tasks.Task>> SearchWithHttpInfoAsync(SearchRequest? searchRequest = default(SearchRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - - Tribufu.Generated.Client.RequestOptions localVarRequestOptions = new Tribufu.Generated.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - "application/json-patch+json", - "application/json", - "text/json", - "application/*+json" - }; - - // to determine the Accept header - string[] _accepts = new string[] { - "text/plain", - "application/json", - "text/json" - }; - - var localVarContentType = Tribufu.Generated.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = Tribufu.Generated.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - localVarRequestOptions.Data = searchRequest; - - localVarRequestOptions.Operation = "TribufuGeneratedApi.Search"; - localVarRequestOptions.OperationIndex = operationIndex; - - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } - - // make the HTTP request - var localVarResponse = await this.AsynchronousClient.PostAsync>("/v1/search", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); - - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("Search", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - - /// - /// Update a game server. <b>🔒 Required permissions:</b> <code>tribufu.community.game.server.update</code> - /// - /// Thrown when fails to make API call - /// - /// (optional) - /// Index associated with the operation. - /// - public void UpdateGameServer(string id, Object? body = default(Object?), int operationIndex = 0) - { - UpdateGameServerWithHttpInfo(id, body); - } - - /// - /// Update a game server. <b>🔒 Required permissions:</b> <code>tribufu.community.game.server.update</code> - /// - /// Thrown when fails to make API call - /// - /// (optional) - /// Index associated with the operation. - /// ApiResponse of Object(void) - public Tribufu.Generated.Client.ApiResponse UpdateGameServerWithHttpInfo(string id, Object? body = default(Object?), int operationIndex = 0) - { - // verify the required parameter 'id' is set - if (id == null) - { - throw new Tribufu.Generated.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->UpdateGameServer"); - } - - Tribufu.Generated.Client.RequestOptions localVarRequestOptions = new Tribufu.Generated.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - "application/json-patch+json", - "application/json", - "text/json", - "application/*+json" - }; - - // to determine the Accept header - string[] _accepts = new string[] { - }; - - var localVarContentType = Tribufu.Generated.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - var localVarMultipartFormData = localVarContentType == "multipart/form-data"; - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = Tribufu.Generated.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - localVarRequestOptions.PathParameters.Add("id", Tribufu.Generated.Client.ClientUtils.ParameterToString(id)); // path parameter - localVarRequestOptions.Data = body; - - localVarRequestOptions.Operation = "TribufuGeneratedApi.UpdateGameServer"; - localVarRequestOptions.OperationIndex = operationIndex; - - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } - - // make the HTTP request - var localVarResponse = this.Client.Put("/v1/servers/{id}", localVarRequestOptions, this.Configuration); - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("UpdateGameServer", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - - /// - /// Update a game server. <b>🔒 Required permissions:</b> <code>tribufu.community.game.server.update</code> - /// - /// Thrown when fails to make API call - /// - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of void - public async System.Threading.Tasks.Task UpdateGameServerAsync(string id, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - await UpdateGameServerWithHttpInfoAsync(id, body, operationIndex, cancellationToken).ConfigureAwait(false); - } - - /// - /// Update a game server. <b>🔒 Required permissions:</b> <code>tribufu.community.game.server.update</code> - /// - /// Thrown when fails to make API call - /// - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ApiResponse - public async System.Threading.Tasks.Task> UpdateGameServerWithHttpInfoAsync(string id, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - // verify the required parameter 'id' is set - if (id == null) - { - throw new Tribufu.Generated.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->UpdateGameServer"); - } - - - Tribufu.Generated.Client.RequestOptions localVarRequestOptions = new Tribufu.Generated.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - "application/json-patch+json", - "application/json", - "text/json", - "application/*+json" - }; - - // to determine the Accept header - string[] _accepts = new string[] { - }; - - var localVarContentType = Tribufu.Generated.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = Tribufu.Generated.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - localVarRequestOptions.PathParameters.Add("id", Tribufu.Generated.Client.ClientUtils.ParameterToString(id)); // path parameter - localVarRequestOptions.Data = body; - - localVarRequestOptions.Operation = "TribufuGeneratedApi.UpdateGameServer"; - localVarRequestOptions.OperationIndex = operationIndex; - - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } - - // make the HTTP request - var localVarResponse = await this.AsynchronousClient.PutAsync("/v1/servers/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); - - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("UpdateGameServer", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - - /// - /// Update a game server cluster. <b>🔒 Required permissions:</b> <code>tribufu.community.game.server.cluster.update</code> - /// - /// Thrown when fails to make API call - /// - /// (optional) - /// Index associated with the operation. - /// - public void UpdateGameServerCluster(string id, Object? body = default(Object?), int operationIndex = 0) - { - UpdateGameServerClusterWithHttpInfo(id, body); - } - - /// - /// Update a game server cluster. <b>🔒 Required permissions:</b> <code>tribufu.community.game.server.cluster.update</code> - /// - /// Thrown when fails to make API call - /// - /// (optional) - /// Index associated with the operation. - /// ApiResponse of Object(void) - public Tribufu.Generated.Client.ApiResponse UpdateGameServerClusterWithHttpInfo(string id, Object? body = default(Object?), int operationIndex = 0) - { - // verify the required parameter 'id' is set - if (id == null) - { - throw new Tribufu.Generated.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->UpdateGameServerCluster"); - } - - Tribufu.Generated.Client.RequestOptions localVarRequestOptions = new Tribufu.Generated.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - "application/json-patch+json", - "application/json", - "text/json", - "application/*+json" - }; - - // to determine the Accept header - string[] _accepts = new string[] { - }; - - var localVarContentType = Tribufu.Generated.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - var localVarMultipartFormData = localVarContentType == "multipart/form-data"; - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = Tribufu.Generated.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - localVarRequestOptions.PathParameters.Add("id", Tribufu.Generated.Client.ClientUtils.ParameterToString(id)); // path parameter - localVarRequestOptions.Data = body; - - localVarRequestOptions.Operation = "TribufuGeneratedApi.UpdateGameServerCluster"; - localVarRequestOptions.OperationIndex = operationIndex; - - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } - - // make the HTTP request - var localVarResponse = this.Client.Put("/v1/clusters/{id}", localVarRequestOptions, this.Configuration); - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("UpdateGameServerCluster", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - - /// - /// Update a game server cluster. <b>🔒 Required permissions:</b> <code>tribufu.community.game.server.cluster.update</code> - /// - /// Thrown when fails to make API call - /// - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of void - public async System.Threading.Tasks.Task UpdateGameServerClusterAsync(string id, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - await UpdateGameServerClusterWithHttpInfoAsync(id, body, operationIndex, cancellationToken).ConfigureAwait(false); - } - - /// - /// Update a game server cluster. <b>🔒 Required permissions:</b> <code>tribufu.community.game.server.cluster.update</code> - /// - /// Thrown when fails to make API call - /// - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ApiResponse - public async System.Threading.Tasks.Task> UpdateGameServerClusterWithHttpInfoAsync(string id, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - // verify the required parameter 'id' is set - if (id == null) - { - throw new Tribufu.Generated.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->UpdateGameServerCluster"); - } - - - Tribufu.Generated.Client.RequestOptions localVarRequestOptions = new Tribufu.Generated.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - "application/json-patch+json", - "application/json", - "text/json", - "application/*+json" - }; - - // to determine the Accept header - string[] _accepts = new string[] { - }; - - var localVarContentType = Tribufu.Generated.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = Tribufu.Generated.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - localVarRequestOptions.PathParameters.Add("id", Tribufu.Generated.Client.ClientUtils.ParameterToString(id)); // path parameter - localVarRequestOptions.Data = body; - - localVarRequestOptions.Operation = "TribufuGeneratedApi.UpdateGameServerCluster"; - localVarRequestOptions.OperationIndex = operationIndex; - - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } - - // make the HTTP request - var localVarResponse = await this.AsynchronousClient.PutAsync("/v1/clusters/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); - - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("UpdateGameServerCluster", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - - /// - /// Update a group. <b>🔒 Required permissions:</b> <code>tribufu.community.group.update</code> - /// - /// Thrown when fails to make API call - /// - /// (optional) - /// Index associated with the operation. - /// - public void UpdateGroup(string id, Object? body = default(Object?), int operationIndex = 0) - { - UpdateGroupWithHttpInfo(id, body); - } - - /// - /// Update a group. <b>🔒 Required permissions:</b> <code>tribufu.community.group.update</code> - /// - /// Thrown when fails to make API call - /// - /// (optional) - /// Index associated with the operation. - /// ApiResponse of Object(void) - public Tribufu.Generated.Client.ApiResponse UpdateGroupWithHttpInfo(string id, Object? body = default(Object?), int operationIndex = 0) - { - // verify the required parameter 'id' is set - if (id == null) - { - throw new Tribufu.Generated.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->UpdateGroup"); - } - - Tribufu.Generated.Client.RequestOptions localVarRequestOptions = new Tribufu.Generated.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - "application/json-patch+json", - "application/json", - "text/json", - "application/*+json" - }; - - // to determine the Accept header - string[] _accepts = new string[] { - }; - - var localVarContentType = Tribufu.Generated.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - var localVarMultipartFormData = localVarContentType == "multipart/form-data"; - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = Tribufu.Generated.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - localVarRequestOptions.PathParameters.Add("id", Tribufu.Generated.Client.ClientUtils.ParameterToString(id)); // path parameter - localVarRequestOptions.Data = body; - - localVarRequestOptions.Operation = "TribufuGeneratedApi.UpdateGroup"; - localVarRequestOptions.OperationIndex = operationIndex; - - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } - - // make the HTTP request - var localVarResponse = this.Client.Put("/v1/groups/{id}", localVarRequestOptions, this.Configuration); - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("UpdateGroup", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - - /// - /// Update a group. <b>🔒 Required permissions:</b> <code>tribufu.community.group.update</code> - /// - /// Thrown when fails to make API call - /// - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of void - public async System.Threading.Tasks.Task UpdateGroupAsync(string id, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - await UpdateGroupWithHttpInfoAsync(id, body, operationIndex, cancellationToken).ConfigureAwait(false); - } - - /// - /// Update a group. <b>🔒 Required permissions:</b> <code>tribufu.community.group.update</code> - /// - /// Thrown when fails to make API call - /// - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ApiResponse - public async System.Threading.Tasks.Task> UpdateGroupWithHttpInfoAsync(string id, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - // verify the required parameter 'id' is set - if (id == null) - { - throw new Tribufu.Generated.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->UpdateGroup"); - } - - - Tribufu.Generated.Client.RequestOptions localVarRequestOptions = new Tribufu.Generated.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - "application/json-patch+json", - "application/json", - "text/json", - "application/*+json" - }; - - // to determine the Accept header - string[] _accepts = new string[] { - }; - - var localVarContentType = Tribufu.Generated.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = Tribufu.Generated.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - localVarRequestOptions.PathParameters.Add("id", Tribufu.Generated.Client.ClientUtils.ParameterToString(id)); // path parameter - localVarRequestOptions.Data = body; - - localVarRequestOptions.Operation = "TribufuGeneratedApi.UpdateGroup"; - localVarRequestOptions.OperationIndex = operationIndex; - - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } - - // make the HTTP request - var localVarResponse = await this.AsynchronousClient.PutAsync("/v1/groups/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); - - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("UpdateGroup", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - - /// - /// Update a user profile. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.update</code> - /// - /// Thrown when fails to make API call - /// - /// (optional) - /// Index associated with the operation. - /// Profile - public Profile UpdateUserProfile(string id, UpdateProfile? updateProfile = default(UpdateProfile?), int operationIndex = 0) - { - Tribufu.Generated.Client.ApiResponse localVarResponse = UpdateUserProfileWithHttpInfo(id, updateProfile); - return localVarResponse.Data; - } - - /// - /// Update a user profile. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.update</code> - /// - /// Thrown when fails to make API call - /// - /// (optional) - /// Index associated with the operation. - /// ApiResponse of Profile - public Tribufu.Generated.Client.ApiResponse UpdateUserProfileWithHttpInfo(string id, UpdateProfile? updateProfile = default(UpdateProfile?), int operationIndex = 0) - { - // verify the required parameter 'id' is set - if (id == null) - { - throw new Tribufu.Generated.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->UpdateUserProfile"); - } - - Tribufu.Generated.Client.RequestOptions localVarRequestOptions = new Tribufu.Generated.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - "application/json-patch+json", - "application/json", - "text/json", - "application/*+json" - }; - - // to determine the Accept header - string[] _accepts = new string[] { - "text/plain", - "application/json", - "text/json" - }; - - var localVarContentType = Tribufu.Generated.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - var localVarMultipartFormData = localVarContentType == "multipart/form-data"; - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = Tribufu.Generated.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - localVarRequestOptions.PathParameters.Add("id", Tribufu.Generated.Client.ClientUtils.ParameterToString(id)); // path parameter - localVarRequestOptions.Data = updateProfile; - - localVarRequestOptions.Operation = "TribufuGeneratedApi.UpdateUserProfile"; - localVarRequestOptions.OperationIndex = operationIndex; - - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } - - // make the HTTP request - var localVarResponse = this.Client.Put("/v1/users/{id}/profile", localVarRequestOptions, this.Configuration); - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("UpdateUserProfile", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - - /// - /// Update a user profile. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.update</code> - /// - /// Thrown when fails to make API call - /// - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of Profile - public async System.Threading.Tasks.Task UpdateUserProfileAsync(string id, UpdateProfile? updateProfile = default(UpdateProfile?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - Tribufu.Generated.Client.ApiResponse localVarResponse = await UpdateUserProfileWithHttpInfoAsync(id, updateProfile, operationIndex, cancellationToken).ConfigureAwait(false); - return localVarResponse.Data; - } - - /// - /// Update a user profile. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.update</code> - /// - /// Thrown when fails to make API call - /// - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ApiResponse (Profile) - public async System.Threading.Tasks.Task> UpdateUserProfileWithHttpInfoAsync(string id, UpdateProfile? updateProfile = default(UpdateProfile?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - // verify the required parameter 'id' is set - if (id == null) - { - throw new Tribufu.Generated.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->UpdateUserProfile"); - } - - - Tribufu.Generated.Client.RequestOptions localVarRequestOptions = new Tribufu.Generated.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - "application/json-patch+json", - "application/json", - "text/json", - "application/*+json" - }; - - // to determine the Accept header - string[] _accepts = new string[] { - "text/plain", - "application/json", - "text/json" - }; - - var localVarContentType = Tribufu.Generated.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = Tribufu.Generated.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - localVarRequestOptions.PathParameters.Add("id", Tribufu.Generated.Client.ClientUtils.ParameterToString(id)); // path parameter - localVarRequestOptions.Data = updateProfile; - - localVarRequestOptions.Operation = "TribufuGeneratedApi.UpdateUserProfile"; - localVarRequestOptions.OperationIndex = operationIndex; - - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } - - // make the HTTP request - var localVarResponse = await this.AsynchronousClient.PutAsync("/v1/users/{id}/profile", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); - - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("UpdateUserProfile", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - - } -} diff --git a/src/Tribufu.Generated/Model/LoginResponse.cs b/src/Tribufu.Generated/Model/LoginResponse.cs deleted file mode 100644 index ae854ce..0000000 --- a/src/Tribufu.Generated/Model/LoginResponse.cs +++ /dev/null @@ -1,110 +0,0 @@ -/* - * Tribufu API - * - * REST API to access Tribufu services. - * - * The version of the OpenAPI document: 1.1.0 - * Contact: contact@tribufu.com - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using System; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using System.IO; -using System.Runtime.Serialization; -using System.Text; -using System.Text.RegularExpressions; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; -using OpenAPIDateConverter = Tribufu.Generated.Client.OpenAPIDateConverter; - -namespace Tribufu.Generated.Model -{ - /// - /// LoginResponse - /// - [DataContract(Name = "LoginResponse")] - public partial class LoginResponse : IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// user. - /// accessToken. - /// refreshToken. - /// expiresIn. - public LoginResponse(UserInfo user = default(UserInfo), string accessToken = default(string), string refreshToken = default(string), long expiresIn = default(long)) - { - this.User = user; - this.AccessToken = accessToken; - this.RefreshToken = refreshToken; - this.ExpiresIn = expiresIn; - } - - /// - /// Gets or Sets User - /// - [DataMember(Name = "user", EmitDefaultValue = false)] - public UserInfo User { get; set; } - - /// - /// Gets or Sets AccessToken - /// - [DataMember(Name = "access_token", EmitDefaultValue = true)] - public string AccessToken { get; set; } - - /// - /// Gets or Sets RefreshToken - /// - [DataMember(Name = "refresh_token", EmitDefaultValue = true)] - public string RefreshToken { get; set; } - - /// - /// Gets or Sets ExpiresIn - /// - [DataMember(Name = "expires_in", EmitDefaultValue = false)] - public long ExpiresIn { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - StringBuilder sb = new StringBuilder(); - sb.Append("class LoginResponse {\n"); - sb.Append(" User: ").Append(User).Append("\n"); - sb.Append(" AccessToken: ").Append(AccessToken).Append("\n"); - sb.Append(" RefreshToken: ").Append(RefreshToken).Append("\n"); - sb.Append(" ExpiresIn: ").Append(ExpiresIn).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/src/Tribufu.Generated/Model/RefreshRequest.cs b/src/Tribufu.Generated/Model/RefreshRequest.cs deleted file mode 100644 index 231dbbc..0000000 --- a/src/Tribufu.Generated/Model/RefreshRequest.cs +++ /dev/null @@ -1,83 +0,0 @@ -/* - * Tribufu API - * - * REST API to access Tribufu services. - * - * The version of the OpenAPI document: 1.1.0 - * Contact: contact@tribufu.com - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using System; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using System.IO; -using System.Runtime.Serialization; -using System.Text; -using System.Text.RegularExpressions; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; -using OpenAPIDateConverter = Tribufu.Generated.Client.OpenAPIDateConverter; - -namespace Tribufu.Generated.Model -{ - /// - /// RefreshRequest - /// - [DataContract(Name = "RefreshRequest")] - public partial class RefreshRequest : IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// refreshToken. - public RefreshRequest(string refreshToken = default(string)) - { - this.RefreshToken = refreshToken; - } - - /// - /// Gets or Sets RefreshToken - /// - [DataMember(Name = "refresh_token", EmitDefaultValue = true)] - public string RefreshToken { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - StringBuilder sb = new StringBuilder(); - sb.Append("class RefreshRequest {\n"); - sb.Append(" RefreshToken: ").Append(RefreshToken).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/src/Tribufu.Generated/README.md b/src/Tribufu.Generated/README.md deleted file mode 100644 index b7535e7..0000000 --- a/src/Tribufu.Generated/README.md +++ /dev/null @@ -1 +0,0 @@ -# Tribufu Generated diff --git a/src/Tribufu.Generated/Tribufu.Generated.csproj b/src/Tribufu.Generated/Tribufu.Generated.csproj deleted file mode 100644 index a503234..0000000 --- a/src/Tribufu.Generated/Tribufu.Generated.csproj +++ /dev/null @@ -1,26 +0,0 @@ - - - Tribufu.Generated - Tribufu .NET SDK - README.md - - - Properties - true - true - false - annotations - Library - net6.0 - - - - - - - - - - - - diff --git a/src/Tribufu.Logging/Tribufu.Logging.csproj b/src/Tribufu.Logging/Tribufu.Logging.csproj index fe7048e..cade901 100644 --- a/src/Tribufu.Logging/Tribufu.Logging.csproj +++ b/src/Tribufu.Logging/Tribufu.Logging.csproj @@ -1,7 +1,7 @@  Tribufu.Logging - Tribufu Logging Extensions + Tribufu Logging README.md diff --git a/src/Tribufu.Platform/Tribufu.Platform.csproj b/src/Tribufu.Platform/Tribufu.Platform.csproj index cefab08..b1a39fa 100644 --- a/src/Tribufu.Platform/Tribufu.Platform.csproj +++ b/src/Tribufu.Platform/Tribufu.Platform.csproj @@ -1,7 +1,7 @@  Tribufu.Platform - Tribufu Runtime Extensions + Tribufu Platform README.md diff --git a/src/Tribufu.Serialization/NetworkAwareSnakeCaseNamingStrategy.cs b/src/Tribufu.Serialization/NetworkAwareSnakeCaseNamingStrategy.cs new file mode 100644 index 0000000..4710a14 --- /dev/null +++ b/src/Tribufu.Serialization/NetworkAwareSnakeCaseNamingStrategy.cs @@ -0,0 +1,35 @@ +// Copyright (c) Tribufu. All Rights Reserved. +// SPDX-License-Identifier: MIT + +using Newtonsoft.Json.Serialization; +using System.Text.RegularExpressions; + +namespace Tribufu.Serialization +{ + public class NetworkAwareSnakeCaseNamingStrategy : SnakeCaseNamingStrategy + { + private static readonly string[] KnownAcronyms = new string[] { "IPv4", "IPv6" }; + + protected override string ResolvePropertyName(string name) + { + if (string.IsNullOrEmpty(name)) + { + return name; + } + + foreach (var acr in KnownAcronyms) + { + name = Regex.Replace(name, acr, acr.ToLower()); + } + + var snake = base.ResolvePropertyName(name); + foreach (var acr in KnownAcronyms) + { + var lower = acr.ToLower(); + snake = snake.Replace(lower.Replace("_", ""), lower); + } + + return snake; + } + } +} diff --git a/src/Tribufu.Serialization/Tribufu.Serialization.csproj b/src/Tribufu.Serialization/Tribufu.Serialization.csproj index 7de3841..6a7981a 100644 --- a/src/Tribufu.Serialization/Tribufu.Serialization.csproj +++ b/src/Tribufu.Serialization/Tribufu.Serialization.csproj @@ -1,7 +1,7 @@  Tribufu.Serialization - Tribufu Serialization Extensions + Tribufu Serialization README.md diff --git a/src/Tribufu/Api/TribufuGeneratedApi.cs b/src/Tribufu/Api/TribufuGeneratedApi.cs new file mode 100644 index 0000000..c861352 --- /dev/null +++ b/src/Tribufu/Api/TribufuGeneratedApi.cs @@ -0,0 +1,21419 @@ +/* + * Tribufu API + * + * API to access Tribufu services. + * + * The version of the OpenAPI document: 1.2.6 + * Contact: contact@tribufu.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.Net; +using System.Net.Mime; +using Tribufu.Client; +using Tribufu.Model; + +namespace Tribufu.Api +{ + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface ITribufuGeneratedApiSync : IApiAccessor + { + #region Synchronous Operations + /// + /// Authorize the client to access the user information. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.authorize</code> + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// CodeResponse + CodeResponse Authorize(AuthorizeRequest? authorizeRequest = default(AuthorizeRequest?), int operationIndex = 0); + + /// + /// Authorize the client to access the user information. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.authorize</code> + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CodeResponse + ApiResponse AuthorizeWithHttpInfo(AuthorizeRequest? authorizeRequest = default(AuthorizeRequest?), int operationIndex = 0); + /// + /// Change the email of a user. + /// + /// + /// This endpoint is not available with an api key, only with a bearer token.<br/><br/><b>🔒 Required permissions:</b> <code>tribufu.identity.user.email.update</code> + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Index associated with the operation. + /// + void ChangeEmail(string id, Object? body = default(Object?), int operationIndex = 0); + + /// + /// Change the email of a user. + /// + /// + /// This endpoint is not available with an api key, only with a bearer token.<br/><br/><b>🔒 Required permissions:</b> <code>tribufu.identity.user.email.update</code> + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Index associated with the operation. + /// ApiResponse of Object(void) + ApiResponse ChangeEmailWithHttpInfo(string id, Object? body = default(Object?), int operationIndex = 0); + /// + /// Change the password of a user. + /// + /// + /// This endpoint is not available with an api key, only with a bearer token.<br/><br/><b>🔒 Required permissions:</b> <code>tribufu.identity.user.password.update</code> + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Index associated with the operation. + /// + void ChangePassword(string id, Object? body = default(Object?), int operationIndex = 0); + + /// + /// Change the password of a user. + /// + /// + /// This endpoint is not available with an api key, only with a bearer token.<br/><br/><b>🔒 Required permissions:</b> <code>tribufu.identity.user.password.update</code> + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Index associated with the operation. + /// ApiResponse of Object(void) + ApiResponse ChangePasswordWithHttpInfo(string id, Object? body = default(Object?), int operationIndex = 0); + /// + /// Claim a game server. + /// + /// + /// This endpoint is not available with an api key, only with a bearer token.<br/><br/><b>🔒 Required permissions:</b> <code>tribufu.game.server.claim</code> + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Index associated with the operation. + /// + void ClaimGameServer(string id, Object? body = default(Object?), int operationIndex = 0); + + /// + /// Claim a game server. + /// + /// + /// This endpoint is not available with an api key, only with a bearer token.<br/><br/><b>🔒 Required permissions:</b> <code>tribufu.game.server.claim</code> + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Index associated with the operation. + /// ApiResponse of Object(void) + ApiResponse ClaimGameServerWithHttpInfo(string id, Object? body = default(Object?), int operationIndex = 0); + /// + /// Claim a game server. + /// + /// + /// This endpoint is not available with an api key, only with a bearer token.<br/><br/><b>🔒 Required permissions:</b> <code>tribufu.game.server.claim</code> + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Index associated with the operation. + /// + [Obsolete] + void ClaimGameServerV1(string id, Object? body = default(Object?), int operationIndex = 0); + + /// + /// Claim a game server. + /// + /// + /// This endpoint is not available with an api key, only with a bearer token.<br/><br/><b>🔒 Required permissions:</b> <code>tribufu.game.server.claim</code> + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Index associated with the operation. + /// ApiResponse of Object(void) + [Obsolete] + ApiResponse ClaimGameServerV1WithHttpInfo(string id, Object? body = default(Object?), int operationIndex = 0); + /// + /// Convert a string to base64 or vice versa. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.utils.convert.base64</code> + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// CryptoViewModel + CryptoViewModel ConvertBase64(CryptoViewModel? cryptoViewModel = default(CryptoViewModel?), int operationIndex = 0); + + /// + /// Convert a string to base64 or vice versa. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.utils.convert.base64</code> + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CryptoViewModel + ApiResponse ConvertBase64WithHttpInfo(CryptoViewModel? cryptoViewModel = default(CryptoViewModel?), int operationIndex = 0); + /// + /// Create an oauth2 client. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.client.create</code> + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// + void CreateClient(Object? body = default(Object?), int operationIndex = 0); + + /// + /// Create an oauth2 client. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.client.create</code> + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// ApiResponse of Object(void) + ApiResponse CreateClientWithHttpInfo(Object? body = default(Object?), int operationIndex = 0); + /// + /// Create a new game server. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.create</code> + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// + void CreateGameServer(Object? body = default(Object?), int operationIndex = 0); + + /// + /// Create a new game server. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.create</code> + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// ApiResponse of Object(void) + ApiResponse CreateGameServerWithHttpInfo(Object? body = default(Object?), int operationIndex = 0); + /// + /// Create a new game server cluster. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.create</code> + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// + void CreateGameServerCluster(Object? body = default(Object?), int operationIndex = 0); + + /// + /// Create a new game server cluster. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.create</code> + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// ApiResponse of Object(void) + ApiResponse CreateGameServerClusterWithHttpInfo(Object? body = default(Object?), int operationIndex = 0); + /// + /// Create a new game server cluster. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.create</code> + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// + [Obsolete] + void CreateGameServerClusterV1(Object? body = default(Object?), int operationIndex = 0); + + /// + /// Create a new game server cluster. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.create</code> + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// ApiResponse of Object(void) + [Obsolete] + ApiResponse CreateGameServerClusterV1WithHttpInfo(Object? body = default(Object?), int operationIndex = 0); + /// + /// Create a new game server. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.create</code> + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// + [Obsolete] + void CreateGameServerV1(Object? body = default(Object?), int operationIndex = 0); + + /// + /// Create a new game server. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.create</code> + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// ApiResponse of Object(void) + [Obsolete] + ApiResponse CreateGameServerV1WithHttpInfo(Object? body = default(Object?), int operationIndex = 0); + /// + /// Create a new group. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.community.group.create</code> + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// + void CreateGroup(Object? body = default(Object?), int operationIndex = 0); + + /// + /// Create a new group. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.community.group.create</code> + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// ApiResponse of Object(void) + ApiResponse CreateGroupWithHttpInfo(Object? body = default(Object?), int operationIndex = 0); + /// + /// Create a new package. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.community.package.create</code> + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// (optional) + /// Index associated with the operation. + /// Package + Package CreatePackage(string name, System.IO.Stream image, List files, string version, string? description = default(string?), int operationIndex = 0); + + /// + /// Create a new package. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.community.package.create</code> + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// (optional) + /// Index associated with the operation. + /// ApiResponse of Package + ApiResponse CreatePackageWithHttpInfo(string name, System.IO.Stream image, List files, string version, string? description = default(string?), int operationIndex = 0); + /// + /// Create a new token with grant type. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// TokenResponse + TokenResponse CreateToken(TokenRequest? tokenRequest = default(TokenRequest?), int operationIndex = 0); + + /// + /// Create a new token with grant type. + /// + /// + /// + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// ApiResponse of TokenResponse + ApiResponse CreateTokenWithHttpInfo(TokenRequest? tokenRequest = default(TokenRequest?), int operationIndex = 0); + /// + /// Create an user. + /// + /// + /// This endpoint is only available with client credentials. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// + void CreateUser(CreateUser? createUser = default(CreateUser?), int operationIndex = 0); + + /// + /// Create an user. + /// + /// + /// This endpoint is only available with client credentials. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// ApiResponse of Object(void) + ApiResponse CreateUserWithHttpInfo(CreateUser? createUser = default(CreateUser?), int operationIndex = 0); + /// + /// Delete an oauth2 client. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.client.delete</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// + void DeleteClient(string id, int operationIndex = 0); + + /// + /// Delete an oauth2 client. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.client.delete</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of Object(void) + ApiResponse DeleteClientWithHttpInfo(string id, int operationIndex = 0); + /// + /// Delete a game server. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.delete</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// + void DeleteGameServer(string id, int operationIndex = 0); + + /// + /// Delete a game server. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.delete</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of Object(void) + ApiResponse DeleteGameServerWithHttpInfo(string id, int operationIndex = 0); + /// + /// Delete a game server cluster. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.delete</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// + void DeleteGameServerCluster(string id, int operationIndex = 0); + + /// + /// Delete a game server cluster. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.delete</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of Object(void) + ApiResponse DeleteGameServerClusterWithHttpInfo(string id, int operationIndex = 0); + /// + /// Delete a game server cluster. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.delete</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// + [Obsolete] + void DeleteGameServerClusterV1(string id, int operationIndex = 0); + + /// + /// Delete a game server cluster. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.delete</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of Object(void) + [Obsolete] + ApiResponse DeleteGameServerClusterV1WithHttpInfo(string id, int operationIndex = 0); + /// + /// Delete a game server. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.delete</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// + [Obsolete] + void DeleteGameServerV1(string id, int operationIndex = 0); + + /// + /// Delete a game server. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.delete</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of Object(void) + [Obsolete] + ApiResponse DeleteGameServerV1WithHttpInfo(string id, int operationIndex = 0); + /// + /// Delete a group. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.community.group.delete</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// + void DeleteGroup(string id, int operationIndex = 0); + + /// + /// Delete a group. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.community.group.delete</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of Object(void) + ApiResponse DeleteGroupWithHttpInfo(string id, int operationIndex = 0); + /// + /// Delete an package. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.community.package.delete</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// + void DeletePackage(string id, int operationIndex = 0); + + /// + /// Delete an package. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.community.package.delete</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of Object(void) + ApiResponse DeletePackageWithHttpInfo(string id, int operationIndex = 0); + /// + /// Generate one or more flake ids. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.utils.generate.flake</code> + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// List<string> + List GenerateFlakeId(int? amount = default(int?), int operationIndex = 0); + + /// + /// Generate one or more flake ids. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.utils.generate.flake</code> + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// ApiResponse of List<string> + ApiResponse> GenerateFlakeIdWithHttpInfo(int? amount = default(int?), int operationIndex = 0); + /// + /// Generate one or more flake ids from a timestamp. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.utils.generate.flake.timestamp</code> + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Index associated with the operation. + /// List<string> + List GenerateFlakeIdFromTimestamp(string timestamp, int? amount = default(int?), int operationIndex = 0); + + /// + /// Generate one or more flake ids from a timestamp. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.utils.generate.flake.timestamp</code> + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Index associated with the operation. + /// ApiResponse of List<string> + ApiResponse> GenerateFlakeIdFromTimestampWithHttpInfo(string timestamp, int? amount = default(int?), int operationIndex = 0); + /// + /// Generate a random password. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.utils.generate.password</code> + /// + /// Thrown when fails to make API call + /// (optional) + /// (optional) + /// Index associated with the operation. + /// HashViewModel + HashViewModel GeneratePassword(int? length = default(int?), bool? symbols = default(bool?), int operationIndex = 0); + + /// + /// Generate a random password. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.utils.generate.password</code> + /// + /// Thrown when fails to make API call + /// (optional) + /// (optional) + /// Index associated with the operation. + /// ApiResponse of HashViewModel + ApiResponse GeneratePasswordWithHttpInfo(int? length = default(int?), bool? symbols = default(bool?), int operationIndex = 0); + /// + /// Generate one or more uuids with a specific version. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.utils.generate.uuid</code> + /// + /// Thrown when fails to make API call + /// (optional) + /// (optional) + /// Index associated with the operation. + /// List<Guid> + List GenerateUuid(int? version = default(int?), int? amount = default(int?), int operationIndex = 0); + + /// + /// Generate one or more uuids with a specific version. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.utils.generate.uuid</code> + /// + /// Thrown when fails to make API call + /// (optional) + /// (optional) + /// Index associated with the operation. + /// ApiResponse of List<Guid> + ApiResponse> GenerateUuidWithHttpInfo(int? version = default(int?), int? amount = default(int?), int operationIndex = 0); + /// + /// Get an oauth2 client by id. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.client.get</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ModelClient + ModelClient GetClientById(string id, int operationIndex = 0); + + /// + /// Get an oauth2 client by id. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.client.get</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of ModelClient + ApiResponse GetClientByIdWithHttpInfo(string id, int operationIndex = 0); + /// + /// Get current client information. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ClientInfo + ClientInfo GetClientInfo(int operationIndex = 0); + + /// + /// Get current client information. + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of ClientInfo + ApiResponse GetClientInfoWithHttpInfo(int operationIndex = 0); + /// + /// Get a list of oauth2 clients. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.client.list</code> + /// + /// Thrown when fails to make API call + /// Filters results by organization, defaults to all organizations the user belongs to. (optional) + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// List<ModelClient> + List GetClients(string? organizationId = default(string?), int? page = default(int?), int? limit = default(int?), int operationIndex = 0); + + /// + /// Get a list of oauth2 clients. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.client.list</code> + /// + /// Thrown when fails to make API call + /// Filters results by organization, defaults to all organizations the user belongs to. (optional) + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// ApiResponse of List<ModelClient> + ApiResponse> GetClientsWithHttpInfo(string? organizationId = default(string?), int? page = default(int?), int? limit = default(int?), int operationIndex = 0); + /// + /// Get current ip address location. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// List<IpAddress> + List GetCurrentIpAddress(int operationIndex = 0); + + /// + /// Get current ip address location. + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of List<IpAddress> + ApiResponse> GetCurrentIpAddressWithHttpInfo(int operationIndex = 0); + /// + /// Get a game by id. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.game.get</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Game + Game GetGameById(string id, int operationIndex = 0); + + /// + /// Get a game by id. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.game.get</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of Game + ApiResponse GetGameByIdWithHttpInfo(string id, int operationIndex = 0); + /// + /// Get a game server by address and query port. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.get.address</code> + /// + /// Thrown when fails to make API call + /// + /// + /// Index associated with the operation. + /// GameServer + GameServer GetGameServerByAddressAndQueryPort(string address, int port, int operationIndex = 0); + + /// + /// Get a game server by address and query port. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.get.address</code> + /// + /// Thrown when fails to make API call + /// + /// + /// Index associated with the operation. + /// ApiResponse of GameServer + ApiResponse GetGameServerByAddressAndQueryPortWithHttpInfo(string address, int port, int operationIndex = 0); + /// + /// Get a game server by address and query port. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.get.address</code> + /// + /// Thrown when fails to make API call + /// + /// + /// Index associated with the operation. + /// GameServer + [Obsolete] + GameServer GetGameServerByAddressAndQueryPortV1(string address, int port, int operationIndex = 0); + + /// + /// Get a game server by address and query port. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.get.address</code> + /// + /// Thrown when fails to make API call + /// + /// + /// Index associated with the operation. + /// ApiResponse of GameServer + [Obsolete] + ApiResponse GetGameServerByAddressAndQueryPortV1WithHttpInfo(string address, int port, int operationIndex = 0); + /// + /// Get a game server by id. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.get</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// GameServer + GameServer GetGameServerById(string id, int operationIndex = 0); + + /// + /// Get a game server by id. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.get</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of GameServer + ApiResponse GetGameServerByIdWithHttpInfo(string id, int operationIndex = 0); + /// + /// Get a game server by id. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.get</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// GameServer + [Obsolete] + GameServer GetGameServerByIdV1(string id, int operationIndex = 0); + + /// + /// Get a game server by id. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.get</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of GameServer + [Obsolete] + ApiResponse GetGameServerByIdV1WithHttpInfo(string id, int operationIndex = 0); + /// + /// Get a game server cluster by id. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.get</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// GameServerCluster + GameServerCluster GetGameServerClusterById(string id, int operationIndex = 0); + + /// + /// Get a game server cluster by id. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.get</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of GameServerCluster + ApiResponse GetGameServerClusterByIdWithHttpInfo(string id, int operationIndex = 0); + /// + /// Get a game server cluster by id. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.get</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// GameServerCluster + [Obsolete] + GameServerCluster GetGameServerClusterByIdV1(string id, int operationIndex = 0); + + /// + /// Get a game server cluster by id. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.get</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of GameServerCluster + [Obsolete] + ApiResponse GetGameServerClusterByIdV1WithHttpInfo(string id, int operationIndex = 0); + /// + /// Get a list of game server cluster servers. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.server.list</code> + /// + /// Thrown when fails to make API call + /// + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// List<Object> + List GetGameServerClusterServers(string id, int? page = default(int?), int? limit = default(int?), int operationIndex = 0); + + /// + /// Get a list of game server cluster servers. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.server.list</code> + /// + /// Thrown when fails to make API call + /// + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// ApiResponse of List<Object> + ApiResponse> GetGameServerClusterServersWithHttpInfo(string id, int? page = default(int?), int? limit = default(int?), int operationIndex = 0); + /// + /// Get a list of game server cluster servers. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.server.list</code> + /// + /// Thrown when fails to make API call + /// + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// List<Object> + [Obsolete] + List GetGameServerClusterServersV1(string id, int? page = default(int?), int? limit = default(int?), int operationIndex = 0); + + /// + /// Get a list of game server cluster servers. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.server.list</code> + /// + /// Thrown when fails to make API call + /// + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// ApiResponse of List<Object> + [Obsolete] + ApiResponse> GetGameServerClusterServersV1WithHttpInfo(string id, int? page = default(int?), int? limit = default(int?), int operationIndex = 0); + /// + /// Get a list of game server clusters. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.list</code> + /// + /// Thrown when fails to make API call + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// List<GameServerCluster> + List GetGameServerClusters(int? page = default(int?), int? limit = default(int?), int operationIndex = 0); + + /// + /// Get a list of game server clusters. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.list</code> + /// + /// Thrown when fails to make API call + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// ApiResponse of List<GameServerCluster> + ApiResponse> GetGameServerClustersWithHttpInfo(int? page = default(int?), int? limit = default(int?), int operationIndex = 0); + /// + /// Get a list of game server clusters. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.list</code> + /// + /// Thrown when fails to make API call + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// List<GameServerCluster> + [Obsolete] + List GetGameServerClustersV1(int? page = default(int?), int? limit = default(int?), int operationIndex = 0); + + /// + /// Get a list of game server clusters. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.list</code> + /// + /// Thrown when fails to make API call + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// ApiResponse of List<GameServerCluster> + [Obsolete] + ApiResponse> GetGameServerClustersV1WithHttpInfo(int? page = default(int?), int? limit = default(int?), int operationIndex = 0); + /// + /// Get a game server query history. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.queries</code> + /// + /// Thrown when fails to make API call + /// + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// List<GameServerQuery> + List GetGameServerQueries(string id, int? page = default(int?), int? limit = default(int?), int operationIndex = 0); + + /// + /// Get a game server query history. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.queries</code> + /// + /// Thrown when fails to make API call + /// + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// ApiResponse of List<GameServerQuery> + ApiResponse> GetGameServerQueriesWithHttpInfo(string id, int? page = default(int?), int? limit = default(int?), int operationIndex = 0); + /// + /// Get a game server query history. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.queries</code> + /// + /// Thrown when fails to make API call + /// + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// List<GameServerQuery> + [Obsolete] + List GetGameServerQueriesV1(string id, int? page = default(int?), int? limit = default(int?), int operationIndex = 0); + + /// + /// Get a game server query history. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.queries</code> + /// + /// Thrown when fails to make API call + /// + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// ApiResponse of List<GameServerQuery> + [Obsolete] + ApiResponse> GetGameServerQueriesV1WithHttpInfo(string id, int? page = default(int?), int? limit = default(int?), int operationIndex = 0); + /// + /// Get a list of game servers. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.list</code> + /// + /// Thrown when fails to make API call + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// List<GameServer> + List GetGameServers(string? address = default(string?), int? queryPort = default(int?), string? country = default(string?), string? gameId = default(string?), int? page = default(int?), int? limit = default(int?), int operationIndex = 0); + + /// + /// Get a list of game servers. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.list</code> + /// + /// Thrown when fails to make API call + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// ApiResponse of List<GameServer> + ApiResponse> GetGameServersWithHttpInfo(string? address = default(string?), int? queryPort = default(int?), string? country = default(string?), string? gameId = default(string?), int? page = default(int?), int? limit = default(int?), int operationIndex = 0); + /// + /// Get a list of game servers from a country. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.list.country</code> + /// + /// Thrown when fails to make API call + /// + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// List<GameServer> + List GetGameServersByCountry(string country, int? page = default(int?), int? limit = default(int?), int operationIndex = 0); + + /// + /// Get a list of game servers from a country. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.list.country</code> + /// + /// Thrown when fails to make API call + /// + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// ApiResponse of List<GameServer> + ApiResponse> GetGameServersByCountryWithHttpInfo(string country, int? page = default(int?), int? limit = default(int?), int operationIndex = 0); + /// + /// Get a list of game servers from a country. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.list.country</code> + /// + /// Thrown when fails to make API call + /// + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// List<GameServer> + [Obsolete] + List GetGameServersByCountryV1(string country, int? page = default(int?), int? limit = default(int?), int operationIndex = 0); + + /// + /// Get a list of game servers from a country. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.list.country</code> + /// + /// Thrown when fails to make API call + /// + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// ApiResponse of List<GameServer> + [Obsolete] + ApiResponse> GetGameServersByCountryV1WithHttpInfo(string country, int? page = default(int?), int? limit = default(int?), int operationIndex = 0); + /// + /// Get a list of countries with the number of game servers. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.country.list</code> + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Dictionary<string, int> + Dictionary GetGameServersCountries(int operationIndex = 0); + + /// + /// Get a list of countries with the number of game servers. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.country.list</code> + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of Dictionary<string, int> + ApiResponse> GetGameServersCountriesWithHttpInfo(int operationIndex = 0); + /// + /// Get a list of countries with the number of game servers. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.country.list</code> + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Dictionary<string, int> + [Obsolete] + Dictionary GetGameServersCountriesV1(int operationIndex = 0); + + /// + /// Get a list of countries with the number of game servers. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.country.list</code> + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of Dictionary<string, int> + [Obsolete] + ApiResponse> GetGameServersCountriesV1WithHttpInfo(int operationIndex = 0); + /// + /// Get metrics about the tracked game servers. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.metric.get</code> + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ServerMetrics + ServerMetrics GetGameServersMetrics(int operationIndex = 0); + + /// + /// Get metrics about the tracked game servers. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.metric.get</code> + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of ServerMetrics + ApiResponse GetGameServersMetricsWithHttpInfo(int operationIndex = 0); + /// + /// Get metrics about the tracked game servers. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.metric.get</code> + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ServerMetrics + [Obsolete] + ServerMetrics GetGameServersMetricsV1(int operationIndex = 0); + + /// + /// Get metrics about the tracked game servers. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.metric.get</code> + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of ServerMetrics + [Obsolete] + ApiResponse GetGameServersMetricsV1WithHttpInfo(int operationIndex = 0); + /// + /// Get a list of game servers. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.list</code> + /// + /// Thrown when fails to make API call + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// List<GameServer> + [Obsolete] + List GetGameServersV1(string? address = default(string?), int? queryPort = default(int?), string? country = default(string?), string? gameId = default(string?), int? page = default(int?), int? limit = default(int?), int operationIndex = 0); + + /// + /// Get a list of game servers. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.list</code> + /// + /// Thrown when fails to make API call + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// ApiResponse of List<GameServer> + [Obsolete] + ApiResponse> GetGameServersV1WithHttpInfo(string? address = default(string?), int? queryPort = default(int?), string? country = default(string?), string? gameId = default(string?), int? page = default(int?), int? limit = default(int?), int operationIndex = 0); + /// + /// Get a list of games. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.game.list</code> + /// + /// Thrown when fails to make API call + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// List<Game> + List GetGames(int? page = default(int?), int? limit = default(int?), int operationIndex = 0); + + /// + /// Get a list of games. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.game.list</code> + /// + /// Thrown when fails to make API call + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// ApiResponse of List<Game> + ApiResponse> GetGamesWithHttpInfo(int? page = default(int?), int? limit = default(int?), int operationIndex = 0); + /// + /// Get a group by id. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.community.group.get</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Group + Group GetGroupById(string id, int operationIndex = 0); + + /// + /// Get a group by id. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.community.group.get</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of Group + ApiResponse GetGroupByIdWithHttpInfo(string id, int operationIndex = 0); + /// + /// Get a group by tag. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.community.group.get.tag</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Group + Group GetGroupByTag(string tag, int operationIndex = 0); + + /// + /// Get a group by tag. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.community.group.get.tag</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of Group + ApiResponse GetGroupByTagWithHttpInfo(string tag, int operationIndex = 0); + /// + /// Get a group by uuid. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.community.group.get.uuid</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Group + Group GetGroupByUuid(Guid uuid, int operationIndex = 0); + + /// + /// Get a group by uuid. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.community.group.get.uuid</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of Group + ApiResponse GetGroupByUuidWithHttpInfo(Guid uuid, int operationIndex = 0); + /// + /// Get a list of games of a group. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.community.group.game.list</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// List<GroupGame> + List GetGroupGames(string id, int operationIndex = 0); + + /// + /// Get a list of games of a group. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.community.group.game.list</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of List<GroupGame> + ApiResponse> GetGroupGamesWithHttpInfo(string id, int operationIndex = 0); + /// + /// Get a list of members in a group. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.community.group.member.list</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// List<GroupMember> + List GetGroupMembers(string id, int operationIndex = 0); + + /// + /// Get a list of members in a group. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.community.group.member.list</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of List<GroupMember> + ApiResponse> GetGroupMembersWithHttpInfo(string id, int operationIndex = 0); + /// + /// Get a list of groups. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.community.group.list</code> + /// + /// Thrown when fails to make API call + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// List<Group> + List GetGroups(int? page = default(int?), int? limit = default(int?), int operationIndex = 0); + + /// + /// Get a list of groups. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.community.group.list</code> + /// + /// Thrown when fails to make API call + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// ApiResponse of List<Group> + ApiResponse> GetGroupsWithHttpInfo(int? page = default(int?), int? limit = default(int?), int operationIndex = 0); + /// + /// Get a ip address location. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// IpAddress + IpAddress GetIpAddress(string address, int operationIndex = 0); + + /// + /// Get a ip address location. + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of IpAddress + ApiResponse GetIpAddressWithHttpInfo(string address, int operationIndex = 0); + /// + /// Get a list of ip addresses. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.geoip.address.list</code> + /// + /// Thrown when fails to make API call + /// Filters results by organization, defaults to all organizations the user belongs to. (optional) + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// List<IpAddress> + List GetIpAddresses(string? organizationId = default(string?), int? page = default(int?), int? limit = default(int?), int operationIndex = 0); + + /// + /// Get a list of ip addresses. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.geoip.address.list</code> + /// + /// Thrown when fails to make API call + /// Filters results by organization, defaults to all organizations the user belongs to. (optional) + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// ApiResponse of List<IpAddress> + ApiResponse> GetIpAddressesWithHttpInfo(string? organizationId = default(string?), int? page = default(int?), int? limit = default(int?), int operationIndex = 0); + /// + /// Get the top 20 leaderboard users. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.community.leaderboard.get</code> + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// List<LeaderboardItem> + List GetLeaderboard(LeaderboardOrder? order = default(LeaderboardOrder?), int operationIndex = 0); + + /// + /// Get the top 20 leaderboard users. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.community.leaderboard.get</code> + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// ApiResponse of List<LeaderboardItem> + ApiResponse> GetLeaderboardWithHttpInfo(LeaderboardOrder? order = default(LeaderboardOrder?), int operationIndex = 0); + /// + /// Get a package by id. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.community.package.get</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Package + Package GetPackageById(string id, int operationIndex = 0); + + /// + /// Get a package by id. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.community.package.get</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of Package + ApiResponse GetPackageByIdWithHttpInfo(string id, int operationIndex = 0); + /// + /// Get a list of packages. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.community.package.list</code> + /// + /// Thrown when fails to make API call + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// List<Package> + List GetPackages(int? page = default(int?), int? limit = default(int?), int operationIndex = 0); + + /// + /// Get a list of packages. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.community.package.list</code> + /// + /// Thrown when fails to make API call + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// ApiResponse of List<Package> + ApiResponse> GetPackagesWithHttpInfo(int? page = default(int?), int? limit = default(int?), int operationIndex = 0); + /// + /// Get the public keys for the client. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// + void GetPublicKeys(int operationIndex = 0); + + /// + /// Get the public keys for the client. + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of Object(void) + ApiResponse GetPublicKeysWithHttpInfo(int operationIndex = 0); + /// + /// Get a subscription by id. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.store.subscription.get</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Subscription + Subscription GetSubscriptionById(string id, int operationIndex = 0); + + /// + /// Get a subscription by id. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.store.subscription.get</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of Subscription + ApiResponse GetSubscriptionByIdWithHttpInfo(string id, int operationIndex = 0); + /// + /// Get a list of subscriptions. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.store.subscription.list</code> + /// + /// Thrown when fails to make API call + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// List<Subscription> + List GetSubscriptions(int? page = default(int?), int? limit = default(int?), int operationIndex = 0); + + /// + /// Get a list of subscriptions. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.store.subscription.list</code> + /// + /// Thrown when fails to make API call + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// ApiResponse of List<Subscription> + ApiResponse> GetSubscriptionsWithHttpInfo(int? page = default(int?), int? limit = default(int?), int operationIndex = 0); + /// + /// Get a list of connected accounts of the user. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.identity.user.account.list</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// List<Account> + List GetUserAccounts(string id, int operationIndex = 0); + + /// + /// Get a list of connected accounts of the user. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.identity.user.account.list</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of List<Account> + ApiResponse> GetUserAccountsWithHttpInfo(string id, int operationIndex = 0); + /// + /// Get a list of friends of the user. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.friend.list</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// List<Object> + List GetUserFriends(string id, int operationIndex = 0); + + /// + /// Get a list of friends of the user. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.friend.list</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of List<Object> + ApiResponse> GetUserFriendsWithHttpInfo(string id, int operationIndex = 0); + /// + /// Get a list of friends of the user. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.friend.list</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// List<Object> + [Obsolete] + List GetUserFriendsV1(string id, int operationIndex = 0); + + /// + /// Get a list of friends of the user. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.friend.list</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of List<Object> + [Obsolete] + ApiResponse> GetUserFriendsV1WithHttpInfo(string id, int operationIndex = 0); + /// + /// Get a list of games the user has played. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.game.list</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// List<ProfileGame> + List GetUserGames(string id, int operationIndex = 0); + + /// + /// Get a list of games the user has played. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.game.list</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of List<ProfileGame> + ApiResponse> GetUserGamesWithHttpInfo(string id, int operationIndex = 0); + /// + /// Get a list of games the user has played. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.game.list</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// List<ProfileGame> + [Obsolete] + List GetUserGamesV1(string id, int operationIndex = 0); + + /// + /// Get a list of games the user has played. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.game.list</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of List<ProfileGame> + [Obsolete] + ApiResponse> GetUserGamesV1WithHttpInfo(string id, int operationIndex = 0); + /// + /// Get a list of groups the user is a member of. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.group.list</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// List<ProfileGroup> + List GetUserGroups(string id, int operationIndex = 0); + + /// + /// Get a list of groups the user is a member of. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.group.list</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of List<ProfileGroup> + ApiResponse> GetUserGroupsWithHttpInfo(string id, int operationIndex = 0); + /// + /// Get a list of groups the user is a member of. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.group.list</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// List<ProfileGroup> + [Obsolete] + List GetUserGroupsV1(string id, int operationIndex = 0); + + /// + /// Get a list of groups the user is a member of. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.group.list</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of List<ProfileGroup> + [Obsolete] + ApiResponse> GetUserGroupsV1WithHttpInfo(string id, int operationIndex = 0); + /// + /// Get current user information. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.user.info</code> + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// UserInfo + UserInfo GetUserInfo(int operationIndex = 0); + + /// + /// Get current user information. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.user.info</code> + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of UserInfo + ApiResponse GetUserInfoWithHttpInfo(int operationIndex = 0); + /// + /// Get a user profile by id. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.get</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Profile + Profile GetUserProfileById(string id, int operationIndex = 0); + + /// + /// Get a user profile by id. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.get</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of Profile + ApiResponse GetUserProfileByIdWithHttpInfo(string id, int operationIndex = 0); + /// + /// Get a user profile by id. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.get</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Profile + [Obsolete] + Profile GetUserProfileByIdV1(string id, int operationIndex = 0); + + /// + /// Get a user profile by id. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.get</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of Profile + [Obsolete] + ApiResponse GetUserProfileByIdV1WithHttpInfo(string id, int operationIndex = 0); + /// + /// Get a user profile by name. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.get.name</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Profile + Profile GetUserProfileByName(string name, int operationIndex = 0); + + /// + /// Get a user profile by name. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.get.name</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of Profile + ApiResponse GetUserProfileByNameWithHttpInfo(string name, int operationIndex = 0); + /// + /// Get a user profile by name. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.get.name</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Profile + [Obsolete] + Profile GetUserProfileByNameV1(string name, int operationIndex = 0); + + /// + /// Get a user profile by name. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.get.name</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of Profile + [Obsolete] + ApiResponse GetUserProfileByNameV1WithHttpInfo(string name, int operationIndex = 0); + /// + /// Get a user profile by uuid. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.get.uuid</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Profile + Profile GetUserProfileByUuid(Guid uuid, int operationIndex = 0); + + /// + /// Get a user profile by uuid. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.get.uuid</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of Profile + ApiResponse GetUserProfileByUuidWithHttpInfo(Guid uuid, int operationIndex = 0); + /// + /// Get a user profile by uuid. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.get.uuid</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Profile + [Obsolete] + Profile GetUserProfileByUuidV1(Guid uuid, int operationIndex = 0); + + /// + /// Get a user profile by uuid. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.get.uuid</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of Profile + [Obsolete] + ApiResponse GetUserProfileByUuidV1WithHttpInfo(Guid uuid, int operationIndex = 0); + /// + /// Get a list of user profiles. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.list</code> + /// + /// Thrown when fails to make API call + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// List<Profile> + List GetUserProfiles(int? page = default(int?), int? limit = default(int?), int operationIndex = 0); + + /// + /// Get a list of user profiles. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.list</code> + /// + /// Thrown when fails to make API call + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// ApiResponse of List<Profile> + ApiResponse> GetUserProfilesWithHttpInfo(int? page = default(int?), int? limit = default(int?), int operationIndex = 0); + /// + /// Get a list of user profiles. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.list</code> + /// + /// Thrown when fails to make API call + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// List<Profile> + [Obsolete] + List GetUserProfilesV1(int? page = default(int?), int? limit = default(int?), int operationIndex = 0); + + /// + /// Get a list of user profiles. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.list</code> + /// + /// Thrown when fails to make API call + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// ApiResponse of List<Profile> + [Obsolete] + ApiResponse> GetUserProfilesV1WithHttpInfo(int? page = default(int?), int? limit = default(int?), int operationIndex = 0); + /// + /// Get a list of sanctions the user has received. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.sanction.list</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// List<Object> + List GetUserSanctions(string id, int operationIndex = 0); + + /// + /// Get a list of sanctions the user has received. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.sanction.list</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of List<Object> + ApiResponse> GetUserSanctionsWithHttpInfo(string id, int operationIndex = 0); + /// + /// Get a list of sanctions the user has received. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.sanction.list</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// List<Object> + [Obsolete] + List GetUserSanctionsV1(string id, int operationIndex = 0); + + /// + /// Get a list of sanctions the user has received. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.sanction.list</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of List<Object> + [Obsolete] + ApiResponse> GetUserSanctionsV1WithHttpInfo(string id, int operationIndex = 0); + /// + /// Get a list of servers the user is owner of. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.game.server.list</code> + /// + /// Thrown when fails to make API call + /// + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// List<GameServer> + List GetUserServers(string id, int? page = default(int?), int? limit = default(int?), int operationIndex = 0); + + /// + /// Get a list of servers the user is owner of. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.game.server.list</code> + /// + /// Thrown when fails to make API call + /// + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// ApiResponse of List<GameServer> + ApiResponse> GetUserServersWithHttpInfo(string id, int? page = default(int?), int? limit = default(int?), int operationIndex = 0); + /// + /// Get a list of servers the user is owner of. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.game.server.list</code> + /// + /// Thrown when fails to make API call + /// + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// List<GameServer> + [Obsolete] + List GetUserServersV1(string id, int? page = default(int?), int? limit = default(int?), int operationIndex = 0); + + /// + /// Get a list of servers the user is owner of. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.game.server.list</code> + /// + /// Thrown when fails to make API call + /// + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// ApiResponse of List<GameServer> + [Obsolete] + ApiResponse> GetUserServersV1WithHttpInfo(string id, int? page = default(int?), int? limit = default(int?), int operationIndex = 0); + /// + /// Hash a string using argon2. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.utils.hash.argon2</code> + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// HashViewModel + HashViewModel HashArgon2(HashViewModel? hashViewModel = default(HashViewModel?), int operationIndex = 0); + + /// + /// Hash a string using argon2. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.utils.hash.argon2</code> + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// ApiResponse of HashViewModel + ApiResponse HashArgon2WithHttpInfo(HashViewModel? hashViewModel = default(HashViewModel?), int operationIndex = 0); + /// + /// Hash a string using bcrypt. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.utils.hash.bcrypt</code> + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// HashViewModel + HashViewModel HashBcrypt(HashViewModel? hashViewModel = default(HashViewModel?), int operationIndex = 0); + + /// + /// Hash a string using bcrypt. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.utils.hash.bcrypt</code> + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// ApiResponse of HashViewModel + ApiResponse HashBcryptWithHttpInfo(HashViewModel? hashViewModel = default(HashViewModel?), int operationIndex = 0); + /// + /// Hash a string using md5. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.utils.hash.md5</code> + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// HashViewModel + HashViewModel HashMd5(HashViewModel? hashViewModel = default(HashViewModel?), int operationIndex = 0); + + /// + /// Hash a string using md5. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.utils.hash.md5</code> + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// ApiResponse of HashViewModel + ApiResponse HashMd5WithHttpInfo(HashViewModel? hashViewModel = default(HashViewModel?), int operationIndex = 0); + /// + /// Hash a string using sha256. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.utils.hash.sha256</code> + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// HashViewModel + HashViewModel HashSha256(HashViewModel? hashViewModel = default(HashViewModel?), int operationIndex = 0); + + /// + /// Hash a string using sha256. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.utils.hash.sha256</code> + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// ApiResponse of HashViewModel + ApiResponse HashSha256WithHttpInfo(HashViewModel? hashViewModel = default(HashViewModel?), int operationIndex = 0); + /// + /// Introspect a token. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// IntrospectResponse + IntrospectResponse IntrospectToken(IntrospectRequest? introspectRequest = default(IntrospectRequest?), int operationIndex = 0); + + /// + /// Introspect a token. + /// + /// + /// + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// ApiResponse of IntrospectResponse + ApiResponse IntrospectTokenWithHttpInfo(IntrospectRequest? introspectRequest = default(IntrospectRequest?), int operationIndex = 0); + /// + /// Revoke a token. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// + void RevokeToken(RevokeRequest? revokeRequest = default(RevokeRequest?), int operationIndex = 0); + + /// + /// Revoke a token. + /// + /// + /// + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// ApiResponse of Object(void) + ApiResponse RevokeTokenWithHttpInfo(RevokeRequest? revokeRequest = default(RevokeRequest?), int operationIndex = 0); + /// + /// Advanced search. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.community.search</code> + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// List<Object> + List Search(Search? search = default(Search?), int operationIndex = 0); + + /// + /// Advanced search. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.community.search</code> + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// ApiResponse of List<Object> + ApiResponse> SearchWithHttpInfo(Search? search = default(Search?), int operationIndex = 0); + /// + /// Update an oauth2 client. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.client.update</code> + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Index associated with the operation. + /// + void UpdateClient(string id, Object? body = default(Object?), int operationIndex = 0); + + /// + /// Update an oauth2 client. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.client.update</code> + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Index associated with the operation. + /// ApiResponse of Object(void) + ApiResponse UpdateClientWithHttpInfo(string id, Object? body = default(Object?), int operationIndex = 0); + /// + /// Update a game server. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.update</code> + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Index associated with the operation. + /// + void UpdateGameServer(string id, Object? body = default(Object?), int operationIndex = 0); + + /// + /// Update a game server. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.update</code> + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Index associated with the operation. + /// ApiResponse of Object(void) + ApiResponse UpdateGameServerWithHttpInfo(string id, Object? body = default(Object?), int operationIndex = 0); + /// + /// Update a game server cluster. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.update</code> + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Index associated with the operation. + /// + void UpdateGameServerCluster(string id, Object? body = default(Object?), int operationIndex = 0); + + /// + /// Update a game server cluster. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.update</code> + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Index associated with the operation. + /// ApiResponse of Object(void) + ApiResponse UpdateGameServerClusterWithHttpInfo(string id, Object? body = default(Object?), int operationIndex = 0); + /// + /// Update a game server cluster. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.update</code> + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Index associated with the operation. + /// + [Obsolete] + void UpdateGameServerClusterV1(string id, Object? body = default(Object?), int operationIndex = 0); + + /// + /// Update a game server cluster. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.update</code> + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Index associated with the operation. + /// ApiResponse of Object(void) + [Obsolete] + ApiResponse UpdateGameServerClusterV1WithHttpInfo(string id, Object? body = default(Object?), int operationIndex = 0); + /// + /// Update a game server. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.update</code> + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Index associated with the operation. + /// + [Obsolete] + void UpdateGameServerV1(string id, Object? body = default(Object?), int operationIndex = 0); + + /// + /// Update a game server. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.update</code> + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Index associated with the operation. + /// ApiResponse of Object(void) + [Obsolete] + ApiResponse UpdateGameServerV1WithHttpInfo(string id, Object? body = default(Object?), int operationIndex = 0); + /// + /// Update a group. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.community.group.update</code> + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Index associated with the operation. + /// + void UpdateGroup(string id, Object? body = default(Object?), int operationIndex = 0); + + /// + /// Update a group. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.community.group.update</code> + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Index associated with the operation. + /// ApiResponse of Object(void) + ApiResponse UpdateGroupWithHttpInfo(string id, Object? body = default(Object?), int operationIndex = 0); + /// + /// Update an package. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.community.package.update</code> + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Index associated with the operation. + /// + void UpdatePackage(string id, Package? package = default(Package?), int operationIndex = 0); + + /// + /// Update an package. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.community.package.update</code> + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Index associated with the operation. + /// ApiResponse of Object(void) + ApiResponse UpdatePackageWithHttpInfo(string id, Package? package = default(Package?), int operationIndex = 0); + /// + /// Update a user profile. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.update</code> + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Index associated with the operation. + /// Profile + Profile UpdateUserProfile(string id, UpdateProfile? updateProfile = default(UpdateProfile?), int operationIndex = 0); + + /// + /// Update a user profile. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.update</code> + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Index associated with the operation. + /// ApiResponse of Profile + ApiResponse UpdateUserProfileWithHttpInfo(string id, UpdateProfile? updateProfile = default(UpdateProfile?), int operationIndex = 0); + /// + /// Update a user profile. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.update</code> + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Index associated with the operation. + /// Profile + [Obsolete] + Profile UpdateUserProfileV1(string id, UpdateProfile? updateProfile = default(UpdateProfile?), int operationIndex = 0); + + /// + /// Update a user profile. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.update</code> + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Index associated with the operation. + /// ApiResponse of Profile + [Obsolete] + ApiResponse UpdateUserProfileV1WithHttpInfo(string id, UpdateProfile? updateProfile = default(UpdateProfile?), int operationIndex = 0); + #endregion Synchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface ITribufuGeneratedApiAsync : IApiAccessor + { + #region Asynchronous Operations + /// + /// Authorize the client to access the user information. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.authorize</code> + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CodeResponse + System.Threading.Tasks.Task AuthorizeAsync(AuthorizeRequest? authorizeRequest = default(AuthorizeRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Authorize the client to access the user information. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.authorize</code> + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CodeResponse) + System.Threading.Tasks.Task> AuthorizeWithHttpInfoAsync(AuthorizeRequest? authorizeRequest = default(AuthorizeRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// Change the email of a user. + /// + /// + /// This endpoint is not available with an api key, only with a bearer token.<br/><br/><b>🔒 Required permissions:</b> <code>tribufu.identity.user.email.update</code> + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of void + System.Threading.Tasks.Task ChangeEmailAsync(string id, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Change the email of a user. + /// + /// + /// This endpoint is not available with an api key, only with a bearer token.<br/><br/><b>🔒 Required permissions:</b> <code>tribufu.identity.user.email.update</code> + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + System.Threading.Tasks.Task> ChangeEmailWithHttpInfoAsync(string id, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// Change the password of a user. + /// + /// + /// This endpoint is not available with an api key, only with a bearer token.<br/><br/><b>🔒 Required permissions:</b> <code>tribufu.identity.user.password.update</code> + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of void + System.Threading.Tasks.Task ChangePasswordAsync(string id, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Change the password of a user. + /// + /// + /// This endpoint is not available with an api key, only with a bearer token.<br/><br/><b>🔒 Required permissions:</b> <code>tribufu.identity.user.password.update</code> + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + System.Threading.Tasks.Task> ChangePasswordWithHttpInfoAsync(string id, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// Claim a game server. + /// + /// + /// This endpoint is not available with an api key, only with a bearer token.<br/><br/><b>🔒 Required permissions:</b> <code>tribufu.game.server.claim</code> + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of void + System.Threading.Tasks.Task ClaimGameServerAsync(string id, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Claim a game server. + /// + /// + /// This endpoint is not available with an api key, only with a bearer token.<br/><br/><b>🔒 Required permissions:</b> <code>tribufu.game.server.claim</code> + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + System.Threading.Tasks.Task> ClaimGameServerWithHttpInfoAsync(string id, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// Claim a game server. + /// + /// + /// This endpoint is not available with an api key, only with a bearer token.<br/><br/><b>🔒 Required permissions:</b> <code>tribufu.game.server.claim</code> + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of void + [Obsolete] + System.Threading.Tasks.Task ClaimGameServerV1Async(string id, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Claim a game server. + /// + /// + /// This endpoint is not available with an api key, only with a bearer token.<br/><br/><b>🔒 Required permissions:</b> <code>tribufu.game.server.claim</code> + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + [Obsolete] + System.Threading.Tasks.Task> ClaimGameServerV1WithHttpInfoAsync(string id, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// Convert a string to base64 or vice versa. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.utils.convert.base64</code> + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CryptoViewModel + System.Threading.Tasks.Task ConvertBase64Async(CryptoViewModel? cryptoViewModel = default(CryptoViewModel?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Convert a string to base64 or vice versa. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.utils.convert.base64</code> + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CryptoViewModel) + System.Threading.Tasks.Task> ConvertBase64WithHttpInfoAsync(CryptoViewModel? cryptoViewModel = default(CryptoViewModel?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// Create an oauth2 client. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.client.create</code> + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of void + System.Threading.Tasks.Task CreateClientAsync(Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Create an oauth2 client. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.client.create</code> + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + System.Threading.Tasks.Task> CreateClientWithHttpInfoAsync(Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// Create a new game server. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.create</code> + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of void + System.Threading.Tasks.Task CreateGameServerAsync(Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Create a new game server. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.create</code> + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + System.Threading.Tasks.Task> CreateGameServerWithHttpInfoAsync(Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// Create a new game server cluster. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.create</code> + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of void + System.Threading.Tasks.Task CreateGameServerClusterAsync(Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Create a new game server cluster. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.create</code> + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + System.Threading.Tasks.Task> CreateGameServerClusterWithHttpInfoAsync(Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// Create a new game server cluster. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.create</code> + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of void + [Obsolete] + System.Threading.Tasks.Task CreateGameServerClusterV1Async(Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Create a new game server cluster. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.create</code> + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + [Obsolete] + System.Threading.Tasks.Task> CreateGameServerClusterV1WithHttpInfoAsync(Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// Create a new game server. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.create</code> + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of void + [Obsolete] + System.Threading.Tasks.Task CreateGameServerV1Async(Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Create a new game server. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.create</code> + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + [Obsolete] + System.Threading.Tasks.Task> CreateGameServerV1WithHttpInfoAsync(Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// Create a new group. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.community.group.create</code> + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of void + System.Threading.Tasks.Task CreateGroupAsync(Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Create a new group. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.community.group.create</code> + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + System.Threading.Tasks.Task> CreateGroupWithHttpInfoAsync(Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// Create a new package. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.community.package.create</code> + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of Package + System.Threading.Tasks.Task CreatePackageAsync(string name, System.IO.Stream image, List files, string version, string? description = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Create a new package. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.community.package.create</code> + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (Package) + System.Threading.Tasks.Task> CreatePackageWithHttpInfoAsync(string name, System.IO.Stream image, List files, string version, string? description = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// Create a new token with grant type. + /// + /// + /// + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of TokenResponse + System.Threading.Tasks.Task CreateTokenAsync(TokenRequest? tokenRequest = default(TokenRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Create a new token with grant type. + /// + /// + /// + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (TokenResponse) + System.Threading.Tasks.Task> CreateTokenWithHttpInfoAsync(TokenRequest? tokenRequest = default(TokenRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// Create an user. + /// + /// + /// This endpoint is only available with client credentials. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of void + System.Threading.Tasks.Task CreateUserAsync(CreateUser? createUser = default(CreateUser?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Create an user. + /// + /// + /// This endpoint is only available with client credentials. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + System.Threading.Tasks.Task> CreateUserWithHttpInfoAsync(CreateUser? createUser = default(CreateUser?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// Delete an oauth2 client. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.client.delete</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of void + System.Threading.Tasks.Task DeleteClientAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Delete an oauth2 client. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.client.delete</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + System.Threading.Tasks.Task> DeleteClientWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// Delete a game server. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.delete</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of void + System.Threading.Tasks.Task DeleteGameServerAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Delete a game server. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.delete</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + System.Threading.Tasks.Task> DeleteGameServerWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// Delete a game server cluster. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.delete</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of void + System.Threading.Tasks.Task DeleteGameServerClusterAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Delete a game server cluster. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.delete</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + System.Threading.Tasks.Task> DeleteGameServerClusterWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// Delete a game server cluster. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.delete</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of void + [Obsolete] + System.Threading.Tasks.Task DeleteGameServerClusterV1Async(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Delete a game server cluster. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.delete</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + [Obsolete] + System.Threading.Tasks.Task> DeleteGameServerClusterV1WithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// Delete a game server. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.delete</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of void + [Obsolete] + System.Threading.Tasks.Task DeleteGameServerV1Async(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Delete a game server. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.delete</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + [Obsolete] + System.Threading.Tasks.Task> DeleteGameServerV1WithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// Delete a group. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.community.group.delete</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of void + System.Threading.Tasks.Task DeleteGroupAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Delete a group. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.community.group.delete</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + System.Threading.Tasks.Task> DeleteGroupWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// Delete an package. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.community.package.delete</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of void + System.Threading.Tasks.Task DeletePackageAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Delete an package. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.community.package.delete</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + System.Threading.Tasks.Task> DeletePackageWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// Generate one or more flake ids. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.utils.generate.flake</code> + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of List<string> + System.Threading.Tasks.Task> GenerateFlakeIdAsync(int? amount = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Generate one or more flake ids. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.utils.generate.flake</code> + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (List<string>) + System.Threading.Tasks.Task>> GenerateFlakeIdWithHttpInfoAsync(int? amount = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// Generate one or more flake ids from a timestamp. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.utils.generate.flake.timestamp</code> + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of List<string> + System.Threading.Tasks.Task> GenerateFlakeIdFromTimestampAsync(string timestamp, int? amount = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Generate one or more flake ids from a timestamp. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.utils.generate.flake.timestamp</code> + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (List<string>) + System.Threading.Tasks.Task>> GenerateFlakeIdFromTimestampWithHttpInfoAsync(string timestamp, int? amount = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// Generate a random password. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.utils.generate.password</code> + /// + /// Thrown when fails to make API call + /// (optional) + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of HashViewModel + System.Threading.Tasks.Task GeneratePasswordAsync(int? length = default(int?), bool? symbols = default(bool?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Generate a random password. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.utils.generate.password</code> + /// + /// Thrown when fails to make API call + /// (optional) + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (HashViewModel) + System.Threading.Tasks.Task> GeneratePasswordWithHttpInfoAsync(int? length = default(int?), bool? symbols = default(bool?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// Generate one or more uuids with a specific version. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.utils.generate.uuid</code> + /// + /// Thrown when fails to make API call + /// (optional) + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of List<Guid> + System.Threading.Tasks.Task> GenerateUuidAsync(int? version = default(int?), int? amount = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Generate one or more uuids with a specific version. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.utils.generate.uuid</code> + /// + /// Thrown when fails to make API call + /// (optional) + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (List<Guid>) + System.Threading.Tasks.Task>> GenerateUuidWithHttpInfoAsync(int? version = default(int?), int? amount = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// Get an oauth2 client by id. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.client.get</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ModelClient + System.Threading.Tasks.Task GetClientByIdAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Get an oauth2 client by id. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.client.get</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (ModelClient) + System.Threading.Tasks.Task> GetClientByIdWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// Get current client information. + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ClientInfo + System.Threading.Tasks.Task GetClientInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Get current client information. + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (ClientInfo) + System.Threading.Tasks.Task> GetClientInfoWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// Get a list of oauth2 clients. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.client.list</code> + /// + /// Thrown when fails to make API call + /// Filters results by organization, defaults to all organizations the user belongs to. (optional) + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of List<ModelClient> + System.Threading.Tasks.Task> GetClientsAsync(string? organizationId = default(string?), int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Get a list of oauth2 clients. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.client.list</code> + /// + /// Thrown when fails to make API call + /// Filters results by organization, defaults to all organizations the user belongs to. (optional) + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (List<ModelClient>) + System.Threading.Tasks.Task>> GetClientsWithHttpInfoAsync(string? organizationId = default(string?), int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// Get current ip address location. + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of List<IpAddress> + System.Threading.Tasks.Task> GetCurrentIpAddressAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Get current ip address location. + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (List<IpAddress>) + System.Threading.Tasks.Task>> GetCurrentIpAddressWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// Get a game by id. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.game.get</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of Game + System.Threading.Tasks.Task GetGameByIdAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Get a game by id. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.game.get</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (Game) + System.Threading.Tasks.Task> GetGameByIdWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// Get a game server by address and query port. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.get.address</code> + /// + /// Thrown when fails to make API call + /// + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GameServer + System.Threading.Tasks.Task GetGameServerByAddressAndQueryPortAsync(string address, int port, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Get a game server by address and query port. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.get.address</code> + /// + /// Thrown when fails to make API call + /// + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GameServer) + System.Threading.Tasks.Task> GetGameServerByAddressAndQueryPortWithHttpInfoAsync(string address, int port, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// Get a game server by address and query port. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.get.address</code> + /// + /// Thrown when fails to make API call + /// + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GameServer + [Obsolete] + System.Threading.Tasks.Task GetGameServerByAddressAndQueryPortV1Async(string address, int port, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Get a game server by address and query port. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.get.address</code> + /// + /// Thrown when fails to make API call + /// + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GameServer) + [Obsolete] + System.Threading.Tasks.Task> GetGameServerByAddressAndQueryPortV1WithHttpInfoAsync(string address, int port, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// Get a game server by id. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.get</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GameServer + System.Threading.Tasks.Task GetGameServerByIdAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Get a game server by id. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.get</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GameServer) + System.Threading.Tasks.Task> GetGameServerByIdWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// Get a game server by id. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.get</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GameServer + [Obsolete] + System.Threading.Tasks.Task GetGameServerByIdV1Async(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Get a game server by id. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.get</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GameServer) + [Obsolete] + System.Threading.Tasks.Task> GetGameServerByIdV1WithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// Get a game server cluster by id. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.get</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GameServerCluster + System.Threading.Tasks.Task GetGameServerClusterByIdAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Get a game server cluster by id. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.get</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GameServerCluster) + System.Threading.Tasks.Task> GetGameServerClusterByIdWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// Get a game server cluster by id. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.get</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GameServerCluster + [Obsolete] + System.Threading.Tasks.Task GetGameServerClusterByIdV1Async(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Get a game server cluster by id. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.get</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GameServerCluster) + [Obsolete] + System.Threading.Tasks.Task> GetGameServerClusterByIdV1WithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// Get a list of game server cluster servers. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.server.list</code> + /// + /// Thrown when fails to make API call + /// + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of List<Object> + System.Threading.Tasks.Task> GetGameServerClusterServersAsync(string id, int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Get a list of game server cluster servers. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.server.list</code> + /// + /// Thrown when fails to make API call + /// + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (List<Object>) + System.Threading.Tasks.Task>> GetGameServerClusterServersWithHttpInfoAsync(string id, int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// Get a list of game server cluster servers. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.server.list</code> + /// + /// Thrown when fails to make API call + /// + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of List<Object> + [Obsolete] + System.Threading.Tasks.Task> GetGameServerClusterServersV1Async(string id, int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Get a list of game server cluster servers. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.server.list</code> + /// + /// Thrown when fails to make API call + /// + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (List<Object>) + [Obsolete] + System.Threading.Tasks.Task>> GetGameServerClusterServersV1WithHttpInfoAsync(string id, int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// Get a list of game server clusters. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.list</code> + /// + /// Thrown when fails to make API call + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of List<GameServerCluster> + System.Threading.Tasks.Task> GetGameServerClustersAsync(int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Get a list of game server clusters. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.list</code> + /// + /// Thrown when fails to make API call + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (List<GameServerCluster>) + System.Threading.Tasks.Task>> GetGameServerClustersWithHttpInfoAsync(int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// Get a list of game server clusters. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.list</code> + /// + /// Thrown when fails to make API call + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of List<GameServerCluster> + [Obsolete] + System.Threading.Tasks.Task> GetGameServerClustersV1Async(int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Get a list of game server clusters. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.list</code> + /// + /// Thrown when fails to make API call + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (List<GameServerCluster>) + [Obsolete] + System.Threading.Tasks.Task>> GetGameServerClustersV1WithHttpInfoAsync(int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// Get a game server query history. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.queries</code> + /// + /// Thrown when fails to make API call + /// + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of List<GameServerQuery> + System.Threading.Tasks.Task> GetGameServerQueriesAsync(string id, int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Get a game server query history. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.queries</code> + /// + /// Thrown when fails to make API call + /// + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (List<GameServerQuery>) + System.Threading.Tasks.Task>> GetGameServerQueriesWithHttpInfoAsync(string id, int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// Get a game server query history. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.queries</code> + /// + /// Thrown when fails to make API call + /// + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of List<GameServerQuery> + [Obsolete] + System.Threading.Tasks.Task> GetGameServerQueriesV1Async(string id, int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Get a game server query history. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.queries</code> + /// + /// Thrown when fails to make API call + /// + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (List<GameServerQuery>) + [Obsolete] + System.Threading.Tasks.Task>> GetGameServerQueriesV1WithHttpInfoAsync(string id, int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// Get a list of game servers. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.list</code> + /// + /// Thrown when fails to make API call + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of List<GameServer> + System.Threading.Tasks.Task> GetGameServersAsync(string? address = default(string?), int? queryPort = default(int?), string? country = default(string?), string? gameId = default(string?), int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Get a list of game servers. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.list</code> + /// + /// Thrown when fails to make API call + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (List<GameServer>) + System.Threading.Tasks.Task>> GetGameServersWithHttpInfoAsync(string? address = default(string?), int? queryPort = default(int?), string? country = default(string?), string? gameId = default(string?), int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// Get a list of game servers from a country. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.list.country</code> + /// + /// Thrown when fails to make API call + /// + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of List<GameServer> + System.Threading.Tasks.Task> GetGameServersByCountryAsync(string country, int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Get a list of game servers from a country. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.list.country</code> + /// + /// Thrown when fails to make API call + /// + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (List<GameServer>) + System.Threading.Tasks.Task>> GetGameServersByCountryWithHttpInfoAsync(string country, int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// Get a list of game servers from a country. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.list.country</code> + /// + /// Thrown when fails to make API call + /// + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of List<GameServer> + [Obsolete] + System.Threading.Tasks.Task> GetGameServersByCountryV1Async(string country, int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Get a list of game servers from a country. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.list.country</code> + /// + /// Thrown when fails to make API call + /// + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (List<GameServer>) + [Obsolete] + System.Threading.Tasks.Task>> GetGameServersByCountryV1WithHttpInfoAsync(string country, int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// Get a list of countries with the number of game servers. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.country.list</code> + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of Dictionary<string, int> + System.Threading.Tasks.Task> GetGameServersCountriesAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Get a list of countries with the number of game servers. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.country.list</code> + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (Dictionary<string, int>) + System.Threading.Tasks.Task>> GetGameServersCountriesWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// Get a list of countries with the number of game servers. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.country.list</code> + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of Dictionary<string, int> + [Obsolete] + System.Threading.Tasks.Task> GetGameServersCountriesV1Async(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Get a list of countries with the number of game servers. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.country.list</code> + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (Dictionary<string, int>) + [Obsolete] + System.Threading.Tasks.Task>> GetGameServersCountriesV1WithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// Get metrics about the tracked game servers. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.metric.get</code> + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ServerMetrics + System.Threading.Tasks.Task GetGameServersMetricsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Get metrics about the tracked game servers. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.metric.get</code> + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (ServerMetrics) + System.Threading.Tasks.Task> GetGameServersMetricsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// Get metrics about the tracked game servers. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.metric.get</code> + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ServerMetrics + [Obsolete] + System.Threading.Tasks.Task GetGameServersMetricsV1Async(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Get metrics about the tracked game servers. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.metric.get</code> + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (ServerMetrics) + [Obsolete] + System.Threading.Tasks.Task> GetGameServersMetricsV1WithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// Get a list of game servers. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.list</code> + /// + /// Thrown when fails to make API call + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of List<GameServer> + [Obsolete] + System.Threading.Tasks.Task> GetGameServersV1Async(string? address = default(string?), int? queryPort = default(int?), string? country = default(string?), string? gameId = default(string?), int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Get a list of game servers. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.list</code> + /// + /// Thrown when fails to make API call + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (List<GameServer>) + [Obsolete] + System.Threading.Tasks.Task>> GetGameServersV1WithHttpInfoAsync(string? address = default(string?), int? queryPort = default(int?), string? country = default(string?), string? gameId = default(string?), int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// Get a list of games. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.game.list</code> + /// + /// Thrown when fails to make API call + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of List<Game> + System.Threading.Tasks.Task> GetGamesAsync(int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Get a list of games. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.game.list</code> + /// + /// Thrown when fails to make API call + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (List<Game>) + System.Threading.Tasks.Task>> GetGamesWithHttpInfoAsync(int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// Get a group by id. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.community.group.get</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of Group + System.Threading.Tasks.Task GetGroupByIdAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Get a group by id. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.community.group.get</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (Group) + System.Threading.Tasks.Task> GetGroupByIdWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// Get a group by tag. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.community.group.get.tag</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of Group + System.Threading.Tasks.Task GetGroupByTagAsync(string tag, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Get a group by tag. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.community.group.get.tag</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (Group) + System.Threading.Tasks.Task> GetGroupByTagWithHttpInfoAsync(string tag, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// Get a group by uuid. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.community.group.get.uuid</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of Group + System.Threading.Tasks.Task GetGroupByUuidAsync(Guid uuid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Get a group by uuid. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.community.group.get.uuid</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (Group) + System.Threading.Tasks.Task> GetGroupByUuidWithHttpInfoAsync(Guid uuid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// Get a list of games of a group. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.community.group.game.list</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of List<GroupGame> + System.Threading.Tasks.Task> GetGroupGamesAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Get a list of games of a group. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.community.group.game.list</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (List<GroupGame>) + System.Threading.Tasks.Task>> GetGroupGamesWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// Get a list of members in a group. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.community.group.member.list</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of List<GroupMember> + System.Threading.Tasks.Task> GetGroupMembersAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Get a list of members in a group. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.community.group.member.list</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (List<GroupMember>) + System.Threading.Tasks.Task>> GetGroupMembersWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// Get a list of groups. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.community.group.list</code> + /// + /// Thrown when fails to make API call + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of List<Group> + System.Threading.Tasks.Task> GetGroupsAsync(int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Get a list of groups. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.community.group.list</code> + /// + /// Thrown when fails to make API call + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (List<Group>) + System.Threading.Tasks.Task>> GetGroupsWithHttpInfoAsync(int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// Get a ip address location. + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of IpAddress + System.Threading.Tasks.Task GetIpAddressAsync(string address, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Get a ip address location. + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (IpAddress) + System.Threading.Tasks.Task> GetIpAddressWithHttpInfoAsync(string address, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// Get a list of ip addresses. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.geoip.address.list</code> + /// + /// Thrown when fails to make API call + /// Filters results by organization, defaults to all organizations the user belongs to. (optional) + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of List<IpAddress> + System.Threading.Tasks.Task> GetIpAddressesAsync(string? organizationId = default(string?), int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Get a list of ip addresses. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.geoip.address.list</code> + /// + /// Thrown when fails to make API call + /// Filters results by organization, defaults to all organizations the user belongs to. (optional) + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (List<IpAddress>) + System.Threading.Tasks.Task>> GetIpAddressesWithHttpInfoAsync(string? organizationId = default(string?), int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// Get the top 20 leaderboard users. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.community.leaderboard.get</code> + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of List<LeaderboardItem> + System.Threading.Tasks.Task> GetLeaderboardAsync(LeaderboardOrder? order = default(LeaderboardOrder?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Get the top 20 leaderboard users. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.community.leaderboard.get</code> + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (List<LeaderboardItem>) + System.Threading.Tasks.Task>> GetLeaderboardWithHttpInfoAsync(LeaderboardOrder? order = default(LeaderboardOrder?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// Get a package by id. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.community.package.get</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of Package + System.Threading.Tasks.Task GetPackageByIdAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Get a package by id. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.community.package.get</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (Package) + System.Threading.Tasks.Task> GetPackageByIdWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// Get a list of packages. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.community.package.list</code> + /// + /// Thrown when fails to make API call + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of List<Package> + System.Threading.Tasks.Task> GetPackagesAsync(int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Get a list of packages. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.community.package.list</code> + /// + /// Thrown when fails to make API call + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (List<Package>) + System.Threading.Tasks.Task>> GetPackagesWithHttpInfoAsync(int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// Get the public keys for the client. + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of void + System.Threading.Tasks.Task GetPublicKeysAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Get the public keys for the client. + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + System.Threading.Tasks.Task> GetPublicKeysWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// Get a subscription by id. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.store.subscription.get</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of Subscription + System.Threading.Tasks.Task GetSubscriptionByIdAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Get a subscription by id. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.store.subscription.get</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (Subscription) + System.Threading.Tasks.Task> GetSubscriptionByIdWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// Get a list of subscriptions. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.store.subscription.list</code> + /// + /// Thrown when fails to make API call + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of List<Subscription> + System.Threading.Tasks.Task> GetSubscriptionsAsync(int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Get a list of subscriptions. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.store.subscription.list</code> + /// + /// Thrown when fails to make API call + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (List<Subscription>) + System.Threading.Tasks.Task>> GetSubscriptionsWithHttpInfoAsync(int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// Get a list of connected accounts of the user. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.identity.user.account.list</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of List<Account> + System.Threading.Tasks.Task> GetUserAccountsAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Get a list of connected accounts of the user. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.identity.user.account.list</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (List<Account>) + System.Threading.Tasks.Task>> GetUserAccountsWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// Get a list of friends of the user. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.friend.list</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of List<Object> + System.Threading.Tasks.Task> GetUserFriendsAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Get a list of friends of the user. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.friend.list</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (List<Object>) + System.Threading.Tasks.Task>> GetUserFriendsWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// Get a list of friends of the user. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.friend.list</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of List<Object> + [Obsolete] + System.Threading.Tasks.Task> GetUserFriendsV1Async(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Get a list of friends of the user. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.friend.list</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (List<Object>) + [Obsolete] + System.Threading.Tasks.Task>> GetUserFriendsV1WithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// Get a list of games the user has played. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.game.list</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of List<ProfileGame> + System.Threading.Tasks.Task> GetUserGamesAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Get a list of games the user has played. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.game.list</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (List<ProfileGame>) + System.Threading.Tasks.Task>> GetUserGamesWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// Get a list of games the user has played. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.game.list</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of List<ProfileGame> + [Obsolete] + System.Threading.Tasks.Task> GetUserGamesV1Async(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Get a list of games the user has played. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.game.list</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (List<ProfileGame>) + [Obsolete] + System.Threading.Tasks.Task>> GetUserGamesV1WithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// Get a list of groups the user is a member of. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.group.list</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of List<ProfileGroup> + System.Threading.Tasks.Task> GetUserGroupsAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Get a list of groups the user is a member of. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.group.list</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (List<ProfileGroup>) + System.Threading.Tasks.Task>> GetUserGroupsWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// Get a list of groups the user is a member of. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.group.list</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of List<ProfileGroup> + [Obsolete] + System.Threading.Tasks.Task> GetUserGroupsV1Async(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Get a list of groups the user is a member of. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.group.list</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (List<ProfileGroup>) + [Obsolete] + System.Threading.Tasks.Task>> GetUserGroupsV1WithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// Get current user information. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.user.info</code> + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of UserInfo + System.Threading.Tasks.Task GetUserInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Get current user information. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.user.info</code> + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (UserInfo) + System.Threading.Tasks.Task> GetUserInfoWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// Get a user profile by id. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.get</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of Profile + System.Threading.Tasks.Task GetUserProfileByIdAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Get a user profile by id. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.get</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (Profile) + System.Threading.Tasks.Task> GetUserProfileByIdWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// Get a user profile by id. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.get</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of Profile + [Obsolete] + System.Threading.Tasks.Task GetUserProfileByIdV1Async(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Get a user profile by id. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.get</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (Profile) + [Obsolete] + System.Threading.Tasks.Task> GetUserProfileByIdV1WithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// Get a user profile by name. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.get.name</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of Profile + System.Threading.Tasks.Task GetUserProfileByNameAsync(string name, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Get a user profile by name. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.get.name</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (Profile) + System.Threading.Tasks.Task> GetUserProfileByNameWithHttpInfoAsync(string name, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// Get a user profile by name. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.get.name</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of Profile + [Obsolete] + System.Threading.Tasks.Task GetUserProfileByNameV1Async(string name, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Get a user profile by name. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.get.name</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (Profile) + [Obsolete] + System.Threading.Tasks.Task> GetUserProfileByNameV1WithHttpInfoAsync(string name, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// Get a user profile by uuid. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.get.uuid</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of Profile + System.Threading.Tasks.Task GetUserProfileByUuidAsync(Guid uuid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Get a user profile by uuid. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.get.uuid</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (Profile) + System.Threading.Tasks.Task> GetUserProfileByUuidWithHttpInfoAsync(Guid uuid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// Get a user profile by uuid. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.get.uuid</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of Profile + [Obsolete] + System.Threading.Tasks.Task GetUserProfileByUuidV1Async(Guid uuid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Get a user profile by uuid. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.get.uuid</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (Profile) + [Obsolete] + System.Threading.Tasks.Task> GetUserProfileByUuidV1WithHttpInfoAsync(Guid uuid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// Get a list of user profiles. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.list</code> + /// + /// Thrown when fails to make API call + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of List<Profile> + System.Threading.Tasks.Task> GetUserProfilesAsync(int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Get a list of user profiles. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.list</code> + /// + /// Thrown when fails to make API call + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (List<Profile>) + System.Threading.Tasks.Task>> GetUserProfilesWithHttpInfoAsync(int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// Get a list of user profiles. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.list</code> + /// + /// Thrown when fails to make API call + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of List<Profile> + [Obsolete] + System.Threading.Tasks.Task> GetUserProfilesV1Async(int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Get a list of user profiles. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.list</code> + /// + /// Thrown when fails to make API call + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (List<Profile>) + [Obsolete] + System.Threading.Tasks.Task>> GetUserProfilesV1WithHttpInfoAsync(int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// Get a list of sanctions the user has received. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.sanction.list</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of List<Object> + System.Threading.Tasks.Task> GetUserSanctionsAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Get a list of sanctions the user has received. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.sanction.list</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (List<Object>) + System.Threading.Tasks.Task>> GetUserSanctionsWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// Get a list of sanctions the user has received. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.sanction.list</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of List<Object> + [Obsolete] + System.Threading.Tasks.Task> GetUserSanctionsV1Async(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Get a list of sanctions the user has received. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.sanction.list</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (List<Object>) + [Obsolete] + System.Threading.Tasks.Task>> GetUserSanctionsV1WithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// Get a list of servers the user is owner of. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.game.server.list</code> + /// + /// Thrown when fails to make API call + /// + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of List<GameServer> + System.Threading.Tasks.Task> GetUserServersAsync(string id, int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Get a list of servers the user is owner of. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.game.server.list</code> + /// + /// Thrown when fails to make API call + /// + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (List<GameServer>) + System.Threading.Tasks.Task>> GetUserServersWithHttpInfoAsync(string id, int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// Get a list of servers the user is owner of. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.game.server.list</code> + /// + /// Thrown when fails to make API call + /// + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of List<GameServer> + [Obsolete] + System.Threading.Tasks.Task> GetUserServersV1Async(string id, int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Get a list of servers the user is owner of. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.game.server.list</code> + /// + /// Thrown when fails to make API call + /// + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (List<GameServer>) + [Obsolete] + System.Threading.Tasks.Task>> GetUserServersV1WithHttpInfoAsync(string id, int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// Hash a string using argon2. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.utils.hash.argon2</code> + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of HashViewModel + System.Threading.Tasks.Task HashArgon2Async(HashViewModel? hashViewModel = default(HashViewModel?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Hash a string using argon2. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.utils.hash.argon2</code> + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (HashViewModel) + System.Threading.Tasks.Task> HashArgon2WithHttpInfoAsync(HashViewModel? hashViewModel = default(HashViewModel?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// Hash a string using bcrypt. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.utils.hash.bcrypt</code> + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of HashViewModel + System.Threading.Tasks.Task HashBcryptAsync(HashViewModel? hashViewModel = default(HashViewModel?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Hash a string using bcrypt. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.utils.hash.bcrypt</code> + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (HashViewModel) + System.Threading.Tasks.Task> HashBcryptWithHttpInfoAsync(HashViewModel? hashViewModel = default(HashViewModel?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// Hash a string using md5. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.utils.hash.md5</code> + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of HashViewModel + System.Threading.Tasks.Task HashMd5Async(HashViewModel? hashViewModel = default(HashViewModel?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Hash a string using md5. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.utils.hash.md5</code> + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (HashViewModel) + System.Threading.Tasks.Task> HashMd5WithHttpInfoAsync(HashViewModel? hashViewModel = default(HashViewModel?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// Hash a string using sha256. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.utils.hash.sha256</code> + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of HashViewModel + System.Threading.Tasks.Task HashSha256Async(HashViewModel? hashViewModel = default(HashViewModel?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Hash a string using sha256. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.utils.hash.sha256</code> + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (HashViewModel) + System.Threading.Tasks.Task> HashSha256WithHttpInfoAsync(HashViewModel? hashViewModel = default(HashViewModel?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// Introspect a token. + /// + /// + /// + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of IntrospectResponse + System.Threading.Tasks.Task IntrospectTokenAsync(IntrospectRequest? introspectRequest = default(IntrospectRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Introspect a token. + /// + /// + /// + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (IntrospectResponse) + System.Threading.Tasks.Task> IntrospectTokenWithHttpInfoAsync(IntrospectRequest? introspectRequest = default(IntrospectRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// Revoke a token. + /// + /// + /// + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of void + System.Threading.Tasks.Task RevokeTokenAsync(RevokeRequest? revokeRequest = default(RevokeRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Revoke a token. + /// + /// + /// + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + System.Threading.Tasks.Task> RevokeTokenWithHttpInfoAsync(RevokeRequest? revokeRequest = default(RevokeRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// Advanced search. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.community.search</code> + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of List<Object> + System.Threading.Tasks.Task> SearchAsync(Search? search = default(Search?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Advanced search. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.community.search</code> + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (List<Object>) + System.Threading.Tasks.Task>> SearchWithHttpInfoAsync(Search? search = default(Search?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// Update an oauth2 client. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.client.update</code> + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of void + System.Threading.Tasks.Task UpdateClientAsync(string id, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Update an oauth2 client. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.client.update</code> + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + System.Threading.Tasks.Task> UpdateClientWithHttpInfoAsync(string id, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// Update a game server. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.update</code> + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of void + System.Threading.Tasks.Task UpdateGameServerAsync(string id, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Update a game server. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.update</code> + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + System.Threading.Tasks.Task> UpdateGameServerWithHttpInfoAsync(string id, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// Update a game server cluster. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.update</code> + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of void + System.Threading.Tasks.Task UpdateGameServerClusterAsync(string id, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Update a game server cluster. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.update</code> + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + System.Threading.Tasks.Task> UpdateGameServerClusterWithHttpInfoAsync(string id, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// Update a game server cluster. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.update</code> + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of void + [Obsolete] + System.Threading.Tasks.Task UpdateGameServerClusterV1Async(string id, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Update a game server cluster. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.update</code> + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + [Obsolete] + System.Threading.Tasks.Task> UpdateGameServerClusterV1WithHttpInfoAsync(string id, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// Update a game server. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.update</code> + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of void + [Obsolete] + System.Threading.Tasks.Task UpdateGameServerV1Async(string id, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Update a game server. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.update</code> + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + [Obsolete] + System.Threading.Tasks.Task> UpdateGameServerV1WithHttpInfoAsync(string id, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// Update a group. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.community.group.update</code> + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of void + System.Threading.Tasks.Task UpdateGroupAsync(string id, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Update a group. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.community.group.update</code> + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + System.Threading.Tasks.Task> UpdateGroupWithHttpInfoAsync(string id, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// Update an package. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.community.package.update</code> + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of void + System.Threading.Tasks.Task UpdatePackageAsync(string id, Package? package = default(Package?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Update an package. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.community.package.update</code> + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + System.Threading.Tasks.Task> UpdatePackageWithHttpInfoAsync(string id, Package? package = default(Package?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// Update a user profile. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.update</code> + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of Profile + System.Threading.Tasks.Task UpdateUserProfileAsync(string id, UpdateProfile? updateProfile = default(UpdateProfile?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Update a user profile. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.update</code> + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (Profile) + System.Threading.Tasks.Task> UpdateUserProfileWithHttpInfoAsync(string id, UpdateProfile? updateProfile = default(UpdateProfile?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// Update a user profile. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.update</code> + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of Profile + [Obsolete] + System.Threading.Tasks.Task UpdateUserProfileV1Async(string id, UpdateProfile? updateProfile = default(UpdateProfile?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Update a user profile. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.update</code> + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (Profile) + [Obsolete] + System.Threading.Tasks.Task> UpdateUserProfileV1WithHttpInfoAsync(string id, UpdateProfile? updateProfile = default(UpdateProfile?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface ITribufuGeneratedApi : ITribufuGeneratedApiSync, ITribufuGeneratedApiAsync + { + + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class TribufuGeneratedApi : ITribufuGeneratedApi + { + private Tribufu.Client.ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// + /// + public TribufuGeneratedApi() : this((string)null) + { + } + + /// + /// Initializes a new instance of the class. + /// + /// + public TribufuGeneratedApi(string basePath) + { + this.Configuration = Tribufu.Client.Configuration.MergeConfigurations( + Tribufu.Client.GlobalConfiguration.Instance, + new Tribufu.Client.Configuration { BasePath = basePath } + ); + this.Client = new Tribufu.Client.ApiClient(this.Configuration.BasePath); + this.AsynchronousClient = new Tribufu.Client.ApiClient(this.Configuration.BasePath); + this.ExceptionFactory = Tribufu.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using Configuration object + /// + /// An instance of Configuration + /// + public TribufuGeneratedApi(Tribufu.Client.Configuration configuration) + { + if (configuration == null) throw new ArgumentNullException("configuration"); + + this.Configuration = Tribufu.Client.Configuration.MergeConfigurations( + Tribufu.Client.GlobalConfiguration.Instance, + configuration + ); + this.Client = new Tribufu.Client.ApiClient(this.Configuration.BasePath); + this.AsynchronousClient = new Tribufu.Client.ApiClient(this.Configuration.BasePath); + ExceptionFactory = Tribufu.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using a Configuration object and client instance. + /// + /// The client interface for synchronous API access. + /// The client interface for asynchronous API access. + /// The configuration object. + public TribufuGeneratedApi(Tribufu.Client.ISynchronousClient client, Tribufu.Client.IAsynchronousClient asyncClient, Tribufu.Client.IReadableConfiguration configuration) + { + if (client == null) throw new ArgumentNullException("client"); + if (asyncClient == null) throw new ArgumentNullException("asyncClient"); + if (configuration == null) throw new ArgumentNullException("configuration"); + + this.Client = client; + this.AsynchronousClient = asyncClient; + this.Configuration = configuration; + this.ExceptionFactory = Tribufu.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// The client for accessing this underlying API asynchronously. + /// + public Tribufu.Client.IAsynchronousClient AsynchronousClient { get; set; } + + /// + /// The client for accessing this underlying API synchronously. + /// + public Tribufu.Client.ISynchronousClient Client { get; set; } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public string GetBasePath() + { + return this.Configuration.BasePath; + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public Tribufu.Client.IReadableConfiguration Configuration { get; set; } + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public Tribufu.Client.ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + /// + /// Authorize the client to access the user information. <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.authorize</code> + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// CodeResponse + public CodeResponse Authorize(AuthorizeRequest? authorizeRequest = default(AuthorizeRequest?), int operationIndex = 0) + { + Tribufu.Client.ApiResponse localVarResponse = AuthorizeWithHttpInfo(authorizeRequest); + return localVarResponse.Data; + } + + /// + /// Authorize the client to access the user information. <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.authorize</code> + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CodeResponse + public Tribufu.Client.ApiResponse AuthorizeWithHttpInfo(AuthorizeRequest? authorizeRequest = default(AuthorizeRequest?), int operationIndex = 0) + { + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = authorizeRequest; + + localVarRequestOptions.Operation = "TribufuGeneratedApi.Authorize"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = this.Client.Post("/v1/oauth2/authorize", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("Authorize", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Authorize the client to access the user information. <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.authorize</code> + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CodeResponse + public async System.Threading.Tasks.Task AuthorizeAsync(AuthorizeRequest? authorizeRequest = default(AuthorizeRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + Tribufu.Client.ApiResponse localVarResponse = await AuthorizeWithHttpInfoAsync(authorizeRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Authorize the client to access the user information. <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.authorize</code> + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CodeResponse) + public async System.Threading.Tasks.Task> AuthorizeWithHttpInfoAsync(AuthorizeRequest? authorizeRequest = default(AuthorizeRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = authorizeRequest; + + localVarRequestOptions.Operation = "TribufuGeneratedApi.Authorize"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/v1/oauth2/authorize", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("Authorize", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Change the email of a user. This endpoint is not available with an api key, only with a bearer token.<br/><br/><b>🔒 Required permissions:</b> <code>tribufu.identity.user.email.update</code> + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Index associated with the operation. + /// + public void ChangeEmail(string id, Object? body = default(Object?), int operationIndex = 0) + { + ChangeEmailWithHttpInfo(id, body); + } + + /// + /// Change the email of a user. This endpoint is not available with an api key, only with a bearer token.<br/><br/><b>🔒 Required permissions:</b> <code>tribufu.identity.user.email.update</code> + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Index associated with the operation. + /// ApiResponse of Object(void) + public Tribufu.Client.ApiResponse ChangeEmailWithHttpInfo(string id, Object? body = default(Object?), int operationIndex = 0) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->ChangeEmail"); + } + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json-patch+json", + "application/json", + "text/json", + "application/*+json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter + localVarRequestOptions.Data = body; + + localVarRequestOptions.Operation = "TribufuGeneratedApi.ChangeEmail"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = this.Client.Put("/v1/users/{id}/email", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ChangeEmail", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Change the email of a user. This endpoint is not available with an api key, only with a bearer token.<br/><br/><b>🔒 Required permissions:</b> <code>tribufu.identity.user.email.update</code> + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of void + public async System.Threading.Tasks.Task ChangeEmailAsync(string id, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + await ChangeEmailWithHttpInfoAsync(id, body, operationIndex, cancellationToken).ConfigureAwait(false); + } + + /// + /// Change the email of a user. This endpoint is not available with an api key, only with a bearer token.<br/><br/><b>🔒 Required permissions:</b> <code>tribufu.identity.user.email.update</code> + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + public async System.Threading.Tasks.Task> ChangeEmailWithHttpInfoAsync(string id, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->ChangeEmail"); + } + + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json-patch+json", + "application/json", + "text/json", + "application/*+json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter + localVarRequestOptions.Data = body; + + localVarRequestOptions.Operation = "TribufuGeneratedApi.ChangeEmail"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PutAsync("/v1/users/{id}/email", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ChangeEmail", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Change the password of a user. This endpoint is not available with an api key, only with a bearer token.<br/><br/><b>🔒 Required permissions:</b> <code>tribufu.identity.user.password.update</code> + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Index associated with the operation. + /// + public void ChangePassword(string id, Object? body = default(Object?), int operationIndex = 0) + { + ChangePasswordWithHttpInfo(id, body); + } + + /// + /// Change the password of a user. This endpoint is not available with an api key, only with a bearer token.<br/><br/><b>🔒 Required permissions:</b> <code>tribufu.identity.user.password.update</code> + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Index associated with the operation. + /// ApiResponse of Object(void) + public Tribufu.Client.ApiResponse ChangePasswordWithHttpInfo(string id, Object? body = default(Object?), int operationIndex = 0) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->ChangePassword"); + } + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json-patch+json", + "application/json", + "text/json", + "application/*+json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter + localVarRequestOptions.Data = body; + + localVarRequestOptions.Operation = "TribufuGeneratedApi.ChangePassword"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = this.Client.Put("/v1/users/{id}/password", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ChangePassword", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Change the password of a user. This endpoint is not available with an api key, only with a bearer token.<br/><br/><b>🔒 Required permissions:</b> <code>tribufu.identity.user.password.update</code> + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of void + public async System.Threading.Tasks.Task ChangePasswordAsync(string id, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + await ChangePasswordWithHttpInfoAsync(id, body, operationIndex, cancellationToken).ConfigureAwait(false); + } + + /// + /// Change the password of a user. This endpoint is not available with an api key, only with a bearer token.<br/><br/><b>🔒 Required permissions:</b> <code>tribufu.identity.user.password.update</code> + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + public async System.Threading.Tasks.Task> ChangePasswordWithHttpInfoAsync(string id, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->ChangePassword"); + } + + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json-patch+json", + "application/json", + "text/json", + "application/*+json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter + localVarRequestOptions.Data = body; + + localVarRequestOptions.Operation = "TribufuGeneratedApi.ChangePassword"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PutAsync("/v1/users/{id}/password", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ChangePassword", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Claim a game server. This endpoint is not available with an api key, only with a bearer token.<br/><br/><b>🔒 Required permissions:</b> <code>tribufu.game.server.claim</code> + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Index associated with the operation. + /// + public void ClaimGameServer(string id, Object? body = default(Object?), int operationIndex = 0) + { + ClaimGameServerWithHttpInfo(id, body); + } + + /// + /// Claim a game server. This endpoint is not available with an api key, only with a bearer token.<br/><br/><b>🔒 Required permissions:</b> <code>tribufu.game.server.claim</code> + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Index associated with the operation. + /// ApiResponse of Object(void) + public Tribufu.Client.ApiResponse ClaimGameServerWithHttpInfo(string id, Object? body = default(Object?), int operationIndex = 0) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->ClaimGameServer"); + } + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter + localVarRequestOptions.Data = body; + + localVarRequestOptions.Operation = "TribufuGeneratedApi.ClaimGameServer"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = this.Client.Put("/v1/games/servers/{id}/claim", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ClaimGameServer", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Claim a game server. This endpoint is not available with an api key, only with a bearer token.<br/><br/><b>🔒 Required permissions:</b> <code>tribufu.game.server.claim</code> + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of void + public async System.Threading.Tasks.Task ClaimGameServerAsync(string id, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + await ClaimGameServerWithHttpInfoAsync(id, body, operationIndex, cancellationToken).ConfigureAwait(false); + } + + /// + /// Claim a game server. This endpoint is not available with an api key, only with a bearer token.<br/><br/><b>🔒 Required permissions:</b> <code>tribufu.game.server.claim</code> + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + public async System.Threading.Tasks.Task> ClaimGameServerWithHttpInfoAsync(string id, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->ClaimGameServer"); + } + + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter + localVarRequestOptions.Data = body; + + localVarRequestOptions.Operation = "TribufuGeneratedApi.ClaimGameServer"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PutAsync("/v1/games/servers/{id}/claim", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ClaimGameServer", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Claim a game server. This endpoint is not available with an api key, only with a bearer token.<br/><br/><b>🔒 Required permissions:</b> <code>tribufu.game.server.claim</code> + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Index associated with the operation. + /// + [Obsolete] + public void ClaimGameServerV1(string id, Object? body = default(Object?), int operationIndex = 0) + { + ClaimGameServerV1WithHttpInfo(id, body); + } + + /// + /// Claim a game server. This endpoint is not available with an api key, only with a bearer token.<br/><br/><b>🔒 Required permissions:</b> <code>tribufu.game.server.claim</code> + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Index associated with the operation. + /// ApiResponse of Object(void) + [Obsolete] + public Tribufu.Client.ApiResponse ClaimGameServerV1WithHttpInfo(string id, Object? body = default(Object?), int operationIndex = 0) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->ClaimGameServerV1"); + } + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter + localVarRequestOptions.Data = body; + + localVarRequestOptions.Operation = "TribufuGeneratedApi.ClaimGameServerV1"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = this.Client.Put("/v1/servers/{id}/claim", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ClaimGameServerV1", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Claim a game server. This endpoint is not available with an api key, only with a bearer token.<br/><br/><b>🔒 Required permissions:</b> <code>tribufu.game.server.claim</code> + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of void + [Obsolete] + public async System.Threading.Tasks.Task ClaimGameServerV1Async(string id, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + await ClaimGameServerV1WithHttpInfoAsync(id, body, operationIndex, cancellationToken).ConfigureAwait(false); + } + + /// + /// Claim a game server. This endpoint is not available with an api key, only with a bearer token.<br/><br/><b>🔒 Required permissions:</b> <code>tribufu.game.server.claim</code> + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + [Obsolete] + public async System.Threading.Tasks.Task> ClaimGameServerV1WithHttpInfoAsync(string id, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->ClaimGameServerV1"); + } + + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter + localVarRequestOptions.Data = body; + + localVarRequestOptions.Operation = "TribufuGeneratedApi.ClaimGameServerV1"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PutAsync("/v1/servers/{id}/claim", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ClaimGameServerV1", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Convert a string to base64 or vice versa. <b>🔒 Required permissions:</b> <code>tribufu.utils.convert.base64</code> + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// CryptoViewModel + public CryptoViewModel ConvertBase64(CryptoViewModel? cryptoViewModel = default(CryptoViewModel?), int operationIndex = 0) + { + Tribufu.Client.ApiResponse localVarResponse = ConvertBase64WithHttpInfo(cryptoViewModel); + return localVarResponse.Data; + } + + /// + /// Convert a string to base64 or vice versa. <b>🔒 Required permissions:</b> <code>tribufu.utils.convert.base64</code> + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CryptoViewModel + public Tribufu.Client.ApiResponse ConvertBase64WithHttpInfo(CryptoViewModel? cryptoViewModel = default(CryptoViewModel?), int operationIndex = 0) + { + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = cryptoViewModel; + + localVarRequestOptions.Operation = "TribufuGeneratedApi.ConvertBase64"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = this.Client.Post("/v1/utils/base64", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ConvertBase64", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Convert a string to base64 or vice versa. <b>🔒 Required permissions:</b> <code>tribufu.utils.convert.base64</code> + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CryptoViewModel + public async System.Threading.Tasks.Task ConvertBase64Async(CryptoViewModel? cryptoViewModel = default(CryptoViewModel?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + Tribufu.Client.ApiResponse localVarResponse = await ConvertBase64WithHttpInfoAsync(cryptoViewModel, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Convert a string to base64 or vice versa. <b>🔒 Required permissions:</b> <code>tribufu.utils.convert.base64</code> + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CryptoViewModel) + public async System.Threading.Tasks.Task> ConvertBase64WithHttpInfoAsync(CryptoViewModel? cryptoViewModel = default(CryptoViewModel?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = cryptoViewModel; + + localVarRequestOptions.Operation = "TribufuGeneratedApi.ConvertBase64"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/v1/utils/base64", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ConvertBase64", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Create an oauth2 client. <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.client.create</code> + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// + public void CreateClient(Object? body = default(Object?), int operationIndex = 0) + { + CreateClientWithHttpInfo(body); + } + + /// + /// Create an oauth2 client. <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.client.create</code> + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// ApiResponse of Object(void) + public Tribufu.Client.ApiResponse CreateClientWithHttpInfo(Object? body = default(Object?), int operationIndex = 0) + { + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = body; + + localVarRequestOptions.Operation = "TribufuGeneratedApi.CreateClient"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = this.Client.Post("/v1/oauth2/clients", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateClient", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Create an oauth2 client. <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.client.create</code> + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of void + public async System.Threading.Tasks.Task CreateClientAsync(Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + await CreateClientWithHttpInfoAsync(body, operationIndex, cancellationToken).ConfigureAwait(false); + } + + /// + /// Create an oauth2 client. <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.client.create</code> + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + public async System.Threading.Tasks.Task> CreateClientWithHttpInfoAsync(Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = body; + + localVarRequestOptions.Operation = "TribufuGeneratedApi.CreateClient"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/v1/oauth2/clients", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateClient", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Create a new game server. <b>🔒 Required permissions:</b> <code>tribufu.game.server.create</code> + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// + public void CreateGameServer(Object? body = default(Object?), int operationIndex = 0) + { + CreateGameServerWithHttpInfo(body); + } + + /// + /// Create a new game server. <b>🔒 Required permissions:</b> <code>tribufu.game.server.create</code> + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// ApiResponse of Object(void) + public Tribufu.Client.ApiResponse CreateGameServerWithHttpInfo(Object? body = default(Object?), int operationIndex = 0) + { + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = body; + + localVarRequestOptions.Operation = "TribufuGeneratedApi.CreateGameServer"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = this.Client.Post("/v1/games/servers", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateGameServer", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Create a new game server. <b>🔒 Required permissions:</b> <code>tribufu.game.server.create</code> + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of void + public async System.Threading.Tasks.Task CreateGameServerAsync(Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + await CreateGameServerWithHttpInfoAsync(body, operationIndex, cancellationToken).ConfigureAwait(false); + } + + /// + /// Create a new game server. <b>🔒 Required permissions:</b> <code>tribufu.game.server.create</code> + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + public async System.Threading.Tasks.Task> CreateGameServerWithHttpInfoAsync(Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = body; + + localVarRequestOptions.Operation = "TribufuGeneratedApi.CreateGameServer"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/v1/games/servers", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateGameServer", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Create a new game server cluster. <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.create</code> + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// + public void CreateGameServerCluster(Object? body = default(Object?), int operationIndex = 0) + { + CreateGameServerClusterWithHttpInfo(body); + } + + /// + /// Create a new game server cluster. <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.create</code> + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// ApiResponse of Object(void) + public Tribufu.Client.ApiResponse CreateGameServerClusterWithHttpInfo(Object? body = default(Object?), int operationIndex = 0) + { + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = body; + + localVarRequestOptions.Operation = "TribufuGeneratedApi.CreateGameServerCluster"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = this.Client.Post("/v1/games/servers/clusters", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateGameServerCluster", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Create a new game server cluster. <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.create</code> + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of void + public async System.Threading.Tasks.Task CreateGameServerClusterAsync(Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + await CreateGameServerClusterWithHttpInfoAsync(body, operationIndex, cancellationToken).ConfigureAwait(false); + } + + /// + /// Create a new game server cluster. <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.create</code> + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + public async System.Threading.Tasks.Task> CreateGameServerClusterWithHttpInfoAsync(Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = body; + + localVarRequestOptions.Operation = "TribufuGeneratedApi.CreateGameServerCluster"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/v1/games/servers/clusters", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateGameServerCluster", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Create a new game server cluster. <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.create</code> + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// + [Obsolete] + public void CreateGameServerClusterV1(Object? body = default(Object?), int operationIndex = 0) + { + CreateGameServerClusterV1WithHttpInfo(body); + } + + /// + /// Create a new game server cluster. <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.create</code> + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// ApiResponse of Object(void) + [Obsolete] + public Tribufu.Client.ApiResponse CreateGameServerClusterV1WithHttpInfo(Object? body = default(Object?), int operationIndex = 0) + { + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = body; + + localVarRequestOptions.Operation = "TribufuGeneratedApi.CreateGameServerClusterV1"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = this.Client.Post("/v1/clusters", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateGameServerClusterV1", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Create a new game server cluster. <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.create</code> + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of void + [Obsolete] + public async System.Threading.Tasks.Task CreateGameServerClusterV1Async(Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + await CreateGameServerClusterV1WithHttpInfoAsync(body, operationIndex, cancellationToken).ConfigureAwait(false); + } + + /// + /// Create a new game server cluster. <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.create</code> + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + [Obsolete] + public async System.Threading.Tasks.Task> CreateGameServerClusterV1WithHttpInfoAsync(Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = body; + + localVarRequestOptions.Operation = "TribufuGeneratedApi.CreateGameServerClusterV1"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/v1/clusters", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateGameServerClusterV1", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Create a new game server. <b>🔒 Required permissions:</b> <code>tribufu.game.server.create</code> + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// + [Obsolete] + public void CreateGameServerV1(Object? body = default(Object?), int operationIndex = 0) + { + CreateGameServerV1WithHttpInfo(body); + } + + /// + /// Create a new game server. <b>🔒 Required permissions:</b> <code>tribufu.game.server.create</code> + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// ApiResponse of Object(void) + [Obsolete] + public Tribufu.Client.ApiResponse CreateGameServerV1WithHttpInfo(Object? body = default(Object?), int operationIndex = 0) + { + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = body; + + localVarRequestOptions.Operation = "TribufuGeneratedApi.CreateGameServerV1"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = this.Client.Post("/v1/servers", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateGameServerV1", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Create a new game server. <b>🔒 Required permissions:</b> <code>tribufu.game.server.create</code> + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of void + [Obsolete] + public async System.Threading.Tasks.Task CreateGameServerV1Async(Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + await CreateGameServerV1WithHttpInfoAsync(body, operationIndex, cancellationToken).ConfigureAwait(false); + } + + /// + /// Create a new game server. <b>🔒 Required permissions:</b> <code>tribufu.game.server.create</code> + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + [Obsolete] + public async System.Threading.Tasks.Task> CreateGameServerV1WithHttpInfoAsync(Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = body; + + localVarRequestOptions.Operation = "TribufuGeneratedApi.CreateGameServerV1"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/v1/servers", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateGameServerV1", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Create a new group. <b>🔒 Required permissions:</b> <code>tribufu.community.group.create</code> + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// + public void CreateGroup(Object? body = default(Object?), int operationIndex = 0) + { + CreateGroupWithHttpInfo(body); + } + + /// + /// Create a new group. <b>🔒 Required permissions:</b> <code>tribufu.community.group.create</code> + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// ApiResponse of Object(void) + public Tribufu.Client.ApiResponse CreateGroupWithHttpInfo(Object? body = default(Object?), int operationIndex = 0) + { + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = body; + + localVarRequestOptions.Operation = "TribufuGeneratedApi.CreateGroup"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = this.Client.Post("/v1/groups", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateGroup", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Create a new group. <b>🔒 Required permissions:</b> <code>tribufu.community.group.create</code> + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of void + public async System.Threading.Tasks.Task CreateGroupAsync(Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + await CreateGroupWithHttpInfoAsync(body, operationIndex, cancellationToken).ConfigureAwait(false); + } + + /// + /// Create a new group. <b>🔒 Required permissions:</b> <code>tribufu.community.group.create</code> + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + public async System.Threading.Tasks.Task> CreateGroupWithHttpInfoAsync(Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = body; + + localVarRequestOptions.Operation = "TribufuGeneratedApi.CreateGroup"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/v1/groups", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateGroup", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Create a new package. <b>🔒 Required permissions:</b> <code>tribufu.community.package.create</code> + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// (optional) + /// Index associated with the operation. + /// Package + public Package CreatePackage(string name, System.IO.Stream image, List files, string version, string? description = default(string?), int operationIndex = 0) + { + Tribufu.Client.ApiResponse localVarResponse = CreatePackageWithHttpInfo(name, image, files, version, description); + return localVarResponse.Data; + } + + /// + /// Create a new package. <b>🔒 Required permissions:</b> <code>tribufu.community.package.create</code> + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// (optional) + /// Index associated with the operation. + /// ApiResponse of Package + public Tribufu.Client.ApiResponse CreatePackageWithHttpInfo(string name, System.IO.Stream image, List files, string version, string? description = default(string?), int operationIndex = 0) + { + // verify the required parameter 'name' is set + if (name == null) + { + throw new Tribufu.Client.ApiException(400, "Missing required parameter 'name' when calling TribufuGeneratedApi->CreatePackage"); + } + + // verify the required parameter 'image' is set + if (image == null) + { + throw new Tribufu.Client.ApiException(400, "Missing required parameter 'image' when calling TribufuGeneratedApi->CreatePackage"); + } + + // verify the required parameter 'files' is set + if (files == null) + { + throw new Tribufu.Client.ApiException(400, "Missing required parameter 'files' when calling TribufuGeneratedApi->CreatePackage"); + } + + // verify the required parameter 'version' is set + if (version == null) + { + throw new Tribufu.Client.ApiException(400, "Missing required parameter 'version' when calling TribufuGeneratedApi->CreatePackage"); + } + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "multipart/form-data" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.FormParameters.Add("name", Tribufu.Client.ClientUtils.ParameterToString(name)); // form parameter + if (description != null) + { + localVarRequestOptions.FormParameters.Add("description", Tribufu.Client.ClientUtils.ParameterToString(description)); // form parameter + } + localVarRequestOptions.FileParameters.Add("image", image); + foreach (var file in files) + { + localVarRequestOptions.FileParameters.Add("files", file); + } + localVarRequestOptions.FormParameters.Add("version", Tribufu.Client.ClientUtils.ParameterToString(version)); // form parameter + + localVarRequestOptions.Operation = "TribufuGeneratedApi.CreatePackage"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = this.Client.Post("/v1/packages", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreatePackage", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Create a new package. <b>🔒 Required permissions:</b> <code>tribufu.community.package.create</code> + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of Package + public async System.Threading.Tasks.Task CreatePackageAsync(string name, System.IO.Stream image, List files, string version, string? description = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + Tribufu.Client.ApiResponse localVarResponse = await CreatePackageWithHttpInfoAsync(name, image, files, version, description, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Create a new package. <b>🔒 Required permissions:</b> <code>tribufu.community.package.create</code> + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (Package) + public async System.Threading.Tasks.Task> CreatePackageWithHttpInfoAsync(string name, System.IO.Stream image, List files, string version, string? description = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'name' is set + if (name == null) + { + throw new Tribufu.Client.ApiException(400, "Missing required parameter 'name' when calling TribufuGeneratedApi->CreatePackage"); + } + + // verify the required parameter 'image' is set + if (image == null) + { + throw new Tribufu.Client.ApiException(400, "Missing required parameter 'image' when calling TribufuGeneratedApi->CreatePackage"); + } + + // verify the required parameter 'files' is set + if (files == null) + { + throw new Tribufu.Client.ApiException(400, "Missing required parameter 'files' when calling TribufuGeneratedApi->CreatePackage"); + } + + // verify the required parameter 'version' is set + if (version == null) + { + throw new Tribufu.Client.ApiException(400, "Missing required parameter 'version' when calling TribufuGeneratedApi->CreatePackage"); + } + + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "multipart/form-data" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.FormParameters.Add("name", Tribufu.Client.ClientUtils.ParameterToString(name)); // form parameter + if (description != null) + { + localVarRequestOptions.FormParameters.Add("description", Tribufu.Client.ClientUtils.ParameterToString(description)); // form parameter + } + localVarRequestOptions.FileParameters.Add("image", image); + foreach (var file in files) + { + localVarRequestOptions.FileParameters.Add("files", file); + } + localVarRequestOptions.FormParameters.Add("version", Tribufu.Client.ClientUtils.ParameterToString(version)); // form parameter + + localVarRequestOptions.Operation = "TribufuGeneratedApi.CreatePackage"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/v1/packages", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreatePackage", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Create a new token with grant type. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// TokenResponse + public TokenResponse CreateToken(TokenRequest? tokenRequest = default(TokenRequest?), int operationIndex = 0) + { + Tribufu.Client.ApiResponse localVarResponse = CreateTokenWithHttpInfo(tokenRequest); + return localVarResponse.Data; + } + + /// + /// Create a new token with grant type. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// ApiResponse of TokenResponse + public Tribufu.Client.ApiResponse CreateTokenWithHttpInfo(TokenRequest? tokenRequest = default(TokenRequest?), int operationIndex = 0) + { + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json", + "application/x-www-form-urlencoded" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = tokenRequest; + + localVarRequestOptions.Operation = "TribufuGeneratedApi.CreateToken"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = this.Client.Post("/v1/oauth2/token", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateToken", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Create a new token with grant type. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of TokenResponse + public async System.Threading.Tasks.Task CreateTokenAsync(TokenRequest? tokenRequest = default(TokenRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + Tribufu.Client.ApiResponse localVarResponse = await CreateTokenWithHttpInfoAsync(tokenRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Create a new token with grant type. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (TokenResponse) + public async System.Threading.Tasks.Task> CreateTokenWithHttpInfoAsync(TokenRequest? tokenRequest = default(TokenRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json", + "application/x-www-form-urlencoded" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = tokenRequest; + + localVarRequestOptions.Operation = "TribufuGeneratedApi.CreateToken"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/v1/oauth2/token", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateToken", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Create an user. This endpoint is only available with client credentials. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// + public void CreateUser(CreateUser? createUser = default(CreateUser?), int operationIndex = 0) + { + CreateUserWithHttpInfo(createUser); + } + + /// + /// Create an user. This endpoint is only available with client credentials. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// ApiResponse of Object(void) + public Tribufu.Client.ApiResponse CreateUserWithHttpInfo(CreateUser? createUser = default(CreateUser?), int operationIndex = 0) + { + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = createUser; + + localVarRequestOptions.Operation = "TribufuGeneratedApi.CreateUser"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = this.Client.Post("/v1/users", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateUser", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Create an user. This endpoint is only available with client credentials. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of void + public async System.Threading.Tasks.Task CreateUserAsync(CreateUser? createUser = default(CreateUser?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + await CreateUserWithHttpInfoAsync(createUser, operationIndex, cancellationToken).ConfigureAwait(false); + } + + /// + /// Create an user. This endpoint is only available with client credentials. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + public async System.Threading.Tasks.Task> CreateUserWithHttpInfoAsync(CreateUser? createUser = default(CreateUser?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = createUser; + + localVarRequestOptions.Operation = "TribufuGeneratedApi.CreateUser"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/v1/users", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateUser", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Delete an oauth2 client. <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.client.delete</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// + public void DeleteClient(string id, int operationIndex = 0) + { + DeleteClientWithHttpInfo(id); + } + + /// + /// Delete an oauth2 client. <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.client.delete</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of Object(void) + public Tribufu.Client.ApiResponse DeleteClientWithHttpInfo(string id, int operationIndex = 0) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->DeleteClient"); + } + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter + + localVarRequestOptions.Operation = "TribufuGeneratedApi.DeleteClient"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = this.Client.Delete("/v1/oauth2/clients/{id}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteClient", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Delete an oauth2 client. <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.client.delete</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of void + public async System.Threading.Tasks.Task DeleteClientAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + await DeleteClientWithHttpInfoAsync(id, operationIndex, cancellationToken).ConfigureAwait(false); + } + + /// + /// Delete an oauth2 client. <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.client.delete</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + public async System.Threading.Tasks.Task> DeleteClientWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->DeleteClient"); + } + + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter + + localVarRequestOptions.Operation = "TribufuGeneratedApi.DeleteClient"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.DeleteAsync("/v1/oauth2/clients/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteClient", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Delete a game server. <b>🔒 Required permissions:</b> <code>tribufu.game.server.delete</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// + public void DeleteGameServer(string id, int operationIndex = 0) + { + DeleteGameServerWithHttpInfo(id); + } + + /// + /// Delete a game server. <b>🔒 Required permissions:</b> <code>tribufu.game.server.delete</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of Object(void) + public Tribufu.Client.ApiResponse DeleteGameServerWithHttpInfo(string id, int operationIndex = 0) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->DeleteGameServer"); + } + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter + + localVarRequestOptions.Operation = "TribufuGeneratedApi.DeleteGameServer"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = this.Client.Delete("/v1/games/servers/{id}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteGameServer", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Delete a game server. <b>🔒 Required permissions:</b> <code>tribufu.game.server.delete</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of void + public async System.Threading.Tasks.Task DeleteGameServerAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + await DeleteGameServerWithHttpInfoAsync(id, operationIndex, cancellationToken).ConfigureAwait(false); + } + + /// + /// Delete a game server. <b>🔒 Required permissions:</b> <code>tribufu.game.server.delete</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + public async System.Threading.Tasks.Task> DeleteGameServerWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->DeleteGameServer"); + } + + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter + + localVarRequestOptions.Operation = "TribufuGeneratedApi.DeleteGameServer"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.DeleteAsync("/v1/games/servers/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteGameServer", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Delete a game server cluster. <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.delete</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// + public void DeleteGameServerCluster(string id, int operationIndex = 0) + { + DeleteGameServerClusterWithHttpInfo(id); + } + + /// + /// Delete a game server cluster. <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.delete</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of Object(void) + public Tribufu.Client.ApiResponse DeleteGameServerClusterWithHttpInfo(string id, int operationIndex = 0) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->DeleteGameServerCluster"); + } + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter + + localVarRequestOptions.Operation = "TribufuGeneratedApi.DeleteGameServerCluster"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = this.Client.Delete("/v1/games/servers/clusters/{id}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteGameServerCluster", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Delete a game server cluster. <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.delete</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of void + public async System.Threading.Tasks.Task DeleteGameServerClusterAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + await DeleteGameServerClusterWithHttpInfoAsync(id, operationIndex, cancellationToken).ConfigureAwait(false); + } + + /// + /// Delete a game server cluster. <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.delete</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + public async System.Threading.Tasks.Task> DeleteGameServerClusterWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->DeleteGameServerCluster"); + } + + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter + + localVarRequestOptions.Operation = "TribufuGeneratedApi.DeleteGameServerCluster"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.DeleteAsync("/v1/games/servers/clusters/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteGameServerCluster", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Delete a game server cluster. <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.delete</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// + [Obsolete] + public void DeleteGameServerClusterV1(string id, int operationIndex = 0) + { + DeleteGameServerClusterV1WithHttpInfo(id); + } + + /// + /// Delete a game server cluster. <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.delete</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of Object(void) + [Obsolete] + public Tribufu.Client.ApiResponse DeleteGameServerClusterV1WithHttpInfo(string id, int operationIndex = 0) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->DeleteGameServerClusterV1"); + } + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter + + localVarRequestOptions.Operation = "TribufuGeneratedApi.DeleteGameServerClusterV1"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = this.Client.Delete("/v1/clusters/{id}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteGameServerClusterV1", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Delete a game server cluster. <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.delete</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of void + [Obsolete] + public async System.Threading.Tasks.Task DeleteGameServerClusterV1Async(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + await DeleteGameServerClusterV1WithHttpInfoAsync(id, operationIndex, cancellationToken).ConfigureAwait(false); + } + + /// + /// Delete a game server cluster. <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.delete</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + [Obsolete] + public async System.Threading.Tasks.Task> DeleteGameServerClusterV1WithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->DeleteGameServerClusterV1"); + } + + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter + + localVarRequestOptions.Operation = "TribufuGeneratedApi.DeleteGameServerClusterV1"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.DeleteAsync("/v1/clusters/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteGameServerClusterV1", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Delete a game server. <b>🔒 Required permissions:</b> <code>tribufu.game.server.delete</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// + [Obsolete] + public void DeleteGameServerV1(string id, int operationIndex = 0) + { + DeleteGameServerV1WithHttpInfo(id); + } + + /// + /// Delete a game server. <b>🔒 Required permissions:</b> <code>tribufu.game.server.delete</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of Object(void) + [Obsolete] + public Tribufu.Client.ApiResponse DeleteGameServerV1WithHttpInfo(string id, int operationIndex = 0) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->DeleteGameServerV1"); + } + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter + + localVarRequestOptions.Operation = "TribufuGeneratedApi.DeleteGameServerV1"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = this.Client.Delete("/v1/servers/{id}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteGameServerV1", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Delete a game server. <b>🔒 Required permissions:</b> <code>tribufu.game.server.delete</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of void + [Obsolete] + public async System.Threading.Tasks.Task DeleteGameServerV1Async(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + await DeleteGameServerV1WithHttpInfoAsync(id, operationIndex, cancellationToken).ConfigureAwait(false); + } + + /// + /// Delete a game server. <b>🔒 Required permissions:</b> <code>tribufu.game.server.delete</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + [Obsolete] + public async System.Threading.Tasks.Task> DeleteGameServerV1WithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->DeleteGameServerV1"); + } + + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter + + localVarRequestOptions.Operation = "TribufuGeneratedApi.DeleteGameServerV1"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.DeleteAsync("/v1/servers/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteGameServerV1", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Delete a group. <b>🔒 Required permissions:</b> <code>tribufu.community.group.delete</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// + public void DeleteGroup(string id, int operationIndex = 0) + { + DeleteGroupWithHttpInfo(id); + } + + /// + /// Delete a group. <b>🔒 Required permissions:</b> <code>tribufu.community.group.delete</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of Object(void) + public Tribufu.Client.ApiResponse DeleteGroupWithHttpInfo(string id, int operationIndex = 0) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->DeleteGroup"); + } + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter + + localVarRequestOptions.Operation = "TribufuGeneratedApi.DeleteGroup"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = this.Client.Delete("/v1/groups/{id}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteGroup", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Delete a group. <b>🔒 Required permissions:</b> <code>tribufu.community.group.delete</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of void + public async System.Threading.Tasks.Task DeleteGroupAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + await DeleteGroupWithHttpInfoAsync(id, operationIndex, cancellationToken).ConfigureAwait(false); + } + + /// + /// Delete a group. <b>🔒 Required permissions:</b> <code>tribufu.community.group.delete</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + public async System.Threading.Tasks.Task> DeleteGroupWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->DeleteGroup"); + } + + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter + + localVarRequestOptions.Operation = "TribufuGeneratedApi.DeleteGroup"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.DeleteAsync("/v1/groups/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteGroup", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Delete an package. <b>🔒 Required permissions:</b> <code>tribufu.community.package.delete</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// + public void DeletePackage(string id, int operationIndex = 0) + { + DeletePackageWithHttpInfo(id); + } + + /// + /// Delete an package. <b>🔒 Required permissions:</b> <code>tribufu.community.package.delete</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of Object(void) + public Tribufu.Client.ApiResponse DeletePackageWithHttpInfo(string id, int operationIndex = 0) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->DeletePackage"); + } + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter + + localVarRequestOptions.Operation = "TribufuGeneratedApi.DeletePackage"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = this.Client.Delete("/v1/packages/{id}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeletePackage", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Delete an package. <b>🔒 Required permissions:</b> <code>tribufu.community.package.delete</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of void + public async System.Threading.Tasks.Task DeletePackageAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + await DeletePackageWithHttpInfoAsync(id, operationIndex, cancellationToken).ConfigureAwait(false); + } + + /// + /// Delete an package. <b>🔒 Required permissions:</b> <code>tribufu.community.package.delete</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + public async System.Threading.Tasks.Task> DeletePackageWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->DeletePackage"); + } + + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter + + localVarRequestOptions.Operation = "TribufuGeneratedApi.DeletePackage"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.DeleteAsync("/v1/packages/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeletePackage", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Generate one or more flake ids. <b>🔒 Required permissions:</b> <code>tribufu.utils.generate.flake</code> + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// List<string> + public List GenerateFlakeId(int? amount = default(int?), int operationIndex = 0) + { + Tribufu.Client.ApiResponse> localVarResponse = GenerateFlakeIdWithHttpInfo(amount); + return localVarResponse.Data; + } + + /// + /// Generate one or more flake ids. <b>🔒 Required permissions:</b> <code>tribufu.utils.generate.flake</code> + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// ApiResponse of List<string> + public Tribufu.Client.ApiResponse> GenerateFlakeIdWithHttpInfo(int? amount = default(int?), int operationIndex = 0) + { + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (amount != null) + { + localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "amount", amount)); + } + + localVarRequestOptions.Operation = "TribufuGeneratedApi.GenerateFlakeId"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get>("/v1/utils/flake", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GenerateFlakeId", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Generate one or more flake ids. <b>🔒 Required permissions:</b> <code>tribufu.utils.generate.flake</code> + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of List<string> + public async System.Threading.Tasks.Task> GenerateFlakeIdAsync(int? amount = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + Tribufu.Client.ApiResponse> localVarResponse = await GenerateFlakeIdWithHttpInfoAsync(amount, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Generate one or more flake ids. <b>🔒 Required permissions:</b> <code>tribufu.utils.generate.flake</code> + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (List<string>) + public async System.Threading.Tasks.Task>> GenerateFlakeIdWithHttpInfoAsync(int? amount = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (amount != null) + { + localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "amount", amount)); + } + + localVarRequestOptions.Operation = "TribufuGeneratedApi.GenerateFlakeId"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync>("/v1/utils/flake", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GenerateFlakeId", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Generate one or more flake ids from a timestamp. <b>🔒 Required permissions:</b> <code>tribufu.utils.generate.flake.timestamp</code> + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Index associated with the operation. + /// List<string> + public List GenerateFlakeIdFromTimestamp(string timestamp, int? amount = default(int?), int operationIndex = 0) + { + Tribufu.Client.ApiResponse> localVarResponse = GenerateFlakeIdFromTimestampWithHttpInfo(timestamp, amount); + return localVarResponse.Data; + } + + /// + /// Generate one or more flake ids from a timestamp. <b>🔒 Required permissions:</b> <code>tribufu.utils.generate.flake.timestamp</code> + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Index associated with the operation. + /// ApiResponse of List<string> + public Tribufu.Client.ApiResponse> GenerateFlakeIdFromTimestampWithHttpInfo(string timestamp, int? amount = default(int?), int operationIndex = 0) + { + // verify the required parameter 'timestamp' is set + if (timestamp == null) + { + throw new Tribufu.Client.ApiException(400, "Missing required parameter 'timestamp' when calling TribufuGeneratedApi->GenerateFlakeIdFromTimestamp"); + } + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("timestamp", Tribufu.Client.ClientUtils.ParameterToString(timestamp)); // path parameter + if (amount != null) + { + localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "amount", amount)); + } + + localVarRequestOptions.Operation = "TribufuGeneratedApi.GenerateFlakeIdFromTimestamp"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get>("/v1/utils/flake/{timestamp}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GenerateFlakeIdFromTimestamp", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Generate one or more flake ids from a timestamp. <b>🔒 Required permissions:</b> <code>tribufu.utils.generate.flake.timestamp</code> + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of List<string> + public async System.Threading.Tasks.Task> GenerateFlakeIdFromTimestampAsync(string timestamp, int? amount = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + Tribufu.Client.ApiResponse> localVarResponse = await GenerateFlakeIdFromTimestampWithHttpInfoAsync(timestamp, amount, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Generate one or more flake ids from a timestamp. <b>🔒 Required permissions:</b> <code>tribufu.utils.generate.flake.timestamp</code> + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (List<string>) + public async System.Threading.Tasks.Task>> GenerateFlakeIdFromTimestampWithHttpInfoAsync(string timestamp, int? amount = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'timestamp' is set + if (timestamp == null) + { + throw new Tribufu.Client.ApiException(400, "Missing required parameter 'timestamp' when calling TribufuGeneratedApi->GenerateFlakeIdFromTimestamp"); + } + + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("timestamp", Tribufu.Client.ClientUtils.ParameterToString(timestamp)); // path parameter + if (amount != null) + { + localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "amount", amount)); + } + + localVarRequestOptions.Operation = "TribufuGeneratedApi.GenerateFlakeIdFromTimestamp"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync>("/v1/utils/flake/{timestamp}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GenerateFlakeIdFromTimestamp", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Generate a random password. <b>🔒 Required permissions:</b> <code>tribufu.utils.generate.password</code> + /// + /// Thrown when fails to make API call + /// (optional) + /// (optional) + /// Index associated with the operation. + /// HashViewModel + public HashViewModel GeneratePassword(int? length = default(int?), bool? symbols = default(bool?), int operationIndex = 0) + { + Tribufu.Client.ApiResponse localVarResponse = GeneratePasswordWithHttpInfo(length, symbols); + return localVarResponse.Data; + } + + /// + /// Generate a random password. <b>🔒 Required permissions:</b> <code>tribufu.utils.generate.password</code> + /// + /// Thrown when fails to make API call + /// (optional) + /// (optional) + /// Index associated with the operation. + /// ApiResponse of HashViewModel + public Tribufu.Client.ApiResponse GeneratePasswordWithHttpInfo(int? length = default(int?), bool? symbols = default(bool?), int operationIndex = 0) + { + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (length != null) + { + localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "length", length)); + } + if (symbols != null) + { + localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "symbols", symbols)); + } + + localVarRequestOptions.Operation = "TribufuGeneratedApi.GeneratePassword"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/v1/utils/password", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GeneratePassword", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Generate a random password. <b>🔒 Required permissions:</b> <code>tribufu.utils.generate.password</code> + /// + /// Thrown when fails to make API call + /// (optional) + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of HashViewModel + public async System.Threading.Tasks.Task GeneratePasswordAsync(int? length = default(int?), bool? symbols = default(bool?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + Tribufu.Client.ApiResponse localVarResponse = await GeneratePasswordWithHttpInfoAsync(length, symbols, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Generate a random password. <b>🔒 Required permissions:</b> <code>tribufu.utils.generate.password</code> + /// + /// Thrown when fails to make API call + /// (optional) + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (HashViewModel) + public async System.Threading.Tasks.Task> GeneratePasswordWithHttpInfoAsync(int? length = default(int?), bool? symbols = default(bool?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (length != null) + { + localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "length", length)); + } + if (symbols != null) + { + localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "symbols", symbols)); + } + + localVarRequestOptions.Operation = "TribufuGeneratedApi.GeneratePassword"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/v1/utils/password", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GeneratePassword", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Generate one or more uuids with a specific version. <b>🔒 Required permissions:</b> <code>tribufu.utils.generate.uuid</code> + /// + /// Thrown when fails to make API call + /// (optional) + /// (optional) + /// Index associated with the operation. + /// List<Guid> + public List GenerateUuid(int? version = default(int?), int? amount = default(int?), int operationIndex = 0) + { + Tribufu.Client.ApiResponse> localVarResponse = GenerateUuidWithHttpInfo(version, amount); + return localVarResponse.Data; + } + + /// + /// Generate one or more uuids with a specific version. <b>🔒 Required permissions:</b> <code>tribufu.utils.generate.uuid</code> + /// + /// Thrown when fails to make API call + /// (optional) + /// (optional) + /// Index associated with the operation. + /// ApiResponse of List<Guid> + public Tribufu.Client.ApiResponse> GenerateUuidWithHttpInfo(int? version = default(int?), int? amount = default(int?), int operationIndex = 0) + { + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (version != null) + { + localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "version", version)); + } + if (amount != null) + { + localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "amount", amount)); + } + + localVarRequestOptions.Operation = "TribufuGeneratedApi.GenerateUuid"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get>("/v1/utils/uuid", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GenerateUuid", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Generate one or more uuids with a specific version. <b>🔒 Required permissions:</b> <code>tribufu.utils.generate.uuid</code> + /// + /// Thrown when fails to make API call + /// (optional) + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of List<Guid> + public async System.Threading.Tasks.Task> GenerateUuidAsync(int? version = default(int?), int? amount = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + Tribufu.Client.ApiResponse> localVarResponse = await GenerateUuidWithHttpInfoAsync(version, amount, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Generate one or more uuids with a specific version. <b>🔒 Required permissions:</b> <code>tribufu.utils.generate.uuid</code> + /// + /// Thrown when fails to make API call + /// (optional) + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (List<Guid>) + public async System.Threading.Tasks.Task>> GenerateUuidWithHttpInfoAsync(int? version = default(int?), int? amount = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (version != null) + { + localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "version", version)); + } + if (amount != null) + { + localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "amount", amount)); + } + + localVarRequestOptions.Operation = "TribufuGeneratedApi.GenerateUuid"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync>("/v1/utils/uuid", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GenerateUuid", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get an oauth2 client by id. <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.client.get</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ModelClient + public ModelClient GetClientById(string id, int operationIndex = 0) + { + Tribufu.Client.ApiResponse localVarResponse = GetClientByIdWithHttpInfo(id); + return localVarResponse.Data; + } + + /// + /// Get an oauth2 client by id. <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.client.get</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of ModelClient + public Tribufu.Client.ApiResponse GetClientByIdWithHttpInfo(string id, int operationIndex = 0) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->GetClientById"); + } + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter + + localVarRequestOptions.Operation = "TribufuGeneratedApi.GetClientById"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/v1/oauth2/clients/{id}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClientById", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get an oauth2 client by id. <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.client.get</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ModelClient + public async System.Threading.Tasks.Task GetClientByIdAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + Tribufu.Client.ApiResponse localVarResponse = await GetClientByIdWithHttpInfoAsync(id, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get an oauth2 client by id. <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.client.get</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (ModelClient) + public async System.Threading.Tasks.Task> GetClientByIdWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->GetClientById"); + } + + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter + + localVarRequestOptions.Operation = "TribufuGeneratedApi.GetClientById"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/v1/oauth2/clients/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClientById", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get current client information. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ClientInfo + public ClientInfo GetClientInfo(int operationIndex = 0) + { + Tribufu.Client.ApiResponse localVarResponse = GetClientInfoWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// Get current client information. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of ClientInfo + public Tribufu.Client.ApiResponse GetClientInfoWithHttpInfo(int operationIndex = 0) + { + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "TribufuGeneratedApi.GetClientInfo"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/v1/oauth2/clientinfo", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClientInfo", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get current client information. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ClientInfo + public async System.Threading.Tasks.Task GetClientInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + Tribufu.Client.ApiResponse localVarResponse = await GetClientInfoWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get current client information. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (ClientInfo) + public async System.Threading.Tasks.Task> GetClientInfoWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "TribufuGeneratedApi.GetClientInfo"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/v1/oauth2/clientinfo", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClientInfo", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get a list of oauth2 clients. <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.client.list</code> + /// + /// Thrown when fails to make API call + /// Filters results by organization, defaults to all organizations the user belongs to. (optional) + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// List<ModelClient> + public List GetClients(string? organizationId = default(string?), int? page = default(int?), int? limit = default(int?), int operationIndex = 0) + { + Tribufu.Client.ApiResponse> localVarResponse = GetClientsWithHttpInfo(organizationId, page, limit); + return localVarResponse.Data; + } + + /// + /// Get a list of oauth2 clients. <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.client.list</code> + /// + /// Thrown when fails to make API call + /// Filters results by organization, defaults to all organizations the user belongs to. (optional) + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// ApiResponse of List<ModelClient> + public Tribufu.Client.ApiResponse> GetClientsWithHttpInfo(string? organizationId = default(string?), int? page = default(int?), int? limit = default(int?), int operationIndex = 0) + { + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (organizationId != null) + { + localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "organization_id", organizationId)); + } + if (page != null) + { + localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + } + if (limit != null) + { + localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "limit", limit)); + } + + localVarRequestOptions.Operation = "TribufuGeneratedApi.GetClients"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get>("/v1/oauth2/clients", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClients", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get a list of oauth2 clients. <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.client.list</code> + /// + /// Thrown when fails to make API call + /// Filters results by organization, defaults to all organizations the user belongs to. (optional) + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of List<ModelClient> + public async System.Threading.Tasks.Task> GetClientsAsync(string? organizationId = default(string?), int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + Tribufu.Client.ApiResponse> localVarResponse = await GetClientsWithHttpInfoAsync(organizationId, page, limit, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get a list of oauth2 clients. <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.client.list</code> + /// + /// Thrown when fails to make API call + /// Filters results by organization, defaults to all organizations the user belongs to. (optional) + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (List<ModelClient>) + public async System.Threading.Tasks.Task>> GetClientsWithHttpInfoAsync(string? organizationId = default(string?), int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (organizationId != null) + { + localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "organization_id", organizationId)); + } + if (page != null) + { + localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + } + if (limit != null) + { + localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "limit", limit)); + } + + localVarRequestOptions.Operation = "TribufuGeneratedApi.GetClients"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync>("/v1/oauth2/clients", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClients", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get current ip address location. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// List<IpAddress> + public List GetCurrentIpAddress(int operationIndex = 0) + { + Tribufu.Client.ApiResponse> localVarResponse = GetCurrentIpAddressWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// Get current ip address location. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of List<IpAddress> + public Tribufu.Client.ApiResponse> GetCurrentIpAddressWithHttpInfo(int operationIndex = 0) + { + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "TribufuGeneratedApi.GetCurrentIpAddress"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get>("/v1/geoip", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetCurrentIpAddress", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get current ip address location. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of List<IpAddress> + public async System.Threading.Tasks.Task> GetCurrentIpAddressAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + Tribufu.Client.ApiResponse> localVarResponse = await GetCurrentIpAddressWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get current ip address location. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (List<IpAddress>) + public async System.Threading.Tasks.Task>> GetCurrentIpAddressWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "TribufuGeneratedApi.GetCurrentIpAddress"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync>("/v1/geoip", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetCurrentIpAddress", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get a game by id. <b>🔒 Required permissions:</b> <code>tribufu.game.get</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Game + public Game GetGameById(string id, int operationIndex = 0) + { + Tribufu.Client.ApiResponse localVarResponse = GetGameByIdWithHttpInfo(id); + return localVarResponse.Data; + } + + /// + /// Get a game by id. <b>🔒 Required permissions:</b> <code>tribufu.game.get</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of Game + public Tribufu.Client.ApiResponse GetGameByIdWithHttpInfo(string id, int operationIndex = 0) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->GetGameById"); + } + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter + + localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGameById"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/v1/games/{id}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetGameById", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get a game by id. <b>🔒 Required permissions:</b> <code>tribufu.game.get</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of Game + public async System.Threading.Tasks.Task GetGameByIdAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + Tribufu.Client.ApiResponse localVarResponse = await GetGameByIdWithHttpInfoAsync(id, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get a game by id. <b>🔒 Required permissions:</b> <code>tribufu.game.get</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (Game) + public async System.Threading.Tasks.Task> GetGameByIdWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->GetGameById"); + } + + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter + + localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGameById"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/v1/games/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetGameById", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get a game server by address and query port. <b>🔒 Required permissions:</b> <code>tribufu.game.server.get.address</code> + /// + /// Thrown when fails to make API call + /// + /// + /// Index associated with the operation. + /// GameServer + public GameServer GetGameServerByAddressAndQueryPort(string address, int port, int operationIndex = 0) + { + Tribufu.Client.ApiResponse localVarResponse = GetGameServerByAddressAndQueryPortWithHttpInfo(address, port); + return localVarResponse.Data; + } + + /// + /// Get a game server by address and query port. <b>🔒 Required permissions:</b> <code>tribufu.game.server.get.address</code> + /// + /// Thrown when fails to make API call + /// + /// + /// Index associated with the operation. + /// ApiResponse of GameServer + public Tribufu.Client.ApiResponse GetGameServerByAddressAndQueryPortWithHttpInfo(string address, int port, int operationIndex = 0) + { + // verify the required parameter 'address' is set + if (address == null) + { + throw new Tribufu.Client.ApiException(400, "Missing required parameter 'address' when calling TribufuGeneratedApi->GetGameServerByAddressAndQueryPort"); + } + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("address", Tribufu.Client.ClientUtils.ParameterToString(address)); // path parameter + localVarRequestOptions.PathParameters.Add("port", Tribufu.Client.ClientUtils.ParameterToString(port)); // path parameter + + localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGameServerByAddressAndQueryPort"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/v1/games/servers/address/{address}:{port}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetGameServerByAddressAndQueryPort", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get a game server by address and query port. <b>🔒 Required permissions:</b> <code>tribufu.game.server.get.address</code> + /// + /// Thrown when fails to make API call + /// + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GameServer + public async System.Threading.Tasks.Task GetGameServerByAddressAndQueryPortAsync(string address, int port, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + Tribufu.Client.ApiResponse localVarResponse = await GetGameServerByAddressAndQueryPortWithHttpInfoAsync(address, port, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get a game server by address and query port. <b>🔒 Required permissions:</b> <code>tribufu.game.server.get.address</code> + /// + /// Thrown when fails to make API call + /// + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GameServer) + public async System.Threading.Tasks.Task> GetGameServerByAddressAndQueryPortWithHttpInfoAsync(string address, int port, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'address' is set + if (address == null) + { + throw new Tribufu.Client.ApiException(400, "Missing required parameter 'address' when calling TribufuGeneratedApi->GetGameServerByAddressAndQueryPort"); + } + + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("address", Tribufu.Client.ClientUtils.ParameterToString(address)); // path parameter + localVarRequestOptions.PathParameters.Add("port", Tribufu.Client.ClientUtils.ParameterToString(port)); // path parameter + + localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGameServerByAddressAndQueryPort"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/v1/games/servers/address/{address}:{port}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetGameServerByAddressAndQueryPort", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get a game server by address and query port. <b>🔒 Required permissions:</b> <code>tribufu.game.server.get.address</code> + /// + /// Thrown when fails to make API call + /// + /// + /// Index associated with the operation. + /// GameServer + [Obsolete] + public GameServer GetGameServerByAddressAndQueryPortV1(string address, int port, int operationIndex = 0) + { + Tribufu.Client.ApiResponse localVarResponse = GetGameServerByAddressAndQueryPortV1WithHttpInfo(address, port); + return localVarResponse.Data; + } + + /// + /// Get a game server by address and query port. <b>🔒 Required permissions:</b> <code>tribufu.game.server.get.address</code> + /// + /// Thrown when fails to make API call + /// + /// + /// Index associated with the operation. + /// ApiResponse of GameServer + [Obsolete] + public Tribufu.Client.ApiResponse GetGameServerByAddressAndQueryPortV1WithHttpInfo(string address, int port, int operationIndex = 0) + { + // verify the required parameter 'address' is set + if (address == null) + { + throw new Tribufu.Client.ApiException(400, "Missing required parameter 'address' when calling TribufuGeneratedApi->GetGameServerByAddressAndQueryPortV1"); + } + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("address", Tribufu.Client.ClientUtils.ParameterToString(address)); // path parameter + localVarRequestOptions.PathParameters.Add("port", Tribufu.Client.ClientUtils.ParameterToString(port)); // path parameter + + localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGameServerByAddressAndQueryPortV1"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/v1/servers/address/{address}:{port}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetGameServerByAddressAndQueryPortV1", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get a game server by address and query port. <b>🔒 Required permissions:</b> <code>tribufu.game.server.get.address</code> + /// + /// Thrown when fails to make API call + /// + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GameServer + [Obsolete] + public async System.Threading.Tasks.Task GetGameServerByAddressAndQueryPortV1Async(string address, int port, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + Tribufu.Client.ApiResponse localVarResponse = await GetGameServerByAddressAndQueryPortV1WithHttpInfoAsync(address, port, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get a game server by address and query port. <b>🔒 Required permissions:</b> <code>tribufu.game.server.get.address</code> + /// + /// Thrown when fails to make API call + /// + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GameServer) + [Obsolete] + public async System.Threading.Tasks.Task> GetGameServerByAddressAndQueryPortV1WithHttpInfoAsync(string address, int port, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'address' is set + if (address == null) + { + throw new Tribufu.Client.ApiException(400, "Missing required parameter 'address' when calling TribufuGeneratedApi->GetGameServerByAddressAndQueryPortV1"); + } + + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("address", Tribufu.Client.ClientUtils.ParameterToString(address)); // path parameter + localVarRequestOptions.PathParameters.Add("port", Tribufu.Client.ClientUtils.ParameterToString(port)); // path parameter + + localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGameServerByAddressAndQueryPortV1"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/v1/servers/address/{address}:{port}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetGameServerByAddressAndQueryPortV1", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get a game server by id. <b>🔒 Required permissions:</b> <code>tribufu.game.server.get</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// GameServer + public GameServer GetGameServerById(string id, int operationIndex = 0) + { + Tribufu.Client.ApiResponse localVarResponse = GetGameServerByIdWithHttpInfo(id); + return localVarResponse.Data; + } + + /// + /// Get a game server by id. <b>🔒 Required permissions:</b> <code>tribufu.game.server.get</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of GameServer + public Tribufu.Client.ApiResponse GetGameServerByIdWithHttpInfo(string id, int operationIndex = 0) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->GetGameServerById"); + } + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter + + localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGameServerById"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/v1/games/servers/{id}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetGameServerById", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get a game server by id. <b>🔒 Required permissions:</b> <code>tribufu.game.server.get</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GameServer + public async System.Threading.Tasks.Task GetGameServerByIdAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + Tribufu.Client.ApiResponse localVarResponse = await GetGameServerByIdWithHttpInfoAsync(id, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get a game server by id. <b>🔒 Required permissions:</b> <code>tribufu.game.server.get</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GameServer) + public async System.Threading.Tasks.Task> GetGameServerByIdWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->GetGameServerById"); + } + + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter + + localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGameServerById"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/v1/games/servers/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetGameServerById", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get a game server by id. <b>🔒 Required permissions:</b> <code>tribufu.game.server.get</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// GameServer + [Obsolete] + public GameServer GetGameServerByIdV1(string id, int operationIndex = 0) + { + Tribufu.Client.ApiResponse localVarResponse = GetGameServerByIdV1WithHttpInfo(id); + return localVarResponse.Data; + } + + /// + /// Get a game server by id. <b>🔒 Required permissions:</b> <code>tribufu.game.server.get</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of GameServer + [Obsolete] + public Tribufu.Client.ApiResponse GetGameServerByIdV1WithHttpInfo(string id, int operationIndex = 0) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->GetGameServerByIdV1"); + } + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter + + localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGameServerByIdV1"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/v1/servers/{id}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetGameServerByIdV1", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get a game server by id. <b>🔒 Required permissions:</b> <code>tribufu.game.server.get</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GameServer + [Obsolete] + public async System.Threading.Tasks.Task GetGameServerByIdV1Async(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + Tribufu.Client.ApiResponse localVarResponse = await GetGameServerByIdV1WithHttpInfoAsync(id, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get a game server by id. <b>🔒 Required permissions:</b> <code>tribufu.game.server.get</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GameServer) + [Obsolete] + public async System.Threading.Tasks.Task> GetGameServerByIdV1WithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->GetGameServerByIdV1"); + } + + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter + + localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGameServerByIdV1"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/v1/servers/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetGameServerByIdV1", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get a game server cluster by id. <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.get</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// GameServerCluster + public GameServerCluster GetGameServerClusterById(string id, int operationIndex = 0) + { + Tribufu.Client.ApiResponse localVarResponse = GetGameServerClusterByIdWithHttpInfo(id); + return localVarResponse.Data; + } + + /// + /// Get a game server cluster by id. <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.get</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of GameServerCluster + public Tribufu.Client.ApiResponse GetGameServerClusterByIdWithHttpInfo(string id, int operationIndex = 0) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->GetGameServerClusterById"); + } + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter + + localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGameServerClusterById"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/v1/games/servers/clusters/{id}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetGameServerClusterById", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get a game server cluster by id. <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.get</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GameServerCluster + public async System.Threading.Tasks.Task GetGameServerClusterByIdAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + Tribufu.Client.ApiResponse localVarResponse = await GetGameServerClusterByIdWithHttpInfoAsync(id, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get a game server cluster by id. <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.get</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GameServerCluster) + public async System.Threading.Tasks.Task> GetGameServerClusterByIdWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->GetGameServerClusterById"); + } + + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter + + localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGameServerClusterById"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/v1/games/servers/clusters/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetGameServerClusterById", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get a game server cluster by id. <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.get</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// GameServerCluster + [Obsolete] + public GameServerCluster GetGameServerClusterByIdV1(string id, int operationIndex = 0) + { + Tribufu.Client.ApiResponse localVarResponse = GetGameServerClusterByIdV1WithHttpInfo(id); + return localVarResponse.Data; + } + + /// + /// Get a game server cluster by id. <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.get</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of GameServerCluster + [Obsolete] + public Tribufu.Client.ApiResponse GetGameServerClusterByIdV1WithHttpInfo(string id, int operationIndex = 0) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->GetGameServerClusterByIdV1"); + } + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter + + localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGameServerClusterByIdV1"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/v1/clusters/{id}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetGameServerClusterByIdV1", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get a game server cluster by id. <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.get</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GameServerCluster + [Obsolete] + public async System.Threading.Tasks.Task GetGameServerClusterByIdV1Async(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + Tribufu.Client.ApiResponse localVarResponse = await GetGameServerClusterByIdV1WithHttpInfoAsync(id, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get a game server cluster by id. <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.get</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GameServerCluster) + [Obsolete] + public async System.Threading.Tasks.Task> GetGameServerClusterByIdV1WithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->GetGameServerClusterByIdV1"); + } + + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter + + localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGameServerClusterByIdV1"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/v1/clusters/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetGameServerClusterByIdV1", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get a list of game server cluster servers. <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.server.list</code> + /// + /// Thrown when fails to make API call + /// + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// List<Object> + public List GetGameServerClusterServers(string id, int? page = default(int?), int? limit = default(int?), int operationIndex = 0) + { + Tribufu.Client.ApiResponse> localVarResponse = GetGameServerClusterServersWithHttpInfo(id, page, limit); + return localVarResponse.Data; + } + + /// + /// Get a list of game server cluster servers. <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.server.list</code> + /// + /// Thrown when fails to make API call + /// + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// ApiResponse of List<Object> + public Tribufu.Client.ApiResponse> GetGameServerClusterServersWithHttpInfo(string id, int? page = default(int?), int? limit = default(int?), int operationIndex = 0) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->GetGameServerClusterServers"); + } + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter + if (page != null) + { + localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + } + if (limit != null) + { + localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "limit", limit)); + } + + localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGameServerClusterServers"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get>("/v1/games/servers/clusters/{id}/servers", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetGameServerClusterServers", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get a list of game server cluster servers. <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.server.list</code> + /// + /// Thrown when fails to make API call + /// + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of List<Object> + public async System.Threading.Tasks.Task> GetGameServerClusterServersAsync(string id, int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + Tribufu.Client.ApiResponse> localVarResponse = await GetGameServerClusterServersWithHttpInfoAsync(id, page, limit, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get a list of game server cluster servers. <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.server.list</code> + /// + /// Thrown when fails to make API call + /// + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (List<Object>) + public async System.Threading.Tasks.Task>> GetGameServerClusterServersWithHttpInfoAsync(string id, int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->GetGameServerClusterServers"); + } + + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter + if (page != null) + { + localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + } + if (limit != null) + { + localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "limit", limit)); + } + + localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGameServerClusterServers"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync>("/v1/games/servers/clusters/{id}/servers", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetGameServerClusterServers", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get a list of game server cluster servers. <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.server.list</code> + /// + /// Thrown when fails to make API call + /// + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// List<Object> + [Obsolete] + public List GetGameServerClusterServersV1(string id, int? page = default(int?), int? limit = default(int?), int operationIndex = 0) + { + Tribufu.Client.ApiResponse> localVarResponse = GetGameServerClusterServersV1WithHttpInfo(id, page, limit); + return localVarResponse.Data; + } + + /// + /// Get a list of game server cluster servers. <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.server.list</code> + /// + /// Thrown when fails to make API call + /// + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// ApiResponse of List<Object> + [Obsolete] + public Tribufu.Client.ApiResponse> GetGameServerClusterServersV1WithHttpInfo(string id, int? page = default(int?), int? limit = default(int?), int operationIndex = 0) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->GetGameServerClusterServersV1"); + } + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter + if (page != null) + { + localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + } + if (limit != null) + { + localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "limit", limit)); + } + + localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGameServerClusterServersV1"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get>("/v1/clusters/{id}/servers", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetGameServerClusterServersV1", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get a list of game server cluster servers. <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.server.list</code> + /// + /// Thrown when fails to make API call + /// + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of List<Object> + [Obsolete] + public async System.Threading.Tasks.Task> GetGameServerClusterServersV1Async(string id, int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + Tribufu.Client.ApiResponse> localVarResponse = await GetGameServerClusterServersV1WithHttpInfoAsync(id, page, limit, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get a list of game server cluster servers. <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.server.list</code> + /// + /// Thrown when fails to make API call + /// + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (List<Object>) + [Obsolete] + public async System.Threading.Tasks.Task>> GetGameServerClusterServersV1WithHttpInfoAsync(string id, int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->GetGameServerClusterServersV1"); + } + + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter + if (page != null) + { + localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + } + if (limit != null) + { + localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "limit", limit)); + } + + localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGameServerClusterServersV1"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync>("/v1/clusters/{id}/servers", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetGameServerClusterServersV1", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get a list of game server clusters. <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.list</code> + /// + /// Thrown when fails to make API call + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// List<GameServerCluster> + public List GetGameServerClusters(int? page = default(int?), int? limit = default(int?), int operationIndex = 0) + { + Tribufu.Client.ApiResponse> localVarResponse = GetGameServerClustersWithHttpInfo(page, limit); + return localVarResponse.Data; + } + + /// + /// Get a list of game server clusters. <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.list</code> + /// + /// Thrown when fails to make API call + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// ApiResponse of List<GameServerCluster> + public Tribufu.Client.ApiResponse> GetGameServerClustersWithHttpInfo(int? page = default(int?), int? limit = default(int?), int operationIndex = 0) + { + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (page != null) + { + localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + } + if (limit != null) + { + localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "limit", limit)); + } + + localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGameServerClusters"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get>("/v1/games/servers/clusters", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetGameServerClusters", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get a list of game server clusters. <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.list</code> + /// + /// Thrown when fails to make API call + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of List<GameServerCluster> + public async System.Threading.Tasks.Task> GetGameServerClustersAsync(int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + Tribufu.Client.ApiResponse> localVarResponse = await GetGameServerClustersWithHttpInfoAsync(page, limit, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get a list of game server clusters. <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.list</code> + /// + /// Thrown when fails to make API call + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (List<GameServerCluster>) + public async System.Threading.Tasks.Task>> GetGameServerClustersWithHttpInfoAsync(int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (page != null) + { + localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + } + if (limit != null) + { + localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "limit", limit)); + } + + localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGameServerClusters"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync>("/v1/games/servers/clusters", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetGameServerClusters", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get a list of game server clusters. <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.list</code> + /// + /// Thrown when fails to make API call + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// List<GameServerCluster> + [Obsolete] + public List GetGameServerClustersV1(int? page = default(int?), int? limit = default(int?), int operationIndex = 0) + { + Tribufu.Client.ApiResponse> localVarResponse = GetGameServerClustersV1WithHttpInfo(page, limit); + return localVarResponse.Data; + } + + /// + /// Get a list of game server clusters. <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.list</code> + /// + /// Thrown when fails to make API call + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// ApiResponse of List<GameServerCluster> + [Obsolete] + public Tribufu.Client.ApiResponse> GetGameServerClustersV1WithHttpInfo(int? page = default(int?), int? limit = default(int?), int operationIndex = 0) + { + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (page != null) + { + localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + } + if (limit != null) + { + localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "limit", limit)); + } + + localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGameServerClustersV1"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get>("/v1/clusters", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetGameServerClustersV1", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get a list of game server clusters. <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.list</code> + /// + /// Thrown when fails to make API call + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of List<GameServerCluster> + [Obsolete] + public async System.Threading.Tasks.Task> GetGameServerClustersV1Async(int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + Tribufu.Client.ApiResponse> localVarResponse = await GetGameServerClustersV1WithHttpInfoAsync(page, limit, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get a list of game server clusters. <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.list</code> + /// + /// Thrown when fails to make API call + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (List<GameServerCluster>) + [Obsolete] + public async System.Threading.Tasks.Task>> GetGameServerClustersV1WithHttpInfoAsync(int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (page != null) + { + localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + } + if (limit != null) + { + localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "limit", limit)); + } + + localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGameServerClustersV1"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync>("/v1/clusters", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetGameServerClustersV1", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get a game server query history. <b>🔒 Required permissions:</b> <code>tribufu.game.server.queries</code> + /// + /// Thrown when fails to make API call + /// + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// List<GameServerQuery> + public List GetGameServerQueries(string id, int? page = default(int?), int? limit = default(int?), int operationIndex = 0) + { + Tribufu.Client.ApiResponse> localVarResponse = GetGameServerQueriesWithHttpInfo(id, page, limit); + return localVarResponse.Data; + } + + /// + /// Get a game server query history. <b>🔒 Required permissions:</b> <code>tribufu.game.server.queries</code> + /// + /// Thrown when fails to make API call + /// + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// ApiResponse of List<GameServerQuery> + public Tribufu.Client.ApiResponse> GetGameServerQueriesWithHttpInfo(string id, int? page = default(int?), int? limit = default(int?), int operationIndex = 0) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->GetGameServerQueries"); + } + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter + if (page != null) + { + localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + } + if (limit != null) + { + localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "limit", limit)); + } + + localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGameServerQueries"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get>("/v1/games/servers/{id}/queries", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetGameServerQueries", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get a game server query history. <b>🔒 Required permissions:</b> <code>tribufu.game.server.queries</code> + /// + /// Thrown when fails to make API call + /// + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of List<GameServerQuery> + public async System.Threading.Tasks.Task> GetGameServerQueriesAsync(string id, int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + Tribufu.Client.ApiResponse> localVarResponse = await GetGameServerQueriesWithHttpInfoAsync(id, page, limit, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get a game server query history. <b>🔒 Required permissions:</b> <code>tribufu.game.server.queries</code> + /// + /// Thrown when fails to make API call + /// + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (List<GameServerQuery>) + public async System.Threading.Tasks.Task>> GetGameServerQueriesWithHttpInfoAsync(string id, int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->GetGameServerQueries"); + } + + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter + if (page != null) + { + localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + } + if (limit != null) + { + localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "limit", limit)); + } + + localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGameServerQueries"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync>("/v1/games/servers/{id}/queries", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetGameServerQueries", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get a game server query history. <b>🔒 Required permissions:</b> <code>tribufu.game.server.queries</code> + /// + /// Thrown when fails to make API call + /// + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// List<GameServerQuery> + [Obsolete] + public List GetGameServerQueriesV1(string id, int? page = default(int?), int? limit = default(int?), int operationIndex = 0) + { + Tribufu.Client.ApiResponse> localVarResponse = GetGameServerQueriesV1WithHttpInfo(id, page, limit); + return localVarResponse.Data; + } + + /// + /// Get a game server query history. <b>🔒 Required permissions:</b> <code>tribufu.game.server.queries</code> + /// + /// Thrown when fails to make API call + /// + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// ApiResponse of List<GameServerQuery> + [Obsolete] + public Tribufu.Client.ApiResponse> GetGameServerQueriesV1WithHttpInfo(string id, int? page = default(int?), int? limit = default(int?), int operationIndex = 0) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->GetGameServerQueriesV1"); + } + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter + if (page != null) + { + localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + } + if (limit != null) + { + localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "limit", limit)); + } + + localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGameServerQueriesV1"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get>("/v1/servers/{id}/queries", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetGameServerQueriesV1", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get a game server query history. <b>🔒 Required permissions:</b> <code>tribufu.game.server.queries</code> + /// + /// Thrown when fails to make API call + /// + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of List<GameServerQuery> + [Obsolete] + public async System.Threading.Tasks.Task> GetGameServerQueriesV1Async(string id, int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + Tribufu.Client.ApiResponse> localVarResponse = await GetGameServerQueriesV1WithHttpInfoAsync(id, page, limit, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get a game server query history. <b>🔒 Required permissions:</b> <code>tribufu.game.server.queries</code> + /// + /// Thrown when fails to make API call + /// + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (List<GameServerQuery>) + [Obsolete] + public async System.Threading.Tasks.Task>> GetGameServerQueriesV1WithHttpInfoAsync(string id, int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->GetGameServerQueriesV1"); + } + + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter + if (page != null) + { + localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + } + if (limit != null) + { + localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "limit", limit)); + } + + localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGameServerQueriesV1"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync>("/v1/servers/{id}/queries", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetGameServerQueriesV1", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get a list of game servers. <b>🔒 Required permissions:</b> <code>tribufu.game.server.list</code> + /// + /// Thrown when fails to make API call + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// List<GameServer> + public List GetGameServers(string? address = default(string?), int? queryPort = default(int?), string? country = default(string?), string? gameId = default(string?), int? page = default(int?), int? limit = default(int?), int operationIndex = 0) + { + Tribufu.Client.ApiResponse> localVarResponse = GetGameServersWithHttpInfo(address, queryPort, country, gameId, page, limit); + return localVarResponse.Data; + } + + /// + /// Get a list of game servers. <b>🔒 Required permissions:</b> <code>tribufu.game.server.list</code> + /// + /// Thrown when fails to make API call + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// ApiResponse of List<GameServer> + public Tribufu.Client.ApiResponse> GetGameServersWithHttpInfo(string? address = default(string?), int? queryPort = default(int?), string? country = default(string?), string? gameId = default(string?), int? page = default(int?), int? limit = default(int?), int operationIndex = 0) + { + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (address != null) + { + localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "address", address)); + } + if (queryPort != null) + { + localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "query_port", queryPort)); + } + if (country != null) + { + localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "country", country)); + } + if (gameId != null) + { + localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "game_id", gameId)); + } + if (page != null) + { + localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + } + if (limit != null) + { + localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "limit", limit)); + } + + localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGameServers"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get>("/v1/games/servers", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetGameServers", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get a list of game servers. <b>🔒 Required permissions:</b> <code>tribufu.game.server.list</code> + /// + /// Thrown when fails to make API call + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of List<GameServer> + public async System.Threading.Tasks.Task> GetGameServersAsync(string? address = default(string?), int? queryPort = default(int?), string? country = default(string?), string? gameId = default(string?), int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + Tribufu.Client.ApiResponse> localVarResponse = await GetGameServersWithHttpInfoAsync(address, queryPort, country, gameId, page, limit, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get a list of game servers. <b>🔒 Required permissions:</b> <code>tribufu.game.server.list</code> + /// + /// Thrown when fails to make API call + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (List<GameServer>) + public async System.Threading.Tasks.Task>> GetGameServersWithHttpInfoAsync(string? address = default(string?), int? queryPort = default(int?), string? country = default(string?), string? gameId = default(string?), int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (address != null) + { + localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "address", address)); + } + if (queryPort != null) + { + localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "query_port", queryPort)); + } + if (country != null) + { + localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "country", country)); + } + if (gameId != null) + { + localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "game_id", gameId)); + } + if (page != null) + { + localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + } + if (limit != null) + { + localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "limit", limit)); + } + + localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGameServers"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync>("/v1/games/servers", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetGameServers", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get a list of game servers from a country. <b>🔒 Required permissions:</b> <code>tribufu.game.server.list.country</code> + /// + /// Thrown when fails to make API call + /// + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// List<GameServer> + public List GetGameServersByCountry(string country, int? page = default(int?), int? limit = default(int?), int operationIndex = 0) + { + Tribufu.Client.ApiResponse> localVarResponse = GetGameServersByCountryWithHttpInfo(country, page, limit); + return localVarResponse.Data; + } + + /// + /// Get a list of game servers from a country. <b>🔒 Required permissions:</b> <code>tribufu.game.server.list.country</code> + /// + /// Thrown when fails to make API call + /// + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// ApiResponse of List<GameServer> + public Tribufu.Client.ApiResponse> GetGameServersByCountryWithHttpInfo(string country, int? page = default(int?), int? limit = default(int?), int operationIndex = 0) + { + // verify the required parameter 'country' is set + if (country == null) + { + throw new Tribufu.Client.ApiException(400, "Missing required parameter 'country' when calling TribufuGeneratedApi->GetGameServersByCountry"); + } + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("country", Tribufu.Client.ClientUtils.ParameterToString(country)); // path parameter + if (page != null) + { + localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + } + if (limit != null) + { + localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "limit", limit)); + } + + localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGameServersByCountry"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get>("/v1/games/servers/country/{country}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetGameServersByCountry", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get a list of game servers from a country. <b>🔒 Required permissions:</b> <code>tribufu.game.server.list.country</code> + /// + /// Thrown when fails to make API call + /// + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of List<GameServer> + public async System.Threading.Tasks.Task> GetGameServersByCountryAsync(string country, int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + Tribufu.Client.ApiResponse> localVarResponse = await GetGameServersByCountryWithHttpInfoAsync(country, page, limit, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get a list of game servers from a country. <b>🔒 Required permissions:</b> <code>tribufu.game.server.list.country</code> + /// + /// Thrown when fails to make API call + /// + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (List<GameServer>) + public async System.Threading.Tasks.Task>> GetGameServersByCountryWithHttpInfoAsync(string country, int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'country' is set + if (country == null) + { + throw new Tribufu.Client.ApiException(400, "Missing required parameter 'country' when calling TribufuGeneratedApi->GetGameServersByCountry"); + } + + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("country", Tribufu.Client.ClientUtils.ParameterToString(country)); // path parameter + if (page != null) + { + localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + } + if (limit != null) + { + localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "limit", limit)); + } + + localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGameServersByCountry"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync>("/v1/games/servers/country/{country}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetGameServersByCountry", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get a list of game servers from a country. <b>🔒 Required permissions:</b> <code>tribufu.game.server.list.country</code> + /// + /// Thrown when fails to make API call + /// + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// List<GameServer> + [Obsolete] + public List GetGameServersByCountryV1(string country, int? page = default(int?), int? limit = default(int?), int operationIndex = 0) + { + Tribufu.Client.ApiResponse> localVarResponse = GetGameServersByCountryV1WithHttpInfo(country, page, limit); + return localVarResponse.Data; + } + + /// + /// Get a list of game servers from a country. <b>🔒 Required permissions:</b> <code>tribufu.game.server.list.country</code> + /// + /// Thrown when fails to make API call + /// + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// ApiResponse of List<GameServer> + [Obsolete] + public Tribufu.Client.ApiResponse> GetGameServersByCountryV1WithHttpInfo(string country, int? page = default(int?), int? limit = default(int?), int operationIndex = 0) + { + // verify the required parameter 'country' is set + if (country == null) + { + throw new Tribufu.Client.ApiException(400, "Missing required parameter 'country' when calling TribufuGeneratedApi->GetGameServersByCountryV1"); + } + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("country", Tribufu.Client.ClientUtils.ParameterToString(country)); // path parameter + if (page != null) + { + localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + } + if (limit != null) + { + localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "limit", limit)); + } + + localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGameServersByCountryV1"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get>("/v1/servers/country/{country}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetGameServersByCountryV1", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get a list of game servers from a country. <b>🔒 Required permissions:</b> <code>tribufu.game.server.list.country</code> + /// + /// Thrown when fails to make API call + /// + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of List<GameServer> + [Obsolete] + public async System.Threading.Tasks.Task> GetGameServersByCountryV1Async(string country, int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + Tribufu.Client.ApiResponse> localVarResponse = await GetGameServersByCountryV1WithHttpInfoAsync(country, page, limit, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get a list of game servers from a country. <b>🔒 Required permissions:</b> <code>tribufu.game.server.list.country</code> + /// + /// Thrown when fails to make API call + /// + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (List<GameServer>) + [Obsolete] + public async System.Threading.Tasks.Task>> GetGameServersByCountryV1WithHttpInfoAsync(string country, int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'country' is set + if (country == null) + { + throw new Tribufu.Client.ApiException(400, "Missing required parameter 'country' when calling TribufuGeneratedApi->GetGameServersByCountryV1"); + } + + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("country", Tribufu.Client.ClientUtils.ParameterToString(country)); // path parameter + if (page != null) + { + localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + } + if (limit != null) + { + localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "limit", limit)); + } + + localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGameServersByCountryV1"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync>("/v1/servers/country/{country}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetGameServersByCountryV1", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get a list of countries with the number of game servers. <b>🔒 Required permissions:</b> <code>tribufu.game.server.country.list</code> + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Dictionary<string, int> + public Dictionary GetGameServersCountries(int operationIndex = 0) + { + Tribufu.Client.ApiResponse> localVarResponse = GetGameServersCountriesWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// Get a list of countries with the number of game servers. <b>🔒 Required permissions:</b> <code>tribufu.game.server.country.list</code> + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of Dictionary<string, int> + public Tribufu.Client.ApiResponse> GetGameServersCountriesWithHttpInfo(int operationIndex = 0) + { + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGameServersCountries"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get>("/v1/games/servers/countries", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetGameServersCountries", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get a list of countries with the number of game servers. <b>🔒 Required permissions:</b> <code>tribufu.game.server.country.list</code> + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of Dictionary<string, int> + public async System.Threading.Tasks.Task> GetGameServersCountriesAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + Tribufu.Client.ApiResponse> localVarResponse = await GetGameServersCountriesWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get a list of countries with the number of game servers. <b>🔒 Required permissions:</b> <code>tribufu.game.server.country.list</code> + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (Dictionary<string, int>) + public async System.Threading.Tasks.Task>> GetGameServersCountriesWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGameServersCountries"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync>("/v1/games/servers/countries", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetGameServersCountries", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get a list of countries with the number of game servers. <b>🔒 Required permissions:</b> <code>tribufu.game.server.country.list</code> + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Dictionary<string, int> + [Obsolete] + public Dictionary GetGameServersCountriesV1(int operationIndex = 0) + { + Tribufu.Client.ApiResponse> localVarResponse = GetGameServersCountriesV1WithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// Get a list of countries with the number of game servers. <b>🔒 Required permissions:</b> <code>tribufu.game.server.country.list</code> + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of Dictionary<string, int> + [Obsolete] + public Tribufu.Client.ApiResponse> GetGameServersCountriesV1WithHttpInfo(int operationIndex = 0) + { + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGameServersCountriesV1"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get>("/v1/servers/countries", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetGameServersCountriesV1", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get a list of countries with the number of game servers. <b>🔒 Required permissions:</b> <code>tribufu.game.server.country.list</code> + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of Dictionary<string, int> + [Obsolete] + public async System.Threading.Tasks.Task> GetGameServersCountriesV1Async(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + Tribufu.Client.ApiResponse> localVarResponse = await GetGameServersCountriesV1WithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get a list of countries with the number of game servers. <b>🔒 Required permissions:</b> <code>tribufu.game.server.country.list</code> + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (Dictionary<string, int>) + [Obsolete] + public async System.Threading.Tasks.Task>> GetGameServersCountriesV1WithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGameServersCountriesV1"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync>("/v1/servers/countries", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetGameServersCountriesV1", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get metrics about the tracked game servers. <b>🔒 Required permissions:</b> <code>tribufu.game.server.metric.get</code> + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ServerMetrics + public ServerMetrics GetGameServersMetrics(int operationIndex = 0) + { + Tribufu.Client.ApiResponse localVarResponse = GetGameServersMetricsWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// Get metrics about the tracked game servers. <b>🔒 Required permissions:</b> <code>tribufu.game.server.metric.get</code> + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of ServerMetrics + public Tribufu.Client.ApiResponse GetGameServersMetricsWithHttpInfo(int operationIndex = 0) + { + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGameServersMetrics"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/v1/games/servers/metrics", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetGameServersMetrics", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get metrics about the tracked game servers. <b>🔒 Required permissions:</b> <code>tribufu.game.server.metric.get</code> + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ServerMetrics + public async System.Threading.Tasks.Task GetGameServersMetricsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + Tribufu.Client.ApiResponse localVarResponse = await GetGameServersMetricsWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get metrics about the tracked game servers. <b>🔒 Required permissions:</b> <code>tribufu.game.server.metric.get</code> + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (ServerMetrics) + public async System.Threading.Tasks.Task> GetGameServersMetricsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGameServersMetrics"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/v1/games/servers/metrics", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetGameServersMetrics", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get metrics about the tracked game servers. <b>🔒 Required permissions:</b> <code>tribufu.game.server.metric.get</code> + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ServerMetrics + [Obsolete] + public ServerMetrics GetGameServersMetricsV1(int operationIndex = 0) + { + Tribufu.Client.ApiResponse localVarResponse = GetGameServersMetricsV1WithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// Get metrics about the tracked game servers. <b>🔒 Required permissions:</b> <code>tribufu.game.server.metric.get</code> + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of ServerMetrics + [Obsolete] + public Tribufu.Client.ApiResponse GetGameServersMetricsV1WithHttpInfo(int operationIndex = 0) + { + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGameServersMetricsV1"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/v1/servers/metrics", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetGameServersMetricsV1", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get metrics about the tracked game servers. <b>🔒 Required permissions:</b> <code>tribufu.game.server.metric.get</code> + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ServerMetrics + [Obsolete] + public async System.Threading.Tasks.Task GetGameServersMetricsV1Async(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + Tribufu.Client.ApiResponse localVarResponse = await GetGameServersMetricsV1WithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get metrics about the tracked game servers. <b>🔒 Required permissions:</b> <code>tribufu.game.server.metric.get</code> + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (ServerMetrics) + [Obsolete] + public async System.Threading.Tasks.Task> GetGameServersMetricsV1WithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGameServersMetricsV1"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/v1/servers/metrics", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetGameServersMetricsV1", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get a list of game servers. <b>🔒 Required permissions:</b> <code>tribufu.game.server.list</code> + /// + /// Thrown when fails to make API call + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// List<GameServer> + [Obsolete] + public List GetGameServersV1(string? address = default(string?), int? queryPort = default(int?), string? country = default(string?), string? gameId = default(string?), int? page = default(int?), int? limit = default(int?), int operationIndex = 0) + { + Tribufu.Client.ApiResponse> localVarResponse = GetGameServersV1WithHttpInfo(address, queryPort, country, gameId, page, limit); + return localVarResponse.Data; + } + + /// + /// Get a list of game servers. <b>🔒 Required permissions:</b> <code>tribufu.game.server.list</code> + /// + /// Thrown when fails to make API call + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// ApiResponse of List<GameServer> + [Obsolete] + public Tribufu.Client.ApiResponse> GetGameServersV1WithHttpInfo(string? address = default(string?), int? queryPort = default(int?), string? country = default(string?), string? gameId = default(string?), int? page = default(int?), int? limit = default(int?), int operationIndex = 0) + { + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (address != null) + { + localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "address", address)); + } + if (queryPort != null) + { + localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "query_port", queryPort)); + } + if (country != null) + { + localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "country", country)); + } + if (gameId != null) + { + localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "game_id", gameId)); + } + if (page != null) + { + localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + } + if (limit != null) + { + localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "limit", limit)); + } + + localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGameServersV1"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get>("/v1/servers", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetGameServersV1", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get a list of game servers. <b>🔒 Required permissions:</b> <code>tribufu.game.server.list</code> + /// + /// Thrown when fails to make API call + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of List<GameServer> + [Obsolete] + public async System.Threading.Tasks.Task> GetGameServersV1Async(string? address = default(string?), int? queryPort = default(int?), string? country = default(string?), string? gameId = default(string?), int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + Tribufu.Client.ApiResponse> localVarResponse = await GetGameServersV1WithHttpInfoAsync(address, queryPort, country, gameId, page, limit, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get a list of game servers. <b>🔒 Required permissions:</b> <code>tribufu.game.server.list</code> + /// + /// Thrown when fails to make API call + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (List<GameServer>) + [Obsolete] + public async System.Threading.Tasks.Task>> GetGameServersV1WithHttpInfoAsync(string? address = default(string?), int? queryPort = default(int?), string? country = default(string?), string? gameId = default(string?), int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (address != null) + { + localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "address", address)); + } + if (queryPort != null) + { + localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "query_port", queryPort)); + } + if (country != null) + { + localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "country", country)); + } + if (gameId != null) + { + localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "game_id", gameId)); + } + if (page != null) + { + localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + } + if (limit != null) + { + localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "limit", limit)); + } + + localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGameServersV1"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync>("/v1/servers", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetGameServersV1", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get a list of games. <b>🔒 Required permissions:</b> <code>tribufu.game.list</code> + /// + /// Thrown when fails to make API call + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// List<Game> + public List GetGames(int? page = default(int?), int? limit = default(int?), int operationIndex = 0) + { + Tribufu.Client.ApiResponse> localVarResponse = GetGamesWithHttpInfo(page, limit); + return localVarResponse.Data; + } + + /// + /// Get a list of games. <b>🔒 Required permissions:</b> <code>tribufu.game.list</code> + /// + /// Thrown when fails to make API call + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// ApiResponse of List<Game> + public Tribufu.Client.ApiResponse> GetGamesWithHttpInfo(int? page = default(int?), int? limit = default(int?), int operationIndex = 0) + { + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (page != null) + { + localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + } + if (limit != null) + { + localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "limit", limit)); + } + + localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGames"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get>("/v1/games", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetGames", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get a list of games. <b>🔒 Required permissions:</b> <code>tribufu.game.list</code> + /// + /// Thrown when fails to make API call + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of List<Game> + public async System.Threading.Tasks.Task> GetGamesAsync(int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + Tribufu.Client.ApiResponse> localVarResponse = await GetGamesWithHttpInfoAsync(page, limit, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get a list of games. <b>🔒 Required permissions:</b> <code>tribufu.game.list</code> + /// + /// Thrown when fails to make API call + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (List<Game>) + public async System.Threading.Tasks.Task>> GetGamesWithHttpInfoAsync(int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (page != null) + { + localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + } + if (limit != null) + { + localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "limit", limit)); + } + + localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGames"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync>("/v1/games", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetGames", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get a group by id. <b>🔒 Required permissions:</b> <code>tribufu.community.group.get</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Group + public Group GetGroupById(string id, int operationIndex = 0) + { + Tribufu.Client.ApiResponse localVarResponse = GetGroupByIdWithHttpInfo(id); + return localVarResponse.Data; + } + + /// + /// Get a group by id. <b>🔒 Required permissions:</b> <code>tribufu.community.group.get</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of Group + public Tribufu.Client.ApiResponse GetGroupByIdWithHttpInfo(string id, int operationIndex = 0) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->GetGroupById"); + } + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter + + localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGroupById"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/v1/groups/{id}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetGroupById", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get a group by id. <b>🔒 Required permissions:</b> <code>tribufu.community.group.get</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of Group + public async System.Threading.Tasks.Task GetGroupByIdAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + Tribufu.Client.ApiResponse localVarResponse = await GetGroupByIdWithHttpInfoAsync(id, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get a group by id. <b>🔒 Required permissions:</b> <code>tribufu.community.group.get</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (Group) + public async System.Threading.Tasks.Task> GetGroupByIdWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->GetGroupById"); + } + + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter + + localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGroupById"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/v1/groups/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetGroupById", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get a group by tag. <b>🔒 Required permissions:</b> <code>tribufu.community.group.get.tag</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Group + public Group GetGroupByTag(string tag, int operationIndex = 0) + { + Tribufu.Client.ApiResponse localVarResponse = GetGroupByTagWithHttpInfo(tag); + return localVarResponse.Data; + } + + /// + /// Get a group by tag. <b>🔒 Required permissions:</b> <code>tribufu.community.group.get.tag</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of Group + public Tribufu.Client.ApiResponse GetGroupByTagWithHttpInfo(string tag, int operationIndex = 0) + { + // verify the required parameter 'tag' is set + if (tag == null) + { + throw new Tribufu.Client.ApiException(400, "Missing required parameter 'tag' when calling TribufuGeneratedApi->GetGroupByTag"); + } + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("tag", Tribufu.Client.ClientUtils.ParameterToString(tag)); // path parameter + + localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGroupByTag"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/v1/groups/tag/{tag}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetGroupByTag", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get a group by tag. <b>🔒 Required permissions:</b> <code>tribufu.community.group.get.tag</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of Group + public async System.Threading.Tasks.Task GetGroupByTagAsync(string tag, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + Tribufu.Client.ApiResponse localVarResponse = await GetGroupByTagWithHttpInfoAsync(tag, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get a group by tag. <b>🔒 Required permissions:</b> <code>tribufu.community.group.get.tag</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (Group) + public async System.Threading.Tasks.Task> GetGroupByTagWithHttpInfoAsync(string tag, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'tag' is set + if (tag == null) + { + throw new Tribufu.Client.ApiException(400, "Missing required parameter 'tag' when calling TribufuGeneratedApi->GetGroupByTag"); + } + + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("tag", Tribufu.Client.ClientUtils.ParameterToString(tag)); // path parameter + + localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGroupByTag"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/v1/groups/tag/{tag}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetGroupByTag", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get a group by uuid. <b>🔒 Required permissions:</b> <code>tribufu.community.group.get.uuid</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Group + public Group GetGroupByUuid(Guid uuid, int operationIndex = 0) + { + Tribufu.Client.ApiResponse localVarResponse = GetGroupByUuidWithHttpInfo(uuid); + return localVarResponse.Data; + } + + /// + /// Get a group by uuid. <b>🔒 Required permissions:</b> <code>tribufu.community.group.get.uuid</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of Group + public Tribufu.Client.ApiResponse GetGroupByUuidWithHttpInfo(Guid uuid, int operationIndex = 0) + { + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("uuid", Tribufu.Client.ClientUtils.ParameterToString(uuid)); // path parameter + + localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGroupByUuid"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/v1/groups/uuid/{uuid}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetGroupByUuid", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get a group by uuid. <b>🔒 Required permissions:</b> <code>tribufu.community.group.get.uuid</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of Group + public async System.Threading.Tasks.Task GetGroupByUuidAsync(Guid uuid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + Tribufu.Client.ApiResponse localVarResponse = await GetGroupByUuidWithHttpInfoAsync(uuid, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get a group by uuid. <b>🔒 Required permissions:</b> <code>tribufu.community.group.get.uuid</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (Group) + public async System.Threading.Tasks.Task> GetGroupByUuidWithHttpInfoAsync(Guid uuid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("uuid", Tribufu.Client.ClientUtils.ParameterToString(uuid)); // path parameter + + localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGroupByUuid"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/v1/groups/uuid/{uuid}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetGroupByUuid", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get a list of games of a group. <b>🔒 Required permissions:</b> <code>tribufu.community.group.game.list</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// List<GroupGame> + public List GetGroupGames(string id, int operationIndex = 0) + { + Tribufu.Client.ApiResponse> localVarResponse = GetGroupGamesWithHttpInfo(id); + return localVarResponse.Data; + } + + /// + /// Get a list of games of a group. <b>🔒 Required permissions:</b> <code>tribufu.community.group.game.list</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of List<GroupGame> + public Tribufu.Client.ApiResponse> GetGroupGamesWithHttpInfo(string id, int operationIndex = 0) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->GetGroupGames"); + } + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter + + localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGroupGames"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get>("/v1/groups/{id}/games", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetGroupGames", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get a list of games of a group. <b>🔒 Required permissions:</b> <code>tribufu.community.group.game.list</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of List<GroupGame> + public async System.Threading.Tasks.Task> GetGroupGamesAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + Tribufu.Client.ApiResponse> localVarResponse = await GetGroupGamesWithHttpInfoAsync(id, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get a list of games of a group. <b>🔒 Required permissions:</b> <code>tribufu.community.group.game.list</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (List<GroupGame>) + public async System.Threading.Tasks.Task>> GetGroupGamesWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->GetGroupGames"); + } + + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter + + localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGroupGames"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync>("/v1/groups/{id}/games", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetGroupGames", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get a list of members in a group. <b>🔒 Required permissions:</b> <code>tribufu.community.group.member.list</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// List<GroupMember> + public List GetGroupMembers(string id, int operationIndex = 0) + { + Tribufu.Client.ApiResponse> localVarResponse = GetGroupMembersWithHttpInfo(id); + return localVarResponse.Data; + } + + /// + /// Get a list of members in a group. <b>🔒 Required permissions:</b> <code>tribufu.community.group.member.list</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of List<GroupMember> + public Tribufu.Client.ApiResponse> GetGroupMembersWithHttpInfo(string id, int operationIndex = 0) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->GetGroupMembers"); + } + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "text/plain", + "application/json", + "text/json" + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter + + localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGroupMembers"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get>("/v1/groups/{id}/members", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetGroupMembers", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get a list of members in a group. <b>🔒 Required permissions:</b> <code>tribufu.community.group.member.list</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of List<GroupMember> + public async System.Threading.Tasks.Task> GetGroupMembersAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + Tribufu.Client.ApiResponse> localVarResponse = await GetGroupMembersWithHttpInfoAsync(id, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get a list of members in a group. <b>🔒 Required permissions:</b> <code>tribufu.community.group.member.list</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (List<GroupMember>) + public async System.Threading.Tasks.Task>> GetGroupMembersWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->GetGroupMembers"); + } + + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "text/plain", + "application/json", + "text/json" + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter + + localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGroupMembers"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync>("/v1/groups/{id}/members", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetGroupMembers", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get a list of groups. <b>🔒 Required permissions:</b> <code>tribufu.community.group.list</code> + /// + /// Thrown when fails to make API call + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// List<Group> + public List GetGroups(int? page = default(int?), int? limit = default(int?), int operationIndex = 0) + { + Tribufu.Client.ApiResponse> localVarResponse = GetGroupsWithHttpInfo(page, limit); + return localVarResponse.Data; + } + + /// + /// Get a list of groups. <b>🔒 Required permissions:</b> <code>tribufu.community.group.list</code> + /// + /// Thrown when fails to make API call + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// ApiResponse of List<Group> + public Tribufu.Client.ApiResponse> GetGroupsWithHttpInfo(int? page = default(int?), int? limit = default(int?), int operationIndex = 0) + { + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (page != null) + { + localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + } + if (limit != null) + { + localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "limit", limit)); + } + + localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGroups"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get>("/v1/groups", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetGroups", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get a list of groups. <b>🔒 Required permissions:</b> <code>tribufu.community.group.list</code> + /// + /// Thrown when fails to make API call + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of List<Group> + public async System.Threading.Tasks.Task> GetGroupsAsync(int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + Tribufu.Client.ApiResponse> localVarResponse = await GetGroupsWithHttpInfoAsync(page, limit, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get a list of groups. <b>🔒 Required permissions:</b> <code>tribufu.community.group.list</code> + /// + /// Thrown when fails to make API call + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (List<Group>) + public async System.Threading.Tasks.Task>> GetGroupsWithHttpInfoAsync(int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (page != null) + { + localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + } + if (limit != null) + { + localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "limit", limit)); + } + + localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGroups"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync>("/v1/groups", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetGroups", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get a ip address location. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// IpAddress + public IpAddress GetIpAddress(string address, int operationIndex = 0) + { + Tribufu.Client.ApiResponse localVarResponse = GetIpAddressWithHttpInfo(address); + return localVarResponse.Data; + } + + /// + /// Get a ip address location. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of IpAddress + public Tribufu.Client.ApiResponse GetIpAddressWithHttpInfo(string address, int operationIndex = 0) + { + // verify the required parameter 'address' is set + if (address == null) + { + throw new Tribufu.Client.ApiException(400, "Missing required parameter 'address' when calling TribufuGeneratedApi->GetIpAddress"); + } + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("address", Tribufu.Client.ClientUtils.ParameterToString(address)); // path parameter + + localVarRequestOptions.Operation = "TribufuGeneratedApi.GetIpAddress"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/v1/geoip/addresses/{address}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetIpAddress", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get a ip address location. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of IpAddress + public async System.Threading.Tasks.Task GetIpAddressAsync(string address, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + Tribufu.Client.ApiResponse localVarResponse = await GetIpAddressWithHttpInfoAsync(address, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get a ip address location. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (IpAddress) + public async System.Threading.Tasks.Task> GetIpAddressWithHttpInfoAsync(string address, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'address' is set + if (address == null) + { + throw new Tribufu.Client.ApiException(400, "Missing required parameter 'address' when calling TribufuGeneratedApi->GetIpAddress"); + } + + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("address", Tribufu.Client.ClientUtils.ParameterToString(address)); // path parameter + + localVarRequestOptions.Operation = "TribufuGeneratedApi.GetIpAddress"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/v1/geoip/addresses/{address}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetIpAddress", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get a list of ip addresses. <b>🔒 Required permissions:</b> <code>tribufu.geoip.address.list</code> + /// + /// Thrown when fails to make API call + /// Filters results by organization, defaults to all organizations the user belongs to. (optional) + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// List<IpAddress> + public List GetIpAddresses(string? organizationId = default(string?), int? page = default(int?), int? limit = default(int?), int operationIndex = 0) + { + Tribufu.Client.ApiResponse> localVarResponse = GetIpAddressesWithHttpInfo(organizationId, page, limit); + return localVarResponse.Data; + } + + /// + /// Get a list of ip addresses. <b>🔒 Required permissions:</b> <code>tribufu.geoip.address.list</code> + /// + /// Thrown when fails to make API call + /// Filters results by organization, defaults to all organizations the user belongs to. (optional) + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// ApiResponse of List<IpAddress> + public Tribufu.Client.ApiResponse> GetIpAddressesWithHttpInfo(string? organizationId = default(string?), int? page = default(int?), int? limit = default(int?), int operationIndex = 0) + { + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (organizationId != null) + { + localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "organization_id", organizationId)); + } + if (page != null) + { + localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + } + if (limit != null) + { + localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "limit", limit)); + } + + localVarRequestOptions.Operation = "TribufuGeneratedApi.GetIpAddresses"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get>("/v1/geoip/addresses", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetIpAddresses", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get a list of ip addresses. <b>🔒 Required permissions:</b> <code>tribufu.geoip.address.list</code> + /// + /// Thrown when fails to make API call + /// Filters results by organization, defaults to all organizations the user belongs to. (optional) + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of List<IpAddress> + public async System.Threading.Tasks.Task> GetIpAddressesAsync(string? organizationId = default(string?), int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + Tribufu.Client.ApiResponse> localVarResponse = await GetIpAddressesWithHttpInfoAsync(organizationId, page, limit, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get a list of ip addresses. <b>🔒 Required permissions:</b> <code>tribufu.geoip.address.list</code> + /// + /// Thrown when fails to make API call + /// Filters results by organization, defaults to all organizations the user belongs to. (optional) + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (List<IpAddress>) + public async System.Threading.Tasks.Task>> GetIpAddressesWithHttpInfoAsync(string? organizationId = default(string?), int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (organizationId != null) + { + localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "organization_id", organizationId)); + } + if (page != null) + { + localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + } + if (limit != null) + { + localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "limit", limit)); + } + + localVarRequestOptions.Operation = "TribufuGeneratedApi.GetIpAddresses"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync>("/v1/geoip/addresses", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetIpAddresses", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get the top 20 leaderboard users. <b>🔒 Required permissions:</b> <code>tribufu.community.leaderboard.get</code> + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// List<LeaderboardItem> + public List GetLeaderboard(LeaderboardOrder? order = default(LeaderboardOrder?), int operationIndex = 0) + { + Tribufu.Client.ApiResponse> localVarResponse = GetLeaderboardWithHttpInfo(order); + return localVarResponse.Data; + } + + /// + /// Get the top 20 leaderboard users. <b>🔒 Required permissions:</b> <code>tribufu.community.leaderboard.get</code> + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// ApiResponse of List<LeaderboardItem> + public Tribufu.Client.ApiResponse> GetLeaderboardWithHttpInfo(LeaderboardOrder? order = default(LeaderboardOrder?), int operationIndex = 0) + { + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (order != null) + { + localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "Order", order)); + } + + localVarRequestOptions.Operation = "TribufuGeneratedApi.GetLeaderboard"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get>("/v1/leaderboard", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetLeaderboard", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get the top 20 leaderboard users. <b>🔒 Required permissions:</b> <code>tribufu.community.leaderboard.get</code> + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of List<LeaderboardItem> + public async System.Threading.Tasks.Task> GetLeaderboardAsync(LeaderboardOrder? order = default(LeaderboardOrder?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + Tribufu.Client.ApiResponse> localVarResponse = await GetLeaderboardWithHttpInfoAsync(order, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get the top 20 leaderboard users. <b>🔒 Required permissions:</b> <code>tribufu.community.leaderboard.get</code> + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (List<LeaderboardItem>) + public async System.Threading.Tasks.Task>> GetLeaderboardWithHttpInfoAsync(LeaderboardOrder? order = default(LeaderboardOrder?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (order != null) + { + localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "Order", order)); + } + + localVarRequestOptions.Operation = "TribufuGeneratedApi.GetLeaderboard"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync>("/v1/leaderboard", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetLeaderboard", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get a package by id. <b>🔒 Required permissions:</b> <code>tribufu.community.package.get</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Package + public Package GetPackageById(string id, int operationIndex = 0) + { + Tribufu.Client.ApiResponse localVarResponse = GetPackageByIdWithHttpInfo(id); + return localVarResponse.Data; + } + + /// + /// Get a package by id. <b>🔒 Required permissions:</b> <code>tribufu.community.package.get</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of Package + public Tribufu.Client.ApiResponse GetPackageByIdWithHttpInfo(string id, int operationIndex = 0) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->GetPackageById"); + } + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter + + localVarRequestOptions.Operation = "TribufuGeneratedApi.GetPackageById"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/v1/packages/{id}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetPackageById", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get a package by id. <b>🔒 Required permissions:</b> <code>tribufu.community.package.get</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of Package + public async System.Threading.Tasks.Task GetPackageByIdAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + Tribufu.Client.ApiResponse localVarResponse = await GetPackageByIdWithHttpInfoAsync(id, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get a package by id. <b>🔒 Required permissions:</b> <code>tribufu.community.package.get</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (Package) + public async System.Threading.Tasks.Task> GetPackageByIdWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->GetPackageById"); + } + + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter + + localVarRequestOptions.Operation = "TribufuGeneratedApi.GetPackageById"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/v1/packages/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetPackageById", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get a list of packages. <b>🔒 Required permissions:</b> <code>tribufu.community.package.list</code> + /// + /// Thrown when fails to make API call + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// List<Package> + public List GetPackages(int? page = default(int?), int? limit = default(int?), int operationIndex = 0) + { + Tribufu.Client.ApiResponse> localVarResponse = GetPackagesWithHttpInfo(page, limit); + return localVarResponse.Data; + } + + /// + /// Get a list of packages. <b>🔒 Required permissions:</b> <code>tribufu.community.package.list</code> + /// + /// Thrown when fails to make API call + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// ApiResponse of List<Package> + public Tribufu.Client.ApiResponse> GetPackagesWithHttpInfo(int? page = default(int?), int? limit = default(int?), int operationIndex = 0) + { + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (page != null) + { + localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + } + if (limit != null) + { + localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "limit", limit)); + } + + localVarRequestOptions.Operation = "TribufuGeneratedApi.GetPackages"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get>("/v1/packages", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetPackages", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get a list of packages. <b>🔒 Required permissions:</b> <code>tribufu.community.package.list</code> + /// + /// Thrown when fails to make API call + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of List<Package> + public async System.Threading.Tasks.Task> GetPackagesAsync(int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + Tribufu.Client.ApiResponse> localVarResponse = await GetPackagesWithHttpInfoAsync(page, limit, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get a list of packages. <b>🔒 Required permissions:</b> <code>tribufu.community.package.list</code> + /// + /// Thrown when fails to make API call + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (List<Package>) + public async System.Threading.Tasks.Task>> GetPackagesWithHttpInfoAsync(int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (page != null) + { + localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + } + if (limit != null) + { + localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "limit", limit)); + } + + localVarRequestOptions.Operation = "TribufuGeneratedApi.GetPackages"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync>("/v1/packages", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetPackages", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get the public keys for the client. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// + public void GetPublicKeys(int operationIndex = 0) + { + GetPublicKeysWithHttpInfo(); + } + + /// + /// Get the public keys for the client. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of Object(void) + public Tribufu.Client.ApiResponse GetPublicKeysWithHttpInfo(int operationIndex = 0) + { + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "TribufuGeneratedApi.GetPublicKeys"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/v1/oauth2/jwks", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetPublicKeys", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get the public keys for the client. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of void + public async System.Threading.Tasks.Task GetPublicKeysAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + await GetPublicKeysWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); + } + + /// + /// Get the public keys for the client. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + public async System.Threading.Tasks.Task> GetPublicKeysWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "TribufuGeneratedApi.GetPublicKeys"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/v1/oauth2/jwks", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetPublicKeys", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get a subscription by id. <b>🔒 Required permissions:</b> <code>tribufu.store.subscription.get</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Subscription + public Subscription GetSubscriptionById(string id, int operationIndex = 0) + { + Tribufu.Client.ApiResponse localVarResponse = GetSubscriptionByIdWithHttpInfo(id); + return localVarResponse.Data; + } + + /// + /// Get a subscription by id. <b>🔒 Required permissions:</b> <code>tribufu.store.subscription.get</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of Subscription + public Tribufu.Client.ApiResponse GetSubscriptionByIdWithHttpInfo(string id, int operationIndex = 0) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->GetSubscriptionById"); + } + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter + + localVarRequestOptions.Operation = "TribufuGeneratedApi.GetSubscriptionById"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/v1/subscriptions/{id}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetSubscriptionById", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get a subscription by id. <b>🔒 Required permissions:</b> <code>tribufu.store.subscription.get</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of Subscription + public async System.Threading.Tasks.Task GetSubscriptionByIdAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + Tribufu.Client.ApiResponse localVarResponse = await GetSubscriptionByIdWithHttpInfoAsync(id, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get a subscription by id. <b>🔒 Required permissions:</b> <code>tribufu.store.subscription.get</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (Subscription) + public async System.Threading.Tasks.Task> GetSubscriptionByIdWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->GetSubscriptionById"); + } + + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter + + localVarRequestOptions.Operation = "TribufuGeneratedApi.GetSubscriptionById"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/v1/subscriptions/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetSubscriptionById", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get a list of subscriptions. <b>🔒 Required permissions:</b> <code>tribufu.store.subscription.list</code> + /// + /// Thrown when fails to make API call + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// List<Subscription> + public List GetSubscriptions(int? page = default(int?), int? limit = default(int?), int operationIndex = 0) + { + Tribufu.Client.ApiResponse> localVarResponse = GetSubscriptionsWithHttpInfo(page, limit); + return localVarResponse.Data; + } + + /// + /// Get a list of subscriptions. <b>🔒 Required permissions:</b> <code>tribufu.store.subscription.list</code> + /// + /// Thrown when fails to make API call + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// ApiResponse of List<Subscription> + public Tribufu.Client.ApiResponse> GetSubscriptionsWithHttpInfo(int? page = default(int?), int? limit = default(int?), int operationIndex = 0) + { + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (page != null) + { + localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + } + if (limit != null) + { + localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "limit", limit)); + } + + localVarRequestOptions.Operation = "TribufuGeneratedApi.GetSubscriptions"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get>("/v1/subscriptions", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetSubscriptions", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get a list of subscriptions. <b>🔒 Required permissions:</b> <code>tribufu.store.subscription.list</code> + /// + /// Thrown when fails to make API call + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of List<Subscription> + public async System.Threading.Tasks.Task> GetSubscriptionsAsync(int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + Tribufu.Client.ApiResponse> localVarResponse = await GetSubscriptionsWithHttpInfoAsync(page, limit, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get a list of subscriptions. <b>🔒 Required permissions:</b> <code>tribufu.store.subscription.list</code> + /// + /// Thrown when fails to make API call + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (List<Subscription>) + public async System.Threading.Tasks.Task>> GetSubscriptionsWithHttpInfoAsync(int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (page != null) + { + localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + } + if (limit != null) + { + localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "limit", limit)); + } + + localVarRequestOptions.Operation = "TribufuGeneratedApi.GetSubscriptions"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync>("/v1/subscriptions", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetSubscriptions", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get a list of connected accounts of the user. <b>🔒 Required permissions:</b> <code>tribufu.identity.user.account.list</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// List<Account> + public List GetUserAccounts(string id, int operationIndex = 0) + { + Tribufu.Client.ApiResponse> localVarResponse = GetUserAccountsWithHttpInfo(id); + return localVarResponse.Data; + } + + /// + /// Get a list of connected accounts of the user. <b>🔒 Required permissions:</b> <code>tribufu.identity.user.account.list</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of List<Account> + public Tribufu.Client.ApiResponse> GetUserAccountsWithHttpInfo(string id, int operationIndex = 0) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->GetUserAccounts"); + } + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter + + localVarRequestOptions.Operation = "TribufuGeneratedApi.GetUserAccounts"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get>("/v1/users/{id}/accounts", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetUserAccounts", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get a list of connected accounts of the user. <b>🔒 Required permissions:</b> <code>tribufu.identity.user.account.list</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of List<Account> + public async System.Threading.Tasks.Task> GetUserAccountsAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + Tribufu.Client.ApiResponse> localVarResponse = await GetUserAccountsWithHttpInfoAsync(id, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get a list of connected accounts of the user. <b>🔒 Required permissions:</b> <code>tribufu.identity.user.account.list</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (List<Account>) + public async System.Threading.Tasks.Task>> GetUserAccountsWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->GetUserAccounts"); + } + + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter + + localVarRequestOptions.Operation = "TribufuGeneratedApi.GetUserAccounts"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync>("/v1/users/{id}/accounts", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetUserAccounts", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get a list of friends of the user. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.friend.list</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// List<Object> + public List GetUserFriends(string id, int operationIndex = 0) + { + Tribufu.Client.ApiResponse> localVarResponse = GetUserFriendsWithHttpInfo(id); + return localVarResponse.Data; + } + + /// + /// Get a list of friends of the user. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.friend.list</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of List<Object> + public Tribufu.Client.ApiResponse> GetUserFriendsWithHttpInfo(string id, int operationIndex = 0) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->GetUserFriends"); + } + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter + + localVarRequestOptions.Operation = "TribufuGeneratedApi.GetUserFriends"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get>("/v1/profiles/{id}/friends", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetUserFriends", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get a list of friends of the user. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.friend.list</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of List<Object> + public async System.Threading.Tasks.Task> GetUserFriendsAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + Tribufu.Client.ApiResponse> localVarResponse = await GetUserFriendsWithHttpInfoAsync(id, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get a list of friends of the user. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.friend.list</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (List<Object>) + public async System.Threading.Tasks.Task>> GetUserFriendsWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->GetUserFriends"); + } + + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter + + localVarRequestOptions.Operation = "TribufuGeneratedApi.GetUserFriends"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync>("/v1/profiles/{id}/friends", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetUserFriends", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get a list of friends of the user. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.friend.list</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// List<Object> + [Obsolete] + public List GetUserFriendsV1(string id, int operationIndex = 0) + { + Tribufu.Client.ApiResponse> localVarResponse = GetUserFriendsV1WithHttpInfo(id); + return localVarResponse.Data; + } + + /// + /// Get a list of friends of the user. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.friend.list</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of List<Object> + [Obsolete] + public Tribufu.Client.ApiResponse> GetUserFriendsV1WithHttpInfo(string id, int operationIndex = 0) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->GetUserFriendsV1"); + } + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter + + localVarRequestOptions.Operation = "TribufuGeneratedApi.GetUserFriendsV1"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get>("/v1/users/{id}/friends", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetUserFriendsV1", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get a list of friends of the user. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.friend.list</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of List<Object> + [Obsolete] + public async System.Threading.Tasks.Task> GetUserFriendsV1Async(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + Tribufu.Client.ApiResponse> localVarResponse = await GetUserFriendsV1WithHttpInfoAsync(id, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get a list of friends of the user. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.friend.list</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (List<Object>) + [Obsolete] + public async System.Threading.Tasks.Task>> GetUserFriendsV1WithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->GetUserFriendsV1"); + } + + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter + + localVarRequestOptions.Operation = "TribufuGeneratedApi.GetUserFriendsV1"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync>("/v1/users/{id}/friends", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetUserFriendsV1", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get a list of games the user has played. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.game.list</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// List<ProfileGame> + public List GetUserGames(string id, int operationIndex = 0) + { + Tribufu.Client.ApiResponse> localVarResponse = GetUserGamesWithHttpInfo(id); + return localVarResponse.Data; + } + + /// + /// Get a list of games the user has played. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.game.list</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of List<ProfileGame> + public Tribufu.Client.ApiResponse> GetUserGamesWithHttpInfo(string id, int operationIndex = 0) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->GetUserGames"); + } + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter + + localVarRequestOptions.Operation = "TribufuGeneratedApi.GetUserGames"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get>("/v1/profiles/{id}/games", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetUserGames", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get a list of games the user has played. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.game.list</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of List<ProfileGame> + public async System.Threading.Tasks.Task> GetUserGamesAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + Tribufu.Client.ApiResponse> localVarResponse = await GetUserGamesWithHttpInfoAsync(id, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get a list of games the user has played. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.game.list</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (List<ProfileGame>) + public async System.Threading.Tasks.Task>> GetUserGamesWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->GetUserGames"); + } + + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter + + localVarRequestOptions.Operation = "TribufuGeneratedApi.GetUserGames"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync>("/v1/profiles/{id}/games", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetUserGames", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get a list of games the user has played. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.game.list</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// List<ProfileGame> + [Obsolete] + public List GetUserGamesV1(string id, int operationIndex = 0) + { + Tribufu.Client.ApiResponse> localVarResponse = GetUserGamesV1WithHttpInfo(id); + return localVarResponse.Data; + } + + /// + /// Get a list of games the user has played. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.game.list</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of List<ProfileGame> + [Obsolete] + public Tribufu.Client.ApiResponse> GetUserGamesV1WithHttpInfo(string id, int operationIndex = 0) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->GetUserGamesV1"); + } + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter + + localVarRequestOptions.Operation = "TribufuGeneratedApi.GetUserGamesV1"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get>("/v1/users/{id}/games", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetUserGamesV1", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get a list of games the user has played. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.game.list</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of List<ProfileGame> + [Obsolete] + public async System.Threading.Tasks.Task> GetUserGamesV1Async(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + Tribufu.Client.ApiResponse> localVarResponse = await GetUserGamesV1WithHttpInfoAsync(id, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get a list of games the user has played. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.game.list</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (List<ProfileGame>) + [Obsolete] + public async System.Threading.Tasks.Task>> GetUserGamesV1WithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->GetUserGamesV1"); + } + + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter + + localVarRequestOptions.Operation = "TribufuGeneratedApi.GetUserGamesV1"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync>("/v1/users/{id}/games", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetUserGamesV1", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get a list of groups the user is a member of. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.group.list</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// List<ProfileGroup> + public List GetUserGroups(string id, int operationIndex = 0) + { + Tribufu.Client.ApiResponse> localVarResponse = GetUserGroupsWithHttpInfo(id); + return localVarResponse.Data; + } + + /// + /// Get a list of groups the user is a member of. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.group.list</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of List<ProfileGroup> + public Tribufu.Client.ApiResponse> GetUserGroupsWithHttpInfo(string id, int operationIndex = 0) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->GetUserGroups"); + } + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter + + localVarRequestOptions.Operation = "TribufuGeneratedApi.GetUserGroups"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get>("/v1/profiles/{id}/groups", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetUserGroups", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get a list of groups the user is a member of. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.group.list</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of List<ProfileGroup> + public async System.Threading.Tasks.Task> GetUserGroupsAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + Tribufu.Client.ApiResponse> localVarResponse = await GetUserGroupsWithHttpInfoAsync(id, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get a list of groups the user is a member of. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.group.list</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (List<ProfileGroup>) + public async System.Threading.Tasks.Task>> GetUserGroupsWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->GetUserGroups"); + } + + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter + + localVarRequestOptions.Operation = "TribufuGeneratedApi.GetUserGroups"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync>("/v1/profiles/{id}/groups", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetUserGroups", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get a list of groups the user is a member of. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.group.list</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// List<ProfileGroup> + [Obsolete] + public List GetUserGroupsV1(string id, int operationIndex = 0) + { + Tribufu.Client.ApiResponse> localVarResponse = GetUserGroupsV1WithHttpInfo(id); + return localVarResponse.Data; + } + + /// + /// Get a list of groups the user is a member of. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.group.list</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of List<ProfileGroup> + [Obsolete] + public Tribufu.Client.ApiResponse> GetUserGroupsV1WithHttpInfo(string id, int operationIndex = 0) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->GetUserGroupsV1"); + } + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter + + localVarRequestOptions.Operation = "TribufuGeneratedApi.GetUserGroupsV1"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get>("/v1/users/{id}/groups", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetUserGroupsV1", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get a list of groups the user is a member of. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.group.list</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of List<ProfileGroup> + [Obsolete] + public async System.Threading.Tasks.Task> GetUserGroupsV1Async(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + Tribufu.Client.ApiResponse> localVarResponse = await GetUserGroupsV1WithHttpInfoAsync(id, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get a list of groups the user is a member of. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.group.list</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (List<ProfileGroup>) + [Obsolete] + public async System.Threading.Tasks.Task>> GetUserGroupsV1WithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->GetUserGroupsV1"); + } + + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter + + localVarRequestOptions.Operation = "TribufuGeneratedApi.GetUserGroupsV1"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync>("/v1/users/{id}/groups", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetUserGroupsV1", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get current user information. <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.user.info</code> + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// UserInfo + public UserInfo GetUserInfo(int operationIndex = 0) + { + Tribufu.Client.ApiResponse localVarResponse = GetUserInfoWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// Get current user information. <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.user.info</code> + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of UserInfo + public Tribufu.Client.ApiResponse GetUserInfoWithHttpInfo(int operationIndex = 0) + { + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "TribufuGeneratedApi.GetUserInfo"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/v1/oauth2/userinfo", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetUserInfo", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get current user information. <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.user.info</code> + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of UserInfo + public async System.Threading.Tasks.Task GetUserInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + Tribufu.Client.ApiResponse localVarResponse = await GetUserInfoWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get current user information. <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.user.info</code> + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (UserInfo) + public async System.Threading.Tasks.Task> GetUserInfoWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "TribufuGeneratedApi.GetUserInfo"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/v1/oauth2/userinfo", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetUserInfo", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get a user profile by id. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.get</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Profile + public Profile GetUserProfileById(string id, int operationIndex = 0) + { + Tribufu.Client.ApiResponse localVarResponse = GetUserProfileByIdWithHttpInfo(id); + return localVarResponse.Data; + } + + /// + /// Get a user profile by id. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.get</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of Profile + public Tribufu.Client.ApiResponse GetUserProfileByIdWithHttpInfo(string id, int operationIndex = 0) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->GetUserProfileById"); + } + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter + + localVarRequestOptions.Operation = "TribufuGeneratedApi.GetUserProfileById"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/v1/profiles/{id}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetUserProfileById", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get a user profile by id. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.get</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of Profile + public async System.Threading.Tasks.Task GetUserProfileByIdAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + Tribufu.Client.ApiResponse localVarResponse = await GetUserProfileByIdWithHttpInfoAsync(id, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get a user profile by id. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.get</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (Profile) + public async System.Threading.Tasks.Task> GetUserProfileByIdWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->GetUserProfileById"); + } + + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter + + localVarRequestOptions.Operation = "TribufuGeneratedApi.GetUserProfileById"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/v1/profiles/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetUserProfileById", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get a user profile by id. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.get</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Profile + [Obsolete] + public Profile GetUserProfileByIdV1(string id, int operationIndex = 0) + { + Tribufu.Client.ApiResponse localVarResponse = GetUserProfileByIdV1WithHttpInfo(id); + return localVarResponse.Data; + } + + /// + /// Get a user profile by id. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.get</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of Profile + [Obsolete] + public Tribufu.Client.ApiResponse GetUserProfileByIdV1WithHttpInfo(string id, int operationIndex = 0) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->GetUserProfileByIdV1"); + } + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter + + localVarRequestOptions.Operation = "TribufuGeneratedApi.GetUserProfileByIdV1"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/v1/users/{id}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetUserProfileByIdV1", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get a user profile by id. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.get</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of Profile + [Obsolete] + public async System.Threading.Tasks.Task GetUserProfileByIdV1Async(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + Tribufu.Client.ApiResponse localVarResponse = await GetUserProfileByIdV1WithHttpInfoAsync(id, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get a user profile by id. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.get</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (Profile) + [Obsolete] + public async System.Threading.Tasks.Task> GetUserProfileByIdV1WithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->GetUserProfileByIdV1"); + } + + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter + + localVarRequestOptions.Operation = "TribufuGeneratedApi.GetUserProfileByIdV1"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/v1/users/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetUserProfileByIdV1", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get a user profile by name. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.get.name</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Profile + public Profile GetUserProfileByName(string name, int operationIndex = 0) + { + Tribufu.Client.ApiResponse localVarResponse = GetUserProfileByNameWithHttpInfo(name); + return localVarResponse.Data; + } + + /// + /// Get a user profile by name. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.get.name</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of Profile + public Tribufu.Client.ApiResponse GetUserProfileByNameWithHttpInfo(string name, int operationIndex = 0) + { + // verify the required parameter 'name' is set + if (name == null) + { + throw new Tribufu.Client.ApiException(400, "Missing required parameter 'name' when calling TribufuGeneratedApi->GetUserProfileByName"); + } + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("name", Tribufu.Client.ClientUtils.ParameterToString(name)); // path parameter + + localVarRequestOptions.Operation = "TribufuGeneratedApi.GetUserProfileByName"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/v1/profiles/name/{name}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetUserProfileByName", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get a user profile by name. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.get.name</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of Profile + public async System.Threading.Tasks.Task GetUserProfileByNameAsync(string name, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + Tribufu.Client.ApiResponse localVarResponse = await GetUserProfileByNameWithHttpInfoAsync(name, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get a user profile by name. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.get.name</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (Profile) + public async System.Threading.Tasks.Task> GetUserProfileByNameWithHttpInfoAsync(string name, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'name' is set + if (name == null) + { + throw new Tribufu.Client.ApiException(400, "Missing required parameter 'name' when calling TribufuGeneratedApi->GetUserProfileByName"); + } + + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("name", Tribufu.Client.ClientUtils.ParameterToString(name)); // path parameter + + localVarRequestOptions.Operation = "TribufuGeneratedApi.GetUserProfileByName"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/v1/profiles/name/{name}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetUserProfileByName", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get a user profile by name. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.get.name</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Profile + [Obsolete] + public Profile GetUserProfileByNameV1(string name, int operationIndex = 0) + { + Tribufu.Client.ApiResponse localVarResponse = GetUserProfileByNameV1WithHttpInfo(name); + return localVarResponse.Data; + } + + /// + /// Get a user profile by name. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.get.name</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of Profile + [Obsolete] + public Tribufu.Client.ApiResponse GetUserProfileByNameV1WithHttpInfo(string name, int operationIndex = 0) + { + // verify the required parameter 'name' is set + if (name == null) + { + throw new Tribufu.Client.ApiException(400, "Missing required parameter 'name' when calling TribufuGeneratedApi->GetUserProfileByNameV1"); + } + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("name", Tribufu.Client.ClientUtils.ParameterToString(name)); // path parameter + + localVarRequestOptions.Operation = "TribufuGeneratedApi.GetUserProfileByNameV1"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/v1/users/name/{name}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetUserProfileByNameV1", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get a user profile by name. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.get.name</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of Profile + [Obsolete] + public async System.Threading.Tasks.Task GetUserProfileByNameV1Async(string name, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + Tribufu.Client.ApiResponse localVarResponse = await GetUserProfileByNameV1WithHttpInfoAsync(name, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get a user profile by name. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.get.name</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (Profile) + [Obsolete] + public async System.Threading.Tasks.Task> GetUserProfileByNameV1WithHttpInfoAsync(string name, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'name' is set + if (name == null) + { + throw new Tribufu.Client.ApiException(400, "Missing required parameter 'name' when calling TribufuGeneratedApi->GetUserProfileByNameV1"); + } + + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("name", Tribufu.Client.ClientUtils.ParameterToString(name)); // path parameter + + localVarRequestOptions.Operation = "TribufuGeneratedApi.GetUserProfileByNameV1"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/v1/users/name/{name}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetUserProfileByNameV1", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get a user profile by uuid. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.get.uuid</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Profile + public Profile GetUserProfileByUuid(Guid uuid, int operationIndex = 0) + { + Tribufu.Client.ApiResponse localVarResponse = GetUserProfileByUuidWithHttpInfo(uuid); + return localVarResponse.Data; + } + + /// + /// Get a user profile by uuid. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.get.uuid</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of Profile + public Tribufu.Client.ApiResponse GetUserProfileByUuidWithHttpInfo(Guid uuid, int operationIndex = 0) + { + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("uuid", Tribufu.Client.ClientUtils.ParameterToString(uuid)); // path parameter + + localVarRequestOptions.Operation = "TribufuGeneratedApi.GetUserProfileByUuid"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/v1/profiles/uuid/{uuid}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetUserProfileByUuid", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get a user profile by uuid. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.get.uuid</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of Profile + public async System.Threading.Tasks.Task GetUserProfileByUuidAsync(Guid uuid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + Tribufu.Client.ApiResponse localVarResponse = await GetUserProfileByUuidWithHttpInfoAsync(uuid, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get a user profile by uuid. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.get.uuid</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (Profile) + public async System.Threading.Tasks.Task> GetUserProfileByUuidWithHttpInfoAsync(Guid uuid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("uuid", Tribufu.Client.ClientUtils.ParameterToString(uuid)); // path parameter + + localVarRequestOptions.Operation = "TribufuGeneratedApi.GetUserProfileByUuid"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/v1/profiles/uuid/{uuid}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetUserProfileByUuid", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get a user profile by uuid. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.get.uuid</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Profile + [Obsolete] + public Profile GetUserProfileByUuidV1(Guid uuid, int operationIndex = 0) + { + Tribufu.Client.ApiResponse localVarResponse = GetUserProfileByUuidV1WithHttpInfo(uuid); + return localVarResponse.Data; + } + + /// + /// Get a user profile by uuid. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.get.uuid</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of Profile + [Obsolete] + public Tribufu.Client.ApiResponse GetUserProfileByUuidV1WithHttpInfo(Guid uuid, int operationIndex = 0) + { + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("uuid", Tribufu.Client.ClientUtils.ParameterToString(uuid)); // path parameter + + localVarRequestOptions.Operation = "TribufuGeneratedApi.GetUserProfileByUuidV1"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/v1/users/uuid/{uuid}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetUserProfileByUuidV1", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get a user profile by uuid. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.get.uuid</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of Profile + [Obsolete] + public async System.Threading.Tasks.Task GetUserProfileByUuidV1Async(Guid uuid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + Tribufu.Client.ApiResponse localVarResponse = await GetUserProfileByUuidV1WithHttpInfoAsync(uuid, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get a user profile by uuid. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.get.uuid</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (Profile) + [Obsolete] + public async System.Threading.Tasks.Task> GetUserProfileByUuidV1WithHttpInfoAsync(Guid uuid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("uuid", Tribufu.Client.ClientUtils.ParameterToString(uuid)); // path parameter + + localVarRequestOptions.Operation = "TribufuGeneratedApi.GetUserProfileByUuidV1"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/v1/users/uuid/{uuid}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetUserProfileByUuidV1", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get a list of user profiles. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.list</code> + /// + /// Thrown when fails to make API call + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// List<Profile> + public List GetUserProfiles(int? page = default(int?), int? limit = default(int?), int operationIndex = 0) + { + Tribufu.Client.ApiResponse> localVarResponse = GetUserProfilesWithHttpInfo(page, limit); + return localVarResponse.Data; + } + + /// + /// Get a list of user profiles. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.list</code> + /// + /// Thrown when fails to make API call + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// ApiResponse of List<Profile> + public Tribufu.Client.ApiResponse> GetUserProfilesWithHttpInfo(int? page = default(int?), int? limit = default(int?), int operationIndex = 0) + { + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (page != null) + { + localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + } + if (limit != null) + { + localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "limit", limit)); + } + + localVarRequestOptions.Operation = "TribufuGeneratedApi.GetUserProfiles"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get>("/v1/profiles", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetUserProfiles", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get a list of user profiles. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.list</code> + /// + /// Thrown when fails to make API call + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of List<Profile> + public async System.Threading.Tasks.Task> GetUserProfilesAsync(int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + Tribufu.Client.ApiResponse> localVarResponse = await GetUserProfilesWithHttpInfoAsync(page, limit, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get a list of user profiles. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.list</code> + /// + /// Thrown when fails to make API call + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (List<Profile>) + public async System.Threading.Tasks.Task>> GetUserProfilesWithHttpInfoAsync(int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (page != null) + { + localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + } + if (limit != null) + { + localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "limit", limit)); + } + + localVarRequestOptions.Operation = "TribufuGeneratedApi.GetUserProfiles"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync>("/v1/profiles", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetUserProfiles", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get a list of user profiles. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.list</code> + /// + /// Thrown when fails to make API call + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// List<Profile> + [Obsolete] + public List GetUserProfilesV1(int? page = default(int?), int? limit = default(int?), int operationIndex = 0) + { + Tribufu.Client.ApiResponse> localVarResponse = GetUserProfilesV1WithHttpInfo(page, limit); + return localVarResponse.Data; + } + + /// + /// Get a list of user profiles. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.list</code> + /// + /// Thrown when fails to make API call + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// ApiResponse of List<Profile> + [Obsolete] + public Tribufu.Client.ApiResponse> GetUserProfilesV1WithHttpInfo(int? page = default(int?), int? limit = default(int?), int operationIndex = 0) + { + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (page != null) + { + localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + } + if (limit != null) + { + localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "limit", limit)); + } + + localVarRequestOptions.Operation = "TribufuGeneratedApi.GetUserProfilesV1"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get>("/v1/users", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetUserProfilesV1", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get a list of user profiles. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.list</code> + /// + /// Thrown when fails to make API call + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of List<Profile> + [Obsolete] + public async System.Threading.Tasks.Task> GetUserProfilesV1Async(int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + Tribufu.Client.ApiResponse> localVarResponse = await GetUserProfilesV1WithHttpInfoAsync(page, limit, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get a list of user profiles. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.list</code> + /// + /// Thrown when fails to make API call + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (List<Profile>) + [Obsolete] + public async System.Threading.Tasks.Task>> GetUserProfilesV1WithHttpInfoAsync(int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (page != null) + { + localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + } + if (limit != null) + { + localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "limit", limit)); + } + + localVarRequestOptions.Operation = "TribufuGeneratedApi.GetUserProfilesV1"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync>("/v1/users", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetUserProfilesV1", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get a list of sanctions the user has received. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.sanction.list</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// List<Object> + public List GetUserSanctions(string id, int operationIndex = 0) + { + Tribufu.Client.ApiResponse> localVarResponse = GetUserSanctionsWithHttpInfo(id); + return localVarResponse.Data; + } + + /// + /// Get a list of sanctions the user has received. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.sanction.list</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of List<Object> + public Tribufu.Client.ApiResponse> GetUserSanctionsWithHttpInfo(string id, int operationIndex = 0) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->GetUserSanctions"); + } + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter + + localVarRequestOptions.Operation = "TribufuGeneratedApi.GetUserSanctions"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get>("/v1/profiles/{id}/sanctions", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetUserSanctions", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get a list of sanctions the user has received. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.sanction.list</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of List<Object> + public async System.Threading.Tasks.Task> GetUserSanctionsAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + Tribufu.Client.ApiResponse> localVarResponse = await GetUserSanctionsWithHttpInfoAsync(id, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get a list of sanctions the user has received. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.sanction.list</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (List<Object>) + public async System.Threading.Tasks.Task>> GetUserSanctionsWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->GetUserSanctions"); + } + + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter + + localVarRequestOptions.Operation = "TribufuGeneratedApi.GetUserSanctions"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync>("/v1/profiles/{id}/sanctions", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetUserSanctions", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get a list of sanctions the user has received. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.sanction.list</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// List<Object> + [Obsolete] + public List GetUserSanctionsV1(string id, int operationIndex = 0) + { + Tribufu.Client.ApiResponse> localVarResponse = GetUserSanctionsV1WithHttpInfo(id); + return localVarResponse.Data; + } + + /// + /// Get a list of sanctions the user has received. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.sanction.list</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of List<Object> + [Obsolete] + public Tribufu.Client.ApiResponse> GetUserSanctionsV1WithHttpInfo(string id, int operationIndex = 0) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->GetUserSanctionsV1"); + } + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter + + localVarRequestOptions.Operation = "TribufuGeneratedApi.GetUserSanctionsV1"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get>("/v1/users/{id}/sanctions", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetUserSanctionsV1", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get a list of sanctions the user has received. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.sanction.list</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of List<Object> + [Obsolete] + public async System.Threading.Tasks.Task> GetUserSanctionsV1Async(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + Tribufu.Client.ApiResponse> localVarResponse = await GetUserSanctionsV1WithHttpInfoAsync(id, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get a list of sanctions the user has received. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.sanction.list</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (List<Object>) + [Obsolete] + public async System.Threading.Tasks.Task>> GetUserSanctionsV1WithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->GetUserSanctionsV1"); + } + + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter + + localVarRequestOptions.Operation = "TribufuGeneratedApi.GetUserSanctionsV1"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync>("/v1/users/{id}/sanctions", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetUserSanctionsV1", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get a list of servers the user is owner of. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.game.server.list</code> + /// + /// Thrown when fails to make API call + /// + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// List<GameServer> + public List GetUserServers(string id, int? page = default(int?), int? limit = default(int?), int operationIndex = 0) + { + Tribufu.Client.ApiResponse> localVarResponse = GetUserServersWithHttpInfo(id, page, limit); + return localVarResponse.Data; + } + + /// + /// Get a list of servers the user is owner of. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.game.server.list</code> + /// + /// Thrown when fails to make API call + /// + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// ApiResponse of List<GameServer> + public Tribufu.Client.ApiResponse> GetUserServersWithHttpInfo(string id, int? page = default(int?), int? limit = default(int?), int operationIndex = 0) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->GetUserServers"); + } + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter + if (page != null) + { + localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + } + if (limit != null) + { + localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "limit", limit)); + } + + localVarRequestOptions.Operation = "TribufuGeneratedApi.GetUserServers"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get>("/v1/profiles/{id}/servers", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetUserServers", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get a list of servers the user is owner of. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.game.server.list</code> + /// + /// Thrown when fails to make API call + /// + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of List<GameServer> + public async System.Threading.Tasks.Task> GetUserServersAsync(string id, int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + Tribufu.Client.ApiResponse> localVarResponse = await GetUserServersWithHttpInfoAsync(id, page, limit, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get a list of servers the user is owner of. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.game.server.list</code> + /// + /// Thrown when fails to make API call + /// + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (List<GameServer>) + public async System.Threading.Tasks.Task>> GetUserServersWithHttpInfoAsync(string id, int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->GetUserServers"); + } + + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter + if (page != null) + { + localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + } + if (limit != null) + { + localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "limit", limit)); + } + + localVarRequestOptions.Operation = "TribufuGeneratedApi.GetUserServers"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync>("/v1/profiles/{id}/servers", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetUserServers", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get a list of servers the user is owner of. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.game.server.list</code> + /// + /// Thrown when fails to make API call + /// + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// List<GameServer> + [Obsolete] + public List GetUserServersV1(string id, int? page = default(int?), int? limit = default(int?), int operationIndex = 0) + { + Tribufu.Client.ApiResponse> localVarResponse = GetUserServersV1WithHttpInfo(id, page, limit); + return localVarResponse.Data; + } + + /// + /// Get a list of servers the user is owner of. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.game.server.list</code> + /// + /// Thrown when fails to make API call + /// + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// ApiResponse of List<GameServer> + [Obsolete] + public Tribufu.Client.ApiResponse> GetUserServersV1WithHttpInfo(string id, int? page = default(int?), int? limit = default(int?), int operationIndex = 0) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->GetUserServersV1"); + } + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter + if (page != null) + { + localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + } + if (limit != null) + { + localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "limit", limit)); + } + + localVarRequestOptions.Operation = "TribufuGeneratedApi.GetUserServersV1"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get>("/v1/users/{id}/servers", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetUserServersV1", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get a list of servers the user is owner of. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.game.server.list</code> + /// + /// Thrown when fails to make API call + /// + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of List<GameServer> + [Obsolete] + public async System.Threading.Tasks.Task> GetUserServersV1Async(string id, int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + Tribufu.Client.ApiResponse> localVarResponse = await GetUserServersV1WithHttpInfoAsync(id, page, limit, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get a list of servers the user is owner of. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.game.server.list</code> + /// + /// Thrown when fails to make API call + /// + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (List<GameServer>) + [Obsolete] + public async System.Threading.Tasks.Task>> GetUserServersV1WithHttpInfoAsync(string id, int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->GetUserServersV1"); + } + + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter + if (page != null) + { + localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + } + if (limit != null) + { + localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "limit", limit)); + } + + localVarRequestOptions.Operation = "TribufuGeneratedApi.GetUserServersV1"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync>("/v1/users/{id}/servers", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetUserServersV1", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Hash a string using argon2. <b>🔒 Required permissions:</b> <code>tribufu.utils.hash.argon2</code> + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// HashViewModel + public HashViewModel HashArgon2(HashViewModel? hashViewModel = default(HashViewModel?), int operationIndex = 0) + { + Tribufu.Client.ApiResponse localVarResponse = HashArgon2WithHttpInfo(hashViewModel); + return localVarResponse.Data; + } + + /// + /// Hash a string using argon2. <b>🔒 Required permissions:</b> <code>tribufu.utils.hash.argon2</code> + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// ApiResponse of HashViewModel + public Tribufu.Client.ApiResponse HashArgon2WithHttpInfo(HashViewModel? hashViewModel = default(HashViewModel?), int operationIndex = 0) + { + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = hashViewModel; + + localVarRequestOptions.Operation = "TribufuGeneratedApi.HashArgon2"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = this.Client.Post("/v1/utils/argon2", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("HashArgon2", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Hash a string using argon2. <b>🔒 Required permissions:</b> <code>tribufu.utils.hash.argon2</code> + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of HashViewModel + public async System.Threading.Tasks.Task HashArgon2Async(HashViewModel? hashViewModel = default(HashViewModel?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + Tribufu.Client.ApiResponse localVarResponse = await HashArgon2WithHttpInfoAsync(hashViewModel, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Hash a string using argon2. <b>🔒 Required permissions:</b> <code>tribufu.utils.hash.argon2</code> + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (HashViewModel) + public async System.Threading.Tasks.Task> HashArgon2WithHttpInfoAsync(HashViewModel? hashViewModel = default(HashViewModel?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = hashViewModel; + + localVarRequestOptions.Operation = "TribufuGeneratedApi.HashArgon2"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/v1/utils/argon2", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("HashArgon2", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Hash a string using bcrypt. <b>🔒 Required permissions:</b> <code>tribufu.utils.hash.bcrypt</code> + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// HashViewModel + public HashViewModel HashBcrypt(HashViewModel? hashViewModel = default(HashViewModel?), int operationIndex = 0) + { + Tribufu.Client.ApiResponse localVarResponse = HashBcryptWithHttpInfo(hashViewModel); + return localVarResponse.Data; + } + + /// + /// Hash a string using bcrypt. <b>🔒 Required permissions:</b> <code>tribufu.utils.hash.bcrypt</code> + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// ApiResponse of HashViewModel + public Tribufu.Client.ApiResponse HashBcryptWithHttpInfo(HashViewModel? hashViewModel = default(HashViewModel?), int operationIndex = 0) + { + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = hashViewModel; + + localVarRequestOptions.Operation = "TribufuGeneratedApi.HashBcrypt"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = this.Client.Post("/v1/utils/bcrypt", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("HashBcrypt", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Hash a string using bcrypt. <b>🔒 Required permissions:</b> <code>tribufu.utils.hash.bcrypt</code> + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of HashViewModel + public async System.Threading.Tasks.Task HashBcryptAsync(HashViewModel? hashViewModel = default(HashViewModel?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + Tribufu.Client.ApiResponse localVarResponse = await HashBcryptWithHttpInfoAsync(hashViewModel, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Hash a string using bcrypt. <b>🔒 Required permissions:</b> <code>tribufu.utils.hash.bcrypt</code> + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (HashViewModel) + public async System.Threading.Tasks.Task> HashBcryptWithHttpInfoAsync(HashViewModel? hashViewModel = default(HashViewModel?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = hashViewModel; + + localVarRequestOptions.Operation = "TribufuGeneratedApi.HashBcrypt"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/v1/utils/bcrypt", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("HashBcrypt", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Hash a string using md5. <b>🔒 Required permissions:</b> <code>tribufu.utils.hash.md5</code> + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// HashViewModel + public HashViewModel HashMd5(HashViewModel? hashViewModel = default(HashViewModel?), int operationIndex = 0) + { + Tribufu.Client.ApiResponse localVarResponse = HashMd5WithHttpInfo(hashViewModel); + return localVarResponse.Data; + } + + /// + /// Hash a string using md5. <b>🔒 Required permissions:</b> <code>tribufu.utils.hash.md5</code> + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// ApiResponse of HashViewModel + public Tribufu.Client.ApiResponse HashMd5WithHttpInfo(HashViewModel? hashViewModel = default(HashViewModel?), int operationIndex = 0) + { + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = hashViewModel; + + localVarRequestOptions.Operation = "TribufuGeneratedApi.HashMd5"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = this.Client.Post("/v1/utils/md5", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("HashMd5", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Hash a string using md5. <b>🔒 Required permissions:</b> <code>tribufu.utils.hash.md5</code> + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of HashViewModel + public async System.Threading.Tasks.Task HashMd5Async(HashViewModel? hashViewModel = default(HashViewModel?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + Tribufu.Client.ApiResponse localVarResponse = await HashMd5WithHttpInfoAsync(hashViewModel, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Hash a string using md5. <b>🔒 Required permissions:</b> <code>tribufu.utils.hash.md5</code> + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (HashViewModel) + public async System.Threading.Tasks.Task> HashMd5WithHttpInfoAsync(HashViewModel? hashViewModel = default(HashViewModel?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = hashViewModel; + + localVarRequestOptions.Operation = "TribufuGeneratedApi.HashMd5"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/v1/utils/md5", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("HashMd5", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Hash a string using sha256. <b>🔒 Required permissions:</b> <code>tribufu.utils.hash.sha256</code> + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// HashViewModel + public HashViewModel HashSha256(HashViewModel? hashViewModel = default(HashViewModel?), int operationIndex = 0) + { + Tribufu.Client.ApiResponse localVarResponse = HashSha256WithHttpInfo(hashViewModel); + return localVarResponse.Data; + } + + /// + /// Hash a string using sha256. <b>🔒 Required permissions:</b> <code>tribufu.utils.hash.sha256</code> + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// ApiResponse of HashViewModel + public Tribufu.Client.ApiResponse HashSha256WithHttpInfo(HashViewModel? hashViewModel = default(HashViewModel?), int operationIndex = 0) + { + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = hashViewModel; + + localVarRequestOptions.Operation = "TribufuGeneratedApi.HashSha256"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = this.Client.Post("/v1/utils/sha256", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("HashSha256", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Hash a string using sha256. <b>🔒 Required permissions:</b> <code>tribufu.utils.hash.sha256</code> + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of HashViewModel + public async System.Threading.Tasks.Task HashSha256Async(HashViewModel? hashViewModel = default(HashViewModel?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + Tribufu.Client.ApiResponse localVarResponse = await HashSha256WithHttpInfoAsync(hashViewModel, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Hash a string using sha256. <b>🔒 Required permissions:</b> <code>tribufu.utils.hash.sha256</code> + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (HashViewModel) + public async System.Threading.Tasks.Task> HashSha256WithHttpInfoAsync(HashViewModel? hashViewModel = default(HashViewModel?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = hashViewModel; + + localVarRequestOptions.Operation = "TribufuGeneratedApi.HashSha256"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/v1/utils/sha256", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("HashSha256", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Introspect a token. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// IntrospectResponse + public IntrospectResponse IntrospectToken(IntrospectRequest? introspectRequest = default(IntrospectRequest?), int operationIndex = 0) + { + Tribufu.Client.ApiResponse localVarResponse = IntrospectTokenWithHttpInfo(introspectRequest); + return localVarResponse.Data; + } + + /// + /// Introspect a token. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// ApiResponse of IntrospectResponse + public Tribufu.Client.ApiResponse IntrospectTokenWithHttpInfo(IntrospectRequest? introspectRequest = default(IntrospectRequest?), int operationIndex = 0) + { + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json", + "application/x-www-form-urlencoded" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = introspectRequest; + + localVarRequestOptions.Operation = "TribufuGeneratedApi.IntrospectToken"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = this.Client.Post("/v1/oauth2/introspect", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("IntrospectToken", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Introspect a token. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of IntrospectResponse + public async System.Threading.Tasks.Task IntrospectTokenAsync(IntrospectRequest? introspectRequest = default(IntrospectRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + Tribufu.Client.ApiResponse localVarResponse = await IntrospectTokenWithHttpInfoAsync(introspectRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Introspect a token. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (IntrospectResponse) + public async System.Threading.Tasks.Task> IntrospectTokenWithHttpInfoAsync(IntrospectRequest? introspectRequest = default(IntrospectRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json", + "application/x-www-form-urlencoded" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = introspectRequest; + + localVarRequestOptions.Operation = "TribufuGeneratedApi.IntrospectToken"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/v1/oauth2/introspect", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("IntrospectToken", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Revoke a token. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// + public void RevokeToken(RevokeRequest? revokeRequest = default(RevokeRequest?), int operationIndex = 0) + { + RevokeTokenWithHttpInfo(revokeRequest); + } + + /// + /// Revoke a token. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// ApiResponse of Object(void) + public Tribufu.Client.ApiResponse RevokeTokenWithHttpInfo(RevokeRequest? revokeRequest = default(RevokeRequest?), int operationIndex = 0) + { + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json", + "application/x-www-form-urlencoded" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = revokeRequest; + + localVarRequestOptions.Operation = "TribufuGeneratedApi.RevokeToken"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = this.Client.Post("/v1/oauth2/revoke", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("RevokeToken", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Revoke a token. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of void + public async System.Threading.Tasks.Task RevokeTokenAsync(RevokeRequest? revokeRequest = default(RevokeRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + await RevokeTokenWithHttpInfoAsync(revokeRequest, operationIndex, cancellationToken).ConfigureAwait(false); + } + + /// + /// Revoke a token. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + public async System.Threading.Tasks.Task> RevokeTokenWithHttpInfoAsync(RevokeRequest? revokeRequest = default(RevokeRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json", + "application/x-www-form-urlencoded" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = revokeRequest; + + localVarRequestOptions.Operation = "TribufuGeneratedApi.RevokeToken"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/v1/oauth2/revoke", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("RevokeToken", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Advanced search. <b>🔒 Required permissions:</b> <code>tribufu.community.search</code> + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// List<Object> + public List Search(Search? search = default(Search?), int operationIndex = 0) + { + Tribufu.Client.ApiResponse> localVarResponse = SearchWithHttpInfo(search); + return localVarResponse.Data; + } + + /// + /// Advanced search. <b>🔒 Required permissions:</b> <code>tribufu.community.search</code> + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// ApiResponse of List<Object> + public Tribufu.Client.ApiResponse> SearchWithHttpInfo(Search? search = default(Search?), int operationIndex = 0) + { + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = search; + + localVarRequestOptions.Operation = "TribufuGeneratedApi.Search"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = this.Client.Post>("/v1/search", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("Search", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Advanced search. <b>🔒 Required permissions:</b> <code>tribufu.community.search</code> + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of List<Object> + public async System.Threading.Tasks.Task> SearchAsync(Search? search = default(Search?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + Tribufu.Client.ApiResponse> localVarResponse = await SearchWithHttpInfoAsync(search, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Advanced search. <b>🔒 Required permissions:</b> <code>tribufu.community.search</code> + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (List<Object>) + public async System.Threading.Tasks.Task>> SearchWithHttpInfoAsync(Search? search = default(Search?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = search; + + localVarRequestOptions.Operation = "TribufuGeneratedApi.Search"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync>("/v1/search", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("Search", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Update an oauth2 client. <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.client.update</code> + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Index associated with the operation. + /// + public void UpdateClient(string id, Object? body = default(Object?), int operationIndex = 0) + { + UpdateClientWithHttpInfo(id, body); + } + + /// + /// Update an oauth2 client. <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.client.update</code> + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Index associated with the operation. + /// ApiResponse of Object(void) + public Tribufu.Client.ApiResponse UpdateClientWithHttpInfo(string id, Object? body = default(Object?), int operationIndex = 0) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->UpdateClient"); + } + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter + localVarRequestOptions.Data = body; + + localVarRequestOptions.Operation = "TribufuGeneratedApi.UpdateClient"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = this.Client.Put("/v1/oauth2/clients/{id}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateClient", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Update an oauth2 client. <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.client.update</code> + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of void + public async System.Threading.Tasks.Task UpdateClientAsync(string id, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + await UpdateClientWithHttpInfoAsync(id, body, operationIndex, cancellationToken).ConfigureAwait(false); + } + + /// + /// Update an oauth2 client. <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.client.update</code> + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + public async System.Threading.Tasks.Task> UpdateClientWithHttpInfoAsync(string id, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->UpdateClient"); + } + + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter + localVarRequestOptions.Data = body; + + localVarRequestOptions.Operation = "TribufuGeneratedApi.UpdateClient"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PutAsync("/v1/oauth2/clients/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateClient", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Update a game server. <b>🔒 Required permissions:</b> <code>tribufu.game.server.update</code> + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Index associated with the operation. + /// + public void UpdateGameServer(string id, Object? body = default(Object?), int operationIndex = 0) + { + UpdateGameServerWithHttpInfo(id, body); + } + + /// + /// Update a game server. <b>🔒 Required permissions:</b> <code>tribufu.game.server.update</code> + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Index associated with the operation. + /// ApiResponse of Object(void) + public Tribufu.Client.ApiResponse UpdateGameServerWithHttpInfo(string id, Object? body = default(Object?), int operationIndex = 0) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->UpdateGameServer"); + } + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter + localVarRequestOptions.Data = body; + + localVarRequestOptions.Operation = "TribufuGeneratedApi.UpdateGameServer"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = this.Client.Put("/v1/games/servers/{id}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateGameServer", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Update a game server. <b>🔒 Required permissions:</b> <code>tribufu.game.server.update</code> + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of void + public async System.Threading.Tasks.Task UpdateGameServerAsync(string id, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + await UpdateGameServerWithHttpInfoAsync(id, body, operationIndex, cancellationToken).ConfigureAwait(false); + } + + /// + /// Update a game server. <b>🔒 Required permissions:</b> <code>tribufu.game.server.update</code> + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + public async System.Threading.Tasks.Task> UpdateGameServerWithHttpInfoAsync(string id, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->UpdateGameServer"); + } + + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter + localVarRequestOptions.Data = body; + + localVarRequestOptions.Operation = "TribufuGeneratedApi.UpdateGameServer"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PutAsync("/v1/games/servers/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateGameServer", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Update a game server cluster. <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.update</code> + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Index associated with the operation. + /// + public void UpdateGameServerCluster(string id, Object? body = default(Object?), int operationIndex = 0) + { + UpdateGameServerClusterWithHttpInfo(id, body); + } + + /// + /// Update a game server cluster. <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.update</code> + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Index associated with the operation. + /// ApiResponse of Object(void) + public Tribufu.Client.ApiResponse UpdateGameServerClusterWithHttpInfo(string id, Object? body = default(Object?), int operationIndex = 0) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->UpdateGameServerCluster"); + } + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter + localVarRequestOptions.Data = body; + + localVarRequestOptions.Operation = "TribufuGeneratedApi.UpdateGameServerCluster"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = this.Client.Put("/v1/games/servers/clusters/{id}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateGameServerCluster", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Update a game server cluster. <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.update</code> + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of void + public async System.Threading.Tasks.Task UpdateGameServerClusterAsync(string id, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + await UpdateGameServerClusterWithHttpInfoAsync(id, body, operationIndex, cancellationToken).ConfigureAwait(false); + } + + /// + /// Update a game server cluster. <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.update</code> + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + public async System.Threading.Tasks.Task> UpdateGameServerClusterWithHttpInfoAsync(string id, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->UpdateGameServerCluster"); + } + + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter + localVarRequestOptions.Data = body; + + localVarRequestOptions.Operation = "TribufuGeneratedApi.UpdateGameServerCluster"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PutAsync("/v1/games/servers/clusters/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateGameServerCluster", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Update a game server cluster. <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.update</code> + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Index associated with the operation. + /// + [Obsolete] + public void UpdateGameServerClusterV1(string id, Object? body = default(Object?), int operationIndex = 0) + { + UpdateGameServerClusterV1WithHttpInfo(id, body); + } + + /// + /// Update a game server cluster. <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.update</code> + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Index associated with the operation. + /// ApiResponse of Object(void) + [Obsolete] + public Tribufu.Client.ApiResponse UpdateGameServerClusterV1WithHttpInfo(string id, Object? body = default(Object?), int operationIndex = 0) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->UpdateGameServerClusterV1"); + } + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter + localVarRequestOptions.Data = body; + + localVarRequestOptions.Operation = "TribufuGeneratedApi.UpdateGameServerClusterV1"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = this.Client.Put("/v1/clusters/{id}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateGameServerClusterV1", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Update a game server cluster. <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.update</code> + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of void + [Obsolete] + public async System.Threading.Tasks.Task UpdateGameServerClusterV1Async(string id, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + await UpdateGameServerClusterV1WithHttpInfoAsync(id, body, operationIndex, cancellationToken).ConfigureAwait(false); + } + + /// + /// Update a game server cluster. <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.update</code> + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + [Obsolete] + public async System.Threading.Tasks.Task> UpdateGameServerClusterV1WithHttpInfoAsync(string id, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->UpdateGameServerClusterV1"); + } + + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter + localVarRequestOptions.Data = body; + + localVarRequestOptions.Operation = "TribufuGeneratedApi.UpdateGameServerClusterV1"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PutAsync("/v1/clusters/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateGameServerClusterV1", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Update a game server. <b>🔒 Required permissions:</b> <code>tribufu.game.server.update</code> + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Index associated with the operation. + /// + [Obsolete] + public void UpdateGameServerV1(string id, Object? body = default(Object?), int operationIndex = 0) + { + UpdateGameServerV1WithHttpInfo(id, body); + } + + /// + /// Update a game server. <b>🔒 Required permissions:</b> <code>tribufu.game.server.update</code> + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Index associated with the operation. + /// ApiResponse of Object(void) + [Obsolete] + public Tribufu.Client.ApiResponse UpdateGameServerV1WithHttpInfo(string id, Object? body = default(Object?), int operationIndex = 0) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->UpdateGameServerV1"); + } + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter + localVarRequestOptions.Data = body; + + localVarRequestOptions.Operation = "TribufuGeneratedApi.UpdateGameServerV1"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = this.Client.Put("/v1/servers/{id}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateGameServerV1", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Update a game server. <b>🔒 Required permissions:</b> <code>tribufu.game.server.update</code> + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of void + [Obsolete] + public async System.Threading.Tasks.Task UpdateGameServerV1Async(string id, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + await UpdateGameServerV1WithHttpInfoAsync(id, body, operationIndex, cancellationToken).ConfigureAwait(false); + } + + /// + /// Update a game server. <b>🔒 Required permissions:</b> <code>tribufu.game.server.update</code> + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + [Obsolete] + public async System.Threading.Tasks.Task> UpdateGameServerV1WithHttpInfoAsync(string id, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->UpdateGameServerV1"); + } + + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter + localVarRequestOptions.Data = body; + + localVarRequestOptions.Operation = "TribufuGeneratedApi.UpdateGameServerV1"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PutAsync("/v1/servers/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateGameServerV1", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Update a group. <b>🔒 Required permissions:</b> <code>tribufu.community.group.update</code> + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Index associated with the operation. + /// + public void UpdateGroup(string id, Object? body = default(Object?), int operationIndex = 0) + { + UpdateGroupWithHttpInfo(id, body); + } + + /// + /// Update a group. <b>🔒 Required permissions:</b> <code>tribufu.community.group.update</code> + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Index associated with the operation. + /// ApiResponse of Object(void) + public Tribufu.Client.ApiResponse UpdateGroupWithHttpInfo(string id, Object? body = default(Object?), int operationIndex = 0) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->UpdateGroup"); + } + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter + localVarRequestOptions.Data = body; + + localVarRequestOptions.Operation = "TribufuGeneratedApi.UpdateGroup"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = this.Client.Put("/v1/groups/{id}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateGroup", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Update a group. <b>🔒 Required permissions:</b> <code>tribufu.community.group.update</code> + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of void + public async System.Threading.Tasks.Task UpdateGroupAsync(string id, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + await UpdateGroupWithHttpInfoAsync(id, body, operationIndex, cancellationToken).ConfigureAwait(false); + } + + /// + /// Update a group. <b>🔒 Required permissions:</b> <code>tribufu.community.group.update</code> + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + public async System.Threading.Tasks.Task> UpdateGroupWithHttpInfoAsync(string id, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->UpdateGroup"); + } + + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter + localVarRequestOptions.Data = body; + + localVarRequestOptions.Operation = "TribufuGeneratedApi.UpdateGroup"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PutAsync("/v1/groups/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateGroup", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Update an package. <b>🔒 Required permissions:</b> <code>tribufu.community.package.update</code> + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Index associated with the operation. + /// + public void UpdatePackage(string id, Package? package = default(Package?), int operationIndex = 0) + { + UpdatePackageWithHttpInfo(id, package); + } + + /// + /// Update an package. <b>🔒 Required permissions:</b> <code>tribufu.community.package.update</code> + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Index associated with the operation. + /// ApiResponse of Object(void) + public Tribufu.Client.ApiResponse UpdatePackageWithHttpInfo(string id, Package? package = default(Package?), int operationIndex = 0) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->UpdatePackage"); + } + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter + localVarRequestOptions.Data = package; + + localVarRequestOptions.Operation = "TribufuGeneratedApi.UpdatePackage"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = this.Client.Put("/v1/packages/{id}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdatePackage", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Update an package. <b>🔒 Required permissions:</b> <code>tribufu.community.package.update</code> + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of void + public async System.Threading.Tasks.Task UpdatePackageAsync(string id, Package? package = default(Package?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + await UpdatePackageWithHttpInfoAsync(id, package, operationIndex, cancellationToken).ConfigureAwait(false); + } + + /// + /// Update an package. <b>🔒 Required permissions:</b> <code>tribufu.community.package.update</code> + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + public async System.Threading.Tasks.Task> UpdatePackageWithHttpInfoAsync(string id, Package? package = default(Package?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->UpdatePackage"); + } + + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter + localVarRequestOptions.Data = package; + + localVarRequestOptions.Operation = "TribufuGeneratedApi.UpdatePackage"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PutAsync("/v1/packages/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdatePackage", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Update a user profile. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.update</code> + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Index associated with the operation. + /// Profile + public Profile UpdateUserProfile(string id, UpdateProfile? updateProfile = default(UpdateProfile?), int operationIndex = 0) + { + Tribufu.Client.ApiResponse localVarResponse = UpdateUserProfileWithHttpInfo(id, updateProfile); + return localVarResponse.Data; + } + + /// + /// Update a user profile. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.update</code> + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Index associated with the operation. + /// ApiResponse of Profile + public Tribufu.Client.ApiResponse UpdateUserProfileWithHttpInfo(string id, UpdateProfile? updateProfile = default(UpdateProfile?), int operationIndex = 0) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->UpdateUserProfile"); + } + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter + localVarRequestOptions.Data = updateProfile; + + localVarRequestOptions.Operation = "TribufuGeneratedApi.UpdateUserProfile"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = this.Client.Put("/v1/profiles/{id}/profile", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateUserProfile", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Update a user profile. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.update</code> + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of Profile + public async System.Threading.Tasks.Task UpdateUserProfileAsync(string id, UpdateProfile? updateProfile = default(UpdateProfile?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + Tribufu.Client.ApiResponse localVarResponse = await UpdateUserProfileWithHttpInfoAsync(id, updateProfile, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Update a user profile. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.update</code> + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (Profile) + public async System.Threading.Tasks.Task> UpdateUserProfileWithHttpInfoAsync(string id, UpdateProfile? updateProfile = default(UpdateProfile?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->UpdateUserProfile"); + } + + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter + localVarRequestOptions.Data = updateProfile; + + localVarRequestOptions.Operation = "TribufuGeneratedApi.UpdateUserProfile"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PutAsync("/v1/profiles/{id}/profile", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateUserProfile", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Update a user profile. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.update</code> + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Index associated with the operation. + /// Profile + [Obsolete] + public Profile UpdateUserProfileV1(string id, UpdateProfile? updateProfile = default(UpdateProfile?), int operationIndex = 0) + { + Tribufu.Client.ApiResponse localVarResponse = UpdateUserProfileV1WithHttpInfo(id, updateProfile); + return localVarResponse.Data; + } + + /// + /// Update a user profile. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.update</code> + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Index associated with the operation. + /// ApiResponse of Profile + [Obsolete] + public Tribufu.Client.ApiResponse UpdateUserProfileV1WithHttpInfo(string id, UpdateProfile? updateProfile = default(UpdateProfile?), int operationIndex = 0) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->UpdateUserProfileV1"); + } + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter + localVarRequestOptions.Data = updateProfile; + + localVarRequestOptions.Operation = "TribufuGeneratedApi.UpdateUserProfileV1"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = this.Client.Put("/v1/users/{id}/profile", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateUserProfileV1", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Update a user profile. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.update</code> + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of Profile + [Obsolete] + public async System.Threading.Tasks.Task UpdateUserProfileV1Async(string id, UpdateProfile? updateProfile = default(UpdateProfile?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + Tribufu.Client.ApiResponse localVarResponse = await UpdateUserProfileV1WithHttpInfoAsync(id, updateProfile, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Update a user profile. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.update</code> + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (Profile) + [Obsolete] + public async System.Threading.Tasks.Task> UpdateUserProfileV1WithHttpInfoAsync(string id, UpdateProfile? updateProfile = default(UpdateProfile?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->UpdateUserProfileV1"); + } + + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter + localVarRequestOptions.Data = updateProfile; + + localVarRequestOptions.Operation = "TribufuGeneratedApi.UpdateUserProfileV1"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PutAsync("/v1/users/{id}/profile", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateUserProfileV1", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + } +} diff --git a/src/Tribufu.Generated/Client/ApiClient.cs b/src/Tribufu/Client/ApiClient.cs similarity index 99% rename from src/Tribufu.Generated/Client/ApiClient.cs rename to src/Tribufu/Client/ApiClient.cs index d24469d..46fc23e 100644 --- a/src/Tribufu.Generated/Client/ApiClient.cs +++ b/src/Tribufu/Client/ApiClient.cs @@ -1,9 +1,9 @@ /* * Tribufu API * - * REST API to access Tribufu services. + * API to access Tribufu services. * - * The version of the OpenAPI document: 1.1.0 + * The version of the OpenAPI document: 1.2.6 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -30,9 +30,9 @@ using RestSharp.Serializers; using RestSharpMethod = RestSharp.Method; using FileIO = System.IO.File; using Polly; -using Tribufu.Generated.Model; +using Tribufu.Model; -namespace Tribufu.Generated.Client +namespace Tribufu.Client { /// /// Allows RestSharp to Serialize/Deserialize JSON using our custom logic, but only when ContentType is JSON. diff --git a/src/Tribufu.Generated/Client/ApiException.cs b/src/Tribufu/Client/ApiException.cs similarity index 94% rename from src/Tribufu.Generated/Client/ApiException.cs rename to src/Tribufu/Client/ApiException.cs index 3962857..6c05a2b 100644 --- a/src/Tribufu.Generated/Client/ApiException.cs +++ b/src/Tribufu/Client/ApiException.cs @@ -1,9 +1,9 @@ /* * Tribufu API * - * REST API to access Tribufu services. + * API to access Tribufu services. * - * The version of the OpenAPI document: 1.1.0 + * The version of the OpenAPI document: 1.2.6 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -11,7 +11,7 @@ using System; -namespace Tribufu.Generated.Client +namespace Tribufu.Client { /// /// API Exception diff --git a/src/Tribufu.Generated/Client/ApiResponse.cs b/src/Tribufu/Client/ApiResponse.cs similarity index 97% rename from src/Tribufu.Generated/Client/ApiResponse.cs rename to src/Tribufu/Client/ApiResponse.cs index 8a8a71a..8fbc838 100644 --- a/src/Tribufu.Generated/Client/ApiResponse.cs +++ b/src/Tribufu/Client/ApiResponse.cs @@ -1,9 +1,9 @@ /* * Tribufu API * - * REST API to access Tribufu services. + * API to access Tribufu services. * - * The version of the OpenAPI document: 1.1.0 + * The version of the OpenAPI document: 1.2.6 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -13,7 +13,7 @@ using System; using System.Collections.Generic; using System.Net; -namespace Tribufu.Generated.Client +namespace Tribufu.Client { /// /// Provides a non-generic contract for the ApiResponse wrapper. diff --git a/src/Tribufu.Generated/Client/ClientUtils.cs b/src/Tribufu/Client/ClientUtils.cs similarity index 98% rename from src/Tribufu.Generated/Client/ClientUtils.cs rename to src/Tribufu/Client/ClientUtils.cs index 674a366..d114f0b 100644 --- a/src/Tribufu.Generated/Client/ClientUtils.cs +++ b/src/Tribufu/Client/ClientUtils.cs @@ -1,9 +1,9 @@ /* * Tribufu API * - * REST API to access Tribufu services. + * API to access Tribufu services. * - * The version of the OpenAPI document: 1.1.0 + * The version of the OpenAPI document: 1.2.6 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -19,7 +19,7 @@ using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; -namespace Tribufu.Generated.Client +namespace Tribufu.Client { /// /// Utility functions providing some benefit to API client consumers. diff --git a/src/Tribufu.Generated/Client/Configuration.cs b/src/Tribufu/Client/Configuration.cs similarity index 98% rename from src/Tribufu.Generated/Client/Configuration.cs rename to src/Tribufu/Client/Configuration.cs index 0339d4d..50014fc 100644 --- a/src/Tribufu.Generated/Client/Configuration.cs +++ b/src/Tribufu/Client/Configuration.cs @@ -1,9 +1,9 @@ /* * Tribufu API * - * REST API to access Tribufu services. + * API to access Tribufu services. * - * The version of the OpenAPI document: 1.1.0 + * The version of the OpenAPI document: 1.2.6 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -21,7 +21,7 @@ using System.Text; using System.Net.Http; using System.Net.Security; -namespace Tribufu.Generated.Client +namespace Tribufu.Client { /// /// Represents a set of configuration settings @@ -537,10 +537,10 @@ namespace Tribufu.Generated.Client /// public static string ToDebugReport() { - string report = "C# SDK (Tribufu.Generated) Debug Report:\n"; + string report = "C# SDK (Tribufu) Debug Report:\n"; report += " OS: " + System.Environment.OSVersion + "\n"; report += " .NET Framework Version: " + System.Environment.Version + "\n"; - report += " Version of the API: 1.1.0\n"; + report += " Version of the API: 1.2.6\n"; report += " SDK Package Version: 1.0.0\n"; return report; diff --git a/src/Tribufu.Generated/Client/ExceptionFactory.cs b/src/Tribufu/Client/ExceptionFactory.cs similarity index 79% rename from src/Tribufu.Generated/Client/ExceptionFactory.cs rename to src/Tribufu/Client/ExceptionFactory.cs index 1437210..8d28cc4 100644 --- a/src/Tribufu.Generated/Client/ExceptionFactory.cs +++ b/src/Tribufu/Client/ExceptionFactory.cs @@ -1,9 +1,9 @@ /* * Tribufu API * - * REST API to access Tribufu services. + * API to access Tribufu services. * - * The version of the OpenAPI document: 1.1.0 + * The version of the OpenAPI document: 1.2.6 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -11,7 +11,7 @@ using System; -namespace Tribufu.Generated.Client +namespace Tribufu.Client { /// /// A delegate to ExceptionFactory method diff --git a/src/Tribufu.Generated/Client/GlobalConfiguration.cs b/src/Tribufu/Client/GlobalConfiguration.cs similarity index 93% rename from src/Tribufu.Generated/Client/GlobalConfiguration.cs rename to src/Tribufu/Client/GlobalConfiguration.cs index 3be8ef2..7641592 100644 --- a/src/Tribufu.Generated/Client/GlobalConfiguration.cs +++ b/src/Tribufu/Client/GlobalConfiguration.cs @@ -1,9 +1,9 @@ /* * Tribufu API * - * REST API to access Tribufu services. + * API to access Tribufu services. * - * The version of the OpenAPI document: 1.1.0 + * The version of the OpenAPI document: 1.2.6 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -11,7 +11,7 @@ using System.Collections.Generic; -namespace Tribufu.Generated.Client +namespace Tribufu.Client { /// /// provides a compile-time extension point for globally configuring diff --git a/src/Tribufu.Generated/Client/HttpMethod.cs b/src/Tribufu/Client/HttpMethod.cs similarity index 85% rename from src/Tribufu.Generated/Client/HttpMethod.cs rename to src/Tribufu/Client/HttpMethod.cs index bead31f..4c35694 100644 --- a/src/Tribufu.Generated/Client/HttpMethod.cs +++ b/src/Tribufu/Client/HttpMethod.cs @@ -1,15 +1,15 @@ /* * Tribufu API * - * REST API to access Tribufu services. + * API to access Tribufu services. * - * The version of the OpenAPI document: 1.1.0 + * The version of the OpenAPI document: 1.2.6 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ -namespace Tribufu.Generated.Client +namespace Tribufu.Client { /// /// Http methods supported by swagger diff --git a/src/Tribufu.Generated/Client/IApiAccessor.cs b/src/Tribufu/Client/IApiAccessor.cs similarity index 87% rename from src/Tribufu.Generated/Client/IApiAccessor.cs rename to src/Tribufu/Client/IApiAccessor.cs index 98b6309..00989a5 100644 --- a/src/Tribufu.Generated/Client/IApiAccessor.cs +++ b/src/Tribufu/Client/IApiAccessor.cs @@ -1,9 +1,9 @@ /* * Tribufu API * - * REST API to access Tribufu services. + * API to access Tribufu services. * - * The version of the OpenAPI document: 1.1.0 + * The version of the OpenAPI document: 1.2.6 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -11,7 +11,7 @@ using System; -namespace Tribufu.Generated.Client +namespace Tribufu.Client { /// /// Represents configuration aspects required to interact with the API endpoints. diff --git a/src/Tribufu.Generated/Client/IAsynchronousClient.cs b/src/Tribufu/Client/IAsynchronousClient.cs similarity index 98% rename from src/Tribufu.Generated/Client/IAsynchronousClient.cs rename to src/Tribufu/Client/IAsynchronousClient.cs index b8dbb82..23d76de 100644 --- a/src/Tribufu.Generated/Client/IAsynchronousClient.cs +++ b/src/Tribufu/Client/IAsynchronousClient.cs @@ -1,9 +1,9 @@ /* * Tribufu API * - * REST API to access Tribufu services. + * API to access Tribufu services. * - * The version of the OpenAPI document: 1.1.0 + * The version of the OpenAPI document: 1.2.6 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -12,7 +12,7 @@ using System; using System.Threading.Tasks; -namespace Tribufu.Generated.Client +namespace Tribufu.Client { /// /// Contract for Asynchronous RESTful API interactions. diff --git a/src/Tribufu.Generated/Client/IReadableConfiguration.cs b/src/Tribufu/Client/IReadableConfiguration.cs similarity index 97% rename from src/Tribufu.Generated/Client/IReadableConfiguration.cs rename to src/Tribufu/Client/IReadableConfiguration.cs index 82bfda4..892dbe4 100644 --- a/src/Tribufu.Generated/Client/IReadableConfiguration.cs +++ b/src/Tribufu/Client/IReadableConfiguration.cs @@ -1,9 +1,9 @@ /* * Tribufu API * - * REST API to access Tribufu services. + * API to access Tribufu services. * - * The version of the OpenAPI document: 1.1.0 + * The version of the OpenAPI document: 1.2.6 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -15,7 +15,7 @@ using System.Net; using System.Net.Security; using System.Security.Cryptography.X509Certificates; -namespace Tribufu.Generated.Client +namespace Tribufu.Client { /// /// Represents a readable-only configuration contract. diff --git a/src/Tribufu.Generated/Client/ISynchronousClient.cs b/src/Tribufu/Client/ISynchronousClient.cs similarity index 97% rename from src/Tribufu.Generated/Client/ISynchronousClient.cs rename to src/Tribufu/Client/ISynchronousClient.cs index 6a607c2..d4618ad 100644 --- a/src/Tribufu.Generated/Client/ISynchronousClient.cs +++ b/src/Tribufu/Client/ISynchronousClient.cs @@ -1,9 +1,9 @@ /* * Tribufu API * - * REST API to access Tribufu services. + * API to access Tribufu services. * - * The version of the OpenAPI document: 1.1.0 + * The version of the OpenAPI document: 1.2.6 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -12,7 +12,7 @@ using System; using System.IO; -namespace Tribufu.Generated.Client +namespace Tribufu.Client { /// /// Contract for Synchronous RESTful API interactions. diff --git a/src/Tribufu.Generated/Client/Multimap.cs b/src/Tribufu/Client/Multimap.cs similarity index 98% rename from src/Tribufu.Generated/Client/Multimap.cs rename to src/Tribufu/Client/Multimap.cs index 69f31e6..d56da96 100644 --- a/src/Tribufu.Generated/Client/Multimap.cs +++ b/src/Tribufu/Client/Multimap.cs @@ -1,9 +1,9 @@ /* * Tribufu API * - * REST API to access Tribufu services. + * API to access Tribufu services. * - * The version of the OpenAPI document: 1.1.0 + * The version of the OpenAPI document: 1.2.6 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -13,7 +13,7 @@ using System; using System.Collections; using System.Collections.Generic; -namespace Tribufu.Generated.Client +namespace Tribufu.Client { /// /// A dictionary in which one key has many associated values. diff --git a/src/Tribufu.Generated/Client/OpenAPIDateConverter.cs b/src/Tribufu/Client/OpenAPIDateConverter.cs similarity index 86% rename from src/Tribufu.Generated/Client/OpenAPIDateConverter.cs rename to src/Tribufu/Client/OpenAPIDateConverter.cs index 65f2ce5..8caf5d9 100644 --- a/src/Tribufu.Generated/Client/OpenAPIDateConverter.cs +++ b/src/Tribufu/Client/OpenAPIDateConverter.cs @@ -1,16 +1,16 @@ /* * Tribufu API * - * REST API to access Tribufu services. + * API to access Tribufu services. * - * The version of the OpenAPI document: 1.1.0 + * The version of the OpenAPI document: 1.2.6 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ using Newtonsoft.Json.Converters; -namespace Tribufu.Generated.Client +namespace Tribufu.Client { /// /// Formatter for 'date' openapi formats ss defined by full-date - RFC3339 diff --git a/src/Tribufu.Generated/Client/RequestOptions.cs b/src/Tribufu/Client/RequestOptions.cs similarity index 95% rename from src/Tribufu.Generated/Client/RequestOptions.cs rename to src/Tribufu/Client/RequestOptions.cs index d23f0fe..567d320 100644 --- a/src/Tribufu.Generated/Client/RequestOptions.cs +++ b/src/Tribufu/Client/RequestOptions.cs @@ -1,9 +1,9 @@ /* * Tribufu API * - * REST API to access Tribufu services. + * API to access Tribufu services. * - * The version of the OpenAPI document: 1.1.0 + * The version of the OpenAPI document: 1.2.6 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -14,7 +14,7 @@ using System.Collections.Generic; using System.IO; using System.Net; -namespace Tribufu.Generated.Client +namespace Tribufu.Client { /// /// A container for generalized request inputs. This type allows consumers to extend the request functionality diff --git a/src/Tribufu.Generated/Client/RetryConfiguration.cs b/src/Tribufu/Client/RetryConfiguration.cs similarity index 84% rename from src/Tribufu.Generated/Client/RetryConfiguration.cs rename to src/Tribufu/Client/RetryConfiguration.cs index 1b53371..151393a 100644 --- a/src/Tribufu.Generated/Client/RetryConfiguration.cs +++ b/src/Tribufu/Client/RetryConfiguration.cs @@ -1,9 +1,9 @@ /* * Tribufu API * - * REST API to access Tribufu services. + * API to access Tribufu services. * - * The version of the OpenAPI document: 1.1.0 + * The version of the OpenAPI document: 1.2.6 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -12,7 +12,7 @@ using Polly; using RestSharp; -namespace Tribufu.Generated.Client +namespace Tribufu.Client { /// /// Configuration class to set the polly retry policies to be applied to the requests. diff --git a/src/Tribufu.Generated/Model/AbstractOpenAPISchema.cs b/src/Tribufu/Model/AbstractOpenAPISchema.cs similarity index 95% rename from src/Tribufu.Generated/Model/AbstractOpenAPISchema.cs rename to src/Tribufu/Model/AbstractOpenAPISchema.cs index 730a611..a45aa18 100644 --- a/src/Tribufu.Generated/Model/AbstractOpenAPISchema.cs +++ b/src/Tribufu/Model/AbstractOpenAPISchema.cs @@ -1,9 +1,9 @@ /* * Tribufu API * - * REST API to access Tribufu services. + * API to access Tribufu services. * - * The version of the OpenAPI document: 1.1.0 + * The version of the OpenAPI document: 1.2.6 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -13,7 +13,7 @@ using System; using Newtonsoft.Json; using Newtonsoft.Json.Serialization; -namespace Tribufu.Generated.Model +namespace Tribufu.Model { /// /// Abstract base class for oneOf, anyOf schemas in the OpenAPI specification diff --git a/src/Tribufu.Generated/Model/Account.cs b/src/Tribufu/Model/Account.cs similarity index 79% rename from src/Tribufu.Generated/Model/Account.cs rename to src/Tribufu/Model/Account.cs index 21abd08..6ac1a13 100644 --- a/src/Tribufu.Generated/Model/Account.cs +++ b/src/Tribufu/Model/Account.cs @@ -1,9 +1,9 @@ /* * Tribufu API * - * REST API to access Tribufu services. + * API to access Tribufu services. * - * The version of the OpenAPI document: 1.1.0 + * The version of the OpenAPI document: 1.2.6 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -22,9 +22,9 @@ using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; using System.ComponentModel.DataAnnotations; -using OpenAPIDateConverter = Tribufu.Generated.Client.OpenAPIDateConverter; +using OpenAPIDateConverter = Tribufu.Client.OpenAPIDateConverter; -namespace Tribufu.Generated.Model +namespace Tribufu.Model { /// /// Account @@ -36,24 +36,34 @@ namespace Tribufu.Generated.Model /// /// Gets or Sets Provider /// - [DataMember(Name = "provider", EmitDefaultValue = false)] - public LoginProvider? Provider { get; set; } + [DataMember(Name = "provider", IsRequired = true, EmitDefaultValue = true)] + public LoginProvider Provider { get; set; } /// /// Initializes a new instance of the class. /// - /// id. + [JsonConstructorAttribute] + protected Account() { } + /// + /// Initializes a new instance of the class. + /// + /// id (required). /// name. - /// provider. + /// provider (required). /// userId. /// authorized. /// fields. /// created. /// updated. - public Account(string id = default(string), string name = default(string), LoginProvider? provider = default(LoginProvider?), string userId = default(string), bool authorized = default(bool), Object fields = default(Object), DateTime created = default(DateTime), DateTime? updated = default(DateTime?)) + public Account(string id = default(string), string name = default(string), LoginProvider provider = default(LoginProvider), string userId = default(string), bool authorized = default(bool), Object fields = default(Object), DateTime created = default(DateTime), DateTime? updated = default(DateTime?)) { + // to ensure "id" is required (not null) + if (id == null) + { + throw new ArgumentNullException("id is a required property for Account and cannot be null"); + } this.Id = id; - this.Name = name; this.Provider = provider; + this.Name = name; this.UserId = userId; this.Authorized = authorized; this.Fields = fields; @@ -64,7 +74,7 @@ namespace Tribufu.Generated.Model /// /// Gets or Sets Id /// - [DataMember(Name = "id", EmitDefaultValue = true)] + [DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)] public string Id { get; set; } /// diff --git a/src/Tribufu.Generated/Model/Application.cs b/src/Tribufu/Model/Application.cs similarity index 68% rename from src/Tribufu.Generated/Model/Application.cs rename to src/Tribufu/Model/Application.cs index d5e43c4..d071767 100644 --- a/src/Tribufu.Generated/Model/Application.cs +++ b/src/Tribufu/Model/Application.cs @@ -1,9 +1,9 @@ /* * Tribufu API * - * REST API to access Tribufu services. + * API to access Tribufu services. * - * The version of the OpenAPI document: 1.1.0 + * The version of the OpenAPI document: 1.2.6 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -22,9 +22,9 @@ using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; using System.ComponentModel.DataAnnotations; -using OpenAPIDateConverter = Tribufu.Generated.Client.OpenAPIDateConverter; +using OpenAPIDateConverter = Tribufu.Client.OpenAPIDateConverter; -namespace Tribufu.Generated.Model +namespace Tribufu.Model { /// /// Application @@ -41,8 +41,13 @@ namespace Tribufu.Generated.Model /// /// Initializes a new instance of the class. /// + [JsonConstructorAttribute] + protected Application() { } + /// + /// Initializes a new instance of the class. + /// /// id. - /// name. + /// name (required). /// description. /// type. /// organizationId. @@ -50,21 +55,18 @@ namespace Tribufu.Generated.Model /// bannerUrl. /// capsuleImageUrl. /// libraryImageUrl. - /// parentId. /// slug. - /// visibility. - /// password. - /// primary. - /// userCount. - /// achievementCount. - /// badgeCount. - /// downloadCount. /// created. /// updated. - public Application(string id = default(string), string name = default(string), string description = default(string), ApplicationType? type = default(ApplicationType?), string organizationId = default(string), string iconUrl = default(string), string bannerUrl = default(string), string capsuleImageUrl = default(string), string libraryImageUrl = default(string), string parentId = default(string), string slug = default(string), int visibility = default(int), string password = default(string), int primary = default(int), int userCount = default(int), int achievementCount = default(int), int? badgeCount = default(int?), int downloadCount = default(int), DateTime created = default(DateTime), DateTime? updated = default(DateTime?)) + public Application(string id = default(string), string name = default(string), string description = default(string), ApplicationType? type = default(ApplicationType?), string organizationId = default(string), string iconUrl = default(string), string bannerUrl = default(string), string capsuleImageUrl = default(string), string libraryImageUrl = default(string), string slug = default(string), DateTime created = default(DateTime), DateTime? updated = default(DateTime?)) { - this.Id = id; + // to ensure "name" is required (not null) + if (name == null) + { + throw new ArgumentNullException("name is a required property for Application and cannot be null"); + } this.Name = name; + this.Id = id; this.Description = description; this.Type = type; this.OrganizationId = organizationId; @@ -72,15 +74,7 @@ namespace Tribufu.Generated.Model this.BannerUrl = bannerUrl; this.CapsuleImageUrl = capsuleImageUrl; this.LibraryImageUrl = libraryImageUrl; - this.ParentId = parentId; this.Slug = slug; - this.Visibility = visibility; - this.Password = password; - this.Primary = primary; - this.UserCount = userCount; - this.AchievementCount = achievementCount; - this.BadgeCount = badgeCount; - this.DownloadCount = downloadCount; this.Created = created; this.Updated = updated; } @@ -94,7 +88,7 @@ namespace Tribufu.Generated.Model /// /// Gets or Sets Name /// - [DataMember(Name = "name", EmitDefaultValue = true)] + [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] public string Name { get; set; } /// @@ -133,60 +127,12 @@ namespace Tribufu.Generated.Model [DataMember(Name = "library_image_url", EmitDefaultValue = true)] public string LibraryImageUrl { get; set; } - /// - /// Gets or Sets ParentId - /// - [DataMember(Name = "parent_id", EmitDefaultValue = true)] - public string ParentId { get; set; } - /// /// Gets or Sets Slug /// [DataMember(Name = "slug", EmitDefaultValue = true)] public string Slug { get; set; } - /// - /// Gets or Sets Visibility - /// - [DataMember(Name = "visibility", EmitDefaultValue = false)] - public int Visibility { get; set; } - - /// - /// Gets or Sets Password - /// - [DataMember(Name = "password", EmitDefaultValue = true)] - public string Password { get; set; } - - /// - /// Gets or Sets Primary - /// - [DataMember(Name = "primary", EmitDefaultValue = false)] - public int Primary { get; set; } - - /// - /// Gets or Sets UserCount - /// - [DataMember(Name = "user_count", EmitDefaultValue = false)] - public int UserCount { get; set; } - - /// - /// Gets or Sets AchievementCount - /// - [DataMember(Name = "achievement_count", EmitDefaultValue = false)] - public int AchievementCount { get; set; } - - /// - /// Gets or Sets BadgeCount - /// - [DataMember(Name = "badge_count", EmitDefaultValue = true)] - public int? BadgeCount { get; set; } - - /// - /// Gets or Sets DownloadCount - /// - [DataMember(Name = "download_count", EmitDefaultValue = false)] - public int DownloadCount { get; set; } - /// /// Gets or Sets Created /// @@ -216,15 +162,7 @@ namespace Tribufu.Generated.Model sb.Append(" BannerUrl: ").Append(BannerUrl).Append("\n"); sb.Append(" CapsuleImageUrl: ").Append(CapsuleImageUrl).Append("\n"); sb.Append(" LibraryImageUrl: ").Append(LibraryImageUrl).Append("\n"); - sb.Append(" ParentId: ").Append(ParentId).Append("\n"); sb.Append(" Slug: ").Append(Slug).Append("\n"); - sb.Append(" Visibility: ").Append(Visibility).Append("\n"); - sb.Append(" Password: ").Append(Password).Append("\n"); - sb.Append(" Primary: ").Append(Primary).Append("\n"); - sb.Append(" UserCount: ").Append(UserCount).Append("\n"); - sb.Append(" AchievementCount: ").Append(AchievementCount).Append("\n"); - sb.Append(" BadgeCount: ").Append(BadgeCount).Append("\n"); - sb.Append(" DownloadCount: ").Append(DownloadCount).Append("\n"); sb.Append(" Created: ").Append(Created).Append("\n"); sb.Append(" Updated: ").Append(Updated).Append("\n"); sb.Append("}\n"); @@ -277,6 +215,12 @@ namespace Tribufu.Generated.Model yield return new ValidationResult("Invalid value for LibraryImageUrl, length must be less than 255.", new [] { "LibraryImageUrl" }); } + // Slug (string) maxLength + if (this.Slug != null && this.Slug.Length > 75) + { + yield return new ValidationResult("Invalid value for Slug, length must be less than 75.", new [] { "Slug" }); + } + yield break; } } diff --git a/src/Tribufu.Generated/Model/ApplicationType.cs b/src/Tribufu/Model/ApplicationType.cs similarity index 83% rename from src/Tribufu.Generated/Model/ApplicationType.cs rename to src/Tribufu/Model/ApplicationType.cs index 4b4ee6b..6196ccd 100644 --- a/src/Tribufu.Generated/Model/ApplicationType.cs +++ b/src/Tribufu/Model/ApplicationType.cs @@ -1,9 +1,9 @@ /* * Tribufu API * - * REST API to access Tribufu services. + * API to access Tribufu services. * - * The version of the OpenAPI document: 1.1.0 + * The version of the OpenAPI document: 1.2.6 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -22,9 +22,9 @@ using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; using System.ComponentModel.DataAnnotations; -using OpenAPIDateConverter = Tribufu.Generated.Client.OpenAPIDateConverter; +using OpenAPIDateConverter = Tribufu.Client.OpenAPIDateConverter; -namespace Tribufu.Generated.Model +namespace Tribufu.Model { /// /// Defines ApplicationType diff --git a/src/Tribufu.Generated/Model/AuthorizeRequest.cs b/src/Tribufu/Model/AuthorizeRequest.cs similarity index 79% rename from src/Tribufu.Generated/Model/AuthorizeRequest.cs rename to src/Tribufu/Model/AuthorizeRequest.cs index 705b07a..c06ebf3 100644 --- a/src/Tribufu.Generated/Model/AuthorizeRequest.cs +++ b/src/Tribufu/Model/AuthorizeRequest.cs @@ -1,9 +1,9 @@ /* * Tribufu API * - * REST API to access Tribufu services. + * API to access Tribufu services. * - * The version of the OpenAPI document: 1.1.0 + * The version of the OpenAPI document: 1.2.6 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -22,9 +22,9 @@ using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; using System.ComponentModel.DataAnnotations; -using OpenAPIDateConverter = Tribufu.Generated.Client.OpenAPIDateConverter; +using OpenAPIDateConverter = Tribufu.Client.OpenAPIDateConverter; -namespace Tribufu.Generated.Model +namespace Tribufu.Model { /// /// AuthorizeRequest @@ -47,20 +47,35 @@ namespace Tribufu.Generated.Model /// /// Initializes a new instance of the class. /// + [JsonConstructorAttribute] + protected AuthorizeRequest() { } + /// + /// Initializes a new instance of the class. + /// /// responseType. - /// clientId. + /// clientId (required). /// codeChallenge. /// codeChallengeMethod. - /// redirectUri. + /// redirectUri (required). /// scope. /// state. public AuthorizeRequest(ResponseType? responseType = default(ResponseType?), string clientId = default(string), string codeChallenge = default(string), CodeChallengeMethod? codeChallengeMethod = default(CodeChallengeMethod?), string redirectUri = default(string), string scope = default(string), string state = default(string)) { - this.ResponseType = responseType; + // to ensure "clientId" is required (not null) + if (clientId == null) + { + throw new ArgumentNullException("clientId is a required property for AuthorizeRequest and cannot be null"); + } this.ClientId = clientId; + // to ensure "redirectUri" is required (not null) + if (redirectUri == null) + { + throw new ArgumentNullException("redirectUri is a required property for AuthorizeRequest and cannot be null"); + } + this.RedirectUri = redirectUri; + this.ResponseType = responseType; this.CodeChallenge = codeChallenge; this.CodeChallengeMethod = codeChallengeMethod; - this.RedirectUri = redirectUri; this.Scope = scope; this.State = state; } @@ -68,7 +83,7 @@ namespace Tribufu.Generated.Model /// /// Gets or Sets ClientId /// - [DataMember(Name = "client_id", EmitDefaultValue = true)] + [DataMember(Name = "client_id", IsRequired = true, EmitDefaultValue = true)] public string ClientId { get; set; } /// @@ -80,7 +95,7 @@ namespace Tribufu.Generated.Model /// /// Gets or Sets RedirectUri /// - [DataMember(Name = "redirect_uri", EmitDefaultValue = true)] + [DataMember(Name = "redirect_uri", IsRequired = true, EmitDefaultValue = true)] public string RedirectUri { get; set; } /// diff --git a/src/Tribufu/Model/ClientInfo.cs b/src/Tribufu/Model/ClientInfo.cs new file mode 100644 index 0000000..edfd090 --- /dev/null +++ b/src/Tribufu/Model/ClientInfo.cs @@ -0,0 +1,129 @@ +/* + * Tribufu API + * + * API to access Tribufu services. + * + * The version of the OpenAPI document: 1.2.6 + * Contact: contact@tribufu.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = Tribufu.Client.OpenAPIDateConverter; + +namespace Tribufu.Model +{ + /// + /// ClientInfo + /// + [DataContract(Name = "ClientInfo")] + public partial class ClientInfo : IValidatableObject + { + + /// + /// Gets or Sets Type + /// + [DataMember(Name = "type", EmitDefaultValue = false)] + public ClientType? Type { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected ClientInfo() { } + /// + /// Initializes a new instance of the class. + /// + /// id. + /// name (required). + /// type. + /// photoUrl. + /// permissions. + public ClientInfo(string id = default(string), string name = default(string), ClientType? type = default(ClientType?), string photoUrl = default(string), List permissions = default(List)) + { + // to ensure "name" is required (not null) + if (name == null) + { + throw new ArgumentNullException("name is a required property for ClientInfo and cannot be null"); + } + this.Name = name; + this.Id = id; + this.Type = type; + this.PhotoUrl = photoUrl; + this.Permissions = permissions; + } + + /// + /// Gets or Sets Id + /// + [DataMember(Name = "id", EmitDefaultValue = false)] + public string Id { get; set; } + + /// + /// Gets or Sets Name + /// + [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] + public string Name { get; set; } + + /// + /// Gets or Sets PhotoUrl + /// + [DataMember(Name = "photo_url", EmitDefaultValue = true)] + public string PhotoUrl { get; set; } + + /// + /// Gets or Sets Permissions + /// + [DataMember(Name = "permissions", EmitDefaultValue = true)] + public List Permissions { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class ClientInfo {\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append(" PhotoUrl: ").Append(PhotoUrl).Append("\n"); + sb.Append(" Permissions: ").Append(Permissions).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/Tribufu/Model/ClientType.cs b/src/Tribufu/Model/ClientType.cs new file mode 100644 index 0000000..c6d9c41 --- /dev/null +++ b/src/Tribufu/Model/ClientType.cs @@ -0,0 +1,54 @@ +/* + * Tribufu API + * + * API to access Tribufu services. + * + * The version of the OpenAPI document: 1.2.6 + * Contact: contact@tribufu.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = Tribufu.Client.OpenAPIDateConverter; + +namespace Tribufu.Model +{ + /// + /// Defines ClientType + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum ClientType + { + /// + /// Enum Web for value: web + /// + [EnumMember(Value = "web")] + Web, + + /// + /// Enum Desktop for value: desktop + /// + [EnumMember(Value = "desktop")] + Desktop, + + /// + /// Enum Mobile for value: mobile + /// + [EnumMember(Value = "mobile")] + Mobile + } + +} diff --git a/src/Tribufu.Generated/Model/CodeChallengeMethod.cs b/src/Tribufu/Model/CodeChallengeMethod.cs similarity index 82% rename from src/Tribufu.Generated/Model/CodeChallengeMethod.cs rename to src/Tribufu/Model/CodeChallengeMethod.cs index 37c2476..d74091e 100644 --- a/src/Tribufu.Generated/Model/CodeChallengeMethod.cs +++ b/src/Tribufu/Model/CodeChallengeMethod.cs @@ -1,9 +1,9 @@ /* * Tribufu API * - * REST API to access Tribufu services. + * API to access Tribufu services. * - * The version of the OpenAPI document: 1.1.0 + * The version of the OpenAPI document: 1.2.6 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -22,9 +22,9 @@ using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; using System.ComponentModel.DataAnnotations; -using OpenAPIDateConverter = Tribufu.Generated.Client.OpenAPIDateConverter; +using OpenAPIDateConverter = Tribufu.Client.OpenAPIDateConverter; -namespace Tribufu.Generated.Model +namespace Tribufu.Model { /// /// Defines CodeChallengeMethod diff --git a/src/Tribufu.Generated/Model/LoginRequest.cs b/src/Tribufu/Model/CodeResponse.cs similarity index 53% rename from src/Tribufu.Generated/Model/LoginRequest.cs rename to src/Tribufu/Model/CodeResponse.cs index a464ac3..3f1a4e3 100644 --- a/src/Tribufu.Generated/Model/LoginRequest.cs +++ b/src/Tribufu/Model/CodeResponse.cs @@ -1,9 +1,9 @@ /* * Tribufu API * - * REST API to access Tribufu services. + * API to access Tribufu services. * - * The version of the OpenAPI document: 1.1.0 + * The version of the OpenAPI document: 1.2.6 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -22,38 +22,48 @@ using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; using System.ComponentModel.DataAnnotations; -using OpenAPIDateConverter = Tribufu.Generated.Client.OpenAPIDateConverter; +using OpenAPIDateConverter = Tribufu.Client.OpenAPIDateConverter; -namespace Tribufu.Generated.Model +namespace Tribufu.Model { /// - /// LoginRequest + /// CodeResponse /// - [DataContract(Name = "LoginRequest")] - public partial class LoginRequest : IValidatableObject + [DataContract(Name = "CodeResponse")] + public partial class CodeResponse : IValidatableObject { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - /// login. - /// password. - public LoginRequest(string login = default(string), string password = default(string)) + [JsonConstructorAttribute] + protected CodeResponse() { } + /// + /// Initializes a new instance of the class. + /// + /// code (required). + /// state. + public CodeResponse(string code = default(string), string state = default(string)) { - this.Login = login; - this.Password = password; + // to ensure "code" is required (not null) + if (code == null) + { + throw new ArgumentNullException("code is a required property for CodeResponse and cannot be null"); + } + this.Code = code; + this.State = state; } /// - /// Gets or Sets Login + /// Gets or Sets Code /// - [DataMember(Name = "login", EmitDefaultValue = true)] - public string Login { get; set; } + [DataMember(Name = "code", IsRequired = true, EmitDefaultValue = true)] + public string Code { get; set; } /// - /// Gets or Sets Password + /// Gets or Sets State /// - [DataMember(Name = "password", EmitDefaultValue = true)] - public string Password { get; set; } + [DataMember(Name = "state", EmitDefaultValue = true)] + public string State { get; set; } /// /// Returns the string presentation of the object @@ -62,9 +72,9 @@ namespace Tribufu.Generated.Model public override string ToString() { StringBuilder sb = new StringBuilder(); - sb.Append("class LoginRequest {\n"); - sb.Append(" Login: ").Append(Login).Append("\n"); - sb.Append(" Password: ").Append(Password).Append("\n"); + sb.Append("class CodeResponse {\n"); + sb.Append(" Code: ").Append(Code).Append("\n"); + sb.Append(" State: ").Append(State).Append("\n"); sb.Append("}\n"); return sb.ToString(); } diff --git a/src/Tribufu.Generated/Model/RegisterRequest.cs b/src/Tribufu/Model/CreateUser.cs similarity index 50% rename from src/Tribufu.Generated/Model/RegisterRequest.cs rename to src/Tribufu/Model/CreateUser.cs index 14d095d..5fc723a 100644 --- a/src/Tribufu.Generated/Model/RegisterRequest.cs +++ b/src/Tribufu/Model/CreateUser.cs @@ -1,9 +1,9 @@ /* * Tribufu API * - * REST API to access Tribufu services. + * API to access Tribufu services. * - * The version of the OpenAPI document: 1.1.0 + * The version of the OpenAPI document: 1.2.6 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -22,44 +22,49 @@ using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; using System.ComponentModel.DataAnnotations; -using OpenAPIDateConverter = Tribufu.Generated.Client.OpenAPIDateConverter; +using OpenAPIDateConverter = Tribufu.Client.OpenAPIDateConverter; -namespace Tribufu.Generated.Model +namespace Tribufu.Model { /// - /// RegisterRequest + /// CreateUser /// - [DataContract(Name = "RegisterRequest")] - public partial class RegisterRequest : IValidatableObject + [DataContract(Name = "CreateUser")] + public partial class CreateUser : IValidatableObject { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// [JsonConstructorAttribute] - protected RegisterRequest() { } + protected CreateUser() { } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// uuid. /// name (required). + /// displayName. /// email. - /// password (required). - public RegisterRequest(Guid? uuid = default(Guid?), string name = default(string), string email = default(string), string password = default(string)) + /// password. + /// language. + /// timezone. + /// currency. + /// ipAddress. + public CreateUser(Guid? uuid = default(Guid?), string name = default(string), string displayName = default(string), string email = default(string), string password = default(string), string language = default(string), string timezone = default(string), string currency = default(string), string ipAddress = default(string)) { // to ensure "name" is required (not null) if (name == null) { - throw new ArgumentNullException("name is a required property for RegisterRequest and cannot be null"); + throw new ArgumentNullException("name is a required property for CreateUser and cannot be null"); } this.Name = name; - // to ensure "password" is required (not null) - if (password == null) - { - throw new ArgumentNullException("password is a required property for RegisterRequest and cannot be null"); - } - this.Password = password; this.Uuid = uuid; + this.DisplayName = displayName; this.Email = email; + this.Password = password; + this.Language = language; + this.Timezone = timezone; + this.Currency = currency; + this.IpAddress = ipAddress; } /// @@ -74,6 +79,12 @@ namespace Tribufu.Generated.Model [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] public string Name { get; set; } + /// + /// Gets or Sets DisplayName + /// + [DataMember(Name = "display_name", EmitDefaultValue = true)] + public string DisplayName { get; set; } + /// /// Gets or Sets Email /// @@ -83,9 +94,33 @@ namespace Tribufu.Generated.Model /// /// Gets or Sets Password /// - [DataMember(Name = "password", IsRequired = true, EmitDefaultValue = true)] + [DataMember(Name = "password", EmitDefaultValue = true)] public string Password { get; set; } + /// + /// Gets or Sets Language + /// + [DataMember(Name = "language", EmitDefaultValue = true)] + public string Language { get; set; } + + /// + /// Gets or Sets Timezone + /// + [DataMember(Name = "timezone", EmitDefaultValue = true)] + public string Timezone { get; set; } + + /// + /// Gets or Sets Currency + /// + [DataMember(Name = "currency", EmitDefaultValue = true)] + public string Currency { get; set; } + + /// + /// Gets or Sets IpAddress + /// + [DataMember(Name = "ip_address", EmitDefaultValue = true)] + public string IpAddress { get; set; } + /// /// Returns the string presentation of the object /// @@ -93,11 +128,16 @@ namespace Tribufu.Generated.Model public override string ToString() { StringBuilder sb = new StringBuilder(); - sb.Append("class RegisterRequest {\n"); + sb.Append("class CreateUser {\n"); sb.Append(" Uuid: ").Append(Uuid).Append("\n"); sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" DisplayName: ").Append(DisplayName).Append("\n"); sb.Append(" Email: ").Append(Email).Append("\n"); sb.Append(" Password: ").Append(Password).Append("\n"); + sb.Append(" Language: ").Append(Language).Append("\n"); + sb.Append(" Timezone: ").Append(Timezone).Append("\n"); + sb.Append(" Currency: ").Append(Currency).Append("\n"); + sb.Append(" IpAddress: ").Append(IpAddress).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -125,9 +165,9 @@ namespace Tribufu.Generated.Model } // Name (string) minLength - if (this.Name != null && this.Name.Length < 3) + if (this.Name != null && this.Name.Length < 1) { - yield return new ValidationResult("Invalid value for Name, length must be greater than 3.", new [] { "Name" }); + yield return new ValidationResult("Invalid value for Name, length must be greater than 1.", new [] { "Name" }); } if (this.Name != null) { @@ -139,25 +179,43 @@ namespace Tribufu.Generated.Model } } + // DisplayName (string) maxLength + if (this.DisplayName != null && this.DisplayName.Length > 45) + { + yield return new ValidationResult("Invalid value for DisplayName, length must be less than 45.", new [] { "DisplayName" }); + } + + if (this.DisplayName != null) { + // DisplayName (string) pattern + Regex regexDisplayName = new Regex(@"^[a-zA-Z0-9-_ ]*$", RegexOptions.CultureInvariant); + if (!regexDisplayName.Match(this.DisplayName).Success) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for DisplayName, must match a pattern of " + regexDisplayName, new [] { "DisplayName" }); + } + } + // Email (string) maxLength if (this.Email != null && this.Email.Length > 255) { yield return new ValidationResult("Invalid value for Email, length must be less than 255.", new [] { "Email" }); } - if (this.Email != null) { - // Email (string) pattern - Regex regexEmail = new Regex(@"^[\w-\.]+@([\w-]+\.)+[\w-]{2,4}$", RegexOptions.CultureInvariant); - if (!regexEmail.Match(this.Email).Success) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Email, must match a pattern of " + regexEmail, new [] { "Email" }); - } + // Language (string) maxLength + if (this.Language != null && this.Language.Length > 5) + { + yield return new ValidationResult("Invalid value for Language, length must be less than 5.", new [] { "Language" }); } - // Password (string) minLength - if (this.Password != null && this.Password.Length < 1) + // Currency (string) maxLength + if (this.Currency != null && this.Currency.Length > 3) { - yield return new ValidationResult("Invalid value for Password, length must be greater than 1.", new [] { "Password" }); + yield return new ValidationResult("Invalid value for Currency, length must be less than 3.", new [] { "Currency" }); + } + + // IpAddress (string) maxLength + if (this.IpAddress != null && this.IpAddress.Length > 255) + { + yield return new ValidationResult("Invalid value for IpAddress, length must be less than 255.", new [] { "IpAddress" }); } yield break; diff --git a/src/Tribufu.Generated/Model/CryptoViewModel.cs b/src/Tribufu/Model/CryptoViewModel.cs similarity index 93% rename from src/Tribufu.Generated/Model/CryptoViewModel.cs rename to src/Tribufu/Model/CryptoViewModel.cs index dbe6d1d..72f9aaa 100644 --- a/src/Tribufu.Generated/Model/CryptoViewModel.cs +++ b/src/Tribufu/Model/CryptoViewModel.cs @@ -1,9 +1,9 @@ /* * Tribufu API * - * REST API to access Tribufu services. + * API to access Tribufu services. * - * The version of the OpenAPI document: 1.1.0 + * The version of the OpenAPI document: 1.2.6 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -22,9 +22,9 @@ using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; using System.ComponentModel.DataAnnotations; -using OpenAPIDateConverter = Tribufu.Generated.Client.OpenAPIDateConverter; +using OpenAPIDateConverter = Tribufu.Client.OpenAPIDateConverter; -namespace Tribufu.Generated.Model +namespace Tribufu.Model { /// /// CryptoViewModel diff --git a/src/Tribufu/Model/File.cs b/src/Tribufu/Model/File.cs new file mode 100644 index 0000000..d63979e --- /dev/null +++ b/src/Tribufu/Model/File.cs @@ -0,0 +1,205 @@ +/* + * Tribufu API + * + * API to access Tribufu services. + * + * The version of the OpenAPI document: 1.2.6 + * Contact: contact@tribufu.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = Tribufu.Client.OpenAPIDateConverter; + +namespace Tribufu.Model +{ + /// + /// File + /// + [DataContract(Name = "File")] + public partial class File : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected File() { } + /// + /// Initializes a new instance of the class. + /// + /// id. + /// name (required). + /// contentType (required). + /// url (required). + /// hash. + /// etag. + /// size. + /// created. + /// updated. + public File(string id = default(string), string name = default(string), string contentType = default(string), string url = default(string), string hash = default(string), string etag = default(string), long size = default(long), DateTime created = default(DateTime), DateTime? updated = default(DateTime?)) + { + // to ensure "name" is required (not null) + if (name == null) + { + throw new ArgumentNullException("name is a required property for File and cannot be null"); + } + this.Name = name; + // to ensure "contentType" is required (not null) + if (contentType == null) + { + throw new ArgumentNullException("contentType is a required property for File and cannot be null"); + } + this.ContentType = contentType; + // to ensure "url" is required (not null) + if (url == null) + { + throw new ArgumentNullException("url is a required property for File and cannot be null"); + } + this.Url = url; + this.Id = id; + this.Hash = hash; + this.Etag = etag; + this.Size = size; + this.Created = created; + this.Updated = updated; + } + + /// + /// Gets or Sets Id + /// + [DataMember(Name = "id", EmitDefaultValue = false)] + public string Id { get; set; } + + /// + /// Gets or Sets Name + /// + [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] + public string Name { get; set; } + + /// + /// Gets or Sets ContentType + /// + [DataMember(Name = "content_type", IsRequired = true, EmitDefaultValue = true)] + public string ContentType { get; set; } + + /// + /// Gets or Sets Url + /// + [DataMember(Name = "url", IsRequired = true, EmitDefaultValue = true)] + public string Url { get; set; } + + /// + /// Gets or Sets Hash + /// + [DataMember(Name = "hash", EmitDefaultValue = true)] + public string Hash { get; set; } + + /// + /// Gets or Sets Etag + /// + [DataMember(Name = "etag", EmitDefaultValue = true)] + public string Etag { get; set; } + + /// + /// Gets or Sets Size + /// + [DataMember(Name = "size", EmitDefaultValue = false)] + public long Size { get; set; } + + /// + /// Gets or Sets Created + /// + [DataMember(Name = "created", EmitDefaultValue = false)] + public DateTime Created { get; set; } + + /// + /// Gets or Sets Updated + /// + [DataMember(Name = "updated", EmitDefaultValue = true)] + public DateTime? Updated { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class File {\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" ContentType: ").Append(ContentType).Append("\n"); + sb.Append(" Url: ").Append(Url).Append("\n"); + sb.Append(" Hash: ").Append(Hash).Append("\n"); + sb.Append(" Etag: ").Append(Etag).Append("\n"); + sb.Append(" Size: ").Append(Size).Append("\n"); + sb.Append(" Created: ").Append(Created).Append("\n"); + sb.Append(" Updated: ").Append(Updated).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + // Name (string) maxLength + if (this.Name != null && this.Name.Length > 45) + { + yield return new ValidationResult("Invalid value for Name, length must be less than 45.", new [] { "Name" }); + } + + // ContentType (string) maxLength + if (this.ContentType != null && this.ContentType.Length > 45) + { + yield return new ValidationResult("Invalid value for ContentType, length must be less than 45.", new [] { "ContentType" }); + } + + // Url (string) maxLength + if (this.Url != null && this.Url.Length > 255) + { + yield return new ValidationResult("Invalid value for Url, length must be less than 255.", new [] { "Url" }); + } + + // Hash (string) maxLength + if (this.Hash != null && this.Hash.Length > 64) + { + yield return new ValidationResult("Invalid value for Hash, length must be less than 64.", new [] { "Hash" }); + } + + // Etag (string) maxLength + if (this.Etag != null && this.Etag.Length > 32) + { + yield return new ValidationResult("Invalid value for Etag, length must be less than 32.", new [] { "Etag" }); + } + + yield break; + } + } + +} diff --git a/src/Tribufu.Generated/Model/Game.cs b/src/Tribufu/Model/Game.cs similarity index 59% rename from src/Tribufu.Generated/Model/Game.cs rename to src/Tribufu/Model/Game.cs index b967c71..dabb0a1 100644 --- a/src/Tribufu.Generated/Model/Game.cs +++ b/src/Tribufu/Model/Game.cs @@ -1,9 +1,9 @@ /* * Tribufu API * - * REST API to access Tribufu services. + * API to access Tribufu services. * - * The version of the OpenAPI document: 1.1.0 + * The version of the OpenAPI document: 1.2.6 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -22,9 +22,9 @@ using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; using System.ComponentModel.DataAnnotations; -using OpenAPIDateConverter = Tribufu.Generated.Client.OpenAPIDateConverter; +using OpenAPIDateConverter = Tribufu.Client.OpenAPIDateConverter; -namespace Tribufu.Generated.Model +namespace Tribufu.Model { /// /// Game @@ -41,19 +41,13 @@ namespace Tribufu.Generated.Model /// /// Initializes a new instance of the class. /// - /// gamePort. - /// queryPort. - /// rconPort. - /// serverCount. - /// steamAppId. - /// steamServerAppId. - /// enableServers. - /// rustGamedigId. - /// nodeGamedigId. - /// serverConnectUrl. - /// serverTags. + [JsonConstructorAttribute] + protected Game() { } + /// + /// Initializes a new instance of the class. + /// /// id. - /// name. + /// name (required). /// description. /// type. /// organizationId. @@ -61,32 +55,25 @@ namespace Tribufu.Generated.Model /// bannerUrl. /// capsuleImageUrl. /// libraryImageUrl. - /// parentId. /// slug. - /// visibility. - /// password. - /// primary. - /// userCount. - /// achievementCount. - /// badgeCount. - /// downloadCount. /// created. /// updated. - public Game(int? gamePort = default(int?), int? queryPort = default(int?), int? rconPort = default(int?), int serverCount = default(int), int? steamAppId = default(int?), int? steamServerAppId = default(int?), bool enableServers = default(bool), string rustGamedigId = default(string), string nodeGamedigId = default(string), string serverConnectUrl = default(string), string serverTags = default(string), string id = default(string), string name = default(string), string description = default(string), ApplicationType? type = default(ApplicationType?), string organizationId = default(string), string iconUrl = default(string), string bannerUrl = default(string), string capsuleImageUrl = default(string), string libraryImageUrl = default(string), string parentId = default(string), string slug = default(string), int visibility = default(int), string password = default(string), int primary = default(int), int userCount = default(int), int achievementCount = default(int), int? badgeCount = default(int?), int downloadCount = default(int), DateTime created = default(DateTime), DateTime? updated = default(DateTime?)) + /// enableServers. + /// gamePort. + /// queryPort. + /// rconPort. + /// gamedigId. + /// steamAppId. + /// steamServerAppId. + public Game(string id = default(string), string name = default(string), string description = default(string), ApplicationType? type = default(ApplicationType?), string organizationId = default(string), string iconUrl = default(string), string bannerUrl = default(string), string capsuleImageUrl = default(string), string libraryImageUrl = default(string), string slug = default(string), DateTime created = default(DateTime), DateTime? updated = default(DateTime?), bool enableServers = default(bool), int? gamePort = default(int?), int? queryPort = default(int?), int? rconPort = default(int?), string gamedigId = default(string), int? steamAppId = default(int?), int? steamServerAppId = default(int?)) { - this.GamePort = gamePort; - this.QueryPort = queryPort; - this.RconPort = rconPort; - this.ServerCount = serverCount; - this.SteamAppId = steamAppId; - this.SteamServerAppId = steamServerAppId; - this.EnableServers = enableServers; - this.RustGamedigId = rustGamedigId; - this.NodeGamedigId = nodeGamedigId; - this.ServerConnectUrl = serverConnectUrl; - this.ServerTags = serverTags; - this.Id = id; + // to ensure "name" is required (not null) + if (name == null) + { + throw new ArgumentNullException("name is a required property for Game and cannot be null"); + } this.Name = name; + this.Id = id; this.Description = description; this.Type = type; this.OrganizationId = organizationId; @@ -94,85 +81,18 @@ namespace Tribufu.Generated.Model this.BannerUrl = bannerUrl; this.CapsuleImageUrl = capsuleImageUrl; this.LibraryImageUrl = libraryImageUrl; - this.ParentId = parentId; this.Slug = slug; - this.Visibility = visibility; - this.Password = password; - this.Primary = primary; - this.UserCount = userCount; - this.AchievementCount = achievementCount; - this.BadgeCount = badgeCount; - this.DownloadCount = downloadCount; this.Created = created; this.Updated = updated; + this.EnableServers = enableServers; + this.GamePort = gamePort; + this.QueryPort = queryPort; + this.RconPort = rconPort; + this.GamedigId = gamedigId; + this.SteamAppId = steamAppId; + this.SteamServerAppId = steamServerAppId; } - /// - /// Gets or Sets GamePort - /// - [DataMember(Name = "game_port", EmitDefaultValue = true)] - public int? GamePort { get; set; } - - /// - /// Gets or Sets QueryPort - /// - [DataMember(Name = "query_port", EmitDefaultValue = true)] - public int? QueryPort { get; set; } - - /// - /// Gets or Sets RconPort - /// - [DataMember(Name = "rcon_port", EmitDefaultValue = true)] - public int? RconPort { get; set; } - - /// - /// Gets or Sets ServerCount - /// - [DataMember(Name = "server_count", EmitDefaultValue = false)] - public int ServerCount { get; set; } - - /// - /// Gets or Sets SteamAppId - /// - [DataMember(Name = "steam_app_id", EmitDefaultValue = true)] - public int? SteamAppId { get; set; } - - /// - /// Gets or Sets SteamServerAppId - /// - [DataMember(Name = "steam_server_app_id", EmitDefaultValue = true)] - public int? SteamServerAppId { get; set; } - - /// - /// Gets or Sets EnableServers - /// - [DataMember(Name = "enable_servers", EmitDefaultValue = true)] - public bool EnableServers { get; set; } - - /// - /// Gets or Sets RustGamedigId - /// - [DataMember(Name = "rust_gamedig_id", EmitDefaultValue = true)] - public string RustGamedigId { get; set; } - - /// - /// Gets or Sets NodeGamedigId - /// - [DataMember(Name = "node_gamedig_id", EmitDefaultValue = true)] - public string NodeGamedigId { get; set; } - - /// - /// Gets or Sets ServerConnectUrl - /// - [DataMember(Name = "server_connect_url", EmitDefaultValue = true)] - public string ServerConnectUrl { get; set; } - - /// - /// Gets or Sets ServerTags - /// - [DataMember(Name = "server_tags", EmitDefaultValue = true)] - public string ServerTags { get; set; } - /// /// Gets or Sets Id /// @@ -182,7 +102,7 @@ namespace Tribufu.Generated.Model /// /// Gets or Sets Name /// - [DataMember(Name = "name", EmitDefaultValue = true)] + [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] public string Name { get; set; } /// @@ -221,60 +141,12 @@ namespace Tribufu.Generated.Model [DataMember(Name = "library_image_url", EmitDefaultValue = true)] public string LibraryImageUrl { get; set; } - /// - /// Gets or Sets ParentId - /// - [DataMember(Name = "parent_id", EmitDefaultValue = true)] - public string ParentId { get; set; } - /// /// Gets or Sets Slug /// [DataMember(Name = "slug", EmitDefaultValue = true)] public string Slug { get; set; } - /// - /// Gets or Sets Visibility - /// - [DataMember(Name = "visibility", EmitDefaultValue = false)] - public int Visibility { get; set; } - - /// - /// Gets or Sets Password - /// - [DataMember(Name = "password", EmitDefaultValue = true)] - public string Password { get; set; } - - /// - /// Gets or Sets Primary - /// - [DataMember(Name = "primary", EmitDefaultValue = false)] - public int Primary { get; set; } - - /// - /// Gets or Sets UserCount - /// - [DataMember(Name = "user_count", EmitDefaultValue = false)] - public int UserCount { get; set; } - - /// - /// Gets or Sets AchievementCount - /// - [DataMember(Name = "achievement_count", EmitDefaultValue = false)] - public int AchievementCount { get; set; } - - /// - /// Gets or Sets BadgeCount - /// - [DataMember(Name = "badge_count", EmitDefaultValue = true)] - public int? BadgeCount { get; set; } - - /// - /// Gets or Sets DownloadCount - /// - [DataMember(Name = "download_count", EmitDefaultValue = false)] - public int DownloadCount { get; set; } - /// /// Gets or Sets Created /// @@ -287,6 +159,48 @@ namespace Tribufu.Generated.Model [DataMember(Name = "updated", EmitDefaultValue = true)] public DateTime? Updated { get; set; } + /// + /// Gets or Sets EnableServers + /// + [DataMember(Name = "enable_servers", EmitDefaultValue = true)] + public bool EnableServers { get; set; } + + /// + /// Gets or Sets GamePort + /// + [DataMember(Name = "game_port", EmitDefaultValue = true)] + public int? GamePort { get; set; } + + /// + /// Gets or Sets QueryPort + /// + [DataMember(Name = "query_port", EmitDefaultValue = true)] + public int? QueryPort { get; set; } + + /// + /// Gets or Sets RconPort + /// + [DataMember(Name = "rcon_port", EmitDefaultValue = true)] + public int? RconPort { get; set; } + + /// + /// Gets or Sets GamedigId + /// + [DataMember(Name = "gamedig_id", EmitDefaultValue = true)] + public string GamedigId { get; set; } + + /// + /// Gets or Sets SteamAppId + /// + [DataMember(Name = "steam_app_id", EmitDefaultValue = true)] + public int? SteamAppId { get; set; } + + /// + /// Gets or Sets SteamServerAppId + /// + [DataMember(Name = "steam_server_app_id", EmitDefaultValue = true)] + public int? SteamServerAppId { get; set; } + /// /// Returns the string presentation of the object /// @@ -295,17 +209,6 @@ namespace Tribufu.Generated.Model { StringBuilder sb = new StringBuilder(); sb.Append("class Game {\n"); - sb.Append(" GamePort: ").Append(GamePort).Append("\n"); - sb.Append(" QueryPort: ").Append(QueryPort).Append("\n"); - sb.Append(" RconPort: ").Append(RconPort).Append("\n"); - sb.Append(" ServerCount: ").Append(ServerCount).Append("\n"); - sb.Append(" SteamAppId: ").Append(SteamAppId).Append("\n"); - sb.Append(" SteamServerAppId: ").Append(SteamServerAppId).Append("\n"); - sb.Append(" EnableServers: ").Append(EnableServers).Append("\n"); - sb.Append(" RustGamedigId: ").Append(RustGamedigId).Append("\n"); - sb.Append(" NodeGamedigId: ").Append(NodeGamedigId).Append("\n"); - sb.Append(" ServerConnectUrl: ").Append(ServerConnectUrl).Append("\n"); - sb.Append(" ServerTags: ").Append(ServerTags).Append("\n"); sb.Append(" Id: ").Append(Id).Append("\n"); sb.Append(" Name: ").Append(Name).Append("\n"); sb.Append(" Description: ").Append(Description).Append("\n"); @@ -315,17 +218,16 @@ namespace Tribufu.Generated.Model sb.Append(" BannerUrl: ").Append(BannerUrl).Append("\n"); sb.Append(" CapsuleImageUrl: ").Append(CapsuleImageUrl).Append("\n"); sb.Append(" LibraryImageUrl: ").Append(LibraryImageUrl).Append("\n"); - sb.Append(" ParentId: ").Append(ParentId).Append("\n"); sb.Append(" Slug: ").Append(Slug).Append("\n"); - sb.Append(" Visibility: ").Append(Visibility).Append("\n"); - sb.Append(" Password: ").Append(Password).Append("\n"); - sb.Append(" Primary: ").Append(Primary).Append("\n"); - sb.Append(" UserCount: ").Append(UserCount).Append("\n"); - sb.Append(" AchievementCount: ").Append(AchievementCount).Append("\n"); - sb.Append(" BadgeCount: ").Append(BadgeCount).Append("\n"); - sb.Append(" DownloadCount: ").Append(DownloadCount).Append("\n"); sb.Append(" Created: ").Append(Created).Append("\n"); sb.Append(" Updated: ").Append(Updated).Append("\n"); + sb.Append(" EnableServers: ").Append(EnableServers).Append("\n"); + sb.Append(" GamePort: ").Append(GamePort).Append("\n"); + sb.Append(" QueryPort: ").Append(QueryPort).Append("\n"); + sb.Append(" RconPort: ").Append(RconPort).Append("\n"); + sb.Append(" GamedigId: ").Append(GamedigId).Append("\n"); + sb.Append(" SteamAppId: ").Append(SteamAppId).Append("\n"); + sb.Append(" SteamServerAppId: ").Append(SteamServerAppId).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -346,24 +248,6 @@ namespace Tribufu.Generated.Model /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // RustGamedigId (string) maxLength - if (this.RustGamedigId != null && this.RustGamedigId.Length > 45) - { - yield return new ValidationResult("Invalid value for RustGamedigId, length must be less than 45.", new [] { "RustGamedigId" }); - } - - // NodeGamedigId (string) maxLength - if (this.NodeGamedigId != null && this.NodeGamedigId.Length > 45) - { - yield return new ValidationResult("Invalid value for NodeGamedigId, length must be less than 45.", new [] { "NodeGamedigId" }); - } - - // ServerConnectUrl (string) maxLength - if (this.ServerConnectUrl != null && this.ServerConnectUrl.Length > 255) - { - yield return new ValidationResult("Invalid value for ServerConnectUrl, length must be less than 255.", new [] { "ServerConnectUrl" }); - } - // Name (string) maxLength if (this.Name != null && this.Name.Length > 75) { @@ -394,6 +278,18 @@ namespace Tribufu.Generated.Model yield return new ValidationResult("Invalid value for LibraryImageUrl, length must be less than 255.", new [] { "LibraryImageUrl" }); } + // Slug (string) maxLength + if (this.Slug != null && this.Slug.Length > 75) + { + yield return new ValidationResult("Invalid value for Slug, length must be less than 75.", new [] { "Slug" }); + } + + // GamedigId (string) maxLength + if (this.GamedigId != null && this.GamedigId.Length > 45) + { + yield return new ValidationResult("Invalid value for GamedigId, length must be less than 45.", new [] { "GamedigId" }); + } + yield break; } } diff --git a/src/Tribufu.Generated/Model/GameServer.cs b/src/Tribufu/Model/GameServer.cs similarity index 68% rename from src/Tribufu.Generated/Model/GameServer.cs rename to src/Tribufu/Model/GameServer.cs index df225a1..03baf5f 100644 --- a/src/Tribufu.Generated/Model/GameServer.cs +++ b/src/Tribufu/Model/GameServer.cs @@ -1,9 +1,9 @@ /* * Tribufu API * - * REST API to access Tribufu services. + * API to access Tribufu services. * - * The version of the OpenAPI document: 1.1.0 + * The version of the OpenAPI document: 1.2.6 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -22,9 +22,9 @@ using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; using System.ComponentModel.DataAnnotations; -using OpenAPIDateConverter = Tribufu.Generated.Client.OpenAPIDateConverter; +using OpenAPIDateConverter = Tribufu.Client.OpenAPIDateConverter; -namespace Tribufu.Generated.Model +namespace Tribufu.Model { /// /// GameServer @@ -32,77 +32,66 @@ namespace Tribufu.Generated.Model [DataContract(Name = "GameServer")] public partial class GameServer : IValidatableObject { - /// - /// Gets or Sets Status + /// Initializes a new instance of the class. /// - [DataMember(Name = "status", EmitDefaultValue = false)] - public ServerStatus? Status { get; set; } + [JsonConstructorAttribute] + protected GameServer() { } /// /// Initializes a new instance of the class. /// /// id. - /// name. + /// name (required). /// description. - /// address. + /// ownerId. + /// address (required). + /// queryPort (required). /// gamePort. - /// queryPort. + /// map. + /// varVersion. /// gameId. /// gameIconUrl. - /// varVersion. - /// featured. /// clusterId. /// websiteUrl. /// bannerUrl. - /// ownerId. /// uptime. - /// status. - /// ping. - /// map. - /// usedSlots. - /// maxSlots. - /// motd. - /// players. - /// lastOnline. /// country. /// steam. /// discordServerId. /// youtubeVideoUrl. - /// tags. - /// commentCount. /// created. /// updated. - public GameServer(string id = default(string), string name = default(string), string description = default(string), string address = default(string), int? gamePort = default(int?), int queryPort = default(int), string gameId = default(string), string gameIconUrl = default(string), string varVersion = default(string), bool featured = default(bool), string clusterId = default(string), string websiteUrl = default(string), string bannerUrl = default(string), string ownerId = default(string), double uptime = default(double), ServerStatus? status = default(ServerStatus?), int? ping = default(int?), string map = default(string), int? usedSlots = default(int?), int? maxSlots = default(int?), string motd = default(string), string players = default(string), DateTime? lastOnline = default(DateTime?), string country = default(string), bool steam = default(bool), string discordServerId = default(string), string youtubeVideoUrl = default(string), string tags = default(string), int commentCount = default(int), DateTime created = default(DateTime), DateTime? updated = default(DateTime?)) + public GameServer(string id = default(string), string name = default(string), string description = default(string), string ownerId = default(string), string address = default(string), int queryPort = default(int), int? gamePort = default(int?), string map = default(string), string varVersion = default(string), string gameId = default(string), string gameIconUrl = default(string), string clusterId = default(string), string websiteUrl = default(string), string bannerUrl = default(string), double uptime = default(double), string country = default(string), bool steam = default(bool), string discordServerId = default(string), string youtubeVideoUrl = default(string), DateTime created = default(DateTime), DateTime? updated = default(DateTime?)) { - this.Id = id; + // to ensure "name" is required (not null) + if (name == null) + { + throw new ArgumentNullException("name is a required property for GameServer and cannot be null"); + } this.Name = name; - this.Description = description; + // to ensure "address" is required (not null) + if (address == null) + { + throw new ArgumentNullException("address is a required property for GameServer and cannot be null"); + } this.Address = address; - this.GamePort = gamePort; this.QueryPort = queryPort; + this.Id = id; + this.Description = description; + this.OwnerId = ownerId; + this.GamePort = gamePort; + this.Map = map; + this.VarVersion = varVersion; this.GameId = gameId; this.GameIconUrl = gameIconUrl; - this.VarVersion = varVersion; - this.Featured = featured; this.ClusterId = clusterId; this.WebsiteUrl = websiteUrl; this.BannerUrl = bannerUrl; - this.OwnerId = ownerId; this.Uptime = uptime; - this.Status = status; - this.Ping = ping; - this.Map = map; - this.UsedSlots = usedSlots; - this.MaxSlots = maxSlots; - this.Motd = motd; - this.Players = players; - this.LastOnline = lastOnline; this.Country = country; this.Steam = steam; this.DiscordServerId = discordServerId; this.YoutubeVideoUrl = youtubeVideoUrl; - this.Tags = tags; - this.CommentCount = commentCount; this.Created = created; this.Updated = updated; } @@ -116,7 +105,7 @@ namespace Tribufu.Generated.Model /// /// Gets or Sets Name /// - [DataMember(Name = "name", EmitDefaultValue = true)] + [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] public string Name { get; set; } /// @@ -125,12 +114,24 @@ namespace Tribufu.Generated.Model [DataMember(Name = "description", EmitDefaultValue = true)] public string Description { get; set; } + /// + /// Gets or Sets OwnerId + /// + [DataMember(Name = "owner_id", EmitDefaultValue = true)] + public string OwnerId { get; set; } + /// /// Gets or Sets Address /// - [DataMember(Name = "address", EmitDefaultValue = true)] + [DataMember(Name = "address", IsRequired = true, EmitDefaultValue = true)] public string Address { get; set; } + /// + /// Gets or Sets QueryPort + /// + [DataMember(Name = "query_port", IsRequired = true, EmitDefaultValue = true)] + public int QueryPort { get; set; } + /// /// Gets or Sets GamePort /// @@ -138,10 +139,16 @@ namespace Tribufu.Generated.Model public int? GamePort { get; set; } /// - /// Gets or Sets QueryPort + /// Gets or Sets Map /// - [DataMember(Name = "query_port", EmitDefaultValue = false)] - public int QueryPort { get; set; } + [DataMember(Name = "map", EmitDefaultValue = true)] + public string Map { get; set; } + + /// + /// Gets or Sets VarVersion + /// + [DataMember(Name = "version", EmitDefaultValue = true)] + public string VarVersion { get; set; } /// /// Gets or Sets GameId @@ -155,18 +162,6 @@ namespace Tribufu.Generated.Model [DataMember(Name = "game_icon_url", EmitDefaultValue = true)] public string GameIconUrl { get; set; } - /// - /// Gets or Sets VarVersion - /// - [DataMember(Name = "version", EmitDefaultValue = true)] - public string VarVersion { get; set; } - - /// - /// Gets or Sets Featured - /// - [DataMember(Name = "featured", EmitDefaultValue = true)] - public bool Featured { get; set; } - /// /// Gets or Sets ClusterId /// @@ -185,60 +180,12 @@ namespace Tribufu.Generated.Model [DataMember(Name = "banner_url", EmitDefaultValue = true)] public string BannerUrl { get; set; } - /// - /// Gets or Sets OwnerId - /// - [DataMember(Name = "owner_id", EmitDefaultValue = true)] - public string OwnerId { get; set; } - /// /// Gets or Sets Uptime /// [DataMember(Name = "uptime", EmitDefaultValue = false)] public double Uptime { get; set; } - /// - /// Gets or Sets Ping - /// - [DataMember(Name = "ping", EmitDefaultValue = true)] - public int? Ping { get; set; } - - /// - /// Gets or Sets Map - /// - [DataMember(Name = "map", EmitDefaultValue = true)] - public string Map { get; set; } - - /// - /// Gets or Sets UsedSlots - /// - [DataMember(Name = "used_slots", EmitDefaultValue = true)] - public int? UsedSlots { get; set; } - - /// - /// Gets or Sets MaxSlots - /// - [DataMember(Name = "max_slots", EmitDefaultValue = true)] - public int? MaxSlots { get; set; } - - /// - /// Gets or Sets Motd - /// - [DataMember(Name = "motd", EmitDefaultValue = true)] - public string Motd { get; set; } - - /// - /// Gets or Sets Players - /// - [DataMember(Name = "players", EmitDefaultValue = true)] - public string Players { get; set; } - - /// - /// Gets or Sets LastOnline - /// - [DataMember(Name = "last_online", EmitDefaultValue = true)] - public DateTime? LastOnline { get; set; } - /// /// Gets or Sets Country /// @@ -263,18 +210,6 @@ namespace Tribufu.Generated.Model [DataMember(Name = "youtube_video_url", EmitDefaultValue = true)] public string YoutubeVideoUrl { get; set; } - /// - /// Gets or Sets Tags - /// - [DataMember(Name = "tags", EmitDefaultValue = true)] - public string Tags { get; set; } - - /// - /// Gets or Sets CommentCount - /// - [DataMember(Name = "comment_count", EmitDefaultValue = false)] - public int CommentCount { get; set; } - /// /// Gets or Sets Created /// @@ -298,32 +233,22 @@ namespace Tribufu.Generated.Model sb.Append(" Id: ").Append(Id).Append("\n"); sb.Append(" Name: ").Append(Name).Append("\n"); sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" OwnerId: ").Append(OwnerId).Append("\n"); sb.Append(" Address: ").Append(Address).Append("\n"); - sb.Append(" GamePort: ").Append(GamePort).Append("\n"); sb.Append(" QueryPort: ").Append(QueryPort).Append("\n"); + sb.Append(" GamePort: ").Append(GamePort).Append("\n"); + sb.Append(" Map: ").Append(Map).Append("\n"); + sb.Append(" VarVersion: ").Append(VarVersion).Append("\n"); sb.Append(" GameId: ").Append(GameId).Append("\n"); sb.Append(" GameIconUrl: ").Append(GameIconUrl).Append("\n"); - sb.Append(" VarVersion: ").Append(VarVersion).Append("\n"); - sb.Append(" Featured: ").Append(Featured).Append("\n"); sb.Append(" ClusterId: ").Append(ClusterId).Append("\n"); sb.Append(" WebsiteUrl: ").Append(WebsiteUrl).Append("\n"); sb.Append(" BannerUrl: ").Append(BannerUrl).Append("\n"); - sb.Append(" OwnerId: ").Append(OwnerId).Append("\n"); sb.Append(" Uptime: ").Append(Uptime).Append("\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); - sb.Append(" Ping: ").Append(Ping).Append("\n"); - sb.Append(" Map: ").Append(Map).Append("\n"); - sb.Append(" UsedSlots: ").Append(UsedSlots).Append("\n"); - sb.Append(" MaxSlots: ").Append(MaxSlots).Append("\n"); - sb.Append(" Motd: ").Append(Motd).Append("\n"); - sb.Append(" Players: ").Append(Players).Append("\n"); - sb.Append(" LastOnline: ").Append(LastOnline).Append("\n"); sb.Append(" Country: ").Append(Country).Append("\n"); sb.Append(" Steam: ").Append(Steam).Append("\n"); sb.Append(" DiscordServerId: ").Append(DiscordServerId).Append("\n"); sb.Append(" YoutubeVideoUrl: ").Append(YoutubeVideoUrl).Append("\n"); - sb.Append(" Tags: ").Append(Tags).Append("\n"); - sb.Append(" CommentCount: ").Append(CommentCount).Append("\n"); sb.Append(" Created: ").Append(Created).Append("\n"); sb.Append(" Updated: ").Append(Updated).Append("\n"); sb.Append("}\n"); @@ -358,6 +283,12 @@ namespace Tribufu.Generated.Model yield return new ValidationResult("Invalid value for Address, length must be less than 255.", new [] { "Address" }); } + // Map (string) maxLength + if (this.Map != null && this.Map.Length > 255) + { + yield return new ValidationResult("Invalid value for Map, length must be less than 255.", new [] { "Map" }); + } + // VarVersion (string) maxLength if (this.VarVersion != null && this.VarVersion.Length > 45) { @@ -376,18 +307,6 @@ namespace Tribufu.Generated.Model yield return new ValidationResult("Invalid value for BannerUrl, length must be less than 255.", new [] { "BannerUrl" }); } - // Map (string) maxLength - if (this.Map != null && this.Map.Length > 45) - { - yield return new ValidationResult("Invalid value for Map, length must be less than 45.", new [] { "Map" }); - } - - // Motd (string) maxLength - if (this.Motd != null && this.Motd.Length > 255) - { - yield return new ValidationResult("Invalid value for Motd, length must be less than 255.", new [] { "Motd" }); - } - // Country (string) maxLength if (this.Country != null && this.Country.Length > 2) { diff --git a/src/Tribufu.Generated/Model/GameServerCluster.cs b/src/Tribufu/Model/GameServerCluster.cs similarity index 91% rename from src/Tribufu.Generated/Model/GameServerCluster.cs rename to src/Tribufu/Model/GameServerCluster.cs index efc9c40..917a14a 100644 --- a/src/Tribufu.Generated/Model/GameServerCluster.cs +++ b/src/Tribufu/Model/GameServerCluster.cs @@ -1,9 +1,9 @@ /* * Tribufu API * - * REST API to access Tribufu services. + * API to access Tribufu services. * - * The version of the OpenAPI document: 1.1.0 + * The version of the OpenAPI document: 1.2.6 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -22,9 +22,9 @@ using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; using System.ComponentModel.DataAnnotations; -using OpenAPIDateConverter = Tribufu.Generated.Client.OpenAPIDateConverter; +using OpenAPIDateConverter = Tribufu.Client.OpenAPIDateConverter; -namespace Tribufu.Generated.Model +namespace Tribufu.Model { /// /// GameServerCluster @@ -32,11 +32,16 @@ namespace Tribufu.Generated.Model [DataContract(Name = "GameServerCluster")] public partial class GameServerCluster : IValidatableObject { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected GameServerCluster() { } /// /// Initializes a new instance of the class. /// /// id. - /// name. + /// name (required). /// description. /// gameId. /// websiteUrl. @@ -51,8 +56,13 @@ namespace Tribufu.Generated.Model /// updated. public GameServerCluster(string id = default(string), string name = default(string), string description = default(string), string gameId = default(string), string websiteUrl = default(string), string bannerUrl = default(string), string ownerId = default(string), string discordServerId = default(string), string youtubeVideoUrl = default(string), string tags = default(string), int commentCount = default(int), int serverCount = default(int), DateTime created = default(DateTime), DateTime? updated = default(DateTime?)) { - this.Id = id; + // to ensure "name" is required (not null) + if (name == null) + { + throw new ArgumentNullException("name is a required property for GameServerCluster and cannot be null"); + } this.Name = name; + this.Id = id; this.Description = description; this.GameId = gameId; this.WebsiteUrl = websiteUrl; @@ -76,7 +86,7 @@ namespace Tribufu.Generated.Model /// /// Gets or Sets Name /// - [DataMember(Name = "name", EmitDefaultValue = true)] + [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] public string Name { get; set; } /// diff --git a/src/Tribufu/Model/GameServerQuery.cs b/src/Tribufu/Model/GameServerQuery.cs new file mode 100644 index 0000000..a283508 --- /dev/null +++ b/src/Tribufu/Model/GameServerQuery.cs @@ -0,0 +1,152 @@ +/* + * Tribufu API + * + * API to access Tribufu services. + * + * The version of the OpenAPI document: 1.2.6 + * Contact: contact@tribufu.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = Tribufu.Client.OpenAPIDateConverter; + +namespace Tribufu.Model +{ + /// + /// GameServerQuery + /// + [DataContract(Name = "GameServerQuery")] + public partial class GameServerQuery : IValidatableObject + { + + /// + /// Gets or Sets Status + /// + [DataMember(Name = "status", EmitDefaultValue = false)] + public GameServerStatus? Status { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// id. + /// serverId. + /// status. + /// ping. + /// currentPlayers. + /// maxPlayers. + /// motd. + /// created. + public GameServerQuery(string id = default(string), string serverId = default(string), GameServerStatus? status = default(GameServerStatus?), int ping = default(int), int currentPlayers = default(int), int maxPlayers = default(int), string motd = default(string), DateTime created = default(DateTime)) + { + this.Id = id; + this.ServerId = serverId; + this.Status = status; + this.Ping = ping; + this.CurrentPlayers = currentPlayers; + this.MaxPlayers = maxPlayers; + this.Motd = motd; + this.Created = created; + } + + /// + /// Gets or Sets Id + /// + [DataMember(Name = "id", EmitDefaultValue = false)] + public string Id { get; set; } + + /// + /// Gets or Sets ServerId + /// + [DataMember(Name = "server_id", EmitDefaultValue = false)] + public string ServerId { get; set; } + + /// + /// Gets or Sets Ping + /// + [DataMember(Name = "ping", EmitDefaultValue = false)] + public int Ping { get; set; } + + /// + /// Gets or Sets CurrentPlayers + /// + [DataMember(Name = "current_players", EmitDefaultValue = false)] + public int CurrentPlayers { get; set; } + + /// + /// Gets or Sets MaxPlayers + /// + [DataMember(Name = "max_players", EmitDefaultValue = false)] + public int MaxPlayers { get; set; } + + /// + /// Gets or Sets Motd + /// + [DataMember(Name = "motd", EmitDefaultValue = true)] + public string Motd { get; set; } + + /// + /// Gets or Sets Created + /// + [DataMember(Name = "created", EmitDefaultValue = false)] + public DateTime Created { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GameServerQuery {\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" ServerId: ").Append(ServerId).Append("\n"); + sb.Append(" Status: ").Append(Status).Append("\n"); + sb.Append(" Ping: ").Append(Ping).Append("\n"); + sb.Append(" CurrentPlayers: ").Append(CurrentPlayers).Append("\n"); + sb.Append(" MaxPlayers: ").Append(MaxPlayers).Append("\n"); + sb.Append(" Motd: ").Append(Motd).Append("\n"); + sb.Append(" Created: ").Append(Created).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + // Motd (string) maxLength + if (this.Motd != null && this.Motd.Length > 255) + { + yield return new ValidationResult("Invalid value for Motd, length must be less than 255.", new [] { "Motd" }); + } + + yield break; + } + } + +} diff --git a/src/Tribufu.Generated/Model/ServerStatus.cs b/src/Tribufu/Model/GameServerStatus.cs similarity index 80% rename from src/Tribufu.Generated/Model/ServerStatus.cs rename to src/Tribufu/Model/GameServerStatus.cs index aa7b037..a27950f 100644 --- a/src/Tribufu.Generated/Model/ServerStatus.cs +++ b/src/Tribufu/Model/GameServerStatus.cs @@ -1,9 +1,9 @@ /* * Tribufu API * - * REST API to access Tribufu services. + * API to access Tribufu services. * - * The version of the OpenAPI document: 1.1.0 + * The version of the OpenAPI document: 1.2.6 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -22,15 +22,15 @@ using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; using System.ComponentModel.DataAnnotations; -using OpenAPIDateConverter = Tribufu.Generated.Client.OpenAPIDateConverter; +using OpenAPIDateConverter = Tribufu.Client.OpenAPIDateConverter; -namespace Tribufu.Generated.Model +namespace Tribufu.Model { /// - /// Defines ServerStatus + /// Defines GameServerStatus /// [JsonConverter(typeof(StringEnumConverter))] - public enum ServerStatus + public enum GameServerStatus { /// /// Enum Unknown for value: unknown diff --git a/src/Tribufu.Generated/Model/GrantType.cs b/src/Tribufu/Model/GrantType.cs similarity index 87% rename from src/Tribufu.Generated/Model/GrantType.cs rename to src/Tribufu/Model/GrantType.cs index 74ecc72..45760bd 100644 --- a/src/Tribufu.Generated/Model/GrantType.cs +++ b/src/Tribufu/Model/GrantType.cs @@ -1,9 +1,9 @@ /* * Tribufu API * - * REST API to access Tribufu services. + * API to access Tribufu services. * - * The version of the OpenAPI document: 1.1.0 + * The version of the OpenAPI document: 1.2.6 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -22,9 +22,9 @@ using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; using System.ComponentModel.DataAnnotations; -using OpenAPIDateConverter = Tribufu.Generated.Client.OpenAPIDateConverter; +using OpenAPIDateConverter = Tribufu.Client.OpenAPIDateConverter; -namespace Tribufu.Generated.Model +namespace Tribufu.Model { /// /// Defines GrantType diff --git a/src/Tribufu.Generated/Model/Group.cs b/src/Tribufu/Model/Group.cs similarity index 91% rename from src/Tribufu.Generated/Model/Group.cs rename to src/Tribufu/Model/Group.cs index 45d4b63..31935dd 100644 --- a/src/Tribufu.Generated/Model/Group.cs +++ b/src/Tribufu/Model/Group.cs @@ -1,9 +1,9 @@ /* * Tribufu API * - * REST API to access Tribufu services. + * API to access Tribufu services. * - * The version of the OpenAPI document: 1.1.0 + * The version of the OpenAPI document: 1.2.6 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -22,9 +22,9 @@ using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; using System.ComponentModel.DataAnnotations; -using OpenAPIDateConverter = Tribufu.Generated.Client.OpenAPIDateConverter; +using OpenAPIDateConverter = Tribufu.Client.OpenAPIDateConverter; -namespace Tribufu.Generated.Model +namespace Tribufu.Model { /// /// Group @@ -32,12 +32,17 @@ namespace Tribufu.Generated.Model [DataContract(Name = "Group")] public partial class Group : IValidatableObject { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected Group() { } /// /// Initializes a new instance of the class. /// /// id. /// uuid. - /// name. + /// name (required). /// tag. /// description. /// type. @@ -53,9 +58,14 @@ namespace Tribufu.Generated.Model /// updated. public Group(string id = default(string), Guid uuid = default(Guid), string name = default(string), string tag = default(string), string description = default(string), int type = default(int), int privacy = default(int), string ownerId = default(string), bool verified = default(bool), string photoUrl = default(string), string bannerUrl = default(string), int memberCount = default(int), int followerCount = default(int), int viewCount = default(int), DateTime created = default(DateTime), DateTime? updated = default(DateTime?)) { + // to ensure "name" is required (not null) + if (name == null) + { + throw new ArgumentNullException("name is a required property for Group and cannot be null"); + } + this.Name = name; this.Id = id; this.Uuid = uuid; - this.Name = name; this.Tag = tag; this.Description = description; this.Type = type; @@ -86,7 +96,7 @@ namespace Tribufu.Generated.Model /// /// Gets or Sets Name /// - [DataMember(Name = "name", EmitDefaultValue = true)] + [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] public string Name { get; set; } /// diff --git a/src/Tribufu.Generated/Model/GroupGame.cs b/src/Tribufu/Model/GroupGame.cs similarity index 85% rename from src/Tribufu.Generated/Model/GroupGame.cs rename to src/Tribufu/Model/GroupGame.cs index 49a4fe7..49a026f 100644 --- a/src/Tribufu.Generated/Model/GroupGame.cs +++ b/src/Tribufu/Model/GroupGame.cs @@ -1,9 +1,9 @@ /* * Tribufu API * - * REST API to access Tribufu services. + * API to access Tribufu services. * - * The version of the OpenAPI document: 1.1.0 + * The version of the OpenAPI document: 1.2.6 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -22,9 +22,9 @@ using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; using System.ComponentModel.DataAnnotations; -using OpenAPIDateConverter = Tribufu.Generated.Client.OpenAPIDateConverter; +using OpenAPIDateConverter = Tribufu.Client.OpenAPIDateConverter; -namespace Tribufu.Generated.Model +namespace Tribufu.Model { /// /// GroupGame @@ -35,7 +35,12 @@ namespace Tribufu.Generated.Model /// /// Initializes a new instance of the class. /// - /// groupId. + [JsonConstructorAttribute] + protected GroupGame() { } + /// + /// Initializes a new instance of the class. + /// + /// groupId (required). /// group. /// applicationId. /// application. @@ -44,6 +49,11 @@ namespace Tribufu.Generated.Model /// lastUsed. public GroupGame(string groupId = default(string), Group group = default(Group), string applicationId = default(string), Application application = default(Application), Object stats = default(Object), DateTime acquired = default(DateTime), DateTime? lastUsed = default(DateTime?)) { + // to ensure "groupId" is required (not null) + if (groupId == null) + { + throw new ArgumentNullException("groupId is a required property for GroupGame and cannot be null"); + } this.GroupId = groupId; this.Group = group; this.ApplicationId = applicationId; @@ -56,7 +66,7 @@ namespace Tribufu.Generated.Model /// /// Gets or Sets GroupId /// - [DataMember(Name = "group_id", EmitDefaultValue = false)] + [DataMember(Name = "group_id", IsRequired = true, EmitDefaultValue = true)] public string GroupId { get; set; } /// diff --git a/src/Tribufu.Generated/Model/GroupMember.cs b/src/Tribufu/Model/GroupMember.cs similarity index 96% rename from src/Tribufu.Generated/Model/GroupMember.cs rename to src/Tribufu/Model/GroupMember.cs index 77d3e6e..f65e65f 100644 --- a/src/Tribufu.Generated/Model/GroupMember.cs +++ b/src/Tribufu/Model/GroupMember.cs @@ -1,9 +1,9 @@ /* * Tribufu API * - * REST API to access Tribufu services. + * API to access Tribufu services. * - * The version of the OpenAPI document: 1.1.0 + * The version of the OpenAPI document: 1.2.6 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -22,9 +22,9 @@ using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; using System.ComponentModel.DataAnnotations; -using OpenAPIDateConverter = Tribufu.Generated.Client.OpenAPIDateConverter; +using OpenAPIDateConverter = Tribufu.Client.OpenAPIDateConverter; -namespace Tribufu.Generated.Model +namespace Tribufu.Model { /// /// GroupMember diff --git a/src/Tribufu.Generated/Model/GroupRank.cs b/src/Tribufu/Model/GroupRank.cs similarity index 84% rename from src/Tribufu.Generated/Model/GroupRank.cs rename to src/Tribufu/Model/GroupRank.cs index 4d640b7..804eadc 100644 --- a/src/Tribufu.Generated/Model/GroupRank.cs +++ b/src/Tribufu/Model/GroupRank.cs @@ -1,9 +1,9 @@ /* * Tribufu API * - * REST API to access Tribufu services. + * API to access Tribufu services. * - * The version of the OpenAPI document: 1.1.0 + * The version of the OpenAPI document: 1.2.6 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -22,9 +22,9 @@ using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; using System.ComponentModel.DataAnnotations; -using OpenAPIDateConverter = Tribufu.Generated.Client.OpenAPIDateConverter; +using OpenAPIDateConverter = Tribufu.Client.OpenAPIDateConverter; -namespace Tribufu.Generated.Model +namespace Tribufu.Model { /// /// Defines GroupRank diff --git a/src/Tribufu.Generated/Model/HashViewModel.cs b/src/Tribufu/Model/HashViewModel.cs similarity index 74% rename from src/Tribufu.Generated/Model/HashViewModel.cs rename to src/Tribufu/Model/HashViewModel.cs index 0043a2e..b041e8c 100644 --- a/src/Tribufu.Generated/Model/HashViewModel.cs +++ b/src/Tribufu/Model/HashViewModel.cs @@ -1,9 +1,9 @@ /* * Tribufu API * - * REST API to access Tribufu services. + * API to access Tribufu services. * - * The version of the OpenAPI document: 1.1.0 + * The version of the OpenAPI document: 1.2.6 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -22,9 +22,9 @@ using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; using System.ComponentModel.DataAnnotations; -using OpenAPIDateConverter = Tribufu.Generated.Client.OpenAPIDateConverter; +using OpenAPIDateConverter = Tribufu.Client.OpenAPIDateConverter; -namespace Tribufu.Generated.Model +namespace Tribufu.Model { /// /// HashViewModel @@ -35,16 +35,26 @@ namespace Tribufu.Generated.Model /// /// Initializes a new instance of the class. /// - /// value. + [JsonConstructorAttribute] + protected HashViewModel() { } + /// + /// Initializes a new instance of the class. + /// + /// value (required). public HashViewModel(string value = default(string)) { + // to ensure "value" is required (not null) + if (value == null) + { + throw new ArgumentNullException("value is a required property for HashViewModel and cannot be null"); + } this.Value = value; } /// /// Gets or Sets Value /// - [DataMember(Name = "value", EmitDefaultValue = true)] + [DataMember(Name = "value", IsRequired = true, EmitDefaultValue = true)] public string Value { get; set; } /// diff --git a/src/Tribufu.Generated/Model/IntrospectRequest.cs b/src/Tribufu/Model/IntrospectRequest.cs similarity index 70% rename from src/Tribufu.Generated/Model/IntrospectRequest.cs rename to src/Tribufu/Model/IntrospectRequest.cs index f36ab8f..2104dcd 100644 --- a/src/Tribufu.Generated/Model/IntrospectRequest.cs +++ b/src/Tribufu/Model/IntrospectRequest.cs @@ -1,9 +1,9 @@ /* * Tribufu API * - * REST API to access Tribufu services. + * API to access Tribufu services. * - * The version of the OpenAPI document: 1.1.0 + * The version of the OpenAPI document: 1.2.6 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -22,9 +22,9 @@ using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; using System.ComponentModel.DataAnnotations; -using OpenAPIDateConverter = Tribufu.Generated.Client.OpenAPIDateConverter; +using OpenAPIDateConverter = Tribufu.Client.OpenAPIDateConverter; -namespace Tribufu.Generated.Model +namespace Tribufu.Model { /// /// IntrospectRequest @@ -36,15 +36,25 @@ namespace Tribufu.Generated.Model /// /// Gets or Sets TokenTypeHint /// - [DataMember(Name = "token_type_hint", EmitDefaultValue = false)] - public TokenHintType? TokenTypeHint { get; set; } + [DataMember(Name = "token_type_hint", IsRequired = true, EmitDefaultValue = true)] + public TokenHintType TokenTypeHint { get; set; } /// /// Initializes a new instance of the class. /// - /// token. - /// tokenTypeHint. - public IntrospectRequest(string token = default(string), TokenHintType? tokenTypeHint = default(TokenHintType?)) + [JsonConstructorAttribute] + protected IntrospectRequest() { } + /// + /// Initializes a new instance of the class. + /// + /// token (required). + /// tokenTypeHint (required). + public IntrospectRequest(string token = default(string), TokenHintType tokenTypeHint = default(TokenHintType)) { + // to ensure "token" is required (not null) + if (token == null) + { + throw new ArgumentNullException("token is a required property for IntrospectRequest and cannot be null"); + } this.Token = token; this.TokenTypeHint = tokenTypeHint; } @@ -52,7 +62,7 @@ namespace Tribufu.Generated.Model /// /// Gets or Sets Token /// - [DataMember(Name = "token", EmitDefaultValue = true)] + [DataMember(Name = "token", IsRequired = true, EmitDefaultValue = true)] public string Token { get; set; } /// diff --git a/src/Tribufu/Model/IntrospectResponse.cs b/src/Tribufu/Model/IntrospectResponse.cs new file mode 100644 index 0000000..989c10a --- /dev/null +++ b/src/Tribufu/Model/IntrospectResponse.cs @@ -0,0 +1,182 @@ +/* + * Tribufu API + * + * API to access Tribufu services. + * + * The version of the OpenAPI document: 1.2.6 + * Contact: contact@tribufu.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = Tribufu.Client.OpenAPIDateConverter; + +namespace Tribufu.Model +{ + /// + /// IntrospectResponse + /// + [DataContract(Name = "IntrospectResponse")] + public partial class IntrospectResponse : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// jti. + /// active. + /// tokenType. + /// clientId. + /// sub. + /// username. + /// scope. + /// iss. + /// aud. + /// iat. + /// exp. + /// nbf. + public IntrospectResponse(string jti = default(string), bool active = default(bool), string tokenType = default(string), string clientId = default(string), string sub = default(string), string username = default(string), string scope = default(string), string iss = default(string), string aud = default(string), long? iat = default(long?), long? exp = default(long?), long? nbf = default(long?)) + { + this.Jti = jti; + this.Active = active; + this.TokenType = tokenType; + this.ClientId = clientId; + this.Sub = sub; + this.Username = username; + this.Scope = scope; + this.Iss = iss; + this.Aud = aud; + this.Iat = iat; + this.Exp = exp; + this.Nbf = nbf; + } + + /// + /// Gets or Sets Jti + /// + [DataMember(Name = "jti", EmitDefaultValue = true)] + public string Jti { get; set; } + + /// + /// Gets or Sets Active + /// + [DataMember(Name = "active", EmitDefaultValue = true)] + public bool Active { get; set; } + + /// + /// Gets or Sets TokenType + /// + [DataMember(Name = "token_type", EmitDefaultValue = true)] + public string TokenType { get; set; } + + /// + /// Gets or Sets ClientId + /// + [DataMember(Name = "client_id", EmitDefaultValue = true)] + public string ClientId { get; set; } + + /// + /// Gets or Sets Sub + /// + [DataMember(Name = "sub", EmitDefaultValue = true)] + public string Sub { get; set; } + + /// + /// Gets or Sets Username + /// + [DataMember(Name = "username", EmitDefaultValue = true)] + public string Username { get; set; } + + /// + /// Gets or Sets Scope + /// + [DataMember(Name = "scope", EmitDefaultValue = true)] + public string Scope { get; set; } + + /// + /// Gets or Sets Iss + /// + [DataMember(Name = "iss", EmitDefaultValue = true)] + public string Iss { get; set; } + + /// + /// Gets or Sets Aud + /// + [DataMember(Name = "aud", EmitDefaultValue = true)] + public string Aud { get; set; } + + /// + /// Gets or Sets Iat + /// + [DataMember(Name = "iat", EmitDefaultValue = true)] + public long? Iat { get; set; } + + /// + /// Gets or Sets Exp + /// + [DataMember(Name = "exp", EmitDefaultValue = true)] + public long? Exp { get; set; } + + /// + /// Gets or Sets Nbf + /// + [DataMember(Name = "nbf", EmitDefaultValue = true)] + public long? Nbf { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class IntrospectResponse {\n"); + sb.Append(" Jti: ").Append(Jti).Append("\n"); + sb.Append(" Active: ").Append(Active).Append("\n"); + sb.Append(" TokenType: ").Append(TokenType).Append("\n"); + sb.Append(" ClientId: ").Append(ClientId).Append("\n"); + sb.Append(" Sub: ").Append(Sub).Append("\n"); + sb.Append(" Username: ").Append(Username).Append("\n"); + sb.Append(" Scope: ").Append(Scope).Append("\n"); + sb.Append(" Iss: ").Append(Iss).Append("\n"); + sb.Append(" Aud: ").Append(Aud).Append("\n"); + sb.Append(" Iat: ").Append(Iat).Append("\n"); + sb.Append(" Exp: ").Append(Exp).Append("\n"); + sb.Append(" Nbf: ").Append(Nbf).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/Tribufu.Generated/Model/IpAddress.cs b/src/Tribufu/Model/IpAddress.cs similarity index 98% rename from src/Tribufu.Generated/Model/IpAddress.cs rename to src/Tribufu/Model/IpAddress.cs index dfc86bd..f17ff5e 100644 --- a/src/Tribufu.Generated/Model/IpAddress.cs +++ b/src/Tribufu/Model/IpAddress.cs @@ -1,9 +1,9 @@ /* * Tribufu API * - * REST API to access Tribufu services. + * API to access Tribufu services. * - * The version of the OpenAPI document: 1.1.0 + * The version of the OpenAPI document: 1.2.6 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -22,9 +22,9 @@ using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; using System.ComponentModel.DataAnnotations; -using OpenAPIDateConverter = Tribufu.Generated.Client.OpenAPIDateConverter; +using OpenAPIDateConverter = Tribufu.Client.OpenAPIDateConverter; -namespace Tribufu.Generated.Model +namespace Tribufu.Model { /// /// IpAddress diff --git a/src/Tribufu.Generated/Model/LeaderboardItem.cs b/src/Tribufu/Model/LeaderboardItem.cs similarity index 95% rename from src/Tribufu.Generated/Model/LeaderboardItem.cs rename to src/Tribufu/Model/LeaderboardItem.cs index 4967692..81a5bb2 100644 --- a/src/Tribufu.Generated/Model/LeaderboardItem.cs +++ b/src/Tribufu/Model/LeaderboardItem.cs @@ -1,9 +1,9 @@ /* * Tribufu API * - * REST API to access Tribufu services. + * API to access Tribufu services. * - * The version of the OpenAPI document: 1.1.0 + * The version of the OpenAPI document: 1.2.6 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -22,9 +22,9 @@ using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; using System.ComponentModel.DataAnnotations; -using OpenAPIDateConverter = Tribufu.Generated.Client.OpenAPIDateConverter; +using OpenAPIDateConverter = Tribufu.Client.OpenAPIDateConverter; -namespace Tribufu.Generated.Model +namespace Tribufu.Model { /// /// LeaderboardItem diff --git a/src/Tribufu.Generated/Model/LeaderboardOrder.cs b/src/Tribufu/Model/LeaderboardOrder.cs similarity index 82% rename from src/Tribufu.Generated/Model/LeaderboardOrder.cs rename to src/Tribufu/Model/LeaderboardOrder.cs index 1f103f7..0b10b5d 100644 --- a/src/Tribufu.Generated/Model/LeaderboardOrder.cs +++ b/src/Tribufu/Model/LeaderboardOrder.cs @@ -1,9 +1,9 @@ /* * Tribufu API * - * REST API to access Tribufu services. + * API to access Tribufu services. * - * The version of the OpenAPI document: 1.1.0 + * The version of the OpenAPI document: 1.2.6 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -22,9 +22,9 @@ using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; using System.ComponentModel.DataAnnotations; -using OpenAPIDateConverter = Tribufu.Generated.Client.OpenAPIDateConverter; +using OpenAPIDateConverter = Tribufu.Client.OpenAPIDateConverter; -namespace Tribufu.Generated.Model +namespace Tribufu.Model { /// /// Defines LeaderboardOrder diff --git a/src/Tribufu.Generated/Model/LoginProvider.cs b/src/Tribufu/Model/LoginProvider.cs similarity index 89% rename from src/Tribufu.Generated/Model/LoginProvider.cs rename to src/Tribufu/Model/LoginProvider.cs index 92dfbee..98afd9c 100644 --- a/src/Tribufu.Generated/Model/LoginProvider.cs +++ b/src/Tribufu/Model/LoginProvider.cs @@ -1,9 +1,9 @@ /* * Tribufu API * - * REST API to access Tribufu services. + * API to access Tribufu services. * - * The version of the OpenAPI document: 1.1.0 + * The version of the OpenAPI document: 1.2.6 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -22,9 +22,9 @@ using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; using System.ComponentModel.DataAnnotations; -using OpenAPIDateConverter = Tribufu.Generated.Client.OpenAPIDateConverter; +using OpenAPIDateConverter = Tribufu.Client.OpenAPIDateConverter; -namespace Tribufu.Generated.Model +namespace Tribufu.Model { /// /// Defines LoginProvider diff --git a/src/Tribufu/Model/ModelClient.cs b/src/Tribufu/Model/ModelClient.cs new file mode 100644 index 0000000..df70048 --- /dev/null +++ b/src/Tribufu/Model/ModelClient.cs @@ -0,0 +1,225 @@ +/* + * Tribufu API + * + * API to access Tribufu services. + * + * The version of the OpenAPI document: 1.2.6 + * Contact: contact@tribufu.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = Tribufu.Client.OpenAPIDateConverter; + +namespace Tribufu.Model +{ + /// + /// ModelClient + /// + [DataContract(Name = "varClient")] + public partial class ModelClient : IValidatableObject + { + + /// + /// Gets or Sets Type + /// + [DataMember(Name = "type", EmitDefaultValue = false)] + public ClientType? Type { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected ModelClient() { } + /// + /// Initializes a new instance of the class. + /// + /// id. + /// name (required). + /// type. + /// organizationId. + /// trusted. + /// websiteUrl. + /// photoUrl. + /// backgroundUrl. + /// redirects. + /// scopes. + /// created. + /// updated. + public ModelClient(string id = default(string), string name = default(string), ClientType? type = default(ClientType?), string organizationId = default(string), bool trusted = default(bool), string websiteUrl = default(string), string photoUrl = default(string), string backgroundUrl = default(string), string redirects = default(string), string scopes = default(string), DateTime created = default(DateTime), DateTime? updated = default(DateTime?)) + { + // to ensure "name" is required (not null) + if (name == null) + { + throw new ArgumentNullException("name is a required property for ModelClient and cannot be null"); + } + this.Name = name; + this.Id = id; + this.Type = type; + this.OrganizationId = organizationId; + this.Trusted = trusted; + this.WebsiteUrl = websiteUrl; + this.PhotoUrl = photoUrl; + this.BackgroundUrl = backgroundUrl; + this.Redirects = redirects; + this.Scopes = scopes; + this.Created = created; + this.Updated = updated; + } + + /// + /// Gets or Sets Id + /// + [DataMember(Name = "id", EmitDefaultValue = false)] + public string Id { get; set; } + + /// + /// Gets or Sets Name + /// + [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] + public string Name { get; set; } + + /// + /// Gets or Sets OrganizationId + /// + [DataMember(Name = "organization_id", EmitDefaultValue = false)] + public string OrganizationId { get; set; } + + /// + /// Gets or Sets Trusted + /// + [DataMember(Name = "trusted", EmitDefaultValue = true)] + public bool Trusted { get; set; } + + /// + /// Gets or Sets WebsiteUrl + /// + [DataMember(Name = "website_url", EmitDefaultValue = true)] + public string WebsiteUrl { get; set; } + + /// + /// Gets or Sets PhotoUrl + /// + [DataMember(Name = "photo_url", EmitDefaultValue = true)] + public string PhotoUrl { get; set; } + + /// + /// Gets or Sets BackgroundUrl + /// + [DataMember(Name = "background_url", EmitDefaultValue = true)] + public string BackgroundUrl { get; set; } + + /// + /// Gets or Sets Redirects + /// + [DataMember(Name = "redirects", EmitDefaultValue = true)] + public string Redirects { get; set; } + + /// + /// Gets or Sets Scopes + /// + [DataMember(Name = "scopes", EmitDefaultValue = true)] + public string Scopes { get; set; } + + /// + /// Gets or Sets Permissions + /// + [DataMember(Name = "permissions", EmitDefaultValue = true)] + public List Permissions { get; private set; } + + /// + /// Returns false as Permissions should not be serialized given that it's read-only. + /// + /// false (boolean) + public bool ShouldSerializePermissions() + { + return false; + } + /// + /// Gets or Sets Created + /// + [DataMember(Name = "created", EmitDefaultValue = false)] + public DateTime Created { get; set; } + + /// + /// Gets or Sets Updated + /// + [DataMember(Name = "updated", EmitDefaultValue = true)] + public DateTime? Updated { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class ModelClient {\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append(" OrganizationId: ").Append(OrganizationId).Append("\n"); + sb.Append(" Trusted: ").Append(Trusted).Append("\n"); + sb.Append(" WebsiteUrl: ").Append(WebsiteUrl).Append("\n"); + sb.Append(" PhotoUrl: ").Append(PhotoUrl).Append("\n"); + sb.Append(" BackgroundUrl: ").Append(BackgroundUrl).Append("\n"); + sb.Append(" Redirects: ").Append(Redirects).Append("\n"); + sb.Append(" Scopes: ").Append(Scopes).Append("\n"); + sb.Append(" Permissions: ").Append(Permissions).Append("\n"); + sb.Append(" Created: ").Append(Created).Append("\n"); + sb.Append(" Updated: ").Append(Updated).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + // Name (string) maxLength + if (this.Name != null && this.Name.Length > 75) + { + yield return new ValidationResult("Invalid value for Name, length must be less than 75.", new [] { "Name" }); + } + + // PhotoUrl (string) maxLength + if (this.PhotoUrl != null && this.PhotoUrl.Length > 255) + { + yield return new ValidationResult("Invalid value for PhotoUrl, length must be less than 255.", new [] { "PhotoUrl" }); + } + + // BackgroundUrl (string) maxLength + if (this.BackgroundUrl != null && this.BackgroundUrl.Length > 255) + { + yield return new ValidationResult("Invalid value for BackgroundUrl, length must be less than 255.", new [] { "BackgroundUrl" }); + } + + yield break; + } + } + +} diff --git a/src/Tribufu.Generated/Model/Package.cs b/src/Tribufu/Model/Package.cs similarity index 68% rename from src/Tribufu.Generated/Model/Package.cs rename to src/Tribufu/Model/Package.cs index 8c36319..c4ae0c4 100644 --- a/src/Tribufu.Generated/Model/Package.cs +++ b/src/Tribufu/Model/Package.cs @@ -1,9 +1,9 @@ /* * Tribufu API * - * REST API to access Tribufu services. + * API to access Tribufu services. * - * The version of the OpenAPI document: 1.1.0 + * The version of the OpenAPI document: 1.2.6 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -22,9 +22,9 @@ using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; using System.ComponentModel.DataAnnotations; -using OpenAPIDateConverter = Tribufu.Generated.Client.OpenAPIDateConverter; +using OpenAPIDateConverter = Tribufu.Client.OpenAPIDateConverter; -namespace Tribufu.Generated.Model +namespace Tribufu.Model { /// /// Package @@ -32,33 +32,48 @@ namespace Tribufu.Generated.Model [DataContract(Name = "Package")] public partial class Package : IValidatableObject { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected Package() { } /// /// Initializes a new instance of the class. /// /// id. - /// name. + /// name (required). /// description. - /// imageUrl. /// authorId. - /// varVersion. - /// fileUrl. - /// rawSize. + /// imageUrl (required). + /// applicationId. + /// categoryId. /// downloadCount. /// lastDownload. + /// releases. /// created. /// updated. - public Package(string id = default(string), string name = default(string), string description = default(string), string imageUrl = default(string), string authorId = default(string), string varVersion = default(string), string fileUrl = default(string), double rawSize = default(double), int downloadCount = default(int), DateTime? lastDownload = default(DateTime?), DateTime created = default(DateTime), DateTime? updated = default(DateTime?)) + public Package(string id = default(string), string name = default(string), string description = default(string), string authorId = default(string), string imageUrl = default(string), string applicationId = default(string), string categoryId = default(string), int downloadCount = default(int), DateTime? lastDownload = default(DateTime?), List releases = default(List), DateTime created = default(DateTime), DateTime? updated = default(DateTime?)) { - this.Id = id; + // to ensure "name" is required (not null) + if (name == null) + { + throw new ArgumentNullException("name is a required property for Package and cannot be null"); + } this.Name = name; - this.Description = description; + // to ensure "imageUrl" is required (not null) + if (imageUrl == null) + { + throw new ArgumentNullException("imageUrl is a required property for Package and cannot be null"); + } this.ImageUrl = imageUrl; + this.Id = id; + this.Description = description; this.AuthorId = authorId; - this.VarVersion = varVersion; - this.FileUrl = fileUrl; - this.RawSize = rawSize; + this.ApplicationId = applicationId; + this.CategoryId = categoryId; this.DownloadCount = downloadCount; this.LastDownload = lastDownload; + this.Releases = releases; this.Created = created; this.Updated = updated; } @@ -72,7 +87,7 @@ namespace Tribufu.Generated.Model /// /// Gets or Sets Name /// - [DataMember(Name = "name", EmitDefaultValue = true)] + [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] public string Name { get; set; } /// @@ -81,12 +96,6 @@ namespace Tribufu.Generated.Model [DataMember(Name = "description", EmitDefaultValue = true)] public string Description { get; set; } - /// - /// Gets or Sets ImageUrl - /// - [DataMember(Name = "image_url", EmitDefaultValue = true)] - public string ImageUrl { get; set; } - /// /// Gets or Sets AuthorId /// @@ -94,22 +103,22 @@ namespace Tribufu.Generated.Model public string AuthorId { get; set; } /// - /// Gets or Sets VarVersion + /// Gets or Sets ImageUrl /// - [DataMember(Name = "version", EmitDefaultValue = true)] - public string VarVersion { get; set; } + [DataMember(Name = "image_url", IsRequired = true, EmitDefaultValue = true)] + public string ImageUrl { get; set; } /// - /// Gets or Sets FileUrl + /// Gets or Sets ApplicationId /// - [DataMember(Name = "file_url", EmitDefaultValue = true)] - public string FileUrl { get; set; } + [DataMember(Name = "application_id", EmitDefaultValue = true)] + public string ApplicationId { get; set; } /// - /// Gets or Sets RawSize + /// Gets or Sets CategoryId /// - [DataMember(Name = "raw_size", EmitDefaultValue = false)] - public double RawSize { get; set; } + [DataMember(Name = "category_id", EmitDefaultValue = true)] + public string CategoryId { get; set; } /// /// Gets or Sets DownloadCount @@ -123,6 +132,12 @@ namespace Tribufu.Generated.Model [DataMember(Name = "last_download", EmitDefaultValue = true)] public DateTime? LastDownload { get; set; } + /// + /// Gets or Sets Releases + /// + [DataMember(Name = "releases", EmitDefaultValue = true)] + public List Releases { get; set; } + /// /// Gets or Sets Created /// @@ -146,13 +161,13 @@ namespace Tribufu.Generated.Model sb.Append(" Id: ").Append(Id).Append("\n"); sb.Append(" Name: ").Append(Name).Append("\n"); sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" ImageUrl: ").Append(ImageUrl).Append("\n"); sb.Append(" AuthorId: ").Append(AuthorId).Append("\n"); - sb.Append(" VarVersion: ").Append(VarVersion).Append("\n"); - sb.Append(" FileUrl: ").Append(FileUrl).Append("\n"); - sb.Append(" RawSize: ").Append(RawSize).Append("\n"); + sb.Append(" ImageUrl: ").Append(ImageUrl).Append("\n"); + sb.Append(" ApplicationId: ").Append(ApplicationId).Append("\n"); + sb.Append(" CategoryId: ").Append(CategoryId).Append("\n"); sb.Append(" DownloadCount: ").Append(DownloadCount).Append("\n"); sb.Append(" LastDownload: ").Append(LastDownload).Append("\n"); + sb.Append(" Releases: ").Append(Releases).Append("\n"); sb.Append(" Created: ").Append(Created).Append("\n"); sb.Append(" Updated: ").Append(Updated).Append("\n"); sb.Append("}\n"); diff --git a/src/Tribufu/Model/PackageRelease.cs b/src/Tribufu/Model/PackageRelease.cs new file mode 100644 index 0000000..14ff2a2 --- /dev/null +++ b/src/Tribufu/Model/PackageRelease.cs @@ -0,0 +1,159 @@ +/* + * Tribufu API + * + * API to access Tribufu services. + * + * The version of the OpenAPI document: 1.2.6 + * Contact: contact@tribufu.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = Tribufu.Client.OpenAPIDateConverter; + +namespace Tribufu.Model +{ + /// + /// PackageRelease + /// + [DataContract(Name = "PackageRelease")] + public partial class PackageRelease : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected PackageRelease() { } + /// + /// Initializes a new instance of the class. + /// + /// id. + /// varVersion (required). + /// packageId. + /// notes. + /// created. + /// updated. + public PackageRelease(string id = default(string), string varVersion = default(string), string packageId = default(string), string notes = default(string), DateTime created = default(DateTime), DateTime? updated = default(DateTime?)) + { + // to ensure "varVersion" is required (not null) + if (varVersion == null) + { + throw new ArgumentNullException("varVersion is a required property for PackageRelease and cannot be null"); + } + this.VarVersion = varVersion; + this.Id = id; + this.PackageId = packageId; + this.Notes = notes; + this.Created = created; + this.Updated = updated; + } + + /// + /// Gets or Sets Id + /// + [DataMember(Name = "id", EmitDefaultValue = false)] + public string Id { get; set; } + + /// + /// Gets or Sets VarVersion + /// + [DataMember(Name = "version", IsRequired = true, EmitDefaultValue = true)] + public string VarVersion { get; set; } + + /// + /// Gets or Sets PackageId + /// + [DataMember(Name = "package_id", EmitDefaultValue = false)] + public string PackageId { get; set; } + + /// + /// Gets or Sets Notes + /// + [DataMember(Name = "notes", EmitDefaultValue = true)] + public string Notes { get; set; } + + /// + /// Gets or Sets Files + /// + [DataMember(Name = "files", EmitDefaultValue = true)] + public List Files { get; private set; } + + /// + /// Returns false as Files should not be serialized given that it's read-only. + /// + /// false (boolean) + public bool ShouldSerializeFiles() + { + return false; + } + /// + /// Gets or Sets Created + /// + [DataMember(Name = "created", EmitDefaultValue = false)] + public DateTime Created { get; set; } + + /// + /// Gets or Sets Updated + /// + [DataMember(Name = "updated", EmitDefaultValue = true)] + public DateTime? Updated { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class PackageRelease {\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" VarVersion: ").Append(VarVersion).Append("\n"); + sb.Append(" PackageId: ").Append(PackageId).Append("\n"); + sb.Append(" Notes: ").Append(Notes).Append("\n"); + sb.Append(" Files: ").Append(Files).Append("\n"); + sb.Append(" Created: ").Append(Created).Append("\n"); + sb.Append(" Updated: ").Append(Updated).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + // VarVersion (string) maxLength + if (this.VarVersion != null && this.VarVersion.Length > 45) + { + yield return new ValidationResult("Invalid value for VarVersion, length must be less than 45.", new [] { "VarVersion" }); + } + + yield break; + } + } + +} diff --git a/src/Tribufu.Generated/Model/Profile.cs b/src/Tribufu/Model/Profile.cs similarity index 97% rename from src/Tribufu.Generated/Model/Profile.cs rename to src/Tribufu/Model/Profile.cs index adc7828..e076ba5 100644 --- a/src/Tribufu.Generated/Model/Profile.cs +++ b/src/Tribufu/Model/Profile.cs @@ -1,9 +1,9 @@ /* * Tribufu API * - * REST API to access Tribufu services. + * API to access Tribufu services. * - * The version of the OpenAPI document: 1.1.0 + * The version of the OpenAPI document: 1.2.6 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -22,9 +22,9 @@ using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; using System.ComponentModel.DataAnnotations; -using OpenAPIDateConverter = Tribufu.Generated.Client.OpenAPIDateConverter; +using OpenAPIDateConverter = Tribufu.Client.OpenAPIDateConverter; -namespace Tribufu.Generated.Model +namespace Tribufu.Model { /// /// Profile diff --git a/src/Tribufu.Generated/Model/ProfileGame.cs b/src/Tribufu/Model/ProfileGame.cs similarity index 97% rename from src/Tribufu.Generated/Model/ProfileGame.cs rename to src/Tribufu/Model/ProfileGame.cs index fd9519d..43ef46e 100644 --- a/src/Tribufu.Generated/Model/ProfileGame.cs +++ b/src/Tribufu/Model/ProfileGame.cs @@ -1,9 +1,9 @@ /* * Tribufu API * - * REST API to access Tribufu services. + * API to access Tribufu services. * - * The version of the OpenAPI document: 1.1.0 + * The version of the OpenAPI document: 1.2.6 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -22,9 +22,9 @@ using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; using System.ComponentModel.DataAnnotations; -using OpenAPIDateConverter = Tribufu.Generated.Client.OpenAPIDateConverter; +using OpenAPIDateConverter = Tribufu.Client.OpenAPIDateConverter; -namespace Tribufu.Generated.Model +namespace Tribufu.Model { /// /// ProfileGame diff --git a/src/Tribufu.Generated/Model/ProfileGroup.cs b/src/Tribufu/Model/ProfileGroup.cs similarity index 96% rename from src/Tribufu.Generated/Model/ProfileGroup.cs rename to src/Tribufu/Model/ProfileGroup.cs index 6574720..f64691e 100644 --- a/src/Tribufu.Generated/Model/ProfileGroup.cs +++ b/src/Tribufu/Model/ProfileGroup.cs @@ -1,9 +1,9 @@ /* * Tribufu API * - * REST API to access Tribufu services. + * API to access Tribufu services. * - * The version of the OpenAPI document: 1.1.0 + * The version of the OpenAPI document: 1.2.6 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -22,9 +22,9 @@ using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; using System.ComponentModel.DataAnnotations; -using OpenAPIDateConverter = Tribufu.Generated.Client.OpenAPIDateConverter; +using OpenAPIDateConverter = Tribufu.Client.OpenAPIDateConverter; -namespace Tribufu.Generated.Model +namespace Tribufu.Model { /// /// ProfileGroup diff --git a/src/Tribufu.Generated/Model/ResponseType.cs b/src/Tribufu/Model/ResponseType.cs similarity index 82% rename from src/Tribufu.Generated/Model/ResponseType.cs rename to src/Tribufu/Model/ResponseType.cs index 0d3ccff..946e975 100644 --- a/src/Tribufu.Generated/Model/ResponseType.cs +++ b/src/Tribufu/Model/ResponseType.cs @@ -1,9 +1,9 @@ /* * Tribufu API * - * REST API to access Tribufu services. + * API to access Tribufu services. * - * The version of the OpenAPI document: 1.1.0 + * The version of the OpenAPI document: 1.2.6 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -22,9 +22,9 @@ using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; using System.ComponentModel.DataAnnotations; -using OpenAPIDateConverter = Tribufu.Generated.Client.OpenAPIDateConverter; +using OpenAPIDateConverter = Tribufu.Client.OpenAPIDateConverter; -namespace Tribufu.Generated.Model +namespace Tribufu.Model { /// /// Defines ResponseType diff --git a/src/Tribufu.Generated/Model/RevokeRequest.cs b/src/Tribufu/Model/RevokeRequest.cs similarity index 70% rename from src/Tribufu.Generated/Model/RevokeRequest.cs rename to src/Tribufu/Model/RevokeRequest.cs index 75cf6ea..78905ca 100644 --- a/src/Tribufu.Generated/Model/RevokeRequest.cs +++ b/src/Tribufu/Model/RevokeRequest.cs @@ -1,9 +1,9 @@ /* * Tribufu API * - * REST API to access Tribufu services. + * API to access Tribufu services. * - * The version of the OpenAPI document: 1.1.0 + * The version of the OpenAPI document: 1.2.6 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -22,9 +22,9 @@ using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; using System.ComponentModel.DataAnnotations; -using OpenAPIDateConverter = Tribufu.Generated.Client.OpenAPIDateConverter; +using OpenAPIDateConverter = Tribufu.Client.OpenAPIDateConverter; -namespace Tribufu.Generated.Model +namespace Tribufu.Model { /// /// RevokeRequest @@ -36,15 +36,25 @@ namespace Tribufu.Generated.Model /// /// Gets or Sets TokenTypeHint /// - [DataMember(Name = "token_type_hint", EmitDefaultValue = false)] - public TokenHintType? TokenTypeHint { get; set; } + [DataMember(Name = "token_type_hint", IsRequired = true, EmitDefaultValue = true)] + public TokenHintType TokenTypeHint { get; set; } /// /// Initializes a new instance of the class. /// - /// token. - /// tokenTypeHint. - public RevokeRequest(string token = default(string), TokenHintType? tokenTypeHint = default(TokenHintType?)) + [JsonConstructorAttribute] + protected RevokeRequest() { } + /// + /// Initializes a new instance of the class. + /// + /// token (required). + /// tokenTypeHint (required). + public RevokeRequest(string token = default(string), TokenHintType tokenTypeHint = default(TokenHintType)) { + // to ensure "token" is required (not null) + if (token == null) + { + throw new ArgumentNullException("token is a required property for RevokeRequest and cannot be null"); + } this.Token = token; this.TokenTypeHint = tokenTypeHint; } @@ -52,7 +62,7 @@ namespace Tribufu.Generated.Model /// /// Gets or Sets Token /// - [DataMember(Name = "token", EmitDefaultValue = true)] + [DataMember(Name = "token", IsRequired = true, EmitDefaultValue = true)] public string Token { get; set; } /// diff --git a/src/Tribufu.Generated/Model/SearchRequest.cs b/src/Tribufu/Model/Search.cs similarity index 67% rename from src/Tribufu.Generated/Model/SearchRequest.cs rename to src/Tribufu/Model/Search.cs index a97dbae..f752b19 100644 --- a/src/Tribufu.Generated/Model/SearchRequest.cs +++ b/src/Tribufu/Model/Search.cs @@ -1,9 +1,9 @@ /* * Tribufu API * - * REST API to access Tribufu services. + * API to access Tribufu services. * - * The version of the OpenAPI document: 1.1.0 + * The version of the OpenAPI document: 1.2.6 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -22,32 +22,42 @@ using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; using System.ComponentModel.DataAnnotations; -using OpenAPIDateConverter = Tribufu.Generated.Client.OpenAPIDateConverter; +using OpenAPIDateConverter = Tribufu.Client.OpenAPIDateConverter; -namespace Tribufu.Generated.Model +namespace Tribufu.Model { /// - /// SearchRequest + /// Search /// - [DataContract(Name = "SearchRequest")] - public partial class SearchRequest : IValidatableObject + [DataContract(Name = "Search")] + public partial class Search : IValidatableObject { /// /// Gets or Sets Type /// - [DataMember(Name = "type", EmitDefaultValue = false)] - public SearchType? Type { get; set; } + [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] + public SearchType Type { get; set; } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - /// type. - /// query. + [JsonConstructorAttribute] + protected Search() { } + /// + /// Initializes a new instance of the class. + /// + /// type (required). + /// query (required). /// page. /// gameId. - public SearchRequest(SearchType? type = default(SearchType?), string query = default(string), int? page = default(int?), string gameId = default(string)) + public Search(SearchType type = default(SearchType), string query = default(string), int? page = default(int?), string gameId = default(string)) { this.Type = type; + // to ensure "query" is required (not null) + if (query == null) + { + throw new ArgumentNullException("query is a required property for Search and cannot be null"); + } this.Query = query; this.Page = page; this.GameId = gameId; @@ -56,7 +66,7 @@ namespace Tribufu.Generated.Model /// /// Gets or Sets Query /// - [DataMember(Name = "query", EmitDefaultValue = true)] + [DataMember(Name = "query", IsRequired = true, EmitDefaultValue = true)] public string Query { get; set; } /// @@ -78,7 +88,7 @@ namespace Tribufu.Generated.Model public override string ToString() { StringBuilder sb = new StringBuilder(); - sb.Append("class SearchRequest {\n"); + sb.Append("class Search {\n"); sb.Append(" Type: ").Append(Type).Append("\n"); sb.Append(" Query: ").Append(Query).Append("\n"); sb.Append(" Page: ").Append(Page).Append("\n"); diff --git a/src/Tribufu.Generated/Model/SearchType.cs b/src/Tribufu/Model/SearchType.cs similarity index 70% rename from src/Tribufu.Generated/Model/SearchType.cs rename to src/Tribufu/Model/SearchType.cs index c72bb3e..b992591 100644 --- a/src/Tribufu.Generated/Model/SearchType.cs +++ b/src/Tribufu/Model/SearchType.cs @@ -1,9 +1,9 @@ /* * Tribufu API * - * REST API to access Tribufu services. + * API to access Tribufu services. * - * The version of the OpenAPI document: 1.1.0 + * The version of the OpenAPI document: 1.2.6 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -22,9 +22,9 @@ using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; using System.ComponentModel.DataAnnotations; -using OpenAPIDateConverter = Tribufu.Generated.Client.OpenAPIDateConverter; +using OpenAPIDateConverter = Tribufu.Client.OpenAPIDateConverter; -namespace Tribufu.Generated.Model +namespace Tribufu.Model { /// /// Defines SearchType @@ -45,16 +45,16 @@ namespace Tribufu.Generated.Model Group, /// - /// Enum Server for value: server + /// Enum GameServer for value: game_server /// - [EnumMember(Value = "server")] - Server, + [EnumMember(Value = "game_server")] + GameServer, /// - /// Enum Cluster for value: cluster + /// Enum GameServerCluster for value: game_server_cluster /// - [EnumMember(Value = "cluster")] - Cluster + [EnumMember(Value = "game_server_cluster")] + GameServerCluster } } diff --git a/src/Tribufu.Generated/Model/ServerMetrics.cs b/src/Tribufu/Model/ServerMetrics.cs similarity index 94% rename from src/Tribufu.Generated/Model/ServerMetrics.cs rename to src/Tribufu/Model/ServerMetrics.cs index 6d63a58..00a5230 100644 --- a/src/Tribufu.Generated/Model/ServerMetrics.cs +++ b/src/Tribufu/Model/ServerMetrics.cs @@ -1,9 +1,9 @@ /* * Tribufu API * - * REST API to access Tribufu services. + * API to access Tribufu services. * - * The version of the OpenAPI document: 1.1.0 + * The version of the OpenAPI document: 1.2.6 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -22,9 +22,9 @@ using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; using System.ComponentModel.DataAnnotations; -using OpenAPIDateConverter = Tribufu.Generated.Client.OpenAPIDateConverter; +using OpenAPIDateConverter = Tribufu.Client.OpenAPIDateConverter; -namespace Tribufu.Generated.Model +namespace Tribufu.Model { /// /// ServerMetrics diff --git a/src/Tribufu.Generated/Model/Subscription.cs b/src/Tribufu/Model/Subscription.cs similarity index 82% rename from src/Tribufu.Generated/Model/Subscription.cs rename to src/Tribufu/Model/Subscription.cs index 2bafbfe..3dafafe 100644 --- a/src/Tribufu.Generated/Model/Subscription.cs +++ b/src/Tribufu/Model/Subscription.cs @@ -1,9 +1,9 @@ /* * Tribufu API * - * REST API to access Tribufu services. + * API to access Tribufu services. * - * The version of the OpenAPI document: 1.1.0 + * The version of the OpenAPI document: 1.2.6 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -22,9 +22,9 @@ using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; using System.ComponentModel.DataAnnotations; -using OpenAPIDateConverter = Tribufu.Generated.Client.OpenAPIDateConverter; +using OpenAPIDateConverter = Tribufu.Client.OpenAPIDateConverter; -namespace Tribufu.Generated.Model +namespace Tribufu.Model { /// /// Subscription @@ -32,21 +32,33 @@ namespace Tribufu.Generated.Model [DataContract(Name = "Subscription")] public partial class Subscription : IValidatableObject { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected Subscription() { } /// /// Initializes a new instance of the class. /// /// id. - /// name. + /// name (required). /// description. /// imageUrl. + /// prices. /// created. /// updated. - public Subscription(string id = default(string), string name = default(string), string description = default(string), string imageUrl = default(string), DateTime created = default(DateTime), DateTime? updated = default(DateTime?)) + public Subscription(string id = default(string), string name = default(string), string description = default(string), string imageUrl = default(string), List prices = default(List), DateTime created = default(DateTime), DateTime? updated = default(DateTime?)) { - this.Id = id; + // to ensure "name" is required (not null) + if (name == null) + { + throw new ArgumentNullException("name is a required property for Subscription and cannot be null"); + } this.Name = name; + this.Id = id; this.Description = description; this.ImageUrl = imageUrl; + this.Prices = prices; this.Created = created; this.Updated = updated; } @@ -60,7 +72,7 @@ namespace Tribufu.Generated.Model /// /// Gets or Sets Name /// - [DataMember(Name = "name", EmitDefaultValue = true)] + [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] public string Name { get; set; } /// @@ -79,16 +91,8 @@ namespace Tribufu.Generated.Model /// Gets or Sets Prices /// [DataMember(Name = "prices", EmitDefaultValue = true)] - public Dictionary Prices { get; private set; } + public List Prices { get; set; } - /// - /// Returns false as Prices should not be serialized given that it's read-only. - /// - /// false (boolean) - public bool ShouldSerializePrices() - { - return false; - } /// /// Gets or Sets Created /// diff --git a/src/Tribufu/Model/SubscriptionPrice.cs b/src/Tribufu/Model/SubscriptionPrice.cs new file mode 100644 index 0000000..c082ee5 --- /dev/null +++ b/src/Tribufu/Model/SubscriptionPrice.cs @@ -0,0 +1,117 @@ +/* + * Tribufu API + * + * API to access Tribufu services. + * + * The version of the OpenAPI document: 1.2.6 + * Contact: contact@tribufu.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = Tribufu.Client.OpenAPIDateConverter; + +namespace Tribufu.Model +{ + /// + /// SubscriptionPrice + /// + [DataContract(Name = "SubscriptionPrice")] + public partial class SubscriptionPrice : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected SubscriptionPrice() { } + /// + /// Initializes a new instance of the class. + /// + /// currency (required). + /// amount (required). + /// renewal. + public SubscriptionPrice(string currency = default(string), double amount = default(double), double? renewal = default(double?)) + { + // to ensure "currency" is required (not null) + if (currency == null) + { + throw new ArgumentNullException("currency is a required property for SubscriptionPrice and cannot be null"); + } + this.Currency = currency; + this.Amount = amount; + this.Renewal = renewal; + } + + /// + /// Gets or Sets Currency + /// + [DataMember(Name = "currency", IsRequired = true, EmitDefaultValue = true)] + public string Currency { get; set; } + + /// + /// Gets or Sets Amount + /// + [DataMember(Name = "amount", IsRequired = true, EmitDefaultValue = true)] + public double Amount { get; set; } + + /// + /// Gets or Sets Renewal + /// + [DataMember(Name = "renewal", EmitDefaultValue = true)] + public double? Renewal { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class SubscriptionPrice {\n"); + sb.Append(" Currency: ").Append(Currency).Append("\n"); + sb.Append(" Amount: ").Append(Amount).Append("\n"); + sb.Append(" Renewal: ").Append(Renewal).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + // Currency (string) maxLength + if (this.Currency != null && this.Currency.Length > 3) + { + yield return new ValidationResult("Invalid value for Currency, length must be less than 3.", new [] { "Currency" }); + } + + yield break; + } + } + +} diff --git a/src/Tribufu.Generated/Model/TokenHintType.cs b/src/Tribufu/Model/TokenHintType.cs similarity index 83% rename from src/Tribufu.Generated/Model/TokenHintType.cs rename to src/Tribufu/Model/TokenHintType.cs index ff19eec..084e654 100644 --- a/src/Tribufu.Generated/Model/TokenHintType.cs +++ b/src/Tribufu/Model/TokenHintType.cs @@ -1,9 +1,9 @@ /* * Tribufu API * - * REST API to access Tribufu services. + * API to access Tribufu services. * - * The version of the OpenAPI document: 1.1.0 + * The version of the OpenAPI document: 1.2.6 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -22,9 +22,9 @@ using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; using System.ComponentModel.DataAnnotations; -using OpenAPIDateConverter = Tribufu.Generated.Client.OpenAPIDateConverter; +using OpenAPIDateConverter = Tribufu.Client.OpenAPIDateConverter; -namespace Tribufu.Generated.Model +namespace Tribufu.Model { /// /// Defines TokenHintType diff --git a/src/Tribufu.Generated/Model/TokenRequest.cs b/src/Tribufu/Model/TokenRequest.cs similarity index 87% rename from src/Tribufu.Generated/Model/TokenRequest.cs rename to src/Tribufu/Model/TokenRequest.cs index 4b686c8..b0f715c 100644 --- a/src/Tribufu.Generated/Model/TokenRequest.cs +++ b/src/Tribufu/Model/TokenRequest.cs @@ -1,9 +1,9 @@ /* * Tribufu API * - * REST API to access Tribufu services. + * API to access Tribufu services. * - * The version of the OpenAPI document: 1.1.0 + * The version of the OpenAPI document: 1.2.6 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -22,9 +22,9 @@ using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; using System.ComponentModel.DataAnnotations; -using OpenAPIDateConverter = Tribufu.Generated.Client.OpenAPIDateConverter; +using OpenAPIDateConverter = Tribufu.Client.OpenAPIDateConverter; -namespace Tribufu.Generated.Model +namespace Tribufu.Model { /// /// TokenRequest @@ -46,17 +46,15 @@ namespace Tribufu.Generated.Model /// username. /// password. /// refreshToken. - /// clientId. /// redirectUri. /// codeVerifier. - public TokenRequest(GrantType? grantType = default(GrantType?), string code = default(string), string username = default(string), string password = default(string), string refreshToken = default(string), string clientId = default(string), string redirectUri = default(string), string codeVerifier = default(string)) + public TokenRequest(GrantType? grantType = default(GrantType?), string code = default(string), string username = default(string), string password = default(string), string refreshToken = default(string), string redirectUri = default(string), string codeVerifier = default(string)) { this.GrantType = grantType; this.Code = code; this.Username = username; this.Password = password; this.RefreshToken = refreshToken; - this.ClientId = clientId; this.RedirectUri = redirectUri; this.CodeVerifier = codeVerifier; } @@ -85,12 +83,6 @@ namespace Tribufu.Generated.Model [DataMember(Name = "refresh_token", EmitDefaultValue = true)] public string RefreshToken { get; set; } - /// - /// Gets or Sets ClientId - /// - [DataMember(Name = "client_id", EmitDefaultValue = true)] - public string ClientId { get; set; } - /// /// Gets or Sets RedirectUri /// @@ -116,7 +108,6 @@ namespace Tribufu.Generated.Model sb.Append(" Username: ").Append(Username).Append("\n"); sb.Append(" Password: ").Append(Password).Append("\n"); sb.Append(" RefreshToken: ").Append(RefreshToken).Append("\n"); - sb.Append(" ClientId: ").Append(ClientId).Append("\n"); sb.Append(" RedirectUri: ").Append(RedirectUri).Append("\n"); sb.Append(" CodeVerifier: ").Append(CodeVerifier).Append("\n"); sb.Append("}\n"); diff --git a/src/Tribufu.Generated/Model/TokenResponse.cs b/src/Tribufu/Model/TokenResponse.cs similarity index 75% rename from src/Tribufu.Generated/Model/TokenResponse.cs rename to src/Tribufu/Model/TokenResponse.cs index c9f475f..ae3678a 100644 --- a/src/Tribufu.Generated/Model/TokenResponse.cs +++ b/src/Tribufu/Model/TokenResponse.cs @@ -1,9 +1,9 @@ /* * Tribufu API * - * REST API to access Tribufu services. + * API to access Tribufu services. * - * The version of the OpenAPI document: 1.1.0 + * The version of the OpenAPI document: 1.2.6 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -22,9 +22,9 @@ using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; using System.ComponentModel.DataAnnotations; -using OpenAPIDateConverter = Tribufu.Generated.Client.OpenAPIDateConverter; +using OpenAPIDateConverter = Tribufu.Client.OpenAPIDateConverter; -namespace Tribufu.Generated.Model +namespace Tribufu.Model { /// /// TokenResponse @@ -36,20 +36,30 @@ namespace Tribufu.Generated.Model /// /// Gets or Sets TokenType /// - [DataMember(Name = "token_type", EmitDefaultValue = false)] - public TokenType? TokenType { get; set; } + [DataMember(Name = "token_type", IsRequired = true, EmitDefaultValue = true)] + public TokenType TokenType { get; set; } /// /// Initializes a new instance of the class. /// - /// tokenType. - /// accessToken. + [JsonConstructorAttribute] + protected TokenResponse() { } + /// + /// Initializes a new instance of the class. + /// + /// tokenType (required). + /// accessToken (required). /// refreshToken. /// scope. /// state. /// expiresIn. - public TokenResponse(TokenType? tokenType = default(TokenType?), string accessToken = default(string), string refreshToken = default(string), string scope = default(string), string state = default(string), long expiresIn = default(long)) + public TokenResponse(TokenType tokenType = default(TokenType), string accessToken = default(string), string refreshToken = default(string), string scope = default(string), string state = default(string), long expiresIn = default(long)) { this.TokenType = tokenType; + // to ensure "accessToken" is required (not null) + if (accessToken == null) + { + throw new ArgumentNullException("accessToken is a required property for TokenResponse and cannot be null"); + } this.AccessToken = accessToken; this.RefreshToken = refreshToken; this.Scope = scope; @@ -60,7 +70,7 @@ namespace Tribufu.Generated.Model /// /// Gets or Sets AccessToken /// - [DataMember(Name = "access_token", EmitDefaultValue = true)] + [DataMember(Name = "access_token", IsRequired = true, EmitDefaultValue = true)] public string AccessToken { get; set; } /// diff --git a/src/Tribufu.Generated/Model/TokenType.cs b/src/Tribufu/Model/TokenType.cs similarity index 80% rename from src/Tribufu.Generated/Model/TokenType.cs rename to src/Tribufu/Model/TokenType.cs index b89cd3c..de2a33c 100644 --- a/src/Tribufu.Generated/Model/TokenType.cs +++ b/src/Tribufu/Model/TokenType.cs @@ -1,9 +1,9 @@ /* * Tribufu API * - * REST API to access Tribufu services. + * API to access Tribufu services. * - * The version of the OpenAPI document: 1.1.0 + * The version of the OpenAPI document: 1.2.6 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -22,9 +22,9 @@ using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; using System.ComponentModel.DataAnnotations; -using OpenAPIDateConverter = Tribufu.Generated.Client.OpenAPIDateConverter; +using OpenAPIDateConverter = Tribufu.Client.OpenAPIDateConverter; -namespace Tribufu.Generated.Model +namespace Tribufu.Model { /// /// Defines TokenType diff --git a/src/Tribufu.Generated/Model/UpdateProfile.cs b/src/Tribufu/Model/UpdateProfile.cs similarity index 77% rename from src/Tribufu.Generated/Model/UpdateProfile.cs rename to src/Tribufu/Model/UpdateProfile.cs index 4fbe86a..e0e9aec 100644 --- a/src/Tribufu.Generated/Model/UpdateProfile.cs +++ b/src/Tribufu/Model/UpdateProfile.cs @@ -1,9 +1,9 @@ /* * Tribufu API * - * REST API to access Tribufu services. + * API to access Tribufu services. * - * The version of the OpenAPI document: 1.1.0 + * The version of the OpenAPI document: 1.2.6 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -22,9 +22,9 @@ using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; using System.ComponentModel.DataAnnotations; -using OpenAPIDateConverter = Tribufu.Generated.Client.OpenAPIDateConverter; +using OpenAPIDateConverter = Tribufu.Client.OpenAPIDateConverter; -namespace Tribufu.Generated.Model +namespace Tribufu.Model { /// /// UpdateProfile @@ -35,10 +35,20 @@ namespace Tribufu.Generated.Model /// /// Initializes a new instance of the class. /// - /// displayName. + [JsonConstructorAttribute] + protected UpdateProfile() { } + /// + /// Initializes a new instance of the class. + /// + /// displayName (required). /// biography. public UpdateProfile(string displayName = default(string), string biography = default(string)) { + // to ensure "displayName" is required (not null) + if (displayName == null) + { + throw new ArgumentNullException("displayName is a required property for UpdateProfile and cannot be null"); + } this.DisplayName = displayName; this.Biography = biography; } @@ -46,7 +56,7 @@ namespace Tribufu.Generated.Model /// /// Gets or Sets DisplayName /// - [DataMember(Name = "display_name", EmitDefaultValue = true)] + [DataMember(Name = "display_name", IsRequired = true, EmitDefaultValue = true)] public string DisplayName { get; set; } /// diff --git a/src/Tribufu.Generated/Model/UserInfo.cs b/src/Tribufu/Model/UserInfo.cs similarity index 54% rename from src/Tribufu.Generated/Model/UserInfo.cs rename to src/Tribufu/Model/UserInfo.cs index 66fb2f8..4617da3 100644 --- a/src/Tribufu.Generated/Model/UserInfo.cs +++ b/src/Tribufu/Model/UserInfo.cs @@ -1,9 +1,9 @@ /* * Tribufu API * - * REST API to access Tribufu services. + * API to access Tribufu services. * - * The version of the OpenAPI document: 1.1.0 + * The version of the OpenAPI document: 1.2.6 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -22,9 +22,9 @@ using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; using System.ComponentModel.DataAnnotations; -using OpenAPIDateConverter = Tribufu.Generated.Client.OpenAPIDateConverter; +using OpenAPIDateConverter = Tribufu.Client.OpenAPIDateConverter; -namespace Tribufu.Generated.Model +namespace Tribufu.Model { /// /// UserInfo @@ -41,56 +41,44 @@ namespace Tribufu.Generated.Model /// /// Initializes a new instance of the class. /// + [JsonConstructorAttribute] + protected UserInfo() { } + /// + /// Initializes a new instance of the class. + /// /// id. /// uuid. - /// name. + /// name (required). /// displayName. /// email. + /// emailVerified. /// type. - /// flags. - /// permissions. - /// verified. - /// level. - /// experience. - /// publicBirthday. - /// birthday. - /// points. - /// location. /// language. /// timezone. /// currency. /// photoUrl. - /// bannerUrl. - /// lastOnline. - /// biography. - /// viewCount. + /// permissions. /// created. /// updated. - public UserInfo(string id = default(string), Guid uuid = default(Guid), string name = default(string), string displayName = default(string), string email = default(string), UserType? type = default(UserType?), string flags = default(string), string permissions = default(string), bool verified = default(bool), int level = default(int), double experience = default(double), bool publicBirthday = default(bool), DateOnly? birthday = default(DateOnly?), double points = default(double), string location = default(string), string language = default(string), string timezone = default(string), string currency = default(string), string photoUrl = default(string), string bannerUrl = default(string), DateTime? lastOnline = default(DateTime?), string biography = default(string), int viewCount = default(int), DateTime created = default(DateTime), DateTime? updated = default(DateTime?)) + public UserInfo(string id = default(string), Guid uuid = default(Guid), string name = default(string), string displayName = default(string), string email = default(string), bool emailVerified = default(bool), UserType? type = default(UserType?), string language = default(string), string timezone = default(string), string currency = default(string), string photoUrl = default(string), List permissions = default(List), DateTime created = default(DateTime), DateTime? updated = default(DateTime?)) { + // to ensure "name" is required (not null) + if (name == null) + { + throw new ArgumentNullException("name is a required property for UserInfo and cannot be null"); + } + this.Name = name; this.Id = id; this.Uuid = uuid; - this.Name = name; this.DisplayName = displayName; this.Email = email; + this.EmailVerified = emailVerified; this.Type = type; - this.Flags = flags; - this.Permissions = permissions; - this.Verified = verified; - this.Level = level; - this.Experience = experience; - this.PublicBirthday = publicBirthday; - this.Birthday = birthday; - this.Points = points; - this.Location = location; this.Language = language; this.Timezone = timezone; this.Currency = currency; this.PhotoUrl = photoUrl; - this.BannerUrl = bannerUrl; - this.LastOnline = lastOnline; - this.Biography = biography; - this.ViewCount = viewCount; + this.Permissions = permissions; this.Created = created; this.Updated = updated; } @@ -110,7 +98,7 @@ namespace Tribufu.Generated.Model /// /// Gets or Sets Name /// - [DataMember(Name = "name", EmitDefaultValue = true)] + [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] public string Name { get; set; } /// @@ -126,58 +114,10 @@ namespace Tribufu.Generated.Model public string Email { get; set; } /// - /// Gets or Sets Flags + /// Gets or Sets EmailVerified /// - [DataMember(Name = "flags", EmitDefaultValue = false)] - public string Flags { get; set; } - - /// - /// Gets or Sets Permissions - /// - [DataMember(Name = "permissions", EmitDefaultValue = false)] - public string Permissions { get; set; } - - /// - /// Gets or Sets Verified - /// - [DataMember(Name = "verified", EmitDefaultValue = true)] - public bool Verified { get; set; } - - /// - /// Gets or Sets Level - /// - [DataMember(Name = "level", EmitDefaultValue = false)] - public int Level { get; set; } - - /// - /// Gets or Sets Experience - /// - [DataMember(Name = "experience", EmitDefaultValue = false)] - public double Experience { get; set; } - - /// - /// Gets or Sets PublicBirthday - /// - [DataMember(Name = "public_birthday", EmitDefaultValue = true)] - public bool PublicBirthday { get; set; } - - /// - /// Gets or Sets Birthday - /// - [DataMember(Name = "birthday", EmitDefaultValue = true)] - public DateOnly? Birthday { get; set; } - - /// - /// Gets or Sets Points - /// - [DataMember(Name = "points", EmitDefaultValue = false)] - public double Points { get; set; } - - /// - /// Gets or Sets Location - /// - [DataMember(Name = "location", EmitDefaultValue = true)] - public string Location { get; set; } + [DataMember(Name = "email_verified", EmitDefaultValue = true)] + public bool EmailVerified { get; set; } /// /// Gets or Sets Language @@ -204,28 +144,10 @@ namespace Tribufu.Generated.Model public string PhotoUrl { get; set; } /// - /// Gets or Sets BannerUrl + /// Gets or Sets Permissions /// - [DataMember(Name = "banner_url", EmitDefaultValue = true)] - public string BannerUrl { get; set; } - - /// - /// Gets or Sets LastOnline - /// - [DataMember(Name = "last_online", EmitDefaultValue = true)] - public DateTime? LastOnline { get; set; } - - /// - /// Gets or Sets Biography - /// - [DataMember(Name = "biography", EmitDefaultValue = true)] - public string Biography { get; set; } - - /// - /// Gets or Sets ViewCount - /// - [DataMember(Name = "view_count", EmitDefaultValue = false)] - public int ViewCount { get; set; } + [DataMember(Name = "permissions", EmitDefaultValue = true)] + public List Permissions { get; set; } /// /// Gets or Sets Created @@ -252,24 +174,13 @@ namespace Tribufu.Generated.Model sb.Append(" Name: ").Append(Name).Append("\n"); sb.Append(" DisplayName: ").Append(DisplayName).Append("\n"); sb.Append(" Email: ").Append(Email).Append("\n"); + sb.Append(" EmailVerified: ").Append(EmailVerified).Append("\n"); sb.Append(" Type: ").Append(Type).Append("\n"); - sb.Append(" Flags: ").Append(Flags).Append("\n"); - sb.Append(" Permissions: ").Append(Permissions).Append("\n"); - sb.Append(" Verified: ").Append(Verified).Append("\n"); - sb.Append(" Level: ").Append(Level).Append("\n"); - sb.Append(" Experience: ").Append(Experience).Append("\n"); - sb.Append(" PublicBirthday: ").Append(PublicBirthday).Append("\n"); - sb.Append(" Birthday: ").Append(Birthday).Append("\n"); - sb.Append(" Points: ").Append(Points).Append("\n"); - sb.Append(" Location: ").Append(Location).Append("\n"); sb.Append(" Language: ").Append(Language).Append("\n"); sb.Append(" Timezone: ").Append(Timezone).Append("\n"); sb.Append(" Currency: ").Append(Currency).Append("\n"); sb.Append(" PhotoUrl: ").Append(PhotoUrl).Append("\n"); - sb.Append(" BannerUrl: ").Append(BannerUrl).Append("\n"); - sb.Append(" LastOnline: ").Append(LastOnline).Append("\n"); - sb.Append(" Biography: ").Append(Biography).Append("\n"); - sb.Append(" ViewCount: ").Append(ViewCount).Append("\n"); + sb.Append(" Permissions: ").Append(Permissions).Append("\n"); sb.Append(" Created: ").Append(Created).Append("\n"); sb.Append(" Updated: ").Append(Updated).Append("\n"); sb.Append("}\n"); diff --git a/src/Tribufu.Generated/Model/UserType.cs b/src/Tribufu/Model/UserType.cs similarity index 82% rename from src/Tribufu.Generated/Model/UserType.cs rename to src/Tribufu/Model/UserType.cs index 7c74db6..62b2126 100644 --- a/src/Tribufu.Generated/Model/UserType.cs +++ b/src/Tribufu/Model/UserType.cs @@ -1,9 +1,9 @@ /* * Tribufu API * - * REST API to access Tribufu services. + * API to access Tribufu services. * - * The version of the OpenAPI document: 1.1.0 + * The version of the OpenAPI document: 1.2.6 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -22,9 +22,9 @@ using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; using System.ComponentModel.DataAnnotations; -using OpenAPIDateConverter = Tribufu.Generated.Client.OpenAPIDateConverter; +using OpenAPIDateConverter = Tribufu.Client.OpenAPIDateConverter; -namespace Tribufu.Generated.Model +namespace Tribufu.Model { /// /// Defines UserType diff --git a/src/Tribufu/Tribufu.csproj b/src/Tribufu/Tribufu.csproj index e9600b4..1f951d1 100644 --- a/src/Tribufu/Tribufu.csproj +++ b/src/Tribufu/Tribufu.csproj @@ -17,6 +17,13 @@ - + + + + + + + + diff --git a/src/Tribufu/TribufuApi.cs b/src/Tribufu/TribufuApi.cs index be04e37..2d9f8d3 100644 --- a/src/Tribufu/TribufuApi.cs +++ b/src/Tribufu/TribufuApi.cs @@ -4,8 +4,8 @@ using System; using System.Net; using System.Runtime.InteropServices; -using Tribufu.Generated.Api; -using Tribufu.Generated.Client; +using Tribufu.Api; +using Tribufu.Client; namespace Tribufu { From e3c42a9911665d4ed926f093a51d69efbd222ecf Mon Sep 17 00:00:00 2001 From: Guilherme Werner Date: Tue, 16 Dec 2025 19:23:47 -0300 Subject: [PATCH 39/52] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 1108fa0..e2bc920 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ [![MIT License][mit-badge]][mit-url] [![Discord Chat][discord-badge]][discord-url] -[nuget-badge]: https://img.shields.io/nuget/v/tribufu.svg +[nuget-badge]: https://img.shields.io/nuget/v/Tribufu.svg [nuget-url]: https://www.nuget.org/packages/Tribufu [mit-badge]: https://img.shields.io/badge/license-MIT-blue.svg [mit-url]: https://github.com/tribufu/tribufu-dotnet/blob/main/LICENSE.txt From d26c3bd11a51d8938bcdf8b515bea2b1466b1eb8 Mon Sep 17 00:00:00 2001 From: Guilherme Werner Date: Mon, 22 Dec 2025 09:51:08 -0300 Subject: [PATCH 40/52] Add support to dotnet standard and framework --- scripts/generate.ps1 | 2 +- src/Tribufu/Api/TribufuGeneratedApi.cs | 560 ++++++++++++------------- src/Tribufu/Client/ApiClient.cs | 1 + src/Tribufu/Client/ClientUtils.cs | 6 - src/Tribufu/Model/Profile.cs | 5 +- src/Tribufu/README.md | 1 - src/Tribufu/Tribufu.csproj | 5 +- src/Tribufu/TribufuApi.cs | 15 +- src/Tribufu/TribufuApiSingleton.cs | 8 +- 9 files changed, 302 insertions(+), 301 deletions(-) delete mode 100644 src/Tribufu/README.md diff --git a/scripts/generate.ps1 b/scripts/generate.ps1 index 7f14cb8..408e2e0 100644 --- a/scripts/generate.ps1 +++ b/scripts/generate.ps1 @@ -7,6 +7,6 @@ java -jar ./vendor/openapi-generator/openapi-generator-cli.jar generate ` -g csharp ` -o . ` --global-property apis,models,supportingFiles,apiDocs=false,modelDocs=false,apiTests=false,modelTests=false ` - --additional-properties=packageName=Tribufu,library=restsharp,zeroBasedEnums=true,nullableReferenceTypes=true ` + --additional-properties=packageName=Tribufu,library=restsharp,targetFramework=net47,zeroBasedEnums=true ` --openapi-normalizer SET_TAGS_FOR_ALL_OPERATIONS=TribufuGenerated ` --skip-validate-spec diff --git a/src/Tribufu/Api/TribufuGeneratedApi.cs b/src/Tribufu/Api/TribufuGeneratedApi.cs index c861352..8edc678 100644 --- a/src/Tribufu/Api/TribufuGeneratedApi.cs +++ b/src/Tribufu/Api/TribufuGeneratedApi.cs @@ -37,7 +37,7 @@ namespace Tribufu.Api /// (optional) /// Index associated with the operation. /// CodeResponse - CodeResponse Authorize(AuthorizeRequest? authorizeRequest = default(AuthorizeRequest?), int operationIndex = 0); + CodeResponse Authorize(AuthorizeRequest authorizeRequest = default(AuthorizeRequest), int operationIndex = 0); /// /// Authorize the client to access the user information. @@ -49,7 +49,7 @@ namespace Tribufu.Api /// (optional) /// Index associated with the operation. /// ApiResponse of CodeResponse - ApiResponse AuthorizeWithHttpInfo(AuthorizeRequest? authorizeRequest = default(AuthorizeRequest?), int operationIndex = 0); + ApiResponse AuthorizeWithHttpInfo(AuthorizeRequest authorizeRequest = default(AuthorizeRequest), int operationIndex = 0); /// /// Change the email of a user. /// @@ -61,7 +61,7 @@ namespace Tribufu.Api /// (optional) /// Index associated with the operation. /// - void ChangeEmail(string id, Object? body = default(Object?), int operationIndex = 0); + void ChangeEmail(string id, Object body = default(Object), int operationIndex = 0); /// /// Change the email of a user. @@ -74,7 +74,7 @@ namespace Tribufu.Api /// (optional) /// Index associated with the operation. /// ApiResponse of Object(void) - ApiResponse ChangeEmailWithHttpInfo(string id, Object? body = default(Object?), int operationIndex = 0); + ApiResponse ChangeEmailWithHttpInfo(string id, Object body = default(Object), int operationIndex = 0); /// /// Change the password of a user. /// @@ -86,7 +86,7 @@ namespace Tribufu.Api /// (optional) /// Index associated with the operation. /// - void ChangePassword(string id, Object? body = default(Object?), int operationIndex = 0); + void ChangePassword(string id, Object body = default(Object), int operationIndex = 0); /// /// Change the password of a user. @@ -99,7 +99,7 @@ namespace Tribufu.Api /// (optional) /// Index associated with the operation. /// ApiResponse of Object(void) - ApiResponse ChangePasswordWithHttpInfo(string id, Object? body = default(Object?), int operationIndex = 0); + ApiResponse ChangePasswordWithHttpInfo(string id, Object body = default(Object), int operationIndex = 0); /// /// Claim a game server. /// @@ -111,7 +111,7 @@ namespace Tribufu.Api /// (optional) /// Index associated with the operation. /// - void ClaimGameServer(string id, Object? body = default(Object?), int operationIndex = 0); + void ClaimGameServer(string id, Object body = default(Object), int operationIndex = 0); /// /// Claim a game server. @@ -124,7 +124,7 @@ namespace Tribufu.Api /// (optional) /// Index associated with the operation. /// ApiResponse of Object(void) - ApiResponse ClaimGameServerWithHttpInfo(string id, Object? body = default(Object?), int operationIndex = 0); + ApiResponse ClaimGameServerWithHttpInfo(string id, Object body = default(Object), int operationIndex = 0); /// /// Claim a game server. /// @@ -137,7 +137,7 @@ namespace Tribufu.Api /// Index associated with the operation. /// [Obsolete] - void ClaimGameServerV1(string id, Object? body = default(Object?), int operationIndex = 0); + void ClaimGameServerV1(string id, Object body = default(Object), int operationIndex = 0); /// /// Claim a game server. @@ -151,7 +151,7 @@ namespace Tribufu.Api /// Index associated with the operation. /// ApiResponse of Object(void) [Obsolete] - ApiResponse ClaimGameServerV1WithHttpInfo(string id, Object? body = default(Object?), int operationIndex = 0); + ApiResponse ClaimGameServerV1WithHttpInfo(string id, Object body = default(Object), int operationIndex = 0); /// /// Convert a string to base64 or vice versa. /// @@ -162,7 +162,7 @@ namespace Tribufu.Api /// (optional) /// Index associated with the operation. /// CryptoViewModel - CryptoViewModel ConvertBase64(CryptoViewModel? cryptoViewModel = default(CryptoViewModel?), int operationIndex = 0); + CryptoViewModel ConvertBase64(CryptoViewModel cryptoViewModel = default(CryptoViewModel), int operationIndex = 0); /// /// Convert a string to base64 or vice versa. @@ -174,7 +174,7 @@ namespace Tribufu.Api /// (optional) /// Index associated with the operation. /// ApiResponse of CryptoViewModel - ApiResponse ConvertBase64WithHttpInfo(CryptoViewModel? cryptoViewModel = default(CryptoViewModel?), int operationIndex = 0); + ApiResponse ConvertBase64WithHttpInfo(CryptoViewModel cryptoViewModel = default(CryptoViewModel), int operationIndex = 0); /// /// Create an oauth2 client. /// @@ -185,7 +185,7 @@ namespace Tribufu.Api /// (optional) /// Index associated with the operation. /// - void CreateClient(Object? body = default(Object?), int operationIndex = 0); + void CreateClient(Object body = default(Object), int operationIndex = 0); /// /// Create an oauth2 client. @@ -197,7 +197,7 @@ namespace Tribufu.Api /// (optional) /// Index associated with the operation. /// ApiResponse of Object(void) - ApiResponse CreateClientWithHttpInfo(Object? body = default(Object?), int operationIndex = 0); + ApiResponse CreateClientWithHttpInfo(Object body = default(Object), int operationIndex = 0); /// /// Create a new game server. /// @@ -208,7 +208,7 @@ namespace Tribufu.Api /// (optional) /// Index associated with the operation. /// - void CreateGameServer(Object? body = default(Object?), int operationIndex = 0); + void CreateGameServer(Object body = default(Object), int operationIndex = 0); /// /// Create a new game server. @@ -220,7 +220,7 @@ namespace Tribufu.Api /// (optional) /// Index associated with the operation. /// ApiResponse of Object(void) - ApiResponse CreateGameServerWithHttpInfo(Object? body = default(Object?), int operationIndex = 0); + ApiResponse CreateGameServerWithHttpInfo(Object body = default(Object), int operationIndex = 0); /// /// Create a new game server cluster. /// @@ -231,7 +231,7 @@ namespace Tribufu.Api /// (optional) /// Index associated with the operation. /// - void CreateGameServerCluster(Object? body = default(Object?), int operationIndex = 0); + void CreateGameServerCluster(Object body = default(Object), int operationIndex = 0); /// /// Create a new game server cluster. @@ -243,7 +243,7 @@ namespace Tribufu.Api /// (optional) /// Index associated with the operation. /// ApiResponse of Object(void) - ApiResponse CreateGameServerClusterWithHttpInfo(Object? body = default(Object?), int operationIndex = 0); + ApiResponse CreateGameServerClusterWithHttpInfo(Object body = default(Object), int operationIndex = 0); /// /// Create a new game server cluster. /// @@ -255,7 +255,7 @@ namespace Tribufu.Api /// Index associated with the operation. /// [Obsolete] - void CreateGameServerClusterV1(Object? body = default(Object?), int operationIndex = 0); + void CreateGameServerClusterV1(Object body = default(Object), int operationIndex = 0); /// /// Create a new game server cluster. @@ -268,7 +268,7 @@ namespace Tribufu.Api /// Index associated with the operation. /// ApiResponse of Object(void) [Obsolete] - ApiResponse CreateGameServerClusterV1WithHttpInfo(Object? body = default(Object?), int operationIndex = 0); + ApiResponse CreateGameServerClusterV1WithHttpInfo(Object body = default(Object), int operationIndex = 0); /// /// Create a new game server. /// @@ -280,7 +280,7 @@ namespace Tribufu.Api /// Index associated with the operation. /// [Obsolete] - void CreateGameServerV1(Object? body = default(Object?), int operationIndex = 0); + void CreateGameServerV1(Object body = default(Object), int operationIndex = 0); /// /// Create a new game server. @@ -293,7 +293,7 @@ namespace Tribufu.Api /// Index associated with the operation. /// ApiResponse of Object(void) [Obsolete] - ApiResponse CreateGameServerV1WithHttpInfo(Object? body = default(Object?), int operationIndex = 0); + ApiResponse CreateGameServerV1WithHttpInfo(Object body = default(Object), int operationIndex = 0); /// /// Create a new group. /// @@ -304,7 +304,7 @@ namespace Tribufu.Api /// (optional) /// Index associated with the operation. /// - void CreateGroup(Object? body = default(Object?), int operationIndex = 0); + void CreateGroup(Object body = default(Object), int operationIndex = 0); /// /// Create a new group. @@ -316,7 +316,7 @@ namespace Tribufu.Api /// (optional) /// Index associated with the operation. /// ApiResponse of Object(void) - ApiResponse CreateGroupWithHttpInfo(Object? body = default(Object?), int operationIndex = 0); + ApiResponse CreateGroupWithHttpInfo(Object body = default(Object), int operationIndex = 0); /// /// Create a new package. /// @@ -331,7 +331,7 @@ namespace Tribufu.Api /// (optional) /// Index associated with the operation. /// Package - Package CreatePackage(string name, System.IO.Stream image, List files, string version, string? description = default(string?), int operationIndex = 0); + Package CreatePackage(string name, System.IO.Stream image, List files, string version, string description = default(string), int operationIndex = 0); /// /// Create a new package. @@ -347,7 +347,7 @@ namespace Tribufu.Api /// (optional) /// Index associated with the operation. /// ApiResponse of Package - ApiResponse CreatePackageWithHttpInfo(string name, System.IO.Stream image, List files, string version, string? description = default(string?), int operationIndex = 0); + ApiResponse CreatePackageWithHttpInfo(string name, System.IO.Stream image, List files, string version, string description = default(string), int operationIndex = 0); /// /// Create a new token with grant type. /// @@ -355,7 +355,7 @@ namespace Tribufu.Api /// (optional) /// Index associated with the operation. /// TokenResponse - TokenResponse CreateToken(TokenRequest? tokenRequest = default(TokenRequest?), int operationIndex = 0); + TokenResponse CreateToken(TokenRequest tokenRequest = default(TokenRequest), int operationIndex = 0); /// /// Create a new token with grant type. @@ -367,7 +367,7 @@ namespace Tribufu.Api /// (optional) /// Index associated with the operation. /// ApiResponse of TokenResponse - ApiResponse CreateTokenWithHttpInfo(TokenRequest? tokenRequest = default(TokenRequest?), int operationIndex = 0); + ApiResponse CreateTokenWithHttpInfo(TokenRequest tokenRequest = default(TokenRequest), int operationIndex = 0); /// /// Create an user. /// @@ -378,7 +378,7 @@ namespace Tribufu.Api /// (optional) /// Index associated with the operation. /// - void CreateUser(CreateUser? createUser = default(CreateUser?), int operationIndex = 0); + void CreateUser(CreateUser createUser = default(CreateUser), int operationIndex = 0); /// /// Create an user. @@ -390,7 +390,7 @@ namespace Tribufu.Api /// (optional) /// Index associated with the operation. /// ApiResponse of Object(void) - ApiResponse CreateUserWithHttpInfo(CreateUser? createUser = default(CreateUser?), int operationIndex = 0); + ApiResponse CreateUserWithHttpInfo(CreateUser createUser = default(CreateUser), int operationIndex = 0); /// /// Delete an oauth2 client. /// @@ -707,7 +707,7 @@ namespace Tribufu.Api /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// List<ModelClient> - List GetClients(string? organizationId = default(string?), int? page = default(int?), int? limit = default(int?), int operationIndex = 0); + List GetClients(string organizationId = default(string), int? page = default(int?), int? limit = default(int?), int operationIndex = 0); /// /// Get a list of oauth2 clients. @@ -721,7 +721,7 @@ namespace Tribufu.Api /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// ApiResponse of List<ModelClient> - ApiResponse> GetClientsWithHttpInfo(string? organizationId = default(string?), int? page = default(int?), int? limit = default(int?), int operationIndex = 0); + ApiResponse> GetClientsWithHttpInfo(string organizationId = default(string), int? page = default(int?), int? limit = default(int?), int operationIndex = 0); /// /// Get current ip address location. /// @@ -1090,7 +1090,7 @@ namespace Tribufu.Api /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// List<GameServer> - List GetGameServers(string? address = default(string?), int? queryPort = default(int?), string? country = default(string?), string? gameId = default(string?), int? page = default(int?), int? limit = default(int?), int operationIndex = 0); + List GetGameServers(string address = default(string), int? queryPort = default(int?), string country = default(string), string gameId = default(string), int? page = default(int?), int? limit = default(int?), int operationIndex = 0); /// /// Get a list of game servers. @@ -1107,7 +1107,7 @@ namespace Tribufu.Api /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// ApiResponse of List<GameServer> - ApiResponse> GetGameServersWithHttpInfo(string? address = default(string?), int? queryPort = default(int?), string? country = default(string?), string? gameId = default(string?), int? page = default(int?), int? limit = default(int?), int operationIndex = 0); + ApiResponse> GetGameServersWithHttpInfo(string address = default(string), int? queryPort = default(int?), string country = default(string), string gameId = default(string), int? page = default(int?), int? limit = default(int?), int operationIndex = 0); /// /// Get a list of game servers from a country. /// @@ -1268,7 +1268,7 @@ namespace Tribufu.Api /// Index associated with the operation. /// List<GameServer> [Obsolete] - List GetGameServersV1(string? address = default(string?), int? queryPort = default(int?), string? country = default(string?), string? gameId = default(string?), int? page = default(int?), int? limit = default(int?), int operationIndex = 0); + List GetGameServersV1(string address = default(string), int? queryPort = default(int?), string country = default(string), string gameId = default(string), int? page = default(int?), int? limit = default(int?), int operationIndex = 0); /// /// Get a list of game servers. @@ -1286,7 +1286,7 @@ namespace Tribufu.Api /// Index associated with the operation. /// ApiResponse of List<GameServer> [Obsolete] - ApiResponse> GetGameServersV1WithHttpInfo(string? address = default(string?), int? queryPort = default(int?), string? country = default(string?), string? gameId = default(string?), int? page = default(int?), int? limit = default(int?), int operationIndex = 0); + ApiResponse> GetGameServersV1WithHttpInfo(string address = default(string), int? queryPort = default(int?), string country = default(string), string gameId = default(string), int? page = default(int?), int? limit = default(int?), int operationIndex = 0); /// /// Get a list of games. /// @@ -1484,7 +1484,7 @@ namespace Tribufu.Api /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// List<IpAddress> - List GetIpAddresses(string? organizationId = default(string?), int? page = default(int?), int? limit = default(int?), int operationIndex = 0); + List GetIpAddresses(string organizationId = default(string), int? page = default(int?), int? limit = default(int?), int operationIndex = 0); /// /// Get a list of ip addresses. @@ -1498,7 +1498,7 @@ namespace Tribufu.Api /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// ApiResponse of List<IpAddress> - ApiResponse> GetIpAddressesWithHttpInfo(string? organizationId = default(string?), int? page = default(int?), int? limit = default(int?), int operationIndex = 0); + ApiResponse> GetIpAddressesWithHttpInfo(string organizationId = default(string), int? page = default(int?), int? limit = default(int?), int operationIndex = 0); /// /// Get the top 20 leaderboard users. /// @@ -2134,7 +2134,7 @@ namespace Tribufu.Api /// (optional) /// Index associated with the operation. /// HashViewModel - HashViewModel HashArgon2(HashViewModel? hashViewModel = default(HashViewModel?), int operationIndex = 0); + HashViewModel HashArgon2(HashViewModel hashViewModel = default(HashViewModel), int operationIndex = 0); /// /// Hash a string using argon2. @@ -2146,7 +2146,7 @@ namespace Tribufu.Api /// (optional) /// Index associated with the operation. /// ApiResponse of HashViewModel - ApiResponse HashArgon2WithHttpInfo(HashViewModel? hashViewModel = default(HashViewModel?), int operationIndex = 0); + ApiResponse HashArgon2WithHttpInfo(HashViewModel hashViewModel = default(HashViewModel), int operationIndex = 0); /// /// Hash a string using bcrypt. /// @@ -2157,7 +2157,7 @@ namespace Tribufu.Api /// (optional) /// Index associated with the operation. /// HashViewModel - HashViewModel HashBcrypt(HashViewModel? hashViewModel = default(HashViewModel?), int operationIndex = 0); + HashViewModel HashBcrypt(HashViewModel hashViewModel = default(HashViewModel), int operationIndex = 0); /// /// Hash a string using bcrypt. @@ -2169,7 +2169,7 @@ namespace Tribufu.Api /// (optional) /// Index associated with the operation. /// ApiResponse of HashViewModel - ApiResponse HashBcryptWithHttpInfo(HashViewModel? hashViewModel = default(HashViewModel?), int operationIndex = 0); + ApiResponse HashBcryptWithHttpInfo(HashViewModel hashViewModel = default(HashViewModel), int operationIndex = 0); /// /// Hash a string using md5. /// @@ -2180,7 +2180,7 @@ namespace Tribufu.Api /// (optional) /// Index associated with the operation. /// HashViewModel - HashViewModel HashMd5(HashViewModel? hashViewModel = default(HashViewModel?), int operationIndex = 0); + HashViewModel HashMd5(HashViewModel hashViewModel = default(HashViewModel), int operationIndex = 0); /// /// Hash a string using md5. @@ -2192,7 +2192,7 @@ namespace Tribufu.Api /// (optional) /// Index associated with the operation. /// ApiResponse of HashViewModel - ApiResponse HashMd5WithHttpInfo(HashViewModel? hashViewModel = default(HashViewModel?), int operationIndex = 0); + ApiResponse HashMd5WithHttpInfo(HashViewModel hashViewModel = default(HashViewModel), int operationIndex = 0); /// /// Hash a string using sha256. /// @@ -2203,7 +2203,7 @@ namespace Tribufu.Api /// (optional) /// Index associated with the operation. /// HashViewModel - HashViewModel HashSha256(HashViewModel? hashViewModel = default(HashViewModel?), int operationIndex = 0); + HashViewModel HashSha256(HashViewModel hashViewModel = default(HashViewModel), int operationIndex = 0); /// /// Hash a string using sha256. @@ -2215,7 +2215,7 @@ namespace Tribufu.Api /// (optional) /// Index associated with the operation. /// ApiResponse of HashViewModel - ApiResponse HashSha256WithHttpInfo(HashViewModel? hashViewModel = default(HashViewModel?), int operationIndex = 0); + ApiResponse HashSha256WithHttpInfo(HashViewModel hashViewModel = default(HashViewModel), int operationIndex = 0); /// /// Introspect a token. /// @@ -2223,7 +2223,7 @@ namespace Tribufu.Api /// (optional) /// Index associated with the operation. /// IntrospectResponse - IntrospectResponse IntrospectToken(IntrospectRequest? introspectRequest = default(IntrospectRequest?), int operationIndex = 0); + IntrospectResponse IntrospectToken(IntrospectRequest introspectRequest = default(IntrospectRequest), int operationIndex = 0); /// /// Introspect a token. @@ -2235,7 +2235,7 @@ namespace Tribufu.Api /// (optional) /// Index associated with the operation. /// ApiResponse of IntrospectResponse - ApiResponse IntrospectTokenWithHttpInfo(IntrospectRequest? introspectRequest = default(IntrospectRequest?), int operationIndex = 0); + ApiResponse IntrospectTokenWithHttpInfo(IntrospectRequest introspectRequest = default(IntrospectRequest), int operationIndex = 0); /// /// Revoke a token. /// @@ -2243,7 +2243,7 @@ namespace Tribufu.Api /// (optional) /// Index associated with the operation. /// - void RevokeToken(RevokeRequest? revokeRequest = default(RevokeRequest?), int operationIndex = 0); + void RevokeToken(RevokeRequest revokeRequest = default(RevokeRequest), int operationIndex = 0); /// /// Revoke a token. @@ -2255,7 +2255,7 @@ namespace Tribufu.Api /// (optional) /// Index associated with the operation. /// ApiResponse of Object(void) - ApiResponse RevokeTokenWithHttpInfo(RevokeRequest? revokeRequest = default(RevokeRequest?), int operationIndex = 0); + ApiResponse RevokeTokenWithHttpInfo(RevokeRequest revokeRequest = default(RevokeRequest), int operationIndex = 0); /// /// Advanced search. /// @@ -2266,7 +2266,7 @@ namespace Tribufu.Api /// (optional) /// Index associated with the operation. /// List<Object> - List Search(Search? search = default(Search?), int operationIndex = 0); + List Search(Search search = default(Search), int operationIndex = 0); /// /// Advanced search. @@ -2278,7 +2278,7 @@ namespace Tribufu.Api /// (optional) /// Index associated with the operation. /// ApiResponse of List<Object> - ApiResponse> SearchWithHttpInfo(Search? search = default(Search?), int operationIndex = 0); + ApiResponse> SearchWithHttpInfo(Search search = default(Search), int operationIndex = 0); /// /// Update an oauth2 client. /// @@ -2290,7 +2290,7 @@ namespace Tribufu.Api /// (optional) /// Index associated with the operation. /// - void UpdateClient(string id, Object? body = default(Object?), int operationIndex = 0); + void UpdateClient(string id, Object body = default(Object), int operationIndex = 0); /// /// Update an oauth2 client. @@ -2303,7 +2303,7 @@ namespace Tribufu.Api /// (optional) /// Index associated with the operation. /// ApiResponse of Object(void) - ApiResponse UpdateClientWithHttpInfo(string id, Object? body = default(Object?), int operationIndex = 0); + ApiResponse UpdateClientWithHttpInfo(string id, Object body = default(Object), int operationIndex = 0); /// /// Update a game server. /// @@ -2315,7 +2315,7 @@ namespace Tribufu.Api /// (optional) /// Index associated with the operation. /// - void UpdateGameServer(string id, Object? body = default(Object?), int operationIndex = 0); + void UpdateGameServer(string id, Object body = default(Object), int operationIndex = 0); /// /// Update a game server. @@ -2328,7 +2328,7 @@ namespace Tribufu.Api /// (optional) /// Index associated with the operation. /// ApiResponse of Object(void) - ApiResponse UpdateGameServerWithHttpInfo(string id, Object? body = default(Object?), int operationIndex = 0); + ApiResponse UpdateGameServerWithHttpInfo(string id, Object body = default(Object), int operationIndex = 0); /// /// Update a game server cluster. /// @@ -2340,7 +2340,7 @@ namespace Tribufu.Api /// (optional) /// Index associated with the operation. /// - void UpdateGameServerCluster(string id, Object? body = default(Object?), int operationIndex = 0); + void UpdateGameServerCluster(string id, Object body = default(Object), int operationIndex = 0); /// /// Update a game server cluster. @@ -2353,7 +2353,7 @@ namespace Tribufu.Api /// (optional) /// Index associated with the operation. /// ApiResponse of Object(void) - ApiResponse UpdateGameServerClusterWithHttpInfo(string id, Object? body = default(Object?), int operationIndex = 0); + ApiResponse UpdateGameServerClusterWithHttpInfo(string id, Object body = default(Object), int operationIndex = 0); /// /// Update a game server cluster. /// @@ -2366,7 +2366,7 @@ namespace Tribufu.Api /// Index associated with the operation. /// [Obsolete] - void UpdateGameServerClusterV1(string id, Object? body = default(Object?), int operationIndex = 0); + void UpdateGameServerClusterV1(string id, Object body = default(Object), int operationIndex = 0); /// /// Update a game server cluster. @@ -2380,7 +2380,7 @@ namespace Tribufu.Api /// Index associated with the operation. /// ApiResponse of Object(void) [Obsolete] - ApiResponse UpdateGameServerClusterV1WithHttpInfo(string id, Object? body = default(Object?), int operationIndex = 0); + ApiResponse UpdateGameServerClusterV1WithHttpInfo(string id, Object body = default(Object), int operationIndex = 0); /// /// Update a game server. /// @@ -2393,7 +2393,7 @@ namespace Tribufu.Api /// Index associated with the operation. /// [Obsolete] - void UpdateGameServerV1(string id, Object? body = default(Object?), int operationIndex = 0); + void UpdateGameServerV1(string id, Object body = default(Object), int operationIndex = 0); /// /// Update a game server. @@ -2407,7 +2407,7 @@ namespace Tribufu.Api /// Index associated with the operation. /// ApiResponse of Object(void) [Obsolete] - ApiResponse UpdateGameServerV1WithHttpInfo(string id, Object? body = default(Object?), int operationIndex = 0); + ApiResponse UpdateGameServerV1WithHttpInfo(string id, Object body = default(Object), int operationIndex = 0); /// /// Update a group. /// @@ -2419,7 +2419,7 @@ namespace Tribufu.Api /// (optional) /// Index associated with the operation. /// - void UpdateGroup(string id, Object? body = default(Object?), int operationIndex = 0); + void UpdateGroup(string id, Object body = default(Object), int operationIndex = 0); /// /// Update a group. @@ -2432,7 +2432,7 @@ namespace Tribufu.Api /// (optional) /// Index associated with the operation. /// ApiResponse of Object(void) - ApiResponse UpdateGroupWithHttpInfo(string id, Object? body = default(Object?), int operationIndex = 0); + ApiResponse UpdateGroupWithHttpInfo(string id, Object body = default(Object), int operationIndex = 0); /// /// Update an package. /// @@ -2444,7 +2444,7 @@ namespace Tribufu.Api /// (optional) /// Index associated with the operation. /// - void UpdatePackage(string id, Package? package = default(Package?), int operationIndex = 0); + void UpdatePackage(string id, Package package = default(Package), int operationIndex = 0); /// /// Update an package. @@ -2457,7 +2457,7 @@ namespace Tribufu.Api /// (optional) /// Index associated with the operation. /// ApiResponse of Object(void) - ApiResponse UpdatePackageWithHttpInfo(string id, Package? package = default(Package?), int operationIndex = 0); + ApiResponse UpdatePackageWithHttpInfo(string id, Package package = default(Package), int operationIndex = 0); /// /// Update a user profile. /// @@ -2469,7 +2469,7 @@ namespace Tribufu.Api /// (optional) /// Index associated with the operation. /// Profile - Profile UpdateUserProfile(string id, UpdateProfile? updateProfile = default(UpdateProfile?), int operationIndex = 0); + Profile UpdateUserProfile(string id, UpdateProfile updateProfile = default(UpdateProfile), int operationIndex = 0); /// /// Update a user profile. @@ -2482,7 +2482,7 @@ namespace Tribufu.Api /// (optional) /// Index associated with the operation. /// ApiResponse of Profile - ApiResponse UpdateUserProfileWithHttpInfo(string id, UpdateProfile? updateProfile = default(UpdateProfile?), int operationIndex = 0); + ApiResponse UpdateUserProfileWithHttpInfo(string id, UpdateProfile updateProfile = default(UpdateProfile), int operationIndex = 0); /// /// Update a user profile. /// @@ -2495,7 +2495,7 @@ namespace Tribufu.Api /// Index associated with the operation. /// Profile [Obsolete] - Profile UpdateUserProfileV1(string id, UpdateProfile? updateProfile = default(UpdateProfile?), int operationIndex = 0); + Profile UpdateUserProfileV1(string id, UpdateProfile updateProfile = default(UpdateProfile), int operationIndex = 0); /// /// Update a user profile. @@ -2509,7 +2509,7 @@ namespace Tribufu.Api /// Index associated with the operation. /// ApiResponse of Profile [Obsolete] - ApiResponse UpdateUserProfileV1WithHttpInfo(string id, UpdateProfile? updateProfile = default(UpdateProfile?), int operationIndex = 0); + ApiResponse UpdateUserProfileV1WithHttpInfo(string id, UpdateProfile updateProfile = default(UpdateProfile), int operationIndex = 0); #endregion Synchronous Operations } @@ -2530,7 +2530,7 @@ namespace Tribufu.Api /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of CodeResponse - System.Threading.Tasks.Task AuthorizeAsync(AuthorizeRequest? authorizeRequest = default(AuthorizeRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task AuthorizeAsync(AuthorizeRequest authorizeRequest = default(AuthorizeRequest), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Authorize the client to access the user information. @@ -2543,7 +2543,7 @@ namespace Tribufu.Api /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (CodeResponse) - System.Threading.Tasks.Task> AuthorizeWithHttpInfoAsync(AuthorizeRequest? authorizeRequest = default(AuthorizeRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> AuthorizeWithHttpInfoAsync(AuthorizeRequest authorizeRequest = default(AuthorizeRequest), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Change the email of a user. /// @@ -2556,7 +2556,7 @@ namespace Tribufu.Api /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void - System.Threading.Tasks.Task ChangeEmailAsync(string id, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task ChangeEmailAsync(string id, Object body = default(Object), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Change the email of a user. @@ -2570,7 +2570,7 @@ namespace Tribufu.Api /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - System.Threading.Tasks.Task> ChangeEmailWithHttpInfoAsync(string id, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> ChangeEmailWithHttpInfoAsync(string id, Object body = default(Object), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Change the password of a user. /// @@ -2583,7 +2583,7 @@ namespace Tribufu.Api /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void - System.Threading.Tasks.Task ChangePasswordAsync(string id, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task ChangePasswordAsync(string id, Object body = default(Object), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Change the password of a user. @@ -2597,7 +2597,7 @@ namespace Tribufu.Api /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - System.Threading.Tasks.Task> ChangePasswordWithHttpInfoAsync(string id, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> ChangePasswordWithHttpInfoAsync(string id, Object body = default(Object), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Claim a game server. /// @@ -2610,7 +2610,7 @@ namespace Tribufu.Api /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void - System.Threading.Tasks.Task ClaimGameServerAsync(string id, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task ClaimGameServerAsync(string id, Object body = default(Object), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Claim a game server. @@ -2624,7 +2624,7 @@ namespace Tribufu.Api /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - System.Threading.Tasks.Task> ClaimGameServerWithHttpInfoAsync(string id, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> ClaimGameServerWithHttpInfoAsync(string id, Object body = default(Object), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Claim a game server. /// @@ -2638,7 +2638,7 @@ namespace Tribufu.Api /// Cancellation Token to cancel the request. /// Task of void [Obsolete] - System.Threading.Tasks.Task ClaimGameServerV1Async(string id, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task ClaimGameServerV1Async(string id, Object body = default(Object), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Claim a game server. @@ -2653,7 +2653,7 @@ namespace Tribufu.Api /// Cancellation Token to cancel the request. /// Task of ApiResponse [Obsolete] - System.Threading.Tasks.Task> ClaimGameServerV1WithHttpInfoAsync(string id, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> ClaimGameServerV1WithHttpInfoAsync(string id, Object body = default(Object), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Convert a string to base64 or vice versa. /// @@ -2665,7 +2665,7 @@ namespace Tribufu.Api /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of CryptoViewModel - System.Threading.Tasks.Task ConvertBase64Async(CryptoViewModel? cryptoViewModel = default(CryptoViewModel?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task ConvertBase64Async(CryptoViewModel cryptoViewModel = default(CryptoViewModel), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Convert a string to base64 or vice versa. @@ -2678,7 +2678,7 @@ namespace Tribufu.Api /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (CryptoViewModel) - System.Threading.Tasks.Task> ConvertBase64WithHttpInfoAsync(CryptoViewModel? cryptoViewModel = default(CryptoViewModel?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> ConvertBase64WithHttpInfoAsync(CryptoViewModel cryptoViewModel = default(CryptoViewModel), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Create an oauth2 client. /// @@ -2690,7 +2690,7 @@ namespace Tribufu.Api /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void - System.Threading.Tasks.Task CreateClientAsync(Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task CreateClientAsync(Object body = default(Object), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Create an oauth2 client. @@ -2703,7 +2703,7 @@ namespace Tribufu.Api /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - System.Threading.Tasks.Task> CreateClientWithHttpInfoAsync(Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> CreateClientWithHttpInfoAsync(Object body = default(Object), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Create a new game server. /// @@ -2715,7 +2715,7 @@ namespace Tribufu.Api /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void - System.Threading.Tasks.Task CreateGameServerAsync(Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task CreateGameServerAsync(Object body = default(Object), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Create a new game server. @@ -2728,7 +2728,7 @@ namespace Tribufu.Api /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - System.Threading.Tasks.Task> CreateGameServerWithHttpInfoAsync(Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> CreateGameServerWithHttpInfoAsync(Object body = default(Object), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Create a new game server cluster. /// @@ -2740,7 +2740,7 @@ namespace Tribufu.Api /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void - System.Threading.Tasks.Task CreateGameServerClusterAsync(Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task CreateGameServerClusterAsync(Object body = default(Object), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Create a new game server cluster. @@ -2753,7 +2753,7 @@ namespace Tribufu.Api /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - System.Threading.Tasks.Task> CreateGameServerClusterWithHttpInfoAsync(Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> CreateGameServerClusterWithHttpInfoAsync(Object body = default(Object), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Create a new game server cluster. /// @@ -2766,7 +2766,7 @@ namespace Tribufu.Api /// Cancellation Token to cancel the request. /// Task of void [Obsolete] - System.Threading.Tasks.Task CreateGameServerClusterV1Async(Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task CreateGameServerClusterV1Async(Object body = default(Object), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Create a new game server cluster. @@ -2780,7 +2780,7 @@ namespace Tribufu.Api /// Cancellation Token to cancel the request. /// Task of ApiResponse [Obsolete] - System.Threading.Tasks.Task> CreateGameServerClusterV1WithHttpInfoAsync(Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> CreateGameServerClusterV1WithHttpInfoAsync(Object body = default(Object), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Create a new game server. /// @@ -2793,7 +2793,7 @@ namespace Tribufu.Api /// Cancellation Token to cancel the request. /// Task of void [Obsolete] - System.Threading.Tasks.Task CreateGameServerV1Async(Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task CreateGameServerV1Async(Object body = default(Object), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Create a new game server. @@ -2807,7 +2807,7 @@ namespace Tribufu.Api /// Cancellation Token to cancel the request. /// Task of ApiResponse [Obsolete] - System.Threading.Tasks.Task> CreateGameServerV1WithHttpInfoAsync(Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> CreateGameServerV1WithHttpInfoAsync(Object body = default(Object), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Create a new group. /// @@ -2819,7 +2819,7 @@ namespace Tribufu.Api /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void - System.Threading.Tasks.Task CreateGroupAsync(Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task CreateGroupAsync(Object body = default(Object), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Create a new group. @@ -2832,7 +2832,7 @@ namespace Tribufu.Api /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - System.Threading.Tasks.Task> CreateGroupWithHttpInfoAsync(Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> CreateGroupWithHttpInfoAsync(Object body = default(Object), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Create a new package. /// @@ -2848,7 +2848,7 @@ namespace Tribufu.Api /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of Package - System.Threading.Tasks.Task CreatePackageAsync(string name, System.IO.Stream image, List files, string version, string? description = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task CreatePackageAsync(string name, System.IO.Stream image, List files, string version, string description = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Create a new package. @@ -2865,7 +2865,7 @@ namespace Tribufu.Api /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (Package) - System.Threading.Tasks.Task> CreatePackageWithHttpInfoAsync(string name, System.IO.Stream image, List files, string version, string? description = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> CreatePackageWithHttpInfoAsync(string name, System.IO.Stream image, List files, string version, string description = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Create a new token with grant type. /// @@ -2877,7 +2877,7 @@ namespace Tribufu.Api /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of TokenResponse - System.Threading.Tasks.Task CreateTokenAsync(TokenRequest? tokenRequest = default(TokenRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task CreateTokenAsync(TokenRequest tokenRequest = default(TokenRequest), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Create a new token with grant type. @@ -2890,7 +2890,7 @@ namespace Tribufu.Api /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (TokenResponse) - System.Threading.Tasks.Task> CreateTokenWithHttpInfoAsync(TokenRequest? tokenRequest = default(TokenRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> CreateTokenWithHttpInfoAsync(TokenRequest tokenRequest = default(TokenRequest), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Create an user. /// @@ -2902,7 +2902,7 @@ namespace Tribufu.Api /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void - System.Threading.Tasks.Task CreateUserAsync(CreateUser? createUser = default(CreateUser?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task CreateUserAsync(CreateUser createUser = default(CreateUser), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Create an user. @@ -2915,7 +2915,7 @@ namespace Tribufu.Api /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - System.Threading.Tasks.Task> CreateUserWithHttpInfoAsync(CreateUser? createUser = default(CreateUser?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> CreateUserWithHttpInfoAsync(CreateUser createUser = default(CreateUser), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Delete an oauth2 client. /// @@ -3262,7 +3262,7 @@ namespace Tribufu.Api /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of List<ModelClient> - System.Threading.Tasks.Task> GetClientsAsync(string? organizationId = default(string?), int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> GetClientsAsync(string organizationId = default(string), int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get a list of oauth2 clients. @@ -3277,7 +3277,7 @@ namespace Tribufu.Api /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (List<ModelClient>) - System.Threading.Tasks.Task>> GetClientsWithHttpInfoAsync(string? organizationId = default(string?), int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task>> GetClientsWithHttpInfoAsync(string organizationId = default(string), int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get current ip address location. /// @@ -3678,7 +3678,7 @@ namespace Tribufu.Api /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of List<GameServer> - System.Threading.Tasks.Task> GetGameServersAsync(string? address = default(string?), int? queryPort = default(int?), string? country = default(string?), string? gameId = default(string?), int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> GetGameServersAsync(string address = default(string), int? queryPort = default(int?), string country = default(string), string gameId = default(string), int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get a list of game servers. @@ -3696,7 +3696,7 @@ namespace Tribufu.Api /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (List<GameServer>) - System.Threading.Tasks.Task>> GetGameServersWithHttpInfoAsync(string? address = default(string?), int? queryPort = default(int?), string? country = default(string?), string? gameId = default(string?), int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task>> GetGameServersWithHttpInfoAsync(string address = default(string), int? queryPort = default(int?), string country = default(string), string gameId = default(string), int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get a list of game servers from a country. /// @@ -3870,7 +3870,7 @@ namespace Tribufu.Api /// Cancellation Token to cancel the request. /// Task of List<GameServer> [Obsolete] - System.Threading.Tasks.Task> GetGameServersV1Async(string? address = default(string?), int? queryPort = default(int?), string? country = default(string?), string? gameId = default(string?), int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> GetGameServersV1Async(string address = default(string), int? queryPort = default(int?), string country = default(string), string gameId = default(string), int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get a list of game servers. @@ -3889,7 +3889,7 @@ namespace Tribufu.Api /// Cancellation Token to cancel the request. /// Task of ApiResponse (List<GameServer>) [Obsolete] - System.Threading.Tasks.Task>> GetGameServersV1WithHttpInfoAsync(string? address = default(string?), int? queryPort = default(int?), string? country = default(string?), string? gameId = default(string?), int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task>> GetGameServersV1WithHttpInfoAsync(string address = default(string), int? queryPort = default(int?), string country = default(string), string gameId = default(string), int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get a list of games. /// @@ -4107,7 +4107,7 @@ namespace Tribufu.Api /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of List<IpAddress> - System.Threading.Tasks.Task> GetIpAddressesAsync(string? organizationId = default(string?), int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> GetIpAddressesAsync(string organizationId = default(string), int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get a list of ip addresses. @@ -4122,7 +4122,7 @@ namespace Tribufu.Api /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (List<IpAddress>) - System.Threading.Tasks.Task>> GetIpAddressesWithHttpInfoAsync(string? organizationId = default(string?), int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task>> GetIpAddressesWithHttpInfoAsync(string organizationId = default(string), int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get the top 20 leaderboard users. /// @@ -4814,7 +4814,7 @@ namespace Tribufu.Api /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of HashViewModel - System.Threading.Tasks.Task HashArgon2Async(HashViewModel? hashViewModel = default(HashViewModel?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task HashArgon2Async(HashViewModel hashViewModel = default(HashViewModel), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Hash a string using argon2. @@ -4827,7 +4827,7 @@ namespace Tribufu.Api /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (HashViewModel) - System.Threading.Tasks.Task> HashArgon2WithHttpInfoAsync(HashViewModel? hashViewModel = default(HashViewModel?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> HashArgon2WithHttpInfoAsync(HashViewModel hashViewModel = default(HashViewModel), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Hash a string using bcrypt. /// @@ -4839,7 +4839,7 @@ namespace Tribufu.Api /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of HashViewModel - System.Threading.Tasks.Task HashBcryptAsync(HashViewModel? hashViewModel = default(HashViewModel?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task HashBcryptAsync(HashViewModel hashViewModel = default(HashViewModel), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Hash a string using bcrypt. @@ -4852,7 +4852,7 @@ namespace Tribufu.Api /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (HashViewModel) - System.Threading.Tasks.Task> HashBcryptWithHttpInfoAsync(HashViewModel? hashViewModel = default(HashViewModel?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> HashBcryptWithHttpInfoAsync(HashViewModel hashViewModel = default(HashViewModel), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Hash a string using md5. /// @@ -4864,7 +4864,7 @@ namespace Tribufu.Api /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of HashViewModel - System.Threading.Tasks.Task HashMd5Async(HashViewModel? hashViewModel = default(HashViewModel?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task HashMd5Async(HashViewModel hashViewModel = default(HashViewModel), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Hash a string using md5. @@ -4877,7 +4877,7 @@ namespace Tribufu.Api /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (HashViewModel) - System.Threading.Tasks.Task> HashMd5WithHttpInfoAsync(HashViewModel? hashViewModel = default(HashViewModel?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> HashMd5WithHttpInfoAsync(HashViewModel hashViewModel = default(HashViewModel), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Hash a string using sha256. /// @@ -4889,7 +4889,7 @@ namespace Tribufu.Api /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of HashViewModel - System.Threading.Tasks.Task HashSha256Async(HashViewModel? hashViewModel = default(HashViewModel?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task HashSha256Async(HashViewModel hashViewModel = default(HashViewModel), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Hash a string using sha256. @@ -4902,7 +4902,7 @@ namespace Tribufu.Api /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (HashViewModel) - System.Threading.Tasks.Task> HashSha256WithHttpInfoAsync(HashViewModel? hashViewModel = default(HashViewModel?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> HashSha256WithHttpInfoAsync(HashViewModel hashViewModel = default(HashViewModel), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Introspect a token. /// @@ -4914,7 +4914,7 @@ namespace Tribufu.Api /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of IntrospectResponse - System.Threading.Tasks.Task IntrospectTokenAsync(IntrospectRequest? introspectRequest = default(IntrospectRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task IntrospectTokenAsync(IntrospectRequest introspectRequest = default(IntrospectRequest), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Introspect a token. @@ -4927,7 +4927,7 @@ namespace Tribufu.Api /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (IntrospectResponse) - System.Threading.Tasks.Task> IntrospectTokenWithHttpInfoAsync(IntrospectRequest? introspectRequest = default(IntrospectRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> IntrospectTokenWithHttpInfoAsync(IntrospectRequest introspectRequest = default(IntrospectRequest), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Revoke a token. /// @@ -4939,7 +4939,7 @@ namespace Tribufu.Api /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void - System.Threading.Tasks.Task RevokeTokenAsync(RevokeRequest? revokeRequest = default(RevokeRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task RevokeTokenAsync(RevokeRequest revokeRequest = default(RevokeRequest), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Revoke a token. @@ -4952,7 +4952,7 @@ namespace Tribufu.Api /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - System.Threading.Tasks.Task> RevokeTokenWithHttpInfoAsync(RevokeRequest? revokeRequest = default(RevokeRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> RevokeTokenWithHttpInfoAsync(RevokeRequest revokeRequest = default(RevokeRequest), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Advanced search. /// @@ -4964,7 +4964,7 @@ namespace Tribufu.Api /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of List<Object> - System.Threading.Tasks.Task> SearchAsync(Search? search = default(Search?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> SearchAsync(Search search = default(Search), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Advanced search. @@ -4977,7 +4977,7 @@ namespace Tribufu.Api /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (List<Object>) - System.Threading.Tasks.Task>> SearchWithHttpInfoAsync(Search? search = default(Search?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task>> SearchWithHttpInfoAsync(Search search = default(Search), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Update an oauth2 client. /// @@ -4990,7 +4990,7 @@ namespace Tribufu.Api /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void - System.Threading.Tasks.Task UpdateClientAsync(string id, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task UpdateClientAsync(string id, Object body = default(Object), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Update an oauth2 client. @@ -5004,7 +5004,7 @@ namespace Tribufu.Api /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - System.Threading.Tasks.Task> UpdateClientWithHttpInfoAsync(string id, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> UpdateClientWithHttpInfoAsync(string id, Object body = default(Object), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Update a game server. /// @@ -5017,7 +5017,7 @@ namespace Tribufu.Api /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void - System.Threading.Tasks.Task UpdateGameServerAsync(string id, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task UpdateGameServerAsync(string id, Object body = default(Object), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Update a game server. @@ -5031,7 +5031,7 @@ namespace Tribufu.Api /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - System.Threading.Tasks.Task> UpdateGameServerWithHttpInfoAsync(string id, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> UpdateGameServerWithHttpInfoAsync(string id, Object body = default(Object), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Update a game server cluster. /// @@ -5044,7 +5044,7 @@ namespace Tribufu.Api /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void - System.Threading.Tasks.Task UpdateGameServerClusterAsync(string id, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task UpdateGameServerClusterAsync(string id, Object body = default(Object), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Update a game server cluster. @@ -5058,7 +5058,7 @@ namespace Tribufu.Api /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - System.Threading.Tasks.Task> UpdateGameServerClusterWithHttpInfoAsync(string id, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> UpdateGameServerClusterWithHttpInfoAsync(string id, Object body = default(Object), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Update a game server cluster. /// @@ -5072,7 +5072,7 @@ namespace Tribufu.Api /// Cancellation Token to cancel the request. /// Task of void [Obsolete] - System.Threading.Tasks.Task UpdateGameServerClusterV1Async(string id, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task UpdateGameServerClusterV1Async(string id, Object body = default(Object), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Update a game server cluster. @@ -5087,7 +5087,7 @@ namespace Tribufu.Api /// Cancellation Token to cancel the request. /// Task of ApiResponse [Obsolete] - System.Threading.Tasks.Task> UpdateGameServerClusterV1WithHttpInfoAsync(string id, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> UpdateGameServerClusterV1WithHttpInfoAsync(string id, Object body = default(Object), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Update a game server. /// @@ -5101,7 +5101,7 @@ namespace Tribufu.Api /// Cancellation Token to cancel the request. /// Task of void [Obsolete] - System.Threading.Tasks.Task UpdateGameServerV1Async(string id, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task UpdateGameServerV1Async(string id, Object body = default(Object), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Update a game server. @@ -5116,7 +5116,7 @@ namespace Tribufu.Api /// Cancellation Token to cancel the request. /// Task of ApiResponse [Obsolete] - System.Threading.Tasks.Task> UpdateGameServerV1WithHttpInfoAsync(string id, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> UpdateGameServerV1WithHttpInfoAsync(string id, Object body = default(Object), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Update a group. /// @@ -5129,7 +5129,7 @@ namespace Tribufu.Api /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void - System.Threading.Tasks.Task UpdateGroupAsync(string id, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task UpdateGroupAsync(string id, Object body = default(Object), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Update a group. @@ -5143,7 +5143,7 @@ namespace Tribufu.Api /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - System.Threading.Tasks.Task> UpdateGroupWithHttpInfoAsync(string id, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> UpdateGroupWithHttpInfoAsync(string id, Object body = default(Object), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Update an package. /// @@ -5156,7 +5156,7 @@ namespace Tribufu.Api /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void - System.Threading.Tasks.Task UpdatePackageAsync(string id, Package? package = default(Package?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task UpdatePackageAsync(string id, Package package = default(Package), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Update an package. @@ -5170,7 +5170,7 @@ namespace Tribufu.Api /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - System.Threading.Tasks.Task> UpdatePackageWithHttpInfoAsync(string id, Package? package = default(Package?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> UpdatePackageWithHttpInfoAsync(string id, Package package = default(Package), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Update a user profile. /// @@ -5183,7 +5183,7 @@ namespace Tribufu.Api /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of Profile - System.Threading.Tasks.Task UpdateUserProfileAsync(string id, UpdateProfile? updateProfile = default(UpdateProfile?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task UpdateUserProfileAsync(string id, UpdateProfile updateProfile = default(UpdateProfile), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Update a user profile. @@ -5197,7 +5197,7 @@ namespace Tribufu.Api /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (Profile) - System.Threading.Tasks.Task> UpdateUserProfileWithHttpInfoAsync(string id, UpdateProfile? updateProfile = default(UpdateProfile?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> UpdateUserProfileWithHttpInfoAsync(string id, UpdateProfile updateProfile = default(UpdateProfile), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Update a user profile. /// @@ -5211,7 +5211,7 @@ namespace Tribufu.Api /// Cancellation Token to cancel the request. /// Task of Profile [Obsolete] - System.Threading.Tasks.Task UpdateUserProfileV1Async(string id, UpdateProfile? updateProfile = default(UpdateProfile?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task UpdateUserProfileV1Async(string id, UpdateProfile updateProfile = default(UpdateProfile), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Update a user profile. @@ -5226,7 +5226,7 @@ namespace Tribufu.Api /// Cancellation Token to cancel the request. /// Task of ApiResponse (Profile) [Obsolete] - System.Threading.Tasks.Task> UpdateUserProfileV1WithHttpInfoAsync(string id, UpdateProfile? updateProfile = default(UpdateProfile?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> UpdateUserProfileV1WithHttpInfoAsync(string id, UpdateProfile updateProfile = default(UpdateProfile), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); #endregion Asynchronous Operations } @@ -5354,7 +5354,7 @@ namespace Tribufu.Api /// (optional) /// Index associated with the operation. /// CodeResponse - public CodeResponse Authorize(AuthorizeRequest? authorizeRequest = default(AuthorizeRequest?), int operationIndex = 0) + public CodeResponse Authorize(AuthorizeRequest authorizeRequest = default(AuthorizeRequest), int operationIndex = 0) { Tribufu.Client.ApiResponse localVarResponse = AuthorizeWithHttpInfo(authorizeRequest); return localVarResponse.Data; @@ -5367,7 +5367,7 @@ namespace Tribufu.Api /// (optional) /// Index associated with the operation. /// ApiResponse of CodeResponse - public Tribufu.Client.ApiResponse AuthorizeWithHttpInfo(AuthorizeRequest? authorizeRequest = default(AuthorizeRequest?), int operationIndex = 0) + public Tribufu.Client.ApiResponse AuthorizeWithHttpInfo(AuthorizeRequest authorizeRequest = default(AuthorizeRequest), int operationIndex = 0) { Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); @@ -5426,7 +5426,7 @@ namespace Tribufu.Api /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of CodeResponse - public async System.Threading.Tasks.Task AuthorizeAsync(AuthorizeRequest? authorizeRequest = default(AuthorizeRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task AuthorizeAsync(AuthorizeRequest authorizeRequest = default(AuthorizeRequest), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.ApiResponse localVarResponse = await AuthorizeWithHttpInfoAsync(authorizeRequest, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -5440,7 +5440,7 @@ namespace Tribufu.Api /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (CodeResponse) - public async System.Threading.Tasks.Task> AuthorizeWithHttpInfoAsync(AuthorizeRequest? authorizeRequest = default(AuthorizeRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> AuthorizeWithHttpInfoAsync(AuthorizeRequest authorizeRequest = default(AuthorizeRequest), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); @@ -5500,7 +5500,7 @@ namespace Tribufu.Api /// (optional) /// Index associated with the operation. /// - public void ChangeEmail(string id, Object? body = default(Object?), int operationIndex = 0) + public void ChangeEmail(string id, Object body = default(Object), int operationIndex = 0) { ChangeEmailWithHttpInfo(id, body); } @@ -5513,7 +5513,7 @@ namespace Tribufu.Api /// (optional) /// Index associated with the operation. /// ApiResponse of Object(void) - public Tribufu.Client.ApiResponse ChangeEmailWithHttpInfo(string id, Object? body = default(Object?), int operationIndex = 0) + public Tribufu.Client.ApiResponse ChangeEmailWithHttpInfo(string id, Object body = default(Object), int operationIndex = 0) { // verify the required parameter 'id' is set if (id == null) @@ -5582,7 +5582,7 @@ namespace Tribufu.Api /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void - public async System.Threading.Tasks.Task ChangeEmailAsync(string id, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task ChangeEmailAsync(string id, Object body = default(Object), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { await ChangeEmailWithHttpInfoAsync(id, body, operationIndex, cancellationToken).ConfigureAwait(false); } @@ -5596,7 +5596,7 @@ namespace Tribufu.Api /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - public async System.Threading.Tasks.Task> ChangeEmailWithHttpInfoAsync(string id, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> ChangeEmailWithHttpInfoAsync(string id, Object body = default(Object), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'id' is set if (id == null) @@ -5665,7 +5665,7 @@ namespace Tribufu.Api /// (optional) /// Index associated with the operation. /// - public void ChangePassword(string id, Object? body = default(Object?), int operationIndex = 0) + public void ChangePassword(string id, Object body = default(Object), int operationIndex = 0) { ChangePasswordWithHttpInfo(id, body); } @@ -5678,7 +5678,7 @@ namespace Tribufu.Api /// (optional) /// Index associated with the operation. /// ApiResponse of Object(void) - public Tribufu.Client.ApiResponse ChangePasswordWithHttpInfo(string id, Object? body = default(Object?), int operationIndex = 0) + public Tribufu.Client.ApiResponse ChangePasswordWithHttpInfo(string id, Object body = default(Object), int operationIndex = 0) { // verify the required parameter 'id' is set if (id == null) @@ -5747,7 +5747,7 @@ namespace Tribufu.Api /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void - public async System.Threading.Tasks.Task ChangePasswordAsync(string id, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task ChangePasswordAsync(string id, Object body = default(Object), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { await ChangePasswordWithHttpInfoAsync(id, body, operationIndex, cancellationToken).ConfigureAwait(false); } @@ -5761,7 +5761,7 @@ namespace Tribufu.Api /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - public async System.Threading.Tasks.Task> ChangePasswordWithHttpInfoAsync(string id, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> ChangePasswordWithHttpInfoAsync(string id, Object body = default(Object), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'id' is set if (id == null) @@ -5830,7 +5830,7 @@ namespace Tribufu.Api /// (optional) /// Index associated with the operation. /// - public void ClaimGameServer(string id, Object? body = default(Object?), int operationIndex = 0) + public void ClaimGameServer(string id, Object body = default(Object), int operationIndex = 0) { ClaimGameServerWithHttpInfo(id, body); } @@ -5843,7 +5843,7 @@ namespace Tribufu.Api /// (optional) /// Index associated with the operation. /// ApiResponse of Object(void) - public Tribufu.Client.ApiResponse ClaimGameServerWithHttpInfo(string id, Object? body = default(Object?), int operationIndex = 0) + public Tribufu.Client.ApiResponse ClaimGameServerWithHttpInfo(string id, Object body = default(Object), int operationIndex = 0) { // verify the required parameter 'id' is set if (id == null) @@ -5909,7 +5909,7 @@ namespace Tribufu.Api /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void - public async System.Threading.Tasks.Task ClaimGameServerAsync(string id, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task ClaimGameServerAsync(string id, Object body = default(Object), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { await ClaimGameServerWithHttpInfoAsync(id, body, operationIndex, cancellationToken).ConfigureAwait(false); } @@ -5923,7 +5923,7 @@ namespace Tribufu.Api /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - public async System.Threading.Tasks.Task> ClaimGameServerWithHttpInfoAsync(string id, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> ClaimGameServerWithHttpInfoAsync(string id, Object body = default(Object), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'id' is set if (id == null) @@ -5990,7 +5990,7 @@ namespace Tribufu.Api /// Index associated with the operation. /// [Obsolete] - public void ClaimGameServerV1(string id, Object? body = default(Object?), int operationIndex = 0) + public void ClaimGameServerV1(string id, Object body = default(Object), int operationIndex = 0) { ClaimGameServerV1WithHttpInfo(id, body); } @@ -6004,7 +6004,7 @@ namespace Tribufu.Api /// Index associated with the operation. /// ApiResponse of Object(void) [Obsolete] - public Tribufu.Client.ApiResponse ClaimGameServerV1WithHttpInfo(string id, Object? body = default(Object?), int operationIndex = 0) + public Tribufu.Client.ApiResponse ClaimGameServerV1WithHttpInfo(string id, Object body = default(Object), int operationIndex = 0) { // verify the required parameter 'id' is set if (id == null) @@ -6071,7 +6071,7 @@ namespace Tribufu.Api /// Cancellation Token to cancel the request. /// Task of void [Obsolete] - public async System.Threading.Tasks.Task ClaimGameServerV1Async(string id, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task ClaimGameServerV1Async(string id, Object body = default(Object), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { await ClaimGameServerV1WithHttpInfoAsync(id, body, operationIndex, cancellationToken).ConfigureAwait(false); } @@ -6086,7 +6086,7 @@ namespace Tribufu.Api /// Cancellation Token to cancel the request. /// Task of ApiResponse [Obsolete] - public async System.Threading.Tasks.Task> ClaimGameServerV1WithHttpInfoAsync(string id, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> ClaimGameServerV1WithHttpInfoAsync(string id, Object body = default(Object), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'id' is set if (id == null) @@ -6151,7 +6151,7 @@ namespace Tribufu.Api /// (optional) /// Index associated with the operation. /// CryptoViewModel - public CryptoViewModel ConvertBase64(CryptoViewModel? cryptoViewModel = default(CryptoViewModel?), int operationIndex = 0) + public CryptoViewModel ConvertBase64(CryptoViewModel cryptoViewModel = default(CryptoViewModel), int operationIndex = 0) { Tribufu.Client.ApiResponse localVarResponse = ConvertBase64WithHttpInfo(cryptoViewModel); return localVarResponse.Data; @@ -6164,7 +6164,7 @@ namespace Tribufu.Api /// (optional) /// Index associated with the operation. /// ApiResponse of CryptoViewModel - public Tribufu.Client.ApiResponse ConvertBase64WithHttpInfo(CryptoViewModel? cryptoViewModel = default(CryptoViewModel?), int operationIndex = 0) + public Tribufu.Client.ApiResponse ConvertBase64WithHttpInfo(CryptoViewModel cryptoViewModel = default(CryptoViewModel), int operationIndex = 0) { Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); @@ -6223,7 +6223,7 @@ namespace Tribufu.Api /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of CryptoViewModel - public async System.Threading.Tasks.Task ConvertBase64Async(CryptoViewModel? cryptoViewModel = default(CryptoViewModel?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task ConvertBase64Async(CryptoViewModel cryptoViewModel = default(CryptoViewModel), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.ApiResponse localVarResponse = await ConvertBase64WithHttpInfoAsync(cryptoViewModel, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -6237,7 +6237,7 @@ namespace Tribufu.Api /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (CryptoViewModel) - public async System.Threading.Tasks.Task> ConvertBase64WithHttpInfoAsync(CryptoViewModel? cryptoViewModel = default(CryptoViewModel?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> ConvertBase64WithHttpInfoAsync(CryptoViewModel cryptoViewModel = default(CryptoViewModel), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); @@ -6296,7 +6296,7 @@ namespace Tribufu.Api /// (optional) /// Index associated with the operation. /// - public void CreateClient(Object? body = default(Object?), int operationIndex = 0) + public void CreateClient(Object body = default(Object), int operationIndex = 0) { CreateClientWithHttpInfo(body); } @@ -6308,7 +6308,7 @@ namespace Tribufu.Api /// (optional) /// Index associated with the operation. /// ApiResponse of Object(void) - public Tribufu.Client.ApiResponse CreateClientWithHttpInfo(Object? body = default(Object?), int operationIndex = 0) + public Tribufu.Client.ApiResponse CreateClientWithHttpInfo(Object body = default(Object), int operationIndex = 0) { Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); @@ -6366,7 +6366,7 @@ namespace Tribufu.Api /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void - public async System.Threading.Tasks.Task CreateClientAsync(Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task CreateClientAsync(Object body = default(Object), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { await CreateClientWithHttpInfoAsync(body, operationIndex, cancellationToken).ConfigureAwait(false); } @@ -6379,7 +6379,7 @@ namespace Tribufu.Api /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - public async System.Threading.Tasks.Task> CreateClientWithHttpInfoAsync(Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> CreateClientWithHttpInfoAsync(Object body = default(Object), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); @@ -6437,7 +6437,7 @@ namespace Tribufu.Api /// (optional) /// Index associated with the operation. /// - public void CreateGameServer(Object? body = default(Object?), int operationIndex = 0) + public void CreateGameServer(Object body = default(Object), int operationIndex = 0) { CreateGameServerWithHttpInfo(body); } @@ -6449,7 +6449,7 @@ namespace Tribufu.Api /// (optional) /// Index associated with the operation. /// ApiResponse of Object(void) - public Tribufu.Client.ApiResponse CreateGameServerWithHttpInfo(Object? body = default(Object?), int operationIndex = 0) + public Tribufu.Client.ApiResponse CreateGameServerWithHttpInfo(Object body = default(Object), int operationIndex = 0) { Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); @@ -6507,7 +6507,7 @@ namespace Tribufu.Api /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void - public async System.Threading.Tasks.Task CreateGameServerAsync(Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task CreateGameServerAsync(Object body = default(Object), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { await CreateGameServerWithHttpInfoAsync(body, operationIndex, cancellationToken).ConfigureAwait(false); } @@ -6520,7 +6520,7 @@ namespace Tribufu.Api /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - public async System.Threading.Tasks.Task> CreateGameServerWithHttpInfoAsync(Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> CreateGameServerWithHttpInfoAsync(Object body = default(Object), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); @@ -6578,7 +6578,7 @@ namespace Tribufu.Api /// (optional) /// Index associated with the operation. /// - public void CreateGameServerCluster(Object? body = default(Object?), int operationIndex = 0) + public void CreateGameServerCluster(Object body = default(Object), int operationIndex = 0) { CreateGameServerClusterWithHttpInfo(body); } @@ -6590,7 +6590,7 @@ namespace Tribufu.Api /// (optional) /// Index associated with the operation. /// ApiResponse of Object(void) - public Tribufu.Client.ApiResponse CreateGameServerClusterWithHttpInfo(Object? body = default(Object?), int operationIndex = 0) + public Tribufu.Client.ApiResponse CreateGameServerClusterWithHttpInfo(Object body = default(Object), int operationIndex = 0) { Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); @@ -6648,7 +6648,7 @@ namespace Tribufu.Api /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void - public async System.Threading.Tasks.Task CreateGameServerClusterAsync(Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task CreateGameServerClusterAsync(Object body = default(Object), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { await CreateGameServerClusterWithHttpInfoAsync(body, operationIndex, cancellationToken).ConfigureAwait(false); } @@ -6661,7 +6661,7 @@ namespace Tribufu.Api /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - public async System.Threading.Tasks.Task> CreateGameServerClusterWithHttpInfoAsync(Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> CreateGameServerClusterWithHttpInfoAsync(Object body = default(Object), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); @@ -6720,7 +6720,7 @@ namespace Tribufu.Api /// Index associated with the operation. /// [Obsolete] - public void CreateGameServerClusterV1(Object? body = default(Object?), int operationIndex = 0) + public void CreateGameServerClusterV1(Object body = default(Object), int operationIndex = 0) { CreateGameServerClusterV1WithHttpInfo(body); } @@ -6733,7 +6733,7 @@ namespace Tribufu.Api /// Index associated with the operation. /// ApiResponse of Object(void) [Obsolete] - public Tribufu.Client.ApiResponse CreateGameServerClusterV1WithHttpInfo(Object? body = default(Object?), int operationIndex = 0) + public Tribufu.Client.ApiResponse CreateGameServerClusterV1WithHttpInfo(Object body = default(Object), int operationIndex = 0) { Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); @@ -6792,7 +6792,7 @@ namespace Tribufu.Api /// Cancellation Token to cancel the request. /// Task of void [Obsolete] - public async System.Threading.Tasks.Task CreateGameServerClusterV1Async(Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task CreateGameServerClusterV1Async(Object body = default(Object), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { await CreateGameServerClusterV1WithHttpInfoAsync(body, operationIndex, cancellationToken).ConfigureAwait(false); } @@ -6806,7 +6806,7 @@ namespace Tribufu.Api /// Cancellation Token to cancel the request. /// Task of ApiResponse [Obsolete] - public async System.Threading.Tasks.Task> CreateGameServerClusterV1WithHttpInfoAsync(Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> CreateGameServerClusterV1WithHttpInfoAsync(Object body = default(Object), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); @@ -6865,7 +6865,7 @@ namespace Tribufu.Api /// Index associated with the operation. /// [Obsolete] - public void CreateGameServerV1(Object? body = default(Object?), int operationIndex = 0) + public void CreateGameServerV1(Object body = default(Object), int operationIndex = 0) { CreateGameServerV1WithHttpInfo(body); } @@ -6878,7 +6878,7 @@ namespace Tribufu.Api /// Index associated with the operation. /// ApiResponse of Object(void) [Obsolete] - public Tribufu.Client.ApiResponse CreateGameServerV1WithHttpInfo(Object? body = default(Object?), int operationIndex = 0) + public Tribufu.Client.ApiResponse CreateGameServerV1WithHttpInfo(Object body = default(Object), int operationIndex = 0) { Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); @@ -6937,7 +6937,7 @@ namespace Tribufu.Api /// Cancellation Token to cancel the request. /// Task of void [Obsolete] - public async System.Threading.Tasks.Task CreateGameServerV1Async(Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task CreateGameServerV1Async(Object body = default(Object), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { await CreateGameServerV1WithHttpInfoAsync(body, operationIndex, cancellationToken).ConfigureAwait(false); } @@ -6951,7 +6951,7 @@ namespace Tribufu.Api /// Cancellation Token to cancel the request. /// Task of ApiResponse [Obsolete] - public async System.Threading.Tasks.Task> CreateGameServerV1WithHttpInfoAsync(Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> CreateGameServerV1WithHttpInfoAsync(Object body = default(Object), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); @@ -7009,7 +7009,7 @@ namespace Tribufu.Api /// (optional) /// Index associated with the operation. /// - public void CreateGroup(Object? body = default(Object?), int operationIndex = 0) + public void CreateGroup(Object body = default(Object), int operationIndex = 0) { CreateGroupWithHttpInfo(body); } @@ -7021,7 +7021,7 @@ namespace Tribufu.Api /// (optional) /// Index associated with the operation. /// ApiResponse of Object(void) - public Tribufu.Client.ApiResponse CreateGroupWithHttpInfo(Object? body = default(Object?), int operationIndex = 0) + public Tribufu.Client.ApiResponse CreateGroupWithHttpInfo(Object body = default(Object), int operationIndex = 0) { Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); @@ -7079,7 +7079,7 @@ namespace Tribufu.Api /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void - public async System.Threading.Tasks.Task CreateGroupAsync(Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task CreateGroupAsync(Object body = default(Object), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { await CreateGroupWithHttpInfoAsync(body, operationIndex, cancellationToken).ConfigureAwait(false); } @@ -7092,7 +7092,7 @@ namespace Tribufu.Api /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - public async System.Threading.Tasks.Task> CreateGroupWithHttpInfoAsync(Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> CreateGroupWithHttpInfoAsync(Object body = default(Object), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); @@ -7154,7 +7154,7 @@ namespace Tribufu.Api /// (optional) /// Index associated with the operation. /// Package - public Package CreatePackage(string name, System.IO.Stream image, List files, string version, string? description = default(string?), int operationIndex = 0) + public Package CreatePackage(string name, System.IO.Stream image, List files, string version, string description = default(string), int operationIndex = 0) { Tribufu.Client.ApiResponse localVarResponse = CreatePackageWithHttpInfo(name, image, files, version, description); return localVarResponse.Data; @@ -7171,7 +7171,7 @@ namespace Tribufu.Api /// (optional) /// Index associated with the operation. /// ApiResponse of Package - public Tribufu.Client.ApiResponse CreatePackageWithHttpInfo(string name, System.IO.Stream image, List files, string version, string? description = default(string?), int operationIndex = 0) + public Tribufu.Client.ApiResponse CreatePackageWithHttpInfo(string name, System.IO.Stream image, List files, string version, string description = default(string), int operationIndex = 0) { // verify the required parameter 'name' is set if (name == null) @@ -7268,7 +7268,7 @@ namespace Tribufu.Api /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of Package - public async System.Threading.Tasks.Task CreatePackageAsync(string name, System.IO.Stream image, List files, string version, string? description = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task CreatePackageAsync(string name, System.IO.Stream image, List files, string version, string description = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.ApiResponse localVarResponse = await CreatePackageWithHttpInfoAsync(name, image, files, version, description, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -7286,7 +7286,7 @@ namespace Tribufu.Api /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (Package) - public async System.Threading.Tasks.Task> CreatePackageWithHttpInfoAsync(string name, System.IO.Stream image, List files, string version, string? description = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> CreatePackageWithHttpInfoAsync(string name, System.IO.Stream image, List files, string version, string description = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'name' is set if (name == null) @@ -7379,7 +7379,7 @@ namespace Tribufu.Api /// (optional) /// Index associated with the operation. /// TokenResponse - public TokenResponse CreateToken(TokenRequest? tokenRequest = default(TokenRequest?), int operationIndex = 0) + public TokenResponse CreateToken(TokenRequest tokenRequest = default(TokenRequest), int operationIndex = 0) { Tribufu.Client.ApiResponse localVarResponse = CreateTokenWithHttpInfo(tokenRequest); return localVarResponse.Data; @@ -7392,7 +7392,7 @@ namespace Tribufu.Api /// (optional) /// Index associated with the operation. /// ApiResponse of TokenResponse - public Tribufu.Client.ApiResponse CreateTokenWithHttpInfo(TokenRequest? tokenRequest = default(TokenRequest?), int operationIndex = 0) + public Tribufu.Client.ApiResponse CreateTokenWithHttpInfo(TokenRequest tokenRequest = default(TokenRequest), int operationIndex = 0) { Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); @@ -7452,7 +7452,7 @@ namespace Tribufu.Api /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of TokenResponse - public async System.Threading.Tasks.Task CreateTokenAsync(TokenRequest? tokenRequest = default(TokenRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task CreateTokenAsync(TokenRequest tokenRequest = default(TokenRequest), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.ApiResponse localVarResponse = await CreateTokenWithHttpInfoAsync(tokenRequest, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -7466,7 +7466,7 @@ namespace Tribufu.Api /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (TokenResponse) - public async System.Threading.Tasks.Task> CreateTokenWithHttpInfoAsync(TokenRequest? tokenRequest = default(TokenRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> CreateTokenWithHttpInfoAsync(TokenRequest tokenRequest = default(TokenRequest), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); @@ -7526,7 +7526,7 @@ namespace Tribufu.Api /// (optional) /// Index associated with the operation. /// - public void CreateUser(CreateUser? createUser = default(CreateUser?), int operationIndex = 0) + public void CreateUser(CreateUser createUser = default(CreateUser), int operationIndex = 0) { CreateUserWithHttpInfo(createUser); } @@ -7538,7 +7538,7 @@ namespace Tribufu.Api /// (optional) /// Index associated with the operation. /// ApiResponse of Object(void) - public Tribufu.Client.ApiResponse CreateUserWithHttpInfo(CreateUser? createUser = default(CreateUser?), int operationIndex = 0) + public Tribufu.Client.ApiResponse CreateUserWithHttpInfo(CreateUser createUser = default(CreateUser), int operationIndex = 0) { Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); @@ -7596,7 +7596,7 @@ namespace Tribufu.Api /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void - public async System.Threading.Tasks.Task CreateUserAsync(CreateUser? createUser = default(CreateUser?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task CreateUserAsync(CreateUser createUser = default(CreateUser), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { await CreateUserWithHttpInfoAsync(createUser, operationIndex, cancellationToken).ConfigureAwait(false); } @@ -7609,7 +7609,7 @@ namespace Tribufu.Api /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - public async System.Threading.Tasks.Task> CreateUserWithHttpInfoAsync(CreateUser? createUser = default(CreateUser?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> CreateUserWithHttpInfoAsync(CreateUser createUser = default(CreateUser), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); @@ -9664,7 +9664,7 @@ namespace Tribufu.Api /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// List<ModelClient> - public List GetClients(string? organizationId = default(string?), int? page = default(int?), int? limit = default(int?), int operationIndex = 0) + public List GetClients(string organizationId = default(string), int? page = default(int?), int? limit = default(int?), int operationIndex = 0) { Tribufu.Client.ApiResponse> localVarResponse = GetClientsWithHttpInfo(organizationId, page, limit); return localVarResponse.Data; @@ -9679,7 +9679,7 @@ namespace Tribufu.Api /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// ApiResponse of List<ModelClient> - public Tribufu.Client.ApiResponse> GetClientsWithHttpInfo(string? organizationId = default(string?), int? page = default(int?), int? limit = default(int?), int operationIndex = 0) + public Tribufu.Client.ApiResponse> GetClientsWithHttpInfo(string organizationId = default(string), int? page = default(int?), int? limit = default(int?), int operationIndex = 0) { Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); @@ -9750,7 +9750,7 @@ namespace Tribufu.Api /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of List<ModelClient> - public async System.Threading.Tasks.Task> GetClientsAsync(string? organizationId = default(string?), int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> GetClientsAsync(string organizationId = default(string), int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.ApiResponse> localVarResponse = await GetClientsWithHttpInfoAsync(organizationId, page, limit, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -9766,7 +9766,7 @@ namespace Tribufu.Api /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (List<ModelClient>) - public async System.Threading.Tasks.Task>> GetClientsWithHttpInfoAsync(string? organizationId = default(string?), int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task>> GetClientsWithHttpInfoAsync(string organizationId = default(string), int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); @@ -12136,7 +12136,7 @@ namespace Tribufu.Api /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// List<GameServer> - public List GetGameServers(string? address = default(string?), int? queryPort = default(int?), string? country = default(string?), string? gameId = default(string?), int? page = default(int?), int? limit = default(int?), int operationIndex = 0) + public List GetGameServers(string address = default(string), int? queryPort = default(int?), string country = default(string), string gameId = default(string), int? page = default(int?), int? limit = default(int?), int operationIndex = 0) { Tribufu.Client.ApiResponse> localVarResponse = GetGameServersWithHttpInfo(address, queryPort, country, gameId, page, limit); return localVarResponse.Data; @@ -12154,7 +12154,7 @@ namespace Tribufu.Api /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// ApiResponse of List<GameServer> - public Tribufu.Client.ApiResponse> GetGameServersWithHttpInfo(string? address = default(string?), int? queryPort = default(int?), string? country = default(string?), string? gameId = default(string?), int? page = default(int?), int? limit = default(int?), int operationIndex = 0) + public Tribufu.Client.ApiResponse> GetGameServersWithHttpInfo(string address = default(string), int? queryPort = default(int?), string country = default(string), string gameId = default(string), int? page = default(int?), int? limit = default(int?), int operationIndex = 0) { Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); @@ -12240,7 +12240,7 @@ namespace Tribufu.Api /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of List<GameServer> - public async System.Threading.Tasks.Task> GetGameServersAsync(string? address = default(string?), int? queryPort = default(int?), string? country = default(string?), string? gameId = default(string?), int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> GetGameServersAsync(string address = default(string), int? queryPort = default(int?), string country = default(string), string gameId = default(string), int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.ApiResponse> localVarResponse = await GetGameServersWithHttpInfoAsync(address, queryPort, country, gameId, page, limit, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -12259,7 +12259,7 @@ namespace Tribufu.Api /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (List<GameServer>) - public async System.Threading.Tasks.Task>> GetGameServersWithHttpInfoAsync(string? address = default(string?), int? queryPort = default(int?), string? country = default(string?), string? gameId = default(string?), int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task>> GetGameServersWithHttpInfoAsync(string address = default(string), int? queryPort = default(int?), string country = default(string), string gameId = default(string), int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); @@ -13264,7 +13264,7 @@ namespace Tribufu.Api /// Index associated with the operation. /// List<GameServer> [Obsolete] - public List GetGameServersV1(string? address = default(string?), int? queryPort = default(int?), string? country = default(string?), string? gameId = default(string?), int? page = default(int?), int? limit = default(int?), int operationIndex = 0) + public List GetGameServersV1(string address = default(string), int? queryPort = default(int?), string country = default(string), string gameId = default(string), int? page = default(int?), int? limit = default(int?), int operationIndex = 0) { Tribufu.Client.ApiResponse> localVarResponse = GetGameServersV1WithHttpInfo(address, queryPort, country, gameId, page, limit); return localVarResponse.Data; @@ -13283,7 +13283,7 @@ namespace Tribufu.Api /// Index associated with the operation. /// ApiResponse of List<GameServer> [Obsolete] - public Tribufu.Client.ApiResponse> GetGameServersV1WithHttpInfo(string? address = default(string?), int? queryPort = default(int?), string? country = default(string?), string? gameId = default(string?), int? page = default(int?), int? limit = default(int?), int operationIndex = 0) + public Tribufu.Client.ApiResponse> GetGameServersV1WithHttpInfo(string address = default(string), int? queryPort = default(int?), string country = default(string), string gameId = default(string), int? page = default(int?), int? limit = default(int?), int operationIndex = 0) { Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); @@ -13370,7 +13370,7 @@ namespace Tribufu.Api /// Cancellation Token to cancel the request. /// Task of List<GameServer> [Obsolete] - public async System.Threading.Tasks.Task> GetGameServersV1Async(string? address = default(string?), int? queryPort = default(int?), string? country = default(string?), string? gameId = default(string?), int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> GetGameServersV1Async(string address = default(string), int? queryPort = default(int?), string country = default(string), string gameId = default(string), int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.ApiResponse> localVarResponse = await GetGameServersV1WithHttpInfoAsync(address, queryPort, country, gameId, page, limit, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -13390,7 +13390,7 @@ namespace Tribufu.Api /// Cancellation Token to cancel the request. /// Task of ApiResponse (List<GameServer>) [Obsolete] - public async System.Threading.Tasks.Task>> GetGameServersV1WithHttpInfoAsync(string? address = default(string?), int? queryPort = default(int?), string? country = default(string?), string? gameId = default(string?), int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task>> GetGameServersV1WithHttpInfoAsync(string address = default(string), int? queryPort = default(int?), string country = default(string), string gameId = default(string), int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); @@ -14717,7 +14717,7 @@ namespace Tribufu.Api /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// List<IpAddress> - public List GetIpAddresses(string? organizationId = default(string?), int? page = default(int?), int? limit = default(int?), int operationIndex = 0) + public List GetIpAddresses(string organizationId = default(string), int? page = default(int?), int? limit = default(int?), int operationIndex = 0) { Tribufu.Client.ApiResponse> localVarResponse = GetIpAddressesWithHttpInfo(organizationId, page, limit); return localVarResponse.Data; @@ -14732,7 +14732,7 @@ namespace Tribufu.Api /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// ApiResponse of List<IpAddress> - public Tribufu.Client.ApiResponse> GetIpAddressesWithHttpInfo(string? organizationId = default(string?), int? page = default(int?), int? limit = default(int?), int operationIndex = 0) + public Tribufu.Client.ApiResponse> GetIpAddressesWithHttpInfo(string organizationId = default(string), int? page = default(int?), int? limit = default(int?), int operationIndex = 0) { Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); @@ -14803,7 +14803,7 @@ namespace Tribufu.Api /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of List<IpAddress> - public async System.Threading.Tasks.Task> GetIpAddressesAsync(string? organizationId = default(string?), int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> GetIpAddressesAsync(string organizationId = default(string), int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.ApiResponse> localVarResponse = await GetIpAddressesWithHttpInfoAsync(organizationId, page, limit, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -14819,7 +14819,7 @@ namespace Tribufu.Api /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (List<IpAddress>) - public async System.Threading.Tasks.Task>> GetIpAddressesWithHttpInfoAsync(string? organizationId = default(string?), int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task>> GetIpAddressesWithHttpInfoAsync(string organizationId = default(string), int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); @@ -18956,7 +18956,7 @@ namespace Tribufu.Api /// (optional) /// Index associated with the operation. /// HashViewModel - public HashViewModel HashArgon2(HashViewModel? hashViewModel = default(HashViewModel?), int operationIndex = 0) + public HashViewModel HashArgon2(HashViewModel hashViewModel = default(HashViewModel), int operationIndex = 0) { Tribufu.Client.ApiResponse localVarResponse = HashArgon2WithHttpInfo(hashViewModel); return localVarResponse.Data; @@ -18969,7 +18969,7 @@ namespace Tribufu.Api /// (optional) /// Index associated with the operation. /// ApiResponse of HashViewModel - public Tribufu.Client.ApiResponse HashArgon2WithHttpInfo(HashViewModel? hashViewModel = default(HashViewModel?), int operationIndex = 0) + public Tribufu.Client.ApiResponse HashArgon2WithHttpInfo(HashViewModel hashViewModel = default(HashViewModel), int operationIndex = 0) { Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); @@ -19028,7 +19028,7 @@ namespace Tribufu.Api /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of HashViewModel - public async System.Threading.Tasks.Task HashArgon2Async(HashViewModel? hashViewModel = default(HashViewModel?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task HashArgon2Async(HashViewModel hashViewModel = default(HashViewModel), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.ApiResponse localVarResponse = await HashArgon2WithHttpInfoAsync(hashViewModel, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -19042,7 +19042,7 @@ namespace Tribufu.Api /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (HashViewModel) - public async System.Threading.Tasks.Task> HashArgon2WithHttpInfoAsync(HashViewModel? hashViewModel = default(HashViewModel?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> HashArgon2WithHttpInfoAsync(HashViewModel hashViewModel = default(HashViewModel), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); @@ -19101,7 +19101,7 @@ namespace Tribufu.Api /// (optional) /// Index associated with the operation. /// HashViewModel - public HashViewModel HashBcrypt(HashViewModel? hashViewModel = default(HashViewModel?), int operationIndex = 0) + public HashViewModel HashBcrypt(HashViewModel hashViewModel = default(HashViewModel), int operationIndex = 0) { Tribufu.Client.ApiResponse localVarResponse = HashBcryptWithHttpInfo(hashViewModel); return localVarResponse.Data; @@ -19114,7 +19114,7 @@ namespace Tribufu.Api /// (optional) /// Index associated with the operation. /// ApiResponse of HashViewModel - public Tribufu.Client.ApiResponse HashBcryptWithHttpInfo(HashViewModel? hashViewModel = default(HashViewModel?), int operationIndex = 0) + public Tribufu.Client.ApiResponse HashBcryptWithHttpInfo(HashViewModel hashViewModel = default(HashViewModel), int operationIndex = 0) { Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); @@ -19173,7 +19173,7 @@ namespace Tribufu.Api /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of HashViewModel - public async System.Threading.Tasks.Task HashBcryptAsync(HashViewModel? hashViewModel = default(HashViewModel?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task HashBcryptAsync(HashViewModel hashViewModel = default(HashViewModel), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.ApiResponse localVarResponse = await HashBcryptWithHttpInfoAsync(hashViewModel, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -19187,7 +19187,7 @@ namespace Tribufu.Api /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (HashViewModel) - public async System.Threading.Tasks.Task> HashBcryptWithHttpInfoAsync(HashViewModel? hashViewModel = default(HashViewModel?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> HashBcryptWithHttpInfoAsync(HashViewModel hashViewModel = default(HashViewModel), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); @@ -19246,7 +19246,7 @@ namespace Tribufu.Api /// (optional) /// Index associated with the operation. /// HashViewModel - public HashViewModel HashMd5(HashViewModel? hashViewModel = default(HashViewModel?), int operationIndex = 0) + public HashViewModel HashMd5(HashViewModel hashViewModel = default(HashViewModel), int operationIndex = 0) { Tribufu.Client.ApiResponse localVarResponse = HashMd5WithHttpInfo(hashViewModel); return localVarResponse.Data; @@ -19259,7 +19259,7 @@ namespace Tribufu.Api /// (optional) /// Index associated with the operation. /// ApiResponse of HashViewModel - public Tribufu.Client.ApiResponse HashMd5WithHttpInfo(HashViewModel? hashViewModel = default(HashViewModel?), int operationIndex = 0) + public Tribufu.Client.ApiResponse HashMd5WithHttpInfo(HashViewModel hashViewModel = default(HashViewModel), int operationIndex = 0) { Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); @@ -19318,7 +19318,7 @@ namespace Tribufu.Api /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of HashViewModel - public async System.Threading.Tasks.Task HashMd5Async(HashViewModel? hashViewModel = default(HashViewModel?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task HashMd5Async(HashViewModel hashViewModel = default(HashViewModel), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.ApiResponse localVarResponse = await HashMd5WithHttpInfoAsync(hashViewModel, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -19332,7 +19332,7 @@ namespace Tribufu.Api /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (HashViewModel) - public async System.Threading.Tasks.Task> HashMd5WithHttpInfoAsync(HashViewModel? hashViewModel = default(HashViewModel?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> HashMd5WithHttpInfoAsync(HashViewModel hashViewModel = default(HashViewModel), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); @@ -19391,7 +19391,7 @@ namespace Tribufu.Api /// (optional) /// Index associated with the operation. /// HashViewModel - public HashViewModel HashSha256(HashViewModel? hashViewModel = default(HashViewModel?), int operationIndex = 0) + public HashViewModel HashSha256(HashViewModel hashViewModel = default(HashViewModel), int operationIndex = 0) { Tribufu.Client.ApiResponse localVarResponse = HashSha256WithHttpInfo(hashViewModel); return localVarResponse.Data; @@ -19404,7 +19404,7 @@ namespace Tribufu.Api /// (optional) /// Index associated with the operation. /// ApiResponse of HashViewModel - public Tribufu.Client.ApiResponse HashSha256WithHttpInfo(HashViewModel? hashViewModel = default(HashViewModel?), int operationIndex = 0) + public Tribufu.Client.ApiResponse HashSha256WithHttpInfo(HashViewModel hashViewModel = default(HashViewModel), int operationIndex = 0) { Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); @@ -19463,7 +19463,7 @@ namespace Tribufu.Api /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of HashViewModel - public async System.Threading.Tasks.Task HashSha256Async(HashViewModel? hashViewModel = default(HashViewModel?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task HashSha256Async(HashViewModel hashViewModel = default(HashViewModel), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.ApiResponse localVarResponse = await HashSha256WithHttpInfoAsync(hashViewModel, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -19477,7 +19477,7 @@ namespace Tribufu.Api /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (HashViewModel) - public async System.Threading.Tasks.Task> HashSha256WithHttpInfoAsync(HashViewModel? hashViewModel = default(HashViewModel?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> HashSha256WithHttpInfoAsync(HashViewModel hashViewModel = default(HashViewModel), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); @@ -19536,7 +19536,7 @@ namespace Tribufu.Api /// (optional) /// Index associated with the operation. /// IntrospectResponse - public IntrospectResponse IntrospectToken(IntrospectRequest? introspectRequest = default(IntrospectRequest?), int operationIndex = 0) + public IntrospectResponse IntrospectToken(IntrospectRequest introspectRequest = default(IntrospectRequest), int operationIndex = 0) { Tribufu.Client.ApiResponse localVarResponse = IntrospectTokenWithHttpInfo(introspectRequest); return localVarResponse.Data; @@ -19549,7 +19549,7 @@ namespace Tribufu.Api /// (optional) /// Index associated with the operation. /// ApiResponse of IntrospectResponse - public Tribufu.Client.ApiResponse IntrospectTokenWithHttpInfo(IntrospectRequest? introspectRequest = default(IntrospectRequest?), int operationIndex = 0) + public Tribufu.Client.ApiResponse IntrospectTokenWithHttpInfo(IntrospectRequest introspectRequest = default(IntrospectRequest), int operationIndex = 0) { Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); @@ -19609,7 +19609,7 @@ namespace Tribufu.Api /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of IntrospectResponse - public async System.Threading.Tasks.Task IntrospectTokenAsync(IntrospectRequest? introspectRequest = default(IntrospectRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task IntrospectTokenAsync(IntrospectRequest introspectRequest = default(IntrospectRequest), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.ApiResponse localVarResponse = await IntrospectTokenWithHttpInfoAsync(introspectRequest, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -19623,7 +19623,7 @@ namespace Tribufu.Api /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (IntrospectResponse) - public async System.Threading.Tasks.Task> IntrospectTokenWithHttpInfoAsync(IntrospectRequest? introspectRequest = default(IntrospectRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> IntrospectTokenWithHttpInfoAsync(IntrospectRequest introspectRequest = default(IntrospectRequest), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); @@ -19683,7 +19683,7 @@ namespace Tribufu.Api /// (optional) /// Index associated with the operation. /// - public void RevokeToken(RevokeRequest? revokeRequest = default(RevokeRequest?), int operationIndex = 0) + public void RevokeToken(RevokeRequest revokeRequest = default(RevokeRequest), int operationIndex = 0) { RevokeTokenWithHttpInfo(revokeRequest); } @@ -19695,7 +19695,7 @@ namespace Tribufu.Api /// (optional) /// Index associated with the operation. /// ApiResponse of Object(void) - public Tribufu.Client.ApiResponse RevokeTokenWithHttpInfo(RevokeRequest? revokeRequest = default(RevokeRequest?), int operationIndex = 0) + public Tribufu.Client.ApiResponse RevokeTokenWithHttpInfo(RevokeRequest revokeRequest = default(RevokeRequest), int operationIndex = 0) { Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); @@ -19754,7 +19754,7 @@ namespace Tribufu.Api /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void - public async System.Threading.Tasks.Task RevokeTokenAsync(RevokeRequest? revokeRequest = default(RevokeRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task RevokeTokenAsync(RevokeRequest revokeRequest = default(RevokeRequest), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { await RevokeTokenWithHttpInfoAsync(revokeRequest, operationIndex, cancellationToken).ConfigureAwait(false); } @@ -19767,7 +19767,7 @@ namespace Tribufu.Api /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - public async System.Threading.Tasks.Task> RevokeTokenWithHttpInfoAsync(RevokeRequest? revokeRequest = default(RevokeRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> RevokeTokenWithHttpInfoAsync(RevokeRequest revokeRequest = default(RevokeRequest), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); @@ -19826,7 +19826,7 @@ namespace Tribufu.Api /// (optional) /// Index associated with the operation. /// List<Object> - public List Search(Search? search = default(Search?), int operationIndex = 0) + public List Search(Search search = default(Search), int operationIndex = 0) { Tribufu.Client.ApiResponse> localVarResponse = SearchWithHttpInfo(search); return localVarResponse.Data; @@ -19839,7 +19839,7 @@ namespace Tribufu.Api /// (optional) /// Index associated with the operation. /// ApiResponse of List<Object> - public Tribufu.Client.ApiResponse> SearchWithHttpInfo(Search? search = default(Search?), int operationIndex = 0) + public Tribufu.Client.ApiResponse> SearchWithHttpInfo(Search search = default(Search), int operationIndex = 0) { Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); @@ -19898,7 +19898,7 @@ namespace Tribufu.Api /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of List<Object> - public async System.Threading.Tasks.Task> SearchAsync(Search? search = default(Search?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> SearchAsync(Search search = default(Search), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.ApiResponse> localVarResponse = await SearchWithHttpInfoAsync(search, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -19912,7 +19912,7 @@ namespace Tribufu.Api /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (List<Object>) - public async System.Threading.Tasks.Task>> SearchWithHttpInfoAsync(Search? search = default(Search?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task>> SearchWithHttpInfoAsync(Search search = default(Search), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); @@ -19972,7 +19972,7 @@ namespace Tribufu.Api /// (optional) /// Index associated with the operation. /// - public void UpdateClient(string id, Object? body = default(Object?), int operationIndex = 0) + public void UpdateClient(string id, Object body = default(Object), int operationIndex = 0) { UpdateClientWithHttpInfo(id, body); } @@ -19985,7 +19985,7 @@ namespace Tribufu.Api /// (optional) /// Index associated with the operation. /// ApiResponse of Object(void) - public Tribufu.Client.ApiResponse UpdateClientWithHttpInfo(string id, Object? body = default(Object?), int operationIndex = 0) + public Tribufu.Client.ApiResponse UpdateClientWithHttpInfo(string id, Object body = default(Object), int operationIndex = 0) { // verify the required parameter 'id' is set if (id == null) @@ -20051,7 +20051,7 @@ namespace Tribufu.Api /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void - public async System.Threading.Tasks.Task UpdateClientAsync(string id, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task UpdateClientAsync(string id, Object body = default(Object), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { await UpdateClientWithHttpInfoAsync(id, body, operationIndex, cancellationToken).ConfigureAwait(false); } @@ -20065,7 +20065,7 @@ namespace Tribufu.Api /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - public async System.Threading.Tasks.Task> UpdateClientWithHttpInfoAsync(string id, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> UpdateClientWithHttpInfoAsync(string id, Object body = default(Object), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'id' is set if (id == null) @@ -20131,7 +20131,7 @@ namespace Tribufu.Api /// (optional) /// Index associated with the operation. /// - public void UpdateGameServer(string id, Object? body = default(Object?), int operationIndex = 0) + public void UpdateGameServer(string id, Object body = default(Object), int operationIndex = 0) { UpdateGameServerWithHttpInfo(id, body); } @@ -20144,7 +20144,7 @@ namespace Tribufu.Api /// (optional) /// Index associated with the operation. /// ApiResponse of Object(void) - public Tribufu.Client.ApiResponse UpdateGameServerWithHttpInfo(string id, Object? body = default(Object?), int operationIndex = 0) + public Tribufu.Client.ApiResponse UpdateGameServerWithHttpInfo(string id, Object body = default(Object), int operationIndex = 0) { // verify the required parameter 'id' is set if (id == null) @@ -20210,7 +20210,7 @@ namespace Tribufu.Api /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void - public async System.Threading.Tasks.Task UpdateGameServerAsync(string id, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task UpdateGameServerAsync(string id, Object body = default(Object), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { await UpdateGameServerWithHttpInfoAsync(id, body, operationIndex, cancellationToken).ConfigureAwait(false); } @@ -20224,7 +20224,7 @@ namespace Tribufu.Api /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - public async System.Threading.Tasks.Task> UpdateGameServerWithHttpInfoAsync(string id, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> UpdateGameServerWithHttpInfoAsync(string id, Object body = default(Object), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'id' is set if (id == null) @@ -20290,7 +20290,7 @@ namespace Tribufu.Api /// (optional) /// Index associated with the operation. /// - public void UpdateGameServerCluster(string id, Object? body = default(Object?), int operationIndex = 0) + public void UpdateGameServerCluster(string id, Object body = default(Object), int operationIndex = 0) { UpdateGameServerClusterWithHttpInfo(id, body); } @@ -20303,7 +20303,7 @@ namespace Tribufu.Api /// (optional) /// Index associated with the operation. /// ApiResponse of Object(void) - public Tribufu.Client.ApiResponse UpdateGameServerClusterWithHttpInfo(string id, Object? body = default(Object?), int operationIndex = 0) + public Tribufu.Client.ApiResponse UpdateGameServerClusterWithHttpInfo(string id, Object body = default(Object), int operationIndex = 0) { // verify the required parameter 'id' is set if (id == null) @@ -20369,7 +20369,7 @@ namespace Tribufu.Api /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void - public async System.Threading.Tasks.Task UpdateGameServerClusterAsync(string id, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task UpdateGameServerClusterAsync(string id, Object body = default(Object), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { await UpdateGameServerClusterWithHttpInfoAsync(id, body, operationIndex, cancellationToken).ConfigureAwait(false); } @@ -20383,7 +20383,7 @@ namespace Tribufu.Api /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - public async System.Threading.Tasks.Task> UpdateGameServerClusterWithHttpInfoAsync(string id, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> UpdateGameServerClusterWithHttpInfoAsync(string id, Object body = default(Object), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'id' is set if (id == null) @@ -20450,7 +20450,7 @@ namespace Tribufu.Api /// Index associated with the operation. /// [Obsolete] - public void UpdateGameServerClusterV1(string id, Object? body = default(Object?), int operationIndex = 0) + public void UpdateGameServerClusterV1(string id, Object body = default(Object), int operationIndex = 0) { UpdateGameServerClusterV1WithHttpInfo(id, body); } @@ -20464,7 +20464,7 @@ namespace Tribufu.Api /// Index associated with the operation. /// ApiResponse of Object(void) [Obsolete] - public Tribufu.Client.ApiResponse UpdateGameServerClusterV1WithHttpInfo(string id, Object? body = default(Object?), int operationIndex = 0) + public Tribufu.Client.ApiResponse UpdateGameServerClusterV1WithHttpInfo(string id, Object body = default(Object), int operationIndex = 0) { // verify the required parameter 'id' is set if (id == null) @@ -20531,7 +20531,7 @@ namespace Tribufu.Api /// Cancellation Token to cancel the request. /// Task of void [Obsolete] - public async System.Threading.Tasks.Task UpdateGameServerClusterV1Async(string id, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task UpdateGameServerClusterV1Async(string id, Object body = default(Object), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { await UpdateGameServerClusterV1WithHttpInfoAsync(id, body, operationIndex, cancellationToken).ConfigureAwait(false); } @@ -20546,7 +20546,7 @@ namespace Tribufu.Api /// Cancellation Token to cancel the request. /// Task of ApiResponse [Obsolete] - public async System.Threading.Tasks.Task> UpdateGameServerClusterV1WithHttpInfoAsync(string id, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> UpdateGameServerClusterV1WithHttpInfoAsync(string id, Object body = default(Object), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'id' is set if (id == null) @@ -20613,7 +20613,7 @@ namespace Tribufu.Api /// Index associated with the operation. /// [Obsolete] - public void UpdateGameServerV1(string id, Object? body = default(Object?), int operationIndex = 0) + public void UpdateGameServerV1(string id, Object body = default(Object), int operationIndex = 0) { UpdateGameServerV1WithHttpInfo(id, body); } @@ -20627,7 +20627,7 @@ namespace Tribufu.Api /// Index associated with the operation. /// ApiResponse of Object(void) [Obsolete] - public Tribufu.Client.ApiResponse UpdateGameServerV1WithHttpInfo(string id, Object? body = default(Object?), int operationIndex = 0) + public Tribufu.Client.ApiResponse UpdateGameServerV1WithHttpInfo(string id, Object body = default(Object), int operationIndex = 0) { // verify the required parameter 'id' is set if (id == null) @@ -20694,7 +20694,7 @@ namespace Tribufu.Api /// Cancellation Token to cancel the request. /// Task of void [Obsolete] - public async System.Threading.Tasks.Task UpdateGameServerV1Async(string id, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task UpdateGameServerV1Async(string id, Object body = default(Object), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { await UpdateGameServerV1WithHttpInfoAsync(id, body, operationIndex, cancellationToken).ConfigureAwait(false); } @@ -20709,7 +20709,7 @@ namespace Tribufu.Api /// Cancellation Token to cancel the request. /// Task of ApiResponse [Obsolete] - public async System.Threading.Tasks.Task> UpdateGameServerV1WithHttpInfoAsync(string id, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> UpdateGameServerV1WithHttpInfoAsync(string id, Object body = default(Object), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'id' is set if (id == null) @@ -20775,7 +20775,7 @@ namespace Tribufu.Api /// (optional) /// Index associated with the operation. /// - public void UpdateGroup(string id, Object? body = default(Object?), int operationIndex = 0) + public void UpdateGroup(string id, Object body = default(Object), int operationIndex = 0) { UpdateGroupWithHttpInfo(id, body); } @@ -20788,7 +20788,7 @@ namespace Tribufu.Api /// (optional) /// Index associated with the operation. /// ApiResponse of Object(void) - public Tribufu.Client.ApiResponse UpdateGroupWithHttpInfo(string id, Object? body = default(Object?), int operationIndex = 0) + public Tribufu.Client.ApiResponse UpdateGroupWithHttpInfo(string id, Object body = default(Object), int operationIndex = 0) { // verify the required parameter 'id' is set if (id == null) @@ -20854,7 +20854,7 @@ namespace Tribufu.Api /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void - public async System.Threading.Tasks.Task UpdateGroupAsync(string id, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task UpdateGroupAsync(string id, Object body = default(Object), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { await UpdateGroupWithHttpInfoAsync(id, body, operationIndex, cancellationToken).ConfigureAwait(false); } @@ -20868,7 +20868,7 @@ namespace Tribufu.Api /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - public async System.Threading.Tasks.Task> UpdateGroupWithHttpInfoAsync(string id, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> UpdateGroupWithHttpInfoAsync(string id, Object body = default(Object), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'id' is set if (id == null) @@ -20934,7 +20934,7 @@ namespace Tribufu.Api /// (optional) /// Index associated with the operation. /// - public void UpdatePackage(string id, Package? package = default(Package?), int operationIndex = 0) + public void UpdatePackage(string id, Package package = default(Package), int operationIndex = 0) { UpdatePackageWithHttpInfo(id, package); } @@ -20947,7 +20947,7 @@ namespace Tribufu.Api /// (optional) /// Index associated with the operation. /// ApiResponse of Object(void) - public Tribufu.Client.ApiResponse UpdatePackageWithHttpInfo(string id, Package? package = default(Package?), int operationIndex = 0) + public Tribufu.Client.ApiResponse UpdatePackageWithHttpInfo(string id, Package package = default(Package), int operationIndex = 0) { // verify the required parameter 'id' is set if (id == null) @@ -21013,7 +21013,7 @@ namespace Tribufu.Api /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void - public async System.Threading.Tasks.Task UpdatePackageAsync(string id, Package? package = default(Package?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task UpdatePackageAsync(string id, Package package = default(Package), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { await UpdatePackageWithHttpInfoAsync(id, package, operationIndex, cancellationToken).ConfigureAwait(false); } @@ -21027,7 +21027,7 @@ namespace Tribufu.Api /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - public async System.Threading.Tasks.Task> UpdatePackageWithHttpInfoAsync(string id, Package? package = default(Package?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> UpdatePackageWithHttpInfoAsync(string id, Package package = default(Package), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'id' is set if (id == null) @@ -21093,7 +21093,7 @@ namespace Tribufu.Api /// (optional) /// Index associated with the operation. /// Profile - public Profile UpdateUserProfile(string id, UpdateProfile? updateProfile = default(UpdateProfile?), int operationIndex = 0) + public Profile UpdateUserProfile(string id, UpdateProfile updateProfile = default(UpdateProfile), int operationIndex = 0) { Tribufu.Client.ApiResponse localVarResponse = UpdateUserProfileWithHttpInfo(id, updateProfile); return localVarResponse.Data; @@ -21107,7 +21107,7 @@ namespace Tribufu.Api /// (optional) /// Index associated with the operation. /// ApiResponse of Profile - public Tribufu.Client.ApiResponse UpdateUserProfileWithHttpInfo(string id, UpdateProfile? updateProfile = default(UpdateProfile?), int operationIndex = 0) + public Tribufu.Client.ApiResponse UpdateUserProfileWithHttpInfo(string id, UpdateProfile updateProfile = default(UpdateProfile), int operationIndex = 0) { // verify the required parameter 'id' is set if (id == null) @@ -21174,7 +21174,7 @@ namespace Tribufu.Api /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of Profile - public async System.Threading.Tasks.Task UpdateUserProfileAsync(string id, UpdateProfile? updateProfile = default(UpdateProfile?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task UpdateUserProfileAsync(string id, UpdateProfile updateProfile = default(UpdateProfile), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.ApiResponse localVarResponse = await UpdateUserProfileWithHttpInfoAsync(id, updateProfile, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -21189,7 +21189,7 @@ namespace Tribufu.Api /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (Profile) - public async System.Threading.Tasks.Task> UpdateUserProfileWithHttpInfoAsync(string id, UpdateProfile? updateProfile = default(UpdateProfile?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> UpdateUserProfileWithHttpInfoAsync(string id, UpdateProfile updateProfile = default(UpdateProfile), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'id' is set if (id == null) @@ -21257,7 +21257,7 @@ namespace Tribufu.Api /// Index associated with the operation. /// Profile [Obsolete] - public Profile UpdateUserProfileV1(string id, UpdateProfile? updateProfile = default(UpdateProfile?), int operationIndex = 0) + public Profile UpdateUserProfileV1(string id, UpdateProfile updateProfile = default(UpdateProfile), int operationIndex = 0) { Tribufu.Client.ApiResponse localVarResponse = UpdateUserProfileV1WithHttpInfo(id, updateProfile); return localVarResponse.Data; @@ -21272,7 +21272,7 @@ namespace Tribufu.Api /// Index associated with the operation. /// ApiResponse of Profile [Obsolete] - public Tribufu.Client.ApiResponse UpdateUserProfileV1WithHttpInfo(string id, UpdateProfile? updateProfile = default(UpdateProfile?), int operationIndex = 0) + public Tribufu.Client.ApiResponse UpdateUserProfileV1WithHttpInfo(string id, UpdateProfile updateProfile = default(UpdateProfile), int operationIndex = 0) { // verify the required parameter 'id' is set if (id == null) @@ -21340,7 +21340,7 @@ namespace Tribufu.Api /// Cancellation Token to cancel the request. /// Task of Profile [Obsolete] - public async System.Threading.Tasks.Task UpdateUserProfileV1Async(string id, UpdateProfile? updateProfile = default(UpdateProfile?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task UpdateUserProfileV1Async(string id, UpdateProfile updateProfile = default(UpdateProfile), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.ApiResponse localVarResponse = await UpdateUserProfileV1WithHttpInfoAsync(id, updateProfile, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -21356,7 +21356,7 @@ namespace Tribufu.Api /// Cancellation Token to cancel the request. /// Task of ApiResponse (Profile) [Obsolete] - public async System.Threading.Tasks.Task> UpdateUserProfileV1WithHttpInfoAsync(string id, UpdateProfile? updateProfile = default(UpdateProfile?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> UpdateUserProfileV1WithHttpInfoAsync(string id, UpdateProfile updateProfile = default(UpdateProfile), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'id' is set if (id == null) diff --git a/src/Tribufu/Client/ApiClient.cs b/src/Tribufu/Client/ApiClient.cs index 46fc23e..7b6d9f7 100644 --- a/src/Tribufu/Client/ApiClient.cs +++ b/src/Tribufu/Client/ApiClient.cs @@ -23,6 +23,7 @@ using System.Text; using System.Threading; using System.Text.RegularExpressions; using System.Threading.Tasks; +using System.Web; using Newtonsoft.Json; using Newtonsoft.Json.Serialization; using RestSharp; diff --git a/src/Tribufu/Client/ClientUtils.cs b/src/Tribufu/Client/ClientUtils.cs index d114f0b..804327e 100644 --- a/src/Tribufu/Client/ClientUtils.cs +++ b/src/Tribufu/Client/ClientUtils.cs @@ -101,12 +101,6 @@ namespace Tribufu.Client // https://msdn.microsoft.com/en-us/library/az4se3k1(v=vs.110).aspx#Anchor_8 // For example: 2009-06-15T13:45:30.0000000 return dateTimeOffset.ToString((configuration ?? GlobalConfiguration.Instance).DateTimeFormat); - if (obj is DateOnly dateOnly) - // Return a formatted date string - Can be customized with Configuration.DateTimeFormat - // Defaults to an ISO 8601, using the known as a Round-trip date/time pattern ("o") - // https://msdn.microsoft.com/en-us/library/az4se3k1(v=vs.110).aspx#Anchor_8 - // For example: 2009-06-15 - return dateOnly.ToString((configuration ?? GlobalConfiguration.Instance).DateTimeFormat); if (obj is bool boolean) return boolean ? "true" : "false"; if (obj is ICollection collection) { diff --git a/src/Tribufu/Model/Profile.cs b/src/Tribufu/Model/Profile.cs index e076ba5..67a6f51 100644 --- a/src/Tribufu/Model/Profile.cs +++ b/src/Tribufu/Model/Profile.cs @@ -53,7 +53,7 @@ namespace Tribufu.Model /// viewCount. /// created. /// updated. - public Profile(string id = default(string), Guid uuid = default(Guid), string name = default(string), string displayName = default(string), bool verified = default(bool), int level = default(int), double experience = default(double), bool publicBirthday = default(bool), DateOnly? birthday = default(DateOnly?), double points = default(double), string location = default(string), string photoUrl = default(string), string bannerUrl = default(string), DateTime? lastOnline = default(DateTime?), string biography = default(string), int viewCount = default(int), DateTime created = default(DateTime), DateTime? updated = default(DateTime?)) + public Profile(string id = default(string), Guid uuid = default(Guid), string name = default(string), string displayName = default(string), bool verified = default(bool), int level = default(int), double experience = default(double), bool publicBirthday = default(bool), DateTime? birthday = default(DateTime?), double points = default(double), string location = default(string), string photoUrl = default(string), string bannerUrl = default(string), DateTime? lastOnline = default(DateTime?), string biography = default(string), int viewCount = default(int), DateTime created = default(DateTime), DateTime? updated = default(DateTime?)) { this.Id = id; this.Uuid = uuid; @@ -127,7 +127,8 @@ namespace Tribufu.Model /// Gets or Sets Birthday /// [DataMember(Name = "birthday", EmitDefaultValue = true)] - public DateOnly? Birthday { get; set; } + [JsonConverter(typeof(OpenAPIDateConverter))] + public DateTime? Birthday { get; set; } /// /// Gets or Sets Points diff --git a/src/Tribufu/README.md b/src/Tribufu/README.md deleted file mode 100644 index 54c1ab5..0000000 --- a/src/Tribufu/README.md +++ /dev/null @@ -1 +0,0 @@ -# Tribufu diff --git a/src/Tribufu/Tribufu.csproj b/src/Tribufu/Tribufu.csproj index 1f951d1..7337e40 100644 --- a/src/Tribufu/Tribufu.csproj +++ b/src/Tribufu/Tribufu.csproj @@ -9,12 +9,11 @@ true true false - annotations Library - net6.0 + netstandard2.0;net472;net5.0 - + diff --git a/src/Tribufu/TribufuApi.cs b/src/Tribufu/TribufuApi.cs index 2d9f8d3..d8ed7fb 100644 --- a/src/Tribufu/TribufuApi.cs +++ b/src/Tribufu/TribufuApi.cs @@ -25,7 +25,7 @@ namespace Tribufu /// /// Create a instance. /// - public TribufuApi(string? apiKey = null) : base(CreateConfiguration(apiKey)) + public TribufuApi(string apiKey = null) : base(CreateConfiguration(apiKey)) { } @@ -63,9 +63,12 @@ namespace Tribufu /// // Environment variable TRIBUFU_API_KEY must be set /// var api = TribufuApi.FromEnv(); /// - public static TribufuApi? FromEnv(string? prefix = null) + public static TribufuApi FromEnv(string prefix = null) { - prefix ??= "TRIBUFU"; + if (prefix == null) + { + prefix = "TRIBUFU"; + } var apiKey = Environment.GetEnvironmentVariable($"{prefix}_API_KEY"); @@ -110,8 +113,8 @@ namespace Tribufu { var version = GetVersion(); var frameworkDescription = RuntimeInformation.FrameworkDescription.Trim(); - var runtimeIdentifier = RuntimeInformation.RuntimeIdentifier.Trim(); - return $"Tribufu/{version} ({frameworkDescription}; {runtimeIdentifier})"; + //var runtimeIdentifier = RuntimeInformation.RuntimeIdentifier.Trim(); + return $"Tribufu/{version} ({frameworkDescription})"; //; {runtimeIdentifier})"; } /// @@ -151,7 +154,7 @@ namespace Tribufu /// /// Creates a configuration for the Tribufu API client. /// - private static Configuration CreateConfiguration(string? apiKey) + private static Configuration CreateConfiguration(string apiKey) { var config = new Configuration { diff --git a/src/Tribufu/TribufuApiSingleton.cs b/src/Tribufu/TribufuApiSingleton.cs index 1a01583..8eca3d6 100644 --- a/src/Tribufu/TribufuApiSingleton.cs +++ b/src/Tribufu/TribufuApiSingleton.cs @@ -11,14 +11,18 @@ namespace Tribufu /// public static class TribufuApiSingleton { - private static TribufuApi? _instance = null; + private static TribufuApi _instance = null; /// /// Get the singleton instance of . /// public static TribufuApi GetInstance() { - _instance ??= TribufuApi.FromEnvOrDefault(); + if (_instance == null) + { + _instance = TribufuApi.FromEnvOrDefault(); + } + return _instance; } From 87334bb28c3f6d5a6fee4a2a39ac49be1a1d8a62 Mon Sep 17 00:00:00 2001 From: Guilherme Werner Date: Mon, 22 Dec 2025 09:59:50 -0300 Subject: [PATCH 41/52] Update Directory.Build.props --- Directory.Build.props | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Directory.Build.props b/Directory.Build.props index 96c42d7..2f8cde9 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -6,7 +6,7 @@ MIT git https://github.com/tribufu/tribufu-dotnet - 1.2.0 + 1.2.1 $(Version).0 $(NoWarn);0618;1591;1998;2002;8767 From 967865989234fcf7880cbbaf8a5569720d8224fc Mon Sep 17 00:00:00 2001 From: Guilherme Werner Date: Sat, 27 Dec 2025 10:05:50 -0300 Subject: [PATCH 42/52] Release v1.3.0 --- .openapi-generator/FILES | 9 +- Directory.Build.props | 2 +- src/Tribufu/Api/TribufuGeneratedApi.cs | 1183 +++++++---------- src/Tribufu/Client/ApiClient.cs | 2 +- src/Tribufu/Client/ApiException.cs | 2 +- src/Tribufu/Client/ApiResponse.cs | 2 +- src/Tribufu/Client/ClientUtils.cs | 2 +- src/Tribufu/Client/Configuration.cs | 4 +- src/Tribufu/Client/ExceptionFactory.cs | 2 +- src/Tribufu/Client/GlobalConfiguration.cs | 2 +- src/Tribufu/Client/HttpMethod.cs | 2 +- src/Tribufu/Client/IApiAccessor.cs | 2 +- src/Tribufu/Client/IAsynchronousClient.cs | 2 +- src/Tribufu/Client/IReadableConfiguration.cs | 2 +- src/Tribufu/Client/ISynchronousClient.cs | 2 +- src/Tribufu/Client/Multimap.cs | 2 +- src/Tribufu/Client/OpenAPIDateConverter.cs | 2 +- src/Tribufu/Client/RequestOptions.cs | 2 +- src/Tribufu/Client/RetryConfiguration.cs | 2 +- src/Tribufu/Model/AbstractOpenAPISchema.cs | 2 +- src/Tribufu/Model/Account.cs | 2 +- src/Tribufu/Model/Application.cs | 2 +- src/Tribufu/Model/ApplicationType.cs | 2 +- src/Tribufu/Model/AuthorizeRequest.cs | 2 +- src/Tribufu/Model/ClientInfo.cs | 2 +- src/Tribufu/Model/ClientType.cs | 2 +- src/Tribufu/Model/CodeChallengeMethod.cs | 2 +- src/Tribufu/Model/CodeResponse.cs | 2 +- src/Tribufu/Model/CreateUser.cs | 2 +- src/Tribufu/Model/CryptoViewModel.cs | 2 +- src/Tribufu/Model/Game.cs | 2 +- src/Tribufu/Model/GameServer.cs | 2 +- src/Tribufu/Model/GameServerCluster.cs | 2 +- src/Tribufu/Model/GameServerQuery.cs | 2 +- src/Tribufu/Model/GameServerStatus.cs | 2 +- src/Tribufu/Model/GrantType.cs | 2 +- src/Tribufu/Model/Group.cs | 8 +- .../{GroupGame.cs => GroupApplication.cs} | 20 +- src/Tribufu/Model/GroupMember.cs | 2 +- src/Tribufu/Model/GroupRank.cs | 2 +- src/Tribufu/Model/HashViewModel.cs | 2 +- src/Tribufu/Model/IntrospectRequest.cs | 2 +- src/Tribufu/Model/IntrospectResponse.cs | 2 +- src/Tribufu/Model/IpAddress.cs | 31 +- src/Tribufu/Model/LeaderboardItem.cs | 2 +- src/Tribufu/Model/LeaderboardOrder.cs | 2 +- src/Tribufu/Model/LoginProvider.cs | 2 +- src/Tribufu/Model/ModelClient.cs | 2 +- src/Tribufu/Model/Package.cs | 2 +- src/Tribufu/Model/PackageRelease.cs | 4 +- .../Model/{Subscription.cs => Product.cs} | 55 +- .../{SubscriptionPrice.cs => ProductPrice.cs} | 24 +- src/Tribufu/Model/ProductType.cs | 48 + src/Tribufu/Model/Profile.cs | 2 +- src/Tribufu/Model/ProfileGame.cs | 2 +- src/Tribufu/Model/ProfileGroup.cs | 2 +- src/Tribufu/Model/ResponseType.cs | 2 +- src/Tribufu/Model/RevokeRequest.cs | 2 +- src/Tribufu/Model/Search.cs | 2 +- src/Tribufu/Model/SearchType.cs | 2 +- src/Tribufu/Model/ServerMetrics.cs | 2 +- src/Tribufu/Model/{File.cs => StorageFile.cs} | 42 +- src/Tribufu/Model/TokenHintType.cs | 2 +- src/Tribufu/Model/TokenRequest.cs | 2 +- src/Tribufu/Model/TokenResponse.cs | 2 +- src/Tribufu/Model/TokenType.cs | 2 +- src/Tribufu/Model/UpdateProfile.cs | 2 +- src/Tribufu/Model/UserInfo.cs | 2 +- src/Tribufu/Model/UserType.cs | 2 +- 69 files changed, 674 insertions(+), 870 deletions(-) rename src/Tribufu/Model/{GroupGame.cs => GroupApplication.cs} (85%) rename src/Tribufu/Model/{Subscription.cs => Product.cs} (69%) rename src/Tribufu/Model/{SubscriptionPrice.cs => ProductPrice.cs} (80%) create mode 100644 src/Tribufu/Model/ProductType.cs rename src/Tribufu/Model/{File.cs => StorageFile.cs} (88%) diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index 7def927..8950b6a 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -26,7 +26,6 @@ src/Tribufu/Model/CodeChallengeMethod.cs src/Tribufu/Model/CodeResponse.cs src/Tribufu/Model/CreateUser.cs src/Tribufu/Model/CryptoViewModel.cs -src/Tribufu/Model/File.cs src/Tribufu/Model/Game.cs src/Tribufu/Model/GameServer.cs src/Tribufu/Model/GameServerCluster.cs @@ -34,7 +33,7 @@ src/Tribufu/Model/GameServerQuery.cs src/Tribufu/Model/GameServerStatus.cs src/Tribufu/Model/GrantType.cs src/Tribufu/Model/Group.cs -src/Tribufu/Model/GroupGame.cs +src/Tribufu/Model/GroupApplication.cs src/Tribufu/Model/GroupMember.cs src/Tribufu/Model/GroupRank.cs src/Tribufu/Model/HashViewModel.cs @@ -47,6 +46,9 @@ src/Tribufu/Model/LoginProvider.cs src/Tribufu/Model/ModelClient.cs src/Tribufu/Model/Package.cs src/Tribufu/Model/PackageRelease.cs +src/Tribufu/Model/Product.cs +src/Tribufu/Model/ProductPrice.cs +src/Tribufu/Model/ProductType.cs src/Tribufu/Model/Profile.cs src/Tribufu/Model/ProfileGame.cs src/Tribufu/Model/ProfileGroup.cs @@ -55,8 +57,7 @@ src/Tribufu/Model/RevokeRequest.cs src/Tribufu/Model/Search.cs src/Tribufu/Model/SearchType.cs src/Tribufu/Model/ServerMetrics.cs -src/Tribufu/Model/Subscription.cs -src/Tribufu/Model/SubscriptionPrice.cs +src/Tribufu/Model/StorageFile.cs src/Tribufu/Model/TokenHintType.cs src/Tribufu/Model/TokenRequest.cs src/Tribufu/Model/TokenResponse.cs diff --git a/Directory.Build.props b/Directory.Build.props index 2f8cde9..33b9280 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -6,7 +6,7 @@ MIT git https://github.com/tribufu/tribufu-dotnet - 1.2.1 + 1.3.0 $(Version).0 $(NoWarn);0618;1591;1998;2002;8767 diff --git a/src/Tribufu/Api/TribufuGeneratedApi.cs b/src/Tribufu/Api/TribufuGeneratedApi.cs index 8edc678..ee083e2 100644 --- a/src/Tribufu/Api/TribufuGeneratedApi.cs +++ b/src/Tribufu/Api/TribufuGeneratedApi.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.6 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -318,37 +318,6 @@ namespace Tribufu.Api /// ApiResponse of Object(void) ApiResponse CreateGroupWithHttpInfo(Object body = default(Object), int operationIndex = 0); /// - /// Create a new package. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.package.create</code> - /// - /// Thrown when fails to make API call - /// - /// - /// - /// - /// (optional) - /// Index associated with the operation. - /// Package - Package CreatePackage(string name, System.IO.Stream image, List files, string version, string description = default(string), int operationIndex = 0); - - /// - /// Create a new package. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.package.create</code> - /// - /// Thrown when fails to make API call - /// - /// - /// - /// - /// (optional) - /// Index associated with the operation. - /// ApiResponse of Package - ApiResponse CreatePackageWithHttpInfo(string name, System.IO.Stream image, List files, string version, string description = default(string), int operationIndex = 0); - /// /// Create a new token with grant type. /// /// Thrown when fails to make API call @@ -655,7 +624,7 @@ namespace Tribufu.Api /// ApiResponse of List<Guid> ApiResponse> GenerateUuidWithHttpInfo(int? version = default(int?), int? amount = default(int?), int operationIndex = 0); /// - /// Get an oauth2 client by id. + /// Get a oauth2 client by id. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.client.get</code> @@ -667,7 +636,7 @@ namespace Tribufu.Api ModelClient GetClientById(string id, int operationIndex = 0); /// - /// Get an oauth2 client by id. + /// Get a oauth2 client by id. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.client.get</code> @@ -1390,8 +1359,8 @@ namespace Tribufu.Api /// Thrown when fails to make API call /// /// Index associated with the operation. - /// List<GroupGame> - List GetGroupGames(string id, int operationIndex = 0); + /// List<GroupApplication> + List GetGroupGames(string id, int operationIndex = 0); /// /// Get a list of games of a group. @@ -1402,8 +1371,8 @@ namespace Tribufu.Api /// Thrown when fails to make API call /// /// Index associated with the operation. - /// ApiResponse of List<GroupGame> - ApiResponse> GetGroupGamesWithHttpInfo(string id, int operationIndex = 0); + /// ApiResponse of List<GroupApplication> + ApiResponse> GetGroupGamesWithHttpInfo(string id, int operationIndex = 0); /// /// Get a list of members in a group. /// @@ -1571,6 +1540,54 @@ namespace Tribufu.Api /// ApiResponse of List<Package> ApiResponse> GetPackagesWithHttpInfo(int? page = default(int?), int? limit = default(int?), int operationIndex = 0); /// + /// Get a product by id. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.store.product.get</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Product + Product GetProductById(string id, int operationIndex = 0); + + /// + /// Get a product by id. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.store.product.get</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of Product + ApiResponse GetProductByIdWithHttpInfo(string id, int operationIndex = 0); + /// + /// Get a list of products. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.store.product.list</code> + /// + /// Thrown when fails to make API call + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// List<Product> + List GetProducts(int? page = default(int?), int? limit = default(int?), int operationIndex = 0); + + /// + /// Get a list of products. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.store.product.list</code> + /// + /// Thrown when fails to make API call + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// ApiResponse of List<Product> + ApiResponse> GetProductsWithHttpInfo(int? page = default(int?), int? limit = default(int?), int operationIndex = 0); + /// /// Get the public keys for the client. /// /// Thrown when fails to make API call @@ -1589,54 +1606,6 @@ namespace Tribufu.Api /// ApiResponse of Object(void) ApiResponse GetPublicKeysWithHttpInfo(int operationIndex = 0); /// - /// Get a subscription by id. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.store.subscription.get</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// Subscription - Subscription GetSubscriptionById(string id, int operationIndex = 0); - - /// - /// Get a subscription by id. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.store.subscription.get</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// ApiResponse of Subscription - ApiResponse GetSubscriptionByIdWithHttpInfo(string id, int operationIndex = 0); - /// - /// Get a list of subscriptions. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.store.subscription.list</code> - /// - /// Thrown when fails to make API call - /// The page number of the results to retrieve. Defaults to 1. (optional) - /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) - /// Index associated with the operation. - /// List<Subscription> - List GetSubscriptions(int? page = default(int?), int? limit = default(int?), int operationIndex = 0); - - /// - /// Get a list of subscriptions. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.store.subscription.list</code> - /// - /// Thrown when fails to make API call - /// The page number of the results to retrieve. Defaults to 1. (optional) - /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) - /// Index associated with the operation. - /// ApiResponse of List<Subscription> - ApiResponse> GetSubscriptionsWithHttpInfo(int? page = default(int?), int? limit = default(int?), int operationIndex = 0); - /// /// Get a list of connected accounts of the user. /// /// @@ -2834,39 +2803,6 @@ namespace Tribufu.Api /// Task of ApiResponse System.Threading.Tasks.Task> CreateGroupWithHttpInfoAsync(Object body = default(Object), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// - /// Create a new package. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.package.create</code> - /// - /// Thrown when fails to make API call - /// - /// - /// - /// - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of Package - System.Threading.Tasks.Task CreatePackageAsync(string name, System.IO.Stream image, List files, string version, string description = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); - - /// - /// Create a new package. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.package.create</code> - /// - /// Thrown when fails to make API call - /// - /// - /// - /// - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ApiResponse (Package) - System.Threading.Tasks.Task> CreatePackageWithHttpInfoAsync(string name, System.IO.Stream image, List files, string version, string description = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); - /// /// Create a new token with grant type. /// /// @@ -3202,7 +3138,7 @@ namespace Tribufu.Api /// Task of ApiResponse (List<Guid>) System.Threading.Tasks.Task>> GenerateUuidWithHttpInfoAsync(int? version = default(int?), int? amount = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// - /// Get an oauth2 client by id. + /// Get a oauth2 client by id. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.client.get</code> @@ -3215,7 +3151,7 @@ namespace Tribufu.Api System.Threading.Tasks.Task GetClientByIdAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// - /// Get an oauth2 client by id. + /// Get a oauth2 client by id. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.client.get</code> @@ -4002,8 +3938,8 @@ namespace Tribufu.Api /// /// Index associated with the operation. /// Cancellation Token to cancel the request. - /// Task of List<GroupGame> - System.Threading.Tasks.Task> GetGroupGamesAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// Task of List<GroupApplication> + System.Threading.Tasks.Task> GetGroupGamesAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get a list of games of a group. @@ -4015,8 +3951,8 @@ namespace Tribufu.Api /// /// Index associated with the operation. /// Cancellation Token to cancel the request. - /// Task of ApiResponse (List<GroupGame>) - System.Threading.Tasks.Task>> GetGroupGamesWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// Task of ApiResponse (List<GroupApplication>) + System.Threading.Tasks.Task>> GetGroupGamesWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get a list of members in a group. /// @@ -4201,6 +4137,58 @@ namespace Tribufu.Api /// Task of ApiResponse (List<Package>) System.Threading.Tasks.Task>> GetPackagesWithHttpInfoAsync(int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// + /// Get a product by id. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.store.product.get</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of Product + System.Threading.Tasks.Task GetProductByIdAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Get a product by id. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.store.product.get</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (Product) + System.Threading.Tasks.Task> GetProductByIdWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// Get a list of products. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.store.product.list</code> + /// + /// Thrown when fails to make API call + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of List<Product> + System.Threading.Tasks.Task> GetProductsAsync(int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Get a list of products. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.store.product.list</code> + /// + /// Thrown when fails to make API call + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (List<Product>) + System.Threading.Tasks.Task>> GetProductsWithHttpInfoAsync(int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// /// Get the public keys for the client. /// /// @@ -4224,58 +4212,6 @@ namespace Tribufu.Api /// Task of ApiResponse System.Threading.Tasks.Task> GetPublicKeysWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// - /// Get a subscription by id. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.store.subscription.get</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of Subscription - System.Threading.Tasks.Task GetSubscriptionByIdAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); - - /// - /// Get a subscription by id. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.store.subscription.get</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ApiResponse (Subscription) - System.Threading.Tasks.Task> GetSubscriptionByIdWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); - /// - /// Get a list of subscriptions. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.store.subscription.list</code> - /// - /// Thrown when fails to make API call - /// The page number of the results to retrieve. Defaults to 1. (optional) - /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of List<Subscription> - System.Threading.Tasks.Task> GetSubscriptionsAsync(int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); - - /// - /// Get a list of subscriptions. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.store.subscription.list</code> - /// - /// Thrown when fails to make API call - /// The page number of the results to retrieve. Defaults to 1. (optional) - /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ApiResponse (List<Subscription>) - System.Threading.Tasks.Task>> GetSubscriptionsWithHttpInfoAsync(int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); - /// /// Get a list of connected accounts of the user. /// /// @@ -7143,235 +7079,6 @@ namespace Tribufu.Api return localVarResponse; } - /// - /// Create a new package. <b>🔒 Required permissions:</b> <code>tribufu.community.package.create</code> - /// - /// Thrown when fails to make API call - /// - /// - /// - /// - /// (optional) - /// Index associated with the operation. - /// Package - public Package CreatePackage(string name, System.IO.Stream image, List files, string version, string description = default(string), int operationIndex = 0) - { - Tribufu.Client.ApiResponse localVarResponse = CreatePackageWithHttpInfo(name, image, files, version, description); - return localVarResponse.Data; - } - - /// - /// Create a new package. <b>🔒 Required permissions:</b> <code>tribufu.community.package.create</code> - /// - /// Thrown when fails to make API call - /// - /// - /// - /// - /// (optional) - /// Index associated with the operation. - /// ApiResponse of Package - public Tribufu.Client.ApiResponse CreatePackageWithHttpInfo(string name, System.IO.Stream image, List files, string version, string description = default(string), int operationIndex = 0) - { - // verify the required parameter 'name' is set - if (name == null) - { - throw new Tribufu.Client.ApiException(400, "Missing required parameter 'name' when calling TribufuGeneratedApi->CreatePackage"); - } - - // verify the required parameter 'image' is set - if (image == null) - { - throw new Tribufu.Client.ApiException(400, "Missing required parameter 'image' when calling TribufuGeneratedApi->CreatePackage"); - } - - // verify the required parameter 'files' is set - if (files == null) - { - throw new Tribufu.Client.ApiException(400, "Missing required parameter 'files' when calling TribufuGeneratedApi->CreatePackage"); - } - - // verify the required parameter 'version' is set - if (version == null) - { - throw new Tribufu.Client.ApiException(400, "Missing required parameter 'version' when calling TribufuGeneratedApi->CreatePackage"); - } - - Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - "multipart/form-data" - }; - - // to determine the Accept header - string[] _accepts = new string[] { - "application/json" - }; - - var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - var localVarMultipartFormData = localVarContentType == "multipart/form-data"; - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - localVarRequestOptions.FormParameters.Add("name", Tribufu.Client.ClientUtils.ParameterToString(name)); // form parameter - if (description != null) - { - localVarRequestOptions.FormParameters.Add("description", Tribufu.Client.ClientUtils.ParameterToString(description)); // form parameter - } - localVarRequestOptions.FileParameters.Add("image", image); - foreach (var file in files) - { - localVarRequestOptions.FileParameters.Add("files", file); - } - localVarRequestOptions.FormParameters.Add("version", Tribufu.Client.ClientUtils.ParameterToString(version)); // form parameter - - localVarRequestOptions.Operation = "TribufuGeneratedApi.CreatePackage"; - localVarRequestOptions.OperationIndex = operationIndex; - - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } - - // make the HTTP request - var localVarResponse = this.Client.Post("/v1/packages", localVarRequestOptions, this.Configuration); - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("CreatePackage", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - - /// - /// Create a new package. <b>🔒 Required permissions:</b> <code>tribufu.community.package.create</code> - /// - /// Thrown when fails to make API call - /// - /// - /// - /// - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of Package - public async System.Threading.Tasks.Task CreatePackageAsync(string name, System.IO.Stream image, List files, string version, string description = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - Tribufu.Client.ApiResponse localVarResponse = await CreatePackageWithHttpInfoAsync(name, image, files, version, description, operationIndex, cancellationToken).ConfigureAwait(false); - return localVarResponse.Data; - } - - /// - /// Create a new package. <b>🔒 Required permissions:</b> <code>tribufu.community.package.create</code> - /// - /// Thrown when fails to make API call - /// - /// - /// - /// - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ApiResponse (Package) - public async System.Threading.Tasks.Task> CreatePackageWithHttpInfoAsync(string name, System.IO.Stream image, List files, string version, string description = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - // verify the required parameter 'name' is set - if (name == null) - { - throw new Tribufu.Client.ApiException(400, "Missing required parameter 'name' when calling TribufuGeneratedApi->CreatePackage"); - } - - // verify the required parameter 'image' is set - if (image == null) - { - throw new Tribufu.Client.ApiException(400, "Missing required parameter 'image' when calling TribufuGeneratedApi->CreatePackage"); - } - - // verify the required parameter 'files' is set - if (files == null) - { - throw new Tribufu.Client.ApiException(400, "Missing required parameter 'files' when calling TribufuGeneratedApi->CreatePackage"); - } - - // verify the required parameter 'version' is set - if (version == null) - { - throw new Tribufu.Client.ApiException(400, "Missing required parameter 'version' when calling TribufuGeneratedApi->CreatePackage"); - } - - - Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - "multipart/form-data" - }; - - // to determine the Accept header - string[] _accepts = new string[] { - "application/json" - }; - - var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - localVarRequestOptions.FormParameters.Add("name", Tribufu.Client.ClientUtils.ParameterToString(name)); // form parameter - if (description != null) - { - localVarRequestOptions.FormParameters.Add("description", Tribufu.Client.ClientUtils.ParameterToString(description)); // form parameter - } - localVarRequestOptions.FileParameters.Add("image", image); - foreach (var file in files) - { - localVarRequestOptions.FileParameters.Add("files", file); - } - localVarRequestOptions.FormParameters.Add("version", Tribufu.Client.ClientUtils.ParameterToString(version)); // form parameter - - localVarRequestOptions.Operation = "TribufuGeneratedApi.CreatePackage"; - localVarRequestOptions.OperationIndex = operationIndex; - - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } - - // make the HTTP request - var localVarResponse = await this.AsynchronousClient.PostAsync("/v1/packages", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); - - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("CreatePackage", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - /// /// Create a new token with grant type. /// @@ -9364,7 +9071,7 @@ namespace Tribufu.Api } /// - /// Get an oauth2 client by id. <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.client.get</code> + /// Get a oauth2 client by id. <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.client.get</code> /// /// Thrown when fails to make API call /// @@ -9377,7 +9084,7 @@ namespace Tribufu.Api } /// - /// Get an oauth2 client by id. <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.client.get</code> + /// Get a oauth2 client by id. <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.client.get</code> /// /// Thrown when fails to make API call /// @@ -9440,7 +9147,7 @@ namespace Tribufu.Api } /// - /// Get an oauth2 client by id. <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.client.get</code> + /// Get a oauth2 client by id. <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.client.get</code> /// /// Thrown when fails to make API call /// @@ -9454,7 +9161,7 @@ namespace Tribufu.Api } /// - /// Get an oauth2 client by id. <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.client.get</code> + /// Get a oauth2 client by id. <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.client.get</code> /// /// Thrown when fails to make API call /// @@ -14084,10 +13791,10 @@ namespace Tribufu.Api /// Thrown when fails to make API call /// /// Index associated with the operation. - /// List<GroupGame> - public List GetGroupGames(string id, int operationIndex = 0) + /// List<GroupApplication> + public List GetGroupGames(string id, int operationIndex = 0) { - Tribufu.Client.ApiResponse> localVarResponse = GetGroupGamesWithHttpInfo(id); + Tribufu.Client.ApiResponse> localVarResponse = GetGroupGamesWithHttpInfo(id); return localVarResponse.Data; } @@ -14097,8 +13804,8 @@ namespace Tribufu.Api /// Thrown when fails to make API call /// /// Index associated with the operation. - /// ApiResponse of List<GroupGame> - public Tribufu.Client.ApiResponse> GetGroupGamesWithHttpInfo(string id, int operationIndex = 0) + /// ApiResponse of List<GroupApplication> + public Tribufu.Client.ApiResponse> GetGroupGamesWithHttpInfo(string id, int operationIndex = 0) { // verify the required parameter 'id' is set if (id == null) @@ -14141,7 +13848,7 @@ namespace Tribufu.Api } // make the HTTP request - var localVarResponse = this.Client.Get>("/v1/groups/{id}/games", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Get>("/v1/groups/{id}/games", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("GetGroupGames", localVarResponse); @@ -14161,10 +13868,10 @@ namespace Tribufu.Api /// /// Index associated with the operation. /// Cancellation Token to cancel the request. - /// Task of List<GroupGame> - public async System.Threading.Tasks.Task> GetGroupGamesAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + /// Task of List<GroupApplication> + public async System.Threading.Tasks.Task> GetGroupGamesAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { - Tribufu.Client.ApiResponse> localVarResponse = await GetGroupGamesWithHttpInfoAsync(id, operationIndex, cancellationToken).ConfigureAwait(false); + Tribufu.Client.ApiResponse> localVarResponse = await GetGroupGamesWithHttpInfoAsync(id, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -14175,8 +13882,8 @@ namespace Tribufu.Api /// /// Index associated with the operation. /// Cancellation Token to cancel the request. - /// Task of ApiResponse (List<GroupGame>) - public async System.Threading.Tasks.Task>> GetGroupGamesWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + /// Task of ApiResponse (List<GroupApplication>) + public async System.Threading.Tasks.Task>> GetGroupGamesWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'id' is set if (id == null) @@ -14219,7 +13926,7 @@ namespace Tribufu.Api } // make the HTTP request - var localVarResponse = await this.AsynchronousClient.GetAsync>("/v1/groups/{id}/games", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.GetAsync>("/v1/groups/{id}/games", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -15346,6 +15053,322 @@ namespace Tribufu.Api return localVarResponse; } + /// + /// Get a product by id. <b>🔒 Required permissions:</b> <code>tribufu.store.product.get</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Product + public Product GetProductById(string id, int operationIndex = 0) + { + Tribufu.Client.ApiResponse localVarResponse = GetProductByIdWithHttpInfo(id); + return localVarResponse.Data; + } + + /// + /// Get a product by id. <b>🔒 Required permissions:</b> <code>tribufu.store.product.get</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of Product + public Tribufu.Client.ApiResponse GetProductByIdWithHttpInfo(string id, int operationIndex = 0) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->GetProductById"); + } + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter + + localVarRequestOptions.Operation = "TribufuGeneratedApi.GetProductById"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/v1/products/{id}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetProductById", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get a product by id. <b>🔒 Required permissions:</b> <code>tribufu.store.product.get</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of Product + public async System.Threading.Tasks.Task GetProductByIdAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + Tribufu.Client.ApiResponse localVarResponse = await GetProductByIdWithHttpInfoAsync(id, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get a product by id. <b>🔒 Required permissions:</b> <code>tribufu.store.product.get</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (Product) + public async System.Threading.Tasks.Task> GetProductByIdWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->GetProductById"); + } + + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter + + localVarRequestOptions.Operation = "TribufuGeneratedApi.GetProductById"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/v1/products/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetProductById", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get a list of products. <b>🔒 Required permissions:</b> <code>tribufu.store.product.list</code> + /// + /// Thrown when fails to make API call + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// List<Product> + public List GetProducts(int? page = default(int?), int? limit = default(int?), int operationIndex = 0) + { + Tribufu.Client.ApiResponse> localVarResponse = GetProductsWithHttpInfo(page, limit); + return localVarResponse.Data; + } + + /// + /// Get a list of products. <b>🔒 Required permissions:</b> <code>tribufu.store.product.list</code> + /// + /// Thrown when fails to make API call + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// ApiResponse of List<Product> + public Tribufu.Client.ApiResponse> GetProductsWithHttpInfo(int? page = default(int?), int? limit = default(int?), int operationIndex = 0) + { + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (page != null) + { + localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + } + if (limit != null) + { + localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "limit", limit)); + } + + localVarRequestOptions.Operation = "TribufuGeneratedApi.GetProducts"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get>("/v1/products", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetProducts", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get a list of products. <b>🔒 Required permissions:</b> <code>tribufu.store.product.list</code> + /// + /// Thrown when fails to make API call + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of List<Product> + public async System.Threading.Tasks.Task> GetProductsAsync(int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + Tribufu.Client.ApiResponse> localVarResponse = await GetProductsWithHttpInfoAsync(page, limit, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get a list of products. <b>🔒 Required permissions:</b> <code>tribufu.store.product.list</code> + /// + /// Thrown when fails to make API call + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (List<Product>) + public async System.Threading.Tasks.Task>> GetProductsWithHttpInfoAsync(int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (page != null) + { + localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + } + if (limit != null) + { + localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "limit", limit)); + } + + localVarRequestOptions.Operation = "TribufuGeneratedApi.GetProducts"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync>("/v1/products", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetProducts", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + /// /// Get the public keys for the client. /// @@ -15479,322 +15502,6 @@ namespace Tribufu.Api return localVarResponse; } - /// - /// Get a subscription by id. <b>🔒 Required permissions:</b> <code>tribufu.store.subscription.get</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// Subscription - public Subscription GetSubscriptionById(string id, int operationIndex = 0) - { - Tribufu.Client.ApiResponse localVarResponse = GetSubscriptionByIdWithHttpInfo(id); - return localVarResponse.Data; - } - - /// - /// Get a subscription by id. <b>🔒 Required permissions:</b> <code>tribufu.store.subscription.get</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// ApiResponse of Subscription - public Tribufu.Client.ApiResponse GetSubscriptionByIdWithHttpInfo(string id, int operationIndex = 0) - { - // verify the required parameter 'id' is set - if (id == null) - { - throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->GetSubscriptionById"); - } - - Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - }; - - // to determine the Accept header - string[] _accepts = new string[] { - "application/json" - }; - - var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - var localVarMultipartFormData = localVarContentType == "multipart/form-data"; - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter - - localVarRequestOptions.Operation = "TribufuGeneratedApi.GetSubscriptionById"; - localVarRequestOptions.OperationIndex = operationIndex; - - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } - - // make the HTTP request - var localVarResponse = this.Client.Get("/v1/subscriptions/{id}", localVarRequestOptions, this.Configuration); - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("GetSubscriptionById", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - - /// - /// Get a subscription by id. <b>🔒 Required permissions:</b> <code>tribufu.store.subscription.get</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of Subscription - public async System.Threading.Tasks.Task GetSubscriptionByIdAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - Tribufu.Client.ApiResponse localVarResponse = await GetSubscriptionByIdWithHttpInfoAsync(id, operationIndex, cancellationToken).ConfigureAwait(false); - return localVarResponse.Data; - } - - /// - /// Get a subscription by id. <b>🔒 Required permissions:</b> <code>tribufu.store.subscription.get</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ApiResponse (Subscription) - public async System.Threading.Tasks.Task> GetSubscriptionByIdWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - // verify the required parameter 'id' is set - if (id == null) - { - throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->GetSubscriptionById"); - } - - - Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - }; - - // to determine the Accept header - string[] _accepts = new string[] { - "application/json" - }; - - var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter - - localVarRequestOptions.Operation = "TribufuGeneratedApi.GetSubscriptionById"; - localVarRequestOptions.OperationIndex = operationIndex; - - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } - - // make the HTTP request - var localVarResponse = await this.AsynchronousClient.GetAsync("/v1/subscriptions/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); - - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("GetSubscriptionById", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - - /// - /// Get a list of subscriptions. <b>🔒 Required permissions:</b> <code>tribufu.store.subscription.list</code> - /// - /// Thrown when fails to make API call - /// The page number of the results to retrieve. Defaults to 1. (optional) - /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) - /// Index associated with the operation. - /// List<Subscription> - public List GetSubscriptions(int? page = default(int?), int? limit = default(int?), int operationIndex = 0) - { - Tribufu.Client.ApiResponse> localVarResponse = GetSubscriptionsWithHttpInfo(page, limit); - return localVarResponse.Data; - } - - /// - /// Get a list of subscriptions. <b>🔒 Required permissions:</b> <code>tribufu.store.subscription.list</code> - /// - /// Thrown when fails to make API call - /// The page number of the results to retrieve. Defaults to 1. (optional) - /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) - /// Index associated with the operation. - /// ApiResponse of List<Subscription> - public Tribufu.Client.ApiResponse> GetSubscriptionsWithHttpInfo(int? page = default(int?), int? limit = default(int?), int operationIndex = 0) - { - Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - }; - - // to determine the Accept header - string[] _accepts = new string[] { - "application/json" - }; - - var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - var localVarMultipartFormData = localVarContentType == "multipart/form-data"; - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - if (page != null) - { - localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "page", page)); - } - if (limit != null) - { - localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "limit", limit)); - } - - localVarRequestOptions.Operation = "TribufuGeneratedApi.GetSubscriptions"; - localVarRequestOptions.OperationIndex = operationIndex; - - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } - - // make the HTTP request - var localVarResponse = this.Client.Get>("/v1/subscriptions", localVarRequestOptions, this.Configuration); - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("GetSubscriptions", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - - /// - /// Get a list of subscriptions. <b>🔒 Required permissions:</b> <code>tribufu.store.subscription.list</code> - /// - /// Thrown when fails to make API call - /// The page number of the results to retrieve. Defaults to 1. (optional) - /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of List<Subscription> - public async System.Threading.Tasks.Task> GetSubscriptionsAsync(int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - Tribufu.Client.ApiResponse> localVarResponse = await GetSubscriptionsWithHttpInfoAsync(page, limit, operationIndex, cancellationToken).ConfigureAwait(false); - return localVarResponse.Data; - } - - /// - /// Get a list of subscriptions. <b>🔒 Required permissions:</b> <code>tribufu.store.subscription.list</code> - /// - /// Thrown when fails to make API call - /// The page number of the results to retrieve. Defaults to 1. (optional) - /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ApiResponse (List<Subscription>) - public async System.Threading.Tasks.Task>> GetSubscriptionsWithHttpInfoAsync(int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - - Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - }; - - // to determine the Accept header - string[] _accepts = new string[] { - "application/json" - }; - - var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - if (page != null) - { - localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "page", page)); - } - if (limit != null) - { - localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "limit", limit)); - } - - localVarRequestOptions.Operation = "TribufuGeneratedApi.GetSubscriptions"; - localVarRequestOptions.OperationIndex = operationIndex; - - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } - - // make the HTTP request - var localVarResponse = await this.AsynchronousClient.GetAsync>("/v1/subscriptions", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); - - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("GetSubscriptions", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - /// /// Get a list of connected accounts of the user. <b>🔒 Required permissions:</b> <code>tribufu.identity.user.account.list</code> /// diff --git a/src/Tribufu/Client/ApiClient.cs b/src/Tribufu/Client/ApiClient.cs index 7b6d9f7..c259f8e 100644 --- a/src/Tribufu/Client/ApiClient.cs +++ b/src/Tribufu/Client/ApiClient.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.6 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Client/ApiException.cs b/src/Tribufu/Client/ApiException.cs index 6c05a2b..711d390 100644 --- a/src/Tribufu/Client/ApiException.cs +++ b/src/Tribufu/Client/ApiException.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.6 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Client/ApiResponse.cs b/src/Tribufu/Client/ApiResponse.cs index 8fbc838..cd8b08c 100644 --- a/src/Tribufu/Client/ApiResponse.cs +++ b/src/Tribufu/Client/ApiResponse.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.6 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Client/ClientUtils.cs b/src/Tribufu/Client/ClientUtils.cs index 804327e..1063213 100644 --- a/src/Tribufu/Client/ClientUtils.cs +++ b/src/Tribufu/Client/ClientUtils.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.6 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Client/Configuration.cs b/src/Tribufu/Client/Configuration.cs index 50014fc..c3c4843 100644 --- a/src/Tribufu/Client/Configuration.cs +++ b/src/Tribufu/Client/Configuration.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.6 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -540,7 +540,7 @@ namespace Tribufu.Client string report = "C# SDK (Tribufu) Debug Report:\n"; report += " OS: " + System.Environment.OSVersion + "\n"; report += " .NET Framework Version: " + System.Environment.Version + "\n"; - report += " Version of the API: 1.2.6\n"; + report += " Version of the API: 1.3.0\n"; report += " SDK Package Version: 1.0.0\n"; return report; diff --git a/src/Tribufu/Client/ExceptionFactory.cs b/src/Tribufu/Client/ExceptionFactory.cs index 8d28cc4..34364a1 100644 --- a/src/Tribufu/Client/ExceptionFactory.cs +++ b/src/Tribufu/Client/ExceptionFactory.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.6 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Client/GlobalConfiguration.cs b/src/Tribufu/Client/GlobalConfiguration.cs index 7641592..ff0141b 100644 --- a/src/Tribufu/Client/GlobalConfiguration.cs +++ b/src/Tribufu/Client/GlobalConfiguration.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.6 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Client/HttpMethod.cs b/src/Tribufu/Client/HttpMethod.cs index 4c35694..ba76475 100644 --- a/src/Tribufu/Client/HttpMethod.cs +++ b/src/Tribufu/Client/HttpMethod.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.6 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Client/IApiAccessor.cs b/src/Tribufu/Client/IApiAccessor.cs index 00989a5..33aa55a 100644 --- a/src/Tribufu/Client/IApiAccessor.cs +++ b/src/Tribufu/Client/IApiAccessor.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.6 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Client/IAsynchronousClient.cs b/src/Tribufu/Client/IAsynchronousClient.cs index 23d76de..da592c5 100644 --- a/src/Tribufu/Client/IAsynchronousClient.cs +++ b/src/Tribufu/Client/IAsynchronousClient.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.6 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Client/IReadableConfiguration.cs b/src/Tribufu/Client/IReadableConfiguration.cs index 892dbe4..7744557 100644 --- a/src/Tribufu/Client/IReadableConfiguration.cs +++ b/src/Tribufu/Client/IReadableConfiguration.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.6 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Client/ISynchronousClient.cs b/src/Tribufu/Client/ISynchronousClient.cs index d4618ad..c9445ae 100644 --- a/src/Tribufu/Client/ISynchronousClient.cs +++ b/src/Tribufu/Client/ISynchronousClient.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.6 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Client/Multimap.cs b/src/Tribufu/Client/Multimap.cs index d56da96..00a8a45 100644 --- a/src/Tribufu/Client/Multimap.cs +++ b/src/Tribufu/Client/Multimap.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.6 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Client/OpenAPIDateConverter.cs b/src/Tribufu/Client/OpenAPIDateConverter.cs index 8caf5d9..1391b28 100644 --- a/src/Tribufu/Client/OpenAPIDateConverter.cs +++ b/src/Tribufu/Client/OpenAPIDateConverter.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.6 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Client/RequestOptions.cs b/src/Tribufu/Client/RequestOptions.cs index 567d320..81d1f51 100644 --- a/src/Tribufu/Client/RequestOptions.cs +++ b/src/Tribufu/Client/RequestOptions.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.6 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Client/RetryConfiguration.cs b/src/Tribufu/Client/RetryConfiguration.cs index 151393a..7b711fe 100644 --- a/src/Tribufu/Client/RetryConfiguration.cs +++ b/src/Tribufu/Client/RetryConfiguration.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.6 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Model/AbstractOpenAPISchema.cs b/src/Tribufu/Model/AbstractOpenAPISchema.cs index a45aa18..a282223 100644 --- a/src/Tribufu/Model/AbstractOpenAPISchema.cs +++ b/src/Tribufu/Model/AbstractOpenAPISchema.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.6 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Model/Account.cs b/src/Tribufu/Model/Account.cs index 6ac1a13..91b4c34 100644 --- a/src/Tribufu/Model/Account.cs +++ b/src/Tribufu/Model/Account.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.6 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Model/Application.cs b/src/Tribufu/Model/Application.cs index d071767..1d79518 100644 --- a/src/Tribufu/Model/Application.cs +++ b/src/Tribufu/Model/Application.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.6 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Model/ApplicationType.cs b/src/Tribufu/Model/ApplicationType.cs index 6196ccd..2d2d38e 100644 --- a/src/Tribufu/Model/ApplicationType.cs +++ b/src/Tribufu/Model/ApplicationType.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.6 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Model/AuthorizeRequest.cs b/src/Tribufu/Model/AuthorizeRequest.cs index c06ebf3..0b32301 100644 --- a/src/Tribufu/Model/AuthorizeRequest.cs +++ b/src/Tribufu/Model/AuthorizeRequest.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.6 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Model/ClientInfo.cs b/src/Tribufu/Model/ClientInfo.cs index edfd090..3072473 100644 --- a/src/Tribufu/Model/ClientInfo.cs +++ b/src/Tribufu/Model/ClientInfo.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.6 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Model/ClientType.cs b/src/Tribufu/Model/ClientType.cs index c6d9c41..ff5b51e 100644 --- a/src/Tribufu/Model/ClientType.cs +++ b/src/Tribufu/Model/ClientType.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.6 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Model/CodeChallengeMethod.cs b/src/Tribufu/Model/CodeChallengeMethod.cs index d74091e..3d9d8f7 100644 --- a/src/Tribufu/Model/CodeChallengeMethod.cs +++ b/src/Tribufu/Model/CodeChallengeMethod.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.6 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Model/CodeResponse.cs b/src/Tribufu/Model/CodeResponse.cs index 3f1a4e3..04f8673 100644 --- a/src/Tribufu/Model/CodeResponse.cs +++ b/src/Tribufu/Model/CodeResponse.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.6 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Model/CreateUser.cs b/src/Tribufu/Model/CreateUser.cs index 5fc723a..f5ca14d 100644 --- a/src/Tribufu/Model/CreateUser.cs +++ b/src/Tribufu/Model/CreateUser.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.6 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Model/CryptoViewModel.cs b/src/Tribufu/Model/CryptoViewModel.cs index 72f9aaa..67a6248 100644 --- a/src/Tribufu/Model/CryptoViewModel.cs +++ b/src/Tribufu/Model/CryptoViewModel.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.6 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Model/Game.cs b/src/Tribufu/Model/Game.cs index dabb0a1..922373d 100644 --- a/src/Tribufu/Model/Game.cs +++ b/src/Tribufu/Model/Game.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.6 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Model/GameServer.cs b/src/Tribufu/Model/GameServer.cs index 03baf5f..a740f22 100644 --- a/src/Tribufu/Model/GameServer.cs +++ b/src/Tribufu/Model/GameServer.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.6 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Model/GameServerCluster.cs b/src/Tribufu/Model/GameServerCluster.cs index 917a14a..6f27de9 100644 --- a/src/Tribufu/Model/GameServerCluster.cs +++ b/src/Tribufu/Model/GameServerCluster.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.6 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Model/GameServerQuery.cs b/src/Tribufu/Model/GameServerQuery.cs index a283508..f15549d 100644 --- a/src/Tribufu/Model/GameServerQuery.cs +++ b/src/Tribufu/Model/GameServerQuery.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.6 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Model/GameServerStatus.cs b/src/Tribufu/Model/GameServerStatus.cs index a27950f..aa74bea 100644 --- a/src/Tribufu/Model/GameServerStatus.cs +++ b/src/Tribufu/Model/GameServerStatus.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.6 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Model/GrantType.cs b/src/Tribufu/Model/GrantType.cs index 45760bd..02ee64f 100644 --- a/src/Tribufu/Model/GrantType.cs +++ b/src/Tribufu/Model/GrantType.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.6 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Model/Group.cs b/src/Tribufu/Model/Group.cs index 31935dd..fad9de6 100644 --- a/src/Tribufu/Model/Group.cs +++ b/src/Tribufu/Model/Group.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.6 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -221,6 +221,12 @@ namespace Tribufu.Model /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { + // Name (string) maxLength + if (this.Name != null && this.Name.Length > 75) + { + yield return new ValidationResult("Invalid value for Name, length must be less than 75.", new [] { "Name" }); + } + yield break; } } diff --git a/src/Tribufu/Model/GroupGame.cs b/src/Tribufu/Model/GroupApplication.cs similarity index 85% rename from src/Tribufu/Model/GroupGame.cs rename to src/Tribufu/Model/GroupApplication.cs index 49a026f..b3bb03e 100644 --- a/src/Tribufu/Model/GroupGame.cs +++ b/src/Tribufu/Model/GroupApplication.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.6 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -27,18 +27,18 @@ using OpenAPIDateConverter = Tribufu.Client.OpenAPIDateConverter; namespace Tribufu.Model { /// - /// GroupGame + /// GroupApplication /// - [DataContract(Name = "GroupGame")] - public partial class GroupGame : IValidatableObject + [DataContract(Name = "GroupApplication")] + public partial class GroupApplication : IValidatableObject { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// [JsonConstructorAttribute] - protected GroupGame() { } + protected GroupApplication() { } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// groupId (required). /// group. @@ -47,12 +47,12 @@ namespace Tribufu.Model /// stats. /// acquired. /// lastUsed. - public GroupGame(string groupId = default(string), Group group = default(Group), string applicationId = default(string), Application application = default(Application), Object stats = default(Object), DateTime acquired = default(DateTime), DateTime? lastUsed = default(DateTime?)) + public GroupApplication(string groupId = default(string), Group group = default(Group), string applicationId = default(string), Application application = default(Application), Object stats = default(Object), DateTime acquired = default(DateTime), DateTime? lastUsed = default(DateTime?)) { // to ensure "groupId" is required (not null) if (groupId == null) { - throw new ArgumentNullException("groupId is a required property for GroupGame and cannot be null"); + throw new ArgumentNullException("groupId is a required property for GroupApplication and cannot be null"); } this.GroupId = groupId; this.Group = group; @@ -112,7 +112,7 @@ namespace Tribufu.Model public override string ToString() { StringBuilder sb = new StringBuilder(); - sb.Append("class GroupGame {\n"); + sb.Append("class GroupApplication {\n"); sb.Append(" GroupId: ").Append(GroupId).Append("\n"); sb.Append(" Group: ").Append(Group).Append("\n"); sb.Append(" ApplicationId: ").Append(ApplicationId).Append("\n"); diff --git a/src/Tribufu/Model/GroupMember.cs b/src/Tribufu/Model/GroupMember.cs index f65e65f..712d109 100644 --- a/src/Tribufu/Model/GroupMember.cs +++ b/src/Tribufu/Model/GroupMember.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.6 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Model/GroupRank.cs b/src/Tribufu/Model/GroupRank.cs index 804eadc..8df4b81 100644 --- a/src/Tribufu/Model/GroupRank.cs +++ b/src/Tribufu/Model/GroupRank.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.6 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Model/HashViewModel.cs b/src/Tribufu/Model/HashViewModel.cs index b041e8c..89cc955 100644 --- a/src/Tribufu/Model/HashViewModel.cs +++ b/src/Tribufu/Model/HashViewModel.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.6 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Model/IntrospectRequest.cs b/src/Tribufu/Model/IntrospectRequest.cs index 2104dcd..0b5b3ad 100644 --- a/src/Tribufu/Model/IntrospectRequest.cs +++ b/src/Tribufu/Model/IntrospectRequest.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.6 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Model/IntrospectResponse.cs b/src/Tribufu/Model/IntrospectResponse.cs index 989c10a..efc09af 100644 --- a/src/Tribufu/Model/IntrospectResponse.cs +++ b/src/Tribufu/Model/IntrospectResponse.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.6 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Model/IpAddress.cs b/src/Tribufu/Model/IpAddress.cs index f17ff5e..ae097f1 100644 --- a/src/Tribufu/Model/IpAddress.cs +++ b/src/Tribufu/Model/IpAddress.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.6 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -39,11 +39,12 @@ namespace Tribufu.Model /// varVersion. /// network. /// reserved. + /// banned. /// asn. /// isp. /// continent. /// country. - /// region. + /// province. /// city. /// postalCode. /// callingCode. @@ -53,17 +54,18 @@ namespace Tribufu.Model /// currency. /// latitude. /// longitude. - public IpAddress(string address = default(string), int varVersion = default(int), string network = default(string), bool reserved = default(bool), string asn = default(string), string isp = default(string), string continent = default(string), string country = default(string), string region = default(string), string city = default(string), string postalCode = default(string), string callingCode = default(string), string tld = default(string), string language = default(string), string timezone = default(string), string currency = default(string), float? latitude = default(float?), float? longitude = default(float?)) + public IpAddress(string address = default(string), int varVersion = default(int), string network = default(string), bool reserved = default(bool), bool banned = default(bool), string asn = default(string), string isp = default(string), string continent = default(string), string country = default(string), string province = default(string), string city = default(string), string postalCode = default(string), string callingCode = default(string), string tld = default(string), string language = default(string), string timezone = default(string), string currency = default(string), float? latitude = default(float?), float? longitude = default(float?)) { this.Address = address; this.VarVersion = varVersion; this.Network = network; this.Reserved = reserved; + this.Banned = banned; this.Asn = asn; this.Isp = isp; this.Continent = continent; this.Country = country; - this.Region = region; + this.Province = province; this.City = city; this.PostalCode = postalCode; this.CallingCode = callingCode; @@ -99,6 +101,12 @@ namespace Tribufu.Model [DataMember(Name = "reserved", EmitDefaultValue = true)] public bool Reserved { get; set; } + /// + /// Gets or Sets Banned + /// + [DataMember(Name = "banned", EmitDefaultValue = true)] + public bool Banned { get; set; } + /// /// Gets or Sets Asn /// @@ -124,10 +132,10 @@ namespace Tribufu.Model public string Country { get; set; } /// - /// Gets or Sets Region + /// Gets or Sets Province /// - [DataMember(Name = "region", EmitDefaultValue = true)] - public string Region { get; set; } + [DataMember(Name = "province", EmitDefaultValue = true)] + public string Province { get; set; } /// /// Gets or Sets City @@ -195,11 +203,12 @@ namespace Tribufu.Model sb.Append(" VarVersion: ").Append(VarVersion).Append("\n"); sb.Append(" Network: ").Append(Network).Append("\n"); sb.Append(" Reserved: ").Append(Reserved).Append("\n"); + sb.Append(" Banned: ").Append(Banned).Append("\n"); sb.Append(" Asn: ").Append(Asn).Append("\n"); sb.Append(" Isp: ").Append(Isp).Append("\n"); sb.Append(" Continent: ").Append(Continent).Append("\n"); sb.Append(" Country: ").Append(Country).Append("\n"); - sb.Append(" Region: ").Append(Region).Append("\n"); + sb.Append(" Province: ").Append(Province).Append("\n"); sb.Append(" City: ").Append(City).Append("\n"); sb.Append(" PostalCode: ").Append(PostalCode).Append("\n"); sb.Append(" CallingCode: ").Append(CallingCode).Append("\n"); @@ -265,10 +274,10 @@ namespace Tribufu.Model yield return new ValidationResult("Invalid value for Country, length must be less than 2.", new [] { "Country" }); } - // Region (string) maxLength - if (this.Region != null && this.Region.Length > 255) + // Province (string) maxLength + if (this.Province != null && this.Province.Length > 255) { - yield return new ValidationResult("Invalid value for Region, length must be less than 255.", new [] { "Region" }); + yield return new ValidationResult("Invalid value for Province, length must be less than 255.", new [] { "Province" }); } // City (string) maxLength diff --git a/src/Tribufu/Model/LeaderboardItem.cs b/src/Tribufu/Model/LeaderboardItem.cs index 81a5bb2..f57f8f9 100644 --- a/src/Tribufu/Model/LeaderboardItem.cs +++ b/src/Tribufu/Model/LeaderboardItem.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.6 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Model/LeaderboardOrder.cs b/src/Tribufu/Model/LeaderboardOrder.cs index 0b10b5d..db059a8 100644 --- a/src/Tribufu/Model/LeaderboardOrder.cs +++ b/src/Tribufu/Model/LeaderboardOrder.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.6 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Model/LoginProvider.cs b/src/Tribufu/Model/LoginProvider.cs index 98afd9c..1180247 100644 --- a/src/Tribufu/Model/LoginProvider.cs +++ b/src/Tribufu/Model/LoginProvider.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.6 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Model/ModelClient.cs b/src/Tribufu/Model/ModelClient.cs index df70048..1ea8a92 100644 --- a/src/Tribufu/Model/ModelClient.cs +++ b/src/Tribufu/Model/ModelClient.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.6 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Model/Package.cs b/src/Tribufu/Model/Package.cs index c4ae0c4..9170aa1 100644 --- a/src/Tribufu/Model/Package.cs +++ b/src/Tribufu/Model/Package.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.6 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Model/PackageRelease.cs b/src/Tribufu/Model/PackageRelease.cs index 14ff2a2..da09596 100644 --- a/src/Tribufu/Model/PackageRelease.cs +++ b/src/Tribufu/Model/PackageRelease.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.6 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -89,7 +89,7 @@ namespace Tribufu.Model /// Gets or Sets Files /// [DataMember(Name = "files", EmitDefaultValue = true)] - public List Files { get; private set; } + public List Files { get; private set; } /// /// Returns false as Files should not be serialized given that it's read-only. diff --git a/src/Tribufu/Model/Subscription.cs b/src/Tribufu/Model/Product.cs similarity index 69% rename from src/Tribufu/Model/Subscription.cs rename to src/Tribufu/Model/Product.cs index 3dafafe..15e373b 100644 --- a/src/Tribufu/Model/Subscription.cs +++ b/src/Tribufu/Model/Product.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.6 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -27,37 +27,49 @@ using OpenAPIDateConverter = Tribufu.Client.OpenAPIDateConverter; namespace Tribufu.Model { /// - /// Subscription + /// Product /// - [DataContract(Name = "Subscription")] - public partial class Subscription : IValidatableObject + [DataContract(Name = "Product")] + public partial class Product : IValidatableObject { + /// - /// Initializes a new instance of the class. + /// Gets or Sets Type + /// + [DataMember(Name = "type", EmitDefaultValue = false)] + public ProductType? Type { get; set; } + /// + /// Initializes a new instance of the class. /// [JsonConstructorAttribute] - protected Subscription() { } + protected Product() { } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// id. /// name (required). /// description. + /// type. + /// slug. /// imageUrl. + /// isPhysical. /// prices. /// created. /// updated. - public Subscription(string id = default(string), string name = default(string), string description = default(string), string imageUrl = default(string), List prices = default(List), DateTime created = default(DateTime), DateTime? updated = default(DateTime?)) + public Product(string id = default(string), string name = default(string), string description = default(string), ProductType? type = default(ProductType?), string slug = default(string), string imageUrl = default(string), bool isPhysical = default(bool), List prices = default(List), DateTime created = default(DateTime), DateTime? updated = default(DateTime?)) { // to ensure "name" is required (not null) if (name == null) { - throw new ArgumentNullException("name is a required property for Subscription and cannot be null"); + throw new ArgumentNullException("name is a required property for Product and cannot be null"); } this.Name = name; this.Id = id; this.Description = description; + this.Type = type; + this.Slug = slug; this.ImageUrl = imageUrl; + this.IsPhysical = isPhysical; this.Prices = prices; this.Created = created; this.Updated = updated; @@ -81,17 +93,29 @@ namespace Tribufu.Model [DataMember(Name = "description", EmitDefaultValue = true)] public string Description { get; set; } + /// + /// Gets or Sets Slug + /// + [DataMember(Name = "slug", EmitDefaultValue = true)] + public string Slug { get; set; } + /// /// Gets or Sets ImageUrl /// [DataMember(Name = "image_url", EmitDefaultValue = true)] public string ImageUrl { get; set; } + /// + /// Gets or Sets IsPhysical + /// + [DataMember(Name = "is_physical", EmitDefaultValue = true)] + public bool IsPhysical { get; set; } + /// /// Gets or Sets Prices /// [DataMember(Name = "prices", EmitDefaultValue = true)] - public List Prices { get; set; } + public List Prices { get; set; } /// /// Gets or Sets Created @@ -112,11 +136,14 @@ namespace Tribufu.Model public override string ToString() { StringBuilder sb = new StringBuilder(); - sb.Append("class Subscription {\n"); + sb.Append("class Product {\n"); sb.Append(" Id: ").Append(Id).Append("\n"); sb.Append(" Name: ").Append(Name).Append("\n"); sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append(" Slug: ").Append(Slug).Append("\n"); sb.Append(" ImageUrl: ").Append(ImageUrl).Append("\n"); + sb.Append(" IsPhysical: ").Append(IsPhysical).Append("\n"); sb.Append(" Prices: ").Append(Prices).Append("\n"); sb.Append(" Created: ").Append(Created).Append("\n"); sb.Append(" Updated: ").Append(Updated).Append("\n"); @@ -146,6 +173,12 @@ namespace Tribufu.Model yield return new ValidationResult("Invalid value for Name, length must be less than 75.", new [] { "Name" }); } + // Slug (string) maxLength + if (this.Slug != null && this.Slug.Length > 75) + { + yield return new ValidationResult("Invalid value for Slug, length must be less than 75.", new [] { "Slug" }); + } + // ImageUrl (string) maxLength if (this.ImageUrl != null && this.ImageUrl.Length > 255) { diff --git a/src/Tribufu/Model/SubscriptionPrice.cs b/src/Tribufu/Model/ProductPrice.cs similarity index 80% rename from src/Tribufu/Model/SubscriptionPrice.cs rename to src/Tribufu/Model/ProductPrice.cs index c082ee5..8730a2f 100644 --- a/src/Tribufu/Model/SubscriptionPrice.cs +++ b/src/Tribufu/Model/ProductPrice.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.6 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -27,28 +27,28 @@ using OpenAPIDateConverter = Tribufu.Client.OpenAPIDateConverter; namespace Tribufu.Model { /// - /// SubscriptionPrice + /// ProductPrice /// - [DataContract(Name = "SubscriptionPrice")] - public partial class SubscriptionPrice : IValidatableObject + [DataContract(Name = "ProductPrice")] + public partial class ProductPrice : IValidatableObject { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// [JsonConstructorAttribute] - protected SubscriptionPrice() { } + protected ProductPrice() { } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// currency (required). - /// amount (required). + /// amount. /// renewal. - public SubscriptionPrice(string currency = default(string), double amount = default(double), double? renewal = default(double?)) + public ProductPrice(string currency = default(string), double amount = default(double), double? renewal = default(double?)) { // to ensure "currency" is required (not null) if (currency == null) { - throw new ArgumentNullException("currency is a required property for SubscriptionPrice and cannot be null"); + throw new ArgumentNullException("currency is a required property for ProductPrice and cannot be null"); } this.Currency = currency; this.Amount = amount; @@ -64,7 +64,7 @@ namespace Tribufu.Model /// /// Gets or Sets Amount /// - [DataMember(Name = "amount", IsRequired = true, EmitDefaultValue = true)] + [DataMember(Name = "amount", EmitDefaultValue = false)] public double Amount { get; set; } /// @@ -80,7 +80,7 @@ namespace Tribufu.Model public override string ToString() { StringBuilder sb = new StringBuilder(); - sb.Append("class SubscriptionPrice {\n"); + sb.Append("class ProductPrice {\n"); sb.Append(" Currency: ").Append(Currency).Append("\n"); sb.Append(" Amount: ").Append(Amount).Append("\n"); sb.Append(" Renewal: ").Append(Renewal).Append("\n"); diff --git a/src/Tribufu/Model/ProductType.cs b/src/Tribufu/Model/ProductType.cs new file mode 100644 index 0000000..5a9f8e6 --- /dev/null +++ b/src/Tribufu/Model/ProductType.cs @@ -0,0 +1,48 @@ +/* + * Tribufu API + * + * API to access Tribufu services. + * + * The version of the OpenAPI document: 1.3.0 + * Contact: contact@tribufu.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = Tribufu.Client.OpenAPIDateConverter; + +namespace Tribufu.Model +{ + /// + /// Defines ProductType + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum ProductType + { + /// + /// Enum Product for value: product + /// + [EnumMember(Value = "product")] + Product, + + /// + /// Enum Subscription for value: subscription + /// + [EnumMember(Value = "subscription")] + Subscription + } + +} diff --git a/src/Tribufu/Model/Profile.cs b/src/Tribufu/Model/Profile.cs index 67a6f51..9b5a469 100644 --- a/src/Tribufu/Model/Profile.cs +++ b/src/Tribufu/Model/Profile.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.6 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Model/ProfileGame.cs b/src/Tribufu/Model/ProfileGame.cs index 43ef46e..7bab8c4 100644 --- a/src/Tribufu/Model/ProfileGame.cs +++ b/src/Tribufu/Model/ProfileGame.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.6 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Model/ProfileGroup.cs b/src/Tribufu/Model/ProfileGroup.cs index f64691e..f4232ac 100644 --- a/src/Tribufu/Model/ProfileGroup.cs +++ b/src/Tribufu/Model/ProfileGroup.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.6 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Model/ResponseType.cs b/src/Tribufu/Model/ResponseType.cs index 946e975..5e7e6e5 100644 --- a/src/Tribufu/Model/ResponseType.cs +++ b/src/Tribufu/Model/ResponseType.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.6 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Model/RevokeRequest.cs b/src/Tribufu/Model/RevokeRequest.cs index 78905ca..3c63768 100644 --- a/src/Tribufu/Model/RevokeRequest.cs +++ b/src/Tribufu/Model/RevokeRequest.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.6 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Model/Search.cs b/src/Tribufu/Model/Search.cs index f752b19..b891f60 100644 --- a/src/Tribufu/Model/Search.cs +++ b/src/Tribufu/Model/Search.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.6 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Model/SearchType.cs b/src/Tribufu/Model/SearchType.cs index b992591..2169c35 100644 --- a/src/Tribufu/Model/SearchType.cs +++ b/src/Tribufu/Model/SearchType.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.6 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Model/ServerMetrics.cs b/src/Tribufu/Model/ServerMetrics.cs index 00a5230..fd44f10 100644 --- a/src/Tribufu/Model/ServerMetrics.cs +++ b/src/Tribufu/Model/ServerMetrics.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.6 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Model/File.cs b/src/Tribufu/Model/StorageFile.cs similarity index 88% rename from src/Tribufu/Model/File.cs rename to src/Tribufu/Model/StorageFile.cs index d63979e..2d9fac8 100644 --- a/src/Tribufu/Model/File.cs +++ b/src/Tribufu/Model/StorageFile.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.6 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -27,52 +27,52 @@ using OpenAPIDateConverter = Tribufu.Client.OpenAPIDateConverter; namespace Tribufu.Model { /// - /// File + /// StorageFile /// - [DataContract(Name = "File")] - public partial class File : IValidatableObject + [DataContract(Name = "StorageFile")] + public partial class StorageFile : IValidatableObject { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// [JsonConstructorAttribute] - protected File() { } + protected StorageFile() { } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// id. /// name (required). /// contentType (required). /// url (required). + /// size. /// hash. /// etag. - /// size. /// created. /// updated. - public File(string id = default(string), string name = default(string), string contentType = default(string), string url = default(string), string hash = default(string), string etag = default(string), long size = default(long), DateTime created = default(DateTime), DateTime? updated = default(DateTime?)) + public StorageFile(string id = default(string), string name = default(string), string contentType = default(string), string url = default(string), long size = default(long), string hash = default(string), string etag = default(string), DateTime created = default(DateTime), DateTime? updated = default(DateTime?)) { // to ensure "name" is required (not null) if (name == null) { - throw new ArgumentNullException("name is a required property for File and cannot be null"); + throw new ArgumentNullException("name is a required property for StorageFile and cannot be null"); } this.Name = name; // to ensure "contentType" is required (not null) if (contentType == null) { - throw new ArgumentNullException("contentType is a required property for File and cannot be null"); + throw new ArgumentNullException("contentType is a required property for StorageFile and cannot be null"); } this.ContentType = contentType; // to ensure "url" is required (not null) if (url == null) { - throw new ArgumentNullException("url is a required property for File and cannot be null"); + throw new ArgumentNullException("url is a required property for StorageFile and cannot be null"); } this.Url = url; this.Id = id; + this.Size = size; this.Hash = hash; this.Etag = etag; - this.Size = size; this.Created = created; this.Updated = updated; } @@ -101,6 +101,12 @@ namespace Tribufu.Model [DataMember(Name = "url", IsRequired = true, EmitDefaultValue = true)] public string Url { get; set; } + /// + /// Gets or Sets Size + /// + [DataMember(Name = "size", EmitDefaultValue = false)] + public long Size { get; set; } + /// /// Gets or Sets Hash /// @@ -113,12 +119,6 @@ namespace Tribufu.Model [DataMember(Name = "etag", EmitDefaultValue = true)] public string Etag { get; set; } - /// - /// Gets or Sets Size - /// - [DataMember(Name = "size", EmitDefaultValue = false)] - public long Size { get; set; } - /// /// Gets or Sets Created /// @@ -138,14 +138,14 @@ namespace Tribufu.Model public override string ToString() { StringBuilder sb = new StringBuilder(); - sb.Append("class File {\n"); + sb.Append("class StorageFile {\n"); sb.Append(" Id: ").Append(Id).Append("\n"); sb.Append(" Name: ").Append(Name).Append("\n"); sb.Append(" ContentType: ").Append(ContentType).Append("\n"); sb.Append(" Url: ").Append(Url).Append("\n"); + sb.Append(" Size: ").Append(Size).Append("\n"); sb.Append(" Hash: ").Append(Hash).Append("\n"); sb.Append(" Etag: ").Append(Etag).Append("\n"); - sb.Append(" Size: ").Append(Size).Append("\n"); sb.Append(" Created: ").Append(Created).Append("\n"); sb.Append(" Updated: ").Append(Updated).Append("\n"); sb.Append("}\n"); diff --git a/src/Tribufu/Model/TokenHintType.cs b/src/Tribufu/Model/TokenHintType.cs index 084e654..48ba1db 100644 --- a/src/Tribufu/Model/TokenHintType.cs +++ b/src/Tribufu/Model/TokenHintType.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.6 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Model/TokenRequest.cs b/src/Tribufu/Model/TokenRequest.cs index b0f715c..641890c 100644 --- a/src/Tribufu/Model/TokenRequest.cs +++ b/src/Tribufu/Model/TokenRequest.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.6 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Model/TokenResponse.cs b/src/Tribufu/Model/TokenResponse.cs index ae3678a..de4bc31 100644 --- a/src/Tribufu/Model/TokenResponse.cs +++ b/src/Tribufu/Model/TokenResponse.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.6 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Model/TokenType.cs b/src/Tribufu/Model/TokenType.cs index de2a33c..47cc6ca 100644 --- a/src/Tribufu/Model/TokenType.cs +++ b/src/Tribufu/Model/TokenType.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.6 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Model/UpdateProfile.cs b/src/Tribufu/Model/UpdateProfile.cs index e0e9aec..bd87068 100644 --- a/src/Tribufu/Model/UpdateProfile.cs +++ b/src/Tribufu/Model/UpdateProfile.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.6 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Model/UserInfo.cs b/src/Tribufu/Model/UserInfo.cs index 4617da3..8bd8932 100644 --- a/src/Tribufu/Model/UserInfo.cs +++ b/src/Tribufu/Model/UserInfo.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.6 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Model/UserType.cs b/src/Tribufu/Model/UserType.cs index 62b2126..eeafe58 100644 --- a/src/Tribufu/Model/UserType.cs +++ b/src/Tribufu/Model/UserType.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.6 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ From 02642f9dfa3184d0eec4f309b448c68d315e57b0 Mon Sep 17 00:00:00 2001 From: Guilherme Werner Date: Fri, 8 May 2026 19:45:33 -0300 Subject: [PATCH 43/52] Update ef core utils --- .../DatabaseConfiguration.cs | 105 ------------------ .../DatabaseConstants.cs | 12 -- .../DatabaseDriver.cs | 22 ---- .../{Repositories => }/IRepository.cs | 16 +-- .../{Repositories => }/Repository.cs | 39 ++++--- 5 files changed, 30 insertions(+), 164 deletions(-) delete mode 100644 src/Tribufu.EntityFrameworkCore/DatabaseConfiguration.cs delete mode 100644 src/Tribufu.EntityFrameworkCore/DatabaseConstants.cs delete mode 100644 src/Tribufu.EntityFrameworkCore/DatabaseDriver.cs rename src/Tribufu.EntityFrameworkCore/{Repositories => }/IRepository.cs (64%) rename src/Tribufu.EntityFrameworkCore/{Repositories => }/Repository.cs (70%) diff --git a/src/Tribufu.EntityFrameworkCore/DatabaseConfiguration.cs b/src/Tribufu.EntityFrameworkCore/DatabaseConfiguration.cs deleted file mode 100644 index 7619c8a..0000000 --- a/src/Tribufu.EntityFrameworkCore/DatabaseConfiguration.cs +++ /dev/null @@ -1,105 +0,0 @@ -// Copyright (c) Tribufu. All Rights Reserved. -// SPDX-License-Identifier: MIT - -using Microsoft.Extensions.Configuration; -using System; - -namespace Tribufu.EntityFrameworkCore -{ - public class DatabaseConfiguration - { - public DatabaseDriver Driver { get; set; } - - public string? Version { get; set; } - - public string? Host { get; set; } - - public string? Port { get; set; } - - public string? User { get; set; } - - public string? Password { get; set; } - - public string? Schema { get; set; } - - /// - /// Loads the from the "database" section or from root-level keys prefixed with "database_". - /// - /// The configuration source. - /// The populated instance. - public static DatabaseConfiguration Load(IConfiguration configuration) - { - var section = configuration.GetSection("database"); - var useRootFallback = !section.Exists(); - - string? GetConfig(string key) => useRootFallback ? configuration[$"database_{key}"] : section[key]; - - var driverString = GetConfig("driver") ?? throw new Exception("Missing database driver"); - if (!Enum.TryParse(driverString, true, out var driver)) - { - throw new Exception($"Unsupported database driver: {driverString}"); - } - - return new DatabaseConfiguration - { - Driver = driver, - Version = GetConfig("version"), - Host = GetConfig("host"), - Port = GetConfig("port"), - User = GetConfig("user"), - Password = GetConfig("password"), - Schema = GetConfig("schema") - }; - } - - /* - services.AddDbContext(options => - { - switch (dbConfig.Driver) - { - case DatabaseDriver.MySql: - var mysqlConnection = $"Server={dbConfig.Host};Port={dbConfig.Port};Uid={dbConfig.User};Pwd={dbConfig.Password};Database={dbConfig.Schema};ConvertZeroDateTime=True;"; - options.UseMySql(mysqlConnection, ServerVersion.Parse(dbConfig.Version ?? "8.0"), mySqlOptions => { }); - break; - case DatabaseDriver.Postgres: - var pgsqlConnection = $"Host={dbConfig.Host};Port={dbConfig.Port};Database={dbConfig.Schema};Username={dbConfig.User};Password={dbConfig.Password};"; - options.UseNpgsql(pgsqlConnection, npgsqlOptions => { }); - break; - case DatabaseDriver.SqlServer: - var sqlServerConnection = $"Server={dbConfig.Host},{dbConfig.Port};Database={dbConfig.Schema};User Id={dbConfig.User};Password={dbConfig.Password};Encrypt=True;TrustServerCertificate=True;"; - options.UseSqlServer(sqlServerConnection, sqlOptions => { }); - break; - case DatabaseDriver.Oracle: - var oracleConnection = $"User Id={dbConfig.User};Password={dbConfig.Password};Data Source=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST={dbConfig.Host})(PORT={dbConfig.Port})))(CONNECT_DATA=(SERVICE_NAME={dbConfig.Schema})));"; - options.UseOracle(oracleConnection, oracleOptions => { }); - break; - case DatabaseDriver.Firebird: - var firebirdConnection = $"User={dbConfig.User};Password={dbConfig.Password};Database={dbConfig.Host}:{dbConfig.Port}/{dbConfig.Schema};Dialect=3;"; - options.UseFirebird(firebirdConnection, firebirdOptions => { }); - break; - case DatabaseDriver.Sqlite: - var savedDirectory = Paths.GetApplicationSavedDirectory(); - if (!Directory.Exists(savedDirectory)) Directory.CreateDirectory(savedDirectory); - var sqliteDatabaseFile = string.IsNullOrEmpty(dbConfig.Schema) ? "default.db" : $"{dbConfig.Schema}.db"; - var sqliteDatabasePath = Path.Combine(savedDirectory, sqliteDatabaseFile); - options.UseSqlite($"Data Source={sqliteDatabasePath}", sqliteOptions => { }); - break; - case DatabaseDriver.MongoDb: - var mongoUriBuilder = new MongoUrlBuilder - { - Server = new MongoServerAddress(dbConfig.Host, int.Parse(dbConfig.Port ?? "27017")), - Username = dbConfig.User, - Password = dbConfig.Password, - DatabaseName = dbConfig.Schema - }; - var mongoClient = new MongoClient(mongoUriBuilder.ToMongoUrl()); - var mongoDatabase = mongoClient.GetDatabase(dbConfig.Schema ?? "default"); - options.UseMongoDB(mongoDatabase.Client, mongoDatabase.DatabaseNamespace.DatabaseName); - break; - default: - throw new NotSupportedException($"Unsupported database driver: {dbConfig.Driver}"); - } - }); - */ - } -} diff --git a/src/Tribufu.EntityFrameworkCore/DatabaseConstants.cs b/src/Tribufu.EntityFrameworkCore/DatabaseConstants.cs deleted file mode 100644 index 8b51fc4..0000000 --- a/src/Tribufu.EntityFrameworkCore/DatabaseConstants.cs +++ /dev/null @@ -1,12 +0,0 @@ -// Copyright (c) Tribufu. All Rights Reserved. -// SPDX-License-Identifier: MIT - -namespace Tribufu.EntityFrameworkCore -{ - public static class DatabaseConstants - { - public const uint DEFAULT_PAGINATION = 20; - - public const uint MAX_PAGINATION = 100; - } -} diff --git a/src/Tribufu.EntityFrameworkCore/DatabaseDriver.cs b/src/Tribufu.EntityFrameworkCore/DatabaseDriver.cs deleted file mode 100644 index d904e83..0000000 --- a/src/Tribufu.EntityFrameworkCore/DatabaseDriver.cs +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) Tribufu. All Rights Reserved. -// SPDX-License-Identifier: MIT - -namespace Tribufu.EntityFrameworkCore -{ - public enum DatabaseDriver : byte - { - MySql = 0, - - Postgres = 1, - - SqlServer = 2, - - Oracle = 3, - - Firebird = 4, - - Sqlite = 5, - - MongoDb = 6, - } -} diff --git a/src/Tribufu.EntityFrameworkCore/Repositories/IRepository.cs b/src/Tribufu.EntityFrameworkCore/IRepository.cs similarity index 64% rename from src/Tribufu.EntityFrameworkCore/Repositories/IRepository.cs rename to src/Tribufu.EntityFrameworkCore/IRepository.cs index dbb4b19..0e00b08 100644 --- a/src/Tribufu.EntityFrameworkCore/Repositories/IRepository.cs +++ b/src/Tribufu.EntityFrameworkCore/IRepository.cs @@ -4,23 +4,25 @@ using System.Collections.Generic; using System.Threading.Tasks; -namespace Tribufu.EntityFrameworkCore.Repositories +namespace Tribufu.EntityFrameworkCore { public interface IRepository where T : class { + void Seed(); + Task SeedAsync(); - IList GetAll(); + IList List(); - Task> GetAllAsync(); + Task> ListAsync(); - IList GetPage(uint page, uint limit); + IList List(uint page, uint limit); - Task> GetPageAsync(uint page, uint limit); + Task> ListAsync(uint page, uint limit); - T? GetOne(K key); + T? Find(K key); - Task GetOneAsync(K key); + Task FindAsync(K key); T? Create(T entity); diff --git a/src/Tribufu.EntityFrameworkCore/Repositories/Repository.cs b/src/Tribufu.EntityFrameworkCore/Repository.cs similarity index 70% rename from src/Tribufu.EntityFrameworkCore/Repositories/Repository.cs rename to src/Tribufu.EntityFrameworkCore/Repository.cs index c70a3c5..6851858 100644 --- a/src/Tribufu.EntityFrameworkCore/Repositories/Repository.cs +++ b/src/Tribufu.EntityFrameworkCore/Repository.cs @@ -7,50 +7,54 @@ using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; -namespace Tribufu.EntityFrameworkCore.Repositories +namespace Tribufu.EntityFrameworkCore { public class Repository : IRepository where C : DbContext where T : class { - protected readonly C _context; + protected readonly C _dbContext; protected readonly DbSet _dbSet; - public Repository(C context) + public Repository(C dbContext) + { + _dbContext = dbContext ?? throw new ArgumentNullException(nameof(dbContext)); + _dbSet = dbContext.Set(); + } + + public virtual void Seed() { - _context = context ?? throw new ArgumentNullException(nameof(context)); - _dbSet = context.Set(); } public virtual async Task SeedAsync() { } - public virtual IList GetAll() + public virtual IList List() { return [.. _dbSet]; } - public virtual async Task> GetAllAsync() + public virtual async Task> ListAsync() { return await _dbSet.ToListAsync(); } - public virtual IList GetPage(uint page, uint limit) + public virtual IList List(uint page, uint limit) { return _dbSet.Skip((int)((page < 1 ? 0 : page - 1) * limit)).Take((int)limit).ToList(); } - public virtual async Task> GetPageAsync(uint page, uint limit) + public virtual async Task> ListAsync(uint page, uint limit) { return await _dbSet.Skip((int)((page < 1 ? 0 : page - 1) * limit)).Take((int)limit).ToListAsync(); } - public virtual T? GetOne(K key) + public virtual T? Find(K key) { return _dbSet.Find(key); } - public virtual async Task GetOneAsync(K key) + public virtual async Task FindAsync(K key) { return await _dbSet.FindAsync(key); } @@ -58,29 +62,28 @@ namespace Tribufu.EntityFrameworkCore.Repositories public virtual T? Create(T entity) { _dbSet.Add(entity); - - var result = _context.SaveChanges(); + var result = _dbContext.SaveChanges(); return result > 0 ? entity : null; } public virtual async Task CreateAsync(T entity) { await _dbSet.AddAsync(entity); - var result = await _context.SaveChangesAsync(); + var result = await _dbContext.SaveChangesAsync(); return result > 0 ? entity : null; } public virtual T? Update(T entity) { _dbSet.Update(entity); - var result = _context.SaveChanges(); + var result = _dbContext.SaveChanges(); return result > 0 ? entity : null; } public virtual async Task UpdateAsync(T entity) { _dbSet.Update(entity); - var result = await _context.SaveChangesAsync(); + var result = await _dbContext.SaveChangesAsync(); return result > 0 ? entity : null; } @@ -105,13 +108,13 @@ namespace Tribufu.EntityFrameworkCore.Repositories public virtual void Delete(T entity) { _dbSet.Remove(entity); - _context.SaveChanges(); + _dbContext.SaveChanges(); } public virtual async Task DeleteAsync(T entity) { _dbSet.Remove(entity); - await _context.SaveChangesAsync(); + await _dbContext.SaveChangesAsync(); } } } From 7530662be9315a9756afb0dc12d18e5544909c79 Mon Sep 17 00:00:00 2001 From: Guilherme Werner Date: Fri, 8 May 2026 20:05:58 -0300 Subject: [PATCH 44/52] Migrate to slnx --- Tribufu.sln | 144 --------------------------------------------------- Tribufu.slnx | 13 +++++ 2 files changed, 13 insertions(+), 144 deletions(-) delete mode 100644 Tribufu.sln create mode 100644 Tribufu.slnx diff --git a/Tribufu.sln b/Tribufu.sln deleted file mode 100644 index 0f722d9..0000000 --- a/Tribufu.sln +++ /dev/null @@ -1,144 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio Version 16 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tribufu", "src\Tribufu\Tribufu.csproj", "{7B7890D8-863A-4F1D-98C0-4B7D8C46CB52}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tribufu.Example", "src\Tribufu.Example\Tribufu.Example.csproj", "{D6392A29-E2DC-4050-B4C1-B279DD2D226D}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tribufu.Logging", "src\Tribufu.Logging\Tribufu.Logging.csproj", "{CFD80847-9B98-4991-BADF-8714E7D8D81C}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tribufu.Configuration", "src\Tribufu.Configuration\Tribufu.Configuration.csproj", "{C0A841C8-9FC5-4AC0-B9AD-6BBFCEDCBE5F}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tribufu.Platform", "src\Tribufu.Platform\Tribufu.Platform.csproj", "{26EEB407-733C-4383-9211-B083CD5F593B}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tribufu.EntityFrameworkCore", "src\Tribufu.EntityFrameworkCore\Tribufu.EntityFrameworkCore.csproj", "{E7F9A76F-C087-410B-B4B5-A928A6CDC2BA}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tribufu.Serialization", "src\Tribufu.Serialization\Tribufu.Serialization.csproj", "{D6DAE078-2F80-49DD-97A3-B1223FE04F91}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tribufu.ComponentModel", "src\Tribufu.ComponentModel\Tribufu.ComponentModel.csproj", "{7CB04FFD-8F4B-4B40-BB4B-2BAA19D783E1}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tribufu.AspNetCore", "src\Tribufu.AspNetCore\Tribufu.AspNetCore.csproj", "{B6C47A6C-E389-4132-8E1C-0CBB6C96C205}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|Any CPU = Debug|Any CPU - Debug|x64 = Debug|x64 - Debug|x86 = Debug|x86 - Release|Any CPU = Release|Any CPU - Release|x64 = Release|x64 - Release|x86 = Release|x86 - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {7B7890D8-863A-4F1D-98C0-4B7D8C46CB52}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {7B7890D8-863A-4F1D-98C0-4B7D8C46CB52}.Debug|Any CPU.Build.0 = Debug|Any CPU - {7B7890D8-863A-4F1D-98C0-4B7D8C46CB52}.Debug|x64.ActiveCfg = Debug|Any CPU - {7B7890D8-863A-4F1D-98C0-4B7D8C46CB52}.Debug|x64.Build.0 = Debug|Any CPU - {7B7890D8-863A-4F1D-98C0-4B7D8C46CB52}.Debug|x86.ActiveCfg = Debug|Any CPU - {7B7890D8-863A-4F1D-98C0-4B7D8C46CB52}.Debug|x86.Build.0 = Debug|Any CPU - {7B7890D8-863A-4F1D-98C0-4B7D8C46CB52}.Release|Any CPU.ActiveCfg = Release|Any CPU - {7B7890D8-863A-4F1D-98C0-4B7D8C46CB52}.Release|Any CPU.Build.0 = Release|Any CPU - {7B7890D8-863A-4F1D-98C0-4B7D8C46CB52}.Release|x64.ActiveCfg = Release|Any CPU - {7B7890D8-863A-4F1D-98C0-4B7D8C46CB52}.Release|x64.Build.0 = Release|Any CPU - {7B7890D8-863A-4F1D-98C0-4B7D8C46CB52}.Release|x86.ActiveCfg = Release|Any CPU - {7B7890D8-863A-4F1D-98C0-4B7D8C46CB52}.Release|x86.Build.0 = Release|Any CPU - {D6392A29-E2DC-4050-B4C1-B279DD2D226D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {D6392A29-E2DC-4050-B4C1-B279DD2D226D}.Debug|Any CPU.Build.0 = Debug|Any CPU - {D6392A29-E2DC-4050-B4C1-B279DD2D226D}.Debug|x64.ActiveCfg = Debug|Any CPU - {D6392A29-E2DC-4050-B4C1-B279DD2D226D}.Debug|x64.Build.0 = Debug|Any CPU - {D6392A29-E2DC-4050-B4C1-B279DD2D226D}.Debug|x86.ActiveCfg = Debug|Any CPU - {D6392A29-E2DC-4050-B4C1-B279DD2D226D}.Debug|x86.Build.0 = Debug|Any CPU - {D6392A29-E2DC-4050-B4C1-B279DD2D226D}.Release|Any CPU.ActiveCfg = Release|Any CPU - {D6392A29-E2DC-4050-B4C1-B279DD2D226D}.Release|Any CPU.Build.0 = Release|Any CPU - {D6392A29-E2DC-4050-B4C1-B279DD2D226D}.Release|x64.ActiveCfg = Release|Any CPU - {D6392A29-E2DC-4050-B4C1-B279DD2D226D}.Release|x64.Build.0 = Release|Any CPU - {D6392A29-E2DC-4050-B4C1-B279DD2D226D}.Release|x86.ActiveCfg = Release|Any CPU - {D6392A29-E2DC-4050-B4C1-B279DD2D226D}.Release|x86.Build.0 = Release|Any CPU - {CFD80847-9B98-4991-BADF-8714E7D8D81C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {CFD80847-9B98-4991-BADF-8714E7D8D81C}.Debug|Any CPU.Build.0 = Debug|Any CPU - {CFD80847-9B98-4991-BADF-8714E7D8D81C}.Debug|x64.ActiveCfg = Debug|Any CPU - {CFD80847-9B98-4991-BADF-8714E7D8D81C}.Debug|x64.Build.0 = Debug|Any CPU - {CFD80847-9B98-4991-BADF-8714E7D8D81C}.Debug|x86.ActiveCfg = Debug|Any CPU - {CFD80847-9B98-4991-BADF-8714E7D8D81C}.Debug|x86.Build.0 = Debug|Any CPU - {CFD80847-9B98-4991-BADF-8714E7D8D81C}.Release|Any CPU.ActiveCfg = Release|Any CPU - {CFD80847-9B98-4991-BADF-8714E7D8D81C}.Release|Any CPU.Build.0 = Release|Any CPU - {CFD80847-9B98-4991-BADF-8714E7D8D81C}.Release|x64.ActiveCfg = Release|Any CPU - {CFD80847-9B98-4991-BADF-8714E7D8D81C}.Release|x64.Build.0 = Release|Any CPU - {CFD80847-9B98-4991-BADF-8714E7D8D81C}.Release|x86.ActiveCfg = Release|Any CPU - {CFD80847-9B98-4991-BADF-8714E7D8D81C}.Release|x86.Build.0 = Release|Any CPU - {C0A841C8-9FC5-4AC0-B9AD-6BBFCEDCBE5F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {C0A841C8-9FC5-4AC0-B9AD-6BBFCEDCBE5F}.Debug|Any CPU.Build.0 = Debug|Any CPU - {C0A841C8-9FC5-4AC0-B9AD-6BBFCEDCBE5F}.Debug|x64.ActiveCfg = Debug|Any CPU - {C0A841C8-9FC5-4AC0-B9AD-6BBFCEDCBE5F}.Debug|x64.Build.0 = Debug|Any CPU - {C0A841C8-9FC5-4AC0-B9AD-6BBFCEDCBE5F}.Debug|x86.ActiveCfg = Debug|Any CPU - {C0A841C8-9FC5-4AC0-B9AD-6BBFCEDCBE5F}.Debug|x86.Build.0 = Debug|Any CPU - {C0A841C8-9FC5-4AC0-B9AD-6BBFCEDCBE5F}.Release|Any CPU.ActiveCfg = Release|Any CPU - {C0A841C8-9FC5-4AC0-B9AD-6BBFCEDCBE5F}.Release|Any CPU.Build.0 = Release|Any CPU - {C0A841C8-9FC5-4AC0-B9AD-6BBFCEDCBE5F}.Release|x64.ActiveCfg = Release|Any CPU - {C0A841C8-9FC5-4AC0-B9AD-6BBFCEDCBE5F}.Release|x64.Build.0 = Release|Any CPU - {C0A841C8-9FC5-4AC0-B9AD-6BBFCEDCBE5F}.Release|x86.ActiveCfg = Release|Any CPU - {C0A841C8-9FC5-4AC0-B9AD-6BBFCEDCBE5F}.Release|x86.Build.0 = Release|Any CPU - {26EEB407-733C-4383-9211-B083CD5F593B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {26EEB407-733C-4383-9211-B083CD5F593B}.Debug|Any CPU.Build.0 = Debug|Any CPU - {26EEB407-733C-4383-9211-B083CD5F593B}.Debug|x64.ActiveCfg = Debug|Any CPU - {26EEB407-733C-4383-9211-B083CD5F593B}.Debug|x64.Build.0 = Debug|Any CPU - {26EEB407-733C-4383-9211-B083CD5F593B}.Debug|x86.ActiveCfg = Debug|Any CPU - {26EEB407-733C-4383-9211-B083CD5F593B}.Debug|x86.Build.0 = Debug|Any CPU - {26EEB407-733C-4383-9211-B083CD5F593B}.Release|Any CPU.ActiveCfg = Release|Any CPU - {26EEB407-733C-4383-9211-B083CD5F593B}.Release|Any CPU.Build.0 = Release|Any CPU - {26EEB407-733C-4383-9211-B083CD5F593B}.Release|x64.ActiveCfg = Release|Any CPU - {26EEB407-733C-4383-9211-B083CD5F593B}.Release|x64.Build.0 = Release|Any CPU - {26EEB407-733C-4383-9211-B083CD5F593B}.Release|x86.ActiveCfg = Release|Any CPU - {26EEB407-733C-4383-9211-B083CD5F593B}.Release|x86.Build.0 = Release|Any CPU - {E7F9A76F-C087-410B-B4B5-A928A6CDC2BA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {E7F9A76F-C087-410B-B4B5-A928A6CDC2BA}.Debug|Any CPU.Build.0 = Debug|Any CPU - {E7F9A76F-C087-410B-B4B5-A928A6CDC2BA}.Debug|x64.ActiveCfg = Debug|Any CPU - {E7F9A76F-C087-410B-B4B5-A928A6CDC2BA}.Debug|x64.Build.0 = Debug|Any CPU - {E7F9A76F-C087-410B-B4B5-A928A6CDC2BA}.Debug|x86.ActiveCfg = Debug|Any CPU - {E7F9A76F-C087-410B-B4B5-A928A6CDC2BA}.Debug|x86.Build.0 = Debug|Any CPU - {E7F9A76F-C087-410B-B4B5-A928A6CDC2BA}.Release|Any CPU.ActiveCfg = Release|Any CPU - {E7F9A76F-C087-410B-B4B5-A928A6CDC2BA}.Release|Any CPU.Build.0 = Release|Any CPU - {E7F9A76F-C087-410B-B4B5-A928A6CDC2BA}.Release|x64.ActiveCfg = Release|Any CPU - {E7F9A76F-C087-410B-B4B5-A928A6CDC2BA}.Release|x64.Build.0 = Release|Any CPU - {E7F9A76F-C087-410B-B4B5-A928A6CDC2BA}.Release|x86.ActiveCfg = Release|Any CPU - {E7F9A76F-C087-410B-B4B5-A928A6CDC2BA}.Release|x86.Build.0 = Release|Any CPU - {D6DAE078-2F80-49DD-97A3-B1223FE04F91}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {D6DAE078-2F80-49DD-97A3-B1223FE04F91}.Debug|Any CPU.Build.0 = Debug|Any CPU - {D6DAE078-2F80-49DD-97A3-B1223FE04F91}.Debug|x64.ActiveCfg = Debug|Any CPU - {D6DAE078-2F80-49DD-97A3-B1223FE04F91}.Debug|x64.Build.0 = Debug|Any CPU - {D6DAE078-2F80-49DD-97A3-B1223FE04F91}.Debug|x86.ActiveCfg = Debug|Any CPU - {D6DAE078-2F80-49DD-97A3-B1223FE04F91}.Debug|x86.Build.0 = Debug|Any CPU - {D6DAE078-2F80-49DD-97A3-B1223FE04F91}.Release|Any CPU.ActiveCfg = Release|Any CPU - {D6DAE078-2F80-49DD-97A3-B1223FE04F91}.Release|Any CPU.Build.0 = Release|Any CPU - {D6DAE078-2F80-49DD-97A3-B1223FE04F91}.Release|x64.ActiveCfg = Release|Any CPU - {D6DAE078-2F80-49DD-97A3-B1223FE04F91}.Release|x64.Build.0 = Release|Any CPU - {D6DAE078-2F80-49DD-97A3-B1223FE04F91}.Release|x86.ActiveCfg = Release|Any CPU - {D6DAE078-2F80-49DD-97A3-B1223FE04F91}.Release|x86.Build.0 = Release|Any CPU - {7CB04FFD-8F4B-4B40-BB4B-2BAA19D783E1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {7CB04FFD-8F4B-4B40-BB4B-2BAA19D783E1}.Debug|Any CPU.Build.0 = Debug|Any CPU - {7CB04FFD-8F4B-4B40-BB4B-2BAA19D783E1}.Debug|x64.ActiveCfg = Debug|Any CPU - {7CB04FFD-8F4B-4B40-BB4B-2BAA19D783E1}.Debug|x64.Build.0 = Debug|Any CPU - {7CB04FFD-8F4B-4B40-BB4B-2BAA19D783E1}.Debug|x86.ActiveCfg = Debug|Any CPU - {7CB04FFD-8F4B-4B40-BB4B-2BAA19D783E1}.Debug|x86.Build.0 = Debug|Any CPU - {7CB04FFD-8F4B-4B40-BB4B-2BAA19D783E1}.Release|Any CPU.ActiveCfg = Release|Any CPU - {7CB04FFD-8F4B-4B40-BB4B-2BAA19D783E1}.Release|Any CPU.Build.0 = Release|Any CPU - {7CB04FFD-8F4B-4B40-BB4B-2BAA19D783E1}.Release|x64.ActiveCfg = Release|Any CPU - {7CB04FFD-8F4B-4B40-BB4B-2BAA19D783E1}.Release|x64.Build.0 = Release|Any CPU - {7CB04FFD-8F4B-4B40-BB4B-2BAA19D783E1}.Release|x86.ActiveCfg = Release|Any CPU - {7CB04FFD-8F4B-4B40-BB4B-2BAA19D783E1}.Release|x86.Build.0 = Release|Any CPU - {B6C47A6C-E389-4132-8E1C-0CBB6C96C205}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {B6C47A6C-E389-4132-8E1C-0CBB6C96C205}.Debug|Any CPU.Build.0 = Debug|Any CPU - {B6C47A6C-E389-4132-8E1C-0CBB6C96C205}.Debug|x64.ActiveCfg = Debug|Any CPU - {B6C47A6C-E389-4132-8E1C-0CBB6C96C205}.Debug|x64.Build.0 = Debug|Any CPU - {B6C47A6C-E389-4132-8E1C-0CBB6C96C205}.Debug|x86.ActiveCfg = Debug|Any CPU - {B6C47A6C-E389-4132-8E1C-0CBB6C96C205}.Debug|x86.Build.0 = Debug|Any CPU - {B6C47A6C-E389-4132-8E1C-0CBB6C96C205}.Release|Any CPU.ActiveCfg = Release|Any CPU - {B6C47A6C-E389-4132-8E1C-0CBB6C96C205}.Release|Any CPU.Build.0 = Release|Any CPU - {B6C47A6C-E389-4132-8E1C-0CBB6C96C205}.Release|x64.ActiveCfg = Release|Any CPU - {B6C47A6C-E389-4132-8E1C-0CBB6C96C205}.Release|x64.Build.0 = Release|Any CPU - {B6C47A6C-E389-4132-8E1C-0CBB6C96C205}.Release|x86.ActiveCfg = Release|Any CPU - {B6C47A6C-E389-4132-8E1C-0CBB6C96C205}.Release|x86.Build.0 = Release|Any CPU - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection -EndGlobal diff --git a/Tribufu.slnx b/Tribufu.slnx new file mode 100644 index 0000000..c96674e --- /dev/null +++ b/Tribufu.slnx @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file From 38914ab87ecbaa1d579ea76bbb416bb3d71dfe3b Mon Sep 17 00:00:00 2001 From: Guilherme Werner Date: Fri, 29 May 2026 10:27:52 -0300 Subject: [PATCH 45/52] Update .gitignore --- .gitignore | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitignore b/.gitignore index c7ac18e..867bfbd 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ .vs/ bin/ +intermediate/ obj/ releases/* @@ -8,4 +9,5 @@ releases/* .env *.filters *.user +*.lscache desktop.ini From ae692bb7a9e77172911a4d22abd40139a7f2ebd1 Mon Sep 17 00:00:00 2001 From: Guilherme Werner Date: Fri, 29 May 2026 10:27:55 -0300 Subject: [PATCH 46/52] Update Directory.Build.props --- Directory.Build.props | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Directory.Build.props b/Directory.Build.props index 33b9280..b2fc560 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -10,4 +10,10 @@ $(Version).0 $(NoWarn);0618;1591;1998;2002;8767 - + + $([System.String]::Copy('$(Configuration)').ToLower()) + $(SolutionDir)intermediate\build\$(MSBuildProjectName)\$(ConfigLower)\ + $(SolutionDir)intermediate\build\$(MSBuildProjectName)\ + $(SolutionDir)bin\$(ConfigLower)\ + + \ No newline at end of file From 1a1e6f6931faee6715f23c5de3f0739f3cbea36f Mon Sep 17 00:00:00 2001 From: Guilherme Werner Date: Mon, 1 Jun 2026 18:23:58 -0300 Subject: [PATCH 47/52] Rename intermediate dir to target --- .gitignore | 2 +- Directory.Build.props | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 867bfbd..afe3f97 100644 --- a/.gitignore +++ b/.gitignore @@ -1,8 +1,8 @@ .vs/ bin/ -intermediate/ obj/ releases/* +target/ !releases/.gitkeep .DS_Store diff --git a/Directory.Build.props b/Directory.Build.props index b2fc560..139571f 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -12,8 +12,8 @@ $([System.String]::Copy('$(Configuration)').ToLower()) - $(SolutionDir)intermediate\build\$(MSBuildProjectName)\$(ConfigLower)\ - $(SolutionDir)intermediate\build\$(MSBuildProjectName)\ + $(SolutionDir)target\$(MSBuildProjectName)\$(ConfigLower)\ + $(SolutionDir)target\$(MSBuildProjectName)\ $(SolutionDir)bin\$(ConfigLower)\ - \ No newline at end of file + From 7d34004bfa08ad2f57a25e39a53cbbc6fbcb8cbe Mon Sep 17 00:00:00 2001 From: Guilherme Werner Date: Wed, 10 Jun 2026 20:13:25 -0300 Subject: [PATCH 48/52] Rename target dir to intermediate --- .gitignore | 2 +- Directory.Build.props | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index afe3f97..867bfbd 100644 --- a/.gitignore +++ b/.gitignore @@ -1,8 +1,8 @@ .vs/ bin/ +intermediate/ obj/ releases/* -target/ !releases/.gitkeep .DS_Store diff --git a/Directory.Build.props b/Directory.Build.props index 139571f..a1b591d 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -12,8 +12,8 @@ $([System.String]::Copy('$(Configuration)').ToLower()) - $(SolutionDir)target\$(MSBuildProjectName)\$(ConfigLower)\ - $(SolutionDir)target\$(MSBuildProjectName)\ + $(SolutionDir)intermediate\$(MSBuildProjectName)\$(ConfigLower)\ + $(SolutionDir)intermediate\$(MSBuildProjectName)\ $(SolutionDir)bin\$(ConfigLower)\ From 248d69bad0133856e5522cc28f501f3d9c0cca72 Mon Sep 17 00:00:00 2001 From: Guilherme Werner Date: Mon, 15 Jun 2026 20:28:53 -0300 Subject: [PATCH 49/52] Update Directory.Build.props --- Directory.Build.props | 1 + 1 file changed, 1 insertion(+) diff --git a/Directory.Build.props b/Directory.Build.props index a1b591d..9426f7c 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -15,5 +15,6 @@ $(SolutionDir)intermediate\$(MSBuildProjectName)\$(ConfigLower)\ $(SolutionDir)intermediate\$(MSBuildProjectName)\ $(SolutionDir)bin\$(ConfigLower)\ + $(SolutionDir)intermediate\ From be25ee8fe3bedfa101b16c843931e261ffc63b91 Mon Sep 17 00:00:00 2001 From: Guilherme Werner Date: Mon, 15 Jun 2026 20:30:07 -0300 Subject: [PATCH 50/52] Update api to 1.4.3 --- .openapi-generator/FILES | 4 +- src/Tribufu/Api/TribufuGeneratedApi.cs | 1268 ++---------------- src/Tribufu/Client/ApiClient.cs | 2 +- src/Tribufu/Client/ApiException.cs | 2 +- src/Tribufu/Client/ApiResponse.cs | 2 +- src/Tribufu/Client/ClientUtils.cs | 2 +- src/Tribufu/Client/Configuration.cs | 4 +- src/Tribufu/Client/ExceptionFactory.cs | 2 +- src/Tribufu/Client/GlobalConfiguration.cs | 2 +- src/Tribufu/Client/HttpMethod.cs | 2 +- src/Tribufu/Client/IApiAccessor.cs | 2 +- src/Tribufu/Client/IAsynchronousClient.cs | 2 +- src/Tribufu/Client/IReadableConfiguration.cs | 2 +- src/Tribufu/Client/ISynchronousClient.cs | 2 +- src/Tribufu/Client/Multimap.cs | 2 +- src/Tribufu/Client/OpenAPIDateConverter.cs | 2 +- src/Tribufu/Client/RequestOptions.cs | 2 +- src/Tribufu/Client/RetryConfiguration.cs | 2 +- src/Tribufu/Model/AbstractOpenAPISchema.cs | 2 +- src/Tribufu/Model/Application.cs | 39 +- src/Tribufu/Model/ApplicationType.cs | 8 +- src/Tribufu/Model/AuthorizeRequest.cs | 2 +- src/Tribufu/Model/ClientInfo.cs | 2 +- src/Tribufu/Model/ClientType.cs | 2 +- src/Tribufu/Model/CodeChallengeMethod.cs | 2 +- src/Tribufu/Model/CodeResponse.cs | 2 +- src/Tribufu/Model/CreateUser.cs | 8 +- src/Tribufu/Model/CryptoViewModel.cs | 2 +- src/Tribufu/Model/ExternalAccount.cs | 177 +++ src/Tribufu/Model/Game.cs | 39 +- src/Tribufu/Model/GameServer.cs | 43 +- src/Tribufu/Model/GameServerCluster.cs | 39 +- src/Tribufu/Model/GameServerQuery.cs | 16 +- src/Tribufu/Model/GameServerStatus.cs | 2 +- src/Tribufu/Model/GrantType.cs | 2 +- src/Tribufu/Model/Group.cs | 39 +- src/Tribufu/Model/GroupApplication.cs | 2 +- src/Tribufu/Model/GroupMember.cs | 31 +- src/Tribufu/Model/GroupRank.cs | 2 +- src/Tribufu/Model/HashViewModel.cs | 2 +- src/Tribufu/Model/IdentityProviderType.cs | 78 ++ src/Tribufu/Model/IntrospectRequest.cs | 2 +- src/Tribufu/Model/IntrospectResponse.cs | 2 +- src/Tribufu/Model/IpAddress.cs | 2 +- src/Tribufu/Model/LeaderboardItem.cs | 2 +- src/Tribufu/Model/LeaderboardOrder.cs | 2 +- src/Tribufu/Model/ModelClient.cs | 37 +- src/Tribufu/Model/Package.cs | 41 +- src/Tribufu/Model/PackageRelease.cs | 37 +- src/Tribufu/Model/Product.cs | 61 +- src/Tribufu/Model/ProductPrice.cs | 16 +- src/Tribufu/Model/ProductType.cs | 2 +- src/Tribufu/Model/Profile.cs | 210 +-- src/Tribufu/Model/ProfileGame.cs | 2 +- src/Tribufu/Model/ProfileGroup.cs | 6 +- src/Tribufu/Model/ResponseType.cs | 2 +- src/Tribufu/Model/RevokeRequest.cs | 2 +- src/Tribufu/Model/Search.cs | 4 +- src/Tribufu/Model/SearchType.cs | 2 +- src/Tribufu/Model/ServerMetrics.cs | 2 +- src/Tribufu/Model/StorageFile.cs | 37 +- src/Tribufu/Model/TokenHintType.cs | 2 +- src/Tribufu/Model/TokenRequest.cs | 2 +- src/Tribufu/Model/TokenResponse.cs | 2 +- src/Tribufu/Model/TokenType.cs | 2 +- src/Tribufu/Model/UpdateProfile.cs | 2 +- src/Tribufu/Model/UserInfo.cs | 49 +- src/Tribufu/Model/UserType.cs | 2 +- 68 files changed, 877 insertions(+), 1502 deletions(-) create mode 100644 src/Tribufu/Model/ExternalAccount.cs create mode 100644 src/Tribufu/Model/IdentityProviderType.cs diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index 8950b6a..7cb3a8d 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -16,7 +16,6 @@ src/Tribufu/Client/OpenAPIDateConverter.cs src/Tribufu/Client/RequestOptions.cs src/Tribufu/Client/RetryConfiguration.cs src/Tribufu/Model/AbstractOpenAPISchema.cs -src/Tribufu/Model/Account.cs src/Tribufu/Model/Application.cs src/Tribufu/Model/ApplicationType.cs src/Tribufu/Model/AuthorizeRequest.cs @@ -26,6 +25,7 @@ src/Tribufu/Model/CodeChallengeMethod.cs src/Tribufu/Model/CodeResponse.cs src/Tribufu/Model/CreateUser.cs src/Tribufu/Model/CryptoViewModel.cs +src/Tribufu/Model/ExternalAccount.cs src/Tribufu/Model/Game.cs src/Tribufu/Model/GameServer.cs src/Tribufu/Model/GameServerCluster.cs @@ -37,12 +37,12 @@ src/Tribufu/Model/GroupApplication.cs src/Tribufu/Model/GroupMember.cs src/Tribufu/Model/GroupRank.cs src/Tribufu/Model/HashViewModel.cs +src/Tribufu/Model/IdentityProviderType.cs src/Tribufu/Model/IntrospectRequest.cs src/Tribufu/Model/IntrospectResponse.cs src/Tribufu/Model/IpAddress.cs src/Tribufu/Model/LeaderboardItem.cs src/Tribufu/Model/LeaderboardOrder.cs -src/Tribufu/Model/LoginProvider.cs src/Tribufu/Model/ModelClient.cs src/Tribufu/Model/Package.cs src/Tribufu/Model/PackageRelease.cs diff --git a/src/Tribufu/Api/TribufuGeneratedApi.cs b/src/Tribufu/Api/TribufuGeneratedApi.cs index ee083e2..096ce48 100644 --- a/src/Tribufu/Api/TribufuGeneratedApi.cs +++ b/src/Tribufu/Api/TribufuGeneratedApi.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.3.0 + * The version of the OpenAPI document: 1.4.3 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -534,8 +534,8 @@ namespace Tribufu.Api /// Thrown when fails to make API call /// (optional) /// Index associated with the operation. - /// List<string> - List GenerateFlakeId(int? amount = default(int?), int operationIndex = 0); + /// List<long> + List GenerateFlakeId(int? amount = default(int?), int operationIndex = 0); /// /// Generate one or more flake ids. @@ -546,8 +546,8 @@ namespace Tribufu.Api /// Thrown when fails to make API call /// (optional) /// Index associated with the operation. - /// ApiResponse of List<string> - ApiResponse> GenerateFlakeIdWithHttpInfo(int? amount = default(int?), int operationIndex = 0); + /// ApiResponse of List<long> + ApiResponse> GenerateFlakeIdWithHttpInfo(int? amount = default(int?), int operationIndex = 0); /// /// Generate one or more flake ids from a timestamp. /// @@ -558,8 +558,8 @@ namespace Tribufu.Api /// /// (optional) /// Index associated with the operation. - /// List<string> - List GenerateFlakeIdFromTimestamp(string timestamp, int? amount = default(int?), int operationIndex = 0); + /// List<long> + List GenerateFlakeIdFromTimestamp(long timestamp, int? amount = default(int?), int operationIndex = 0); /// /// Generate one or more flake ids from a timestamp. @@ -571,8 +571,8 @@ namespace Tribufu.Api /// /// (optional) /// Index associated with the operation. - /// ApiResponse of List<string> - ApiResponse> GenerateFlakeIdFromTimestampWithHttpInfo(string timestamp, int? amount = default(int?), int operationIndex = 0); + /// ApiResponse of List<long> + ApiResponse> GenerateFlakeIdFromTimestampWithHttpInfo(long timestamp, int? amount = default(int?), int operationIndex = 0); /// /// Generate a random password. /// @@ -608,8 +608,8 @@ namespace Tribufu.Api /// (optional) /// (optional) /// Index associated with the operation. - /// List<Guid> - List GenerateUuid(int? version = default(int?), int? amount = default(int?), int operationIndex = 0); + /// List<string> + List GenerateUuid(int? version = default(int?), int? amount = default(int?), int operationIndex = 0); /// /// Generate one or more uuids with a specific version. @@ -621,8 +621,8 @@ namespace Tribufu.Api /// (optional) /// (optional) /// Index associated with the operation. - /// ApiResponse of List<Guid> - ApiResponse> GenerateUuidWithHttpInfo(int? version = default(int?), int? amount = default(int?), int operationIndex = 0); + /// ApiResponse of List<string> + ApiResponse> GenerateUuidWithHttpInfo(int? version = default(int?), int? amount = default(int?), int operationIndex = 0); /// /// Get a oauth2 client by id. /// @@ -1337,7 +1337,7 @@ namespace Tribufu.Api /// /// Index associated with the operation. /// Group - Group GetGroupByUuid(Guid uuid, int operationIndex = 0); + Group GetGroupByUuid(string uuid, int operationIndex = 0); /// /// Get a group by uuid. @@ -1349,7 +1349,7 @@ namespace Tribufu.Api /// /// Index associated with the operation. /// ApiResponse of Group - ApiResponse GetGroupByUuidWithHttpInfo(Guid uuid, int operationIndex = 0); + ApiResponse GetGroupByUuidWithHttpInfo(string uuid, int operationIndex = 0); /// /// Get a list of games of a group. /// @@ -1614,8 +1614,8 @@ namespace Tribufu.Api /// Thrown when fails to make API call /// /// Index associated with the operation. - /// List<Account> - List GetUserAccounts(string id, int operationIndex = 0); + /// List<ExternalAccount> + List GetUserAccounts(string id, int operationIndex = 0); /// /// Get a list of connected accounts of the user. @@ -1626,8 +1626,8 @@ namespace Tribufu.Api /// Thrown when fails to make API call /// /// Index associated with the operation. - /// ApiResponse of List<Account> - ApiResponse> GetUserAccountsWithHttpInfo(string id, int operationIndex = 0); + /// ApiResponse of List<ExternalAccount> + ApiResponse> GetUserAccountsWithHttpInfo(string id, int operationIndex = 0); /// /// Get a list of friends of the user. /// @@ -1899,7 +1899,7 @@ namespace Tribufu.Api /// /// Index associated with the operation. /// Profile - Profile GetUserProfileByUuid(Guid uuid, int operationIndex = 0); + Profile GetUserProfileByUuid(string uuid, int operationIndex = 0); /// /// Get a user profile by uuid. @@ -1911,7 +1911,7 @@ namespace Tribufu.Api /// /// Index associated with the operation. /// ApiResponse of Profile - ApiResponse GetUserProfileByUuidWithHttpInfo(Guid uuid, int operationIndex = 0); + ApiResponse GetUserProfileByUuidWithHttpInfo(string uuid, int operationIndex = 0); /// /// Get a user profile by uuid. /// @@ -1923,7 +1923,7 @@ namespace Tribufu.Api /// Index associated with the operation. /// Profile [Obsolete] - Profile GetUserProfileByUuidV1(Guid uuid, int operationIndex = 0); + Profile GetUserProfileByUuidV1(string uuid, int operationIndex = 0); /// /// Get a user profile by uuid. @@ -1936,7 +1936,7 @@ namespace Tribufu.Api /// Index associated with the operation. /// ApiResponse of Profile [Obsolete] - ApiResponse GetUserProfileByUuidV1WithHttpInfo(Guid uuid, int operationIndex = 0); + ApiResponse GetUserProfileByUuidV1WithHttpInfo(string uuid, int operationIndex = 0); /// /// Get a list of user profiles. /// @@ -3041,8 +3041,8 @@ namespace Tribufu.Api /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. - /// Task of List<string> - System.Threading.Tasks.Task> GenerateFlakeIdAsync(int? amount = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// Task of List<long> + System.Threading.Tasks.Task> GenerateFlakeIdAsync(int? amount = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Generate one or more flake ids. @@ -3054,8 +3054,8 @@ namespace Tribufu.Api /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. - /// Task of ApiResponse (List<string>) - System.Threading.Tasks.Task>> GenerateFlakeIdWithHttpInfoAsync(int? amount = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// Task of ApiResponse (List<long>) + System.Threading.Tasks.Task>> GenerateFlakeIdWithHttpInfoAsync(int? amount = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Generate one or more flake ids from a timestamp. /// @@ -3067,8 +3067,8 @@ namespace Tribufu.Api /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. - /// Task of List<string> - System.Threading.Tasks.Task> GenerateFlakeIdFromTimestampAsync(string timestamp, int? amount = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// Task of List<long> + System.Threading.Tasks.Task> GenerateFlakeIdFromTimestampAsync(long timestamp, int? amount = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Generate one or more flake ids from a timestamp. @@ -3081,8 +3081,8 @@ namespace Tribufu.Api /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. - /// Task of ApiResponse (List<string>) - System.Threading.Tasks.Task>> GenerateFlakeIdFromTimestampWithHttpInfoAsync(string timestamp, int? amount = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// Task of ApiResponse (List<long>) + System.Threading.Tasks.Task>> GenerateFlakeIdFromTimestampWithHttpInfoAsync(long timestamp, int? amount = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Generate a random password. /// @@ -3121,8 +3121,8 @@ namespace Tribufu.Api /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. - /// Task of List<Guid> - System.Threading.Tasks.Task> GenerateUuidAsync(int? version = default(int?), int? amount = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// Task of List<string> + System.Threading.Tasks.Task> GenerateUuidAsync(int? version = default(int?), int? amount = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Generate one or more uuids with a specific version. @@ -3135,8 +3135,8 @@ namespace Tribufu.Api /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. - /// Task of ApiResponse (List<Guid>) - System.Threading.Tasks.Task>> GenerateUuidWithHttpInfoAsync(int? version = default(int?), int? amount = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// Task of ApiResponse (List<string>) + System.Threading.Tasks.Task>> GenerateUuidWithHttpInfoAsync(int? version = default(int?), int? amount = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get a oauth2 client by id. /// @@ -3914,7 +3914,7 @@ namespace Tribufu.Api /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of Group - System.Threading.Tasks.Task GetGroupByUuidAsync(Guid uuid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task GetGroupByUuidAsync(string uuid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get a group by uuid. @@ -3927,7 +3927,7 @@ namespace Tribufu.Api /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (Group) - System.Threading.Tasks.Task> GetGroupByUuidWithHttpInfoAsync(Guid uuid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> GetGroupByUuidWithHttpInfoAsync(string uuid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get a list of games of a group. /// @@ -4221,8 +4221,8 @@ namespace Tribufu.Api /// /// Index associated with the operation. /// Cancellation Token to cancel the request. - /// Task of List<Account> - System.Threading.Tasks.Task> GetUserAccountsAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// Task of List<ExternalAccount> + System.Threading.Tasks.Task> GetUserAccountsAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get a list of connected accounts of the user. @@ -4234,8 +4234,8 @@ namespace Tribufu.Api /// /// Index associated with the operation. /// Cancellation Token to cancel the request. - /// Task of ApiResponse (List<Account>) - System.Threading.Tasks.Task>> GetUserAccountsWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// Task of ApiResponse (List<ExternalAccount>) + System.Threading.Tasks.Task>> GetUserAccountsWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get a list of friends of the user. /// @@ -4530,7 +4530,7 @@ namespace Tribufu.Api /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of Profile - System.Threading.Tasks.Task GetUserProfileByUuidAsync(Guid uuid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task GetUserProfileByUuidAsync(string uuid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get a user profile by uuid. @@ -4543,7 +4543,7 @@ namespace Tribufu.Api /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (Profile) - System.Threading.Tasks.Task> GetUserProfileByUuidWithHttpInfoAsync(Guid uuid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> GetUserProfileByUuidWithHttpInfoAsync(string uuid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get a user profile by uuid. /// @@ -4556,7 +4556,7 @@ namespace Tribufu.Api /// Cancellation Token to cancel the request. /// Task of Profile [Obsolete] - System.Threading.Tasks.Task GetUserProfileByUuidV1Async(Guid uuid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task GetUserProfileByUuidV1Async(string uuid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get a user profile by uuid. @@ -4570,7 +4570,7 @@ namespace Tribufu.Api /// Cancellation Token to cancel the request. /// Task of ApiResponse (Profile) [Obsolete] - System.Threading.Tasks.Task> GetUserProfileByUuidV1WithHttpInfoAsync(Guid uuid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> GetUserProfileByUuidV1WithHttpInfoAsync(string uuid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get a list of user profiles. /// @@ -5334,11 +5334,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.Authorize"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = this.Client.Post("/v1/oauth2/authorize", localVarRequestOptions, this.Configuration); @@ -5407,11 +5402,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.Authorize"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = await this.AsynchronousClient.PostAsync("/v1/oauth2/authorize", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); @@ -5489,11 +5479,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.ChangeEmail"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = this.Client.Put("/v1/users/{id}/email", localVarRequestOptions, this.Configuration); @@ -5572,11 +5557,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.ChangeEmail"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = await this.AsynchronousClient.PutAsync("/v1/users/{id}/email", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); @@ -5654,11 +5634,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.ChangePassword"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = this.Client.Put("/v1/users/{id}/password", localVarRequestOptions, this.Configuration); @@ -5737,11 +5712,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.ChangePassword"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = await this.AsynchronousClient.PutAsync("/v1/users/{id}/password", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); @@ -5816,11 +5786,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.ClaimGameServer"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = this.Client.Put("/v1/games/servers/{id}/claim", localVarRequestOptions, this.Configuration); @@ -5896,11 +5861,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.ClaimGameServer"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = await this.AsynchronousClient.PutAsync("/v1/games/servers/{id}/claim", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); @@ -5977,11 +5937,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.ClaimGameServerV1"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = this.Client.Put("/v1/servers/{id}/claim", localVarRequestOptions, this.Configuration); @@ -6059,11 +6014,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.ClaimGameServerV1"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = await this.AsynchronousClient.PutAsync("/v1/servers/{id}/claim", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); @@ -6131,11 +6081,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.ConvertBase64"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = this.Client.Post("/v1/utils/base64", localVarRequestOptions, this.Configuration); @@ -6204,11 +6149,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.ConvertBase64"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = await this.AsynchronousClient.PostAsync("/v1/utils/base64", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); @@ -6274,11 +6214,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.CreateClient"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = this.Client.Post("/v1/oauth2/clients", localVarRequestOptions, this.Configuration); @@ -6345,11 +6280,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.CreateClient"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = await this.AsynchronousClient.PostAsync("/v1/oauth2/clients", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); @@ -6415,11 +6345,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.CreateGameServer"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = this.Client.Post("/v1/games/servers", localVarRequestOptions, this.Configuration); @@ -6486,11 +6411,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.CreateGameServer"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = await this.AsynchronousClient.PostAsync("/v1/games/servers", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); @@ -6556,11 +6476,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.CreateGameServerCluster"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = this.Client.Post("/v1/games/servers/clusters", localVarRequestOptions, this.Configuration); @@ -6627,11 +6542,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.CreateGameServerCluster"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = await this.AsynchronousClient.PostAsync("/v1/games/servers/clusters", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); @@ -6699,11 +6609,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.CreateGameServerClusterV1"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = this.Client.Post("/v1/clusters", localVarRequestOptions, this.Configuration); @@ -6772,11 +6677,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.CreateGameServerClusterV1"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = await this.AsynchronousClient.PostAsync("/v1/clusters", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); @@ -6844,11 +6744,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.CreateGameServerV1"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = this.Client.Post("/v1/servers", localVarRequestOptions, this.Configuration); @@ -6917,11 +6812,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.CreateGameServerV1"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = await this.AsynchronousClient.PostAsync("/v1/servers", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); @@ -6987,11 +6877,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.CreateGroup"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = this.Client.Post("/v1/groups", localVarRequestOptions, this.Configuration); @@ -7058,11 +6943,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.CreateGroup"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = await this.AsynchronousClient.PostAsync("/v1/groups", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); @@ -7131,11 +7011,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.CreateToken"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = this.Client.Post("/v1/oauth2/token", localVarRequestOptions, this.Configuration); @@ -7205,11 +7080,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.CreateToken"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = await this.AsynchronousClient.PostAsync("/v1/oauth2/token", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); @@ -7275,11 +7145,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.CreateUser"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = this.Client.Post("/v1/users", localVarRequestOptions, this.Configuration); @@ -7346,11 +7211,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.CreateUser"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = await this.AsynchronousClient.PostAsync("/v1/users", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); @@ -7421,11 +7281,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.DeleteClient"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = this.Client.Delete("/v1/oauth2/clients/{id}", localVarRequestOptions, this.Configuration); @@ -7497,11 +7352,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.DeleteClient"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = await this.AsynchronousClient.DeleteAsync("/v1/oauth2/clients/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); @@ -7572,11 +7422,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.DeleteGameServer"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = this.Client.Delete("/v1/games/servers/{id}", localVarRequestOptions, this.Configuration); @@ -7648,11 +7493,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.DeleteGameServer"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = await this.AsynchronousClient.DeleteAsync("/v1/games/servers/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); @@ -7723,11 +7563,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.DeleteGameServerCluster"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = this.Client.Delete("/v1/games/servers/clusters/{id}", localVarRequestOptions, this.Configuration); @@ -7799,11 +7634,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.DeleteGameServerCluster"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = await this.AsynchronousClient.DeleteAsync("/v1/games/servers/clusters/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); @@ -7876,11 +7706,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.DeleteGameServerClusterV1"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = this.Client.Delete("/v1/clusters/{id}", localVarRequestOptions, this.Configuration); @@ -7954,11 +7779,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.DeleteGameServerClusterV1"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = await this.AsynchronousClient.DeleteAsync("/v1/clusters/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); @@ -8031,11 +7851,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.DeleteGameServerV1"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = this.Client.Delete("/v1/servers/{id}", localVarRequestOptions, this.Configuration); @@ -8109,11 +7924,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.DeleteGameServerV1"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = await this.AsynchronousClient.DeleteAsync("/v1/servers/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); @@ -8184,11 +7994,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.DeleteGroup"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = this.Client.Delete("/v1/groups/{id}", localVarRequestOptions, this.Configuration); @@ -8260,11 +8065,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.DeleteGroup"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = await this.AsynchronousClient.DeleteAsync("/v1/groups/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); @@ -8335,11 +8135,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.DeletePackage"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = this.Client.Delete("/v1/packages/{id}", localVarRequestOptions, this.Configuration); @@ -8411,11 +8206,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.DeletePackage"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = await this.AsynchronousClient.DeleteAsync("/v1/packages/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); @@ -8438,10 +8228,10 @@ namespace Tribufu.Api /// Thrown when fails to make API call /// (optional) /// Index associated with the operation. - /// List<string> - public List GenerateFlakeId(int? amount = default(int?), int operationIndex = 0) + /// List<long> + public List GenerateFlakeId(int? amount = default(int?), int operationIndex = 0) { - Tribufu.Client.ApiResponse> localVarResponse = GenerateFlakeIdWithHttpInfo(amount); + Tribufu.Client.ApiResponse> localVarResponse = GenerateFlakeIdWithHttpInfo(amount); return localVarResponse.Data; } @@ -8451,8 +8241,8 @@ namespace Tribufu.Api /// Thrown when fails to make API call /// (optional) /// Index associated with the operation. - /// ApiResponse of List<string> - public Tribufu.Client.ApiResponse> GenerateFlakeIdWithHttpInfo(int? amount = default(int?), int operationIndex = 0) + /// ApiResponse of List<long> + public Tribufu.Client.ApiResponse> GenerateFlakeIdWithHttpInfo(int? amount = default(int?), int operationIndex = 0) { Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); @@ -8485,14 +8275,9 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.GenerateFlakeId"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request - var localVarResponse = this.Client.Get>("/v1/utils/flake", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Get>("/v1/utils/flake", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("GenerateFlakeId", localVarResponse); @@ -8512,10 +8297,10 @@ namespace Tribufu.Api /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. - /// Task of List<string> - public async System.Threading.Tasks.Task> GenerateFlakeIdAsync(int? amount = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + /// Task of List<long> + public async System.Threading.Tasks.Task> GenerateFlakeIdAsync(int? amount = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { - Tribufu.Client.ApiResponse> localVarResponse = await GenerateFlakeIdWithHttpInfoAsync(amount, operationIndex, cancellationToken).ConfigureAwait(false); + Tribufu.Client.ApiResponse> localVarResponse = await GenerateFlakeIdWithHttpInfoAsync(amount, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -8526,8 +8311,8 @@ namespace Tribufu.Api /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. - /// Task of ApiResponse (List<string>) - public async System.Threading.Tasks.Task>> GenerateFlakeIdWithHttpInfoAsync(int? amount = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + /// Task of ApiResponse (List<long>) + public async System.Threading.Tasks.Task>> GenerateFlakeIdWithHttpInfoAsync(int? amount = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); @@ -8560,14 +8345,9 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.GenerateFlakeId"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request - var localVarResponse = await this.AsynchronousClient.GetAsync>("/v1/utils/flake", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.GetAsync>("/v1/utils/flake", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -8588,10 +8368,10 @@ namespace Tribufu.Api /// /// (optional) /// Index associated with the operation. - /// List<string> - public List GenerateFlakeIdFromTimestamp(string timestamp, int? amount = default(int?), int operationIndex = 0) + /// List<long> + public List GenerateFlakeIdFromTimestamp(long timestamp, int? amount = default(int?), int operationIndex = 0) { - Tribufu.Client.ApiResponse> localVarResponse = GenerateFlakeIdFromTimestampWithHttpInfo(timestamp, amount); + Tribufu.Client.ApiResponse> localVarResponse = GenerateFlakeIdFromTimestampWithHttpInfo(timestamp, amount); return localVarResponse.Data; } @@ -8602,15 +8382,9 @@ namespace Tribufu.Api /// /// (optional) /// Index associated with the operation. - /// ApiResponse of List<string> - public Tribufu.Client.ApiResponse> GenerateFlakeIdFromTimestampWithHttpInfo(string timestamp, int? amount = default(int?), int operationIndex = 0) + /// ApiResponse of List<long> + public Tribufu.Client.ApiResponse> GenerateFlakeIdFromTimestampWithHttpInfo(long timestamp, int? amount = default(int?), int operationIndex = 0) { - // verify the required parameter 'timestamp' is set - if (timestamp == null) - { - throw new Tribufu.Client.ApiException(400, "Missing required parameter 'timestamp' when calling TribufuGeneratedApi->GenerateFlakeIdFromTimestamp"); - } - Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { @@ -8643,14 +8417,9 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.GenerateFlakeIdFromTimestamp"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request - var localVarResponse = this.Client.Get>("/v1/utils/flake/{timestamp}", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Get>("/v1/utils/flake/{timestamp}", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("GenerateFlakeIdFromTimestamp", localVarResponse); @@ -8671,10 +8440,10 @@ namespace Tribufu.Api /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. - /// Task of List<string> - public async System.Threading.Tasks.Task> GenerateFlakeIdFromTimestampAsync(string timestamp, int? amount = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + /// Task of List<long> + public async System.Threading.Tasks.Task> GenerateFlakeIdFromTimestampAsync(long timestamp, int? amount = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { - Tribufu.Client.ApiResponse> localVarResponse = await GenerateFlakeIdFromTimestampWithHttpInfoAsync(timestamp, amount, operationIndex, cancellationToken).ConfigureAwait(false); + Tribufu.Client.ApiResponse> localVarResponse = await GenerateFlakeIdFromTimestampWithHttpInfoAsync(timestamp, amount, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -8686,15 +8455,9 @@ namespace Tribufu.Api /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. - /// Task of ApiResponse (List<string>) - public async System.Threading.Tasks.Task>> GenerateFlakeIdFromTimestampWithHttpInfoAsync(string timestamp, int? amount = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + /// Task of ApiResponse (List<long>) + public async System.Threading.Tasks.Task>> GenerateFlakeIdFromTimestampWithHttpInfoAsync(long timestamp, int? amount = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { - // verify the required parameter 'timestamp' is set - if (timestamp == null) - { - throw new Tribufu.Client.ApiException(400, "Missing required parameter 'timestamp' when calling TribufuGeneratedApi->GenerateFlakeIdFromTimestamp"); - } - Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); @@ -8727,14 +8490,9 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.GenerateFlakeIdFromTimestamp"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request - var localVarResponse = await this.AsynchronousClient.GetAsync>("/v1/utils/flake/{timestamp}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.GetAsync>("/v1/utils/flake/{timestamp}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -8807,11 +8565,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.GeneratePassword"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = this.Client.Get("/v1/utils/password", localVarRequestOptions, this.Configuration); @@ -8888,11 +8641,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.GeneratePassword"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = await this.AsynchronousClient.GetAsync("/v1/utils/password", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); @@ -8916,10 +8664,10 @@ namespace Tribufu.Api /// (optional) /// (optional) /// Index associated with the operation. - /// List<Guid> - public List GenerateUuid(int? version = default(int?), int? amount = default(int?), int operationIndex = 0) + /// List<string> + public List GenerateUuid(int? version = default(int?), int? amount = default(int?), int operationIndex = 0) { - Tribufu.Client.ApiResponse> localVarResponse = GenerateUuidWithHttpInfo(version, amount); + Tribufu.Client.ApiResponse> localVarResponse = GenerateUuidWithHttpInfo(version, amount); return localVarResponse.Data; } @@ -8930,8 +8678,8 @@ namespace Tribufu.Api /// (optional) /// (optional) /// Index associated with the operation. - /// ApiResponse of List<Guid> - public Tribufu.Client.ApiResponse> GenerateUuidWithHttpInfo(int? version = default(int?), int? amount = default(int?), int operationIndex = 0) + /// ApiResponse of List<string> + public Tribufu.Client.ApiResponse> GenerateUuidWithHttpInfo(int? version = default(int?), int? amount = default(int?), int operationIndex = 0) { Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); @@ -8968,14 +8716,9 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.GenerateUuid"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request - var localVarResponse = this.Client.Get>("/v1/utils/uuid", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Get>("/v1/utils/uuid", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("GenerateUuid", localVarResponse); @@ -8996,10 +8739,10 @@ namespace Tribufu.Api /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. - /// Task of List<Guid> - public async System.Threading.Tasks.Task> GenerateUuidAsync(int? version = default(int?), int? amount = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + /// Task of List<string> + public async System.Threading.Tasks.Task> GenerateUuidAsync(int? version = default(int?), int? amount = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { - Tribufu.Client.ApiResponse> localVarResponse = await GenerateUuidWithHttpInfoAsync(version, amount, operationIndex, cancellationToken).ConfigureAwait(false); + Tribufu.Client.ApiResponse> localVarResponse = await GenerateUuidWithHttpInfoAsync(version, amount, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -9011,8 +8754,8 @@ namespace Tribufu.Api /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. - /// Task of ApiResponse (List<Guid>) - public async System.Threading.Tasks.Task>> GenerateUuidWithHttpInfoAsync(int? version = default(int?), int? amount = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + /// Task of ApiResponse (List<string>) + public async System.Threading.Tasks.Task>> GenerateUuidWithHttpInfoAsync(int? version = default(int?), int? amount = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); @@ -9049,14 +8792,9 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.GenerateUuid"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request - var localVarResponse = await this.AsynchronousClient.GetAsync>("/v1/utils/uuid", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.GetAsync>("/v1/utils/uuid", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -9126,11 +8864,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.GetClientById"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = this.Client.Get("/v1/oauth2/clients/{id}", localVarRequestOptions, this.Configuration); @@ -9204,11 +8937,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.GetClientById"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = await this.AsynchronousClient.GetAsync("/v1/oauth2/clients/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); @@ -9272,11 +9000,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.GetClientInfo"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = this.Client.Get("/v1/oauth2/clientinfo", localVarRequestOptions, this.Configuration); @@ -9341,11 +9064,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.GetClientInfo"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = await this.AsynchronousClient.GetAsync("/v1/oauth2/clientinfo", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); @@ -9427,11 +9145,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.GetClients"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = this.Client.Get>("/v1/oauth2/clients", localVarRequestOptions, this.Configuration); @@ -9514,11 +9227,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.GetClients"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = await this.AsynchronousClient.GetAsync>("/v1/oauth2/clients", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); @@ -9582,11 +9290,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.GetCurrentIpAddress"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = this.Client.Get>("/v1/geoip", localVarRequestOptions, this.Configuration); @@ -9651,11 +9354,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.GetCurrentIpAddress"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = await this.AsynchronousClient.GetAsync>("/v1/geoip", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); @@ -9728,11 +9426,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGameById"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = this.Client.Get("/v1/games/{id}", localVarRequestOptions, this.Configuration); @@ -9806,11 +9499,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGameById"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = await this.AsynchronousClient.GetAsync("/v1/games/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); @@ -9886,11 +9574,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGameServerByAddressAndQueryPort"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = this.Client.Get("/v1/games/servers/address/{address}:{port}", localVarRequestOptions, this.Configuration); @@ -9967,11 +9650,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGameServerByAddressAndQueryPort"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = await this.AsynchronousClient.GetAsync("/v1/games/servers/address/{address}:{port}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); @@ -10049,11 +9727,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGameServerByAddressAndQueryPortV1"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = this.Client.Get("/v1/servers/address/{address}:{port}", localVarRequestOptions, this.Configuration); @@ -10132,11 +9805,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGameServerByAddressAndQueryPortV1"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = await this.AsynchronousClient.GetAsync("/v1/servers/address/{address}:{port}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); @@ -10209,11 +9877,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGameServerById"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = this.Client.Get("/v1/games/servers/{id}", localVarRequestOptions, this.Configuration); @@ -10287,11 +9950,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGameServerById"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = await this.AsynchronousClient.GetAsync("/v1/games/servers/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); @@ -10366,11 +10024,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGameServerByIdV1"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = this.Client.Get("/v1/servers/{id}", localVarRequestOptions, this.Configuration); @@ -10446,11 +10099,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGameServerByIdV1"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = await this.AsynchronousClient.GetAsync("/v1/servers/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); @@ -10523,11 +10171,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGameServerClusterById"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = this.Client.Get("/v1/games/servers/clusters/{id}", localVarRequestOptions, this.Configuration); @@ -10601,11 +10244,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGameServerClusterById"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = await this.AsynchronousClient.GetAsync("/v1/games/servers/clusters/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); @@ -10680,11 +10318,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGameServerClusterByIdV1"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = this.Client.Get("/v1/clusters/{id}", localVarRequestOptions, this.Configuration); @@ -10760,11 +10393,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGameServerClusterByIdV1"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = await this.AsynchronousClient.GetAsync("/v1/clusters/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); @@ -10849,11 +10477,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGameServerClusterServers"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = this.Client.Get>("/v1/games/servers/clusters/{id}/servers", localVarRequestOptions, this.Configuration); @@ -10939,11 +10562,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGameServerClusterServers"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = await this.AsynchronousClient.GetAsync>("/v1/games/servers/clusters/{id}/servers", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); @@ -11030,11 +10648,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGameServerClusterServersV1"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = this.Client.Get>("/v1/clusters/{id}/servers", localVarRequestOptions, this.Configuration); @@ -11122,11 +10735,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGameServerClusterServersV1"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = await this.AsynchronousClient.GetAsync>("/v1/clusters/{id}/servers", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); @@ -11202,11 +10810,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGameServerClusters"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = this.Client.Get>("/v1/games/servers/clusters", localVarRequestOptions, this.Configuration); @@ -11283,11 +10886,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGameServerClusters"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = await this.AsynchronousClient.GetAsync>("/v1/games/servers/clusters", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); @@ -11365,11 +10963,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGameServerClustersV1"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = this.Client.Get>("/v1/clusters", localVarRequestOptions, this.Configuration); @@ -11448,11 +11041,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGameServerClustersV1"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = await this.AsynchronousClient.GetAsync>("/v1/clusters", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); @@ -11537,11 +11125,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGameServerQueries"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = this.Client.Get>("/v1/games/servers/{id}/queries", localVarRequestOptions, this.Configuration); @@ -11627,11 +11210,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGameServerQueries"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = await this.AsynchronousClient.GetAsync>("/v1/games/servers/{id}/queries", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); @@ -11718,11 +11296,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGameServerQueriesV1"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = this.Client.Get>("/v1/servers/{id}/queries", localVarRequestOptions, this.Configuration); @@ -11810,11 +11383,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGameServerQueriesV1"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = await this.AsynchronousClient.GetAsync>("/v1/servers/{id}/queries", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); @@ -11914,11 +11482,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGameServers"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = this.Client.Get>("/v1/games/servers", localVarRequestOptions, this.Configuration); @@ -12019,11 +11582,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGameServers"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = await this.AsynchronousClient.GetAsync>("/v1/games/servers", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); @@ -12108,11 +11666,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGameServersByCountry"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = this.Client.Get>("/v1/games/servers/country/{country}", localVarRequestOptions, this.Configuration); @@ -12198,11 +11751,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGameServersByCountry"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = await this.AsynchronousClient.GetAsync>("/v1/games/servers/country/{country}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); @@ -12289,11 +11837,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGameServersByCountryV1"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = this.Client.Get>("/v1/servers/country/{country}", localVarRequestOptions, this.Configuration); @@ -12381,11 +11924,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGameServersByCountryV1"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = await this.AsynchronousClient.GetAsync>("/v1/servers/country/{country}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); @@ -12449,11 +11987,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGameServersCountries"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = this.Client.Get>("/v1/games/servers/countries", localVarRequestOptions, this.Configuration); @@ -12518,11 +12051,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGameServersCountries"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = await this.AsynchronousClient.GetAsync>("/v1/games/servers/countries", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); @@ -12588,11 +12116,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGameServersCountriesV1"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = this.Client.Get>("/v1/servers/countries", localVarRequestOptions, this.Configuration); @@ -12659,11 +12182,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGameServersCountriesV1"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = await this.AsynchronousClient.GetAsync>("/v1/servers/countries", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); @@ -12727,11 +12245,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGameServersMetrics"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = this.Client.Get("/v1/games/servers/metrics", localVarRequestOptions, this.Configuration); @@ -12796,11 +12309,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGameServersMetrics"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = await this.AsynchronousClient.GetAsync("/v1/games/servers/metrics", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); @@ -12866,11 +12374,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGameServersMetricsV1"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = this.Client.Get("/v1/servers/metrics", localVarRequestOptions, this.Configuration); @@ -12937,11 +12440,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGameServersMetricsV1"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = await this.AsynchronousClient.GetAsync("/v1/servers/metrics", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); @@ -13043,11 +12541,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGameServersV1"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = this.Client.Get>("/v1/servers", localVarRequestOptions, this.Configuration); @@ -13150,11 +12643,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGameServersV1"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = await this.AsynchronousClient.GetAsync>("/v1/servers", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); @@ -13230,11 +12718,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGames"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = this.Client.Get>("/v1/games", localVarRequestOptions, this.Configuration); @@ -13311,11 +12794,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGames"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = await this.AsynchronousClient.GetAsync>("/v1/games", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); @@ -13388,11 +12866,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGroupById"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = this.Client.Get("/v1/groups/{id}", localVarRequestOptions, this.Configuration); @@ -13466,11 +12939,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGroupById"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = await this.AsynchronousClient.GetAsync("/v1/groups/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); @@ -13543,11 +13011,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGroupByTag"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = this.Client.Get("/v1/groups/tag/{tag}", localVarRequestOptions, this.Configuration); @@ -13621,11 +13084,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGroupByTag"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = await this.AsynchronousClient.GetAsync("/v1/groups/tag/{tag}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); @@ -13649,7 +13107,7 @@ namespace Tribufu.Api /// /// Index associated with the operation. /// Group - public Group GetGroupByUuid(Guid uuid, int operationIndex = 0) + public Group GetGroupByUuid(string uuid, int operationIndex = 0) { Tribufu.Client.ApiResponse localVarResponse = GetGroupByUuidWithHttpInfo(uuid); return localVarResponse.Data; @@ -13662,8 +13120,14 @@ namespace Tribufu.Api /// /// Index associated with the operation. /// ApiResponse of Group - public Tribufu.Client.ApiResponse GetGroupByUuidWithHttpInfo(Guid uuid, int operationIndex = 0) + public Tribufu.Client.ApiResponse GetGroupByUuidWithHttpInfo(string uuid, int operationIndex = 0) { + // verify the required parameter 'uuid' is set + if (uuid == null) + { + throw new Tribufu.Client.ApiException(400, "Missing required parameter 'uuid' when calling TribufuGeneratedApi->GetGroupByUuid"); + } + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { @@ -13692,11 +13156,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGroupByUuid"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = this.Client.Get("/v1/groups/uuid/{uuid}", localVarRequestOptions, this.Configuration); @@ -13720,7 +13179,7 @@ namespace Tribufu.Api /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of Group - public async System.Threading.Tasks.Task GetGroupByUuidAsync(Guid uuid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task GetGroupByUuidAsync(string uuid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.ApiResponse localVarResponse = await GetGroupByUuidWithHttpInfoAsync(uuid, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -13734,8 +13193,14 @@ namespace Tribufu.Api /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (Group) - public async System.Threading.Tasks.Task> GetGroupByUuidWithHttpInfoAsync(Guid uuid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> GetGroupByUuidWithHttpInfoAsync(string uuid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { + // verify the required parameter 'uuid' is set + if (uuid == null) + { + throw new Tribufu.Client.ApiException(400, "Missing required parameter 'uuid' when calling TribufuGeneratedApi->GetGroupByUuid"); + } + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); @@ -13764,11 +13229,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGroupByUuid"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = await this.AsynchronousClient.GetAsync("/v1/groups/uuid/{uuid}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); @@ -13841,11 +13301,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGroupGames"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = this.Client.Get>("/v1/groups/{id}/games", localVarRequestOptions, this.Configuration); @@ -13919,11 +13374,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGroupGames"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = await this.AsynchronousClient.GetAsync>("/v1/groups/{id}/games", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); @@ -13998,11 +13448,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGroupMembers"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = this.Client.Get>("/v1/groups/{id}/members", localVarRequestOptions, this.Configuration); @@ -14078,11 +13523,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGroupMembers"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = await this.AsynchronousClient.GetAsync>("/v1/groups/{id}/members", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); @@ -14158,11 +13598,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGroups"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = this.Client.Get>("/v1/groups", localVarRequestOptions, this.Configuration); @@ -14239,11 +13674,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGroups"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = await this.AsynchronousClient.GetAsync>("/v1/groups", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); @@ -14316,11 +13746,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.GetIpAddress"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = this.Client.Get("/v1/geoip/addresses/{address}", localVarRequestOptions, this.Configuration); @@ -14394,11 +13819,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.GetIpAddress"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = await this.AsynchronousClient.GetAsync("/v1/geoip/addresses/{address}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); @@ -14480,11 +13900,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.GetIpAddresses"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = this.Client.Get>("/v1/geoip/addresses", localVarRequestOptions, this.Configuration); @@ -14567,11 +13982,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.GetIpAddresses"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = await this.AsynchronousClient.GetAsync>("/v1/geoip/addresses", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); @@ -14641,11 +14051,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.GetLeaderboard"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = this.Client.Get>("/v1/leaderboard", localVarRequestOptions, this.Configuration); @@ -14716,11 +14121,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.GetLeaderboard"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = await this.AsynchronousClient.GetAsync>("/v1/leaderboard", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); @@ -14793,11 +14193,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.GetPackageById"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = this.Client.Get("/v1/packages/{id}", localVarRequestOptions, this.Configuration); @@ -14871,11 +14266,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.GetPackageById"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = await this.AsynchronousClient.GetAsync("/v1/packages/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); @@ -14951,11 +14341,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.GetPackages"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = this.Client.Get>("/v1/packages", localVarRequestOptions, this.Configuration); @@ -15032,11 +14417,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.GetPackages"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = await this.AsynchronousClient.GetAsync>("/v1/packages", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); @@ -15109,11 +14489,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.GetProductById"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = this.Client.Get("/v1/products/{id}", localVarRequestOptions, this.Configuration); @@ -15187,11 +14562,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.GetProductById"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = await this.AsynchronousClient.GetAsync("/v1/products/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); @@ -15267,11 +14637,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.GetProducts"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = this.Client.Get>("/v1/products", localVarRequestOptions, this.Configuration); @@ -15348,11 +14713,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.GetProducts"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = await this.AsynchronousClient.GetAsync>("/v1/products", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); @@ -15414,11 +14774,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.GetPublicKeys"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = this.Client.Get("/v1/oauth2/jwks", localVarRequestOptions, this.Configuration); @@ -15481,11 +14836,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.GetPublicKeys"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = await this.AsynchronousClient.GetAsync("/v1/oauth2/jwks", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); @@ -15508,10 +14858,10 @@ namespace Tribufu.Api /// Thrown when fails to make API call /// /// Index associated with the operation. - /// List<Account> - public List GetUserAccounts(string id, int operationIndex = 0) + /// List<ExternalAccount> + public List GetUserAccounts(string id, int operationIndex = 0) { - Tribufu.Client.ApiResponse> localVarResponse = GetUserAccountsWithHttpInfo(id); + Tribufu.Client.ApiResponse> localVarResponse = GetUserAccountsWithHttpInfo(id); return localVarResponse.Data; } @@ -15521,8 +14871,8 @@ namespace Tribufu.Api /// Thrown when fails to make API call /// /// Index associated with the operation. - /// ApiResponse of List<Account> - public Tribufu.Client.ApiResponse> GetUserAccountsWithHttpInfo(string id, int operationIndex = 0) + /// ApiResponse of List<ExternalAccount> + public Tribufu.Client.ApiResponse> GetUserAccountsWithHttpInfo(string id, int operationIndex = 0) { // verify the required parameter 'id' is set if (id == null) @@ -15558,14 +14908,9 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.GetUserAccounts"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request - var localVarResponse = this.Client.Get>("/v1/users/{id}/accounts", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Get>("/v1/users/{id}/accounts", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("GetUserAccounts", localVarResponse); @@ -15585,10 +14930,10 @@ namespace Tribufu.Api /// /// Index associated with the operation. /// Cancellation Token to cancel the request. - /// Task of List<Account> - public async System.Threading.Tasks.Task> GetUserAccountsAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + /// Task of List<ExternalAccount> + public async System.Threading.Tasks.Task> GetUserAccountsAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { - Tribufu.Client.ApiResponse> localVarResponse = await GetUserAccountsWithHttpInfoAsync(id, operationIndex, cancellationToken).ConfigureAwait(false); + Tribufu.Client.ApiResponse> localVarResponse = await GetUserAccountsWithHttpInfoAsync(id, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -15599,8 +14944,8 @@ namespace Tribufu.Api /// /// Index associated with the operation. /// Cancellation Token to cancel the request. - /// Task of ApiResponse (List<Account>) - public async System.Threading.Tasks.Task>> GetUserAccountsWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + /// Task of ApiResponse (List<ExternalAccount>) + public async System.Threading.Tasks.Task>> GetUserAccountsWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'id' is set if (id == null) @@ -15636,14 +14981,9 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.GetUserAccounts"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request - var localVarResponse = await this.AsynchronousClient.GetAsync>("/v1/users/{id}/accounts", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.GetAsync>("/v1/users/{id}/accounts", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -15713,11 +15053,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.GetUserFriends"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = this.Client.Get>("/v1/profiles/{id}/friends", localVarRequestOptions, this.Configuration); @@ -15791,11 +15126,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.GetUserFriends"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = await this.AsynchronousClient.GetAsync>("/v1/profiles/{id}/friends", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); @@ -15870,11 +15200,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.GetUserFriendsV1"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = this.Client.Get>("/v1/users/{id}/friends", localVarRequestOptions, this.Configuration); @@ -15950,11 +15275,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.GetUserFriendsV1"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = await this.AsynchronousClient.GetAsync>("/v1/users/{id}/friends", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); @@ -16027,11 +15347,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.GetUserGames"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = this.Client.Get>("/v1/profiles/{id}/games", localVarRequestOptions, this.Configuration); @@ -16105,11 +15420,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.GetUserGames"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = await this.AsynchronousClient.GetAsync>("/v1/profiles/{id}/games", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); @@ -16184,11 +15494,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.GetUserGamesV1"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = this.Client.Get>("/v1/users/{id}/games", localVarRequestOptions, this.Configuration); @@ -16264,11 +15569,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.GetUserGamesV1"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = await this.AsynchronousClient.GetAsync>("/v1/users/{id}/games", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); @@ -16341,11 +15641,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.GetUserGroups"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = this.Client.Get>("/v1/profiles/{id}/groups", localVarRequestOptions, this.Configuration); @@ -16419,11 +15714,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.GetUserGroups"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = await this.AsynchronousClient.GetAsync>("/v1/profiles/{id}/groups", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); @@ -16498,11 +15788,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.GetUserGroupsV1"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = this.Client.Get>("/v1/users/{id}/groups", localVarRequestOptions, this.Configuration); @@ -16578,11 +15863,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.GetUserGroupsV1"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = await this.AsynchronousClient.GetAsync>("/v1/users/{id}/groups", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); @@ -16646,11 +15926,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.GetUserInfo"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = this.Client.Get("/v1/oauth2/userinfo", localVarRequestOptions, this.Configuration); @@ -16715,11 +15990,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.GetUserInfo"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = await this.AsynchronousClient.GetAsync("/v1/oauth2/userinfo", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); @@ -16792,11 +16062,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.GetUserProfileById"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = this.Client.Get("/v1/profiles/{id}", localVarRequestOptions, this.Configuration); @@ -16870,11 +16135,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.GetUserProfileById"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = await this.AsynchronousClient.GetAsync("/v1/profiles/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); @@ -16949,11 +16209,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.GetUserProfileByIdV1"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = this.Client.Get("/v1/users/{id}", localVarRequestOptions, this.Configuration); @@ -17029,11 +16284,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.GetUserProfileByIdV1"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = await this.AsynchronousClient.GetAsync("/v1/users/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); @@ -17106,11 +16356,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.GetUserProfileByName"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = this.Client.Get("/v1/profiles/name/{name}", localVarRequestOptions, this.Configuration); @@ -17184,11 +16429,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.GetUserProfileByName"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = await this.AsynchronousClient.GetAsync("/v1/profiles/name/{name}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); @@ -17263,11 +16503,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.GetUserProfileByNameV1"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = this.Client.Get("/v1/users/name/{name}", localVarRequestOptions, this.Configuration); @@ -17343,11 +16578,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.GetUserProfileByNameV1"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = await this.AsynchronousClient.GetAsync("/v1/users/name/{name}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); @@ -17371,7 +16601,7 @@ namespace Tribufu.Api /// /// Index associated with the operation. /// Profile - public Profile GetUserProfileByUuid(Guid uuid, int operationIndex = 0) + public Profile GetUserProfileByUuid(string uuid, int operationIndex = 0) { Tribufu.Client.ApiResponse localVarResponse = GetUserProfileByUuidWithHttpInfo(uuid); return localVarResponse.Data; @@ -17384,8 +16614,14 @@ namespace Tribufu.Api /// /// Index associated with the operation. /// ApiResponse of Profile - public Tribufu.Client.ApiResponse GetUserProfileByUuidWithHttpInfo(Guid uuid, int operationIndex = 0) + public Tribufu.Client.ApiResponse GetUserProfileByUuidWithHttpInfo(string uuid, int operationIndex = 0) { + // verify the required parameter 'uuid' is set + if (uuid == null) + { + throw new Tribufu.Client.ApiException(400, "Missing required parameter 'uuid' when calling TribufuGeneratedApi->GetUserProfileByUuid"); + } + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { @@ -17414,11 +16650,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.GetUserProfileByUuid"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = this.Client.Get("/v1/profiles/uuid/{uuid}", localVarRequestOptions, this.Configuration); @@ -17442,7 +16673,7 @@ namespace Tribufu.Api /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of Profile - public async System.Threading.Tasks.Task GetUserProfileByUuidAsync(Guid uuid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task GetUserProfileByUuidAsync(string uuid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.ApiResponse localVarResponse = await GetUserProfileByUuidWithHttpInfoAsync(uuid, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -17456,8 +16687,14 @@ namespace Tribufu.Api /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (Profile) - public async System.Threading.Tasks.Task> GetUserProfileByUuidWithHttpInfoAsync(Guid uuid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> GetUserProfileByUuidWithHttpInfoAsync(string uuid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { + // verify the required parameter 'uuid' is set + if (uuid == null) + { + throw new Tribufu.Client.ApiException(400, "Missing required parameter 'uuid' when calling TribufuGeneratedApi->GetUserProfileByUuid"); + } + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); @@ -17486,11 +16723,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.GetUserProfileByUuid"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = await this.AsynchronousClient.GetAsync("/v1/profiles/uuid/{uuid}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); @@ -17515,7 +16747,7 @@ namespace Tribufu.Api /// Index associated with the operation. /// Profile [Obsolete] - public Profile GetUserProfileByUuidV1(Guid uuid, int operationIndex = 0) + public Profile GetUserProfileByUuidV1(string uuid, int operationIndex = 0) { Tribufu.Client.ApiResponse localVarResponse = GetUserProfileByUuidV1WithHttpInfo(uuid); return localVarResponse.Data; @@ -17529,8 +16761,14 @@ namespace Tribufu.Api /// Index associated with the operation. /// ApiResponse of Profile [Obsolete] - public Tribufu.Client.ApiResponse GetUserProfileByUuidV1WithHttpInfo(Guid uuid, int operationIndex = 0) + public Tribufu.Client.ApiResponse GetUserProfileByUuidV1WithHttpInfo(string uuid, int operationIndex = 0) { + // verify the required parameter 'uuid' is set + if (uuid == null) + { + throw new Tribufu.Client.ApiException(400, "Missing required parameter 'uuid' when calling TribufuGeneratedApi->GetUserProfileByUuidV1"); + } + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { @@ -17559,11 +16797,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.GetUserProfileByUuidV1"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = this.Client.Get("/v1/users/uuid/{uuid}", localVarRequestOptions, this.Configuration); @@ -17588,7 +16821,7 @@ namespace Tribufu.Api /// Cancellation Token to cancel the request. /// Task of Profile [Obsolete] - public async System.Threading.Tasks.Task GetUserProfileByUuidV1Async(Guid uuid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task GetUserProfileByUuidV1Async(string uuid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.ApiResponse localVarResponse = await GetUserProfileByUuidV1WithHttpInfoAsync(uuid, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -17603,8 +16836,14 @@ namespace Tribufu.Api /// Cancellation Token to cancel the request. /// Task of ApiResponse (Profile) [Obsolete] - public async System.Threading.Tasks.Task> GetUserProfileByUuidV1WithHttpInfoAsync(Guid uuid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> GetUserProfileByUuidV1WithHttpInfoAsync(string uuid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { + // verify the required parameter 'uuid' is set + if (uuid == null) + { + throw new Tribufu.Client.ApiException(400, "Missing required parameter 'uuid' when calling TribufuGeneratedApi->GetUserProfileByUuidV1"); + } + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); @@ -17633,11 +16872,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.GetUserProfileByUuidV1"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = await this.AsynchronousClient.GetAsync("/v1/users/uuid/{uuid}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); @@ -17713,11 +16947,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.GetUserProfiles"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = this.Client.Get>("/v1/profiles", localVarRequestOptions, this.Configuration); @@ -17794,11 +17023,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.GetUserProfiles"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = await this.AsynchronousClient.GetAsync>("/v1/profiles", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); @@ -17876,11 +17100,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.GetUserProfilesV1"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = this.Client.Get>("/v1/users", localVarRequestOptions, this.Configuration); @@ -17959,11 +17178,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.GetUserProfilesV1"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = await this.AsynchronousClient.GetAsync>("/v1/users", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); @@ -18036,11 +17250,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.GetUserSanctions"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = this.Client.Get>("/v1/profiles/{id}/sanctions", localVarRequestOptions, this.Configuration); @@ -18114,11 +17323,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.GetUserSanctions"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = await this.AsynchronousClient.GetAsync>("/v1/profiles/{id}/sanctions", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); @@ -18193,11 +17397,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.GetUserSanctionsV1"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = this.Client.Get>("/v1/users/{id}/sanctions", localVarRequestOptions, this.Configuration); @@ -18273,11 +17472,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.GetUserSanctionsV1"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = await this.AsynchronousClient.GetAsync>("/v1/users/{id}/sanctions", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); @@ -18362,11 +17556,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.GetUserServers"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = this.Client.Get>("/v1/profiles/{id}/servers", localVarRequestOptions, this.Configuration); @@ -18452,11 +17641,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.GetUserServers"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = await this.AsynchronousClient.GetAsync>("/v1/profiles/{id}/servers", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); @@ -18543,11 +17727,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.GetUserServersV1"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = this.Client.Get>("/v1/users/{id}/servers", localVarRequestOptions, this.Configuration); @@ -18635,11 +17814,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.GetUserServersV1"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = await this.AsynchronousClient.GetAsync>("/v1/users/{id}/servers", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); @@ -18707,11 +17881,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.HashArgon2"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = this.Client.Post("/v1/utils/argon2", localVarRequestOptions, this.Configuration); @@ -18780,11 +17949,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.HashArgon2"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = await this.AsynchronousClient.PostAsync("/v1/utils/argon2", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); @@ -18852,11 +18016,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.HashBcrypt"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = this.Client.Post("/v1/utils/bcrypt", localVarRequestOptions, this.Configuration); @@ -18925,11 +18084,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.HashBcrypt"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = await this.AsynchronousClient.PostAsync("/v1/utils/bcrypt", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); @@ -18997,11 +18151,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.HashMd5"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = this.Client.Post("/v1/utils/md5", localVarRequestOptions, this.Configuration); @@ -19070,11 +18219,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.HashMd5"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = await this.AsynchronousClient.PostAsync("/v1/utils/md5", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); @@ -19142,11 +18286,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.HashSha256"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = this.Client.Post("/v1/utils/sha256", localVarRequestOptions, this.Configuration); @@ -19215,11 +18354,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.HashSha256"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = await this.AsynchronousClient.PostAsync("/v1/utils/sha256", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); @@ -19288,11 +18422,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.IntrospectToken"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = this.Client.Post("/v1/oauth2/introspect", localVarRequestOptions, this.Configuration); @@ -19362,11 +18491,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.IntrospectToken"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = await this.AsynchronousClient.PostAsync("/v1/oauth2/introspect", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); @@ -19433,11 +18557,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.RevokeToken"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = this.Client.Post("/v1/oauth2/revoke", localVarRequestOptions, this.Configuration); @@ -19505,11 +18624,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.RevokeToken"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = await this.AsynchronousClient.PostAsync("/v1/oauth2/revoke", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); @@ -19577,11 +18691,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.Search"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = this.Client.Post>("/v1/search", localVarRequestOptions, this.Configuration); @@ -19650,11 +18759,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.Search"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = await this.AsynchronousClient.PostAsync>("/v1/search", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); @@ -19729,11 +18833,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.UpdateClient"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = this.Client.Put("/v1/oauth2/clients/{id}", localVarRequestOptions, this.Configuration); @@ -19809,11 +18908,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.UpdateClient"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = await this.AsynchronousClient.PutAsync("/v1/oauth2/clients/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); @@ -19888,11 +18982,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.UpdateGameServer"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = this.Client.Put("/v1/games/servers/{id}", localVarRequestOptions, this.Configuration); @@ -19968,11 +19057,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.UpdateGameServer"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = await this.AsynchronousClient.PutAsync("/v1/games/servers/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); @@ -20047,11 +19131,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.UpdateGameServerCluster"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = this.Client.Put("/v1/games/servers/clusters/{id}", localVarRequestOptions, this.Configuration); @@ -20127,11 +19206,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.UpdateGameServerCluster"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = await this.AsynchronousClient.PutAsync("/v1/games/servers/clusters/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); @@ -20208,11 +19282,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.UpdateGameServerClusterV1"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = this.Client.Put("/v1/clusters/{id}", localVarRequestOptions, this.Configuration); @@ -20290,11 +19359,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.UpdateGameServerClusterV1"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = await this.AsynchronousClient.PutAsync("/v1/clusters/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); @@ -20371,11 +19435,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.UpdateGameServerV1"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = this.Client.Put("/v1/servers/{id}", localVarRequestOptions, this.Configuration); @@ -20453,11 +19512,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.UpdateGameServerV1"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = await this.AsynchronousClient.PutAsync("/v1/servers/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); @@ -20532,11 +19586,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.UpdateGroup"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = this.Client.Put("/v1/groups/{id}", localVarRequestOptions, this.Configuration); @@ -20612,11 +19661,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.UpdateGroup"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = await this.AsynchronousClient.PutAsync("/v1/groups/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); @@ -20691,11 +19735,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.UpdatePackage"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = this.Client.Put("/v1/packages/{id}", localVarRequestOptions, this.Configuration); @@ -20771,11 +19810,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.UpdatePackage"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = await this.AsynchronousClient.PutAsync("/v1/packages/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); @@ -20852,11 +19886,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.UpdateUserProfile"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = this.Client.Put("/v1/profiles/{id}/profile", localVarRequestOptions, this.Configuration); @@ -20934,11 +19963,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.UpdateUserProfile"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = await this.AsynchronousClient.PutAsync("/v1/profiles/{id}/profile", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); @@ -21017,11 +20041,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.UpdateUserProfileV1"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = this.Client.Put("/v1/users/{id}/profile", localVarRequestOptions, this.Configuration); @@ -21101,11 +20120,6 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.UpdateUserProfileV1"; localVarRequestOptions.OperationIndex = operationIndex; - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } // make the HTTP request var localVarResponse = await this.AsynchronousClient.PutAsync("/v1/users/{id}/profile", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); diff --git a/src/Tribufu/Client/ApiClient.cs b/src/Tribufu/Client/ApiClient.cs index c259f8e..6e8b67c 100644 --- a/src/Tribufu/Client/ApiClient.cs +++ b/src/Tribufu/Client/ApiClient.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.3.0 + * The version of the OpenAPI document: 1.4.3 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Client/ApiException.cs b/src/Tribufu/Client/ApiException.cs index 711d390..496d053 100644 --- a/src/Tribufu/Client/ApiException.cs +++ b/src/Tribufu/Client/ApiException.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.3.0 + * The version of the OpenAPI document: 1.4.3 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Client/ApiResponse.cs b/src/Tribufu/Client/ApiResponse.cs index cd8b08c..b335d0a 100644 --- a/src/Tribufu/Client/ApiResponse.cs +++ b/src/Tribufu/Client/ApiResponse.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.3.0 + * The version of the OpenAPI document: 1.4.3 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Client/ClientUtils.cs b/src/Tribufu/Client/ClientUtils.cs index 1063213..a4a40ac 100644 --- a/src/Tribufu/Client/ClientUtils.cs +++ b/src/Tribufu/Client/ClientUtils.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.3.0 + * The version of the OpenAPI document: 1.4.3 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Client/Configuration.cs b/src/Tribufu/Client/Configuration.cs index c3c4843..bea1d2d 100644 --- a/src/Tribufu/Client/Configuration.cs +++ b/src/Tribufu/Client/Configuration.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.3.0 + * The version of the OpenAPI document: 1.4.3 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -540,7 +540,7 @@ namespace Tribufu.Client string report = "C# SDK (Tribufu) Debug Report:\n"; report += " OS: " + System.Environment.OSVersion + "\n"; report += " .NET Framework Version: " + System.Environment.Version + "\n"; - report += " Version of the API: 1.3.0\n"; + report += " Version of the API: 1.4.3\n"; report += " SDK Package Version: 1.0.0\n"; return report; diff --git a/src/Tribufu/Client/ExceptionFactory.cs b/src/Tribufu/Client/ExceptionFactory.cs index 34364a1..64d31e7 100644 --- a/src/Tribufu/Client/ExceptionFactory.cs +++ b/src/Tribufu/Client/ExceptionFactory.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.3.0 + * The version of the OpenAPI document: 1.4.3 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Client/GlobalConfiguration.cs b/src/Tribufu/Client/GlobalConfiguration.cs index ff0141b..21a4195 100644 --- a/src/Tribufu/Client/GlobalConfiguration.cs +++ b/src/Tribufu/Client/GlobalConfiguration.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.3.0 + * The version of the OpenAPI document: 1.4.3 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Client/HttpMethod.cs b/src/Tribufu/Client/HttpMethod.cs index ba76475..7df4f3a 100644 --- a/src/Tribufu/Client/HttpMethod.cs +++ b/src/Tribufu/Client/HttpMethod.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.3.0 + * The version of the OpenAPI document: 1.4.3 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Client/IApiAccessor.cs b/src/Tribufu/Client/IApiAccessor.cs index 33aa55a..7447d6a 100644 --- a/src/Tribufu/Client/IApiAccessor.cs +++ b/src/Tribufu/Client/IApiAccessor.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.3.0 + * The version of the OpenAPI document: 1.4.3 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Client/IAsynchronousClient.cs b/src/Tribufu/Client/IAsynchronousClient.cs index da592c5..429cbaa 100644 --- a/src/Tribufu/Client/IAsynchronousClient.cs +++ b/src/Tribufu/Client/IAsynchronousClient.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.3.0 + * The version of the OpenAPI document: 1.4.3 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Client/IReadableConfiguration.cs b/src/Tribufu/Client/IReadableConfiguration.cs index 7744557..fba571c 100644 --- a/src/Tribufu/Client/IReadableConfiguration.cs +++ b/src/Tribufu/Client/IReadableConfiguration.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.3.0 + * The version of the OpenAPI document: 1.4.3 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Client/ISynchronousClient.cs b/src/Tribufu/Client/ISynchronousClient.cs index c9445ae..a1cfb4f 100644 --- a/src/Tribufu/Client/ISynchronousClient.cs +++ b/src/Tribufu/Client/ISynchronousClient.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.3.0 + * The version of the OpenAPI document: 1.4.3 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Client/Multimap.cs b/src/Tribufu/Client/Multimap.cs index 00a8a45..a83d159 100644 --- a/src/Tribufu/Client/Multimap.cs +++ b/src/Tribufu/Client/Multimap.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.3.0 + * The version of the OpenAPI document: 1.4.3 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Client/OpenAPIDateConverter.cs b/src/Tribufu/Client/OpenAPIDateConverter.cs index 1391b28..4452f49 100644 --- a/src/Tribufu/Client/OpenAPIDateConverter.cs +++ b/src/Tribufu/Client/OpenAPIDateConverter.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.3.0 + * The version of the OpenAPI document: 1.4.3 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Client/RequestOptions.cs b/src/Tribufu/Client/RequestOptions.cs index 81d1f51..2a7cc7a 100644 --- a/src/Tribufu/Client/RequestOptions.cs +++ b/src/Tribufu/Client/RequestOptions.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.3.0 + * The version of the OpenAPI document: 1.4.3 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Client/RetryConfiguration.cs b/src/Tribufu/Client/RetryConfiguration.cs index 7b711fe..c7604ca 100644 --- a/src/Tribufu/Client/RetryConfiguration.cs +++ b/src/Tribufu/Client/RetryConfiguration.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.3.0 + * The version of the OpenAPI document: 1.4.3 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Model/AbstractOpenAPISchema.cs b/src/Tribufu/Model/AbstractOpenAPISchema.cs index a282223..0a5ee40 100644 --- a/src/Tribufu/Model/AbstractOpenAPISchema.cs +++ b/src/Tribufu/Model/AbstractOpenAPISchema.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.3.0 + * The version of the OpenAPI document: 1.4.3 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Model/Application.cs b/src/Tribufu/Model/Application.cs index 1d79518..ec6e6b8 100644 --- a/src/Tribufu/Model/Application.cs +++ b/src/Tribufu/Model/Application.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.3.0 + * The version of the OpenAPI document: 1.4.3 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -56,9 +56,10 @@ namespace Tribufu.Model /// capsuleImageUrl. /// libraryImageUrl. /// slug. - /// created. - /// updated. - public Application(string id = default(string), string name = default(string), string description = default(string), ApplicationType? type = default(ApplicationType?), string organizationId = default(string), string iconUrl = default(string), string bannerUrl = default(string), string capsuleImageUrl = default(string), string libraryImageUrl = default(string), string slug = default(string), DateTime created = default(DateTime), DateTime? updated = default(DateTime?)) + /// createdAt. + /// updatedAt. + /// deletedAt. + public Application(string id = default(string), string name = default(string), string description = default(string), ApplicationType? type = default(ApplicationType?), string organizationId = default(string), string iconUrl = default(string), string bannerUrl = default(string), string capsuleImageUrl = default(string), string libraryImageUrl = default(string), string slug = default(string), DateTime createdAt = default(DateTime), DateTime? updatedAt = default(DateTime?), DateTime? deletedAt = default(DateTime?)) { // to ensure "name" is required (not null) if (name == null) @@ -75,8 +76,9 @@ namespace Tribufu.Model this.CapsuleImageUrl = capsuleImageUrl; this.LibraryImageUrl = libraryImageUrl; this.Slug = slug; - this.Created = created; - this.Updated = updated; + this.CreatedAt = createdAt; + this.UpdatedAt = updatedAt; + this.DeletedAt = deletedAt; } /// @@ -100,7 +102,7 @@ namespace Tribufu.Model /// /// Gets or Sets OrganizationId /// - [DataMember(Name = "organization_id", EmitDefaultValue = true)] + [DataMember(Name = "organization_id", EmitDefaultValue = false)] public string OrganizationId { get; set; } /// @@ -134,16 +136,22 @@ namespace Tribufu.Model public string Slug { get; set; } /// - /// Gets or Sets Created + /// Gets or Sets CreatedAt /// - [DataMember(Name = "created", EmitDefaultValue = false)] - public DateTime Created { get; set; } + [DataMember(Name = "created_at", EmitDefaultValue = false)] + public DateTime CreatedAt { get; set; } /// - /// Gets or Sets Updated + /// Gets or Sets UpdatedAt /// - [DataMember(Name = "updated", EmitDefaultValue = true)] - public DateTime? Updated { get; set; } + [DataMember(Name = "updated_at", EmitDefaultValue = true)] + public DateTime? UpdatedAt { get; set; } + + /// + /// Gets or Sets DeletedAt + /// + [DataMember(Name = "deleted_at", EmitDefaultValue = true)] + public DateTime? DeletedAt { get; set; } /// /// Returns the string presentation of the object @@ -163,8 +171,9 @@ namespace Tribufu.Model sb.Append(" CapsuleImageUrl: ").Append(CapsuleImageUrl).Append("\n"); sb.Append(" LibraryImageUrl: ").Append(LibraryImageUrl).Append("\n"); sb.Append(" Slug: ").Append(Slug).Append("\n"); - sb.Append(" Created: ").Append(Created).Append("\n"); - sb.Append(" Updated: ").Append(Updated).Append("\n"); + sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); + sb.Append(" UpdatedAt: ").Append(UpdatedAt).Append("\n"); + sb.Append(" DeletedAt: ").Append(DeletedAt).Append("\n"); sb.Append("}\n"); return sb.ToString(); } diff --git a/src/Tribufu/Model/ApplicationType.cs b/src/Tribufu/Model/ApplicationType.cs index 2d2d38e..d3cd21f 100644 --- a/src/Tribufu/Model/ApplicationType.cs +++ b/src/Tribufu/Model/ApplicationType.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.3.0 + * The version of the OpenAPI document: 1.4.3 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -33,10 +33,10 @@ namespace Tribufu.Model public enum ApplicationType { /// - /// Enum Application for value: application + /// Enum Software for value: software /// - [EnumMember(Value = "application")] - Application, + [EnumMember(Value = "software")] + Software, /// /// Enum Game for value: game diff --git a/src/Tribufu/Model/AuthorizeRequest.cs b/src/Tribufu/Model/AuthorizeRequest.cs index 0b32301..6f9a8a3 100644 --- a/src/Tribufu/Model/AuthorizeRequest.cs +++ b/src/Tribufu/Model/AuthorizeRequest.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.3.0 + * The version of the OpenAPI document: 1.4.3 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Model/ClientInfo.cs b/src/Tribufu/Model/ClientInfo.cs index 3072473..51a15f2 100644 --- a/src/Tribufu/Model/ClientInfo.cs +++ b/src/Tribufu/Model/ClientInfo.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.3.0 + * The version of the OpenAPI document: 1.4.3 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Model/ClientType.cs b/src/Tribufu/Model/ClientType.cs index ff5b51e..b2acac7 100644 --- a/src/Tribufu/Model/ClientType.cs +++ b/src/Tribufu/Model/ClientType.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.3.0 + * The version of the OpenAPI document: 1.4.3 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Model/CodeChallengeMethod.cs b/src/Tribufu/Model/CodeChallengeMethod.cs index 3d9d8f7..6025fd8 100644 --- a/src/Tribufu/Model/CodeChallengeMethod.cs +++ b/src/Tribufu/Model/CodeChallengeMethod.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.3.0 + * The version of the OpenAPI document: 1.4.3 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Model/CodeResponse.cs b/src/Tribufu/Model/CodeResponse.cs index 04f8673..4619640 100644 --- a/src/Tribufu/Model/CodeResponse.cs +++ b/src/Tribufu/Model/CodeResponse.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.3.0 + * The version of the OpenAPI document: 1.4.3 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Model/CreateUser.cs b/src/Tribufu/Model/CreateUser.cs index f5ca14d..c8acf12 100644 --- a/src/Tribufu/Model/CreateUser.cs +++ b/src/Tribufu/Model/CreateUser.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.3.0 + * The version of the OpenAPI document: 1.4.3 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -49,7 +49,7 @@ namespace Tribufu.Model /// timezone. /// currency. /// ipAddress. - public CreateUser(Guid? uuid = default(Guid?), string name = default(string), string displayName = default(string), string email = default(string), string password = default(string), string language = default(string), string timezone = default(string), string currency = default(string), string ipAddress = default(string)) + public CreateUser(string uuid = default(string), string name = default(string), string displayName = default(string), string email = default(string), string password = default(string), string language = default(string), string timezone = default(string), string currency = default(string), string ipAddress = default(string)) { // to ensure "name" is required (not null) if (name == null) @@ -70,8 +70,8 @@ namespace Tribufu.Model /// /// Gets or Sets Uuid /// - [DataMember(Name = "uuid", EmitDefaultValue = true)] - public Guid? Uuid { get; set; } + [DataMember(Name = "uuid", EmitDefaultValue = false)] + public string Uuid { get; set; } /// /// Gets or Sets Name diff --git a/src/Tribufu/Model/CryptoViewModel.cs b/src/Tribufu/Model/CryptoViewModel.cs index 67a6248..5b563a2 100644 --- a/src/Tribufu/Model/CryptoViewModel.cs +++ b/src/Tribufu/Model/CryptoViewModel.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.3.0 + * The version of the OpenAPI document: 1.4.3 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Model/ExternalAccount.cs b/src/Tribufu/Model/ExternalAccount.cs new file mode 100644 index 0000000..f24245b --- /dev/null +++ b/src/Tribufu/Model/ExternalAccount.cs @@ -0,0 +1,177 @@ +/* + * Tribufu API + * + * API to access Tribufu services. + * + * The version of the OpenAPI document: 1.4.3 + * Contact: contact@tribufu.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = Tribufu.Client.OpenAPIDateConverter; + +namespace Tribufu.Model +{ + /// + /// ExternalAccount + /// + [DataContract(Name = "ExternalAccount")] + public partial class ExternalAccount : IValidatableObject + { + + /// + /// Gets or Sets Provider + /// + [DataMember(Name = "provider", IsRequired = true, EmitDefaultValue = true)] + public IdentityProviderType Provider { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected ExternalAccount() { } + /// + /// Initializes a new instance of the class. + /// + /// userId. + /// provider (required). + /// externalId (required). + /// name. + /// authorized. + /// fields. + /// createdAt. + /// updatedAt. + /// deletedAt. + public ExternalAccount(string userId = default(string), IdentityProviderType provider = default(IdentityProviderType), string externalId = default(string), string name = default(string), bool authorized = default(bool), Dictionary fields = default(Dictionary), DateTime createdAt = default(DateTime), DateTime? updatedAt = default(DateTime?), DateTime? deletedAt = default(DateTime?)) + { + this.Provider = provider; + // to ensure "externalId" is required (not null) + if (externalId == null) + { + throw new ArgumentNullException("externalId is a required property for ExternalAccount and cannot be null"); + } + this.ExternalId = externalId; + this.UserId = userId; + this.Name = name; + this.Authorized = authorized; + this.Fields = fields; + this.CreatedAt = createdAt; + this.UpdatedAt = updatedAt; + this.DeletedAt = deletedAt; + } + + /// + /// Gets or Sets UserId + /// + [DataMember(Name = "user_id", EmitDefaultValue = false)] + public string UserId { get; set; } + + /// + /// Gets or Sets ExternalId + /// + [DataMember(Name = "external_id", IsRequired = true, EmitDefaultValue = true)] + public string ExternalId { get; set; } + + /// + /// Gets or Sets Name + /// + [DataMember(Name = "name", EmitDefaultValue = true)] + public string Name { get; set; } + + /// + /// Gets or Sets Authorized + /// + [DataMember(Name = "authorized", EmitDefaultValue = true)] + public bool Authorized { get; set; } + + /// + /// Gets or Sets Fields + /// + [DataMember(Name = "fields", EmitDefaultValue = true)] + public Dictionary Fields { get; set; } + + /// + /// Gets or Sets CreatedAt + /// + [DataMember(Name = "created_at", EmitDefaultValue = false)] + public DateTime CreatedAt { get; set; } + + /// + /// Gets or Sets UpdatedAt + /// + [DataMember(Name = "updated_at", EmitDefaultValue = true)] + public DateTime? UpdatedAt { get; set; } + + /// + /// Gets or Sets DeletedAt + /// + [DataMember(Name = "deleted_at", EmitDefaultValue = true)] + public DateTime? DeletedAt { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class ExternalAccount {\n"); + sb.Append(" UserId: ").Append(UserId).Append("\n"); + sb.Append(" Provider: ").Append(Provider).Append("\n"); + sb.Append(" ExternalId: ").Append(ExternalId).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Authorized: ").Append(Authorized).Append("\n"); + sb.Append(" Fields: ").Append(Fields).Append("\n"); + sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); + sb.Append(" UpdatedAt: ").Append(UpdatedAt).Append("\n"); + sb.Append(" DeletedAt: ").Append(DeletedAt).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + // ExternalId (string) maxLength + if (this.ExternalId != null && this.ExternalId.Length > 45) + { + yield return new ValidationResult("Invalid value for ExternalId, length must be less than 45.", new [] { "ExternalId" }); + } + + // Name (string) maxLength + if (this.Name != null && this.Name.Length > 75) + { + yield return new ValidationResult("Invalid value for Name, length must be less than 75.", new [] { "Name" }); + } + + yield break; + } + } + +} diff --git a/src/Tribufu/Model/Game.cs b/src/Tribufu/Model/Game.cs index 922373d..638a09e 100644 --- a/src/Tribufu/Model/Game.cs +++ b/src/Tribufu/Model/Game.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.3.0 + * The version of the OpenAPI document: 1.4.3 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -56,8 +56,9 @@ namespace Tribufu.Model /// capsuleImageUrl. /// libraryImageUrl. /// slug. - /// created. - /// updated. + /// createdAt. + /// updatedAt. + /// deletedAt. /// enableServers. /// gamePort. /// queryPort. @@ -65,7 +66,7 @@ namespace Tribufu.Model /// gamedigId. /// steamAppId. /// steamServerAppId. - public Game(string id = default(string), string name = default(string), string description = default(string), ApplicationType? type = default(ApplicationType?), string organizationId = default(string), string iconUrl = default(string), string bannerUrl = default(string), string capsuleImageUrl = default(string), string libraryImageUrl = default(string), string slug = default(string), DateTime created = default(DateTime), DateTime? updated = default(DateTime?), bool enableServers = default(bool), int? gamePort = default(int?), int? queryPort = default(int?), int? rconPort = default(int?), string gamedigId = default(string), int? steamAppId = default(int?), int? steamServerAppId = default(int?)) + public Game(string id = default(string), string name = default(string), string description = default(string), ApplicationType? type = default(ApplicationType?), string organizationId = default(string), string iconUrl = default(string), string bannerUrl = default(string), string capsuleImageUrl = default(string), string libraryImageUrl = default(string), string slug = default(string), DateTime createdAt = default(DateTime), DateTime? updatedAt = default(DateTime?), DateTime? deletedAt = default(DateTime?), bool enableServers = default(bool), int? gamePort = default(int?), int? queryPort = default(int?), int? rconPort = default(int?), string gamedigId = default(string), int? steamAppId = default(int?), int? steamServerAppId = default(int?)) { // to ensure "name" is required (not null) if (name == null) @@ -82,8 +83,9 @@ namespace Tribufu.Model this.CapsuleImageUrl = capsuleImageUrl; this.LibraryImageUrl = libraryImageUrl; this.Slug = slug; - this.Created = created; - this.Updated = updated; + this.CreatedAt = createdAt; + this.UpdatedAt = updatedAt; + this.DeletedAt = deletedAt; this.EnableServers = enableServers; this.GamePort = gamePort; this.QueryPort = queryPort; @@ -114,7 +116,7 @@ namespace Tribufu.Model /// /// Gets or Sets OrganizationId /// - [DataMember(Name = "organization_id", EmitDefaultValue = true)] + [DataMember(Name = "organization_id", EmitDefaultValue = false)] public string OrganizationId { get; set; } /// @@ -148,16 +150,22 @@ namespace Tribufu.Model public string Slug { get; set; } /// - /// Gets or Sets Created + /// Gets or Sets CreatedAt /// - [DataMember(Name = "created", EmitDefaultValue = false)] - public DateTime Created { get; set; } + [DataMember(Name = "created_at", EmitDefaultValue = false)] + public DateTime CreatedAt { get; set; } /// - /// Gets or Sets Updated + /// Gets or Sets UpdatedAt /// - [DataMember(Name = "updated", EmitDefaultValue = true)] - public DateTime? Updated { get; set; } + [DataMember(Name = "updated_at", EmitDefaultValue = true)] + public DateTime? UpdatedAt { get; set; } + + /// + /// Gets or Sets DeletedAt + /// + [DataMember(Name = "deleted_at", EmitDefaultValue = true)] + public DateTime? DeletedAt { get; set; } /// /// Gets or Sets EnableServers @@ -219,8 +227,9 @@ namespace Tribufu.Model sb.Append(" CapsuleImageUrl: ").Append(CapsuleImageUrl).Append("\n"); sb.Append(" LibraryImageUrl: ").Append(LibraryImageUrl).Append("\n"); sb.Append(" Slug: ").Append(Slug).Append("\n"); - sb.Append(" Created: ").Append(Created).Append("\n"); - sb.Append(" Updated: ").Append(Updated).Append("\n"); + sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); + sb.Append(" UpdatedAt: ").Append(UpdatedAt).Append("\n"); + sb.Append(" DeletedAt: ").Append(DeletedAt).Append("\n"); sb.Append(" EnableServers: ").Append(EnableServers).Append("\n"); sb.Append(" GamePort: ").Append(GamePort).Append("\n"); sb.Append(" QueryPort: ").Append(QueryPort).Append("\n"); diff --git a/src/Tribufu/Model/GameServer.cs b/src/Tribufu/Model/GameServer.cs index a740f22..283a689 100644 --- a/src/Tribufu/Model/GameServer.cs +++ b/src/Tribufu/Model/GameServer.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.3.0 + * The version of the OpenAPI document: 1.4.3 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -59,9 +59,10 @@ namespace Tribufu.Model /// steam. /// discordServerId. /// youtubeVideoUrl. - /// created. - /// updated. - public GameServer(string id = default(string), string name = default(string), string description = default(string), string ownerId = default(string), string address = default(string), int queryPort = default(int), int? gamePort = default(int?), string map = default(string), string varVersion = default(string), string gameId = default(string), string gameIconUrl = default(string), string clusterId = default(string), string websiteUrl = default(string), string bannerUrl = default(string), double uptime = default(double), string country = default(string), bool steam = default(bool), string discordServerId = default(string), string youtubeVideoUrl = default(string), DateTime created = default(DateTime), DateTime? updated = default(DateTime?)) + /// createdAt. + /// updatedAt. + /// deletedAt. + public GameServer(string id = default(string), string name = default(string), string description = default(string), string ownerId = default(string), string address = default(string), int queryPort = default(int), int? gamePort = default(int?), string map = default(string), string varVersion = default(string), string gameId = default(string), string gameIconUrl = default(string), string clusterId = default(string), string websiteUrl = default(string), string bannerUrl = default(string), double uptime = default(double), string country = default(string), bool steam = default(bool), long? discordServerId = default(long?), string youtubeVideoUrl = default(string), DateTime createdAt = default(DateTime), DateTime? updatedAt = default(DateTime?), DateTime? deletedAt = default(DateTime?)) { // to ensure "name" is required (not null) if (name == null) @@ -92,8 +93,9 @@ namespace Tribufu.Model this.Steam = steam; this.DiscordServerId = discordServerId; this.YoutubeVideoUrl = youtubeVideoUrl; - this.Created = created; - this.Updated = updated; + this.CreatedAt = createdAt; + this.UpdatedAt = updatedAt; + this.DeletedAt = deletedAt; } /// @@ -117,7 +119,7 @@ namespace Tribufu.Model /// /// Gets or Sets OwnerId /// - [DataMember(Name = "owner_id", EmitDefaultValue = true)] + [DataMember(Name = "owner_id", EmitDefaultValue = false)] public string OwnerId { get; set; } /// @@ -165,7 +167,7 @@ namespace Tribufu.Model /// /// Gets or Sets ClusterId /// - [DataMember(Name = "cluster_id", EmitDefaultValue = true)] + [DataMember(Name = "cluster_id", EmitDefaultValue = false)] public string ClusterId { get; set; } /// @@ -202,7 +204,7 @@ namespace Tribufu.Model /// Gets or Sets DiscordServerId /// [DataMember(Name = "discord_server_id", EmitDefaultValue = true)] - public string DiscordServerId { get; set; } + public long? DiscordServerId { get; set; } /// /// Gets or Sets YoutubeVideoUrl @@ -211,16 +213,22 @@ namespace Tribufu.Model public string YoutubeVideoUrl { get; set; } /// - /// Gets or Sets Created + /// Gets or Sets CreatedAt /// - [DataMember(Name = "created", EmitDefaultValue = false)] - public DateTime Created { get; set; } + [DataMember(Name = "created_at", EmitDefaultValue = false)] + public DateTime CreatedAt { get; set; } /// - /// Gets or Sets Updated + /// Gets or Sets UpdatedAt /// - [DataMember(Name = "updated", EmitDefaultValue = true)] - public DateTime? Updated { get; set; } + [DataMember(Name = "updated_at", EmitDefaultValue = true)] + public DateTime? UpdatedAt { get; set; } + + /// + /// Gets or Sets DeletedAt + /// + [DataMember(Name = "deleted_at", EmitDefaultValue = true)] + public DateTime? DeletedAt { get; set; } /// /// Returns the string presentation of the object @@ -249,8 +257,9 @@ namespace Tribufu.Model sb.Append(" Steam: ").Append(Steam).Append("\n"); sb.Append(" DiscordServerId: ").Append(DiscordServerId).Append("\n"); sb.Append(" YoutubeVideoUrl: ").Append(YoutubeVideoUrl).Append("\n"); - sb.Append(" Created: ").Append(Created).Append("\n"); - sb.Append(" Updated: ").Append(Updated).Append("\n"); + sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); + sb.Append(" UpdatedAt: ").Append(UpdatedAt).Append("\n"); + sb.Append(" DeletedAt: ").Append(DeletedAt).Append("\n"); sb.Append("}\n"); return sb.ToString(); } diff --git a/src/Tribufu/Model/GameServerCluster.cs b/src/Tribufu/Model/GameServerCluster.cs index 6f27de9..8c93d83 100644 --- a/src/Tribufu/Model/GameServerCluster.cs +++ b/src/Tribufu/Model/GameServerCluster.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.3.0 + * The version of the OpenAPI document: 1.4.3 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -52,9 +52,10 @@ namespace Tribufu.Model /// tags. /// commentCount. /// serverCount. - /// created. - /// updated. - public GameServerCluster(string id = default(string), string name = default(string), string description = default(string), string gameId = default(string), string websiteUrl = default(string), string bannerUrl = default(string), string ownerId = default(string), string discordServerId = default(string), string youtubeVideoUrl = default(string), string tags = default(string), int commentCount = default(int), int serverCount = default(int), DateTime created = default(DateTime), DateTime? updated = default(DateTime?)) + /// createdAt. + /// updatedAt. + /// deletedAt. + public GameServerCluster(string id = default(string), string name = default(string), string description = default(string), string gameId = default(string), string websiteUrl = default(string), string bannerUrl = default(string), string ownerId = default(string), long? discordServerId = default(long?), string youtubeVideoUrl = default(string), string tags = default(string), int commentCount = default(int), int serverCount = default(int), DateTime createdAt = default(DateTime), DateTime? updatedAt = default(DateTime?), DateTime? deletedAt = default(DateTime?)) { // to ensure "name" is required (not null) if (name == null) @@ -73,8 +74,9 @@ namespace Tribufu.Model this.Tags = tags; this.CommentCount = commentCount; this.ServerCount = serverCount; - this.Created = created; - this.Updated = updated; + this.CreatedAt = createdAt; + this.UpdatedAt = updatedAt; + this.DeletedAt = deletedAt; } /// @@ -123,7 +125,7 @@ namespace Tribufu.Model /// Gets or Sets DiscordServerId /// [DataMember(Name = "discord_server_id", EmitDefaultValue = true)] - public string DiscordServerId { get; set; } + public long? DiscordServerId { get; set; } /// /// Gets or Sets YoutubeVideoUrl @@ -150,16 +152,22 @@ namespace Tribufu.Model public int ServerCount { get; set; } /// - /// Gets or Sets Created + /// Gets or Sets CreatedAt /// - [DataMember(Name = "created", EmitDefaultValue = false)] - public DateTime Created { get; set; } + [DataMember(Name = "created_at", EmitDefaultValue = false)] + public DateTime CreatedAt { get; set; } /// - /// Gets or Sets Updated + /// Gets or Sets UpdatedAt /// - [DataMember(Name = "updated", EmitDefaultValue = true)] - public DateTime? Updated { get; set; } + [DataMember(Name = "updated_at", EmitDefaultValue = true)] + public DateTime? UpdatedAt { get; set; } + + /// + /// Gets or Sets DeletedAt + /// + [DataMember(Name = "deleted_at", EmitDefaultValue = true)] + public DateTime? DeletedAt { get; set; } /// /// Returns the string presentation of the object @@ -181,8 +189,9 @@ namespace Tribufu.Model sb.Append(" Tags: ").Append(Tags).Append("\n"); sb.Append(" CommentCount: ").Append(CommentCount).Append("\n"); sb.Append(" ServerCount: ").Append(ServerCount).Append("\n"); - sb.Append(" Created: ").Append(Created).Append("\n"); - sb.Append(" Updated: ").Append(Updated).Append("\n"); + sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); + sb.Append(" UpdatedAt: ").Append(UpdatedAt).Append("\n"); + sb.Append(" DeletedAt: ").Append(DeletedAt).Append("\n"); sb.Append("}\n"); return sb.ToString(); } diff --git a/src/Tribufu/Model/GameServerQuery.cs b/src/Tribufu/Model/GameServerQuery.cs index f15549d..1b31d4d 100644 --- a/src/Tribufu/Model/GameServerQuery.cs +++ b/src/Tribufu/Model/GameServerQuery.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.3.0 + * The version of the OpenAPI document: 1.4.3 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -48,8 +48,8 @@ namespace Tribufu.Model /// currentPlayers. /// maxPlayers. /// motd. - /// created. - public GameServerQuery(string id = default(string), string serverId = default(string), GameServerStatus? status = default(GameServerStatus?), int ping = default(int), int currentPlayers = default(int), int maxPlayers = default(int), string motd = default(string), DateTime created = default(DateTime)) + /// createdAt. + public GameServerQuery(string id = default(string), string serverId = default(string), GameServerStatus? status = default(GameServerStatus?), int ping = default(int), int currentPlayers = default(int), int maxPlayers = default(int), string motd = default(string), DateTime createdAt = default(DateTime)) { this.Id = id; this.ServerId = serverId; @@ -58,7 +58,7 @@ namespace Tribufu.Model this.CurrentPlayers = currentPlayers; this.MaxPlayers = maxPlayers; this.Motd = motd; - this.Created = created; + this.CreatedAt = createdAt; } /// @@ -98,10 +98,10 @@ namespace Tribufu.Model public string Motd { get; set; } /// - /// Gets or Sets Created + /// Gets or Sets CreatedAt /// - [DataMember(Name = "created", EmitDefaultValue = false)] - public DateTime Created { get; set; } + [DataMember(Name = "created_at", EmitDefaultValue = false)] + public DateTime CreatedAt { get; set; } /// /// Returns the string presentation of the object @@ -118,7 +118,7 @@ namespace Tribufu.Model sb.Append(" CurrentPlayers: ").Append(CurrentPlayers).Append("\n"); sb.Append(" MaxPlayers: ").Append(MaxPlayers).Append("\n"); sb.Append(" Motd: ").Append(Motd).Append("\n"); - sb.Append(" Created: ").Append(Created).Append("\n"); + sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); sb.Append("}\n"); return sb.ToString(); } diff --git a/src/Tribufu/Model/GameServerStatus.cs b/src/Tribufu/Model/GameServerStatus.cs index aa74bea..35648e5 100644 --- a/src/Tribufu/Model/GameServerStatus.cs +++ b/src/Tribufu/Model/GameServerStatus.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.3.0 + * The version of the OpenAPI document: 1.4.3 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Model/GrantType.cs b/src/Tribufu/Model/GrantType.cs index 02ee64f..d371edc 100644 --- a/src/Tribufu/Model/GrantType.cs +++ b/src/Tribufu/Model/GrantType.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.3.0 + * The version of the OpenAPI document: 1.4.3 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Model/Group.cs b/src/Tribufu/Model/Group.cs index fad9de6..474f9ad 100644 --- a/src/Tribufu/Model/Group.cs +++ b/src/Tribufu/Model/Group.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.3.0 + * The version of the OpenAPI document: 1.4.3 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -54,9 +54,10 @@ namespace Tribufu.Model /// memberCount. /// followerCount. /// viewCount. - /// created. - /// updated. - public Group(string id = default(string), Guid uuid = default(Guid), string name = default(string), string tag = default(string), string description = default(string), int type = default(int), int privacy = default(int), string ownerId = default(string), bool verified = default(bool), string photoUrl = default(string), string bannerUrl = default(string), int memberCount = default(int), int followerCount = default(int), int viewCount = default(int), DateTime created = default(DateTime), DateTime? updated = default(DateTime?)) + /// createdAt. + /// updatedAt. + /// deletedAt. + public Group(string id = default(string), string uuid = default(string), string name = default(string), string tag = default(string), string description = default(string), int type = default(int), int privacy = default(int), string ownerId = default(string), bool verified = default(bool), string photoUrl = default(string), string bannerUrl = default(string), int memberCount = default(int), int followerCount = default(int), int viewCount = default(int), DateTime createdAt = default(DateTime), DateTime? updatedAt = default(DateTime?), DateTime? deletedAt = default(DateTime?)) { // to ensure "name" is required (not null) if (name == null) @@ -77,8 +78,9 @@ namespace Tribufu.Model this.MemberCount = memberCount; this.FollowerCount = followerCount; this.ViewCount = viewCount; - this.Created = created; - this.Updated = updated; + this.CreatedAt = createdAt; + this.UpdatedAt = updatedAt; + this.DeletedAt = deletedAt; } /// @@ -91,7 +93,7 @@ namespace Tribufu.Model /// Gets or Sets Uuid /// [DataMember(Name = "uuid", EmitDefaultValue = false)] - public Guid Uuid { get; set; } + public string Uuid { get; set; } /// /// Gets or Sets Name @@ -166,16 +168,22 @@ namespace Tribufu.Model public int ViewCount { get; set; } /// - /// Gets or Sets Created + /// Gets or Sets CreatedAt /// - [DataMember(Name = "created", EmitDefaultValue = false)] - public DateTime Created { get; set; } + [DataMember(Name = "created_at", EmitDefaultValue = false)] + public DateTime CreatedAt { get; set; } /// - /// Gets or Sets Updated + /// Gets or Sets UpdatedAt /// - [DataMember(Name = "updated", EmitDefaultValue = true)] - public DateTime? Updated { get; set; } + [DataMember(Name = "updated_at", EmitDefaultValue = true)] + public DateTime? UpdatedAt { get; set; } + + /// + /// Gets or Sets DeletedAt + /// + [DataMember(Name = "deleted_at", EmitDefaultValue = true)] + public DateTime? DeletedAt { get; set; } /// /// Returns the string presentation of the object @@ -199,8 +207,9 @@ namespace Tribufu.Model sb.Append(" MemberCount: ").Append(MemberCount).Append("\n"); sb.Append(" FollowerCount: ").Append(FollowerCount).Append("\n"); sb.Append(" ViewCount: ").Append(ViewCount).Append("\n"); - sb.Append(" Created: ").Append(Created).Append("\n"); - sb.Append(" Updated: ").Append(Updated).Append("\n"); + sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); + sb.Append(" UpdatedAt: ").Append(UpdatedAt).Append("\n"); + sb.Append(" DeletedAt: ").Append(DeletedAt).Append("\n"); sb.Append("}\n"); return sb.ToString(); } diff --git a/src/Tribufu/Model/GroupApplication.cs b/src/Tribufu/Model/GroupApplication.cs index b3bb03e..50011a4 100644 --- a/src/Tribufu/Model/GroupApplication.cs +++ b/src/Tribufu/Model/GroupApplication.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.3.0 + * The version of the OpenAPI document: 1.4.3 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Model/GroupMember.cs b/src/Tribufu/Model/GroupMember.cs index 712d109..dc7c3e0 100644 --- a/src/Tribufu/Model/GroupMember.cs +++ b/src/Tribufu/Model/GroupMember.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.3.0 + * The version of the OpenAPI document: 1.4.3 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -42,23 +42,17 @@ namespace Tribufu.Model /// Initializes a new instance of the class. /// /// id. - /// uuid. /// name. /// displayName. - /// verified. /// photoUrl. - /// lastOnline. /// rank. /// since. - public GroupMember(string id = default(string), Guid uuid = default(Guid), string name = default(string), string displayName = default(string), bool verified = default(bool), string photoUrl = default(string), DateTime? lastOnline = default(DateTime?), GroupRank? rank = default(GroupRank?), DateTime since = default(DateTime)) + public GroupMember(string id = default(string), string name = default(string), string displayName = default(string), string photoUrl = default(string), GroupRank? rank = default(GroupRank?), DateTime since = default(DateTime)) { this.Id = id; - this.Uuid = uuid; this.Name = name; this.DisplayName = displayName; - this.Verified = verified; this.PhotoUrl = photoUrl; - this.LastOnline = lastOnline; this.Rank = rank; this.Since = since; } @@ -69,12 +63,6 @@ namespace Tribufu.Model [DataMember(Name = "id", EmitDefaultValue = false)] public string Id { get; set; } - /// - /// Gets or Sets Uuid - /// - [DataMember(Name = "uuid", EmitDefaultValue = false)] - public Guid Uuid { get; set; } - /// /// Gets or Sets Name /// @@ -87,24 +75,12 @@ namespace Tribufu.Model [DataMember(Name = "display_name", EmitDefaultValue = true)] public string DisplayName { get; set; } - /// - /// Gets or Sets Verified - /// - [DataMember(Name = "verified", EmitDefaultValue = true)] - public bool Verified { get; set; } - /// /// Gets or Sets PhotoUrl /// [DataMember(Name = "photo_url", EmitDefaultValue = true)] public string PhotoUrl { get; set; } - /// - /// Gets or Sets LastOnline - /// - [DataMember(Name = "last_online", EmitDefaultValue = true)] - public DateTime? LastOnline { get; set; } - /// /// Gets or Sets Since /// @@ -120,12 +96,9 @@ namespace Tribufu.Model StringBuilder sb = new StringBuilder(); sb.Append("class GroupMember {\n"); sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" Uuid: ").Append(Uuid).Append("\n"); sb.Append(" Name: ").Append(Name).Append("\n"); sb.Append(" DisplayName: ").Append(DisplayName).Append("\n"); - sb.Append(" Verified: ").Append(Verified).Append("\n"); sb.Append(" PhotoUrl: ").Append(PhotoUrl).Append("\n"); - sb.Append(" LastOnline: ").Append(LastOnline).Append("\n"); sb.Append(" Rank: ").Append(Rank).Append("\n"); sb.Append(" Since: ").Append(Since).Append("\n"); sb.Append("}\n"); diff --git a/src/Tribufu/Model/GroupRank.cs b/src/Tribufu/Model/GroupRank.cs index 8df4b81..fd13361 100644 --- a/src/Tribufu/Model/GroupRank.cs +++ b/src/Tribufu/Model/GroupRank.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.3.0 + * The version of the OpenAPI document: 1.4.3 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Model/HashViewModel.cs b/src/Tribufu/Model/HashViewModel.cs index 89cc955..3879813 100644 --- a/src/Tribufu/Model/HashViewModel.cs +++ b/src/Tribufu/Model/HashViewModel.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.3.0 + * The version of the OpenAPI document: 1.4.3 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Model/IdentityProviderType.cs b/src/Tribufu/Model/IdentityProviderType.cs new file mode 100644 index 0000000..9c8de06 --- /dev/null +++ b/src/Tribufu/Model/IdentityProviderType.cs @@ -0,0 +1,78 @@ +/* + * Tribufu API + * + * API to access Tribufu services. + * + * The version of the OpenAPI document: 1.4.3 + * Contact: contact@tribufu.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = Tribufu.Client.OpenAPIDateConverter; + +namespace Tribufu.Model +{ + /// + /// Defines IdentityProviderType + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum IdentityProviderType + { + /// + /// Enum Steam for value: steam + /// + [EnumMember(Value = "steam")] + Steam, + + /// + /// Enum Epic for value: epic + /// + [EnumMember(Value = "epic")] + Epic, + + /// + /// Enum Discord for value: discord + /// + [EnumMember(Value = "discord")] + Discord, + + /// + /// Enum Microsoft for value: microsoft + /// + [EnumMember(Value = "microsoft")] + Microsoft, + + /// + /// Enum Playstation for value: playstation + /// + [EnumMember(Value = "playstation")] + Playstation, + + /// + /// Enum Google for value: google + /// + [EnumMember(Value = "google")] + Google, + + /// + /// Enum Apple for value: apple + /// + [EnumMember(Value = "apple")] + Apple + } + +} diff --git a/src/Tribufu/Model/IntrospectRequest.cs b/src/Tribufu/Model/IntrospectRequest.cs index 0b5b3ad..b5dc838 100644 --- a/src/Tribufu/Model/IntrospectRequest.cs +++ b/src/Tribufu/Model/IntrospectRequest.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.3.0 + * The version of the OpenAPI document: 1.4.3 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Model/IntrospectResponse.cs b/src/Tribufu/Model/IntrospectResponse.cs index efc09af..27e0482 100644 --- a/src/Tribufu/Model/IntrospectResponse.cs +++ b/src/Tribufu/Model/IntrospectResponse.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.3.0 + * The version of the OpenAPI document: 1.4.3 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Model/IpAddress.cs b/src/Tribufu/Model/IpAddress.cs index ae097f1..1aaafa4 100644 --- a/src/Tribufu/Model/IpAddress.cs +++ b/src/Tribufu/Model/IpAddress.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.3.0 + * The version of the OpenAPI document: 1.4.3 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Model/LeaderboardItem.cs b/src/Tribufu/Model/LeaderboardItem.cs index f57f8f9..0222cb9 100644 --- a/src/Tribufu/Model/LeaderboardItem.cs +++ b/src/Tribufu/Model/LeaderboardItem.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.3.0 + * The version of the OpenAPI document: 1.4.3 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Model/LeaderboardOrder.cs b/src/Tribufu/Model/LeaderboardOrder.cs index db059a8..b0ec474 100644 --- a/src/Tribufu/Model/LeaderboardOrder.cs +++ b/src/Tribufu/Model/LeaderboardOrder.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.3.0 + * The version of the OpenAPI document: 1.4.3 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Model/ModelClient.cs b/src/Tribufu/Model/ModelClient.cs index 1ea8a92..5ca9c5a 100644 --- a/src/Tribufu/Model/ModelClient.cs +++ b/src/Tribufu/Model/ModelClient.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.3.0 + * The version of the OpenAPI document: 1.4.3 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -56,9 +56,10 @@ namespace Tribufu.Model /// backgroundUrl. /// redirects. /// scopes. - /// created. - /// updated. - public ModelClient(string id = default(string), string name = default(string), ClientType? type = default(ClientType?), string organizationId = default(string), bool trusted = default(bool), string websiteUrl = default(string), string photoUrl = default(string), string backgroundUrl = default(string), string redirects = default(string), string scopes = default(string), DateTime created = default(DateTime), DateTime? updated = default(DateTime?)) + /// createdAt. + /// updatedAt. + /// deletedAt. + public ModelClient(string id = default(string), string name = default(string), ClientType? type = default(ClientType?), string organizationId = default(string), bool trusted = default(bool), string websiteUrl = default(string), string photoUrl = default(string), string backgroundUrl = default(string), string redirects = default(string), string scopes = default(string), DateTime createdAt = default(DateTime), DateTime? updatedAt = default(DateTime?), DateTime? deletedAt = default(DateTime?)) { // to ensure "name" is required (not null) if (name == null) @@ -75,8 +76,9 @@ namespace Tribufu.Model this.BackgroundUrl = backgroundUrl; this.Redirects = redirects; this.Scopes = scopes; - this.Created = created; - this.Updated = updated; + this.CreatedAt = createdAt; + this.UpdatedAt = updatedAt; + this.DeletedAt = deletedAt; } /// @@ -148,16 +150,22 @@ namespace Tribufu.Model return false; } /// - /// Gets or Sets Created + /// Gets or Sets CreatedAt /// - [DataMember(Name = "created", EmitDefaultValue = false)] - public DateTime Created { get; set; } + [DataMember(Name = "created_at", EmitDefaultValue = false)] + public DateTime CreatedAt { get; set; } /// - /// Gets or Sets Updated + /// Gets or Sets UpdatedAt /// - [DataMember(Name = "updated", EmitDefaultValue = true)] - public DateTime? Updated { get; set; } + [DataMember(Name = "updated_at", EmitDefaultValue = true)] + public DateTime? UpdatedAt { get; set; } + + /// + /// Gets or Sets DeletedAt + /// + [DataMember(Name = "deleted_at", EmitDefaultValue = true)] + public DateTime? DeletedAt { get; set; } /// /// Returns the string presentation of the object @@ -178,8 +186,9 @@ namespace Tribufu.Model sb.Append(" Redirects: ").Append(Redirects).Append("\n"); sb.Append(" Scopes: ").Append(Scopes).Append("\n"); sb.Append(" Permissions: ").Append(Permissions).Append("\n"); - sb.Append(" Created: ").Append(Created).Append("\n"); - sb.Append(" Updated: ").Append(Updated).Append("\n"); + sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); + sb.Append(" UpdatedAt: ").Append(UpdatedAt).Append("\n"); + sb.Append(" DeletedAt: ").Append(DeletedAt).Append("\n"); sb.Append("}\n"); return sb.ToString(); } diff --git a/src/Tribufu/Model/Package.cs b/src/Tribufu/Model/Package.cs index 9170aa1..d48442a 100644 --- a/src/Tribufu/Model/Package.cs +++ b/src/Tribufu/Model/Package.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.3.0 + * The version of the OpenAPI document: 1.4.3 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -50,9 +50,10 @@ namespace Tribufu.Model /// downloadCount. /// lastDownload. /// releases. - /// created. - /// updated. - public Package(string id = default(string), string name = default(string), string description = default(string), string authorId = default(string), string imageUrl = default(string), string applicationId = default(string), string categoryId = default(string), int downloadCount = default(int), DateTime? lastDownload = default(DateTime?), List releases = default(List), DateTime created = default(DateTime), DateTime? updated = default(DateTime?)) + /// createdAt. + /// updatedAt. + /// deletedAt. + public Package(string id = default(string), string name = default(string), string description = default(string), string authorId = default(string), string imageUrl = default(string), string applicationId = default(string), string categoryId = default(string), int downloadCount = default(int), DateTime? lastDownload = default(DateTime?), List releases = default(List), DateTime createdAt = default(DateTime), DateTime? updatedAt = default(DateTime?), DateTime? deletedAt = default(DateTime?)) { // to ensure "name" is required (not null) if (name == null) @@ -74,8 +75,9 @@ namespace Tribufu.Model this.DownloadCount = downloadCount; this.LastDownload = lastDownload; this.Releases = releases; - this.Created = created; - this.Updated = updated; + this.CreatedAt = createdAt; + this.UpdatedAt = updatedAt; + this.DeletedAt = deletedAt; } /// @@ -111,13 +113,13 @@ namespace Tribufu.Model /// /// Gets or Sets ApplicationId /// - [DataMember(Name = "application_id", EmitDefaultValue = true)] + [DataMember(Name = "application_id", EmitDefaultValue = false)] public string ApplicationId { get; set; } /// /// Gets or Sets CategoryId /// - [DataMember(Name = "category_id", EmitDefaultValue = true)] + [DataMember(Name = "category_id", EmitDefaultValue = false)] public string CategoryId { get; set; } /// @@ -139,16 +141,22 @@ namespace Tribufu.Model public List Releases { get; set; } /// - /// Gets or Sets Created + /// Gets or Sets CreatedAt /// - [DataMember(Name = "created", EmitDefaultValue = false)] - public DateTime Created { get; set; } + [DataMember(Name = "created_at", EmitDefaultValue = false)] + public DateTime CreatedAt { get; set; } /// - /// Gets or Sets Updated + /// Gets or Sets UpdatedAt /// - [DataMember(Name = "updated", EmitDefaultValue = true)] - public DateTime? Updated { get; set; } + [DataMember(Name = "updated_at", EmitDefaultValue = true)] + public DateTime? UpdatedAt { get; set; } + + /// + /// Gets or Sets DeletedAt + /// + [DataMember(Name = "deleted_at", EmitDefaultValue = true)] + public DateTime? DeletedAt { get; set; } /// /// Returns the string presentation of the object @@ -168,8 +176,9 @@ namespace Tribufu.Model sb.Append(" DownloadCount: ").Append(DownloadCount).Append("\n"); sb.Append(" LastDownload: ").Append(LastDownload).Append("\n"); sb.Append(" Releases: ").Append(Releases).Append("\n"); - sb.Append(" Created: ").Append(Created).Append("\n"); - sb.Append(" Updated: ").Append(Updated).Append("\n"); + sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); + sb.Append(" UpdatedAt: ").Append(UpdatedAt).Append("\n"); + sb.Append(" DeletedAt: ").Append(DeletedAt).Append("\n"); sb.Append("}\n"); return sb.ToString(); } diff --git a/src/Tribufu/Model/PackageRelease.cs b/src/Tribufu/Model/PackageRelease.cs index da09596..4052067 100644 --- a/src/Tribufu/Model/PackageRelease.cs +++ b/src/Tribufu/Model/PackageRelease.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.3.0 + * The version of the OpenAPI document: 1.4.3 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -44,9 +44,10 @@ namespace Tribufu.Model /// varVersion (required). /// packageId. /// notes. - /// created. - /// updated. - public PackageRelease(string id = default(string), string varVersion = default(string), string packageId = default(string), string notes = default(string), DateTime created = default(DateTime), DateTime? updated = default(DateTime?)) + /// createdAt. + /// updatedAt. + /// deletedAt. + public PackageRelease(string id = default(string), string varVersion = default(string), string packageId = default(string), string notes = default(string), DateTime createdAt = default(DateTime), DateTime? updatedAt = default(DateTime?), DateTime? deletedAt = default(DateTime?)) { // to ensure "varVersion" is required (not null) if (varVersion == null) @@ -57,8 +58,9 @@ namespace Tribufu.Model this.Id = id; this.PackageId = packageId; this.Notes = notes; - this.Created = created; - this.Updated = updated; + this.CreatedAt = createdAt; + this.UpdatedAt = updatedAt; + this.DeletedAt = deletedAt; } /// @@ -100,16 +102,22 @@ namespace Tribufu.Model return false; } /// - /// Gets or Sets Created + /// Gets or Sets CreatedAt /// - [DataMember(Name = "created", EmitDefaultValue = false)] - public DateTime Created { get; set; } + [DataMember(Name = "created_at", EmitDefaultValue = false)] + public DateTime CreatedAt { get; set; } /// - /// Gets or Sets Updated + /// Gets or Sets UpdatedAt /// - [DataMember(Name = "updated", EmitDefaultValue = true)] - public DateTime? Updated { get; set; } + [DataMember(Name = "updated_at", EmitDefaultValue = true)] + public DateTime? UpdatedAt { get; set; } + + /// + /// Gets or Sets DeletedAt + /// + [DataMember(Name = "deleted_at", EmitDefaultValue = true)] + public DateTime? DeletedAt { get; set; } /// /// Returns the string presentation of the object @@ -124,8 +132,9 @@ namespace Tribufu.Model sb.Append(" PackageId: ").Append(PackageId).Append("\n"); sb.Append(" Notes: ").Append(Notes).Append("\n"); sb.Append(" Files: ").Append(Files).Append("\n"); - sb.Append(" Created: ").Append(Created).Append("\n"); - sb.Append(" Updated: ").Append(Updated).Append("\n"); + sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); + sb.Append(" UpdatedAt: ").Append(UpdatedAt).Append("\n"); + sb.Append(" DeletedAt: ").Append(DeletedAt).Append("\n"); sb.Append("}\n"); return sb.ToString(); } diff --git a/src/Tribufu/Model/Product.cs b/src/Tribufu/Model/Product.cs index 15e373b..e8ca8b0 100644 --- a/src/Tribufu/Model/Product.cs +++ b/src/Tribufu/Model/Product.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.3.0 + * The version of the OpenAPI document: 1.4.3 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -48,15 +48,16 @@ namespace Tribufu.Model /// /// id. /// name (required). + /// sku. /// description. /// type. /// slug. /// imageUrl. - /// isPhysical. /// prices. - /// created. - /// updated. - public Product(string id = default(string), string name = default(string), string description = default(string), ProductType? type = default(ProductType?), string slug = default(string), string imageUrl = default(string), bool isPhysical = default(bool), List prices = default(List), DateTime created = default(DateTime), DateTime? updated = default(DateTime?)) + /// createdAt. + /// updatedAt. + /// deletedAt. + public Product(string id = default(string), string name = default(string), string sku = default(string), string description = default(string), ProductType? type = default(ProductType?), string slug = default(string), string imageUrl = default(string), List prices = default(List), DateTime createdAt = default(DateTime), DateTime? updatedAt = default(DateTime?), DateTime? deletedAt = default(DateTime?)) { // to ensure "name" is required (not null) if (name == null) @@ -65,14 +66,15 @@ namespace Tribufu.Model } this.Name = name; this.Id = id; + this.Sku = sku; this.Description = description; this.Type = type; this.Slug = slug; this.ImageUrl = imageUrl; - this.IsPhysical = isPhysical; this.Prices = prices; - this.Created = created; - this.Updated = updated; + this.CreatedAt = createdAt; + this.UpdatedAt = updatedAt; + this.DeletedAt = deletedAt; } /// @@ -87,6 +89,12 @@ namespace Tribufu.Model [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] public string Name { get; set; } + /// + /// Gets or Sets Sku + /// + [DataMember(Name = "sku", EmitDefaultValue = true)] + public string Sku { get; set; } + /// /// Gets or Sets Description /// @@ -105,12 +113,6 @@ namespace Tribufu.Model [DataMember(Name = "image_url", EmitDefaultValue = true)] public string ImageUrl { get; set; } - /// - /// Gets or Sets IsPhysical - /// - [DataMember(Name = "is_physical", EmitDefaultValue = true)] - public bool IsPhysical { get; set; } - /// /// Gets or Sets Prices /// @@ -118,16 +120,22 @@ namespace Tribufu.Model public List Prices { get; set; } /// - /// Gets or Sets Created + /// Gets or Sets CreatedAt /// - [DataMember(Name = "created", EmitDefaultValue = false)] - public DateTime Created { get; set; } + [DataMember(Name = "created_at", EmitDefaultValue = false)] + public DateTime CreatedAt { get; set; } /// - /// Gets or Sets Updated + /// Gets or Sets UpdatedAt /// - [DataMember(Name = "updated", EmitDefaultValue = true)] - public DateTime? Updated { get; set; } + [DataMember(Name = "updated_at", EmitDefaultValue = true)] + public DateTime? UpdatedAt { get; set; } + + /// + /// Gets or Sets DeletedAt + /// + [DataMember(Name = "deleted_at", EmitDefaultValue = true)] + public DateTime? DeletedAt { get; set; } /// /// Returns the string presentation of the object @@ -139,14 +147,15 @@ namespace Tribufu.Model sb.Append("class Product {\n"); sb.Append(" Id: ").Append(Id).Append("\n"); sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Sku: ").Append(Sku).Append("\n"); sb.Append(" Description: ").Append(Description).Append("\n"); sb.Append(" Type: ").Append(Type).Append("\n"); sb.Append(" Slug: ").Append(Slug).Append("\n"); sb.Append(" ImageUrl: ").Append(ImageUrl).Append("\n"); - sb.Append(" IsPhysical: ").Append(IsPhysical).Append("\n"); sb.Append(" Prices: ").Append(Prices).Append("\n"); - sb.Append(" Created: ").Append(Created).Append("\n"); - sb.Append(" Updated: ").Append(Updated).Append("\n"); + sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); + sb.Append(" UpdatedAt: ").Append(UpdatedAt).Append("\n"); + sb.Append(" DeletedAt: ").Append(DeletedAt).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -173,6 +182,12 @@ namespace Tribufu.Model yield return new ValidationResult("Invalid value for Name, length must be less than 75.", new [] { "Name" }); } + // Sku (string) maxLength + if (this.Sku != null && this.Sku.Length > 75) + { + yield return new ValidationResult("Invalid value for Sku, length must be less than 75.", new [] { "Sku" }); + } + // Slug (string) maxLength if (this.Slug != null && this.Slug.Length > 75) { diff --git a/src/Tribufu/Model/ProductPrice.cs b/src/Tribufu/Model/ProductPrice.cs index 8730a2f..a01ebea 100644 --- a/src/Tribufu/Model/ProductPrice.cs +++ b/src/Tribufu/Model/ProductPrice.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.3.0 + * The version of the OpenAPI document: 1.4.3 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -41,9 +41,9 @@ namespace Tribufu.Model /// Initializes a new instance of the class. /// /// currency (required). - /// amount. + /// price. /// renewal. - public ProductPrice(string currency = default(string), double amount = default(double), double? renewal = default(double?)) + public ProductPrice(string currency = default(string), double price = default(double), double? renewal = default(double?)) { // to ensure "currency" is required (not null) if (currency == null) @@ -51,7 +51,7 @@ namespace Tribufu.Model throw new ArgumentNullException("currency is a required property for ProductPrice and cannot be null"); } this.Currency = currency; - this.Amount = amount; + this.Price = price; this.Renewal = renewal; } @@ -62,10 +62,10 @@ namespace Tribufu.Model public string Currency { get; set; } /// - /// Gets or Sets Amount + /// Gets or Sets Price /// - [DataMember(Name = "amount", EmitDefaultValue = false)] - public double Amount { get; set; } + [DataMember(Name = "price", EmitDefaultValue = false)] + public double Price { get; set; } /// /// Gets or Sets Renewal @@ -82,7 +82,7 @@ namespace Tribufu.Model StringBuilder sb = new StringBuilder(); sb.Append("class ProductPrice {\n"); sb.Append(" Currency: ").Append(Currency).Append("\n"); - sb.Append(" Amount: ").Append(Amount).Append("\n"); + sb.Append(" Price: ").Append(Price).Append("\n"); sb.Append(" Renewal: ").Append(Renewal).Append("\n"); sb.Append("}\n"); return sb.ToString(); diff --git a/src/Tribufu/Model/ProductType.cs b/src/Tribufu/Model/ProductType.cs index 5a9f8e6..a75e466 100644 --- a/src/Tribufu/Model/ProductType.cs +++ b/src/Tribufu/Model/ProductType.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.3.0 + * The version of the OpenAPI document: 1.4.3 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Model/Profile.cs b/src/Tribufu/Model/Profile.cs index 9b5a469..02724d5 100644 --- a/src/Tribufu/Model/Profile.cs +++ b/src/Tribufu/Model/Profile.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.3.0 + * The version of the OpenAPI document: 1.4.3 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -35,155 +35,194 @@ namespace Tribufu.Model /// /// Initializes a new instance of the class. /// - /// id. - /// uuid. - /// name. - /// displayName. - /// verified. - /// level. - /// experience. - /// publicBirthday. - /// birthday. - /// points. - /// location. - /// photoUrl. - /// bannerUrl. - /// lastOnline. - /// biography. - /// viewCount. - /// created. - /// updated. - public Profile(string id = default(string), Guid uuid = default(Guid), string name = default(string), string displayName = default(string), bool verified = default(bool), int level = default(int), double experience = default(double), bool publicBirthday = default(bool), DateTime? birthday = default(DateTime?), double points = default(double), string location = default(string), string photoUrl = default(string), string bannerUrl = default(string), DateTime? lastOnline = default(DateTime?), string biography = default(string), int viewCount = default(int), DateTime created = default(DateTime), DateTime? updated = default(DateTime?)) + [JsonConstructorAttribute] + public Profile() { - this.Id = id; - this.Uuid = uuid; - this.Name = name; - this.DisplayName = displayName; - this.Verified = verified; - this.Level = level; - this.Experience = experience; - this.PublicBirthday = publicBirthday; - this.Birthday = birthday; - this.Points = points; - this.Location = location; - this.PhotoUrl = photoUrl; - this.BannerUrl = bannerUrl; - this.LastOnline = lastOnline; - this.Biography = biography; - this.ViewCount = viewCount; - this.Created = created; - this.Updated = updated; } /// /// Gets or Sets Id /// [DataMember(Name = "id", EmitDefaultValue = false)] - public string Id { get; set; } + public string Id { get; private set; } /// - /// Gets or Sets Uuid + /// Returns false as Id should not be serialized given that it's read-only. /// - [DataMember(Name = "uuid", EmitDefaultValue = false)] - public Guid Uuid { get; set; } - + /// false (boolean) + public bool ShouldSerializeId() + { + return false; + } /// /// Gets or Sets Name /// [DataMember(Name = "name", EmitDefaultValue = true)] - public string Name { get; set; } + public string Name { get; private set; } + /// + /// Returns false as Name should not be serialized given that it's read-only. + /// + /// false (boolean) + public bool ShouldSerializeName() + { + return false; + } /// /// Gets or Sets DisplayName /// [DataMember(Name = "display_name", EmitDefaultValue = true)] - public string DisplayName { get; set; } + public string DisplayName { get; private set; } /// - /// Gets or Sets Verified + /// Returns false as DisplayName should not be serialized given that it's read-only. /// - [DataMember(Name = "verified", EmitDefaultValue = true)] - public bool Verified { get; set; } - + /// false (boolean) + public bool ShouldSerializeDisplayName() + { + return false; + } /// /// Gets or Sets Level /// [DataMember(Name = "level", EmitDefaultValue = false)] - public int Level { get; set; } + public int Level { get; private set; } + /// + /// Returns false as Level should not be serialized given that it's read-only. + /// + /// false (boolean) + public bool ShouldSerializeLevel() + { + return false; + } /// /// Gets or Sets Experience /// [DataMember(Name = "experience", EmitDefaultValue = false)] - public double Experience { get; set; } + public double Experience { get; private set; } /// - /// Gets or Sets PublicBirthday + /// Returns false as Experience should not be serialized given that it's read-only. /// - [DataMember(Name = "public_birthday", EmitDefaultValue = true)] - public bool PublicBirthday { get; set; } - + /// false (boolean) + public bool ShouldSerializeExperience() + { + return false; + } /// /// Gets or Sets Birthday /// [DataMember(Name = "birthday", EmitDefaultValue = true)] [JsonConverter(typeof(OpenAPIDateConverter))] - public DateTime? Birthday { get; set; } + public DateTime? Birthday { get; private set; } + /// + /// Returns false as Birthday should not be serialized given that it's read-only. + /// + /// false (boolean) + public bool ShouldSerializeBirthday() + { + return false; + } /// /// Gets or Sets Points /// [DataMember(Name = "points", EmitDefaultValue = false)] - public double Points { get; set; } + public double Points { get; private set; } /// - /// Gets or Sets Location + /// Returns false as Points should not be serialized given that it's read-only. /// - [DataMember(Name = "location", EmitDefaultValue = true)] - public string Location { get; set; } - + /// false (boolean) + public bool ShouldSerializePoints() + { + return false; + } /// /// Gets or Sets PhotoUrl /// [DataMember(Name = "photo_url", EmitDefaultValue = true)] - public string PhotoUrl { get; set; } + public string PhotoUrl { get; private set; } + /// + /// Returns false as PhotoUrl should not be serialized given that it's read-only. + /// + /// false (boolean) + public bool ShouldSerializePhotoUrl() + { + return false; + } /// /// Gets or Sets BannerUrl /// [DataMember(Name = "banner_url", EmitDefaultValue = true)] - public string BannerUrl { get; set; } + public string BannerUrl { get; private set; } + /// + /// Returns false as BannerUrl should not be serialized given that it's read-only. + /// + /// false (boolean) + public bool ShouldSerializeBannerUrl() + { + return false; + } /// /// Gets or Sets LastOnline /// [DataMember(Name = "last_online", EmitDefaultValue = true)] - public DateTime? LastOnline { get; set; } + public DateTime? LastOnline { get; private set; } + /// + /// Returns false as LastOnline should not be serialized given that it's read-only. + /// + /// false (boolean) + public bool ShouldSerializeLastOnline() + { + return false; + } /// /// Gets or Sets Biography /// [DataMember(Name = "biography", EmitDefaultValue = true)] - public string Biography { get; set; } + public string Biography { get; private set; } /// - /// Gets or Sets ViewCount + /// Returns false as Biography should not be serialized given that it's read-only. /// - [DataMember(Name = "view_count", EmitDefaultValue = false)] - public int ViewCount { get; set; } + /// false (boolean) + public bool ShouldSerializeBiography() + { + return false; + } + /// + /// Gets or Sets CreatedAt + /// + [DataMember(Name = "created_at", EmitDefaultValue = false)] + public DateTime CreatedAt { get; private set; } /// - /// Gets or Sets Created + /// Returns false as CreatedAt should not be serialized given that it's read-only. /// - [DataMember(Name = "created", EmitDefaultValue = false)] - public DateTime Created { get; set; } + /// false (boolean) + public bool ShouldSerializeCreatedAt() + { + return false; + } + /// + /// Gets or Sets UpdatedAt + /// + [DataMember(Name = "updated_at", EmitDefaultValue = true)] + public DateTime? UpdatedAt { get; private set; } /// - /// Gets or Sets Updated + /// Returns false as UpdatedAt should not be serialized given that it's read-only. /// - [DataMember(Name = "updated", EmitDefaultValue = true)] - public DateTime? Updated { get; set; } - + /// false (boolean) + public bool ShouldSerializeUpdatedAt() + { + return false; + } /// /// Returns the string presentation of the object /// @@ -193,23 +232,18 @@ namespace Tribufu.Model StringBuilder sb = new StringBuilder(); sb.Append("class Profile {\n"); sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" Uuid: ").Append(Uuid).Append("\n"); sb.Append(" Name: ").Append(Name).Append("\n"); sb.Append(" DisplayName: ").Append(DisplayName).Append("\n"); - sb.Append(" Verified: ").Append(Verified).Append("\n"); sb.Append(" Level: ").Append(Level).Append("\n"); sb.Append(" Experience: ").Append(Experience).Append("\n"); - sb.Append(" PublicBirthday: ").Append(PublicBirthday).Append("\n"); sb.Append(" Birthday: ").Append(Birthday).Append("\n"); sb.Append(" Points: ").Append(Points).Append("\n"); - sb.Append(" Location: ").Append(Location).Append("\n"); sb.Append(" PhotoUrl: ").Append(PhotoUrl).Append("\n"); sb.Append(" BannerUrl: ").Append(BannerUrl).Append("\n"); sb.Append(" LastOnline: ").Append(LastOnline).Append("\n"); sb.Append(" Biography: ").Append(Biography).Append("\n"); - sb.Append(" ViewCount: ").Append(ViewCount).Append("\n"); - sb.Append(" Created: ").Append(Created).Append("\n"); - sb.Append(" Updated: ").Append(Updated).Append("\n"); + sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); + sb.Append(" UpdatedAt: ").Append(UpdatedAt).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -230,6 +264,18 @@ namespace Tribufu.Model /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { + // DisplayName (string) maxLength + if (this.DisplayName != null && this.DisplayName.Length > 45) + { + yield return new ValidationResult("Invalid value for DisplayName, length must be less than 45.", new [] { "DisplayName" }); + } + + // BannerUrl (string) maxLength + if (this.BannerUrl != null && this.BannerUrl.Length > 255) + { + yield return new ValidationResult("Invalid value for BannerUrl, length must be less than 255.", new [] { "BannerUrl" }); + } + yield break; } } diff --git a/src/Tribufu/Model/ProfileGame.cs b/src/Tribufu/Model/ProfileGame.cs index 7bab8c4..4451c1b 100644 --- a/src/Tribufu/Model/ProfileGame.cs +++ b/src/Tribufu/Model/ProfileGame.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.3.0 + * The version of the OpenAPI document: 1.4.3 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Model/ProfileGroup.cs b/src/Tribufu/Model/ProfileGroup.cs index f4232ac..711c9ec 100644 --- a/src/Tribufu/Model/ProfileGroup.cs +++ b/src/Tribufu/Model/ProfileGroup.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.3.0 + * The version of the OpenAPI document: 1.4.3 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -51,7 +51,7 @@ namespace Tribufu.Model /// memberCount. /// rank. /// since. - public ProfileGroup(string id = default(string), Guid uuid = default(Guid), string name = default(string), string tag = default(string), int privacy = default(int), bool verified = default(bool), string photoUrl = default(string), int memberCount = default(int), GroupRank? rank = default(GroupRank?), DateTime since = default(DateTime)) + public ProfileGroup(string id = default(string), string uuid = default(string), string name = default(string), string tag = default(string), int privacy = default(int), bool verified = default(bool), string photoUrl = default(string), int memberCount = default(int), GroupRank? rank = default(GroupRank?), DateTime since = default(DateTime)) { this.Id = id; this.Uuid = uuid; @@ -75,7 +75,7 @@ namespace Tribufu.Model /// Gets or Sets Uuid /// [DataMember(Name = "uuid", EmitDefaultValue = false)] - public Guid Uuid { get; set; } + public string Uuid { get; set; } /// /// Gets or Sets Name diff --git a/src/Tribufu/Model/ResponseType.cs b/src/Tribufu/Model/ResponseType.cs index 5e7e6e5..7e0403b 100644 --- a/src/Tribufu/Model/ResponseType.cs +++ b/src/Tribufu/Model/ResponseType.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.3.0 + * The version of the OpenAPI document: 1.4.3 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Model/RevokeRequest.cs b/src/Tribufu/Model/RevokeRequest.cs index 3c63768..20c4209 100644 --- a/src/Tribufu/Model/RevokeRequest.cs +++ b/src/Tribufu/Model/RevokeRequest.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.3.0 + * The version of the OpenAPI document: 1.4.3 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Model/Search.cs b/src/Tribufu/Model/Search.cs index b891f60..b6a3dc0 100644 --- a/src/Tribufu/Model/Search.cs +++ b/src/Tribufu/Model/Search.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.3.0 + * The version of the OpenAPI document: 1.4.3 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -78,7 +78,7 @@ namespace Tribufu.Model /// /// Gets or Sets GameId /// - [DataMember(Name = "game_id", EmitDefaultValue = true)] + [DataMember(Name = "game_id", EmitDefaultValue = false)] public string GameId { get; set; } /// diff --git a/src/Tribufu/Model/SearchType.cs b/src/Tribufu/Model/SearchType.cs index 2169c35..0253ad1 100644 --- a/src/Tribufu/Model/SearchType.cs +++ b/src/Tribufu/Model/SearchType.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.3.0 + * The version of the OpenAPI document: 1.4.3 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Model/ServerMetrics.cs b/src/Tribufu/Model/ServerMetrics.cs index fd44f10..2f6359e 100644 --- a/src/Tribufu/Model/ServerMetrics.cs +++ b/src/Tribufu/Model/ServerMetrics.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.3.0 + * The version of the OpenAPI document: 1.4.3 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Model/StorageFile.cs b/src/Tribufu/Model/StorageFile.cs index 2d9fac8..56025ef 100644 --- a/src/Tribufu/Model/StorageFile.cs +++ b/src/Tribufu/Model/StorageFile.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.3.0 + * The version of the OpenAPI document: 1.4.3 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -47,9 +47,10 @@ namespace Tribufu.Model /// size. /// hash. /// etag. - /// created. - /// updated. - public StorageFile(string id = default(string), string name = default(string), string contentType = default(string), string url = default(string), long size = default(long), string hash = default(string), string etag = default(string), DateTime created = default(DateTime), DateTime? updated = default(DateTime?)) + /// createdAt. + /// updatedAt. + /// deletedAt. + public StorageFile(string id = default(string), string name = default(string), string contentType = default(string), string url = default(string), long size = default(long), string hash = default(string), string etag = default(string), DateTime createdAt = default(DateTime), DateTime? updatedAt = default(DateTime?), DateTime? deletedAt = default(DateTime?)) { // to ensure "name" is required (not null) if (name == null) @@ -73,8 +74,9 @@ namespace Tribufu.Model this.Size = size; this.Hash = hash; this.Etag = etag; - this.Created = created; - this.Updated = updated; + this.CreatedAt = createdAt; + this.UpdatedAt = updatedAt; + this.DeletedAt = deletedAt; } /// @@ -120,16 +122,22 @@ namespace Tribufu.Model public string Etag { get; set; } /// - /// Gets or Sets Created + /// Gets or Sets CreatedAt /// - [DataMember(Name = "created", EmitDefaultValue = false)] - public DateTime Created { get; set; } + [DataMember(Name = "created_at", EmitDefaultValue = false)] + public DateTime CreatedAt { get; set; } /// - /// Gets or Sets Updated + /// Gets or Sets UpdatedAt /// - [DataMember(Name = "updated", EmitDefaultValue = true)] - public DateTime? Updated { get; set; } + [DataMember(Name = "updated_at", EmitDefaultValue = true)] + public DateTime? UpdatedAt { get; set; } + + /// + /// Gets or Sets DeletedAt + /// + [DataMember(Name = "deleted_at", EmitDefaultValue = true)] + public DateTime? DeletedAt { get; set; } /// /// Returns the string presentation of the object @@ -146,8 +154,9 @@ namespace Tribufu.Model sb.Append(" Size: ").Append(Size).Append("\n"); sb.Append(" Hash: ").Append(Hash).Append("\n"); sb.Append(" Etag: ").Append(Etag).Append("\n"); - sb.Append(" Created: ").Append(Created).Append("\n"); - sb.Append(" Updated: ").Append(Updated).Append("\n"); + sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); + sb.Append(" UpdatedAt: ").Append(UpdatedAt).Append("\n"); + sb.Append(" DeletedAt: ").Append(DeletedAt).Append("\n"); sb.Append("}\n"); return sb.ToString(); } diff --git a/src/Tribufu/Model/TokenHintType.cs b/src/Tribufu/Model/TokenHintType.cs index 48ba1db..099dc37 100644 --- a/src/Tribufu/Model/TokenHintType.cs +++ b/src/Tribufu/Model/TokenHintType.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.3.0 + * The version of the OpenAPI document: 1.4.3 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Model/TokenRequest.cs b/src/Tribufu/Model/TokenRequest.cs index 641890c..bcbc3e3 100644 --- a/src/Tribufu/Model/TokenRequest.cs +++ b/src/Tribufu/Model/TokenRequest.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.3.0 + * The version of the OpenAPI document: 1.4.3 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Model/TokenResponse.cs b/src/Tribufu/Model/TokenResponse.cs index de4bc31..d410c4d 100644 --- a/src/Tribufu/Model/TokenResponse.cs +++ b/src/Tribufu/Model/TokenResponse.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.3.0 + * The version of the OpenAPI document: 1.4.3 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Model/TokenType.cs b/src/Tribufu/Model/TokenType.cs index 47cc6ca..058d4b4 100644 --- a/src/Tribufu/Model/TokenType.cs +++ b/src/Tribufu/Model/TokenType.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.3.0 + * The version of the OpenAPI document: 1.4.3 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Model/UpdateProfile.cs b/src/Tribufu/Model/UpdateProfile.cs index bd87068..0de3f9d 100644 --- a/src/Tribufu/Model/UpdateProfile.cs +++ b/src/Tribufu/Model/UpdateProfile.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.3.0 + * The version of the OpenAPI document: 1.4.3 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Model/UserInfo.cs b/src/Tribufu/Model/UserInfo.cs index 8bd8932..8be80ce 100644 --- a/src/Tribufu/Model/UserInfo.cs +++ b/src/Tribufu/Model/UserInfo.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.3.0 + * The version of the OpenAPI document: 1.4.3 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -47,10 +47,9 @@ namespace Tribufu.Model /// Initializes a new instance of the class. /// /// id. - /// uuid. /// name (required). /// displayName. - /// email. + /// emailAddress. /// emailVerified. /// type. /// language. @@ -58,9 +57,9 @@ namespace Tribufu.Model /// currency. /// photoUrl. /// permissions. - /// created. - /// updated. - public UserInfo(string id = default(string), Guid uuid = default(Guid), string name = default(string), string displayName = default(string), string email = default(string), bool emailVerified = default(bool), UserType? type = default(UserType?), string language = default(string), string timezone = default(string), string currency = default(string), string photoUrl = default(string), List permissions = default(List), DateTime created = default(DateTime), DateTime? updated = default(DateTime?)) + /// createdAt. + /// updatedAt. + public UserInfo(string id = default(string), string name = default(string), string displayName = default(string), string emailAddress = default(string), bool emailVerified = default(bool), UserType? type = default(UserType?), string language = default(string), string timezone = default(string), string currency = default(string), string photoUrl = default(string), List permissions = default(List), DateTime createdAt = default(DateTime), DateTime? updatedAt = default(DateTime?)) { // to ensure "name" is required (not null) if (name == null) @@ -69,9 +68,8 @@ namespace Tribufu.Model } this.Name = name; this.Id = id; - this.Uuid = uuid; this.DisplayName = displayName; - this.Email = email; + this.EmailAddress = emailAddress; this.EmailVerified = emailVerified; this.Type = type; this.Language = language; @@ -79,8 +77,8 @@ namespace Tribufu.Model this.Currency = currency; this.PhotoUrl = photoUrl; this.Permissions = permissions; - this.Created = created; - this.Updated = updated; + this.CreatedAt = createdAt; + this.UpdatedAt = updatedAt; } /// @@ -89,12 +87,6 @@ namespace Tribufu.Model [DataMember(Name = "id", EmitDefaultValue = false)] public string Id { get; set; } - /// - /// Gets or Sets Uuid - /// - [DataMember(Name = "uuid", EmitDefaultValue = false)] - public Guid Uuid { get; set; } - /// /// Gets or Sets Name /// @@ -108,10 +100,10 @@ namespace Tribufu.Model public string DisplayName { get; set; } /// - /// Gets or Sets Email + /// Gets or Sets EmailAddress /// - [DataMember(Name = "email", EmitDefaultValue = true)] - public string Email { get; set; } + [DataMember(Name = "email_address", EmitDefaultValue = true)] + public string EmailAddress { get; set; } /// /// Gets or Sets EmailVerified @@ -150,16 +142,16 @@ namespace Tribufu.Model public List Permissions { get; set; } /// - /// Gets or Sets Created + /// Gets or Sets CreatedAt /// - [DataMember(Name = "created", EmitDefaultValue = false)] - public DateTime Created { get; set; } + [DataMember(Name = "created_at", EmitDefaultValue = false)] + public DateTime CreatedAt { get; set; } /// - /// Gets or Sets Updated + /// Gets or Sets UpdatedAt /// - [DataMember(Name = "updated", EmitDefaultValue = true)] - public DateTime? Updated { get; set; } + [DataMember(Name = "updated_at", EmitDefaultValue = true)] + public DateTime? UpdatedAt { get; set; } /// /// Returns the string presentation of the object @@ -170,10 +162,9 @@ namespace Tribufu.Model StringBuilder sb = new StringBuilder(); sb.Append("class UserInfo {\n"); sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" Uuid: ").Append(Uuid).Append("\n"); sb.Append(" Name: ").Append(Name).Append("\n"); sb.Append(" DisplayName: ").Append(DisplayName).Append("\n"); - sb.Append(" Email: ").Append(Email).Append("\n"); + sb.Append(" EmailAddress: ").Append(EmailAddress).Append("\n"); sb.Append(" EmailVerified: ").Append(EmailVerified).Append("\n"); sb.Append(" Type: ").Append(Type).Append("\n"); sb.Append(" Language: ").Append(Language).Append("\n"); @@ -181,8 +172,8 @@ namespace Tribufu.Model sb.Append(" Currency: ").Append(Currency).Append("\n"); sb.Append(" PhotoUrl: ").Append(PhotoUrl).Append("\n"); sb.Append(" Permissions: ").Append(Permissions).Append("\n"); - sb.Append(" Created: ").Append(Created).Append("\n"); - sb.Append(" Updated: ").Append(Updated).Append("\n"); + sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); + sb.Append(" UpdatedAt: ").Append(UpdatedAt).Append("\n"); sb.Append("}\n"); return sb.ToString(); } diff --git a/src/Tribufu/Model/UserType.cs b/src/Tribufu/Model/UserType.cs index eeafe58..4df6b64 100644 --- a/src/Tribufu/Model/UserType.cs +++ b/src/Tribufu/Model/UserType.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.3.0 + * The version of the OpenAPI document: 1.4.3 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ From 7e8e192dc30cff0d13305193836468ff0cadcbfd Mon Sep 17 00:00:00 2001 From: Guilherme Werner Date: Sun, 21 Jun 2026 12:27:05 -0300 Subject: [PATCH 51/52] Migrate to new tribufu project structure (#2) * Migrate to new tribufu project structure * Update .gitignore * Remove old api files * Update Directory.Build.props * Rename solution --- .gitignore | 7 +- Directory.Build.props | 11 +- scripts/generate.ps1 => Scripts/Generate.ps1 | 11 ++ Scripts/Package.ps1 | 7 + .../Extensions/HttpContextExtensions.cs | 0 {src => Source}/Tribufu.AspNetCore/README.md | 0 .../Tribufu.AspNetCore.csproj | 0 .../EnumMemberConverter.cs | 0 .../Tribufu.ComponentModel/README.md | 0 .../Tribufu.ComponentModel.csproj | 0 .../ConfigurationLoader.cs | 0 .../Extensions/IConfigurationExtensions.cs | 0 .../Tribufu.Configuration/README.md | 0 .../Tribufu.Configuration.csproj | 0 .../IRepository.cs | 0 .../Tribufu.EntityFrameworkCore/README.md | 0 .../Tribufu.EntityFrameworkCore/Repository.cs | 0 .../Tribufu.EntityFrameworkCore.csproj | 0 {src => Source}/Tribufu.Example/Program.cs | 0 .../Tribufu.Example/Tribufu.Example.csproj | 0 {src => Source}/Tribufu.Logging/LogLevel.cs | 0 {src => Source}/Tribufu.Logging/Logger.cs | 0 {src => Source}/Tribufu.Logging/README.md | 0 .../Tribufu.Logging/Tribufu.Logging.csproj | 0 .../Tribufu.Platform/FlakeGenerator.cs | 0 {src => Source}/Tribufu.Platform/Paths.cs | 0 {src => Source}/Tribufu.Platform/README.md | 0 .../Tribufu.Platform/Tribufu.Platform.csproj | 0 .../BaseClassFirstContractResolver.cs | 0 .../CustomSerializerSettings.cs | 0 .../DecimalNullableStringConverter.cs | 0 .../DecimalStringConverter.cs | 0 .../NetworkAwareSnakeCaseNamingStrategy.cs | 0 .../Tribufu.Serialization/README.md | 0 .../Tribufu.Serialization.csproj | 0 .../ULongNullableStringConverter.cs | 0 .../ULongStringConverter.cs | 0 .../Tribufu/Api/TribufuGeneratedApi.cs | 0 {src => Source}/Tribufu/Client/ApiClient.cs | 0 .../Tribufu/Client/ApiException.cs | 0 {src => Source}/Tribufu/Client/ApiResponse.cs | 0 {src => Source}/Tribufu/Client/ClientUtils.cs | 0 .../Tribufu/Client/Configuration.cs | 0 .../Tribufu/Client/ExceptionFactory.cs | 0 .../Tribufu/Client/GlobalConfiguration.cs | 0 {src => Source}/Tribufu/Client/HttpMethod.cs | 0 .../Tribufu/Client/IApiAccessor.cs | 0 .../Tribufu/Client/IAsynchronousClient.cs | 0 .../Tribufu/Client/IReadableConfiguration.cs | 0 .../Tribufu/Client/ISynchronousClient.cs | 0 {src => Source}/Tribufu/Client/Multimap.cs | 0 .../Tribufu/Client/OpenAPIDateConverter.cs | 0 .../Tribufu/Client/RequestOptions.cs | 0 .../Tribufu/Client/RetryConfiguration.cs | 0 .../Tribufu/Model/AbstractOpenAPISchema.cs | 0 {src => Source}/Tribufu/Model/Application.cs | 0 .../Tribufu/Model/ApplicationType.cs | 0 .../Tribufu/Model/AuthorizeRequest.cs | 0 {src => Source}/Tribufu/Model/ClientInfo.cs | 0 {src => Source}/Tribufu/Model/ClientType.cs | 0 .../Tribufu/Model/CodeChallengeMethod.cs | 0 {src => Source}/Tribufu/Model/CodeResponse.cs | 0 {src => Source}/Tribufu/Model/CreateUser.cs | 0 .../Tribufu/Model/CryptoViewModel.cs | 0 .../Tribufu/Model/ExternalAccount.cs | 0 {src => Source}/Tribufu/Model/Game.cs | 0 {src => Source}/Tribufu/Model/GameServer.cs | 0 .../Tribufu/Model/GameServerCluster.cs | 0 .../Tribufu/Model/GameServerQuery.cs | 0 .../Tribufu/Model/GameServerStatus.cs | 0 {src => Source}/Tribufu/Model/GrantType.cs | 0 {src => Source}/Tribufu/Model/Group.cs | 0 .../Tribufu/Model/GroupApplication.cs | 0 {src => Source}/Tribufu/Model/GroupMember.cs | 0 {src => Source}/Tribufu/Model/GroupRank.cs | 0 .../Tribufu/Model/HashViewModel.cs | 0 .../Tribufu/Model/IdentityProviderType.cs | 0 .../Tribufu/Model/IntrospectRequest.cs | 0 .../Tribufu/Model/IntrospectResponse.cs | 0 {src => Source}/Tribufu/Model/IpAddress.cs | 0 .../Tribufu/Model/LeaderboardItem.cs | 0 .../Tribufu/Model/LeaderboardOrder.cs | 0 {src => Source}/Tribufu/Model/ModelClient.cs | 0 {src => Source}/Tribufu/Model/Package.cs | 0 .../Tribufu/Model/PackageRelease.cs | 0 {src => Source}/Tribufu/Model/Product.cs | 0 {src => Source}/Tribufu/Model/ProductPrice.cs | 0 {src => Source}/Tribufu/Model/ProductType.cs | 0 {src => Source}/Tribufu/Model/Profile.cs | 0 {src => Source}/Tribufu/Model/ProfileGame.cs | 0 {src => Source}/Tribufu/Model/ProfileGroup.cs | 0 {src => Source}/Tribufu/Model/ResponseType.cs | 0 .../Tribufu/Model/RevokeRequest.cs | 0 {src => Source}/Tribufu/Model/Search.cs | 0 {src => Source}/Tribufu/Model/SearchType.cs | 0 .../Tribufu/Model/ServerMetrics.cs | 0 {src => Source}/Tribufu/Model/StorageFile.cs | 0 .../Tribufu/Model/TokenHintType.cs | 0 {src => Source}/Tribufu/Model/TokenRequest.cs | 0 .../Tribufu/Model/TokenResponse.cs | 0 {src => Source}/Tribufu/Model/TokenType.cs | 0 .../Tribufu/Model/UpdateProfile.cs | 0 {src => Source}/Tribufu/Model/UserInfo.cs | 0 {src => Source}/Tribufu/Model/UserType.cs | 0 {src => Source}/Tribufu/Tribufu.csproj | 0 {src => Source}/Tribufu/TribufuApi.cs | 0 .../Tribufu/TribufuApiSingleton.cs | 0 Tribufu.slnx | 13 -- TribufuDotNet.slnx | 13 ++ {vendor => Vendor}/openapi-generator/LICENSE | 0 .../openapi-generator-cli.jar | Bin releases/.gitkeep | 0 scripts/package.ps1 | 7 - src/Tribufu/Model/Account.cs | 156 ------------------ src/Tribufu/Model/LoginProvider.cs | 78 --------- 115 files changed, 41 insertions(+), 262 deletions(-) rename scripts/generate.ps1 => Scripts/Generate.ps1 (63%) create mode 100644 Scripts/Package.ps1 rename {src => Source}/Tribufu.AspNetCore/Extensions/HttpContextExtensions.cs (100%) rename {src => Source}/Tribufu.AspNetCore/README.md (100%) rename {src => Source}/Tribufu.AspNetCore/Tribufu.AspNetCore.csproj (100%) rename {src => Source}/Tribufu.ComponentModel/EnumMemberConverter.cs (100%) rename {src => Source}/Tribufu.ComponentModel/README.md (100%) rename {src => Source}/Tribufu.ComponentModel/Tribufu.ComponentModel.csproj (100%) rename {src => Source}/Tribufu.Configuration/ConfigurationLoader.cs (100%) rename {src => Source}/Tribufu.Configuration/Extensions/IConfigurationExtensions.cs (100%) rename {src => Source}/Tribufu.Configuration/README.md (100%) rename {src => Source}/Tribufu.Configuration/Tribufu.Configuration.csproj (100%) rename {src => Source}/Tribufu.EntityFrameworkCore/IRepository.cs (100%) rename {src => Source}/Tribufu.EntityFrameworkCore/README.md (100%) rename {src => Source}/Tribufu.EntityFrameworkCore/Repository.cs (100%) rename {src => Source}/Tribufu.EntityFrameworkCore/Tribufu.EntityFrameworkCore.csproj (100%) rename {src => Source}/Tribufu.Example/Program.cs (100%) rename {src => Source}/Tribufu.Example/Tribufu.Example.csproj (100%) rename {src => Source}/Tribufu.Logging/LogLevel.cs (100%) rename {src => Source}/Tribufu.Logging/Logger.cs (100%) rename {src => Source}/Tribufu.Logging/README.md (100%) rename {src => Source}/Tribufu.Logging/Tribufu.Logging.csproj (100%) rename {src => Source}/Tribufu.Platform/FlakeGenerator.cs (100%) rename {src => Source}/Tribufu.Platform/Paths.cs (100%) rename {src => Source}/Tribufu.Platform/README.md (100%) rename {src => Source}/Tribufu.Platform/Tribufu.Platform.csproj (100%) rename {src => Source}/Tribufu.Serialization/BaseClassFirstContractResolver.cs (100%) rename {src => Source}/Tribufu.Serialization/CustomSerializerSettings.cs (100%) rename {src => Source}/Tribufu.Serialization/DecimalNullableStringConverter.cs (100%) rename {src => Source}/Tribufu.Serialization/DecimalStringConverter.cs (100%) rename {src => Source}/Tribufu.Serialization/NetworkAwareSnakeCaseNamingStrategy.cs (100%) rename {src => Source}/Tribufu.Serialization/README.md (100%) rename {src => Source}/Tribufu.Serialization/Tribufu.Serialization.csproj (100%) rename {src => Source}/Tribufu.Serialization/ULongNullableStringConverter.cs (100%) rename {src => Source}/Tribufu.Serialization/ULongStringConverter.cs (100%) rename {src => Source}/Tribufu/Api/TribufuGeneratedApi.cs (100%) rename {src => Source}/Tribufu/Client/ApiClient.cs (100%) rename {src => Source}/Tribufu/Client/ApiException.cs (100%) rename {src => Source}/Tribufu/Client/ApiResponse.cs (100%) rename {src => Source}/Tribufu/Client/ClientUtils.cs (100%) rename {src => Source}/Tribufu/Client/Configuration.cs (100%) rename {src => Source}/Tribufu/Client/ExceptionFactory.cs (100%) rename {src => Source}/Tribufu/Client/GlobalConfiguration.cs (100%) rename {src => Source}/Tribufu/Client/HttpMethod.cs (100%) rename {src => Source}/Tribufu/Client/IApiAccessor.cs (100%) rename {src => Source}/Tribufu/Client/IAsynchronousClient.cs (100%) rename {src => Source}/Tribufu/Client/IReadableConfiguration.cs (100%) rename {src => Source}/Tribufu/Client/ISynchronousClient.cs (100%) rename {src => Source}/Tribufu/Client/Multimap.cs (100%) rename {src => Source}/Tribufu/Client/OpenAPIDateConverter.cs (100%) rename {src => Source}/Tribufu/Client/RequestOptions.cs (100%) rename {src => Source}/Tribufu/Client/RetryConfiguration.cs (100%) rename {src => Source}/Tribufu/Model/AbstractOpenAPISchema.cs (100%) rename {src => Source}/Tribufu/Model/Application.cs (100%) rename {src => Source}/Tribufu/Model/ApplicationType.cs (100%) rename {src => Source}/Tribufu/Model/AuthorizeRequest.cs (100%) rename {src => Source}/Tribufu/Model/ClientInfo.cs (100%) rename {src => Source}/Tribufu/Model/ClientType.cs (100%) rename {src => Source}/Tribufu/Model/CodeChallengeMethod.cs (100%) rename {src => Source}/Tribufu/Model/CodeResponse.cs (100%) rename {src => Source}/Tribufu/Model/CreateUser.cs (100%) rename {src => Source}/Tribufu/Model/CryptoViewModel.cs (100%) rename {src => Source}/Tribufu/Model/ExternalAccount.cs (100%) rename {src => Source}/Tribufu/Model/Game.cs (100%) rename {src => Source}/Tribufu/Model/GameServer.cs (100%) rename {src => Source}/Tribufu/Model/GameServerCluster.cs (100%) rename {src => Source}/Tribufu/Model/GameServerQuery.cs (100%) rename {src => Source}/Tribufu/Model/GameServerStatus.cs (100%) rename {src => Source}/Tribufu/Model/GrantType.cs (100%) rename {src => Source}/Tribufu/Model/Group.cs (100%) rename {src => Source}/Tribufu/Model/GroupApplication.cs (100%) rename {src => Source}/Tribufu/Model/GroupMember.cs (100%) rename {src => Source}/Tribufu/Model/GroupRank.cs (100%) rename {src => Source}/Tribufu/Model/HashViewModel.cs (100%) rename {src => Source}/Tribufu/Model/IdentityProviderType.cs (100%) rename {src => Source}/Tribufu/Model/IntrospectRequest.cs (100%) rename {src => Source}/Tribufu/Model/IntrospectResponse.cs (100%) rename {src => Source}/Tribufu/Model/IpAddress.cs (100%) rename {src => Source}/Tribufu/Model/LeaderboardItem.cs (100%) rename {src => Source}/Tribufu/Model/LeaderboardOrder.cs (100%) rename {src => Source}/Tribufu/Model/ModelClient.cs (100%) rename {src => Source}/Tribufu/Model/Package.cs (100%) rename {src => Source}/Tribufu/Model/PackageRelease.cs (100%) rename {src => Source}/Tribufu/Model/Product.cs (100%) rename {src => Source}/Tribufu/Model/ProductPrice.cs (100%) rename {src => Source}/Tribufu/Model/ProductType.cs (100%) rename {src => Source}/Tribufu/Model/Profile.cs (100%) rename {src => Source}/Tribufu/Model/ProfileGame.cs (100%) rename {src => Source}/Tribufu/Model/ProfileGroup.cs (100%) rename {src => Source}/Tribufu/Model/ResponseType.cs (100%) rename {src => Source}/Tribufu/Model/RevokeRequest.cs (100%) rename {src => Source}/Tribufu/Model/Search.cs (100%) rename {src => Source}/Tribufu/Model/SearchType.cs (100%) rename {src => Source}/Tribufu/Model/ServerMetrics.cs (100%) rename {src => Source}/Tribufu/Model/StorageFile.cs (100%) rename {src => Source}/Tribufu/Model/TokenHintType.cs (100%) rename {src => Source}/Tribufu/Model/TokenRequest.cs (100%) rename {src => Source}/Tribufu/Model/TokenResponse.cs (100%) rename {src => Source}/Tribufu/Model/TokenType.cs (100%) rename {src => Source}/Tribufu/Model/UpdateProfile.cs (100%) rename {src => Source}/Tribufu/Model/UserInfo.cs (100%) rename {src => Source}/Tribufu/Model/UserType.cs (100%) rename {src => Source}/Tribufu/Tribufu.csproj (100%) rename {src => Source}/Tribufu/TribufuApi.cs (100%) rename {src => Source}/Tribufu/TribufuApiSingleton.cs (100%) delete mode 100644 Tribufu.slnx create mode 100644 TribufuDotNet.slnx rename {vendor => Vendor}/openapi-generator/LICENSE (100%) rename {vendor => Vendor}/openapi-generator/openapi-generator-cli.jar (100%) delete mode 100644 releases/.gitkeep delete mode 100644 scripts/package.ps1 delete mode 100644 src/Tribufu/Model/Account.cs delete mode 100644 src/Tribufu/Model/LoginProvider.cs diff --git a/.gitignore b/.gitignore index 867bfbd..114d915 100644 --- a/.gitignore +++ b/.gitignore @@ -1,10 +1,11 @@ +.agents/ +.codex/ .vs/ bin/ -intermediate/ +Binaries +Intermediate/ obj/ -releases/* -!releases/.gitkeep .DS_Store .env *.filters diff --git a/Directory.Build.props b/Directory.Build.props index 9426f7c..afa9c8b 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -11,10 +11,11 @@ $(NoWarn);0618;1591;1998;2002;8767 - $([System.String]::Copy('$(Configuration)').ToLower()) - $(SolutionDir)intermediate\$(MSBuildProjectName)\$(ConfigLower)\ - $(SolutionDir)intermediate\$(MSBuildProjectName)\ - $(SolutionDir)bin\$(ConfigLower)\ - $(SolutionDir)intermediate\ + $(SolutionDir)Intermediate\DotNet\$(MSBuildProjectName)\ + $(BaseIntermediateOutputPath)$(Configuration)\ + $(BaseIntermediateOutputPath) + $(IntermediateOutputPath) + $(SolutionDir)Binaries\$(Configuration)\DotNet\ + $(SolutionDir)Intermediate\ diff --git a/scripts/generate.ps1 b/Scripts/Generate.ps1 similarity index 63% rename from scripts/generate.ps1 rename to Scripts/Generate.ps1 index 408e2e0..abb11fc 100644 --- a/scripts/generate.ps1 +++ b/Scripts/Generate.ps1 @@ -1,5 +1,7 @@ #!/usr/bin/env pwsh +$ErrorActionPreference = "Stop" + $env:CSHARP_POST_PROCESS_FILE = "" java -jar ./vendor/openapi-generator/openapi-generator-cli.jar generate ` @@ -10,3 +12,12 @@ java -jar ./vendor/openapi-generator/openapi-generator-cli.jar generate ` --additional-properties=packageName=Tribufu,library=restsharp,targetFramework=net47,zeroBasedEnums=true ` --openapi-normalizer SET_TAGS_FOR_ALL_OPERATIONS=TribufuGenerated ` --skip-validate-spec + +$srcDir = "./src" +$sourceDir = "./Source" + +if (Test-Path $srcDir) { + New-Item -ItemType Directory -Force -Path $sourceDir | Out-Null + Copy-Item -Path (Join-Path $srcDir "*") -Destination $sourceDir -Recurse -Force + Remove-Item $srcDir -Recurse -Force +} diff --git a/Scripts/Package.ps1 b/Scripts/Package.ps1 new file mode 100644 index 0000000..658179e --- /dev/null +++ b/Scripts/Package.ps1 @@ -0,0 +1,7 @@ +#!/usr/bin/env pwsh + +Get-ChildItem ./Intermediate -Filter *.nupkg -Recurse -Force | Remove-Item -Force + +dotnet clean +dotnet build -c Release +dotnet pack -c Release -o ./Intermediate diff --git a/src/Tribufu.AspNetCore/Extensions/HttpContextExtensions.cs b/Source/Tribufu.AspNetCore/Extensions/HttpContextExtensions.cs similarity index 100% rename from src/Tribufu.AspNetCore/Extensions/HttpContextExtensions.cs rename to Source/Tribufu.AspNetCore/Extensions/HttpContextExtensions.cs diff --git a/src/Tribufu.AspNetCore/README.md b/Source/Tribufu.AspNetCore/README.md similarity index 100% rename from src/Tribufu.AspNetCore/README.md rename to Source/Tribufu.AspNetCore/README.md diff --git a/src/Tribufu.AspNetCore/Tribufu.AspNetCore.csproj b/Source/Tribufu.AspNetCore/Tribufu.AspNetCore.csproj similarity index 100% rename from src/Tribufu.AspNetCore/Tribufu.AspNetCore.csproj rename to Source/Tribufu.AspNetCore/Tribufu.AspNetCore.csproj diff --git a/src/Tribufu.ComponentModel/EnumMemberConverter.cs b/Source/Tribufu.ComponentModel/EnumMemberConverter.cs similarity index 100% rename from src/Tribufu.ComponentModel/EnumMemberConverter.cs rename to Source/Tribufu.ComponentModel/EnumMemberConverter.cs diff --git a/src/Tribufu.ComponentModel/README.md b/Source/Tribufu.ComponentModel/README.md similarity index 100% rename from src/Tribufu.ComponentModel/README.md rename to Source/Tribufu.ComponentModel/README.md diff --git a/src/Tribufu.ComponentModel/Tribufu.ComponentModel.csproj b/Source/Tribufu.ComponentModel/Tribufu.ComponentModel.csproj similarity index 100% rename from src/Tribufu.ComponentModel/Tribufu.ComponentModel.csproj rename to Source/Tribufu.ComponentModel/Tribufu.ComponentModel.csproj diff --git a/src/Tribufu.Configuration/ConfigurationLoader.cs b/Source/Tribufu.Configuration/ConfigurationLoader.cs similarity index 100% rename from src/Tribufu.Configuration/ConfigurationLoader.cs rename to Source/Tribufu.Configuration/ConfigurationLoader.cs diff --git a/src/Tribufu.Configuration/Extensions/IConfigurationExtensions.cs b/Source/Tribufu.Configuration/Extensions/IConfigurationExtensions.cs similarity index 100% rename from src/Tribufu.Configuration/Extensions/IConfigurationExtensions.cs rename to Source/Tribufu.Configuration/Extensions/IConfigurationExtensions.cs diff --git a/src/Tribufu.Configuration/README.md b/Source/Tribufu.Configuration/README.md similarity index 100% rename from src/Tribufu.Configuration/README.md rename to Source/Tribufu.Configuration/README.md diff --git a/src/Tribufu.Configuration/Tribufu.Configuration.csproj b/Source/Tribufu.Configuration/Tribufu.Configuration.csproj similarity index 100% rename from src/Tribufu.Configuration/Tribufu.Configuration.csproj rename to Source/Tribufu.Configuration/Tribufu.Configuration.csproj diff --git a/src/Tribufu.EntityFrameworkCore/IRepository.cs b/Source/Tribufu.EntityFrameworkCore/IRepository.cs similarity index 100% rename from src/Tribufu.EntityFrameworkCore/IRepository.cs rename to Source/Tribufu.EntityFrameworkCore/IRepository.cs diff --git a/src/Tribufu.EntityFrameworkCore/README.md b/Source/Tribufu.EntityFrameworkCore/README.md similarity index 100% rename from src/Tribufu.EntityFrameworkCore/README.md rename to Source/Tribufu.EntityFrameworkCore/README.md diff --git a/src/Tribufu.EntityFrameworkCore/Repository.cs b/Source/Tribufu.EntityFrameworkCore/Repository.cs similarity index 100% rename from src/Tribufu.EntityFrameworkCore/Repository.cs rename to Source/Tribufu.EntityFrameworkCore/Repository.cs diff --git a/src/Tribufu.EntityFrameworkCore/Tribufu.EntityFrameworkCore.csproj b/Source/Tribufu.EntityFrameworkCore/Tribufu.EntityFrameworkCore.csproj similarity index 100% rename from src/Tribufu.EntityFrameworkCore/Tribufu.EntityFrameworkCore.csproj rename to Source/Tribufu.EntityFrameworkCore/Tribufu.EntityFrameworkCore.csproj diff --git a/src/Tribufu.Example/Program.cs b/Source/Tribufu.Example/Program.cs similarity index 100% rename from src/Tribufu.Example/Program.cs rename to Source/Tribufu.Example/Program.cs diff --git a/src/Tribufu.Example/Tribufu.Example.csproj b/Source/Tribufu.Example/Tribufu.Example.csproj similarity index 100% rename from src/Tribufu.Example/Tribufu.Example.csproj rename to Source/Tribufu.Example/Tribufu.Example.csproj diff --git a/src/Tribufu.Logging/LogLevel.cs b/Source/Tribufu.Logging/LogLevel.cs similarity index 100% rename from src/Tribufu.Logging/LogLevel.cs rename to Source/Tribufu.Logging/LogLevel.cs diff --git a/src/Tribufu.Logging/Logger.cs b/Source/Tribufu.Logging/Logger.cs similarity index 100% rename from src/Tribufu.Logging/Logger.cs rename to Source/Tribufu.Logging/Logger.cs diff --git a/src/Tribufu.Logging/README.md b/Source/Tribufu.Logging/README.md similarity index 100% rename from src/Tribufu.Logging/README.md rename to Source/Tribufu.Logging/README.md diff --git a/src/Tribufu.Logging/Tribufu.Logging.csproj b/Source/Tribufu.Logging/Tribufu.Logging.csproj similarity index 100% rename from src/Tribufu.Logging/Tribufu.Logging.csproj rename to Source/Tribufu.Logging/Tribufu.Logging.csproj diff --git a/src/Tribufu.Platform/FlakeGenerator.cs b/Source/Tribufu.Platform/FlakeGenerator.cs similarity index 100% rename from src/Tribufu.Platform/FlakeGenerator.cs rename to Source/Tribufu.Platform/FlakeGenerator.cs diff --git a/src/Tribufu.Platform/Paths.cs b/Source/Tribufu.Platform/Paths.cs similarity index 100% rename from src/Tribufu.Platform/Paths.cs rename to Source/Tribufu.Platform/Paths.cs diff --git a/src/Tribufu.Platform/README.md b/Source/Tribufu.Platform/README.md similarity index 100% rename from src/Tribufu.Platform/README.md rename to Source/Tribufu.Platform/README.md diff --git a/src/Tribufu.Platform/Tribufu.Platform.csproj b/Source/Tribufu.Platform/Tribufu.Platform.csproj similarity index 100% rename from src/Tribufu.Platform/Tribufu.Platform.csproj rename to Source/Tribufu.Platform/Tribufu.Platform.csproj diff --git a/src/Tribufu.Serialization/BaseClassFirstContractResolver.cs b/Source/Tribufu.Serialization/BaseClassFirstContractResolver.cs similarity index 100% rename from src/Tribufu.Serialization/BaseClassFirstContractResolver.cs rename to Source/Tribufu.Serialization/BaseClassFirstContractResolver.cs diff --git a/src/Tribufu.Serialization/CustomSerializerSettings.cs b/Source/Tribufu.Serialization/CustomSerializerSettings.cs similarity index 100% rename from src/Tribufu.Serialization/CustomSerializerSettings.cs rename to Source/Tribufu.Serialization/CustomSerializerSettings.cs diff --git a/src/Tribufu.Serialization/DecimalNullableStringConverter.cs b/Source/Tribufu.Serialization/DecimalNullableStringConverter.cs similarity index 100% rename from src/Tribufu.Serialization/DecimalNullableStringConverter.cs rename to Source/Tribufu.Serialization/DecimalNullableStringConverter.cs diff --git a/src/Tribufu.Serialization/DecimalStringConverter.cs b/Source/Tribufu.Serialization/DecimalStringConverter.cs similarity index 100% rename from src/Tribufu.Serialization/DecimalStringConverter.cs rename to Source/Tribufu.Serialization/DecimalStringConverter.cs diff --git a/src/Tribufu.Serialization/NetworkAwareSnakeCaseNamingStrategy.cs b/Source/Tribufu.Serialization/NetworkAwareSnakeCaseNamingStrategy.cs similarity index 100% rename from src/Tribufu.Serialization/NetworkAwareSnakeCaseNamingStrategy.cs rename to Source/Tribufu.Serialization/NetworkAwareSnakeCaseNamingStrategy.cs diff --git a/src/Tribufu.Serialization/README.md b/Source/Tribufu.Serialization/README.md similarity index 100% rename from src/Tribufu.Serialization/README.md rename to Source/Tribufu.Serialization/README.md diff --git a/src/Tribufu.Serialization/Tribufu.Serialization.csproj b/Source/Tribufu.Serialization/Tribufu.Serialization.csproj similarity index 100% rename from src/Tribufu.Serialization/Tribufu.Serialization.csproj rename to Source/Tribufu.Serialization/Tribufu.Serialization.csproj diff --git a/src/Tribufu.Serialization/ULongNullableStringConverter.cs b/Source/Tribufu.Serialization/ULongNullableStringConverter.cs similarity index 100% rename from src/Tribufu.Serialization/ULongNullableStringConverter.cs rename to Source/Tribufu.Serialization/ULongNullableStringConverter.cs diff --git a/src/Tribufu.Serialization/ULongStringConverter.cs b/Source/Tribufu.Serialization/ULongStringConverter.cs similarity index 100% rename from src/Tribufu.Serialization/ULongStringConverter.cs rename to Source/Tribufu.Serialization/ULongStringConverter.cs diff --git a/src/Tribufu/Api/TribufuGeneratedApi.cs b/Source/Tribufu/Api/TribufuGeneratedApi.cs similarity index 100% rename from src/Tribufu/Api/TribufuGeneratedApi.cs rename to Source/Tribufu/Api/TribufuGeneratedApi.cs diff --git a/src/Tribufu/Client/ApiClient.cs b/Source/Tribufu/Client/ApiClient.cs similarity index 100% rename from src/Tribufu/Client/ApiClient.cs rename to Source/Tribufu/Client/ApiClient.cs diff --git a/src/Tribufu/Client/ApiException.cs b/Source/Tribufu/Client/ApiException.cs similarity index 100% rename from src/Tribufu/Client/ApiException.cs rename to Source/Tribufu/Client/ApiException.cs diff --git a/src/Tribufu/Client/ApiResponse.cs b/Source/Tribufu/Client/ApiResponse.cs similarity index 100% rename from src/Tribufu/Client/ApiResponse.cs rename to Source/Tribufu/Client/ApiResponse.cs diff --git a/src/Tribufu/Client/ClientUtils.cs b/Source/Tribufu/Client/ClientUtils.cs similarity index 100% rename from src/Tribufu/Client/ClientUtils.cs rename to Source/Tribufu/Client/ClientUtils.cs diff --git a/src/Tribufu/Client/Configuration.cs b/Source/Tribufu/Client/Configuration.cs similarity index 100% rename from src/Tribufu/Client/Configuration.cs rename to Source/Tribufu/Client/Configuration.cs diff --git a/src/Tribufu/Client/ExceptionFactory.cs b/Source/Tribufu/Client/ExceptionFactory.cs similarity index 100% rename from src/Tribufu/Client/ExceptionFactory.cs rename to Source/Tribufu/Client/ExceptionFactory.cs diff --git a/src/Tribufu/Client/GlobalConfiguration.cs b/Source/Tribufu/Client/GlobalConfiguration.cs similarity index 100% rename from src/Tribufu/Client/GlobalConfiguration.cs rename to Source/Tribufu/Client/GlobalConfiguration.cs diff --git a/src/Tribufu/Client/HttpMethod.cs b/Source/Tribufu/Client/HttpMethod.cs similarity index 100% rename from src/Tribufu/Client/HttpMethod.cs rename to Source/Tribufu/Client/HttpMethod.cs diff --git a/src/Tribufu/Client/IApiAccessor.cs b/Source/Tribufu/Client/IApiAccessor.cs similarity index 100% rename from src/Tribufu/Client/IApiAccessor.cs rename to Source/Tribufu/Client/IApiAccessor.cs diff --git a/src/Tribufu/Client/IAsynchronousClient.cs b/Source/Tribufu/Client/IAsynchronousClient.cs similarity index 100% rename from src/Tribufu/Client/IAsynchronousClient.cs rename to Source/Tribufu/Client/IAsynchronousClient.cs diff --git a/src/Tribufu/Client/IReadableConfiguration.cs b/Source/Tribufu/Client/IReadableConfiguration.cs similarity index 100% rename from src/Tribufu/Client/IReadableConfiguration.cs rename to Source/Tribufu/Client/IReadableConfiguration.cs diff --git a/src/Tribufu/Client/ISynchronousClient.cs b/Source/Tribufu/Client/ISynchronousClient.cs similarity index 100% rename from src/Tribufu/Client/ISynchronousClient.cs rename to Source/Tribufu/Client/ISynchronousClient.cs diff --git a/src/Tribufu/Client/Multimap.cs b/Source/Tribufu/Client/Multimap.cs similarity index 100% rename from src/Tribufu/Client/Multimap.cs rename to Source/Tribufu/Client/Multimap.cs diff --git a/src/Tribufu/Client/OpenAPIDateConverter.cs b/Source/Tribufu/Client/OpenAPIDateConverter.cs similarity index 100% rename from src/Tribufu/Client/OpenAPIDateConverter.cs rename to Source/Tribufu/Client/OpenAPIDateConverter.cs diff --git a/src/Tribufu/Client/RequestOptions.cs b/Source/Tribufu/Client/RequestOptions.cs similarity index 100% rename from src/Tribufu/Client/RequestOptions.cs rename to Source/Tribufu/Client/RequestOptions.cs diff --git a/src/Tribufu/Client/RetryConfiguration.cs b/Source/Tribufu/Client/RetryConfiguration.cs similarity index 100% rename from src/Tribufu/Client/RetryConfiguration.cs rename to Source/Tribufu/Client/RetryConfiguration.cs diff --git a/src/Tribufu/Model/AbstractOpenAPISchema.cs b/Source/Tribufu/Model/AbstractOpenAPISchema.cs similarity index 100% rename from src/Tribufu/Model/AbstractOpenAPISchema.cs rename to Source/Tribufu/Model/AbstractOpenAPISchema.cs diff --git a/src/Tribufu/Model/Application.cs b/Source/Tribufu/Model/Application.cs similarity index 100% rename from src/Tribufu/Model/Application.cs rename to Source/Tribufu/Model/Application.cs diff --git a/src/Tribufu/Model/ApplicationType.cs b/Source/Tribufu/Model/ApplicationType.cs similarity index 100% rename from src/Tribufu/Model/ApplicationType.cs rename to Source/Tribufu/Model/ApplicationType.cs diff --git a/src/Tribufu/Model/AuthorizeRequest.cs b/Source/Tribufu/Model/AuthorizeRequest.cs similarity index 100% rename from src/Tribufu/Model/AuthorizeRequest.cs rename to Source/Tribufu/Model/AuthorizeRequest.cs diff --git a/src/Tribufu/Model/ClientInfo.cs b/Source/Tribufu/Model/ClientInfo.cs similarity index 100% rename from src/Tribufu/Model/ClientInfo.cs rename to Source/Tribufu/Model/ClientInfo.cs diff --git a/src/Tribufu/Model/ClientType.cs b/Source/Tribufu/Model/ClientType.cs similarity index 100% rename from src/Tribufu/Model/ClientType.cs rename to Source/Tribufu/Model/ClientType.cs diff --git a/src/Tribufu/Model/CodeChallengeMethod.cs b/Source/Tribufu/Model/CodeChallengeMethod.cs similarity index 100% rename from src/Tribufu/Model/CodeChallengeMethod.cs rename to Source/Tribufu/Model/CodeChallengeMethod.cs diff --git a/src/Tribufu/Model/CodeResponse.cs b/Source/Tribufu/Model/CodeResponse.cs similarity index 100% rename from src/Tribufu/Model/CodeResponse.cs rename to Source/Tribufu/Model/CodeResponse.cs diff --git a/src/Tribufu/Model/CreateUser.cs b/Source/Tribufu/Model/CreateUser.cs similarity index 100% rename from src/Tribufu/Model/CreateUser.cs rename to Source/Tribufu/Model/CreateUser.cs diff --git a/src/Tribufu/Model/CryptoViewModel.cs b/Source/Tribufu/Model/CryptoViewModel.cs similarity index 100% rename from src/Tribufu/Model/CryptoViewModel.cs rename to Source/Tribufu/Model/CryptoViewModel.cs diff --git a/src/Tribufu/Model/ExternalAccount.cs b/Source/Tribufu/Model/ExternalAccount.cs similarity index 100% rename from src/Tribufu/Model/ExternalAccount.cs rename to Source/Tribufu/Model/ExternalAccount.cs diff --git a/src/Tribufu/Model/Game.cs b/Source/Tribufu/Model/Game.cs similarity index 100% rename from src/Tribufu/Model/Game.cs rename to Source/Tribufu/Model/Game.cs diff --git a/src/Tribufu/Model/GameServer.cs b/Source/Tribufu/Model/GameServer.cs similarity index 100% rename from src/Tribufu/Model/GameServer.cs rename to Source/Tribufu/Model/GameServer.cs diff --git a/src/Tribufu/Model/GameServerCluster.cs b/Source/Tribufu/Model/GameServerCluster.cs similarity index 100% rename from src/Tribufu/Model/GameServerCluster.cs rename to Source/Tribufu/Model/GameServerCluster.cs diff --git a/src/Tribufu/Model/GameServerQuery.cs b/Source/Tribufu/Model/GameServerQuery.cs similarity index 100% rename from src/Tribufu/Model/GameServerQuery.cs rename to Source/Tribufu/Model/GameServerQuery.cs diff --git a/src/Tribufu/Model/GameServerStatus.cs b/Source/Tribufu/Model/GameServerStatus.cs similarity index 100% rename from src/Tribufu/Model/GameServerStatus.cs rename to Source/Tribufu/Model/GameServerStatus.cs diff --git a/src/Tribufu/Model/GrantType.cs b/Source/Tribufu/Model/GrantType.cs similarity index 100% rename from src/Tribufu/Model/GrantType.cs rename to Source/Tribufu/Model/GrantType.cs diff --git a/src/Tribufu/Model/Group.cs b/Source/Tribufu/Model/Group.cs similarity index 100% rename from src/Tribufu/Model/Group.cs rename to Source/Tribufu/Model/Group.cs diff --git a/src/Tribufu/Model/GroupApplication.cs b/Source/Tribufu/Model/GroupApplication.cs similarity index 100% rename from src/Tribufu/Model/GroupApplication.cs rename to Source/Tribufu/Model/GroupApplication.cs diff --git a/src/Tribufu/Model/GroupMember.cs b/Source/Tribufu/Model/GroupMember.cs similarity index 100% rename from src/Tribufu/Model/GroupMember.cs rename to Source/Tribufu/Model/GroupMember.cs diff --git a/src/Tribufu/Model/GroupRank.cs b/Source/Tribufu/Model/GroupRank.cs similarity index 100% rename from src/Tribufu/Model/GroupRank.cs rename to Source/Tribufu/Model/GroupRank.cs diff --git a/src/Tribufu/Model/HashViewModel.cs b/Source/Tribufu/Model/HashViewModel.cs similarity index 100% rename from src/Tribufu/Model/HashViewModel.cs rename to Source/Tribufu/Model/HashViewModel.cs diff --git a/src/Tribufu/Model/IdentityProviderType.cs b/Source/Tribufu/Model/IdentityProviderType.cs similarity index 100% rename from src/Tribufu/Model/IdentityProviderType.cs rename to Source/Tribufu/Model/IdentityProviderType.cs diff --git a/src/Tribufu/Model/IntrospectRequest.cs b/Source/Tribufu/Model/IntrospectRequest.cs similarity index 100% rename from src/Tribufu/Model/IntrospectRequest.cs rename to Source/Tribufu/Model/IntrospectRequest.cs diff --git a/src/Tribufu/Model/IntrospectResponse.cs b/Source/Tribufu/Model/IntrospectResponse.cs similarity index 100% rename from src/Tribufu/Model/IntrospectResponse.cs rename to Source/Tribufu/Model/IntrospectResponse.cs diff --git a/src/Tribufu/Model/IpAddress.cs b/Source/Tribufu/Model/IpAddress.cs similarity index 100% rename from src/Tribufu/Model/IpAddress.cs rename to Source/Tribufu/Model/IpAddress.cs diff --git a/src/Tribufu/Model/LeaderboardItem.cs b/Source/Tribufu/Model/LeaderboardItem.cs similarity index 100% rename from src/Tribufu/Model/LeaderboardItem.cs rename to Source/Tribufu/Model/LeaderboardItem.cs diff --git a/src/Tribufu/Model/LeaderboardOrder.cs b/Source/Tribufu/Model/LeaderboardOrder.cs similarity index 100% rename from src/Tribufu/Model/LeaderboardOrder.cs rename to Source/Tribufu/Model/LeaderboardOrder.cs diff --git a/src/Tribufu/Model/ModelClient.cs b/Source/Tribufu/Model/ModelClient.cs similarity index 100% rename from src/Tribufu/Model/ModelClient.cs rename to Source/Tribufu/Model/ModelClient.cs diff --git a/src/Tribufu/Model/Package.cs b/Source/Tribufu/Model/Package.cs similarity index 100% rename from src/Tribufu/Model/Package.cs rename to Source/Tribufu/Model/Package.cs diff --git a/src/Tribufu/Model/PackageRelease.cs b/Source/Tribufu/Model/PackageRelease.cs similarity index 100% rename from src/Tribufu/Model/PackageRelease.cs rename to Source/Tribufu/Model/PackageRelease.cs diff --git a/src/Tribufu/Model/Product.cs b/Source/Tribufu/Model/Product.cs similarity index 100% rename from src/Tribufu/Model/Product.cs rename to Source/Tribufu/Model/Product.cs diff --git a/src/Tribufu/Model/ProductPrice.cs b/Source/Tribufu/Model/ProductPrice.cs similarity index 100% rename from src/Tribufu/Model/ProductPrice.cs rename to Source/Tribufu/Model/ProductPrice.cs diff --git a/src/Tribufu/Model/ProductType.cs b/Source/Tribufu/Model/ProductType.cs similarity index 100% rename from src/Tribufu/Model/ProductType.cs rename to Source/Tribufu/Model/ProductType.cs diff --git a/src/Tribufu/Model/Profile.cs b/Source/Tribufu/Model/Profile.cs similarity index 100% rename from src/Tribufu/Model/Profile.cs rename to Source/Tribufu/Model/Profile.cs diff --git a/src/Tribufu/Model/ProfileGame.cs b/Source/Tribufu/Model/ProfileGame.cs similarity index 100% rename from src/Tribufu/Model/ProfileGame.cs rename to Source/Tribufu/Model/ProfileGame.cs diff --git a/src/Tribufu/Model/ProfileGroup.cs b/Source/Tribufu/Model/ProfileGroup.cs similarity index 100% rename from src/Tribufu/Model/ProfileGroup.cs rename to Source/Tribufu/Model/ProfileGroup.cs diff --git a/src/Tribufu/Model/ResponseType.cs b/Source/Tribufu/Model/ResponseType.cs similarity index 100% rename from src/Tribufu/Model/ResponseType.cs rename to Source/Tribufu/Model/ResponseType.cs diff --git a/src/Tribufu/Model/RevokeRequest.cs b/Source/Tribufu/Model/RevokeRequest.cs similarity index 100% rename from src/Tribufu/Model/RevokeRequest.cs rename to Source/Tribufu/Model/RevokeRequest.cs diff --git a/src/Tribufu/Model/Search.cs b/Source/Tribufu/Model/Search.cs similarity index 100% rename from src/Tribufu/Model/Search.cs rename to Source/Tribufu/Model/Search.cs diff --git a/src/Tribufu/Model/SearchType.cs b/Source/Tribufu/Model/SearchType.cs similarity index 100% rename from src/Tribufu/Model/SearchType.cs rename to Source/Tribufu/Model/SearchType.cs diff --git a/src/Tribufu/Model/ServerMetrics.cs b/Source/Tribufu/Model/ServerMetrics.cs similarity index 100% rename from src/Tribufu/Model/ServerMetrics.cs rename to Source/Tribufu/Model/ServerMetrics.cs diff --git a/src/Tribufu/Model/StorageFile.cs b/Source/Tribufu/Model/StorageFile.cs similarity index 100% rename from src/Tribufu/Model/StorageFile.cs rename to Source/Tribufu/Model/StorageFile.cs diff --git a/src/Tribufu/Model/TokenHintType.cs b/Source/Tribufu/Model/TokenHintType.cs similarity index 100% rename from src/Tribufu/Model/TokenHintType.cs rename to Source/Tribufu/Model/TokenHintType.cs diff --git a/src/Tribufu/Model/TokenRequest.cs b/Source/Tribufu/Model/TokenRequest.cs similarity index 100% rename from src/Tribufu/Model/TokenRequest.cs rename to Source/Tribufu/Model/TokenRequest.cs diff --git a/src/Tribufu/Model/TokenResponse.cs b/Source/Tribufu/Model/TokenResponse.cs similarity index 100% rename from src/Tribufu/Model/TokenResponse.cs rename to Source/Tribufu/Model/TokenResponse.cs diff --git a/src/Tribufu/Model/TokenType.cs b/Source/Tribufu/Model/TokenType.cs similarity index 100% rename from src/Tribufu/Model/TokenType.cs rename to Source/Tribufu/Model/TokenType.cs diff --git a/src/Tribufu/Model/UpdateProfile.cs b/Source/Tribufu/Model/UpdateProfile.cs similarity index 100% rename from src/Tribufu/Model/UpdateProfile.cs rename to Source/Tribufu/Model/UpdateProfile.cs diff --git a/src/Tribufu/Model/UserInfo.cs b/Source/Tribufu/Model/UserInfo.cs similarity index 100% rename from src/Tribufu/Model/UserInfo.cs rename to Source/Tribufu/Model/UserInfo.cs diff --git a/src/Tribufu/Model/UserType.cs b/Source/Tribufu/Model/UserType.cs similarity index 100% rename from src/Tribufu/Model/UserType.cs rename to Source/Tribufu/Model/UserType.cs diff --git a/src/Tribufu/Tribufu.csproj b/Source/Tribufu/Tribufu.csproj similarity index 100% rename from src/Tribufu/Tribufu.csproj rename to Source/Tribufu/Tribufu.csproj diff --git a/src/Tribufu/TribufuApi.cs b/Source/Tribufu/TribufuApi.cs similarity index 100% rename from src/Tribufu/TribufuApi.cs rename to Source/Tribufu/TribufuApi.cs diff --git a/src/Tribufu/TribufuApiSingleton.cs b/Source/Tribufu/TribufuApiSingleton.cs similarity index 100% rename from src/Tribufu/TribufuApiSingleton.cs rename to Source/Tribufu/TribufuApiSingleton.cs diff --git a/Tribufu.slnx b/Tribufu.slnx deleted file mode 100644 index c96674e..0000000 --- a/Tribufu.slnx +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/TribufuDotNet.slnx b/TribufuDotNet.slnx new file mode 100644 index 0000000..cb7cb6c --- /dev/null +++ b/TribufuDotNet.slnx @@ -0,0 +1,13 @@ + + + + + + + + + + + + + diff --git a/vendor/openapi-generator/LICENSE b/Vendor/openapi-generator/LICENSE similarity index 100% rename from vendor/openapi-generator/LICENSE rename to Vendor/openapi-generator/LICENSE diff --git a/vendor/openapi-generator/openapi-generator-cli.jar b/Vendor/openapi-generator/openapi-generator-cli.jar similarity index 100% rename from vendor/openapi-generator/openapi-generator-cli.jar rename to Vendor/openapi-generator/openapi-generator-cli.jar diff --git a/releases/.gitkeep b/releases/.gitkeep deleted file mode 100644 index e69de29..0000000 diff --git a/scripts/package.ps1 b/scripts/package.ps1 deleted file mode 100644 index b496845..0000000 --- a/scripts/package.ps1 +++ /dev/null @@ -1,7 +0,0 @@ -#!/usr/bin/env pwsh - -Get-ChildItem ./releases -Filter *.nupkg -Recurse -Force | Remove-Item -Force - -dotnet clean -dotnet build -c Release -dotnet pack -c Release -o ./releases diff --git a/src/Tribufu/Model/Account.cs b/src/Tribufu/Model/Account.cs deleted file mode 100644 index 91b4c34..0000000 --- a/src/Tribufu/Model/Account.cs +++ /dev/null @@ -1,156 +0,0 @@ -/* - * Tribufu API - * - * API to access Tribufu services. - * - * The version of the OpenAPI document: 1.3.0 - * Contact: contact@tribufu.com - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using System; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using System.IO; -using System.Runtime.Serialization; -using System.Text; -using System.Text.RegularExpressions; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; -using OpenAPIDateConverter = Tribufu.Client.OpenAPIDateConverter; - -namespace Tribufu.Model -{ - /// - /// Account - /// - [DataContract(Name = "Account")] - public partial class Account : IValidatableObject - { - - /// - /// Gets or Sets Provider - /// - [DataMember(Name = "provider", IsRequired = true, EmitDefaultValue = true)] - public LoginProvider Provider { get; set; } - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected Account() { } - /// - /// Initializes a new instance of the class. - /// - /// id (required). - /// name. - /// provider (required). - /// userId. - /// authorized. - /// fields. - /// created. - /// updated. - public Account(string id = default(string), string name = default(string), LoginProvider provider = default(LoginProvider), string userId = default(string), bool authorized = default(bool), Object fields = default(Object), DateTime created = default(DateTime), DateTime? updated = default(DateTime?)) - { - // to ensure "id" is required (not null) - if (id == null) - { - throw new ArgumentNullException("id is a required property for Account and cannot be null"); - } - this.Id = id; - this.Provider = provider; - this.Name = name; - this.UserId = userId; - this.Authorized = authorized; - this.Fields = fields; - this.Created = created; - this.Updated = updated; - } - - /// - /// Gets or Sets Id - /// - [DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)] - public string Id { get; set; } - - /// - /// Gets or Sets Name - /// - [DataMember(Name = "name", EmitDefaultValue = true)] - public string Name { get; set; } - - /// - /// Gets or Sets UserId - /// - [DataMember(Name = "user_id", EmitDefaultValue = false)] - public string UserId { get; set; } - - /// - /// Gets or Sets Authorized - /// - [DataMember(Name = "authorized", EmitDefaultValue = true)] - public bool Authorized { get; set; } - - /// - /// Gets or Sets Fields - /// - [DataMember(Name = "fields", EmitDefaultValue = true)] - public Object Fields { get; set; } - - /// - /// Gets or Sets Created - /// - [DataMember(Name = "created", EmitDefaultValue = false)] - public DateTime Created { get; set; } - - /// - /// Gets or Sets Updated - /// - [DataMember(Name = "updated", EmitDefaultValue = true)] - public DateTime? Updated { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - StringBuilder sb = new StringBuilder(); - sb.Append("class Account {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" Name: ").Append(Name).Append("\n"); - sb.Append(" Provider: ").Append(Provider).Append("\n"); - sb.Append(" UserId: ").Append(UserId).Append("\n"); - sb.Append(" Authorized: ").Append(Authorized).Append("\n"); - sb.Append(" Fields: ").Append(Fields).Append("\n"); - sb.Append(" Created: ").Append(Created).Append("\n"); - sb.Append(" Updated: ").Append(Updated).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/src/Tribufu/Model/LoginProvider.cs b/src/Tribufu/Model/LoginProvider.cs deleted file mode 100644 index 1180247..0000000 --- a/src/Tribufu/Model/LoginProvider.cs +++ /dev/null @@ -1,78 +0,0 @@ -/* - * Tribufu API - * - * API to access Tribufu services. - * - * The version of the OpenAPI document: 1.3.0 - * Contact: contact@tribufu.com - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using System; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using System.IO; -using System.Runtime.Serialization; -using System.Text; -using System.Text.RegularExpressions; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; -using OpenAPIDateConverter = Tribufu.Client.OpenAPIDateConverter; - -namespace Tribufu.Model -{ - /// - /// Defines LoginProvider - /// - [JsonConverter(typeof(StringEnumConverter))] - public enum LoginProvider - { - /// - /// Enum Steam for value: steam - /// - [EnumMember(Value = "steam")] - Steam, - - /// - /// Enum Epic for value: epic - /// - [EnumMember(Value = "epic")] - Epic, - - /// - /// Enum Discord for value: discord - /// - [EnumMember(Value = "discord")] - Discord, - - /// - /// Enum Microsoft for value: microsoft - /// - [EnumMember(Value = "microsoft")] - Microsoft, - - /// - /// Enum Playstation for value: playstation - /// - [EnumMember(Value = "playstation")] - Playstation, - - /// - /// Enum Google for value: google - /// - [EnumMember(Value = "google")] - Google, - - /// - /// Enum Apple for value: apple - /// - [EnumMember(Value = "apple")] - Apple - } - -} From 63ebbcb234ed2c5eaa06a2f7bf542bff542c25f0 Mon Sep 17 00:00:00 2001 From: Guilherme Werner Date: Sun, 21 Jun 2026 12:27:26 -0300 Subject: [PATCH 52/52] Update repository name --- Directory.Build.props | 2 +- README.md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Directory.Build.props b/Directory.Build.props index afa9c8b..5e893d6 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -5,7 +5,7 @@ Copyright (c) Tribufu. All Rights Reserved. MIT git - https://github.com/tribufu/tribufu-dotnet + https://github.com/Tribufu/TribufuDotNet 1.3.0 $(Version).0 $(NoWarn);0618;1591;1998;2002;8767 diff --git a/README.md b/README.md index e2bc920..a5bf230 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ [nuget-badge]: https://img.shields.io/nuget/v/Tribufu.svg [nuget-url]: https://www.nuget.org/packages/Tribufu [mit-badge]: https://img.shields.io/badge/license-MIT-blue.svg -[mit-url]: https://github.com/tribufu/tribufu-dotnet/blob/main/LICENSE.txt +[mit-url]: https://github.com/Tribufu/TribufuDotNet/blob/main/LICENSE.txt [discord-badge]: https://img.shields.io/discord/276504514616623104.svg?logo=discord&style=flat-square [discord-url]: https://www.tribufu.com/discord @@ -20,4 +20,4 @@ This project is licensed under the [MIT License]. -[MIT License]: https://github.com/tribufu/tribufu-dotnet/blob/main/LICENSE.txt +[MIT License]: https://github.com/Tribufu/TribufuDotNet/blob/main/LICENSE.txt