diff --git a/.gitignore b/.gitignore index c7ac18e..114d915 100644 --- a/.gitignore +++ b/.gitignore @@ -1,11 +1,14 @@ +.agents/ +.codex/ .vs/ bin/ +Binaries +Intermediate/ obj/ -releases/* -!releases/.gitkeep .DS_Store .env *.filters *.user +*.lscache desktop.ini diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index 7def927..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,7 +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/File.cs +src/Tribufu/Model/ExternalAccount.cs src/Tribufu/Model/Game.cs src/Tribufu/Model/GameServer.cs src/Tribufu/Model/GameServerCluster.cs @@ -34,19 +33,22 @@ 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 +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 +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 96c42d7..5e893d6 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -5,9 +5,17 @@ Copyright (c) Tribufu. All Rights Reserved. MIT git - https://github.com/tribufu/tribufu-dotnet - 1.2.0 + https://github.com/Tribufu/TribufuDotNet + 1.3.0 $(Version).0 $(NoWarn);0618;1591;1998;2002;8767 + + $(SolutionDir)Intermediate\DotNet\$(MSBuildProjectName)\ + $(BaseIntermediateOutputPath)$(Configuration)\ + $(BaseIntermediateOutputPath) + $(IntermediateOutputPath) + $(SolutionDir)Binaries\$(Configuration)\DotNet\ + $(SolutionDir)Intermediate\ + diff --git a/README.md b/README.md index 1108fa0..a5bf230 100644 --- a/README.md +++ b/README.md @@ -6,10 +6,10 @@ [![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 +[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 diff --git a/scripts/generate.ps1 b/Scripts/Generate.ps1 similarity index 58% rename from scripts/generate.ps1 rename to Scripts/Generate.ps1 index 7f14cb8..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 ` @@ -7,6 +9,15 @@ 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 + +$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/Repositories/IRepository.cs b/Source/Tribufu.EntityFrameworkCore/IRepository.cs similarity index 64% rename from src/Tribufu.EntityFrameworkCore/Repositories/IRepository.cs rename to Source/Tribufu.EntityFrameworkCore/IRepository.cs index dbb4b19..0e00b08 100644 --- a/src/Tribufu.EntityFrameworkCore/Repositories/IRepository.cs +++ b/Source/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/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/Repositories/Repository.cs b/Source/Tribufu.EntityFrameworkCore/Repository.cs similarity index 70% rename from src/Tribufu.EntityFrameworkCore/Repositories/Repository.cs rename to Source/Tribufu.EntityFrameworkCore/Repository.cs index c70a3c5..6851858 100644 --- a/src/Tribufu.EntityFrameworkCore/Repositories/Repository.cs +++ b/Source/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(); } } } 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 88% rename from src/Tribufu/Api/TribufuGeneratedApi.cs rename to Source/Tribufu/Api/TribufuGeneratedApi.cs index c861352..096ce48 100644 --- a/src/Tribufu/Api/TribufuGeneratedApi.cs +++ b/Source/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.4.3 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -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,38 +316,7 @@ namespace Tribufu.Api /// (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); + ApiResponse CreateGroupWithHttpInfo(Object body = default(Object), int operationIndex = 0); /// /// Create a new token with grant type. /// @@ -355,7 +324,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 +336,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 +347,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 +359,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. /// @@ -565,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. @@ -577,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. /// @@ -589,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. @@ -602,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. /// @@ -639,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. @@ -652,10 +621,10 @@ 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 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> @@ -707,7 +676,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 +690,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 +1059,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 +1076,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 +1237,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 +1255,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. /// @@ -1368,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. @@ -1380,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. /// @@ -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. /// @@ -1484,7 +1453,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 +1467,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. /// @@ -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. /// /// @@ -1645,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. @@ -1657,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. /// @@ -1930,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. @@ -1942,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. /// @@ -1954,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. @@ -1967,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. /// @@ -2134,7 +2103,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 +2115,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 +2126,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 +2138,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 +2149,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 +2161,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 +2172,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 +2184,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 +2192,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 +2204,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 +2212,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 +2224,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 +2235,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 +2247,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 +2259,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 +2272,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 +2284,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 +2297,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 +2309,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 +2322,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 +2335,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 +2349,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 +2362,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 +2376,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 +2388,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 +2401,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 +2413,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 +2426,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 +2438,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 +2451,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 +2464,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 +2478,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 +2499,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 +2512,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 +2525,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 +2539,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 +2552,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 +2566,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 +2579,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 +2593,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 +2607,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 +2622,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 +2634,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 +2647,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 +2659,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 +2672,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 +2684,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 +2697,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 +2709,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 +2722,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 +2735,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 +2749,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 +2762,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 +2776,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 +2788,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,40 +2801,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)); - /// - /// 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)); + 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. /// @@ -2877,7 +2813,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 +2826,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 +2838,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 +2851,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. /// @@ -3105,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. @@ -3118,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. /// @@ -3131,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. @@ -3145,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. /// @@ -3185,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. @@ -3199,10 +3135,10 @@ 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 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> @@ -3262,7 +3198,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 +3213,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 +3614,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 +3632,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 +3806,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 +3825,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. /// @@ -3978,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. @@ -3991,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. /// @@ -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. /// @@ -4107,7 +4043,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 +4058,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. /// @@ -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. /// /// @@ -4285,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. @@ -4298,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. /// @@ -4594,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. @@ -4607,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. /// @@ -4620,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. @@ -4634,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. /// @@ -4814,7 +4750,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 +4763,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 +4775,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 +4788,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 +4800,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 +4813,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 +4825,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 +4838,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 +4850,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 +4863,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 +4875,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 +4888,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 +4900,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 +4913,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 +4926,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 +4940,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 +4953,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 +4967,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 +4980,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 +4994,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 +5008,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 +5023,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 +5037,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 +5052,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 +5065,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 +5079,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 +5092,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 +5106,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 +5119,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 +5133,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 +5147,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 +5162,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 +5290,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 +5303,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(); @@ -5398,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); @@ -5426,7 +5357,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 +5371,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(); @@ -5471,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); @@ -5500,7 +5426,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 +5439,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) @@ -5553,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); @@ -5582,7 +5503,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 +5517,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) @@ -5636,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); @@ -5665,7 +5581,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 +5594,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) @@ -5718,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); @@ -5747,7 +5658,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 +5672,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) @@ -5801,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); @@ -5830,7 +5736,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 +5749,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) @@ -5880,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); @@ -5909,7 +5810,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 +5824,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) @@ -5960,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); @@ -5990,7 +5886,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 +5900,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) @@ -6041,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); @@ -6071,7 +5962,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 +5977,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) @@ -6123,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); @@ -6151,7 +6037,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 +6050,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(); @@ -6195,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); @@ -6223,7 +6104,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 +6118,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(); @@ -6268,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); @@ -6296,7 +6172,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 +6184,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(); @@ -6338,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); @@ -6366,7 +6237,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 +6250,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(); @@ -6409,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); @@ -6437,7 +6303,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 +6315,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(); @@ -6479,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); @@ -6507,7 +6368,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 +6381,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(); @@ -6550,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); @@ -6578,7 +6434,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 +6446,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(); @@ -6620,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); @@ -6648,7 +6499,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 +6512,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(); @@ -6691,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); @@ -6720,7 +6566,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 +6579,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(); @@ -6763,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); @@ -6792,7 +6633,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 +6647,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(); @@ -6836,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); @@ -6865,7 +6701,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 +6714,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(); @@ -6908,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); @@ -6937,7 +6768,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 +6782,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(); @@ -6981,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); @@ -7009,7 +6835,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 +6847,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(); @@ -7051,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); @@ -7079,7 +6900,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 +6913,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(); @@ -7122,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); @@ -7143,235 +6959,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. /// @@ -7379,7 +6966,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 +6979,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(); @@ -7424,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); @@ -7452,7 +7034,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 +7048,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(); @@ -7498,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); @@ -7526,7 +7103,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 +7115,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(); @@ -7568,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); @@ -7596,7 +7168,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 +7181,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(); @@ -7639,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); @@ -7714,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); @@ -7790,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); @@ -7865,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); @@ -7941,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); @@ -8016,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); @@ -8092,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); @@ -8169,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); @@ -8247,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); @@ -8324,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); @@ -8402,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); @@ -8477,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); @@ -8553,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); @@ -8628,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); @@ -8704,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); @@ -8731,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; } @@ -8744,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(); @@ -8778,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); @@ -8805,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; } @@ -8819,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(); @@ -8853,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) { @@ -8881,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; } @@ -8895,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[] { @@ -8936,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); @@ -8964,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; } @@ -8979,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(); @@ -9020,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) { @@ -9100,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); @@ -9181,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); @@ -9209,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; } @@ -9223,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(); @@ -9261,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); @@ -9289,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; } @@ -9304,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(); @@ -9342,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) { @@ -9364,7 +8809,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 +8822,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 /// @@ -9419,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); @@ -9440,7 +8880,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 +8894,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 /// @@ -9497,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); @@ -9565,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); @@ -9634,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); @@ -9664,7 +9089,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 +9104,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(); @@ -9720,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); @@ -9750,7 +9170,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 +9186,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(); @@ -9807,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); @@ -9875,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); @@ -9944,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); @@ -10021,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); @@ -10099,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); @@ -10179,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); @@ -10260,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); @@ -10342,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); @@ -10425,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); @@ -10502,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); @@ -10580,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); @@ -10659,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); @@ -10739,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); @@ -10816,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); @@ -10894,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); @@ -10973,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); @@ -11053,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); @@ -11142,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); @@ -11232,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); @@ -11323,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); @@ -11415,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); @@ -11495,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); @@ -11576,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); @@ -11658,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); @@ -11741,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); @@ -11830,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); @@ -11920,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); @@ -12011,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); @@ -12103,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); @@ -12136,7 +11411,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 +11429,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(); @@ -12207,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); @@ -12240,7 +11510,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 +11529,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(); @@ -12312,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); @@ -12401,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); @@ -12491,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); @@ -12582,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); @@ -12674,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); @@ -12742,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); @@ -12811,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); @@ -12881,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); @@ -12952,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); @@ -13020,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); @@ -13089,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); @@ -13159,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); @@ -13230,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); @@ -13264,7 +12469,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 +12488,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(); @@ -13336,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); @@ -13370,7 +12570,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 +12590,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(); @@ -13443,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); @@ -13523,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); @@ -13604,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); @@ -13681,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); @@ -13759,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); @@ -13836,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); @@ -13914,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); @@ -13942,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; @@ -13955,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[] { @@ -13985,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); @@ -14013,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; @@ -14027,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(); @@ -14057,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); @@ -14084,10 +13251,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 +13264,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) @@ -14134,14 +13301,9 @@ 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); + var localVarResponse = this.Client.Get>("/v1/groups/{id}/games", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("GetGroupGames", localVarResponse); @@ -14161,10 +13323,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 +13337,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) @@ -14212,14 +13374,9 @@ 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); + var localVarResponse = await this.AsynchronousClient.GetAsync>("/v1/groups/{id}/games", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -14291,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); @@ -14371,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); @@ -14451,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); @@ -14532,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); @@ -14609,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); @@ -14687,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); @@ -14717,7 +13844,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 +13859,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(); @@ -14773,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); @@ -14803,7 +13925,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 +13941,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(); @@ -14860,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); @@ -14934,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); @@ -15009,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); @@ -15086,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); @@ -15164,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); @@ -15244,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); @@ -15325,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); @@ -15346,6 +14433,302 @@ 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; + + + // 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; + + + // 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; + + + // 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; + + + // 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. /// @@ -15391,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); @@ -15458,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); @@ -15479,332 +14852,16 @@ 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> /// /// 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; } @@ -15814,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) @@ -15851,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); @@ -15878,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; } @@ -15892,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) @@ -15929,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) { @@ -16006,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); @@ -16084,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); @@ -16163,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); @@ -16243,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); @@ -16320,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); @@ -16398,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); @@ -16477,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); @@ -16557,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); @@ -16634,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); @@ -16712,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); @@ -16791,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); @@ -16871,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); @@ -16939,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); @@ -17008,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); @@ -17085,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); @@ -17163,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); @@ -17242,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); @@ -17322,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); @@ -17399,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); @@ -17477,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); @@ -17556,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); @@ -17636,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); @@ -17664,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; @@ -17677,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[] { @@ -17707,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); @@ -17735,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; @@ -17749,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(); @@ -17779,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); @@ -17808,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; @@ -17822,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[] { @@ -17852,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); @@ -17881,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; @@ -17896,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(); @@ -17926,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); @@ -18006,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); @@ -18087,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); @@ -18169,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); @@ -18252,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); @@ -18329,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); @@ -18407,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); @@ -18486,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); @@ -18566,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); @@ -18655,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); @@ -18745,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); @@ -18836,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); @@ -18928,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); @@ -18956,7 +17837,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 +17850,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(); @@ -19000,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); @@ -19028,7 +17904,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 +17918,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(); @@ -19073,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); @@ -19101,7 +17972,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 +17985,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(); @@ -19145,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); @@ -19173,7 +18039,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 +18053,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(); @@ -19218,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); @@ -19246,7 +18107,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 +18120,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(); @@ -19290,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); @@ -19318,7 +18174,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 +18188,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(); @@ -19363,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); @@ -19391,7 +18242,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 +18255,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(); @@ -19435,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); @@ -19463,7 +18309,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 +18323,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(); @@ -19508,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); @@ -19536,7 +18377,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 +18390,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(); @@ -19581,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); @@ -19609,7 +18445,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 +18459,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(); @@ -19655,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); @@ -19683,7 +18514,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 +18526,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(); @@ -19726,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); @@ -19754,7 +18580,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 +18593,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(); @@ -19798,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); @@ -19826,7 +18647,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 +18660,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(); @@ -19870,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); @@ -19898,7 +18714,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 +18728,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(); @@ -19943,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); @@ -19972,7 +18783,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 +18796,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) @@ -20022,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); @@ -20051,7 +18857,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 +18871,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) @@ -20102,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); @@ -20131,7 +18932,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 +18945,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) @@ -20181,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); @@ -20210,7 +19006,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 +19020,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) @@ -20261,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); @@ -20290,7 +19081,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 +19094,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) @@ -20340,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); @@ -20369,7 +19155,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 +19169,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) @@ -20420,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); @@ -20450,7 +19231,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 +19245,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) @@ -20501,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); @@ -20531,7 +19307,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 +19322,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) @@ -20583,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); @@ -20613,7 +19384,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 +19398,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) @@ -20664,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); @@ -20694,7 +19460,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 +19475,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) @@ -20746,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); @@ -20775,7 +19536,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 +19549,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) @@ -20825,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); @@ -20854,7 +19610,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 +19624,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) @@ -20905,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); @@ -20934,7 +19685,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 +19698,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) @@ -20984,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); @@ -21013,7 +19759,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 +19773,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) @@ -21064,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); @@ -21093,7 +19834,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 +19848,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) @@ -21145,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); @@ -21174,7 +19910,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 +19925,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) @@ -21227,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); @@ -21257,7 +19988,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 +20003,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) @@ -21310,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); @@ -21340,7 +20066,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 +20082,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) @@ -21394,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/Source/Tribufu/Client/ApiClient.cs similarity index 99% rename from src/Tribufu/Client/ApiClient.cs rename to Source/Tribufu/Client/ApiClient.cs index 46fc23e..6e8b67c 100644 --- a/src/Tribufu/Client/ApiClient.cs +++ b/Source/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.4.3 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -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/ApiException.cs b/Source/Tribufu/Client/ApiException.cs similarity index 97% rename from src/Tribufu/Client/ApiException.cs rename to Source/Tribufu/Client/ApiException.cs index 6c05a2b..496d053 100644 --- a/src/Tribufu/Client/ApiException.cs +++ b/Source/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.4.3 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Client/ApiResponse.cs b/Source/Tribufu/Client/ApiResponse.cs similarity index 99% rename from src/Tribufu/Client/ApiResponse.cs rename to Source/Tribufu/Client/ApiResponse.cs index 8fbc838..b335d0a 100644 --- a/src/Tribufu/Client/ApiResponse.cs +++ b/Source/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.4.3 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Client/ClientUtils.cs b/Source/Tribufu/Client/ClientUtils.cs similarity index 94% rename from src/Tribufu/Client/ClientUtils.cs rename to Source/Tribufu/Client/ClientUtils.cs index d114f0b..a4a40ac 100644 --- a/src/Tribufu/Client/ClientUtils.cs +++ b/Source/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.4.3 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -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/Client/Configuration.cs b/Source/Tribufu/Client/Configuration.cs similarity index 99% rename from src/Tribufu/Client/Configuration.cs rename to Source/Tribufu/Client/Configuration.cs index 50014fc..bea1d2d 100644 --- a/src/Tribufu/Client/Configuration.cs +++ b/Source/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.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.2.6\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/Source/Tribufu/Client/ExceptionFactory.cs similarity index 91% rename from src/Tribufu/Client/ExceptionFactory.cs rename to Source/Tribufu/Client/ExceptionFactory.cs index 8d28cc4..64d31e7 100644 --- a/src/Tribufu/Client/ExceptionFactory.cs +++ b/Source/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.4.3 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Client/GlobalConfiguration.cs b/Source/Tribufu/Client/GlobalConfiguration.cs similarity index 97% rename from src/Tribufu/Client/GlobalConfiguration.cs rename to Source/Tribufu/Client/GlobalConfiguration.cs index 7641592..21a4195 100644 --- a/src/Tribufu/Client/GlobalConfiguration.cs +++ b/Source/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.4.3 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Client/HttpMethod.cs b/Source/Tribufu/Client/HttpMethod.cs similarity index 94% rename from src/Tribufu/Client/HttpMethod.cs rename to Source/Tribufu/Client/HttpMethod.cs index 4c35694..7df4f3a 100644 --- a/src/Tribufu/Client/HttpMethod.cs +++ b/Source/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.4.3 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Client/IApiAccessor.cs b/Source/Tribufu/Client/IApiAccessor.cs similarity index 95% rename from src/Tribufu/Client/IApiAccessor.cs rename to Source/Tribufu/Client/IApiAccessor.cs index 00989a5..7447d6a 100644 --- a/src/Tribufu/Client/IApiAccessor.cs +++ b/Source/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.4.3 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Client/IAsynchronousClient.cs b/Source/Tribufu/Client/IAsynchronousClient.cs similarity index 99% rename from src/Tribufu/Client/IAsynchronousClient.cs rename to Source/Tribufu/Client/IAsynchronousClient.cs index 23d76de..429cbaa 100644 --- a/src/Tribufu/Client/IAsynchronousClient.cs +++ b/Source/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.4.3 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Client/IReadableConfiguration.cs b/Source/Tribufu/Client/IReadableConfiguration.cs similarity index 98% rename from src/Tribufu/Client/IReadableConfiguration.cs rename to Source/Tribufu/Client/IReadableConfiguration.cs index 892dbe4..fba571c 100644 --- a/src/Tribufu/Client/IReadableConfiguration.cs +++ b/Source/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.4.3 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Client/ISynchronousClient.cs b/Source/Tribufu/Client/ISynchronousClient.cs similarity index 99% rename from src/Tribufu/Client/ISynchronousClient.cs rename to Source/Tribufu/Client/ISynchronousClient.cs index d4618ad..a1cfb4f 100644 --- a/src/Tribufu/Client/ISynchronousClient.cs +++ b/Source/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.4.3 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Client/Multimap.cs b/Source/Tribufu/Client/Multimap.cs similarity index 99% rename from src/Tribufu/Client/Multimap.cs rename to Source/Tribufu/Client/Multimap.cs index d56da96..a83d159 100644 --- a/src/Tribufu/Client/Multimap.cs +++ b/Source/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.4.3 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Client/OpenAPIDateConverter.cs b/Source/Tribufu/Client/OpenAPIDateConverter.cs similarity index 94% rename from src/Tribufu/Client/OpenAPIDateConverter.cs rename to Source/Tribufu/Client/OpenAPIDateConverter.cs index 8caf5d9..4452f49 100644 --- a/src/Tribufu/Client/OpenAPIDateConverter.cs +++ b/Source/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.4.3 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Client/RequestOptions.cs b/Source/Tribufu/Client/RequestOptions.cs similarity index 98% rename from src/Tribufu/Client/RequestOptions.cs rename to Source/Tribufu/Client/RequestOptions.cs index 567d320..2a7cc7a 100644 --- a/src/Tribufu/Client/RequestOptions.cs +++ b/Source/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.4.3 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Client/RetryConfiguration.cs b/Source/Tribufu/Client/RetryConfiguration.cs similarity index 93% rename from src/Tribufu/Client/RetryConfiguration.cs rename to Source/Tribufu/Client/RetryConfiguration.cs index 151393a..c7604ca 100644 --- a/src/Tribufu/Client/RetryConfiguration.cs +++ b/Source/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.4.3 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Model/AbstractOpenAPISchema.cs b/Source/Tribufu/Model/AbstractOpenAPISchema.cs similarity index 98% rename from src/Tribufu/Model/AbstractOpenAPISchema.cs rename to Source/Tribufu/Model/AbstractOpenAPISchema.cs index a45aa18..0a5ee40 100644 --- a/src/Tribufu/Model/AbstractOpenAPISchema.cs +++ b/Source/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.4.3 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Model/Application.cs b/Source/Tribufu/Model/Application.cs similarity index 87% rename from src/Tribufu/Model/Application.cs rename to Source/Tribufu/Model/Application.cs index d071767..ec6e6b8 100644 --- a/src/Tribufu/Model/Application.cs +++ b/Source/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.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/Source/Tribufu/Model/ApplicationType.cs similarity index 85% rename from src/Tribufu/Model/ApplicationType.cs rename to Source/Tribufu/Model/ApplicationType.cs index 6196ccd..d3cd21f 100644 --- a/src/Tribufu/Model/ApplicationType.cs +++ b/Source/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.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/Source/Tribufu/Model/AuthorizeRequest.cs similarity index 99% rename from src/Tribufu/Model/AuthorizeRequest.cs rename to Source/Tribufu/Model/AuthorizeRequest.cs index c06ebf3..6f9a8a3 100644 --- a/src/Tribufu/Model/AuthorizeRequest.cs +++ b/Source/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.4.3 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Model/ClientInfo.cs b/Source/Tribufu/Model/ClientInfo.cs similarity index 98% rename from src/Tribufu/Model/ClientInfo.cs rename to Source/Tribufu/Model/ClientInfo.cs index edfd090..51a15f2 100644 --- a/src/Tribufu/Model/ClientInfo.cs +++ b/Source/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.4.3 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Model/ClientType.cs b/Source/Tribufu/Model/ClientType.cs similarity index 96% rename from src/Tribufu/Model/ClientType.cs rename to Source/Tribufu/Model/ClientType.cs index c6d9c41..b2acac7 100644 --- a/src/Tribufu/Model/ClientType.cs +++ b/Source/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.4.3 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Model/CodeChallengeMethod.cs b/Source/Tribufu/Model/CodeChallengeMethod.cs similarity index 95% rename from src/Tribufu/Model/CodeChallengeMethod.cs rename to Source/Tribufu/Model/CodeChallengeMethod.cs index d74091e..6025fd8 100644 --- a/src/Tribufu/Model/CodeChallengeMethod.cs +++ b/Source/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.4.3 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Model/CodeResponse.cs b/Source/Tribufu/Model/CodeResponse.cs similarity index 98% rename from src/Tribufu/Model/CodeResponse.cs rename to Source/Tribufu/Model/CodeResponse.cs index 3f1a4e3..4619640 100644 --- a/src/Tribufu/Model/CodeResponse.cs +++ b/Source/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.4.3 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Model/CreateUser.cs b/Source/Tribufu/Model/CreateUser.cs similarity index 94% rename from src/Tribufu/Model/CreateUser.cs rename to Source/Tribufu/Model/CreateUser.cs index 5fc723a..c8acf12 100644 --- a/src/Tribufu/Model/CreateUser.cs +++ b/Source/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.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/Source/Tribufu/Model/CryptoViewModel.cs similarity index 98% rename from src/Tribufu/Model/CryptoViewModel.cs rename to Source/Tribufu/Model/CryptoViewModel.cs index 72f9aaa..5b563a2 100644 --- a/src/Tribufu/Model/CryptoViewModel.cs +++ b/Source/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.4.3 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Model/Account.cs b/Source/Tribufu/Model/ExternalAccount.cs similarity index 54% rename from src/Tribufu/Model/Account.cs rename to Source/Tribufu/Model/ExternalAccount.cs index 6ac1a13..f24245b 100644 --- a/src/Tribufu/Model/Account.cs +++ b/Source/Tribufu/Model/ExternalAccount.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.4.3 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -27,68 +27,70 @@ using OpenAPIDateConverter = Tribufu.Client.OpenAPIDateConverter; namespace Tribufu.Model { /// - /// Account + /// ExternalAccount /// - [DataContract(Name = "Account")] - public partial class Account : IValidatableObject + [DataContract(Name = "ExternalAccount")] + public partial class ExternalAccount : IValidatableObject { /// /// Gets or Sets Provider /// [DataMember(Name = "provider", IsRequired = true, EmitDefaultValue = true)] - public LoginProvider Provider { get; set; } + public IdentityProviderType Provider { get; set; } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// [JsonConstructorAttribute] - protected Account() { } + protected ExternalAccount() { } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - /// id (required). - /// name. - /// provider (required). /// userId. + /// provider (required). + /// externalId (required). + /// name. /// 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?)) + /// 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?)) { - // 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; + // 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.Created = created; - this.Updated = updated; + this.CreatedAt = createdAt; + this.UpdatedAt = updatedAt; + this.DeletedAt = deletedAt; } - /// - /// 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 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 /// @@ -99,19 +101,25 @@ namespace Tribufu.Model /// Gets or Sets Fields /// [DataMember(Name = "fields", EmitDefaultValue = true)] - public Object Fields { get; set; } + public Dictionary Fields { 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 @@ -120,15 +128,16 @@ namespace Tribufu.Model 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("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(" 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(); } @@ -149,6 +158,18 @@ namespace Tribufu.Model /// 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/Source/Tribufu/Model/Game.cs similarity index 88% rename from src/Tribufu/Model/Game.cs rename to Source/Tribufu/Model/Game.cs index dabb0a1..638a09e 100644 --- a/src/Tribufu/Model/Game.cs +++ b/Source/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.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/Source/Tribufu/Model/GameServer.cs similarity index 89% rename from src/Tribufu/Model/GameServer.cs rename to Source/Tribufu/Model/GameServer.cs index 03baf5f..283a689 100644 --- a/src/Tribufu/Model/GameServer.cs +++ b/Source/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.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/Source/Tribufu/Model/GameServerCluster.cs similarity index 85% rename from src/Tribufu/Model/GameServerCluster.cs rename to Source/Tribufu/Model/GameServerCluster.cs index 917a14a..8c93d83 100644 --- a/src/Tribufu/Model/GameServerCluster.cs +++ b/Source/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.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/Source/Tribufu/Model/GameServerQuery.cs similarity index 92% rename from src/Tribufu/Model/GameServerQuery.cs rename to Source/Tribufu/Model/GameServerQuery.cs index a283508..1b31d4d 100644 --- a/src/Tribufu/Model/GameServerQuery.cs +++ b/Source/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.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/Source/Tribufu/Model/GameServerStatus.cs similarity index 96% rename from src/Tribufu/Model/GameServerStatus.cs rename to Source/Tribufu/Model/GameServerStatus.cs index a27950f..35648e5 100644 --- a/src/Tribufu/Model/GameServerStatus.cs +++ b/Source/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.4.3 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Model/GrantType.cs b/Source/Tribufu/Model/GrantType.cs similarity index 96% rename from src/Tribufu/Model/GrantType.cs rename to Source/Tribufu/Model/GrantType.cs index 45760bd..d371edc 100644 --- a/src/Tribufu/Model/GrantType.cs +++ b/Source/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.4.3 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Model/Group.cs b/Source/Tribufu/Model/Group.cs similarity index 79% rename from src/Tribufu/Model/Group.cs rename to Source/Tribufu/Model/Group.cs index 31935dd..474f9ad 100644 --- a/src/Tribufu/Model/Group.cs +++ b/Source/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.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(); } @@ -221,6 +230,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/Source/Tribufu/Model/GroupApplication.cs similarity index 85% rename from src/Tribufu/Model/GroupGame.cs rename to Source/Tribufu/Model/GroupApplication.cs index 49a026f..50011a4 100644 --- a/src/Tribufu/Model/GroupGame.cs +++ b/Source/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.4.3 * 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/Source/Tribufu/Model/GroupMember.cs similarity index 74% rename from src/Tribufu/Model/GroupMember.cs rename to Source/Tribufu/Model/GroupMember.cs index f65e65f..dc7c3e0 100644 --- a/src/Tribufu/Model/GroupMember.cs +++ b/Source/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.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/Source/Tribufu/Model/GroupRank.cs similarity index 96% rename from src/Tribufu/Model/GroupRank.cs rename to Source/Tribufu/Model/GroupRank.cs index 804eadc..fd13361 100644 --- a/src/Tribufu/Model/GroupRank.cs +++ b/Source/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.4.3 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Model/HashViewModel.cs b/Source/Tribufu/Model/HashViewModel.cs similarity index 98% rename from src/Tribufu/Model/HashViewModel.cs rename to Source/Tribufu/Model/HashViewModel.cs index b041e8c..3879813 100644 --- a/src/Tribufu/Model/HashViewModel.cs +++ b/Source/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.4.3 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Model/LoginProvider.cs b/Source/Tribufu/Model/IdentityProviderType.cs similarity index 93% rename from src/Tribufu/Model/LoginProvider.cs rename to Source/Tribufu/Model/IdentityProviderType.cs index 98afd9c..9c8de06 100644 --- a/src/Tribufu/Model/LoginProvider.cs +++ b/Source/Tribufu/Model/IdentityProviderType.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.4.3 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -27,10 +27,10 @@ using OpenAPIDateConverter = Tribufu.Client.OpenAPIDateConverter; namespace Tribufu.Model { /// - /// Defines LoginProvider + /// Defines IdentityProviderType /// [JsonConverter(typeof(StringEnumConverter))] - public enum LoginProvider + public enum IdentityProviderType { /// /// Enum Steam for value: steam diff --git a/src/Tribufu/Model/IntrospectRequest.cs b/Source/Tribufu/Model/IntrospectRequest.cs similarity index 98% rename from src/Tribufu/Model/IntrospectRequest.cs rename to Source/Tribufu/Model/IntrospectRequest.cs index 2104dcd..b5dc838 100644 --- a/src/Tribufu/Model/IntrospectRequest.cs +++ b/Source/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.4.3 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Model/IntrospectResponse.cs b/Source/Tribufu/Model/IntrospectResponse.cs similarity index 99% rename from src/Tribufu/Model/IntrospectResponse.cs rename to Source/Tribufu/Model/IntrospectResponse.cs index 989c10a..27e0482 100644 --- a/src/Tribufu/Model/IntrospectResponse.cs +++ b/Source/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.4.3 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Model/IpAddress.cs b/Source/Tribufu/Model/IpAddress.cs similarity index 89% rename from src/Tribufu/Model/IpAddress.cs rename to Source/Tribufu/Model/IpAddress.cs index f17ff5e..1aaafa4 100644 --- a/src/Tribufu/Model/IpAddress.cs +++ b/Source/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.4.3 * 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/Source/Tribufu/Model/LeaderboardItem.cs similarity index 98% rename from src/Tribufu/Model/LeaderboardItem.cs rename to Source/Tribufu/Model/LeaderboardItem.cs index 81a5bb2..0222cb9 100644 --- a/src/Tribufu/Model/LeaderboardItem.cs +++ b/Source/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.4.3 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Model/LeaderboardOrder.cs b/Source/Tribufu/Model/LeaderboardOrder.cs similarity index 95% rename from src/Tribufu/Model/LeaderboardOrder.cs rename to Source/Tribufu/Model/LeaderboardOrder.cs index 0b10b5d..b0ec474 100644 --- a/src/Tribufu/Model/LeaderboardOrder.cs +++ b/Source/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.4.3 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Model/ModelClient.cs b/Source/Tribufu/Model/ModelClient.cs similarity index 87% rename from src/Tribufu/Model/ModelClient.cs rename to Source/Tribufu/Model/ModelClient.cs index df70048..5ca9c5a 100644 --- a/src/Tribufu/Model/ModelClient.cs +++ b/Source/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.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/Source/Tribufu/Model/Package.cs similarity index 84% rename from src/Tribufu/Model/Package.cs rename to Source/Tribufu/Model/Package.cs index c4ae0c4..d48442a 100644 --- a/src/Tribufu/Model/Package.cs +++ b/Source/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.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/Source/Tribufu/Model/PackageRelease.cs similarity index 79% rename from src/Tribufu/Model/PackageRelease.cs rename to Source/Tribufu/Model/PackageRelease.cs index 14ff2a2..4052067 100644 --- a/src/Tribufu/Model/PackageRelease.cs +++ b/Source/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.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; } /// @@ -89,7 +91,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. @@ -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/Subscription.cs b/Source/Tribufu/Model/Product.cs similarity index 56% rename from src/Tribufu/Model/Subscription.cs rename to Source/Tribufu/Model/Product.cs index 3dafafe..e8ca8b0 100644 --- a/src/Tribufu/Model/Subscription.cs +++ b/Source/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.4.3 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -27,40 +27,54 @@ 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). + /// sku. /// description. + /// type. + /// slug. /// imageUrl. /// 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?)) + /// 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) { - 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.Sku = sku; this.Description = description; + this.Type = type; + this.Slug = slug; this.ImageUrl = imageUrl; this.Prices = prices; - this.Created = created; - this.Updated = updated; + this.CreatedAt = createdAt; + this.UpdatedAt = updatedAt; + this.DeletedAt = deletedAt; } /// @@ -75,12 +89,24 @@ 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 /// [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 /// @@ -91,19 +117,25 @@ namespace Tribufu.Model /// Gets or Sets Prices /// [DataMember(Name = "prices", EmitDefaultValue = true)] - public List Prices { get; set; } + 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 @@ -112,14 +144,18 @@ 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(" 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(" 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(); } @@ -146,6 +182,18 @@ 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) + { + 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/Source/Tribufu/Model/ProductPrice.cs similarity index 76% rename from src/Tribufu/Model/SubscriptionPrice.cs rename to Source/Tribufu/Model/ProductPrice.cs index c082ee5..a01ebea 100644 --- a/src/Tribufu/Model/SubscriptionPrice.cs +++ b/Source/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.4.3 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -27,31 +27,31 @@ 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). + /// price. /// renewal. - public SubscriptionPrice(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) { - 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; + 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", IsRequired = true, EmitDefaultValue = true)] - public double Amount { get; set; } + [DataMember(Name = "price", EmitDefaultValue = false)] + public double Price { get; set; } /// /// Gets or Sets Renewal @@ -80,9 +80,9 @@ 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(" Price: ").Append(Price).Append("\n"); sb.Append(" Renewal: ").Append(Renewal).Append("\n"); sb.Append("}\n"); return sb.ToString(); diff --git a/Source/Tribufu/Model/ProductType.cs b/Source/Tribufu/Model/ProductType.cs new file mode 100644 index 0000000..a75e466 --- /dev/null +++ b/Source/Tribufu/Model/ProductType.cs @@ -0,0 +1,48 @@ +/* + * 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 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/Source/Tribufu/Model/Profile.cs b/Source/Tribufu/Model/Profile.cs new file mode 100644 index 0000000..02724d5 --- /dev/null +++ b/Source/Tribufu/Model/Profile.cs @@ -0,0 +1,283 @@ +/* + * 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 +{ + /// + /// Profile + /// + [DataContract(Name = "Profile")] + public partial class Profile : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + public Profile() + { + } + + /// + /// Gets or Sets Id + /// + [DataMember(Name = "id", EmitDefaultValue = false)] + public string Id { get; private set; } + + /// + /// Returns false as Id should not be serialized given that it's read-only. + /// + /// false (boolean) + public bool ShouldSerializeId() + { + return false; + } + /// + /// Gets or Sets Name + /// + [DataMember(Name = "name", EmitDefaultValue = true)] + 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; private set; } + + /// + /// Returns false as DisplayName should not be serialized given that it's read-only. + /// + /// false (boolean) + public bool ShouldSerializeDisplayName() + { + return false; + } + /// + /// Gets or Sets Level + /// + [DataMember(Name = "level", EmitDefaultValue = false)] + 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; private set; } + + /// + /// Returns false as Experience should not be serialized given that it's read-only. + /// + /// false (boolean) + public bool ShouldSerializeExperience() + { + return false; + } + /// + /// Gets or Sets Birthday + /// + [DataMember(Name = "birthday", EmitDefaultValue = true)] + [JsonConverter(typeof(OpenAPIDateConverter))] + 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; private set; } + + /// + /// Returns false as Points should not be serialized given that it's read-only. + /// + /// false (boolean) + public bool ShouldSerializePoints() + { + return false; + } + /// + /// Gets or Sets PhotoUrl + /// + [DataMember(Name = "photo_url", EmitDefaultValue = true)] + 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; 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; 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; private set; } + + /// + /// Returns false as Biography should not be serialized given that it's read-only. + /// + /// false (boolean) + public bool ShouldSerializeBiography() + { + return false; + } + /// + /// Gets or Sets CreatedAt + /// + [DataMember(Name = "created_at", EmitDefaultValue = false)] + public DateTime CreatedAt { get; private set; } + + /// + /// Returns false as CreatedAt should not be serialized given that it's read-only. + /// + /// false (boolean) + public bool ShouldSerializeCreatedAt() + { + return false; + } + /// + /// Gets or Sets UpdatedAt + /// + [DataMember(Name = "updated_at", EmitDefaultValue = true)] + public DateTime? UpdatedAt { get; private set; } + + /// + /// Returns false as UpdatedAt should not be serialized given that it's read-only. + /// + /// false (boolean) + public bool ShouldSerializeUpdatedAt() + { + return false; + } + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class Profile {\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" DisplayName: ").Append(DisplayName).Append("\n"); + sb.Append(" Level: ").Append(Level).Append("\n"); + sb.Append(" Experience: ").Append(Experience).Append("\n"); + sb.Append(" Birthday: ").Append(Birthday).Append("\n"); + sb.Append(" Points: ").Append(Points).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(" CreatedAt: ").Append(CreatedAt).Append("\n"); + sb.Append(" UpdatedAt: ").Append(UpdatedAt).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) + { + // 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/Source/Tribufu/Model/ProfileGame.cs similarity index 99% rename from src/Tribufu/Model/ProfileGame.cs rename to Source/Tribufu/Model/ProfileGame.cs index 43ef46e..4451c1b 100644 --- a/src/Tribufu/Model/ProfileGame.cs +++ b/Source/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.4.3 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Model/ProfileGroup.cs b/Source/Tribufu/Model/ProfileGroup.cs similarity index 92% rename from src/Tribufu/Model/ProfileGroup.cs rename to Source/Tribufu/Model/ProfileGroup.cs index f64691e..711c9ec 100644 --- a/src/Tribufu/Model/ProfileGroup.cs +++ b/Source/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.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/Source/Tribufu/Model/ResponseType.cs similarity index 95% rename from src/Tribufu/Model/ResponseType.cs rename to Source/Tribufu/Model/ResponseType.cs index 946e975..7e0403b 100644 --- a/src/Tribufu/Model/ResponseType.cs +++ b/Source/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.4.3 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Model/RevokeRequest.cs b/Source/Tribufu/Model/RevokeRequest.cs similarity index 98% rename from src/Tribufu/Model/RevokeRequest.cs rename to Source/Tribufu/Model/RevokeRequest.cs index 78905ca..20c4209 100644 --- a/src/Tribufu/Model/RevokeRequest.cs +++ b/Source/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.4.3 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Model/Search.cs b/Source/Tribufu/Model/Search.cs similarity index 97% rename from src/Tribufu/Model/Search.cs rename to Source/Tribufu/Model/Search.cs index f752b19..b6a3dc0 100644 --- a/src/Tribufu/Model/Search.cs +++ b/Source/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.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/Source/Tribufu/Model/SearchType.cs similarity index 96% rename from src/Tribufu/Model/SearchType.cs rename to Source/Tribufu/Model/SearchType.cs index b992591..0253ad1 100644 --- a/src/Tribufu/Model/SearchType.cs +++ b/Source/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.4.3 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Model/ServerMetrics.cs b/Source/Tribufu/Model/ServerMetrics.cs similarity index 98% rename from src/Tribufu/Model/ServerMetrics.cs rename to Source/Tribufu/Model/ServerMetrics.cs index 00a5230..2f6359e 100644 --- a/src/Tribufu/Model/ServerMetrics.cs +++ b/Source/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.4.3 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Model/File.cs b/Source/Tribufu/Model/StorageFile.cs similarity index 76% rename from src/Tribufu/Model/File.cs rename to Source/Tribufu/Model/StorageFile.cs index d63979e..56025ef 100644 --- a/src/Tribufu/Model/File.cs +++ b/Source/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.4.3 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -27,54 +27,56 @@ 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?)) + /// 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) { - 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; + this.CreatedAt = createdAt; + this.UpdatedAt = updatedAt; + this.DeletedAt = deletedAt; } /// @@ -101,6 +103,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 /// @@ -114,22 +122,22 @@ namespace Tribufu.Model public string Etag { get; set; } /// - /// Gets or Sets Size + /// Gets or Sets CreatedAt /// - [DataMember(Name = "size", EmitDefaultValue = false)] - public long Size { get; set; } + [DataMember(Name = "created_at", EmitDefaultValue = false)] + public DateTime CreatedAt { get; set; } /// - /// Gets or Sets Created + /// Gets or Sets UpdatedAt /// - [DataMember(Name = "created", EmitDefaultValue = false)] - public DateTime Created { get; set; } + [DataMember(Name = "updated_at", EmitDefaultValue = true)] + public DateTime? UpdatedAt { get; set; } /// - /// Gets or Sets Updated + /// Gets or Sets DeletedAt /// - [DataMember(Name = "updated", EmitDefaultValue = true)] - public DateTime? Updated { get; set; } + [DataMember(Name = "deleted_at", EmitDefaultValue = true)] + public DateTime? DeletedAt { get; set; } /// /// Returns the string presentation of the object @@ -138,16 +146,17 @@ 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(" 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/Source/Tribufu/Model/TokenHintType.cs similarity index 96% rename from src/Tribufu/Model/TokenHintType.cs rename to Source/Tribufu/Model/TokenHintType.cs index 084e654..099dc37 100644 --- a/src/Tribufu/Model/TokenHintType.cs +++ b/Source/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.4.3 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Model/TokenRequest.cs b/Source/Tribufu/Model/TokenRequest.cs similarity index 99% rename from src/Tribufu/Model/TokenRequest.cs rename to Source/Tribufu/Model/TokenRequest.cs index b0f715c..bcbc3e3 100644 --- a/src/Tribufu/Model/TokenRequest.cs +++ b/Source/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.4.3 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Model/TokenResponse.cs b/Source/Tribufu/Model/TokenResponse.cs similarity index 99% rename from src/Tribufu/Model/TokenResponse.cs rename to Source/Tribufu/Model/TokenResponse.cs index ae3678a..d410c4d 100644 --- a/src/Tribufu/Model/TokenResponse.cs +++ b/Source/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.4.3 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Model/TokenType.cs b/Source/Tribufu/Model/TokenType.cs similarity index 95% rename from src/Tribufu/Model/TokenType.cs rename to Source/Tribufu/Model/TokenType.cs index de2a33c..058d4b4 100644 --- a/src/Tribufu/Model/TokenType.cs +++ b/Source/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.4.3 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Model/UpdateProfile.cs b/Source/Tribufu/Model/UpdateProfile.cs similarity index 98% rename from src/Tribufu/Model/UpdateProfile.cs rename to Source/Tribufu/Model/UpdateProfile.cs index e0e9aec..0de3f9d 100644 --- a/src/Tribufu/Model/UpdateProfile.cs +++ b/Source/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.4.3 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Model/UserInfo.cs b/Source/Tribufu/Model/UserInfo.cs similarity index 77% rename from src/Tribufu/Model/UserInfo.cs rename to Source/Tribufu/Model/UserInfo.cs index 4617da3..8be80ce 100644 --- a/src/Tribufu/Model/UserInfo.cs +++ b/Source/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.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/Source/Tribufu/Model/UserType.cs similarity index 95% rename from src/Tribufu/Model/UserType.cs rename to Source/Tribufu/Model/UserType.cs index 62b2126..4df6b64 100644 --- a/src/Tribufu/Model/UserType.cs +++ b/Source/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.4.3 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Tribufu.csproj b/Source/Tribufu/Tribufu.csproj similarity index 86% rename from src/Tribufu/Tribufu.csproj rename to Source/Tribufu/Tribufu.csproj index 1f951d1..7337e40 100644 --- a/src/Tribufu/Tribufu.csproj +++ b/Source/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/Source/Tribufu/TribufuApi.cs similarity index 91% rename from src/Tribufu/TribufuApi.cs rename to Source/Tribufu/TribufuApi.cs index 2d9f8d3..d8ed7fb 100644 --- a/src/Tribufu/TribufuApi.cs +++ b/Source/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/Source/Tribufu/TribufuApiSingleton.cs similarity index 81% rename from src/Tribufu/TribufuApiSingleton.cs rename to Source/Tribufu/TribufuApiSingleton.cs index 1a01583..8eca3d6 100644 --- a/src/Tribufu/TribufuApiSingleton.cs +++ b/Source/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; } 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/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.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/Model/Profile.cs b/src/Tribufu/Model/Profile.cs deleted file mode 100644 index e076ba5..0000000 --- a/src/Tribufu/Model/Profile.cs +++ /dev/null @@ -1,236 +0,0 @@ -/* - * 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 -{ - /// - /// Profile - /// - [DataContract(Name = "Profile")] - public partial class Profile : IValidatableObject - { - /// - /// 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), 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?)) - { - 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; } - - /// - /// Gets or Sets Uuid - /// - [DataMember(Name = "uuid", EmitDefaultValue = false)] - public Guid Uuid { get; set; } - - /// - /// Gets or Sets Name - /// - [DataMember(Name = "name", 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 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; } - - /// - /// Gets or Sets PhotoUrl - /// - [DataMember(Name = "photo_url", EmitDefaultValue = true)] - public string PhotoUrl { get; set; } - - /// - /// Gets or Sets BannerUrl - /// - [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; } - - /// - /// 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 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("}\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/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